PDA

View Full Version : Frame Labels and Calling Them


CaffeineJunkie
05-25-2004, 12:57 PM
At the begining of two scenes i have labels for the first frame. Scene one is "pagea" and scene two is "pageb"

Now I have buttons later in the first scene that say
on (release) {
pagetoo = "pageb"
play();}

and later I have
gotoAndPlay(pagetoo);

that works.

then on the second scene
it has buttons that say
on (release) {
pagetoo = "pagea"
play();}

and later I have
gotoAndPlay(pagetoo);

but somehow it loads the second scene?


I'm totally confused.

CyanBlue
05-25-2004, 01:00 PM
Howdy... :)

Maybe I am wrong, but add _root in front of your gotoAndPlay() line like this...


trace("pagetoo = " + pagetoo);
_root.gotoAndPlay(pagetoo);

CaffeineJunkie
05-25-2004, 01:03 PM
[edited]

wow i'm soo stupid. For some odd reason I thought _root refered to the most left side of the chain. Arg i'm a retard. Thanx

CyanBlue
05-25-2004, 01:04 PM
What about _level0 then???

CaffeineJunkie
05-25-2004, 01:07 PM
Thanks, you were right the first time. *bows*

CyanBlue
05-25-2004, 01:10 PM
Um... I don't know what I did, but glad you got it working... :)