The problem here is that loaded from external source and scaled image looks very bad - it doesn’t smooth.
Here is the code, please paste and look at it:
_quality = "BEST"
this.objLoadImage = {};
this.objLoadImage.onLoadInit = function(image) {
image._xscale = image._yscale = 50;
image._width = Math.round(image._width)
image._height = Math.round(image._height)
image._x = Math.round(image._x)
image._y = Math.round(image._y)
image._quality = "BEST"
image._alpha = 99;
}
this.mclLoadImage = new MovieClipLoader();
this.mclLoadImage.addListener(this.objLoadImage);
this.createEmptyMovieClip("image", 5);
this.mclLoadImage.loadClip("http://java.sun.com/docs/books/tutorial/figures/uiswing/components/TextComponentDemoMetal.png", this.image);
I was trying to use techniques which should help (rounding coordinates, setting _quality to “BEST”, setting _alpha to 99), but they don’t help.
The same image embedded in bitmap symbol in library (not loaded) and placed on Stage looks ok (we must set _quality to “BEST” and “allow smoothing” bitmap symbol property).
Any ideas?