チェンジセット 250

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

--

ファイル:

凡例:

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

    r232 r250  
    2323        { 
    2424                protected static var commandDict:Dictionary 
     25                protected static var _numCommands:int = 0; 
    2526                 
    2627                public static function execute(command:ICommand):ICommand 
     
    3334                        }else{ 
    3435                                commandDict[command] = command; 
     36                                _numCommands++; 
     37                                 
     38                                //trace("CommandComtainer.added",_numCommands); 
    3539                        } 
    3640                         
    37                         command.addEventListener(Event.COMPLETE, executeHandler, false, 0, true); 
     41                        command.addEventListener(Event.COMPLETE, executeHandler); 
    3842                        command.execute(); 
    3943                         
    4044                        return command; 
     45                } 
     46                 
     47                public function get numCommands():int 
     48                { 
     49                        return _numCommands; 
    4150                } 
    4251                 
     
    4554                        var command:ICommand = ICommand(e.target); 
    4655                        command.removeEventListener(Event.COMPLETE, executeHandler); 
     56                        _numCommands--; 
    4757                         
     58                        //trace("CommandComtainer.complete",_numCommands); 
     59                         
     60                        //すぐ消さない。1フレームぐらい待ったほうがいい?? 
     61                        commandDict[command] = null; 
    4862                        delete commandDict[command]; 
    4963                } 
  • as3/Commands/src/commands/WaitCommand.as

    r232 r250  
    3939                { 
    4040                        _timer.removeEventListener(TimerEvent.TIMER_COMPLETE, executeCompleteHandler ); 
     41                        _timer.stop(); 
    4142                        _timer = null; 
    4243                        dispatchComplete();