BetaDesigns( Blog ) Flex and Component Development

18Mar/091

Unable to Catch IOErrorEvent’s when Loading a ByteArray into an Image

I was trying to load a byteArray into an image control today and would randomly get an Unhandled IOErrorEvent message. Now this shouldn't really happen as the image control uses a default broken image icon to display when there are any loading problems. Well after trying to catch the error unsuccessfully I wanted to know what was going on.
So i went digging and i found in the base class of image, SWFLoader line 1497 the following

19Aug/082

Creating Easy Application Icons

Just a quick post mostly as a reminder to myself on how to easily create Icons for your Adobe AIR applications.
Once the application has finished Initializing i add a button to the main view. that calls a method called takeSnapShot( e : MouseEvent ); that writes the application out to the desktop as a PNG file.