チェンジセット 834

差分発生行の前後
無視リスト:
コミット日時:
2008/07/13 00:12:33 (4 ヶ月前)
コミッタ:
mzp
ログメッセージ:

swfの構造をツリーに表示するようにした

as3/ByteCodeDisassemblerからコードをコピーした。

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • air/ByteCodeDisassembler/ByteCodeDisassembler.as

    • 属性の設定値: svn:mergeinfo (登録)
  • air/ByteCodeDisassembler/Main.mxml

    r811 r834  
    11<Application xmlns="http://www.adobe.com/2006/mxml" 
    22             width="100%" height="100%" 
    3              horizontalAlign="left" verticalAlign="top"> 
     3             horizontalAlign="left" verticalAlign="top" 
     4             creationComplete="init()"> 
    45  <Script> 
    56    <![CDATA[ 
    6 function open() : void{ 
    7 trace('hoge'); 
     7import mx.controls.Label; 
     8import Controller; 
     9private var controller : Controller = new Controller(); 
     10 
     11private function init() : void{ 
     12  var self : Object = this; 
     13  controller.onUpdate = function() : void{ 
     14    self.tree.dataProvider = controller.frame; 
     15  }; 
     16
     17 
     18private function open() : void{ 
     19  controller.disassemble(this.path.text); 
    820} 
    921    ]]> 
    1022  </Script> 
    1123  <HBox width="100%" height="20"> 
    12     <TextInput width="100%" enter="open()"/> 
     24    <TextInput width="100%" id="path" enter="open()" text="http://localhost:3001/swf/Main.swf"/> 
    1325    <Button label="..." /> 
    1426  </HBox> 
    1527  <HBox width="100%" height="100%"> 
    16     <Tree width="200" height="100%"/> 
     28    <Tree width="200" height="100%" id="tree"/> 
    1729    <Button label="hoge" /> 
    1830  </HBox> 
  • air/ByteCodeDisassembler/Makefile

    r811 r834  
    55rascut: 
    66        LC_ALL=C rascut -s Main.mxml -l ~/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt 
     7 
     8cleanlog: 
     9        rm ~/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt 
    710clean: 
    811        rm *~ 
  • air/ByteCodeDisassembler/org

    • 属性の設定値: svn:mergeinfo (登録)
  • air/ByteCodeDisassembler/org/libspark/disassemble/SwfStream.as

    r299 r834  
    5757                        var byte1:uint = readByte(); 
    5858                        if (byte1 != 0x46 && byte1 != 0x43) { 
    59                                 throw new Error('Invalid SWF file'); 
     59                                throw new Error('Invalid SWF file(1):'+byte1); 
    6060                        } 
    6161                        if (readByte() != 0x57) { 
    62                                 throw new Error('Invalid SWF file'); 
     62                                throw new Error('Invalid SWF file:2'); 
    6363                        } 
    6464                        if (readByte() != 0x53) { 
    65                                 throw new Error('Invalid SWF file'); 
     65                                throw new Error('Invalid SWF file:3'); 
    6666                        } 
    6767                         
     
    6969                         
    7070                        if (readUnsignedInt() != length) { 
    71                                 throw new Error('Invalid SWF file'); 
     71                                throw new Error('Invalid SWF file:4'); 
    7272                        } 
    7373