Blog Stats
  • Posts - 61
  • Articles - 3
  • Comments - 170
  • Trackbacks - 234

 

Scene jumping problem with gotoAndPlay / gotoAndStop

Flash has an nice concept called 'Scene', using which you separate a full movie into various scenes logically and then work on them. This enables the developer from going insane over the countless layers and frames that they have to jump to. One problem I faced with scene jumping with the recent work is that, when you are gotoAndPlay'ing to a scene from the topmost scene it works pretty well, but the problem arises when you have to jump to a different scene from inside of some object placed somewhere else in the movie it simply doesnt work.

After doing some googling I found this FAQ section which explained about the concept of scenes and a way to overcome the drawback. To put a long story short, hen exporting your fla into swf flash just concatinates all scenes one after another into a full length movie. So after exporting there isnt anything called a 'scene' present in the swf and thats the reason objects at innermost level are not able to execute the gotoAndPlay or gotoAndStop functions for scene based jumping. To overcome this drawback we just have to place a label frame to where it has to jump (basically I name it same as the scene itself) and then call the gotoAndPlay("<labelName>") to move the player head.

In flash 2004 macromedia has introduced new concepts named Screens and Forms which dont have the above mentioned drawback, but as I was working on a older file I had to come across this issue.


Feedback

# re: Scene jumping problem with gotoAndPlay / gotoAndStop

Gravatar OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO 11/2/2005 1:23 PM | Jigoku

# re: Scene jumping problem with gotoAndPlay / gotoAndStop

Gravatar sorry,...little sister did that
um...
THANK YOU
I THINK IM IN LOVE 11/2/2005 1:25 PM | Jigoku

# re: Scene jumping problem with gotoAndPlay / gotoAndStop

Gravatar THANK YOU!!!!! 7/13/2007 6:55 PM | Sam

# re: Scene jumping problem with gotoAndPlay / gotoAndStop

Gravatar YES I LOVE YOU TOOOOOOOOOOO!!!!!!!!!!!! 5/21/2008 4:58 PM | Suzanne

Post a comment





 

Please add 7 and 4 and type the answer here:

 

 

Copyright © CodeCanvas