A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Navigation Type Button Help

  1. #1
    Junior Member
    Join Date
    Dec 2004

    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?

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002

    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:

    // one button:
    _root.frameImAt = some_mc._currentframe;
    // other button:
    if (_root.frameImAt != undefined)

    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).

  3. #3
    Junior Member
    Join Date
    Dec 2004
    awsome, thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center