View Full Version : how do I make a MC play backwards?
Jessica
03-21-2001, 10:47 PM
I have a movie clip and want the user to be able to play it "forwards" and "backwards" so to speak. I know how to make it play forward...but how do I tell it to play backwards...FROM ANY POINT IN THE MOVIE CLIP. I asked a similar question before, but was sent to a tutorial that didn't help me at all. Please, please tell me what to do to get this thing to work.
Thanks very very much,
Jessica
Jesse
03-21-2001, 11:36 PM
Create an MC and put these actions on it:
onClipEvent (enterFrame) {
if (_root.playBack == true && _root._currentframe>1) {
_root.gotoAndStop(_root._currentframe-1);
}
}
Then trigger the playback with a button or a keyframe with this action:
_root.playBack = true;
Cheers
Jesse
mad_A
03-22-2001, 03:03 PM
Another way, if you are using flash 5 is to have a button with the actions...
on (press, dragOver) {
play ();
tellTarget ("../contents") {
prevFrame ();
}
}
where contents is what you want to play backwards. With this I have also a two frame movie, with the above code in both frames. I found (I don't know why) that it was necessary to put the actions on different layers for the two frames.
A
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.