Smoothing is not enabled by default on Image controls. This greatly reduces the quality of scaled images.
Create a custom Image control that enables smoothing by default.
<controls:SmoothImage source="@Embed(source='assets/images/example.png')" />
package
{
import flash.display.Bitmap;
import mx.controls.Image;
public class SmoothImage extends Image
{
override protected function updateDisplayList (unscaledWidth : Number, unscaledHeight : Number) : void
{
super.updateDisplayList (unscaledWidth, unscaledHeight);
// checks if the image is a bitmap
if (content is Bitmap)
{
var bitmap : Bitmap = content as Bitmap;
if (bitmap != null && bitmap.smoothing == false)
{
bitmap.smoothing = true;
}
}
}
}
}