Today 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:
-
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.
jur says:
On November 23rd, 2006 at 16:24
great stuff Martin!
tnx, Jur