Thanks to this forum i've managed to get this code to work:
Code:
on (press) {
if (_root.leftAnimal._currentframe != "snake" && _root.rightAnimal._currentframe != "monekey") {
_root.leftAnimal.gotoAndStop(1);
_root.rightAnimal.gotoAndStop(1);
_root.animal.splicedAnimal.gotoAndStop("snakeMonkey");
_root.animal.gotoAndPlay("go");
}}
BUT when I put an else in the first statement continues to work.
Code:
on (press) {
if (_root.leftAnimal._currentframe != "snake" && _root.rightAnimal._currentframe != "monekey") {
_root.leftAnimal.gotoAndStop(1);
_root.rightAnimal.gotoAndStop(1);
_root.animal.splicedAnimal.gotoAndStop("snakeMonkey");
_root.animal.gotoAndPlay("go");
} else {
_root.leftAnimal.gotoAndStop(1);
_root.rightAnimal.gotoAndStop(1);
_root.animal.gotoAndStop("fail");
}
}
I'm probably missing something really obvious but the code reports no errors so I'm going a bit mad staring at it.
Does anyone know why it doesn't want to do the else statement?
Thankyou very much in advance!!
Fran