I ran across this anomaly and wonder if anyone else has encountered it
and what a possible solution would be.

I am trying to create a scenario whereby when a UIComponent becomes
visible (loaded as part of a (application) viewstate change), it
registers listeners to certain events, and when it becomes invisible
(the viewstate changes so it is not in the active view anymore), it
unregisters those listeners.

This works all and well with the add and remove attributes for a given
UIComponent mxml definition, _except_ when that component is
dynamically loaded into the application in the content of a mx:Module.
For some reason, the events (mx.events.FlexEvent.ADD and
mx.events.FlexEvent.REMOVE) are either never dispatched or never
received by the handler in the very same UIComponent subclass that
changes visibility and registers the listener.

Any explanation or suggestion on how to detect UIComponent visibility
(to the user) in this case would be really appreciated, 

thanks,
vx

Reply via email to