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…)
I find pretty regularly that developers tend to confuse Adobe and Flash. Adobe is a company. Flash is a technology. Flash is just one of the 70+ technologies that Adobe, the company, makes. JavaScript developers that ignore the rest of what Adobe has to offer because of its association with Flash, do themselves a great disservice. As a point in case, Adobe is sponsoring and presenting at the two most well known Ajax conferences this year. (more…)
Many of my Adobe AIR demonstrations show the concept of “script briding” between JavaScript and Flash libraries (i.e. SWC files). Using this feature, JavaScript developers can leverage existing work done by Flash developers in areas that were previously not feasible in the browser. It’s important to recognize however, that the Flash Player itself ships with extensive built in functionality that may be useful as well. I wanted to explore this concept a little further, so I put together a little example that leverages PlotKit and Flash Media Server. (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…)