The last time I wrote about my collection of JavaScript samples for Adobe AIR was in February of 2008. I had just updated the then 35+ samples for AIR Beta 3. Well, Adobe AIR has since launched (and released two minor versions), but the samples haven’t evolved. That is until today. I’m happy to announce that I’ve updated all the examples, combined them into a single project, and made them available as open source. (more…)
In my two previous blog posts I talked about using the system tray and notifications with Adobe AIR from JavaScript-based applications. As a proof of concept, more to myself than anything else, I also put together a sample application that uses these two techniques. The combined application, while far more complex than the atomic samples I included previously, shows both of the concepts in action. The result is an application that checks for recent Flickr photos and alerts you when they arrive. (more…)
While there’s a lot to consider when building notification windows, they are actually pretty easy because there’s minimal cross operating system (OS) differences for which you need to account. A common pairing with notification windows is system tray/docking which varies considerably across OS, and can be a little more challenging. More on that in a future post. For now however, let’s take a look at notification windows using JavaScript. We will walk through what a notification window looks like to AIR, and explore some of the various options you have when you want to alert the user. (more…)
Adobe AIR is designed to be consistent across operating systems. The result is that AIR applications can also run consistently across operating systems. The reality however is that there are certainly places that operating systems differ significantly, yet present metaphors that users expect. Among those more pervasive differences is the Windows system tray. The same metaphor exists, but differently for Mac, and may not exist at all depending on your Linux distribution. Let’s take a look at what is involved to use JavaScript to interact with the system tray in a cross operating system fashion. (more…)
In a previous post I described a process for analyzing the image type and dimensions of image files (PNG, JPEG, GIF) without having to actually display the image, or load it onto the Flash display list. It was called to my attention that the post did not also include image sizing, or generating thumbnails. While I want to cover an example of this, I think it also makes for an interesting discussion on image processing in general and Adobe AIR. (more…)
En route between Madrid, Spain and Paris, France, Lee Brimelow and I got into a somewhat philosophical conversation around why the HTML features are important to Flash developers. The obvious standout is in being able to render HTML content in all its glory. Is there anything beyond that though? What about the script-bridge feature? Being able to reach into the HTML DOM and manipulate it from JavaScript? What we came up with was a visually interesting, if not entirely useful example. (more…)
As I was hanging out in Madrid, getting acclimated for the AIR Europe Tour, I started thinking about what I was going to present - specifically around script bridging. In the United States, I just talked about how Flash and HTML are separate, but can be integrated. I though it would be good to actually show how separate they are in the browser, and contrast that with how integrated they are in Adobe AIR. Several hours spent exploring ideas, and a new demonstration was born. (more…)
Two very quiet, yet very important announcements came last week for developers using Adobe AIR. The first is a new “Introspector” for AIR developers using Ajax - think Firebug, but for AIR. The second is an update to Aptana Studio (1.1 required) which provides support for AIR Beta 3. Here’s a quick look at both these updates which should prove very beneficial to those with an HTML workflow. (more…)
HTML 5 introduces a new canvas element which comes along with a graphics context based on Quartz 2D. This means that JavaScript developers can draw paths, fill and clip (mask) shapes, transform bitmaps, and even provide basic animation in addition to other operations. The similarities to the ActionScript Drawing API (especially in ActionScript 3) are striking, so I couldn’t resist playing around. (more…)
Every new update to Adobe AIR means one thing for me - a lot of additional work. When I first started putting together samples for the AIR Pocket Guide, it never occurred to me that I’d have to revisit them time and again. What started as a couple dozen examples has also now grown to be over forty (40) AIR samples, to include a number of full applications. That being said, I’m happy to announce that the samples update for AIR Beta 3 is complete, and are available for download. (more…)