earph
October 17, 2002, 7:25pm
1
I’d like my button to set a variable, then play the rest of the frames. On the last frame I want it to jump to a label.
Can you set variables to labels?
I’ve got this on my button:
on (release) {
set(whereNext, dictate);
play();
}
Then in the last frame I have:
gotoAndPlay(dictation);
But it’s not working. How might I accomplish this?
system
October 17, 2002, 7:28pm
2
um… one is dictate, one is dictation?
also… wherenext is the variable name and dictate is supposed to be the expression
so, it would make more sense if it was
gotoandplay(wherenext);
system
October 17, 2002, 7:33pm
3
alright… I caught all that, but it’s still not working.
it plays to the last frame where this code is:
gotoAndPlay(dictation);
But instead of going there, it just keeps playing down the timeline
system
October 17, 2002, 7:57pm
4
There is a problem with gotoAndPlay(variable) that has been solved by the guys at flashcoders (surprising…). Just put this.gotoAndPlay(variable). Dunno why but it works.
pom
system
October 17, 2002, 8:24pm
6
this.gotoAndPlay(yourVariable)
system
October 17, 2002, 8:28pm
7
Can you set a variable go to a frame label?
system
October 17, 2002, 8:32pm
8
Nevermind… I got it working now… Thanks for all the help.
system
October 18, 2002, 7:55pm
9
’ this ’ works well… is there another one I could use for a ’ child ’ MC?
What would be the eqivalent of ’ _level2 '?
system
October 21, 2002, 2:43pm
11
ah… thanks, but I figured it out. I was putting my coordinates in the wrong place. And… I was needing to use _level0…