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.
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.