チェンジセット 1304

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

experimental drawer with fill

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/swfassist/trunk/src/org/libspark/swfassist/flash/display/AbstractShapeDrawer.as

    r768 r1304  
    6666                                                drawCurvedEdge(CurvedEdgeRecord(record)); 
    6767                                                break; 
     68default: 
     69STDOUT.puts("OHOHOHOOHO"); 
     70break; 
    6871                                } 
    6972                        } 
  • as3/swfassist/trunk/src/org/libspark/swfassist/flash/display/PenGraphics.as

    r768 r1304  
    3535                public function beginFill(color:uint, alpha:Number=1.0):void 
    3636                { 
     37                        _commands.push(new GraphicBeginFill(color, alpha)); 
    3738                } 
    3839                 
     
    5758                public function endFill():void 
    5859                { 
     60                        _commands.push(new GraphicEndFill()); 
    5961                } 
    6062                 
     
    164166} 
    165167 
     168class GraphicBeginFill extends EventDispatcher implements GraphicCommand 
     169{ 
     170        public function GraphicBeginFill(color:uint, alpha:Number) 
     171        { 
     172                this.c = color; 
     173                this.a = alpha; 
     174        } 
     175         
     176        private var c:uint; 
     177        private var a:Number; 
     178         
     179        public function draw(graphics:Graphics):void 
     180        { 
     181                graphics.beginFill(c, a); 
     182        } 
     183} 
     184 
     185class GraphicEndFill extends EventDispatcher implements GraphicCommand 
     186{ 
     187        public function GraphicEndFill() 
     188        { 
     189        } 
     190         
     191        public function draw(graphics:Graphics):void 
     192        { 
     193                graphics.endFill(); 
     194        } 
     195} 
     196 
    166197class GraphicPoint extends EventDispatcher 
    167198{ 
  • as3/swfassist/trunk/src/org/libspark/swfassist/swf/io/SWFReader.as

    r768 r1304  
    18081808                                list[i] = readFillStyle(input, context); 
    18091809                        } 
    1810                         
     1810                 
    18111811                        return fillStyleArray; 
    18121812                }