Search
Feeds

Category: Adobe AIR

May 8 2008

SysToast: A System Tray Notifier for AIR Applications

EverythingFlex has an excellent SysTray notification class called NativeAlertWindow. What it does is create a ‘toast’ window in the bottom right corner of your screen. When an event happens, a window will pop up, literally like toast, on your screen next to the system tray. This is very similar to what MSN Messenger, Norton, McAfee, and countless other programs do.


The problem with NativeAlertWindow is it is part of a SWC (a precompiled Flash file that is not editable) called everythingflexairlib. So you aren’t able to look at the code or change things easily if you need to. This is a very basic replica of NativeAlertWindow but not compiled in a SWC. It will get you started on creating toast windows. Extending it is up to you.

Copy the SysToast class file to the appropriate location in your project. The following is all that is needed in your MXML file.

import net.sanative.SysToast;
    public function callToast():void
    {
        var mytoast:SysToast = new SysToast("mymessage", "mytitle", mydelay, 
            mywidth, myheight, mylifetime, "mychrome", "mytype", mygap);
    }



That is all that is needed to create a toast window. The ‘my’ variables would be replaced with actual values according to your application.

 

  •     mymessage (Required) (String) - Message to display in the toast window. Default is null.
  •     mytitle (String) - Text to display in the title of the toast window. Default is 'Alert'.
  •     mydelay (Number) - Amount of delay between the time the toast was called until it is created. This is a millisecond number value. 1000 = 1 second. Default is 0.
  •     mywidth (Number) - Width of the toast window. This is a pixel number value. Default is 200.
  •     myheight (Number) - Height of the toast window. This is a pixel number value. Default is 100.
  •     mylifetime (Number) - Time that the toast window will be visible for. This is a millisecond number value. 1000 = 1 second. Default is 8000.
  •     mychrome (String) - System chrome to use for the toast window. Possible values are 'none' and 'standard'. Default is 'standard'.
  •     mytype (String) - Type of window the toast window will be considered. Possible values are 'lightweight', 'normal', and 'utility'. NOTE: 'lightweight' ONLY works with 'none'. Default is 'normal'.
  •     mygap (Number) - Gap between the bottom and right side of the screen to position the toast window. This is a pixel number value. Default is 10.

As I stated before, this is a very basic class. We will update the class over time to eliminate some of the limiations and make it full-featured. That being said here are the current limitations:

  •     This is not a toast window manager. This means that it can only show one toast window at a time for each variable reference.
  •     Each toast window created is placed in the bottom right corner.
  •     It does not apply stacking for better viewing.
  •     There are no transition in or out effects. Windows Vista has its own native window open and close effect which fakes a transition effect for me in the mean time.
  •     Toast windows cannot be minimized, maximized, or resized. More than likely this will not change. Allowing those defeats the purpose of a toast window.
  •     Icons and/or images are not utilized in the titlebar or on the toast itself.
  •     The style of the text cannot be changed with CSS unless it is changed in the class itself.

If you have recommendations or suggestions please feel free to drop us an email!

SysToast Files

0 comments - Posted by David Freerksen at 3:23 PM - Categories: Adobe AIR

Jan 3 2008

Sanative Sponsors Northern California Flex and AIR Pre-release with Adobe's Ryan Stewart

Flex 3 and AIR are getting close to launch and in preparation, Ryan Stewart from the Adobe Flex/AIR product team is traveling to select cities to show off the great new features and help prepare us for this exciting launch. Ryan Stewart will be in Sacramento to speak on January 23rd at 6:30 PM.

Flex 3 is a feature-packed release, adding new UI components like the advanced datagrid and improved CSS capabilities; powerful tooling additions like refactoring; and extensive testing tools including memory and performance profiling, plus the addition of the automated testing framework to Flex Builder.

Adobe AIR is game-changing in so many ways, extending rich applications to the desktop, enabling access to the local file system, system tray, notifications and much more. Now you can write desktop applications using the same skills that you’ve been already using to create great web apps including both Flex and AJAX.

Read more about the event, and RSVP, at the NorCal Flex User Group website. All are welcome, the event is casual and there will be food and drink provided by Adobe and Sanative!

0 comments - Posted by TJ Downes at 11:52 AM - Categories: Adobe AIR | Cool Stuff

Jan 3 2008

Sanative Develops Desktop Widget for LiveCoordinator.com

Sanative has launched a desktop application utilizing Adobe® AIR for LiveCoordinator.com. Live Coordinator, which launches later this month, is an integrated communication solution for real estate transactions. It allows all team members who work together in completing a transaction to coordinate and communicate more efficiently than ever before.

Sanative worked with the Live Coordinator team to develop the widget based on an existing AJAX application. Using the Live Coordinator widget, a user can receive status updates directly on their desktop, in real-time. Home buyers and sellers will now be able to know what is going on with the escrow process every step of the way, as it happens. This unique capability is something not done before, and Sanative is excited to be part of the process.

Since the application is built utilizing Adobe AIR, the application will run seamlessly on Windows or Mac, and, very soon, Linux desktops as well. The application will automatically upgrade as new versions are released, removing confusion from the upgrade process for Live Coordinator users. Since the core of the application is based on AJAX technology, the LiveCoordinator development team does not need to have any knowledge of Adobe AIR. Updating their existing AJAX widget also updates the core components of the desktop widget. This unique capability lowers the cost of supporting a desktop widget for Live Coordinator.

Take a peek at Live Coordinator and see how the Internet is changing real estate and mortgage industries!

0 comments - Posted by TJ Downes at 10:29 AM - Categories: Adobe AIR | Site Launches