I have a button that triggers the function addToBet and doesn’t allow the textfileds to show any larger number but I can’t stop the clips with the coins I’m trying to attach. The function showBet keeps running.
any idea of how to achieve this? I have tried using loops but I am really confused.
bet = 1;
function addToBet() {
bet ++;
if (bet>5) {
bet = 5;
return;
}
showBet();
}
function addToBet() {
displayBet = bet;
this.attachMovie(“contCoin”, “contBet”, this.getNextHighestDepth(), {_x:150, _y:400});
contBet.attachMovie(“coin”, “coin”, this.getNextHighestDepth(), {_x:Math.random()*50-50, _y:Math.random()*50-50});
}