Login / Sign Up

Your cart has 9 products totalling 306.50 USD

Image smoothing in Flash Actionscript 2

 

 

In order to have a smooth sharp crisp image / photos display in your Flash movie you could use the forceSmoothing property of movieclips.

You must set this property to true only after the image is loaded.

Here's an example:

createEmptyMovieClip("imageMC", 0);
var loadListener:Object = new Object();
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
mcLoader.loadClip(imageURL, imageMC);
loadListener.onLoadInit = function () {
    imageMC.forceSmoothing = true;
}

 

  • COMMENTS
  • SEARCH COMMENTS
Paulo Augusto

OMG. You save my day!!! Thx man!!!

Posted 18 Days Ago
manoj

tanq u…

Posted 2 Months Ago
she7ata-dot-com

good, i did not know that, and i was wonder how smooth option allowed on jpeg but not dynamically or with code!., i was making workaround like apply Blur filter on BitmapData object :-).
Thanks, will try this now.

Posted 6 Months Ago
Bogdan

Nice. I didn’t know that

Posted 8 Months Ago
silver

cool, thx !!!!

Posted 1 Year Ago

Leave a Reply

Only alphanumeric characters allowed
Please type a message!
Format your comments using Textile: *bold*, _italic_, "link text":address, @code@