Hi All,
I’m having a little trouble with this If and Else If condition and I’m not getting any errors. I have 6 MovieClips and I’m trying to check if the MovieClips not being pressed are on frame 1, if so do nothing. But if they are in the “Up” state have which ever one gotoAndPlay the “down” animation.
Here is the code I’ve been working on so far. I appreciate any time and replies and though I should have learnt this awhile ago, I’m making an attempt to finally approach conditions. Thanks.
DLbtnMC.onPress = function(){
gotoAndPlay(“up”);
// Check condition of Thumb 1
if (_root.expanded.thumb1.btnMC == “1”) {
_root.expanded.thumb1.btnMC.stop();
} else {
_root.expanded.thumb1.btnMC.gotoAndPlay(“down”);
}
// Check condition of Thumb 3
if (_root.expanded.thumb3.btnMC == “1”) {
//_root.expanded.thumb3.btnMC.gotoAndStop(1);
} else if (_root.expanded.thumb3.btnMC == “up”) {
_root.expanded.thumb3.btnMC.gotoAndPlay(“down”);
}
}
// Check condition of Thumb 4
if (_root.expanded.thumb4.btnMC == “1”) {
_root.expanded.thumb4.btnMC.gotoAndStop(1);
} else if (_root.expanded.thumb4.btnMC == “up”) {
_root.expanded.thumb4.btnMC.gotoAndPlay(“down”);
}