the flash player is single threaded, so completeInitialization will 
finish before the screen is updated. you need to wait until an idle event
has passed to call completeInitialization. do something like this:

<attribute finishdel=new LzDelegate( this, 'finishInit' );

if not initialized
    showLoadingSign();
    LzIdle.callOnIdle( finishdel );

<method finishInit
    completeInitialization();
    dontShowLoadingSign();

A


On Dec 27, Vikas Bhatia wrote:

> In my app, I have these classes that are deferred initialization. When
> it is time to instantiate them, I do complete instantiation.
> 
> if not initialized{
>    showLoadingSign();
>    completeInitialization();
> }
> 
> however the showLoadingSign() never shows up. Looks like that the
> completeInitialization(); takes the time it needs to initialize
> (effectively freezing the UI) but the loading sign does not show up.
> 
> any ideas why this is happening?
> 
> Thanks.
> 
> V.
> 
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> 
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to