チェンジセット 249

差分発生行の前後
無視リスト:
コミット日時:
2008/02/18 18:33:10 (4 年前)
コミッタ:
fladdict
ログメッセージ:

--

ファイル:

凡例:

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

    r232 r249  
    11package commands 
    22{ 
     3        import flash.events.EventDispatcher; 
     4         
    35        /** 
    46         * ParallelCommand と SerialCommand のベースとなる抽象クラスです。 
     
    1012                protected var _index:Number 
    1113                 
    12                 public function BatchCommand( commandArray:Array
     14                public function BatchCommand( commandArray:Array=null
    1315                { 
    1416                        super(); 
     17                         
    1518                        _index = 0; 
    16                         _commands = commandArray.concat(); 
     19                        _commands = (commandArray==null)? [] : commandArray.concat(); 
    1720                } 
    1821                 
     
    5154                 * SerialCommandインスタンスを作成し処理に追加するショートカット関数です。 
    5255                 */ 
    53                 public function pushSerial( commands:Array ):void 
     56                public function pushSerial( commands:Array = null ):void 
    5457                { 
    5558                        var c:SerialCommand = new SerialCommand(commands); 
     
    6164                 * ParallelCommandインスタンスを作成し処理に追加するショートカット関数です。 
    6265                 */ 
    63                 public function pushParallel( commands:Array):void 
     66                public function pushParallel( commands:Array = null ):void 
    6467                { 
    6568                        var c:ParallelCommand = new ParallelCommand(commands); 
    6669                        push(c); 
    6770                } 
     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                } 
    6883        } 
    6984} 
  • as3/Commands/src/commands/ParallelCommand.as

    r232 r249  
    2020        public class ParallelCommand extends BatchCommand 
    2121        { 
    22                 public function ParallelCommand( commandArray:Array
     22                public function ParallelCommand( commandArray:Array = null
    2323                { 
    2424                        super( commandArray ); 
  • as3/Commands/src/commands/SerialCommand.as

    r232 r249  
    2828                 * @param comamndArray ICommandインターフェースを実装したコマンドの配列。 
    2929                 */ 
    30                 public function SerialCommand( commandArray:Array
     30                public function SerialCommand( commandArray:Array = null
    3131                { 
    3232                        super(commandArray);