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

