创建纯as的android项目

哈哈,标题党,想知道怎么创建很简单,直接下载一个flashdevelop,里面创建工程会包含纯as工程的android项目。

 1 package 
2 {
3 import flash.desktop.NativeApplication;
4 import flash.events.Event;
5 import flash.display.Sprite;
6 import flash.display.StageAlign;
7 import flash.display.StageScaleMode;
8 import flash.ui.Multitouch;
9 import flash.ui.MultitouchInputMode;
10
11 /**
12 * ...
13 * @author zhengs
14 */
15 public class Main extends Sprite
16 {
17
18 public function Main():void
19 {
20 stage.scaleMode = StageScaleMode.NO_SCALE;
21 stage.align = StageAlign.TOP_LEFT;
22 stage.addEventListener(Event.DEACTIVATE, deactivate);
23
24 // touch or gesture?
25 Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
26
27 // entry point
28 }
29
30 private function deactivate(e:Event):void
31 {
32 // auto-close
33 NativeApplication.nativeApplication.exit();
34 }
35
36 }
37
38 }



posted @ 2011-11-24 15:41  硕气书生  Views(746)  Comments(0Edit  收藏  举报