チェンジセット 38
- コミット日時:
- 2007/07/28 16:52:48 (6 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
munegon/as3/src/com/voidelement/display/RepeatButton.as
- 属性の設定値: svn:mime-type (登録) text/plain;charset=utf-8
r37 r38 42 42 43 43 /** 44 * �{�^���������̃��s�[�g��������N���X45 * @param target �}�E�X�C�x���g��^���邽�߂�InteractiveObject �C���X�^���X46 * @param delay ���s�[�g�����J�n�܂ł̒x������47 * @param interval ���s�[�g�����Ԋu44 * ボタン押下中のリピート処理を行うクラス 45 * @param target マウスイベントを登録するための InteractiveObject インスタンス 46 * @param delay リピート処理開始までの遅延時間 47 * @param interval リピート処理間隔 48 48 */ 49 49 public function RepeatButton( target:InteractiveObject, delay:uint = 500, interval:uint = 50 ) { … … 70 70 71 71 /** 72 * �}�E�X���� - ���s�[�g�����o�^72 * マウス押下 - リピート処理登録 73 73 */ 74 74 private function onMouseDown( e:MouseEvent ):void { … … 88 88 89 89 /** 90 * ���s�[�g����90 * リピート処理 91 91 */ 92 92 private function onMouseDownRepeat( e:TimerEvent ):void { … … 98 98 99 99 /** 100 * �}�E�X���� ���s�[�g������100 * マウス押上 - リピート処理解除 101 101 */ 102 102 private function onMouseUp( e:MouseEvent ):void { munegon/as3/src/com/voidelement/manager/DepthManager.as
- 属性の設定値: svn:mime-type (登録) text/plain;charset=utf-8
r37 r38 40 40 41 41 /** 42 * �R���X�g���N�^43 * 44 * @param base �i�x�������splayObjectContainer42 * コンストラクタ 43 * 44 * @param base 進度を管理するDisplayObjectContainer 45 45 */ 46 46 public function DepthManager( container:DisplayObjectContainer ):void { … … 61 61 62 62 /** 63 * ����q������ * 64 * @param child �lj����splayObject 63 * 末尾に子を追加する 64 * 65 * @param child 追加するDisplayObject 65 66 */ 66 67 public function addChild( child:DisplayObject ):DisplayObject { … … 75 76 76 77 /** 77 * �w�肵���[�x�Ɏq������ * 78 * @param child �lj����splayObject 79 * @param depth �lj���x 78 * 指定した深度に子を追加する 79 * 80 * @param child 追加するDisplayObject 81 * @param depth 追加先深度 80 82 */ 81 83 public function addChildAt( child:DisplayObject, depth:int ):DisplayObject { … … 86 88 87 89 if ( _dict[ child0 ] == depth ){ 88 // �w���x�ɐ����������͍폜90 // 指定深度に先客がいる場合は削除 89 91 removeChild( child0 ); 90 92 } … … 99 101 100 102 /** 101 * �w�肵���[�x�֎q��������� * 102 * @param child �ړ�����splayObject 103 * @param depth �ړ����x 103 * 指定した深度へ子を移動させる 104 * 105 * @param child 移動するDisplayObject 106 * @param depth 移動先深度 104 107 */ 105 108 public function setDepth( child:DisplayObject, depth:int ):void { … … 114 117 115 118 if ( child0 != null ){ 116 // �w���x�ɐ����������͌�119 // 指定深度に先客がいる場合は交換 117 120 swapChildren( child, child0 ); 118 121 } else { … … 133 136 134 137 /** 135 * �w�肵���q�̐[�x������� */ 138 * 指定した子の深度を取得する 139 */ 136 140 public function getDepth( child:DisplayObject ):int { 137 141 return _dict[ child ]; … … 140 144 141 145 /** 142 * �q������� */ 146 * 子を交換する 147 */ 143 148 public function swapChildren( child1:DisplayObject, child2:DisplayObject ):void { 144 149 if ( child1 == child2 ){ … … 158 163 159 164 /** 160 * �w�肵���q������� * 161 * @param child �폜����splayObject 165 * 指定した子を削除する 166 * 167 * @param child 削除するDisplayObject 162 168 */ 163 169 public function removeChild( child:DisplayObject ):DisplayObject { … … 170 176 171 177 /** 172 * �w���x�̎q������� * 173 * @param depth �폜�w���x 178 * 指定深度の子を削除する 179 * 180 * @param depth 削除指定深度 174 181 */ 175 182 public function removeChildAt( depth:int ):DisplayObject { … … 187 194 188 195 /** 189 * �w���x�ɊY�������̃C���f�b�N�X���196 * 指定深度に該当する子のインデックスを返す 190 197 */ 191 198 private function searchIndex( depth:int ):int { … … 227 234 228 235 /** 229 * �w���x�ɔz�u�����������X�^���X������� */ 236 * 指定深度に配置されているインスタンスを取得する 237 */ 230 238 private function getInstanceAtDepth( depth:int ):DisplayObject { 231 239 return _dict[ depth ];

