Changing from one child to another actually requires 2 effects. You see the first fade out, then the second fades in.

PairedStackEffect enables you to combine the 2 effects into one.

http://www.tink.ws/blog/pairedstackeffect-fade-squash/

There's a fade example there which might be what your after.


Tink




On 18 Apr 2008, at 21:07, mthomas1969 wrote:


I found a way to do this by setting blendMode="layer" on the parent
canvas. I'm not sure *why* it works, though...!

--- In flexcoders@yahoogroups.com, "mthomas1969" <[EMAIL PROTECTED]> wrote:
>
> This one's got me stumped:
>
> I'm using a fade effect to fade out a canvas from alpha 1 to alpha 0.
>
> The canvas contains two overlapping PNG images, using <mx:Image>.
>
> The problem is that when I do the fade out effect (targeting the
> canvas), it looks like the alpha property of each child image
> is "fading" from 1 to 0, so that the background image begins to show
> through the foreground image as the fade progresses.
>
> How would I prevent this? Is there a way to treat all of the visuals
> in the canvas as a single entity whose alpha is "faded" out?
>
> thx!
> -Matt
>




Reply via email to