Archive for November, 2009

cacheAssBitmap

Monday, November 16th, 2009

Dear Adobe,

WTF does this DisplayObject property actually do? And why does it only seem to work when done with code and not the check mark in the IDE? Here’s what I think it should be doing it should be taking a snapshot of that DisplayObject and all its nested children and displaying it as a bitmap, much like Director’s image property. Now when should that snapshot change? I’d assume it’d change only when anything in it actually changed. However I don’t find this to be the case. A perfect example is a TextField nested in a MovieClip. I set cacheAsBitmap to true, both in the IDE & code to both the TextField & MovieClip, animate it and get all those known issues of animating TextFields on subpixels. This shouldn’t be the case if it were a bitmap and if you zoom in (rt-click) on the object you can see the text is still vector and not raster. So as per usual the workaround here is to create a bitmapData and take your own snapshot of the DisplayObject, but isn’t this exactly what cacheAsBitmap is supposed to do? The only success I ever had with this property is for creating alpha masks, but again this MUST be done in code cause it doesn’t work if you do it in the IDE. Flash is akin to What You See Might Not Be What You Get or better yet don’t believe your eyes, or mind, when it comes to Flash.

Flashing you,
(-o|o-)

Obligatory AR

Friday, November 13th, 2009

At the beginning of the year I jumped on board and started using the FLARToolkit. Coincidentally shortly after that Lee over at The Flash Blog posted a tutorial on the subject. Since that time AR has spread like wildfires thru Southern California. Come September a friend was pitching an idea around AR and needed a proof of concept. Having done some work previously in the field I was happy to oblige. This is the product of a couple nites work. (You will need the marker from the GE Smart Grid which can be found on the link below.)

Now it should be noted that the GE Smart Grid was originally done with the cover of Popular Science in Director using a custom Xtra that does not require the use of markers. It was then ported to the Flash based version we are all more familiar with. The Director/Shockwave’s 3D, responsiveness and level of interactivity (you can blow into your microphone to spin the wind turbines) is far superior to Flash’s.

Constantly directing,
(-o|o-)