This content has been marked as final. Show 2 replies
> So I tried to add this action:
> gotoAndPlay("4","Layer 1");
> which should tell it to play scene 4, but instead it do
> play scene 2.
I notice that your first parameter is in quotes, "4," which means Scene
4 is expected to have the name "4" ... does it? Your second parameter is
also in quotes, which means you're attempting to send the playhead not only
to another Scene, but also to a named frame label, whose name is apparently
"Layer 1" ... is it? :)
> I maybie use the wrong action, but I hope someone
> is willing to help me out here.
It looks like you're using the right ActionScript, but I'm not sure
you're using it correctly. Have you read the ActionScript 2.0 Language
Reference's gotoAndPlay() entry?
Long time Flash users are aware of a bug in the Flash Player -- possibly
corrected with ActionScript 3.0 -- that results in problems when combining
ActionScript and Scenes. Rather than specifying a Scene name, just
reference unique named frame labels, instead. :)
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."
Click window > otherpanels> scene (this will display your scene panel)
here you can re-name and re-order you scenes (just drag and drop to re-order)
now your ActionScript should read
where menu is the name of the scene and 1 is the frame number.
Hope this helps