Re: [flexcoders] Basic Doubt - Flex Module

2011-08-29 Thread Alex Harui
I would have the button listen for events from the module.


On 8/29/11 4:12 PM, "Venkat M"  wrote:







Hi Group,

I have a basic question on modules and module loader in flex. Can some on help 
out please?

I have a main application that loads up any one of the available 4 (A,B,C,D) 
modules from a dropdown. The module loader in the main application is binded to 
the combobox of choice and the particular module loads up.For example if user 
selects A from combobox, module A.swf loads up. When the user changes the 
option to B in dropdown, the module loader unloads module A and loads Module B. 
This is the scenario.

How can I control a logout button (activate/deactivate) in main application 
with the value of flag variable provided in all the modules.

All the modules has a flag variable in them, when some action is being 
performed within the module the flag is set to 1, other wise 0; So my button on 
main application should be active only when the flag in the currently loaded 
module is 0. How do I deal with this.

Thanks in advance!!

Best Regards,
Venkat Maddali.







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Basic Doubt - Flex Module

2011-08-29 Thread Venkat M
  
Hi Group,
 
I have a basic question on modules and module loader in flex. Can some on help 
out please?
 
I have a main application that loads up any one of the available 4 (A,B,C,D) 
modules from a dropdown. The module loader in the main application is binded to 
the combobox of choice and the particular module loads up.For example if user 
selects A from combobox, module A.swf loads up. When the user changes the 
option to B in dropdown, the module loader unloads module A and loads Module B. 
This is the scenario.
 
How can I control a logout button (activate/deactivate) in main application 
with the value of flag variable provided in all the modules.
 
All the modules has a flag variable in them, when some action is being 
performed within the module the flag is set to 1, other wise 0; So my button on 
main application should be active only when the flag in the currently loaded 
module is 0. How do I deal with this.
 
Thanks in advance!!
 
Best Regards,
Venkat Maddali.