티스토리 툴바

블로그 이미지
"변화의 시기에는 배우려고 하는 이들이 세상을 차지합니다"

카테고리

분류 전체보기 (386)
매쉬업 (23)
Flash Platform (131)
AJIT (8)
Mobile (5)
JAVASCRIPT (33)
OpenAPI (5)
RIA (10)
Front-End (2)
Back-End (16)
SQL (2)
낙서장 (137)
TOOLs (4)
Total226,655
Today54
Yesterday86
Statistics Graph

AIR installer

Flash Platform/AIR / 2007/07/02 21:53
producter = new _global.System.Product("airappinstaller");
if (!producter.isInstalled()) {
       producter = new _global.System.Product("airinstaller1x0xm4");
       producter.download();
}
producter.onStatus = function(info) {
       if (info.code == "Download.Complete") {
              txt.text = "download success.";
              if (producter.launch()) txt.text = "launch success.";
              else txt.text = "launch failed.";
       } else txt.text = "download failed.";
};
airurl = "http://download.macromedia.com/pub/labs/air/sample_apps/b1/ScreenPlay.air";
localconnect = new LocalConnection();
btn.onRelease = btn.onReleaseOutside = function(){
       producter = new _global.System.Product("airappinstaller");
       if (producter.isInstalled()) {
              i = 0;
              producter.launch();
              dointerval = setInterval(init, 500);
       }
};
function init() {
       i ++;
       if( i > 10)       clearInterval(dointerval);
       localconnect.send("runtime#:air", "installFromBadge", airurl);
}
Posted by lovedev

Trackback | http://lovedev.tistory.com/trackback/25 관련글 쓰기

댓글을 달아 주세요

최근에 달린 댓글

최근에 받은 트랙백

달력

« » 2012.05
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

글 보관함