チェンジセット 38

差分発生行の前後
無視リスト:
コミット日時:
2007/07/28 16:52:48 (6 年前)
コミッタ:
munegon
ログメッセージ:

--

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • munegon/as3/src/com/voidelement/display/RepeatButton.as

    • 属性の設定値: svn:mime-type (登録) text/plain;charset=utf-8
    r37 r38  
    4242                 
    4343                /** 
    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 
     44                 * ボタン押下中のリピート処理を行うクラス 
     45                 * @param       target          マウスイベントを登録するための InteractiveObject インスタンス 
     46                 * @param       delay           リピート処理開始までの遅延時間 
     47                 * @param       interval        リピート処理間隔 
    4848                 */ 
    4949                public function RepeatButton( target:InteractiveObject, delay:uint = 500, interval:uint = 50 ) { 
     
    7070                 
    7171                /** 
    72                  * �}�E�X���� - ���s�[�g�����o�^ 
     72                 * マウス押下 - リピート処理登録 
    7373                 */ 
    7474                private function onMouseDown( e:MouseEvent ):void { 
     
    8888                 
    8989                /** 
    90                  * ���s�[�g���� 
     90                 * リピート処理 
    9191                 */ 
    9292                private function onMouseDownRepeat( e:TimerEvent ):void { 
     
    9898                 
    9999                /** 
    100                  * �}�E�X���� ���s�[�g������ 
     100                 * マウス押上 - リピート処理解除 
    101101                 */ 
    102102                private function onMouseUp( e:MouseEvent ):void { 
  • munegon/as3/src/com/voidelement/manager/DepthManager.as

    • 属性の設定値: svn:mime-type (登録) text/plain;charset=utf-8
    r37 r38  
    4040                 
    4141                /** 
    42                  * �R���X�g���N�^ 
    43                  *  
    44                  * @param base �i�x�������splayObjectContainer 
     42                 * コンストラクタ 
     43                 *  
     44                 * @param base 進度を管理するDisplayObjectContainer 
    4545                 */ 
    4646                public function DepthManager( container:DisplayObjectContainer ):void { 
     
    6161                 
    6262                /** 
    63                  * ����q������           *  
    64                  * @param child �lj����splayObject 
     63                 * 末尾に子を追加する 
     64                 *  
     65                 * @param child 追加するDisplayObject 
    6566                 */ 
    6667                public function addChild( child:DisplayObject ):DisplayObject { 
     
    7576                 
    7677                /** 
    77                  * �w�肵���[�x�Ɏq������           *  
    78                  * @param child �lj����splayObject 
    79                  * @param depth �lj���x 
     78                 * 指定した深度に子を追加する 
     79                 *  
     80                 * @param child 追加するDisplayObject 
     81                 * @param depth 追加先深度 
    8082                 */ 
    8183                public function addChildAt( child:DisplayObject, depth:int ):DisplayObject { 
     
    8688                                 
    8789                                if ( _dict[ child0 ] == depth ){ 
    88                                         // �w���x�ɐ����������͍폜 
     90                                        // 指定深度に先客がいる場合は削除 
    8991                                        removeChild( child0 ); 
    9092                                } 
     
    99101                 
    100102                /** 
    101                  * �w�肵���[�x�֎q���������                *  
    102                  * @param child �ړ�����splayObject 
    103                  * @param depth �ړ����x 
     103                 * 指定した深度へ子を移動させる 
     104                 *  
     105                 * @param child 移動するDisplayObject 
     106                 * @param depth 移動先深度 
    104107                 */ 
    105108                public function setDepth( child:DisplayObject, depth:int ):void { 
     
    114117                         
    115118                        if ( child0 != null ){ 
    116                                 // �w���x�ɐ����������͌� 
     119                                // 指定深度に先客がいる場合は交換 
    117120                                swapChildren( child, child0 ); 
    118121                        } else { 
     
    133136                 
    134137                /** 
    135                  * �w�肵���q�̐[�x�������          */ 
     138                 * 指定した子の深度を取得する 
     139                 */ 
    136140                public function getDepth( child:DisplayObject ):int { 
    137141                        return _dict[ child ]; 
     
    140144                 
    141145                /** 
    142                  * �q�������             */ 
     146                 * 子を交換する 
     147                 */ 
    143148                public function swapChildren( child1:DisplayObject, child2:DisplayObject ):void { 
    144149                        if ( child1 == child2 ){ 
     
    158163                 
    159164                /** 
    160                  * �w�肵���q�������               *  
    161                  * @param child �폜����splayObject 
     165                 * 指定した子を削除する 
     166                 *  
     167                 * @param child 削除するDisplayObject 
    162168                 */ 
    163169                public function removeChild( child:DisplayObject ):DisplayObject { 
     
    170176                 
    171177                /** 
    172                  * �w���x�̎q�������              *  
    173                  * @param depth �폜�w���x 
     178                 * 指定深度の子を削除する 
     179                 *  
     180                 * @param depth 削除指定深度 
    174181                 */ 
    175182                public function removeChildAt( depth:int ):DisplayObject { 
     
    187194                 
    188195                /** 
    189                  * �w���x�ɊY�������̃C���f�b�N�X��� 
     196                 * 指定深度に該当する子のインデックスを返す 
    190197                 */ 
    191198                private function searchIndex( depth:int ):int { 
     
    227234                 
    228235                /** 
    229                  *  �w���x�ɔz�u�����������X�^���X�������                 */ 
     236                 *  指定深度に配置されているインスタンスを取得する 
     237                 */ 
    230238                private function getInstanceAtDepth( depth:int ):DisplayObject { 
    231239                        return _dict[ depth ];