Показать сообщение отдельно
Старый 11.07.2015, 02:30
undefined вне форума Посмотреть профиль Отправить личное сообщение для undefined Найти все сообщения от undefined
  № 1  
Ответить с цитированием
undefined

Регистрация: Oct 2006
Сообщений: 2,283
По умолчанию Как работает getObjectsUnderPoint?

Читаем хэлп:
Цитата:
Returns an array of objects that lie under the specified point and are children (or grandchildren, and so on) of this DisplayObjectContainer instance. Any child objects that are inaccessible for security reasons are omitted from the returned array. To determine whether this security restriction affects the returned array, call the areInaccessibleObjectsUnderPoint() method.
Т.е. возвращать он должен детей,так?Пишу
Код AS3:
var objs:Array = cont.getObjectsUnderPoint(new Point(stage.mouseX, stage.mouseY));
trace(objs[0]==cont); //true
Самое интересное, что в objs вообще нет того, над чем мышь находится