Method 2: Define each parameter within the
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,
mySMS = "sms:4156095555?body=sample sms message";
on(keyPress "5") {
getURL(mySMS);
}
In the following example,
// mms example
myMMS = "mms:4156095555?body=sample mms message";
on(keyPress "6") {
getURL(myMMS);
}
In the following example,
// file protocol example
filePath = "file://c:/documents/flash/myApp/myvariables.txt";
on(keyPress "7") {
getURL(filePath);
}
18
Flash Lite Global Functions
getURL()
is used to send an SMS message:
getURL()
is used to send an MMS message:
getURL()
is used to open a text file stored on the local file system:
getURL()
function, as in this example:
Need help?
Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?