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.
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
__________________
Cheers
Jesse Stratford ActionScript.org Cofounder
Please don't email or PM me Flash questions, that's what the Forums are for!
Please don't rely on me reading my PMs either. Email me about important stuff.
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.