Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-21-2001, 10:47 PM   #1
Jessica
Registered User
 
Join Date: Mar 2001
Location: Los Angeles
Posts: 2
Question

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
Jessica is offline   Reply With Quote
Old 03-21-2001, 11:36 PM   #2
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

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.
Jesse is offline   Reply With Quote
Old 03-22-2001, 03:03 PM   #3
mad_A
The Zen of ActionScript
 
mad_A's Avatar
 
Join Date: Mar 2001
Location: Dublin, Ireland
Posts: 713
Default

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
mad_A is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make MC play backwards w/ button willythekid ActionScript 2.0 6 07-23-2005 08:07 PM
play backwards? jrk_productions ActionScript 2.0 12 05-19-2005 01:52 AM
how to make movies play in the background seanpaul2 ActionScript 1.0 (and below) 2 02-10-2003 11:54 PM
play a movie backwards x_ray_113 ActionScript 1.0 (and below) 6 04-06-2002 02:06 PM
How do i play frames backwards i.e like 9,8,7,6,5.... someonenearHim ActionScript 1.0 (and below) 1 01-01-2002 08:46 AM


All times are GMT. The time now is 07:05 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.