cannot convert mx.utils::ObjectProxy to User
hello!
i error message "cannot convert mx.utils::objectproxy####### user".
here code
private function checkloginhandler(evt:resultevent):void {
// logged player or null
loggeduser = user(evt.result);
if (loggeduser.username != null) {
currentstate="logged_in";
}
else {
mx.controls.alert.show("wrong username/password);
}
}
i dont know im doing wrong. have example , kind reuse , make own. im doing same things still doesnt work. wonder if know problem?
i error message "cannot convert mx.utils::objectproxy####### user".
here code
private function checkloginhandler(evt:resultevent):void {
// logged player or null
loggeduser = user(evt.result);
if (loggeduser.username != null) {
currentstate="logged_in";
}
else {
mx.controls.alert.show("wrong username/password);
}
}
i dont know im doing wrong. have example , kind reuse , make own. im doing same things still doesnt work. wonder if know problem?
you cant cast event.result user object
user(evt.result);
user(evt.result);
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment