Macromedia flash mx professional 2004-macromedia flash lite 1.1 authoring guidelines Benutzerhandbuch

Seite von 86
Performance optimization
15
Sound
Using audio in Flash content helps to create a richer user experience that goes beyond a typical 
mobile phone application. For more information about embedding sound into Flash Lite content 
for mobile phones, see 
Network access
It’s possible for Flash content that resides on a mobile phone to download new data from a web 
server by using various functions, which are described below.
The Flash Lite 1.1 specification supports the 
getURL()
action which  is processed once per frame 
or per event handler. The 
getURL()
 action can be associated with the following keys: 0-9, *, #, or 
the Select key. Only the first 
getURL()
 call in a keypress statement block is executed; all 
subsequent 
getURL()
 calls in the same block are ignored.
The 
getURL()
 function can be used to load another SWF or HTML page (
http
), a secured (SSL- 
Secure Sockets Layer) HTTP page (
https
), send e-mail (
mailto
), or dial a phone number (
tel
).
With Flash Lite 1.1, it is possible to load data and SWF files from a web server using the 
loadMovie()
loadMovieNum()
loadVariables()
, and 
loadVariablesNum()
 functions. By 
using these functions you can update Flash content that resides on a mobile phone. These actions 
will be processed once per frame or per event handler. 
SWF file size and memory
Supported mobile phones impose limitations on the size of Flash Lite SWF files and on the 
amount of runtime memory they use. The SWF file size is a larger issue for mobile phones than 
for desktop computers because mobile phones don’t have as much RAM as desktop computers.  
There is a prescribed limit on how large a web page can be, whether or not it includes Flash Lite 
content. For most mobile phones, this limit is 100 KB.
The runtime memory available to Flash Lite applications running on mobile phones is limited 
and might vary among models. Generally, for mobile phones, this limit is not less than 1 MB. 
Because Flash MX Professional 2004 does not provide a mechanism for checking a phone’s 
runtime memory consumption, Macromedia strongly recommends that you test all content on 
actual mobile phones. 
Performance optimization
CPU speed in mobile phones varies among models and is typically much slower than the CPU 
speed in current desktop computers. Therefore, it is extremely important to consider application 
performance and optimization from the beginning of each project for creating Flash Lite content 
created for mobile phones.
Note: In Flash MX Professional 2004, you can find tips on optimizing Flash applications. (Select 
Help > Using Flash -> Search and enter optimizing movies in the Keyword Searchtext box.) 
If you follow the simple guidelines described in this document to author your Flash Lite content, 
you can create rich and compelling content despite CPU limitations.