Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

flash back button

  • 30-12-2005 02:52PM
    #1
    Registered Users, Registered Users 2 Posts: 4,480 ✭✭✭


    hey guys,

    working on a flash project and i want to include a back button on some frames. the back button wont always be just going to the previous frame so the prevFrame option is out. also in this particular movie, i can reach one frame from a various different frames so i cant just use gotoandplay.

    i found a script that works like this..

    imclude this on the opening frame,

    navStack = [];

    and this on every frame after,

    navStack.push(_currentFrame);

    the back button is then coded like this,

    on (release) {
    if (_root.navStack.length > 1) {
    recentFrame = _root.navStack.pop();
    previousFrame = _root.navStack.pop();
    goToAndPlay(previousFrame);
    }
    }

    when i use this i get no errors but the back button doesnt do anything. anyone got any clues? or even a script that can do it?


Advertisement