チェンジセット 1300

差分発生行の前後
無視リスト:
コミット日時:
2008/09/10 14:50:41 (4 ヶ月前)
コミッタ:
fladdict
ログメッセージ:

--

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/Commands/src/commands/BatchCommand.as

    r609 r1300  
    2929                 * @param com ICommandインターフェースを実装したコマンド。 
    3030                 */ 
    31                 public function push(com:ICommand):voi
     31                public function push(com:ICommand):BatchComman
    3232                { 
    3333                        _commands.push(com); 
     34                        return this; 
    3435                } 
    3536                 
     
    3839                 * Commandインスタンスを作成し処理に追加するショートカット関数。 
    3940                 */ 
    40                 public function pushCommand(thisObject:*, func:Function, params:Array=null):voi
     41                public function pushCommand(thisObject:*, func:Function, params:Array=null):BatchComman
    4142                { 
    4243                        push(new Command(thisObject, func, params)); 
     44                         
     45                        return this; 
    4346                } 
    4447                 
     
    4750                 * WaitCommandインスタンスを作成し処理に追加するショートカット関数。 
    4851                 */ 
    49                 public function pushWait( delay:Number ):voi
     52                public function pushWait( delay:Number ):BatchComman
    5053                { 
    5154                        push(new WaitCommand(delay)); 
     55                        return this; 
    5256                } 
    5357                 
     
    5660                 * SerialCommandインスタンスを作成し処理に追加するショートカット関数。 
    5761                 */ 
    58                 public function pushSerial( commands:Array = null ):voi
     62                public function pushSerial( commands:Array = null ):BatchComman
    5963                { 
    6064                        push(new SerialCommand(commands)); 
     65                        return this; 
    6166                } 
    6267                 
     
    6570                 * ParallelCommandインスタンスを作成し処理に追加するショートカット関数。 
    6671                 */ 
    67                 public function pushParallel( commands:Array = null ):voi
     72                public function pushParallel( commands:Array = null ):BatchComman
    6873                { 
    6974                        push(new ParallelCommand(commands)); 
     75                        return this 
    7076                } 
    7177                 
    72                 public function pushAsync(thisObject:Object, func:Function, params:Array, eventDispatcher:EventDispatcher, eventType:String):voi
     78                public function pushAsync(thisObject:Object, func:Function, params:Array, eventDispatcher:EventDispatcher, eventType:String):BatchComman
    7379                { 
    7480                        push(new AsyncCommand(thisObject, func, params, eventDispatcher, eventType)); 
     81                        return this; 
    7582                } 
    7683                 
     
    7885                 * FrameWaitCommandインスタンスを作成し処理に追加するショートカット。 
    7986                 */ 
    80                 public function pushFrameWait(frameNum:int):voi
     87                public function pushFrameWait(frameNum:int):BatchComman
    8188                { 
    8289                        push(new FrameWaitCommand(frameNum)); 
     90                        return this; 
    8391                } 
    8492        } 
  • as3/Commands/src/commands/CommandBase.as

    r609 r1300  
    2020                { 
    2121                        //ここに実行したい処理を書く 
     22                         
     23                        //すべての処理が終了したらこいつを呼ぶ 
    2224                        dispatchComplete(); 
    2325                } 
  • as3/Commands/src/commands/ext/LoaderCommand.as

    r271 r1300  
    8484                 
    8585                 
     86                /* 
     87                        ・loaderプロパティによりローダーが渡されている場合、それを使用する。 
     88                        ・loaderScopeとloaderPropが指定されている場合、loaderScope[loaderProp]にあるLoaderを使用する 
     89                        ・loaderScopeとloaderPropが指定されているがLoaderがない場合、loaderScope[loaderProp]にLoaderを作成し使用する 
     90                        ・一切の指定のない場合、command内でloaderを作成する。 
     91                */ 
    8692                protected function buildLoader():Loader 
    8793                {