Using Flash Builder 4.6 and I changed my code from mx:script to fx:script and now I have a whole new set of problems.
Here is my code:
private function checkLogin(evt:ResultEvent):void
if(evt.result.loginsuccess == "yes")
currentState = "Logged In";
if(evt.result.loginsuccess == "no")
I'm getting the following errors:
"Type not found or was not a compile time constant"
"Access of undefined property result"
Any help would be greatly appreciated.
Which importstatement is used for the ResultEvent-object?
Using import mx.rpc.events.ResultEvent;, your code compiles just fine in my environment.