Quality Check
![]()
So… been working on a dev project at Struck, but ran into an a bit of a bug. Loading in images and then trying to apply smoothing to them:
_bmp = _loader.content as Bitmap;
_bmp.smoothing = true;
However, when scaling the images down, it was clear that they simply weren’t smoothing. I asked around, and tried lots of things – cacheAsBitmap, everything everyone else could think of. Don’t know if it was because I’m building it as a ActionScript project in Flex Builder, don’t know if there was some setting somewhere that I messed up – really no clue.
Well, I have to say, still don’t fully understand what is wrong. Something strange is definitely going on. What I did discover, though, is this: while when I right clicked on the flash player, it told me that the quality was set at ‘High.’ However, if I manually reselected a ‘High’ quality level, poof, everything started smoothing!
So, while I’m still completely baffled by the bizarre quality bug, but if I set it using Actionscript, it works correctly! So in my base swf, I just include
And, well, it works. And I think I’ll be using that all the time from now on – according to the Adobe AS3 docs, setting the quality to StageQuality.BEST will smooth everything automatically, and how many times have I heard the question “Why don’t images just smooth by default?”
