Friday, March 27, 2009

What are the methods called when a UI component is intialized

Question :What are the methods called when a UI component is intialized?
Answer :all components dispatch the following events that let you specify ActionScript to initialize a
component:
preInitialize
Dispatched when a component has been created in a rough state, and no children have been created.
initialize
Dispatched when a component and all its children have been created, but before the component size
has been determined.
creationComplete
Dispatched when the component has been laid out and the component is visible (if appropriate).

No comments: