Dear All,
Please check this code, what is the problem?
AS3 :
public function validateLogin(e:String):void{
trace(e);
if('OK' == e){
mx.controls.Alert.show("OK");
//navigateToURL(tujuan,'_self');
}else{
mx.controls.Alert.show("FALSE");
//po.text="Username or Password WRONG";
}
}
MXML:
<mx:HTTPService id="login_srv" url="http://localhost/flex/session.php"
method="POST" result="validateLogin(String(event.result))">
<mx:request>
<username>{username_checked}</username>
<password>{password_checked}</password>
</mx:request>
</mx:HTTPService>
The "trace" value is "OK" but in the if statement the app always show alert in
"False".
Thanks
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.