Groups | Blog | Home
all groups > flash actionscript > april 2006 >

flash actionscript : Bug?


panka99
4/5/2006 10:33:58 PM
I have a movie clip with and action script in itslast frame gotoAndPlay("Scene
1", 2).

When I enable simple frame actions it works OK, but once I test the movie it
goes to the 2. frame of the movie clip instead of the 2. frame of Scene 1.

Any ideas?
kglad
4/5/2006 10:52:50 PM
do not use the goto function and do not use scene info for navigation. there
are well-known bugs.

label your frames, use the goto method and use fame labels for navigation:


_root.gotoAndPlay("Scene1_frame2"); // where frame 2 of scene 1 has the
appropriate label
panka99
4/5/2006 10:59:09 PM
Thanks a lot !!!!!!!!!!
You solved my problem. ( :

David Stiller
4/6/2006 8:19:02 AM
panka99,

[quoted text, click to view]

It's noted in the ActionScript Language Reference, as well as every
other ActionScript term you'll run into. Hit F1 and either browse or
search -- pretty convenient! :)

See also these:
http://www.quip.net/blog/2006/flash/actionscript-20/gotoandplay-with-scenes
http://www.quip.net/blog/2006/flash/actionscript-20/is-root-evil


David
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."

AddThis Social Bookmark Button