Using Flash 8;
Hello,
I have a problem with a tutorial I used, on the subject, “Bitmap Caching - Alpha Masks”. The tutorial is found here, http://www.devx.com/webdev/Article/29296/0/page/1.
This basically uses some of the new bitmap runtime features, along with masking, to “_Alpha tween from one picture to another”. You place image 1 on layer 1, then image 2 on layer 2 and using the code “maskee.cacheAsBitmap = true; and maskMC.cacheAsBitmap = true;” slowly “reveal” the 2nd layer using an _alpha tween (there is other code involved of course!).
The problem is that it seems half the time, the 2nd image will not be “fully revealed”, meaning that some of the layer 1 image is still showing. But then sometimes the effect works great and looks nice and clean.
This is a cool effect for a “Before and After” photo gallery I am working on, but not when image 1 is kind of “mixed” together with image 2.
The code works most of the time, I’m wondering if anyone has any ideas, why it sometimes seems to “get stuck half-way”?
Or does anyone know of other tutorials which describe this effect?
I have this effect live online if anyone wants to see it, just post here, or I can also post the source code, which is basically the same as the tutorial.
Thanks…