Macromedia flash 8-learning flash lite 1.x actionscript 사용자 설명서

다운로드
페이지 26
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.