Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Using loops and attach movie
Author: CornyAnimation
| Website: www.geocities.com/cornyanimation/ |
The code
Ok, lets start out with the code, and then we can break it down and explain it.
//In the first frame, have this code
i=0
level=1
//Have this code in the frame that you want
for(i=0,i<100,i++){
attachMovie("Themovie","Newmovie"+level, level)
_root["Newmovie"+level]._x=550*Math.random()
_root["Newmovie"+level]._y=400*Math.random()
level++
}
The outcome creates 100 instances of Themovie.
| » Level Intermediate |
|
|
Added: : 2006-03-23
Rating: 1.00 Votes: 1
Hits: 592
|
| » Author |
|
Cornyanimation is working on his (my)first major Flash project.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (0 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|