Adobe Flash is a widely used authoring tool for the Internet and end-user environments. It is widely used to create interactive multimedia content in the form of SWF files which can played on the Adobe Flash Player. Flash Lite is a lightweight subset of the Flash Player that is designed for use on a mobile device. Flash Lite is optimized for devices with limited resources, such as smaller screens and limited processing power.
For information about:
Flash Lite, see the Adobe Flash Lite Features page.
Flash Lite application development for mobile devices, see the Flash Lite Developer's Library.
S60 Browser support for Flash Lite, see Web Browser for S60 versions and device support.
Non-interactive animations.
Simple interactive content, such as banner ads with links.
Streaming media applications with simple user interfaces.
You embed Flash
content (.swf files) into a Web page using the standard <object> and <embed> tags.
To add flash to a Web page
Add the following code to your Web page:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="550" HEIGHT="400" id="myMovieName">
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED href="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>Replace myFlashMovie.swf with
the name of your SWF file.
Define the parameters
to suit your needs. For information on Flash <object> and <embed> tag
attributes, see the Adobe TechNote.
You can also use publish HTML code directly from the Adobe Flash IDE and add that to your Web page.
The S60 Browser
supports the use of the SWFObject to detect the Flash
Player version. You can then use this information to tailor your content to
what is on the device.
To detect the Flash Player version
Follow the instruction in the section Detecting Flash Player versions and embedding SWF with SWFObject2 in the Adobe Developer Connection to detect the Flash Player version.
The returned value is based on the underlying Flash Player version, so you need to map it to the corresponding Flash Lite version. The following table shows the correct mapping. The first number in the returned value is the major version, while the second number is the minor version. For example, the major version number for Flash Lite 3.0 is 8 (Flash Player 8) and the minor version number is 1.
Follow the instructions in the section Providing alternative content for SWF files in the Adobe Developer Connection if you want to tailor your content to the Flash Player version.
The S60 Browser supports interaction between Adobe ActionScript and JavaScript on devices that have Flash Lite 3.0 and later. This provides a way to pass ActionScript commands from the Flash content to the Web page and use JavaScript commands to access and control the Flash content. This includes operations such as registering for a callback from JavaScript to ActionScript and passing objects from ActionScript to JavaScript.
There are several way to pass commands between ActionScript and JavaScript:
Using Flash methods, which are JavaScript functions that are specific to Flash movies. For information see, the Adobe Macromedia Flash Support Center Web pages Flash Methods and Getting and setting properties.
Sending FSCommand actions from Flash to JavaScript
via DoFSCommand. For information, see the Adobe Macromedia
Flash Support Center Web page fscommand.
Via an external API (ExternalInterface). For information,
see the Adobe Developer Connection Web page Using the External API for Flash–JavaScript Communication.
The best way to communicate between ActionScript and JavaScript on
the S60 Browser is via the ExternalInterface class. For
an example of communication between JavaScript and the ActionScript, see An example
of communication between JavaScript and Adobe Flash Player on the Adobe
Developer Connection website.
Note: You should avoid embedded Flash content that involves keyboard focus, such as interactive elements. Running such content on non-touch devices may make it difficult for the mobile device user to leave the Flash content and return to the Web page. If you want to add interactive elements such as onscreen controls, they should be done using HTML and JavaScript. For example, you should define buttons such as play and pause using HTML and then use JavaScript to pass the play and pause commands to the Flash content.