チェンジセット 550

差分発生行の前後
無視リスト:
コミット日時:
2008/05/31 12:44:03 (6 ヶ月前)
コミッタ:
yossy
ログメッセージ:

Thread(soumen): TweenerThread? にキャンセルを実装

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/Thread/branches/soumen/Thread.as3proj

    r548 r550  
    6767  <!-- Class files to compile (other referenced classes will automatically be included) --> 
    6868  <compileTargets> 
    69     <compile path="samples\progress\Sample.as" /> 
     69    <compile path="samples\tweener\Sample.as" /> 
    7070  </compileTargets> 
    7171  <!-- Paths to exclude from the Project Explorer tree --> 
  • as3/Thread/branches/soumen/src/org/libspark/thread/threads/tweener/TweenerThread.as

    r543 r550  
    5454                private var _monitor:IMonitor; 
    5555                 
     56                public function cancel():void 
     57                { 
     58                        interrupt(); 
     59                } 
     60                 
    5661                private function splitSpecialArgs(args:Object):Object 
    5762                { 
     
    9398                { 
    9499                        _monitor.wait(); 
    95                         // TODO: 割り込み処理。今は無視 
    96                         interrupted(waitTween); 
     100                        interrupted(interruptedHandler); 
    97101                } 
    98102                 
     
    112116                        _monitor.notifyAll(); 
    113117                } 
     118                 
     119                private function interruptedHandler():void 
     120                { 
     121                        if (Tweener.isTweening(_target)) { 
     122                                Tweener.removeTweens(_target); 
     123                        } 
     124                } 
    114125        } 
    115126}