2011-08-01 15 views

答えて

0

エアアンドロイドネイティブ拡張:

https://www.dropbox.com/s/gwkyz74r3ajp4p7/com.adobe.sendsms.ANESendSms.ane

権限:

<uses-permission android:name="android.permission.SEND_SMS" /> 

AS3:

import com.adobe.sendsms.ANESendSms; 
import flash.events.StatusEvent; 

private function sendSms():void { 
    var sms:ANESendSms = new ANESendSms(); 
    sms.addEventListener(StatusEvent.STATUS, statusHandle); 
    sms.sendSms("667250202", "txt"); 
} 

private function statusHandle(e:StatusEvent):void { 
    if (e.level == "sent_-1") {// sent ok 
    } 
    if (e.level == "delivered_-1") {// delivered ok 
    } 
} 
関連する問題