EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE - Page 18

MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE
162 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
18 Flash Lite Global Functions
Method 2: Define each parameter within the getURL() function, as in this example:
on (release, keyPress "#"){
getURL("mailto:somebody@anywhere.com?cc=cc@anywhere.com&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 example, the strings that result from using Method 1 are as follows:
email+subject
email+body
In contrast, Method 2 results in the following strings:
email subject
email body
The following example uses the tel protocol:
on (release, keyPress "#"){
getURL("tel:117");
}
In the following example, getURL() is used to send an SMS message:
mySMS = "sms:4156095555?body=sample sms message";
on(keyPress "5") {
getURL(mySMS);
}
In the following example, getURL() is used to send an MMS message:
// mms example
myMMS = "mms:4156095555?body=sample mms message";
on(keyPress "6") {
getURL(myMMS);
}
In the following example, getURL() is used to open a text file stored on the local file system:
// file protocol example
filePath = "file://c:/documents/flash/myApp/myvariables.txt";
on(keyPress "7") {
getURL(filePath);
}

Table of Contents

Related product manuals