AIR Notifier

Spread the love

Building applications with AIR is real fun and what could be more interesting when you install it on desktop and see it running. In last few months, I have seen many applications built using Adobe AIR. Nice, soft look and feel, great functionality, quite handy are some of the words I will use to describe those applications.

Well how can I keep myself from building one on this buzzing technology and so I started one. I found that building application in Flex and AIR is not so different (apart from configuration and few more added AIR API’s). The journey was so far good but when I started looking for creating a notifier that can have a pleasant look and feel and with some flashy effects, I really struggled to find options.

It wasn’t that bad, I found quite a few good reference sites but unfortunately none of them met my expectations. But when I saw twhirl with its awesome notification display, my fingers started googling again to find how can I get something like the one I can see now on my desktop.

Overall I liked the appearance of twhirl and the way stuffs are managed into it. The most interesting part was twhirl notifier. It pops up when you receive a message and it goes like whosshhh. After crawling through various sites and reading many source codes, I found an interesting project on Google Code – Bamboo notifier. Getting deeper into the source code, helped me to understand how Bamboo displays notification and hurrayy thats what I was looking for. No additional SWC, everything built using Adobe AIR APIs.

I used similar concept and on top of that using Flex Effects, I finally achieved what I was looking for.

Well not to stretch any more, here is the code snippet that might help you to built your own notifier.
There are two files,
1. One that is used as popup. (Notification.mxml)
2. Used to display popup. (Client.mxml)

Notification.mxml








	


Client.mxml







For your reference, I am attaching Flex project with this post. Click here to download.

Hope this will help you to kickstart building your own Notifier.
So keep airing and notifying 🙂

5 Comments

  1. When clicking on the red Close button in the notification window, I am getting this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.controls::Button/mouseDownHandler()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\Button.as:2739]
    ——–
    Please please suggest how to resolve this, or atleast what might be causing it. I have your code as it is from above! Thanks CarbonRider 🙂

    Reply

Leave a Comment.