Thank you, I will try that...
Hi anab
it depends a little. Your desciptions sound like that all frames you navigate to are on one timeline. If that's the case then declare a variable in an Actions layer on frame 1:
var thePreviousFrame:int;
Now on every frame where you have a shortcut to your credits page (a button) with some actionscript like:
CREDITSBUTTON.addEventListener(MouseEvent.CLICK, CREDITSBUTTONHandler);
function CREDITSBUTTONHandler (e:MouseEvent) {
thePreviousFrame = currentFrame;
gotoAndStop("credits");
}
On your credits page for the interactive element (button) to go back to previous page:
PREVIOUSBUTTON.addEventListener(MouseEvent.CLICK, PREVIOUSBUTTONHandler);
function PREVIOUSBUTTONHandler (e:MouseEvent) {
gotoAndStop(thePreviousFrame);
}
(CREDITSBUTTON and PREVIOUSBUTTON are of course just placeholders for your instance names of those particular interactive elements.)
Klaus