|
-
1 ) careful with scopes:
that script above, as is, is supposed to go on the main timeline. (you're talking to Buttons, which i guess is sitting on the main timeline)
2) the references to the variables buttons, as is, means that these 4 vars are declared ON the main timeline as well. meaning, you declare them all to false:
Code:
button01 = button02 = button03 = button04 = false;
Now your buttons, i assume, are inside the MC Buttons, right?
So their action should be:
_root.button01 = true; //same for all 4 buttons: _root.button02 = true; ...etc.
3) careful with gotoAndPlay(x) : you can't tell the player head to gotoAndPlay() on a frame that has a stop() action on it. You need to decide if it plays or stops.... right?
gparis
-
That was it!
I had button01=true for an action instead of _root.button01-true
I didn't realize variables were timeline sensitive. Is there a way to use variables globally?
Thanks gparis.
Last edited by Kojak2; 01-16-2007 at 02:45 PM.
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
|