Categories: Flash Lite | Code Examples | UI | Usability | Components
This page was last modified 19:08, 31 March 2008.
Oxygen - The Flash Lite Developers Kit
From Forum Nokia Wiki
Contents |
Introduction
Oxygen - The Flash Lite Developers Toolkit is a set of free components and libraries for use in Flash Lite based applications. The Oxygen Toolkit includes debug tools as well as components to be used in applications.
Figure 1. Oxygen Screenshot
All the components included in the toolkit are Drag'n Drop ready. Just drag the component from Oxygen Common Library onto Stage, and you can just test the SWF movie.
Current Oxygen Toolkit version:
- Oxygen Toolkit: Version 1.0
- Last update: 31-March-2008
About Components
In this initial release of the toolkit, following components are available:
- FPS-Meter v3 - Displays FPS (Frames Per Second) of last 10 frames.
- Mem-Meter v1 - Displays available free memory to Flash Lite application.
- Battery Meter v1 - Shows current battery level of mobile device.
- Signal Meter v1 - Shows current signal stregnth of mobile network.
The installation package will install two saparate libraries. One for Flash Lite 1.x (pre-ActionScript) and another for Flash Lite 2.x & 3.x (ActionScript 1/2).
FPS-Meter
FPS-Meter component is helpful for optimizing animations for mobile device playback. This is a new version of the FPS-Meter Component, which I released some time ago.This version now also features a bar-graph just below the FPS value. This graph shows as full when when FPS is at its maximum value for current SWF movie. When any animation starts, the graph shows the percentage of the FPS that has dropped from its maximum value. It helps greatly in optimizing animations, as well as making decisions on when to use vector graphics or raster graphics.
The component refreshes its value and graph on every 10th frame. The FPS-Meter component can also be used in regular Flash version 5 to version 8 SWF movies which use AS1 or AS2.
Mem-Meter
Memory Meter component is also a development time component. It shows free memory available to current Flash Lite movie. There is also a bar-graph just below the value, which shows percentage of used memory (in red) from total available memory (in green) to Flash Lite.Using this component, developer can see how much memory its application is consuming. It also helps in determining when to unload any resources, before loading new resources into the Flash Lite application. It is also helpful to point-out "Out of memory" errors in Flash Lite applications.
The component refreshes its values every 1 second.
Battery Meter
The Battery Meter component shows current battery level. It is Drag'n Drop, ready to use component in any application. The developer can quickly include battery level meter into thier Flash Lite applications without any code.The component is made to be easily customizable to fit in any user interface style. The developer can easily change color of the component by applying Tint affect to it. The other way to customize it is directly edit the vector graphics of the component.
The component refreshes its value every 10 seconds.
Figure 2. Editing component graphics
There are five keyframes on GFX layer. See Figure 2 for reference.
Below is the reference for each keyframe:
- Keyframe 1: Full preview of the graphics
- Keyframe 2: No value / Zero value
- Keyframe 3: Low
- Keyframe 4: Medium
- Keyframe 5: Full
You can just replace the graphics on each keyframe according to the reference to fully customize the component to fit in your application's design.
Signal Meter
The Signal Meter component shows current mobile network signal strength. It is also Drag'n Drop, ready to use component in any application. The developer can quickly include network signal stregnth meter into thier Flash Lite applications without any code.This component is also similar to Battery Meter component. It is also easy to customize, and uses same keyframe layout as Battery Meter.
Signal Meter refreshes its value every 10 seconds.
Download
The download includes full source code of all the components, including MXI source for making cutomized installable MXP package.
Download: media:Oxygen Toolkit v1.zip
Installation
Included in the download, is the self installable MXP (Adobe Flash Extension). If you have Flash 8 or Flash CS3 and Adobe Extension Manager, you can just double-click the MXP file to install the Oxygen Toolkit.
Figure 3. Accessing Oxygen Toolkit from Adobe Flash
After installation, you can access the Oxygen Toolkit directly in Adobe Flash.
1. Create a new Flash Lite document. 2. Open Window->Common Libraries menu 3. And select Oxygen Toolkit for your target Flash Lite version.
Just drag'n drop the required component on Stage, and test your Flash Lite movie. Its that simple!
About Author
Faisal Iqbal a.k.a. chall3ng3r, is mobile application developer having experties in Adobe Flash, Adobe Flash Lite, Symbian S60, MS .Net and related technologies.
Find out more at www.orison.biz/blogs/chall3ng3r/
chall3ng3r 22:08, 31 March 2008 (EEST)
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| which mobies support flash lite.............?. | pashraj | General Discussion | 3 | 2008-04-03 14:59 |
| Nokia E50 JavaScript turned off or an old version of Macromedia's Flash Player | CND_Jackass | General Symbian C++ | 1 | 2007-08-15 12:18 |
| Loading external files in private folder | necokop | General Symbian C++ | 9 | 2007-08-17 11:31 |
| Flash with J2ME | Ashish_J2ME | Mobile Java General | 6 | 2006-08-31 13:12 |
| Can the Nokia 6120 run Flash Lite as wallpaper/screensaver? | lycettebros | Flash Lite on Nokia Devices | 2 | 2008-01-23 04:45 |



