1 person found this helpful
I think best practices calls for using custom events, and when the successful login event is dispatched and then received, it would result in a flag variable being set to true in a data model (MVC).
My Flex Cookbook post shows a simple MVC hand rolled:
And this one shows custom events in action:
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
Flex / AIR Development, Training, and Support Services
I also thought that this would be the best way to do it.
But I think there are places in an application where you cant avoid Binding.
Binding is not to be avoided, as it is a valuable part of Flex, but sometimes when you use binding you end up hard wiring components into your application, which limits your ability to more easily reuse code.
Thanks, thats an approach that never passed my mind.