Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

flash back button

Options
  • 30-12-2005 5:19pm
    #1
    Registered Users Posts: 4,478 ✭✭✭


    hey guys,

    posted this in the webmaster forum and havent got a response, just thought somebody here might be able to help.

    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?


Comments

Advertisement