eggzie
03-09-2006, 05:56 PM
if((_root.lastCoinPlayed == 1) and (_root.pos1==_root.pos2) and (_root.buttonpress1==true) and (_root.buttonpress2==true))
{
_root.msgroot=1
}
if(_root.msgroot==1){
_root.win_mc.gotoAndPlay(1);
}
Im trying to build a simple slot machine for my actionscript class and i've got all my variables in my main timeline and when i try to play my win animation with the conditions that i set= (reels match, have been stopped by pressing the reel buttons, and the 1 coin played), the movie wont play.
Ive tested all the conditions with trace, but the movie wont play within the if statement.
What is going on wrong?
Any help is appreciated
{
_root.msgroot=1
}
if(_root.msgroot==1){
_root.win_mc.gotoAndPlay(1);
}
Im trying to build a simple slot machine for my actionscript class and i've got all my variables in my main timeline and when i try to play my win animation with the conditions that i set= (reels match, have been stopped by pressing the reel buttons, and the 1 coin played), the movie wont play.
Ive tested all the conditions with trace, but the movie wont play within the if statement.
What is going on wrong?
Any help is appreciated