Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: getting the current marker name
From: Chris Kemmett
Date: Fri, 09 Feb 2001 02:30:26 -0000

I hope this isn't too late - I'm on digest

I haven't found a way to access the marker or label name of the current
frame (wish I could!). My workaround has been to use a var in conjunction
with the goto command and read it back if I need it (var nextlabel =
"step2").

But thinking about it, another way would be to pop and push an array with
the frame numbers as a user visits them - Flash doesn't need to know a frame
label in order to go to it (that's just to make my authoring easier).

For instance:
//initialise an array
visitStack = new Array();

Frame script
//append the current frame number to the stack when you enter a frame
visitStack.push(_currentFrame);

On click of back button:
//read the last value from the stack and go there
gotoAndStop(visitStack.pop());


This hasn't been tested, but this is the kind of thing...

hth




Replies
  RE: getting the current marker name, Chris Kemmett

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]