Initiating a text or multimedia message
21
The following code attempts to initiate call to 555-1212:
getURL("tel:555-1212");
Flash Lite only processes 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 starts a phone call when the user presses the Select button on the device:
on (keyPress "<Enter>"){
getURL("tel:555-1212");
}
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");
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");
}
NO
TE
It’s not possible to specify an attachment for the MMS message from Flash Lite.
Содержание FLASH 8-LEARNING FLASH LITE 1.X ACTIONSCRIPT
Страница 1: ...Learning Flash Lite 1 X ActionScript ...
Страница 4: ...4 Contents ...
Страница 8: ...8 About Flash Lite 1 x ActionScript ...
Страница 18: ...18 Flash 4 ActionScript Primer ...