![MACROMEDIA FLASH MX PROFESSIONAL 2004 - FLASH LITE 1.1... Скачать руководство пользователя страница 14](http://html1.mh-extra.com/html/macromedia/flash-mx-professional-2004-flash-lite-1-1/flash-mx-professional-2004-flash-lite-1-1_manuallines_3384429014.webp)
14
Chapter 2: Optimizing Content
•
A button action can be assigned to launch an e-mail composition window with the address,
subject, and body text fields already populated. There are two ways to do this: Method 1 can
be used for either Shift-JIS or English character encoding, while method 2 supports only
English character encoding.
Method 1
Set variables for each of the desired parameters, for example:
on (release, keyPress "#"){
subject = “email subject”;
body = “email body”;
getURL(“mailto:[email protected]”, ““, “GET”);
}
Method 2
Define each parameter within the getURL action, for example:
on (release, keyPress "#"){
getURL(“mailto:[email protected][email protected]&bcc=bcc@anywhere.
com&subject=I am the email subject&body=I am the email body”);
}
Method 1 results in automatic URL encoding while method 2 preserves the spaces in the
strings. For instance, the resulting string of using method 1 is as follows:
email+subject
email+body
whereas method 2 results in the following strings:
email subject
email body
•
Key events can be attached only to the keys 0-9, #, *, and the Enter key.
•
Sound functionality is limited to event sound. Only the first event sound in a keypress
statement block is played, and all subsequent sounds in the same block are ignored.
•
The range of valid integers that can be represented is -2,147,483,648 to 2,147,483,647.
•
Math functions are not natively supported. In Flash Lite, the methods and properties of the
Math object are emulated using approximations and may not be as accurate as the non-
emulated math functions supported in Flash Player 5 and later.
•
The
_url
property is not supported.
•
The
Number()
and
String()
functions are not supported.
Note:
Flash 4 ActionScript does not support arrays. However, they can be emulated using the
eval()
function. For more information, see Macromedia TechNote 14219, “How to use Eval to
emulate an array,” at
www.macromedia.com/go/flash_support
(English) or
www.macromedia.com/go/flash_support_jp
(Japanese).
ActionScript commands that are not recognized are ignored. For a detailed listing of supported
ActionScript and properties, see
Appendix A, “Supported ActionScript”
and
Appendix B,
“Supported ActionScript Properties”
.
Содержание 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...