PDA

View Full Version : gotoAndPlay button not working!


fabujulous
04-10-2010, 02:21 PM
Hello everyone!

I'm sure there's a little something that i'm not seeing here, but I have the following problem.

I'm making a simple flash site(AS2), could be a presentation too, with as less AS as possible, since I'm not much of a scripter and I really don't want to be one :) but as it happened I was asked to create the presentation from a friend.

So on my timeline I have animated and placed all the images and info as well as 'stop();' and 'gotoAndPlay();' actions here and there, they are mainly to constrain part of the timeline so when the user clicks on a button he's taken past those constraints further on the timeline to another page with information. Problem is, I have four buttons, the first one has a on (release) { gotoAndPlay(107); } on it and frame 107 is past my first stop(); action and is working fine. The second one with the same properties and the same action just a different frame, doesn't work at all! All the buttons have instance names. I can't understand what's wrong. All I have are some stop();, gotoAndPlay();, gotoAndStop(); actions! Do they affect the button behaviors? It's really annoying me and giving me headaches... What am i doing wrong here?

anfractuosities
04-10-2010, 03:42 PM
post your fla

fabujulous
04-10-2010, 04:57 PM
Sure, but it's kinda big! I've got a few image sequences in it looping. I deleted them from the library so it isn't big, but size stays the same. Any idea how I can clean the fla? Is there some kind of a trash or recycle bin in flash? :)

fabujulous
04-10-2010, 05:01 PM
the fla is around 90 MB, but here's the swf

B3Y4Z1D
04-13-2010, 07:08 AM
So on my timeline I have animated and placed all the images and info as well as 'stop();' and 'gotoAndPlay();' actions here and there, they are mainly to constrain part of the timeline so when the user clicks on a button he's taken past those constraints further on the timeline to another page with information. Problem is, I have four buttons, the first one has a on (release) { gotoAndPlay(107); } on it and frame 107 is past my first stop(); action and is working fine. The second one with the same properties and the same action just a different frame, doesn't work at all! All the buttons have instance names. I can't understand what's wrong. All I have are some stop();, gotoAndPlay();, gotoAndStop(); actions! Do they affect the button behaviors? It's really annoying me and giving me headaches... What am i doing wrong here?

Had the exact same problem,the code is all correct so don't change it.

The solution is to remake the button,if you have text over a button it usually comes in between and you appear to be clicking the button but meanwhile you're clicking the text which doesn't have any function other than cover the button like a bag unless you baked it into the shape before converting to symbol button.

So I suggest you do like this:
break the button apart again,remove the text,add the same code to the button without the button containing text and you'll see it works.
Now remake the button and put in the text,then convert it of course to a button.If it doesn't work then keep trying 'til it works.

Hope this helps :)