チェンジセット 250
- コミット日時:
- 2008/02/21 21:06:48 (4 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Commands/src/commands/CommandContainer.as
r232 r250 23 23 { 24 24 protected static var commandDict:Dictionary 25 protected static var _numCommands:int = 0; 25 26 26 27 public static function execute(command:ICommand):ICommand … … 33 34 }else{ 34 35 commandDict[command] = command; 36 _numCommands++; 37 38 //trace("CommandComtainer.added",_numCommands); 35 39 } 36 40 37 command.addEventListener(Event.COMPLETE, executeHandler , false, 0, true);41 command.addEventListener(Event.COMPLETE, executeHandler); 38 42 command.execute(); 39 43 40 44 return command; 45 } 46 47 public function get numCommands():int 48 { 49 return _numCommands; 41 50 } 42 51 … … 45 54 var command:ICommand = ICommand(e.target); 46 55 command.removeEventListener(Event.COMPLETE, executeHandler); 56 _numCommands--; 47 57 58 //trace("CommandComtainer.complete",_numCommands); 59 60 //すぐ消さない。1フレームぐらい待ったほうがいい?? 61 commandDict[command] = null; 48 62 delete commandDict[command]; 49 63 } as3/Commands/src/commands/WaitCommand.as
r232 r250 39 39 { 40 40 _timer.removeEventListener(TimerEvent.TIMER_COMPLETE, executeCompleteHandler ); 41 _timer.stop(); 41 42 _timer = null; 42 43 dispatchComplete();

