|
|
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.
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|