Re: [flexcoders] init, creationcomplete and other events

2010-05-20 Thread Angelo Anolin
Hi Gordon,

Thanks a lot. This explains a lot.

Angelo




From: Gordon Smith gosm...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Wed, 19 May, 2010 21:58:54
Subject: RE: [flexcoders] init, creationcomplete and other events

  
From the ASDoc for these events:
preinitialize:
Dispatched
at the beginning of the component initialization sequence. The component is in
a very raw state when this event is dispatched. Many components, such as the
Button control, create internal child components to implement functionality;
for example, the Button control creates an internal UITextField component to
represent its label text. When Flex dispatches the preinitializeevent, the
children, including the internal children, of a component have not yet been
created.
initialize:
Dispatched when the component has finished its construction and has all
initialization properties set. After the initialization phase, properties are
processed, the component is measured, laid out, and drawn, after which the 
creationCompleteevent is
dispatched.
creationComplete:
Dispatched when the component has finished its construction, property
processing, measuring, layout, and drawing. At this point, depending on its 
visibleproperty, the
component is not visible even though it has been drawn.
applicationComplete :
Dispatched after the Application has been initialized, processed by the
LayoutManager, and attached to the display list.
If you think we
need better explanations, please file a documentation bug. (The second sentence
about creationComplete is confusing, but the rest doesn't seem too bad.)
- Gordon
 
 
 
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Angelo
Anolin
Sent: Wednesday, May 19, 2010 6:41 AM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] init, creationcomplete and other events
 
  
 
Thanks
Alex and Gordon.
 
Is
there some sort of documentation for this?
 
Thanks.
 


 
From:Alex Harui
aha...@adobe. com
To: flexcod...@yahoogro ups.com flexcod...@yahoogro ups.com
Sent: Tue, 18 May, 2010 18:20:36
Subject: Re: [flexcoders] init, creationcomplete and other events

  
Preinitialize,
initialize, creationComplete, applicationComplete .

Objects do not have a stage until applicationComplete .


On 5/18/10 3:22 PM, Angelo Anolin angelo_anolin@ yahoo.com
wrote:


 
 
   

Hi FlexCoders,

Does anyone have a link on which event fires up first?  For example, in an
application container, which event fires up and any other pointers which I have
to be aware of.

Thanks.

Angelo

 
 
   



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


  

Re: [flexcoders] init, creationcomplete and other events

2010-05-19 Thread Angelo Anolin


Thanks Alex and Gordon.

Is there some sort of documentation for this?

Thanks.




From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Tue, 18 May, 2010 18:20:36
Subject: Re: [flexcoders] init, creationcomplete and other events

  
Preinitialize, initialize, creationComplete, applicationComplete .

Objects do not have a stage until applicationComplete .


On 5/18/10 3:22 PM, Angelo Anolin angelo_anolin@ yahoo.com wrote:



 
 
   

Hi FlexCoders,

Does anyone have a link on which event fires up first?  For example, in an 
application container, which event fires up and any other pointers which I 
have to be aware of.

Thanks.

Angelo

 
 
   



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


  

RE: [flexcoders] init, creationcomplete and other events

2010-05-19 Thread Stephen Gilson
You can find more info in the doc here: 
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63825-7fff.html

Stephen

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Angelo Anolin
Sent: Wednesday, May 19, 2010 9:41 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] init, creationcomplete and other events



Thanks Alex and Gordon.

Is there some sort of documentation for this?

Thanks.


From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Tue, 18 May, 2010 18:20:36
Subject: Re: [flexcoders] init, creationcomplete and other events



Preinitialize, initialize, creationComplete, applicationComplete .

Objects do not have a stage until applicationComplete .


On 5/18/10 3:22 PM, Angelo Anolin angelo_anolin@ yahoo.com wrote:





Hi FlexCoders,

Does anyone have a link on which event fires up first?  For example, in an 
application container, which event fires up and any other pointers which I have 
to be aware of.

Thanks.

Angelo






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


inline: image001.jpginline: image002.jpg

Re: [flexcoders] init, creationcomplete and other events

2010-05-19 Thread Alex Harui
I don't think we’ve written documentation that makes the order obvious because 
the first 3 are component lifecycle events and the last is an application 
event.  But they are individually documented and should have reasonable 
descriptions.

There have been lots of presentations on the component lifecycle so maybe some 
book or other media has it.


On 5/19/10 6:40 AM, Angelo Anolin angelo_ano...@yahoo.com wrote:







Thanks Alex and Gordon.

Is there some sort of documentation for this?

Thanks.


From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Tue, 18 May, 2010 18:20:36
Subject: Re: [flexcoders] init, creationcomplete and other events




Preinitialize, initialize, creationComplete, applicationComplete .

Objects do not have a stage until applicationComplete .


On 5/18/10 3:22 PM, Angelo Anolin angelo_anolin@ yahoo.com wrote:






Hi FlexCoders,

Does anyone have a link on which event fires up first?  For example, in an 
application container, which event fires up and any other pointers which I have 
to be aware of.

Thanks.

Angelo







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


RE: [flexcoders] init, creationcomplete and other events

2010-05-19 Thread Gordon Smith
From the ASDoc for these events:

preinitialize: Dispatched at the beginning of the component initialization 
sequence. The component is in a very raw state when this event is dispatched. 
Many components, such as the Button control, create internal child components 
to implement functionality; for example, the Button control creates an internal 
UITextField component to represent its label text. When Flex dispatches the 
preinitialize event, the children, including the internal children, of a 
component have not yet been created.

initialize: Dispatched when the component has finished its construction and 
has all initialization properties set. After the initialization phase, 
properties are processed, the component is measured, laid out, and drawn, after 
which the creationComplete event is dispatched.

creationComplete: Dispatched when the component has finished its construction, 
property processing, measuring, layout, and drawing. At this point, depending 
on its visible property, the component is not visible even though it has been 
drawn.

applicationComplete: Dispatched after the Application has been initialized, 
processed by the LayoutManager, and attached to the display list.
If you think we need better explanations, please file a documentation bug. (The 
second sentence about creationComplete is confusing, but the rest doesn't seem 
too bad.)
- Gordon






From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Angelo Anolin
Sent: Wednesday, May 19, 2010 6:41 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] init, creationcomplete and other events



Thanks Alex and Gordon.

Is there some sort of documentation for this?

Thanks.


From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Sent: Tue, 18 May, 2010 18:20:36
Subject: Re: [flexcoders] init, creationcomplete and other events



Preinitialize, initialize, creationComplete, applicationComplete .

Objects do not have a stage until applicationComplete .


On 5/18/10 3:22 PM, Angelo Anolin angelo_anolin@ yahoo.com wrote:





Hi FlexCoders,

Does anyone have a link on which event fires up first?  For example, in an 
application container, which event fires up and any other pointers which I have 
to be aware of.

Thanks.

Angelo






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




RE: [flexcoders] init, creationcomplete and other events

2010-05-18 Thread Gordon Smith
preinitialize - before child components are created
initialize - after children are created, but before component undergoes layout
creationComplete - after layout

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Angelo Anolin
Sent: Tuesday, May 18, 2010 3:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] init, creationcomplete and other events


Hi FlexCoders,

Does anyone have a link on which event fires up first?  For example, in an 
application container, which event fires up and any other pointers which I have 
to be aware of.

Thanks.

Angelo




Re: [flexcoders] init, creationcomplete and other events

2010-05-18 Thread Alex Harui
Preinitialize, initialize, creationComplete, applicationComplete.

Objects do not have a stage until applicationComplete.


On 5/18/10 3:22 PM, Angelo Anolin angelo_ano...@yahoo.com wrote:






Hi FlexCoders,

Does anyone have a link on which event fires up first?  For example, in an 
application container, which event fires up and any other pointers which I have 
to be aware of.

Thanks.

Angelo







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