Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Using an array to keep track of movie clips
Author: Jesse
for(a=1; a<=myArray.length; ++a){
movieToRemove = myArray[a-1]
this[movieToRemove].removeMovieClip()
}
this.attachMovie(character, "char", 30)
First, we do another for loop that goes for as many times as myArray.length(Just like all the other frames!) Then, we set another variable, only this time it's called movieToRemove. Then, we remove that movie clip. Of course, then we attach the character movie to the screen, and call it char. That's it! Note: In the source file, I included a simple character moving game. You can experiment with this and create your own videogame!
| » Level Intermediate |
|
|
Added: : 2004-12-16
Rating: 7.00 Votes: 2
Hits: 174
|
| » Author |
|
Just started working with Flash about a year ago.
|
| » 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.
|
|
|