as3 Native Cursor Manager

Basically the main advantage of as3 development is the multi-platform support.
It is understandable that a typical user does not care about that and he wants the best performance on the platform that he has picked.
Usually while distributing applications people forget about the little things like showing the busy cursor. While in native code there always is a function for showing a busy cursor in flash using the native busy cursor isn’t so easy to show because in native code it disappears after the function ends.
I’v made this simple class that has only one function – Showing the busy cursor similar to the native ones. I’t is different dependently on the platform.
On Mac Os:
On Windows 7, Vista:
On other versions of Windows:
On Linux:

Grab the code on Git-hub:
https://github.com/mateuszmackowiak/as3NativeCursorManager

import pl.mateuszmackowiak.visuals.CursorManager;
// to show the busy cursor
CursorManager.setBusyCursor();

// to hide it
CursorManager.removeBusyCursor();

Also want to mention about AIR 3 Windows-x86 Native Extension for Taskbar (Progress) API.
These are small things but they really make a difference in the overview of the app.

Advertisements
Tagged , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: