Log in

View Full Version : Problems using gotoAndPlay



dog
07-26-2007, 03:54 PM
Hi, I'm new to Flash and have I problems that seems so simple I'm embarressed to have to ask it :o

I have a movie that was working fine set on loop. Now I've put a preloader in so when the movie loops the preloader flashes up. I've turned off the automatic looping feature and put a keyframe in at the end of my move with the actionscript:
gotoAndPlay ("play");
"play" is a label on the frame that follows the preloader.

BUT nothing happens. The player just gets to the end of the movie and does nothing. what gives?

Thanks,
dog

Ryan Fitton
07-26-2007, 05:12 PM
Never be to embarrassed to ask :)

Medyman
07-27-2007, 02:54 AM
Where is that particular snippet of AS located?

Try doing this:

_root.gotoAndPlay("play");

If that works, your AS is on the wrong frame.

dog
07-30-2007, 12:19 PM
Hello,

My bad. Turns out that the AS was working. I just wasn't previewing it.

:o

You have to actually "Test Movie" for AS to take affect? Didn't realise.

Sorry.

Medyman
07-30-2007, 03:17 PM
Yes, you do.

When you "test movie", it compiles the .swf from scratch. This way, all of your changes are compiled.

Otherwise, the .swf saved to your HDD isn't changing and you're viewing the same file over and over.