candice
12-17-2008, 01:44 PM
Hi all, im currently developing an application where the user needs to choose from a set of radio buttons. I need to make sure that the user selects one of the choices before going on to the next page. Attached below is my code:
next_btn.onRelease = function(){
if(paint_1.selected == false || paint_2.selected == false || paint_3.selected == false){
error_txt.text = "Please select one of the choices before proceeding to the next stage";
}
else{
gotoAndPlay("Scene 3");
}
}
I need to use the OR syntax in flash to integrate it into the if/else statement, but somehow the statement doesnt work. Can anyone help me?
next_btn.onRelease = function(){
if(paint_1.selected == false || paint_2.selected == false || paint_3.selected == false){
error_txt.text = "Please select one of the choices before proceeding to the next stage";
}
else{
gotoAndPlay("Scene 3");
}
}
I need to use the OR syntax in flash to integrate it into the if/else statement, but somehow the statement doesnt work. Can anyone help me?