How to code ActionScript to softkey on Flash Lite Nokia Mobile App

December 21, 2009 § Leave a comment

By default you can define pressed key event to softkey using ActionScript on Flash Lite Nokia mobile app.

Flash Lite 1.1

You can assign pressed key events to a button. You can map the for navigation keys, numeric keypad, and softkeys.

Convert a shape into a button and assign the code.

on(keyPress "<Enter>") {
    trace("Selection key pressed");
on(keyPress "<PageUp>") {
    trace("Left softkey pressed");
on(keyPress "<PageDown>") {
    trace("Right softkey pressed");
on(keyPress "<Up>") {
    trace("Up direction key pressed");

Flash Lite 2.0+

A key listener can be assigned to a button, object or MovieCkip.

// Create the object for the key listener

var keyListener:Object = new Object();

// Define the onKeyDown events to listen to

keyListener.onKeyDown = function() {

    if (Key.getCode() == Key.ENTER) {

        trace("Selection key pressed");


    else if (Key.getCode() == ExtendedKey.SOFT1) {

        trace("Left softkey pressed");


    else if (Key.getCode() == ExtendedKey.SOFT2) {

        trace("Right softkey pressed");


    else if (Key.getCode() == Key.UP) {

        trace("Up direction key pressed");



// Enable the key listener


To customize labels & functions for softkeys
Call the SetSoftKeys command, part of fscommand2() method on the first frame of Flash Lite app. fscommand2() command are mobile focused ActionScript, outside ActionScript library. It maps the labels to softkeys and disables the default softkey functions.

fscommand2(“SetSoftKeys”, “LeftKeyLabel”, “RightKeyLabel”);

Note: Only left and right softkeys can be coded in fscommand2 method.

Design Rules:

1. Clear label

2. Forward-going functions (continue, confirm, zoom, options, menus) should be assigned to the left softkey.

3. Backward-oriented functions (cancel, back, exit) should be assigned to the right softkey.

4. Softkey label should be rotated in position when screen orientation changes

5. Code the softkey on touch event on touch devices


Flash Lite Application Deployment

December 21, 2009 § 3 Comments

Nokia offers 4 options in deploying Flash Lite mobile app.

1. IR (infrared) / Bluetooth / USB cable
Nokia PC Suite is a FREE tool you can download and install Flash Lite applications. You can connect device via IR, Bluebooth or USB cable.

2. Memory card
You can transfer Flash Lite applications to the memory card of a device using a memory card reader.

3. OTA (over-the-air)
You can upload the Flash Lite applications to a Web server and then downloaded to a device via the device’s Web browser.

4. Email / MMS
Flash Lite applications can be sent as email attachments or MMS messages.

Install the Flash Lite app into assigned folders.

[device memory]\Data\Others
[memory card]\Data\Others

S60 3rd Edition and S60 3rd Edition, Feature Pack 1
Run the app with Flash Lite Player

S60 3rd Edition, Feature Pack 2 and newer
Run the app by opening the main SWF file directly using the Media Gallery or File Manager

You can copy the Flash Lite app files to any location or launch from any location within the file system

Packaged App

Packaged app is installable mobile applications including a number of external resource files or additional Flash Lite applications. Files are packaged into a single installation source file.

Use Symbian Installation Source (SIS) package format
Stub applications are specialized lightweight Symbian applications packaged as SIS files to launch other applications

Use Nokia Flash Lite (NFL) package format

Signed Packages

S60 accepts signed SIS package. It can be signed by self-signed certificate for development or request official certificate from Symbian Signed. No signing requires for NFL packages.

Creating and signing a SIS package
Creating an NFL package
Creating a stub application

Flash-Lite Application

December 21, 2009 § Leave a comment

4 simple steps to design a Flash-Lite mobile app. With wider range of mobile models, Flash Lite versions, and Flash Player types one must prepare each step well to achieve a well-balance well-designed mobile app.

  • analyze and define the requirements
  • scope
  • use cases
  • functionality

Flash Lite Application Types

December 20, 2009 § Leave a comment

These are the 3 types of Flash Lite Application.

1. Standalone

Standalone Flash Lite applications are the most common category of Flash Lite applications. It only requires a SWF file.

S60 3rd Ed and/or Feature Pack 1 devices
Flash Lite player can be launched from the Applications menu

S60 3rd Ed and/or Feature Pack 2 devices
Flash player is a hidden application that allows users to access Flash Lite content directly from the Media Gallery or File Manager . Or it is launched from other applications that need to play Flash Lite content.

2. Browser-embedded Content

You can include Flash Lite content in HTML and XHTML Web pages. When a SWF file is coded in the <embed> and <object> elements of a Web page, the file is downloaded and played automatically by the device. It can be used in conjunction with mobile device widgets.

3. Screen Saver

A SWF file that requires no user interaction is a screen saver. Screen saver is available on all S60 devices that support Flash Lite 2.0 or newer and on all Series 40 devices. Wallpapers are a subset of screen savers. Wallpapers are displayed as a background image. Any device that supports screen savers also supports wallpapers.

Flash Lite Verions

December 20, 2009 § Leave a comment

Major Flash Lite versions are 1.1, 2.0 / 2.1, 3.0, and 3.1. Nokia has preinstalled versions of the Flash Lite Player on devices since S60 3rd Edition and Series 40 3rd Edition, Feature Pack 1.

Selected S60 3rd Edition, Feature Pack 2 and S60 5th Edition Nokia devices allow users to update the preinstalled Flash Lite Player through Software Update for S60.

Flash Lite 2.0 / 2.1 VS Flash Lite 3.0
Flash Lite 2.0 / 2.1 is mainly suited for playing back embedded Flash content. Flash Lite 3.0 supports extensive scriptable interaction between the Flash content and the containing Web page. With Flash Lite 3.0, you can pass ActionScript commands from the Flash content to the Web page and use JavaScript commands to access and control the Flash content. With Flash Lite 2.0 / 2.1, the interaction is mostly limited to controlling the Flash content via JavaScript.

When a SWF file is correctly defined in the <embed> and <object> elements of a Web page, S60 Web Browser automatically loads the file and uses the Flash Lite plug-in to play the Flash content.

Flash Lite 2.0/2.1 support playing Flash content embedded in Web pages.

Flash Lite 3.0 supports for extensive scriptable interaction between Flash content and the Web page via Flash methodsFlash propertiesDoFSCommand, and External API. Flash Lite 3.0 also supports streaming Flash Video (FLV) from online video services over HTTP or RTMP.

Flash Lite supports a reduced range of all the ActionScript functions and additional fscommand2() method for mobile-specific commands.

S60 5th Edition with Flash Lite 3.0 is the first platform release to provide full Flash support for S60 Web Browser.

MIDI files do not contain any sound whatsoever but are a set of instructions that trigger the sounds residing in the chip of the mobile phone.

Digital audio such as MP3 contains the recording itself. The quality of digital audio depends on the sampling rate at which it is recorded or stored. The higher the bit or sampling rate, the better the quality you get. However, higher bit rates result in greater file size.

Flash Lite 1.1 support:
ActionScript 1.0

Flash Lite 2.0-3.1 support:
ActionScript 2.0

Flash CS4 Professional support:
Flash version 10

Flash MX Professional 2004 support:
Flash version 7

Flash Professional 8 supports Flash Lite up to version 2.1 and Adobe Flash CS3 Professional supports Flash Lite up to version 3.0. Adobe Flash CS4 Professional supports Flash Lite up to version 3.1. In Flash Professional 8, the emulators are not handled with Adobe Device Central. You must instead install Device Profile Updates and manage them using Adobe Extension Manager.

Flash-enable device list

Device Specifications

Flash-Lite Feature Comparison
Flash-Lite Audio/Video Support

Nokia Mobile HTML Templates

November 2, 2009 § Leave a comment

Nokia just open source their mobile HTML templates for high-end, mid-range, and low-end phones. It includes templates and layout samples with content.

It includes HTML, CSS, Photoshop & Illustrator templates. It is a good starting point for Nokia beginner developers.

The high-end templates include components optimised for touch devices (S60 5th Edition and Maemo), and components optimised for Series 40 and S60 WebKit non-touch devices.

The mid-range templates include pre-styled mobile web elements optimised for a large collection of Series 40 devices from Series 40 3rd to Series 40 6th Edition.

The low-end templates include pre-styled mobile web elements optimised for a large collection of early S60 and Series 40 devices.

Where Am I?

You are currently browsing the Nokia category at Web Builders.