チェンジセット 4127

差分発生行の前後
無視リスト:
コミット日時:
2010/07/29 12:36:41 (2 年前)
コミッタ:
nobu
ログメッセージ:

SWFWheel:

  • fixed #120 correct right target.
  • ターゲット走査がネイティブと違っていたのを修正
ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/SWFWheel/trunk/src/org/libspark/ui/SWFWheel.as

    r4124 r4127  
    2222    public class SWFWheel 
    2323    { 
    24         public static const VERSION:String = '1.5 RC1'; 
     24        public static const VERSION:String = '1.5 RC2'; 
    2525        public static const STATE_NATIVE:int = 0; 
    2626        public static const STATE_IF_NEEDED:int = 1; 
     
    133133            var targets:Array = _stage.getObjectsUnderPoint(new Point(_stage.mouseX, 
    134134                                                                      _stage.mouseY)); 
    135             //  push stack stage as last target. 
    136             targets.push(_stage); 
     135            var tmp:DisplayObject = targets.pop() as DisplayObject; 
    137136            //  search deepest target. 
    138137            var target:InteractiveObject; 
    139             for each (var tmp:DisplayObject in targets) 
    140             { 
     138            while (tmp != null) { 
    141139                target = tmp as InteractiveObject; 
    142140                if (target) break; 
     141                tmp = tmp.parent; 
    143142            } 
     143            //  prevent process if can't find target. 
     144            if (!target) return; 
    144145            //  create event. 
    145146            var event:MouseEvent = new MouseEvent(