Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gotoAndPlay anothter scene doesnt work.

Status
Not open for further replies.

codejunkie

Programmer
Oct 5, 2000
5
KE
Hey,

I have a problem in my flash when changing scenes. The situation is a follows:

1 have 2 whole scenes XMLLoader and TextScene.

Both scenes only have 1 frame. In XMLLoaded i have an xml object. When the onLoad function is called i parse the XML and when successfull i want it to jump to the scene TextScene.

When using the line 'gotoAndPlay('TextScene',1)' within the function it will not call the next scene though it will remove a movieclip (i only have 1 so i dont know if its specific this one or not) from the screen (in the current scene) and does not show the scene i wanted.

BUUTTT

when using that line outside of all the functions it will goto the next scene.

Right now im stressing out.. :S

Greetz
Vincent
 
Don't know if this will help, but try labeling the first frame of your TextScene with an unique label (such as text_start - or whatever), and use that label as a target, rather than the scene name. You should also add _root to the path.

Thus...

_root.gotoAndPlay("text_start"); Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top