Articles in the AIR Category
AIR, Flash CS4, Flex »
Adobe have released Flash player 10.1 for Mobiles. The full Flash Player will be available on smartphones and other Internet-connected mobile devices, To deliver on a high level of consistency and move onto mobile platforms with limited memory and processing resources, Flash Player 10.1 leverages hardware acceleration of graphics and video and many other performance improvements, such as rendering, scripting, memory utilization, start-up time, battery and CPU optimizations.
Flash Player 10.1 is also designed to take advantage of media delivery with HTTP streaming, including integration of content protection powered by Adobe …
AIR, ActionScript 2.0, ActionScript 3.0, Design, Flash CS4, Flex »
Preloaders are much needed for Flash/Flex RIA’s.
Here some of the free preloader animations created by me this morning.
Idea of preloader is indicating the user that some assets are being loaded, and making them to wait.
But we should keep in mind that the user may lost their patience, so keeping the Flash assets filesize minimal is much important while making Flash websites or Flash applications.
AIR, ActionScript 3.0, Flash CS4, Flex »
Now we can create optimized Actionscript and flex code. Adobe has released FlexPMD to audit Actionscript (AS3) or Flex source.
FlexPMD uses a part of PMD, which used to analyse Java sources.
FlexPMD detects unused codes(like functions variables), inefficient code, complex loops..
FlexPMD can be invoked from
* The command line
* Maven
* Ant
* Automator on Mac OS X
* Eclipse new
* TextMate on Mac OS X new
* …
AIR, ActionScript 3.0, Flash CS4 »
To create Application alert as in MSN messenger, that happens while a contact signing In. Here we are going to see how to calculate and position an alert window for that we should also calculate the height of Task bar.
That’s not a pretty tough job in Adobe AIR.
var screenBounds:Rectangle = Screen.mainScreen.bounds;
var screenVisibleBounds:Rectangle = Screen.mainScreen.visibleBounds;
var _taskbarHeight:Number = screenBounds.height – screenVisibleBounds;
var _taskbarY:Number = screenBounds.height – _taskbarHeight;
Screen.mainScreen.bounds return the total screen height and width while, Screen.mainScreen.visibleBounds return the visible area other than the taskbar.
With this we can calculate the Taskbar height and place …
AIR, ActionScript 3.0 »
By default NativeWindow loads some where on the screen. Loading an splash screen or application on center of the screen will gives better user experience.
Below code we are creating a native window and aligning in the screen center.
var _splashWindow:NativeWindow = new NativeWindow(nativeWindowOptions);
_splashWindow.width = 484;
_splashWindow.height = 289;
_splashWindow.stage.align = “TL”;
_splashWindow.stage.scaleMode = “noScale”;
_splashWindow.title = “Center on screen”;
var screenBounds:Rectangle = Screen.mainScreen.bounds;
_splashWindow.x = (screenBounds.width – _splashWindow.width)/2;
_splashWindow.y = (screenBounds.height – _splashWindow.height)/2;
_splashWindow.activate();
Here,
var screenBounds:Rectangle = Screen.mainScreen.bounds;
Screen.mainScreen.bounds return the screen boundary.
_splashWindow.x = (screenBounds.width – _splashWindow.width)/2;
_splashWindow.y = (screenBounds.height – _splashWindow.height)/2;
Centering the application on screen.
AIR »
After SilverLight from Microsoft, Adobe Air got one more great competitor named JavaFX from Sun.
JavafX has variety of features as there is an option to include all Java packages or API’s in it.
      Â
The great news is there is no security sandbox in JavaFX but we can consider that too on downside because the user cannot trust the applications.
That’s not the case in Adobe Air; user can trust the applications because of the strict security sandbox.
I have been using flash for almost more …
AIR »
The trace function is not working while testing AIR application(CTRL+ENTER) .
There are applications to track or simulate trace method in AIR.
Simple way to make trace function to work in AIR is to run application in Debug mode.
To run an AIR Application in debug mode is same as running normal Flash application
(CTRL+SHIFT+ENTER)
AIR, ActionScript 3.0 »
While creating widgets the application should not appear on taskbar. But with AIR there is no such option to get rid of the application from taskbar.
I was searching the internet and I could find for Flex + AIR, but I could not find for Flash + AIR.
Here comes the Utility and Lightweight windows in action, these are type of native window but they will not appear on the taskbar.
But with only utility and lightweight windows we can’t make an application.
Initially we need to load our usual AIR application and close …
AIR, ActionScript 3.0 »
The application reads SWF files details that dropped on the drop area and displays result there in result view. It can also read bunch of SWF files together.
Benefits:
Reads the SWF file details that we cannot achieve using the Action Script API’s.
Save the details on local disk.
Project details:
I finished this project using Adobe Flash CS3 + Adobe AIR. I have seen Senocular SWFReader Class, and I thought of doing desktop application to read SWF files using the class file. I started on oct 14 and I also seen online version of …
AIR »
The newline character in Flash is “/n” but its not working when we write to text file using FileStream in Adobe Air.
MyFileStream.writeUTFBytes(”Some text here”+”\r\n”);MyFileStream.writeUTFBytes(”I am in new line”);
This works
