-
Passing Variable Value
Is it possible to pass a variable's value to the gotoAndPlay(); function. I'm having trouble with a condition statement and I just want to skip that step and set a variable to pass the lable name to the gotoAndPlay. i.e. gotoAndPlay(Variable);
-
Senior Member
no it is'nt:
my_mc.gotoAndPlay(frame)
Parameters
frame A number representing the frame number, or a string representing the label of the frame, to which the playhead is sent.
try something else.
-
-
Actually, my_mc.gotoAndPlay(variable) does work:
myVar="myLabel";
this.gotoAndStop(myVar);
gparis
-
Senior Member
your right, just took another look at his post.
thought he meant sometihng else (what was I thinking).
I have to stop reading the board after 1 am.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|