Manish,

 

I implemented the creationPolicy=”auto” and my tab navigator is still creating all of the children at load time.  Like I said, I have an empty Tab navigator in the MXML code itself…when the user logs in, I trigger a GetUserApplications event which calls the command class, triggers the delegate class method which returns to the Application component view an array of strings listing all the apps the user has access to which I immediately loop through and create the associated tabs on the navigator and the corresponding components for each tab…I’m guessing the creation policy setting doesn’t apply to children dynamically attached to the navigator component?  If I had the components actually listed in the MXML file, this works but I’m doing this on the fly because one user may only have access to app #1 and #2 whereas another may have all-access…so I need to do this dynamically and it works and my code I had written before your post about deferred instatiation built into the tab navigator still does the trick in the meantime.

 

Thanks again,

Rob

 

Robert L. Brueckmann

Web Developer

Merlin Securities,LLC

595 Madison Avenue

New York, NY 10022

p: 212.822.4821
f: 212.822.4820


From: Manish Jethani [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:13 PM
To: [email protected]
Subject: Re: [flexcoders] createChild

 

On Mon, 14 Feb 2005 09:55:39 -0500, Robert Brueckmann
<[EMAIL PROTECTED]> wrote:

[snip]
> strings…I use this array of strings to create tabs for my tab navigator.
> The only "application" that is created at load time is the first tab being
> displayed…the others are only created at runtime when the user clicks on
> that application's corresponding tab.  The problem I'm having is when I
[snip]

Have you looked at the TabNavigator component? It supports deferred
instantiation. You don't need to do this yourself.

http://www.macromedia.com/devnet/flex/articles/client_perf_06.html

Manish


 

This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.

Reply via email to