KhaledK
05-28-2007, 07:45 PM
Hi all,
For somehow, I need to trigger the event that will be fired once the component displayed.
Lets take the following example:
root
|____comp1 (Panel)
|____comp2 (Panel)
root will be responsible about changing the states according to the event dispatched by either comp1 or comp2.
And if root changed the currentState into another one contains comp1, I want in this case comp1 to fire an event that indicate that comp1 now is visible for the user.
How can I do that?
I have tried "addedToStage" but not sure about it.
Thanks in advance.
For somehow, I need to trigger the event that will be fired once the component displayed.
Lets take the following example:
root
|____comp1 (Panel)
|____comp2 (Panel)
root will be responsible about changing the states according to the event dispatched by either comp1 or comp2.
And if root changed the currentState into another one contains comp1, I want in this case comp1 to fire an event that indicate that comp1 now is visible for the user.
How can I do that?
I have tried "addedToStage" but not sure about it.
Thanks in advance.