Initiating a text or multimedia message

You can use Flash Lite to initiate a short message service (SMS) or multimedia message service (MMS) message. To initiate an SMS or MMS message in a Flash Lite application, you use the getURL() command, passing it the sms: or mms: protocols in place of the standard http protocol, and then the phone number to which you want to send the message.

getURL("sms:555-1212");

You can optionally specify the message body in the URL query string, as the following code shows:

getURL("sms:555-1212?body=More info please");

To initiate an MMS message, you use the mms: protocol instead of sms:, as follows:

getURL("mms:555-1212");

NOTE

It's not possible to specify an attachment for the MMS message from Flash Lite.

Flash Lite processes only one getURL() action per frame or per event handler. Certain handsets restrict the getURL() action to keypress events only, in which case the getURL() call is processed only if it is triggered within a keypress event handler. Even under such circumstances, only one getURL() action is processed per keypress event handler. The following example initiates an SMS message when the user presses the Select button on the device:

on (keyPress "<Enter>"){
    getURL("sms:555-1212");
}