Groups | Blog | Home
all groups > flash actionscript > february 2006 >

flash actionscript : Please help me, i'm new!



mozinga
2/28/2006 9:34:24 PM
Hi,
I'm a newbie to flash and i am trying to create a button in flash for a menu,
the button works fine until i click it., i am trying to link it to another
scene but when it is clicked it just plays back the scene its on, here is the
actionscript i am using:

on (release) {

gotoAndPlay("4", 1);}
The 350Z
2/28/2006 11:04:58 PM
If you want to let it play then that's fine if you want to stop at frame 4:


on(release){
gotoAndStop(4);
};


You might want to put a stop(); at the end of your main timeline, so it won't
go back to frame #1 when you play it.
mozinga
2/28/2006 11:09:30 PM
blemmo
2/28/2006 11:21:48 PM
You have to put in the correct name of the scene: gotoAndStop("Scene 4",1).
It's also case-sensitive, so take care that it's correct.
But I'd recommend to avoid using scenes whenever possible... it's just easier
without them. You could use labeled frames as well in most cases, and this
makes a lot of things just easier.

cheers,
blemmo
AddThis Social Bookmark Button