Hi all,
I have created an input field using as3
the user enter a nummber (only numbers are ccepted)
the code compares this value to one stored previousliy in the program
if the two values matches the program go to a frame labled "sl_bt"
else it go to another one labled "hp1
i get error 1046
this the code:
stop();
var input1_txt:Number;
var answer1:Number = (input1.text);
check1_btn.addEventListener(MouseEvent.CLICK, checkanswer1);
function checkanswer1(e:MouseEvent):void
{
if (answer1 == 9)
{
gotoAndStop("sl_bt");
} else {
gotoAndStop("hp1");
}
}
input text box and conditional statement
Thursday, July 5, 2012
[Action Script] input text box and conditional statement July,2012
Posted by Bimo Hery Prabowo at 11:13 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment