PDA

View Full Version : scaling images in flash 8 and above without loosing quality


setVariable
07-09-2007, 12:06 AM
Hi,

Does anyone know of a way to scale images without them 'pixelating' or degrading in quality and are smooth?

Here is an example www.isodesign.co.uk (http://www.isodesign.co.uk)

This is done by embedding the image in a version 7 swf then loading it into another swf created in version 8, if you load the image directly into version 8 + it degrades the image on resize both up and down and doesn't have the same 'smooth' appearance on scaling?

Does anyone have any ideas how to do this without involving pre version 8 swf's?

Ah hank u

setVariable
07-13-2007, 08:06 AM
anyone? There has to be someone who has came across this before?

bluerattle
07-24-2007, 05:18 AM
Flash 8 requires you to attach a BitmapData object with smoothing turned on, in order to achieve smooth scaling of images.

http://www.actionscript.org/forums/showthread.php3?t=119843

The one correction I would add is that the technique of using

_quality = "BEST";

to optimize the quality still is a needed step for best results. (Some messages claim that it is for older versions and no longer applies to Flash 8, but in my experience it does apply; it is simply not sufficient on its own -- it must be done in addition to using BitmapData with the smooth flag turned on.) An alternative way to set _quality for Flash within a web page is in the object-embedding code:

<embed src="app.swf" quality="best" ... etc.