チェンジセット 543
- コミット日時:
- 2008/05/30 01:24:22 (4 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Thread/branches/soumen/Thread.as3proj
r538 r543 66 66 <!-- Class files to compile (other referenced classes will automatically be included) --> 67 67 <compileTargets> 68 <compile path=" tests\RunTests.as" />68 <compile path="samples\tweener\Sample2.as" /> 69 69 </compileTargets> 70 70 <!-- Paths to exclude from the Project Explorer tree --> as3/Thread/branches/soumen/src/org/libspark/thread/threads/tweener/TweenerThread.as
r536 r543 43 43 _target = target; 44 44 _args = args; 45 _specialArgs = splitSpecialArgs(args); 45 46 _monitor = new Monitor(); 46 47 … … 50 51 private var _target:Object; 51 52 private var _args:Object; 53 private var _specialArgs:Object; 52 54 private var _monitor:IMonitor; 55 56 private function splitSpecialArgs(args:Object):Object 57 { 58 var result:Object = new Object(); 59 60 moveSpecialArg('show', args, result); 61 moveSpecialArg('hide', args, result); 62 63 return result; 64 } 65 66 private function moveSpecialArg(name:String, from:Object, to:Object):void 67 { 68 if (name in from) { 69 to[name] = from[name]; 70 delete from[name]; 71 } 72 } 53 73 54 74 override protected function run():void 55 75 { 56 if ('show' in _ args && _args.show) {76 if ('show' in _specialArgs && _specialArgs.show) { 57 77 if (_target is DisplayObject) { 58 78 DisplayObject(_target).visible = true; … … 79 99 private function completeHandler():void 80 100 { 81 if ('hide' in _ args && _args.hide) {101 if ('hide' in _specialArgs && _specialArgs.hide) { 82 102 if (_target is DisplayObject) { 83 103 DisplayObject(_target).visible = false;

