UIComponent has an "add" event that is dispatched when it is added to a Container. - Gordon
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of reflexactions Sent: Thursday, August 02, 2007 10:46 PM To: [email protected] Subject: [flexcomponents] How can a component know when its been added? Just wondering what sure fired way there is for a component to know its been added as the child of something (a UIComponent, a DisplayContainer)? parentChanged - called BEFORE the component is added, no good stylesInitialized - called BEFORE and also I think potentially before the components createChildren, so no good initialize - called AFTER being added, ok thats good but..initilaize is only called if the component hasnt been intialized already. So its not garaunteed to always be called.. ( However I am having a hard time finding where "initialized" gets set, from what I can see it set by the LayoutManager, but does that mean if my component is added as a child of a basic UIComponent LayoutManager wont be called and therefore "initialized" would never get set to true so the function initilized will always get called...??????) Thanks
