Search tutorials
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 Votes: 2 |
| » Author |
| Just started working with Flash about a year ago. |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!