Search Tutorials
The Rewind Engine Now place the following code into keyframe No.2:
Begin Tell Target ("/")
Go to and Stop (_currentframe -1)
End Tell Target
This is the core of the rewind engine movie clip. As you can see _currentframe-1 takes the movie back a frame every time this frame is played. An lastly the code for Keyframe No.3:
If (/:_currentframe = 1)
Begin Tell Target ("/")
Go to and Play (_totalframes -1)
End Tell Target
End If
Go to and Play (2)
This code loops the main timeline backwards by checking if it is at the current frame. If it is, it goes to the end of the main timeline and continues playing it backwards. The 'Go to and Play(2)' loops back to frame 2 thus looping the rewind code for playing the movie backwards. Now everything is in place except for one thing. You have to place your engine on the stage by dragging the rewind engine movie clip from your library onto the stage. If you look in my example I've placed it in an obvious spot, however, you can place this just off the stage if you wish to hide it. You're now ready to turn back time!!! Good luck and happy flashing!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|