Flash Zoom Quality

I have a flash application in which I need to scale MovieClip. This MovieClip contains an image (in the bootloader) with a resolution of 1024x768 (which is also the size of a MovieClip).

When I want to scale this MovieClip to 80%, I do:

myMovieClip.scaleX = 0.8; myMovieClip.scaleY = 0.8; 

The problem is that the resulting scaled image has aliases and is not of good quality. Is there a way to change the scaling algorithm used to get a better image? Or is there a better way to scale MovieClips?

I cannot rely on bitmap data because this MovieClip may contain another SWF with video, for example, and it should scale independently of its internal content.

Thanks.

+4
source share
2 answers

Before scaling (or its container), you need to set the smoothing property on your bitmap . Also see this link: Bitmap.smoothing - how to reduce image distortion .

+6
source

I can not comment on the accepted answer, but probably the second link is missing : Bitmap.smoothing - how to reduce image distortion

From the link: To reduce distortion when resizing a raster image, if it is loaded from the outside:

 var image:Bitmap=loader.content as Bitmap; image.smoothing=true; 

If this is a bitmap from the library, just check its "Allow anti-aliasing" property

+1
source