Hi, I am a beginner in Actionscript so would require some assitance.
Right below I am trying to click the submit button to go to a particular frame after going through an if condition but it does not seem to work.
Below are my codes:
Quote:
on (press) {
function onClick() {
var selectedVal = radioGroup.getValue();
if (selectedVal == 'Wrong') {
trace("YOU ARE WRONG!");
gotoAndStop(2);
} else {
gotoAndStop(3);
}
}
submitBtn.setClickHandler("onClick");
}
|
Thanks for your kind help!