Developing Flash Lite 2.x and 3.0 Applications

Creating your application in Flash

The process for creating Flash Lite applications for BREW is similar to creating a generic Flash Lite application. With the exception of features that are not supported on BREW devices (listed in Flash Lite features not supported in BREW) and BREW-specific authoring notes (below), developing applications for BREW devices can be done by following the development steps detailed in the rest of the Flash documentation.

The following topics provide information that applies only to Flash Lite authoring for BREW.

 Launching a browser

The BREW target handsets use the OpenWave browser, which doesn't provide the appropriate hook for the BREW application to invoke the browser. Therefore, if you specify an HTTP URL in the getURL(), loadVars(send), or XML.send() functions, no browser is launched. To send information to a server and continue playing your SWF file without opening a new window or replacing content in a window or frame, use the loadVars.sendAndLoad() function.

 Default soft key behavior

For information and examples describing how to program soft key behavior in Flash Lite, see Using the soft keys. The following table describes the default soft key behavior in Flash Lite 2.1 for BREW:

Content action

Screen mode

Left key action

Right key action

Default (content does not call the SetSoftKeys command)

Full-screen mode

Displays options menu

Exits the player

Non-full-screen mode (content does not call SetSoftKeys)

Non-full-screen mode

Displays options menu

Exits the player

Content disables soft keys

n/a

None

None

Content overrides one or both soft keys (calls SetSoftKeys)

n/a

Displays options menu if no override.

If override, behavior specified by content.

Exits the player if no override.

If override, behavior specified by content.