Don't put your splash in the viewstack.
- put a ProgressBar in the ViewStack's 1st view instead, set it to 
indeterminate
- load your Splash page up in the popupmanager
- use a doLater to change the ViewStack to the next child
- use another doLater to remove the popup; since it'll take a frame for 
everything to initialize, the next frame your component will be done 
initializing, and the popup will be removed.

----- Original Message ----- 
From: "viraf_bankwalla" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, April 14, 2005 11:06 AM
Subject: [flexcoders] Re: Rendering in background




Sorry - but I do not understand your response.

My Splash page is part of a viewStack as is the application page.
The data is loaded with the splash page being displayed.  The
performance problem is with the rendering of the application page.
This page is initialized when I select it in the viewstack.

So the question is how do I get the page to construct while it is
not displayed, and then switch to it when it has rendered.


Thanks.



--- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote:
> Throw your splash page in a modal popup?
>
> import mx.managers.PopUpManager;
>
> splash = PopUpManager.createPopUp(mx.core.Application.application,
>     YourSplashComponent,
>     true);
>
>
> // later
>
> splash.deletePopUp();
>
> ----- Original Message ----- 
> From: "viraf_bankwalla" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, April 14, 2005 10:07 AM
> Subject: [flexcoders] Rendering in background
>
>
>
>
> Hi,
>
> I have an application that displays a splash page on startup.  It
then
> proceeds to load data for some grids.  Once the data has been
> received, it selects the view to be displayed.
>
> The problem is that this view takes a considerable amount of time
to
> load (it has two grids).  I would like for this view to be
constructed
> in thee background if possible.  When the data is received, and
the
> view has been constructed, I would like to switch from the splash
view
> to the application view.
>
> My question being how do I get the view to render its content in
the
> background while the splash page is being displayed.
>
> Thanks.
>
>
>
>
>
>
> Yahoo! Groups Links






Yahoo! Groups Links








 
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/
 



Reply via email to