just to inform you that I find solution, it should be like this
private function getLoginHandler(evt:ResultEvent):void
{
TextRole.text = evt.result.toString();
currentState = (evt.result.toString());
}
This is used to read information from database and set State for that
kind of user.
I hope that this will help someone.
greetings
On Oct 14, 7:37 am, explorer <[email protected]> wrote:
> How can I change State from function iniside component. Like when I
> get answer from database to send back name of new state. This code of
> state transition should be in resultHandler function. I tryed sometihg
> like this
>
> private function getLoginHandler(evt:ResultEvent):void
>
> {
>
> TextRole.text = evt.result.toString();
> currentState = 'evt.result.toString()';
>
> }
>
> this don t work, and one more thing do I need to set bubble option to
> true in order to change state of main application from component.
>
> Thx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---