チェンジセット 843
- コミット日時:
- 2008/07/14 23:51:31 (4 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
air/ByteCodeDisassembler/Controller.as
r842 r843 12 12 public var frame : Array = []; 13 13 public var info : Object = []; 14 15 // listener 14 16 private var onLoad : Array = []; 15 17 private var onInfo : Array = []; 16 18 private var onProgress : Array = []; 17 19 20 private var total:uint = 0; 21 private var loaded: uint = 0; 22 23 24 18 25 private var stream : URLStream; 26 27 // -------------------- 28 // 進捗状況の取得 29 // -------------------- 30 public function get bytesLoaded():uint{ 31 return this.loaded; 32 } 33 34 public function get bytesTotal():uint{ 35 return this.total; 36 } 19 37 38 20 39 // -------------------- 21 40 //event handler … … 71 90 72 91 var swf:SwfStream = new SwfStream(bytes); 92 this.total = swf.length; 73 93 swf.seekToBody(); 74 94 try { 75 95 for (;;) { 96 this.loaded = swf.position; 97 notify(onProgress); 98 76 99 var byte:uint = swf.readShort(); 77 100 var tag:uint = byte >>> 6; air/ByteCodeDisassembler/Main.mxml
r842 r843 29 29 } 30 30 }); 31 controller.addProgressListener(function () : void{ 32 self.progress.setProgress(self.controller.bytesLoaded,self.controller.bytesTotal); 33 }); 31 34 } 32 35 ]]> … … 47 50 </HBox> 48 51 </HBox> 52 <ProgressBar width="100%" id="progress" mode="manual"/> 49 53 </Application>

