Adobe AIR Bouncing Ball
I've created a little bouncing ball sample for Adobe AIR (derivative of course of our stock Boxely example some of you may be familiar with). You simply run the AIR applet and the ball will do its thing. You can pick it up and toss it as well and it will be constrained to your primary display.

I just wanted to demonstrate to the Adobe folks that their system capabilities class is not quite enough to do tight integration with the user's desktop. In this case for example, we'd prefer to know the user's "work area" size and position rather than the monitor resolution, for example so as not to go behind the taskbar on Windows or if the taskbar is docked to the top of the screen to know that the work area is not oriented at 0,0. Apparently there is a 'Screen' class coming soon?
Very simple code, the source is available on request. I just snag screenResolutionX and screenResolutionY from flash.system.Capabilities, and then let a gravity and elastic constant affect the ball position on the desktop. The ball itself of course is just a 60x60 SWF - over time I'm simply setting and resetting stage.window.x and stage.window.y ... when the user grabs the ball, I kick into a system managed drag via stage.window.startMove() and monitor the balls position in a frame handler.
AIR is starting to show some promise but still missing a few fundamentals.
Download the AIR file here.


