PDA

View Full Version : MC's as button, is not responding...


pawnrush
08-13-2008, 03:31 AM
I have a game that has multiple choice cards which are movie clips acting as buttons. I have recycled the cards over 45 frames, mixing them as the game continues. The buttons are not all not working properly. I have swapped them out, and restarted Flash, and renamed them w/ and w/o numbers.

What am I doing wrong, can I not use an instance of a movie clip multiple times? Here's one frame of code I have, and five frames before and after is the exact code, except different names for the buttons (which are movie clips). I have not exported the movie clips with linkage, just changing the instance names.

q1s1.onRelease = function ():Void
{
checkAnswer ("f");
_root.mySound.start (0);
gotoAndPlay ("corners");
};

q2s1.onRelease = function ():Void
{
_root.mySound.start (0);
checkAnswer ("g");
gotoAndPlay ("racers");
};

q3s1.onRelease = function ():Void
{
_root.veryGood_Sound.start (0, 1);
gotoAndPlay ("level g");
};

Thank you, I have been hovering this problem for about 4 hours, maybe 5.

Heloed
08-13-2008, 05:00 AM
What exactly isn't working/Error messages?

pawnrush
08-13-2008, 05:06 AM
My movie clip buttons are not responsive. Could it be i have too many movie clips on one timeline ( 75)? They all have different instance names.

Inline853
08-13-2008, 07:28 AM
attach .fla

atomic
08-13-2008, 07:35 AM
Are they present on stage on the frame you're assigning the above handlers?

They need to be!

Add a trace action to see if any one of them responds or not...

q2s1.onRelease = function ():Void
{
trace("YO!");
_root.mySound.start (0);
checkAnswer ("g");
gotoAndPlay ("racers");
};

No trace output? Attach your .fla...

pawnrush
08-13-2008, 07:58 AM
Here is the link to my .fla -> http://www.afterschoolchess.net/action/

I have a main fla, that will load clicking the top button. This will then load back to the main timeline to play frame label "goat" that loads the movie clip on this frame. I have "cards" that will be clicked, but having a tough time keeping these guys as buttons.

Thanks so much for your help.

Here's one of the problems -> on "candygameSLS01.fla, frame 71, the top movie clip button of the goat will not work. I have tried deleting, and replacing, renaming, restarting computer, swapping images, and still will not work. Although, I have gotten a few other images to work, only to disable a few others. Very strange, but I know you guys will figure out my humble mistake.