Archive for February, 2009

Feb
13

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:

var _bmp: Bitmap;
_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

stage.quality = StageQuality.BEST;

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?”

Feb
12

Techfit props

Well, this morning, the Adidas Techfit site, the first of a series of microsites that Struck is building for Adidas, was given the FWA Site of the Day award. If you’re not quite sure what that means, suffice to say they’re a good thing to receive.

I didn’t really work on this one at all – I just want to give props to Tyler, Wes, and Thom for rockin’ the development of this bad boy, and of course Jeramy and Jon for the design. Well done, gentlement.