![MACROMEDIA FLASH MX PROFESSIONAL 2004 - FLASH LITE 1.1... Скачать руководство пользователя страница 15](http://html1.mh-extra.com/html/macromedia/flash-mx-professional-2004-flash-lite-1-1/flash-mx-professional-2004-flash-lite-1-1_manuallines_3384429015.webp)
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
Chapter 3, “Working with Sound”
.
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.
Содержание FLASH MX PROFESSIONAL 2004 - FLASH LITE 1.1...
Страница 1: ...Macromedia Flash Lite 1 1 Authoring Guidelines...
Страница 6: ...6 Contents...
Страница 10: ...10 Chapter 1 Introduction...
Страница 20: ...20 Chapter 2 Optimizing Content...
Страница 56: ...56 Chapter 7 Testing Content...
Страница 58: ...58 Chapter 8 Development Kit Examples...
Страница 74: ...74 Appendix B Supported ActionScript Properties...