BitmapData.draw() Problem in AIR

I’m using AIR integration with Flex Builder 3 to contain and package an AS2 SWF which was originally using Screenweaver for deployment to a standalone app.

The problem I’ve noticed is that I have two areas into which each are being drawn from another MC using BitmapData.draw() which work just great in Flash CS3 when testing, but when deploying the AIR app using Flex 3, only the first BitmapData object is actually drawn on the stage. The other is totally blank.

[IMAGE MISSING!]

An example of this is above. Both windows should have the same image displayed at this point. I’m drawing out the rightmost image first- so the left image never gets drawn.

If I reverse the order in which they are drawn- the first one to invoke draw() is always the one that gets drawn.. very strange. Is this a known bug? Granted, it may have to do with my wrapping an AS2 app within an AS3 wrapper… but it’s really kinda weird nevertheless.

I’ve filed it as a bug with Adobe in any case.

4 thoughts on “BitmapData.draw() Problem in AIR”

  1. I’ve been having some issues with the Bitmap data operations as well. Does AIR throw an error when you are drawing? I had to use a try … catch block to see what was going on with my BitmapData object. For me it turned out to be the size of the bitmap I was trying to render. Hope that helps.

Leave a Comment

Your email address will not be published. Required fields are marked *