great tips, thanks !
On 1/15/06, jgraham_us <[EMAIL PROTECTED]> wrote:
Well I came up with a solution.
Basically when the viewstack in initialized I create just the view
containers for each view in the viewstack, setting an initialization
flag to false.
Then when the change event gets fired on the viewstack I check that
flag and dynamically create the children in the view at that point.
So in a nutshell the creation of a view in the viewstack is delayed
until the user actually switches to a given view for the first time.
Seems to work fine and the load time is very fast now.
--- In flexcoders@yahoogroups.com, "jgraham_us" <[EMAIL PROTECTED]>
wrote:
>
> I have a linkbar with a viewstack, the viewstacks children are
VBox'es
> that have rather complicated layouts that are done dynamically. The
> initial load time takes too long. I want to create the views when
> they are requested for the first time, from a click on the linkbar,
> instead of them all being loaded initially.
>
> I have tried to place a creationPolicy="queued" on the VBox'es that
> are being put in the viewstack but since I am creating the rest of
the
> VBox dynamically it isn't working correctly.
>
> Anyone have a suggestion on how to handle something like this?
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.