PDA

View Full Version : attach movie at certain time interval



Sharey
April 2nd, 2005, 10:18 PM
Hello,

I would like to place attach clips to the _root at a certain interval of time (instead of very fast in a loop), but im having some problems planning it out correctly. Could someone give me some direction?

This is what i have as of now....


i = 1;

// Place the clip on the stage later to become a member of the activator class

function placeClip() {

// Attach the movie clips

mc = attachMovie('mc', 'mc'+i, this.getNextHighestDepth());

// Set degree of each clip

mc._rotation += i*3;

i++;

}

ID = setInterval(placeClip, 20);


It is attaching it, but i want it to be more like a fan spanning out then a clock hand ticking. By this I mean, I would like the clips to remain on the stage. In this case, it seems like the clips are getting replaced.

Much appreciated!

scotty
April 3rd, 2005, 04:03 AM
this.getNextHighestDepth() isn't working in mx;)
this will work

i = 1;
function placeClip() {
mc = attachMovie("mc", "mc"+i, i);
mc._rotation += i*3;
mc._x = 150;
mc._y = 150;
i++;
}
ID = setInterval(placeClip, 20);

scotty(-: