Цитата:
|
так а почему ты пишешь stage.mouseX, а не cont.mouseX?
|
потому что
Цитата:
|
The point parameter is in the coordinate space of the Stage, which may differ from the coordinate space of the display object container (unless the display object container is the Stage). You can use the globalToLocal() and the localToGlobal() methods to convert points between these coordinate spaces.
|
Я, кажется, понял в чем дело - похоже он возвращает список DisplayObject'ов, а не DisplayObjectContainer'ов.
Если делать так

Код AS3:
stage.getObjectsUnderPoint(new Point(stage.mouseX, stage.mouseY));
и перебирать родителей того что вернулось - можно найти компонент, над которым висит мыша.
При этом уже

Код AS3:
trace(objs[0]==stage);//false
Как в результат попадает контейнер, у которого был вызван этот метод - загадка