1 Reply Latest reply on Aug 7, 2012 11:26 PM by BBlommers

    Changing to fx

    Captain825 Level 1



      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")


                    mx.controls.Alert.show("Invalid username/password");







      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.