Search tutorials
OK, so let's start a new movie. Make a movie clip of anything that you can move around, a circle in this example. Then go to the actions panel for that movie clip. Type in the following code:
on(press){
startDrag("")
}
on(release){
stopDrag()
}
You probably know by now, but this code lets the player drag the movie clip around. Give the movie clip an instance name of circle. Now go to the root timeline and type in the following code:
stop()
frame = 0
frames = {}
This just sets up the variables for the movie. The movie now stops at the first frame, and sets a variable called frame, which is equal to zero. Then it creates an object called frames. We will use these two variables later.
| » Level Advanced |
|
Added: 2004-12-19 Rating: 6 Votes: 2 |
| » Author |
| Loves making games in Flash. Just started about a year ago. |
| » Download |
| Download the files used in this tutorial. |
| Download (4 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!