Optimizing Images for Flash

If you've ever worked with images in Flash, you will know that small details are easily lost of blurred if you place pictures directly on canvas.

Fortunatelly, there is a way how to keep the quality of images by using simple scripting. You need to load an image from external source and scale it to 80% of the orinigal size.
It's been proven that 80% is the exact number which has to be used.



The example below shows the difference:




How it works

Create an empty movie clip, then load an image and scale it:

loader.loadMovie("imageBig.jpg");
loader._xscale = 80;
loader._yscale = 80;


'Loader' is a name of the empty movie clip.



Download the source code >