Skip to content

Instantly share code, notes, and snippets.

@iamssen
Last active December 16, 2015 05:39
Show Gist options
  • Save iamssen/5385892 to your computer and use it in GitHub Desktop.
Save iamssen/5385892 to your computer and use it in GitHub Desktop.
AIR 자동 업데이트 설정
private function update_initHandler(event:Event):void {
trace("DashboardApp.update_initHandler()", event);
if (!Capabilities.isDebugger && update.state === AIRUpdateState.AVAILABLE) {
update.update();
} else {
currentState="run";
}
}
<update:AIRUpdate id="update" updateURL="http://xxx.com/air/update.xml" init="update_initHandler(event)"/>
<?xml version="1.0" encoding="utf-8"?>
<update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
<versionNumber>0.1.1</versionNumber>
<url>http://12.28.200.201:7011/KPI/air/DashboardApp.air</url>
<description>application 을 업데이트 합니다</description>
<!--<text xml:lang="en">English description</text>
<text xml:lang="fr">French description</text>
<text xml:lang="ro">Romanian description</text>-->
</update>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment