Hello,
I have two small dots (stars) that I want to duplicate. I have created a function-
//Make stars function
function makeStars() {
duplicateMovieClip(_root.starOne, “star”+b, b);
b++;
duplicateMovieClip(_root.starTwo, “starTwo”+c, c+300);
c++;
}
I placed the function on a blankMC in the onClipevent (load) section. In the onClipEvent (enterFrame) I have placed a setinterval command-
//run the make stars function
setInterval(makeStars, 8000);
Now this waits 8 seconds and then creates a massive amount of duplicated stars - more than I want. I had just put the duplicate movie bit in a movie every couple of frames and that did what I wanted but I am trying to challenge myself and use functions and code. I am sure there is a better way to get what I want done - any suggestions?
Thank You,
Tobias
http://www.gelstoncafe.com