The problem usually has to do with the fact that images are loaded
asynch so they don't get measured properly the first time.

 

If you know the size of the image, set the mx:Image to that size so it
will hold space for it when it comes in.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of doubleyoucue
Sent: Monday, July 07, 2008 1:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ViewStack init images problem

 

Hello,
I'm having a problem with initializing my ViewStack that contains 2
image files on application startup; I'll try my best to explain:
I'm using a ViewStack to hold 2 boxes that each contain a large image
that I'm using for a background. I switch between these images using 2
blur transitions, ideally:
bgImage1->blurOut, blurIn->bgImage2

However, this doesn't work properly the very first time the
application switches between images:
bgImage1->blurOut, [bgImage2-full], blurIn->bgImage2

Though after the first time it works as intended.
I'm trying to get rid of the 'background image #2' flash I'm getting
in between by blur transition.
I've set the ViewStacks creationPolicy to "all", but that has had no
effect.
Any help would be appreciated, thanks!
Billy

 

Reply via email to