PDA

View Full Version : go to and play won't work


sandman9
03-10-2003, 11:21 PM
I have a MC on my main timeline. At the end of my MC I have the following script

_root.gotoAndPlay("portfolio", "startP");

But this did not go to Scene: portfolio and Frame Label: startP. So instead I put a frame lable on my main timeline called "routeP" and put the following action at the end of my MC to send it to routeP:

_root.gotoAndPlay("routeP");

Then on this frame (routeP) I put _root.gotoAndPlay("portfolio", "startP"); .......... instead of going to the apprpriate scene/label it goes to the next scene ..........

Anyone know why this is happeneing?

Sandman9

sandman9
03-10-2003, 11:36 PM
is this ^^^^ confusing ..... I know this is simple but I just wanted to really be clear (hope i didn't confuse anyone in the process :p)

sandman9
03-11-2003, 06:03 AM
please ..... anyone? :(

Sandman9

bluegel
03-11-2003, 09:04 AM
have you tried not labelling your frames and just doing:

_root. gotoAndPlay("portfolio", 1);

(1 or whatever startP stands form in frame numbers)


Flash doesn't like the use of some words such as start and area and play as naming things as they are in the code as well. You could try and name it as something else or try frame numbers??

:(

farafiro
03-11-2003, 09:10 AM
well, try to put just the frame lable
_root.gotoAndStop("lable")

sandman9
03-11-2003, 02:44 PM
Fairo's idea worked! .... I try'd that before but it didn't work but this time I changed the name to something completely irrelvant and didn't specify what scene ....... thank you very much once again

PS-frame numbers are a bad idea b/c it confuses flash in the exported state :)

Thanks Guys
Sandman9

CyanBlue
03-11-2003, 10:19 PM
As you might have known already, do not use scenes in Flash if possible... Use frame label instead... Scenes are there for your eyes only... See this thread (http://www.actionscript.org/forums/showthread.php3?s=&threadid=14126)... ;)

sandman9
03-12-2003, 06:08 AM
thanx Cyan