Skip to main content
Inspiring
August 7, 2009
Answered

AS3 Jumping to scenes

  • August 7, 2009
  • 1 reply
  • 2140 views

I never used scenes before but I need to in this situation. Its a banner  that has 8 seperate states and if I do not use scenes, everytime I go to check I have to have the fla play all the way thru the animation, follow?

I need to know how to code the gotoandplay function to jump to the next scene?

I have stop actions at the end of each scene for now but need to play thru all scenes.

any help?

This topic has been closed for replies.
Correct answer kglad

gotoAndPlay(marketing,"Scene 2")

1120: Access of undefined property marketing.


(and if you made the same error with marketing, fix it too.)

ie, marketing should be "marketing"?

1 reply

kglad
Community Expert
Community Expert
August 7, 2009

gotoAndPlay(framelabel, scenename)

mentlityAuthor
Inspiring
August 7, 2009

getting an error

gotoAndPlay(marketing,Scene 2)

1084: Syntax error: expecting rightparen before 2.

kglad
Community Expert
Community Expert
August 7, 2009

Scene 2 is not a scene name.  "Scene 2" may be a scene name.  try it.

(and if you made the same error with marketing, fix it too.)