チェンジセット 249
- コミット日時:
- 2008/02/18 18:33:10 (4 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Commands/src/commands/BatchCommand.as
r232 r249 1 1 package commands 2 2 { 3 import flash.events.EventDispatcher; 4 3 5 /** 4 6 * ParallelCommand と SerialCommand のベースとなる抽象クラスです。 … … 10 12 protected var _index:Number 11 13 12 public function BatchCommand( commandArray:Array )14 public function BatchCommand( commandArray:Array=null ) 13 15 { 14 16 super(); 17 15 18 _index = 0; 16 _commands = commandArray.concat();19 _commands = (commandArray==null)? [] : commandArray.concat(); 17 20 } 18 21 … … 51 54 * SerialCommandインスタンスを作成し処理に追加するショートカット関数です。 52 55 */ 53 public function pushSerial( commands:Array ):void56 public function pushSerial( commands:Array = null ):void 54 57 { 55 58 var c:SerialCommand = new SerialCommand(commands); … … 61 64 * ParallelCommandインスタンスを作成し処理に追加するショートカット関数です。 62 65 */ 63 public function pushParallel( commands:Array ):void66 public function pushParallel( commands:Array = null ):void 64 67 { 65 68 var c:ParallelCommand = new ParallelCommand(commands); 66 69 push(c); 67 70 } 71 72 public function pushAsync(thisObject:Object, func:Function, params:Array, eventDispatcher:EventDispatcher, eventType:String):void 73 { 74 var c:AsyncCommand = new AsyncCommand(thisObject, func, params, eventDispatcher, eventType); 75 push(c); 76 } 77 78 public function pushFrameWait(frameNum:int):void 79 { 80 var c:FrameWaitCommand = new FrameWaitCommand(frameNum); 81 push(c); 82 } 68 83 } 69 84 } as3/Commands/src/commands/ParallelCommand.as
r232 r249 20 20 public class ParallelCommand extends BatchCommand 21 21 { 22 public function ParallelCommand( commandArray:Array )22 public function ParallelCommand( commandArray:Array = null ) 23 23 { 24 24 super( commandArray ); as3/Commands/src/commands/SerialCommand.as
r232 r249 28 28 * @param comamndArray ICommandインターフェースを実装したコマンドの配列。 29 29 */ 30 public function SerialCommand( commandArray:Array )30 public function SerialCommand( commandArray:Array = null) 31 31 { 32 32 super(commandArray);

