Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: [flasher] Scripting a "previous" button HELP! |
| From: | PSWoods |
| Date: | Tue, 06 Mar 2001 05:51:24 -0000 |
///------------main timeline----------------------
function goToFrame(frameNum){
hub.lastFrame=_root._currentframe;
gotoAndStop(frameNum);
}
function goBack(){
gotoAndStop(hub.lastFrame);
}
///-------------back button
on(release, releaseOutside){
_root.goBack();
}
/*explanation:
put a blank MC on the main timeline on its own level for the duration of the
movie (w/o keyframes - one instance for the whole movie). name it "hub"
put the functions goToFrame() and goBack() on their own level for the
duration of the movie, even if there are other actions
use _root.goToFrame() anywhere where you would normally use gotoAndStop().
this function records the current frame in the MC hub before moving on to
the next frame.
when the user clicks on the back button, goBack goes to the frame number
indicated by the value of hub.lastFrame, which will be the last they were in
*/
Regards,
PSWoods
http://pswoods.com
----- Original Message -----
From: "Mary Woods" <mwoods
To: "flasher from chinwag" <flasher
Sent: Monday, March 05, 2001 11:03 PM
Subject: [flasher] Scripting a "previous" button HELP!
> To All,
>
> Can anyone help me with scripting a "previous" button to send users to the
> last frame they were in.
> The flash file has many scenes and I need the previous button in the
"help"
> section file to return them
> to the scene and frame they came from.
>
> Any help would be appreciated.
>
> Thanks.
>
> Mary
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The Chinwag site carries a wealth of Flash resources.
> Find useful links, suggested reading and archives at:
>
> ** http://www.chinwag.com/flasher **
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> You are subscribed to flasher as: pswoods
> To unsubscribe, email leave-flasher-485016J
>
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

