This content has been marked as final. Show 7 replies
you can use the bitmapdata class for pixel-by-pixel control. (but for simple mirror images you can simply use duplicatemovieclip, scaling and alpha to achieve the desired effect.)
Thank you for replying.
A) The BitmapData class is used only for Bitmap Images, or it can be used for "vector" images/graphics (like those of Flash / Illustrator)?
B) Is there any way to create gradient alpha effects (not just alpha change)? I mean, the left side of the Object to me normal, and the right side to be totally transparent (alpha=0), while in middle alpha=50.
A) you can use any movieclip to create a bitmapdata instance using the draw() method.
B) yes, check the beginGradientFill method of the graphics class.
a) yes only for bitmap image data - however you can 'draw' any on stage clip into a BitmapData object. Then you can attachBitmap using the Bitmap data object to the current clip.
b) yes - in the colors pallet if you have applied a gradient, you can select any of the color points on the bar and reduce the alpha by any amount.
However, if you are planning on using this for the 'mirror' effect - you will need to create a mc that 'overlays' the newly created mirror image clip and then use it to mask the mirror - remember that when using a alpha based mask both the mask and the maskee need to have their 'cacheAsBitmap' properties set to true.
sorry for jumpin in there kg :)
Thank you guys.
I have to read much stuff about BitmapData and do some experiments to learn how to use it the way I way.
As for the mirror case, getting an idea of you I googled the correct words and found a nice tutorial (worked!) which I appose: