Changing to fx


hi

 

using flash builder 4.6 , changed code mx:script fx:script , have whole new set of problems.

 

here code:

 

<fx:script>

       <![cdata[

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

              }            

              }

       ]]>

</fx:script>

 

 

i'm getting following errors:

"type not found or not compile time constant"

and

"access of undefined property result"

 

 

any appreciated.

 

thanks,

which importstatement used resultevent-object?

 

using import mx.rpc.events.resultevent;, code compiles fine in environment.



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support