all groups > flash actionscript > october 2004 >
You're in the

flash actionscript

group:

Using variable in GotoAndStop


Using variable in GotoAndStop Tiller
10/31/2004 1:43:12 PM
flash actionscript: Hi, I'm trying to use the number stored in a variable called 'picpage' to
control where the playhead goes. (See code below). I'm guessing because I want
to go to a frame label (they're called pics1, pics2 etc.) everything in the
gotoAndStop brackets need to be in quotes? This is probably really simple, but
I've been a couple of hours not getting anywhere. Any help much appreciated.
Cheers, Andy --- on (release) { gotoAndStop("pics"+picpage); }
Re: Using variable in GotoAndStop kglad
10/31/2004 2:42:32 PM
Re: Using variable in GotoAndStop Tiller
10/31/2004 3:29:26 PM
The button is a true button and all the frames are definitely labelled correctly.

Any other ideas?

Re: Using variable in GotoAndStop kglad
11/1/2004 4:21:37 AM
Re: Using variable in GotoAndStop Jeckyl
11/1/2004 8:43:26 AM
put in some tracing and see what the value of picpage REALLY is (as opposed
to what you think it should be)

tracing is the easiest way to debug .. that and setting breakpoints.

You are the only one who can debug your code.

AddThis Social Bookmark Button