Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : gotoAndPlay



EvilGuyWhoEatsBrains
5/13/2004 9:21:30 PM
We have a main scene that we want other scenes to show-up in the middle of, so
we can retain the links from the main scene to navagate between other scenes.
But we can't even get one scene ("economics") to show up.

So we have the one scene called "economics" and I tried using "1" and a label
called "frame_economics" on a button like so...

1) gotoAndPlay("economics", 1);
2) gotoAndPlay("economics", "frame_economics");

Neither worked, and we're stumped on how to get a scene to play.

Also, if there is a better technique to doing this, please tell us. Or if
we're in the right direction, can you tell us anything that we may be doing
wrong.

(We're flash noobs btw, so keep it in laymen's terms :D )
mandingo
5/13/2004 11:02:48 PM
Hi,

First thing to tell you ... don't use scenes for navigation.

Scenes are a design tool only to allow you to better manage your site. The
scene labels themselves are not compiled in your .SWF and references to them
may result in errors.

Instead, use the frameLabels (that you have done) and just use the syntax:

gotoAndPlay("frame_economics");

hope that helps,
cheers
AddThis Social Bookmark Button