views:

22

answers:

1

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

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

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

The problem is the resulting scaled image has aliasing 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 can't rely on bitmap data because this MovieClip may contain another SWF with video for example and it must scale regardless of its internal content.

Thanks.

+2  A: 

You need to set the smoothing property on your Bitmap before you scale it (or its container). Also see this link: Bitmap.smoothing - how to reduce image distortion.

TandemAdam
Thanks, the solution provided in your second link did the trick.
Nebs