チェンジセット 1300: as3/Commands
- コミット日時:
- 2008/09/10 14:50:41 (4 ヶ月前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Commands/src/commands/BatchCommand.as
r609 r1300 29 29 * @param com ICommandインターフェースを実装したコマンド。 30 30 */ 31 public function push(com:ICommand): void31 public function push(com:ICommand):BatchCommand 32 32 { 33 33 _commands.push(com); 34 return this; 34 35 } 35 36 … … 38 39 * Commandインスタンスを作成し処理に追加するショートカット関数。 39 40 */ 40 public function pushCommand(thisObject:*, func:Function, params:Array=null): void41 public function pushCommand(thisObject:*, func:Function, params:Array=null):BatchCommand 41 42 { 42 43 push(new Command(thisObject, func, params)); 44 45 return this; 43 46 } 44 47 … … 47 50 * WaitCommandインスタンスを作成し処理に追加するショートカット関数。 48 51 */ 49 public function pushWait( delay:Number ): void52 public function pushWait( delay:Number ):BatchCommand 50 53 { 51 54 push(new WaitCommand(delay)); 55 return this; 52 56 } 53 57 … … 56 60 * SerialCommandインスタンスを作成し処理に追加するショートカット関数。 57 61 */ 58 public function pushSerial( commands:Array = null ): void62 public function pushSerial( commands:Array = null ):BatchCommand 59 63 { 60 64 push(new SerialCommand(commands)); 65 return this; 61 66 } 62 67 … … 65 70 * ParallelCommandインスタンスを作成し処理に追加するショートカット関数。 66 71 */ 67 public function pushParallel( commands:Array = null ): void72 public function pushParallel( commands:Array = null ):BatchCommand 68 73 { 69 74 push(new ParallelCommand(commands)); 75 return this 70 76 } 71 77 72 public function pushAsync(thisObject:Object, func:Function, params:Array, eventDispatcher:EventDispatcher, eventType:String): void78 public function pushAsync(thisObject:Object, func:Function, params:Array, eventDispatcher:EventDispatcher, eventType:String):BatchCommand 73 79 { 74 80 push(new AsyncCommand(thisObject, func, params, eventDispatcher, eventType)); 81 return this; 75 82 } 76 83 … … 78 85 * FrameWaitCommandインスタンスを作成し処理に追加するショートカット。 79 86 */ 80 public function pushFrameWait(frameNum:int): void87 public function pushFrameWait(frameNum:int):BatchCommand 81 88 { 82 89 push(new FrameWaitCommand(frameNum)); 90 return this; 83 91 } 84 92 } as3/Commands/src/commands/CommandBase.as
r609 r1300 20 20 { 21 21 //ここに実行したい処理を書く 22 23 //すべての処理が終了したらこいつを呼ぶ 22 24 dispatchComplete(); 23 25 } as3/Commands/src/commands/ext/LoaderCommand.as
r271 r1300 84 84 85 85 86 /* 87 ・loaderプロパティによりローダーが渡されている場合、それを使用する。 88 ・loaderScopeとloaderPropが指定されている場合、loaderScope[loaderProp]にあるLoaderを使用する 89 ・loaderScopeとloaderPropが指定されているがLoaderがない場合、loaderScope[loaderProp]にLoaderを作成し使用する 90 ・一切の指定のない場合、command内でloaderを作成する。 91 */ 86 92 protected function buildLoader():Loader 87 93 {
