开发者

changing index position on startDrag()

I am making a dragable map and there are few thing on top of the map(UI). When the map is double clicked it enables drag. But it's changing the index position, basically, it going over the UI. what's the easiest way to contr开发者_如何学JAVAol the index position of the map? The click and drag event is controlled in mapZoom class.

this.addEventListener(MouseEvent.MOUSE_DOWN, enableDrag);

public function enableDrag(e:MouseEvent):void

{ this.startDrag(); }


i think the best way is to add two children to your root (main) clip. thee use the first (that is always below the second) for the map and the second for UI

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜