Tuesday, June 26, 2012

[Action Script] Problem with matching input fields June,2012

Hi guys,

Im having a problem with my code, it doesn't seem to do what it needs to do, it keeps saying that i have entered a incorrect value and removes a life from me, Which is weird because it matches the variable

so heres the code

ActionScript Code: stop();Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;sendcall.addEventListener(TouchEvent.TOUCH_TAP, fl_TapHandler_4);var number = String(5552326666);function fl_TapHandler_4(event:TouchEvent):void{    if(numerinput.text == number){    cc();    nextFrame();    }else if(numerinput.text != number){             removelives(1);             trace(numerinput.text);             }        }

So can anyone please point out where theres something wrong ?

Thanks,
Emmanuel lopen
Problem with matching input fields

Related Post



0 comments: