Hello guys! I have a movieclip on frame 2, named “sual”. And have a button on frame 3. When i release the button it always booms. if (Number(sual:sualNow) == 1) condition doesn’t work. I tried “_root” etc… How can i solve that?
sual’s code:
sualNow = 1;
Button’s code:
on (release) {
if (Number(sual:sualNow) == 1) {
yumurta.gotoAndStop (“2”); // level up
}else {
yumurta.gotoAndStop (“3”); // boom
}
}