thenew.oddend.com

Flash Runtime Bitmap Smoothing

SmoothingToday I noticed how horrible your-at runtime loaded-bitmaps look in Adobe Flash when you rotate them. Horrible. When I tried to figure out why I never noticed that before I quickly came to the conclusion that I always relied on bitmaps from the library. There is no way to turn on Bitmap Smoothing using actionscript.

After asking the mighty Google, it quickly gave me an answer. Tinic Uro, an engineer at Adobe who works on the Flash player, reveals the secret:

  1. MovieClip.forceSmoothing = true;

Apparently this property has been added to the AS 2.0 MovieClip class in Flash Player 8.5, after the behavior was always turned off in version 8 to increase performance. I didn't have a clue it was there, and neither did the Flash documentation, but Uro sure did.

When you set forceSmoothing, set it at the movieclip in which the bitmap is loaded after the loading has completed.

Btw, Tinic Uro is a seriously cool name.

Feedback

One Response to “Flash Runtime Bitmap Smoothing”. Track this discussion through RSS.

  1. jur says:

    great stuff Martin!
    tnx, Jur

Leave a reaction

Keep it decent and to the point.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous article:
Colly’s Winter Stew

Next article:
The Zune Style

You can also head for the front page for more articles and notes.

You can use your browser's functions to scale this page up (ctrl +) or down (ctrl -).

Leaving already? Take the RSS snacks.