-
Navigation Type Button Help
Ok, here it is simplified as best i can, Main timeline 2 frames, first frame has a simple animation and a play button. Second frame has a movie clip that has 10 frames within it each with a next frame button. I am trying to find a way so that while going through the frames, i can press a "back" button that takes me to the main timeline in the first frame (done). and I want the play button when pressed again to take me back to the frame that i had pressed the "back" button from ... any ideas?
-
Registered User
hi,
You can create a variable (in the main timeline) that stores the frame number you are at, when you click the button.
Then, when you click the button, see if the variable exists. If it does, move the playhead to that frame.
Something like:
code:
// one button:
_root.frameImAt = some_mc._currentframe;
// other button:
if (_root.frameImAt != undefined)
{
some_mc.gotoAndStop(_root.frameImAt);
}
Well, you shouldn't use _root, but it's to make sure you get the point (and the correct target path to the main timeline).
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|