View Full Version : Button Related Problem
beebopy
04-25-2009, 06:01 PM
Hi again..
Hope you're not bored with me yet, although I'm getting bored with me!
I keep stumbling across problems after another problem is solved.
Anyway my current problem is that all the buttons inside my movie clip are not responding to the on(press) function and just seem to be playing when the movie clip starts.
In the flash the movie clip is called Rushing_mc and it' s here that my 7 buttons just play when the movie clip starts.
I've added the buttons on top of the movie clip... but i've done that with others and they play fine.
Any advice?
I'd be greatful if someone could help or take a look at my flash (again!) as I'm gettting a bit fed up and almost on the verge of giving up.
here's my .fla http://myfreefilehosting.com/f/f1e6a46e55_44.52MB
:eek:
Kim Jong
04-26-2009, 06:29 AM
Seems that all buttons are working fine for me...
Thing is, as I understand it, if you only want one quote per button press, then at the end of each quote, you need to add some actionscript to return to frame 106, so a new button can be pressed for another quote.
gotoAndStop("rush");
Otherwise, with no stop action, the quotes just play one after the other, until it hits frame 310, where you<re sending the playhead back to frame 19...
gotoAndPlay(19);
beebopy
04-26-2009, 08:50 AM
Hi thanks for the reply.
I tried adding gotoAndStop("rush")
and then gotoAndPlay(106) on an actions layer but this just kept the first movie clip playing over and over. I tried gotoAndStop("quote1") this is a frame label for my quote and then gotoAndPlay(106) but as above it just plays over and over.
Kim Jong
04-26-2009, 05:00 PM
Of course, what I suggested works fine...
http://rapidshare.com/files/225998004/Five_Phrases3_1.swf.html
Only coded the 3 bottom buttons, not the others...
Thing is, you also need to match the exact number of frames of each quote mc itself, to the frames number of each quote on the Paper_mc's timeline.
Thus if quote1 is 30 frames long, then you need to have 30 frames for that quote on the Paper_mc's timeline, from frame 107 to frame 137.
If you have more than 30 frames (unless you add a stop action at the end of each quote...) then the quote mc itself will loop back to it's first frame and appear to be repeating...
So you either add a stop action on the last frame of each quote mc itself, or make sure the frames numbers match.
eizzils
04-27-2009, 07:28 AM
HI, to get the buttons to work, did you add a stop action or match the frames on the swf file I downloaded?
Of course, what I suggested works fine...
http://rapidshare.com/files/225998004/Five_Phrases3_1.swf.html
Only coded the 3 bottom buttons, not the others...
Thing is, you also need to match the exact number of frames of each quote mc itself, to the frames number of each quote on the Paper_mc's timeline.
Thus if quote1 is 30 frames long, then you need to have 30 frames for that quote on the Paper_mc's timeline, from frame 107 to frame 137.
If you have more than 30 frames (unless you add a stop action at the end of each quote...) then the quote mc itself will loop back to it's first frame and appear to be repeating...
So you either add a stop action on the last frame of each quote mc itself, or make sure the frames numbers match.
beebopy
04-27-2009, 01:35 PM
could you let me have the .fla file please?
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.