_capSMS

可用性

Flash Lite 1.1。

用法

_capSMS

说明

数值变量;表明 Flash Lite 是否能通过使用 GetURL() ActionScript 命令发送短消息服务 (SMS) 消息。如果能,则定义此变量并具有值 1;如果不能,则不定义此变量。

示例

以下示例在 Flash Lite 1.1 中将 canSMS 设置为 1,但在 Flash Lite 1.0 中保留为 undefined(但由于并不是所有 Flash Lite 1.1 电话都能发送 SMS 消息,因此,此代码的使用还取决于电话):

on(release) {
    canSMS = _capSMS;
    if (canSMS) {
        // 发送 SMS
        myMessage = "sms:4156095555?body=sample sms message";
        getURL(myMessage);
    }
}