チェンジセット 743
- コミット日時:
- 2008/07/01 23:37:54 (2 ヶ月前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Flagment/tests/FlagmentTest.as
r742 r743 6 6 var hoge:Function = function():void { 7 7 trace("hoge"); 8 Flagment.unbindAnd("a_and_b_and_ !c");8 Flagment.unbindAnd("a_and_b_and_c10"); 9 9 } 10 10 11 11 Flagment.register("a", false ); 12 Flagment.register("b", false );13 Flagment.register("c", true);12 Flagment.register("b", true ); 13 Flagment.register("c", 0 ); 14 14 15 15 Flagment.bind("a", true, aTrue ); 16 Flagment.bind("b", true, b True );17 Flagment.bind("c", false, c False, true );18 Flagment.bindAnd("a_and_b_and_ !c", { a:true, b:true, c:false}, hoge );16 Flagment.bind("b", true, bFalse ); 17 Flagment.bind("c", false, c10, true ); 18 Flagment.bindAnd("a_and_b_and_c10", { a:true, b:false, c:10 }, hoge ); 19 19 20 20 21 Flagment.update("a", true ); 21 Flagment.update("a", true ); // aTrue ���Ă��� 22 Flagment.update("b", false ); // bFalse ���Ă��� 23 Flagment.update("c", 10 ); // c10 ���Ă��� �� hoge ���Ă��� 24 22 25 Flagment.update("b", true ); 23 Flagment.update(" c", false );26 Flagment.update("b", false ); // bFalse ���Ă��� 24 27 25 Flagment.update("b", false ); 26 Flagment.update("b", true ); 27 28 Flagment.update("c", true ); 29 Flagment.update("c", false ); 28 Flagment.update("c", 5 ); 29 Flagment.update("c", 10 ); // isOnce �Őݒ肳����������c10 �͌Ă����� 30 Flagment.unbind("a", true, aTrue ); 31 Flagment.unbind("b", true, bFalse ); 30 32 } 31 33 … … 35 37 } 36 38 37 private function b True():void {38 trace("b: true");39 private function bFalse():void { 40 trace("b: false"); 39 41 } 40 42 41 private function c False():void {42 trace("c: false");43 private function c10():void { 44 trace("c: 10"); 43 45 } 44 46 }
