You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mark goldin <ma...@gmail.com> on 2013/10/09 18:26:12 UTC
Component creation order
If I have the following mxml:
<s:VGroup>
<ns:Component1/>
<ns:Component2/>
<ns:Component3/>
....
</s:VGroup>
Is it guaranteed that creat5ionComplete for each component is going to go
in a natural order: from 1 to 3?
Thanks
RE: Component creation order
Posted by Kessler CTR Mark J <ma...@usmc.mil>.
added event [1]...
[1] http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#event:added
-Mark
-----Original Message-----
From: mark goldin [mailto:markzolotoy@gmail.com]
Sent: Wednesday, October 09, 2013 12:47 PM
To: users
Subject: Re: Component creation order
I see.
What's an event that fires when a component is added to vGroup? I mean in
the component itself.
On Wed, Oct 9, 2013 at 11:39 AM, Alex Harui <ah...@adobe.com> wrote:
> Not for complex components.
> ________________________________________
> From: mark goldin [markzolotoy@gmail.com]
> Sent: Wednesday, October 09, 2013 9:26 AM
> To: users
> Subject: Component creation order
>
> If I have the following mxml:
>
> <s:VGroup>
> <ns:Component1/>
> <ns:Component2/>
> <ns:Component3/>
> ....
> </s:VGroup>
>
> Is it guaranteed that creat5ionComplete for each component is going to go
> in a natural order: from 1 to 3?
>
> Thanks
>
Re: Component creation order
Posted by mark goldin <ma...@gmail.com>.
I see.
What's an event that fires when a component is added to vGroup? I mean in
the component itself.
On Wed, Oct 9, 2013 at 11:39 AM, Alex Harui <ah...@adobe.com> wrote:
> Not for complex components.
> ________________________________________
> From: mark goldin [markzolotoy@gmail.com]
> Sent: Wednesday, October 09, 2013 9:26 AM
> To: users
> Subject: Component creation order
>
> If I have the following mxml:
>
> <s:VGroup>
> <ns:Component1/>
> <ns:Component2/>
> <ns:Component3/>
> ....
> </s:VGroup>
>
> Is it guaranteed that creat5ionComplete for each component is going to go
> in a natural order: from 1 to 3?
>
> Thanks
>
RE: Component creation order
Posted by Alex Harui <ah...@adobe.com>.
Not for complex components.
________________________________________
From: mark goldin [markzolotoy@gmail.com]
Sent: Wednesday, October 09, 2013 9:26 AM
To: users
Subject: Component creation order
If I have the following mxml:
<s:VGroup>
<ns:Component1/>
<ns:Component2/>
<ns:Component3/>
....
</s:VGroup>
Is it guaranteed that creat5ionComplete for each component is going to go
in a natural order: from 1 to 3?
Thanks
Re: Component creation order
Posted by Jeffry Houser <je...@dot-com-it.com>.
No, it is not. Read up on the Flex Component LifeCycle (
http://help.adobe.com/en_US/flex/using/WS460ee381960520ad-2811830c121e9107ecb-7fff.html
).
Depending what happens inside those components, it is entirely
plausible that Component 2 may dispatched a creationComplete event
before Componetn1; or that Component3 will dispatched a creationComplete
event before Component2 or Component 3.
The only thing you can truly count on is the order the components are
placed inside the VGroup.
On 10/9/2013 12:26 PM, mark goldin wrote:
> If I have the following mxml:
>
> <s:VGroup>
> <ns:Component1/>
> <ns:Component2/>
> <ns:Component3/>
> ....
> </s:VGroup>
>
> Is it guaranteed that creat5ionComplete for each component is going to go
> in a natural order: from 1 to 3?
>
> Thanks
>
--
Jeffry Houser
Technical Entrepreneur
http://www.jeffryhouser.com
203-379-0773