Weldon, here's the method I've wrote to handle the blending. It's very
simple and I cannot detect any bug in there ...
public static function alphaBlend(fromImage:MovieClip,
toImage:MovieClip):Void
{
fromImage.swapDepths(100);
fromImage._alpha = 100;
fromImage._visible = true;
toImage.swapDepths(101);
toImage._alpha = 0;
toImage._visible = true;
toImage.onEnterFrame = function():Void
{
if (toImage._alpha < 100)
{
toImage._alpha += 5;
}
else
{
toImage._alpha = 100;
delete toImage.onEnterFrame;
}
};
}
The blending works but strangely the fromImage is not shown, instead the
toImage fades in from the white background of my Flash movie. As I mentioned
before there are other image mc's in the holder movieclip but they are on
depths 0 to 20 and are invisible so I doubt they have any influence on this.
Sascha
----- Original Message -----
From: "Weldon MacDonald" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Sunday, March 19, 2006 4:55 AM
Subject: Re: [Flashcoders] Alpha-blending two MC's with bitmaps?
I've done what you seem to be discribing and it works. You probably
have a small bug in your code. Without seeing the code it's hard to
say what it is, but you could look for a depth duplication problem.
Have you made certain the lower one is loading at all or has been made
visible...etc... Your idea will work, you just need to do some
debugging
On 3/18/06, Sascha Balkau <[EMAIL PROTECTED]> wrote:
Hi Michael,
there are several mc's in one container mc but all are set to invisible
except for two at a time. And I want to fade between these two but I
haven't
managed to do so. The top most mc always fades in from the white
background
as if the bottom mc would be invisible. But it isn't. Flash 8 is no choice
as my client wants it in Flash 7.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com