Search Tutorials
Action Analysis Here's the ActionScript from the 2nd Keyframe again: this is the important one! The variable CopyCount increases by 1 each time the movie loops. When it reaches 10, it is set back to 1, and so loops around again. The last line makes a duplicate of the original movie clip (Star1), and calls it Star2 or Star3 or Star4 etc., depending on the value of CopyCount. When CopyCount goes back to 1, it 'overwrites' the original Star1, then Star2, and so on. In this way, there are only ever 10 movie clips.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|