Показать сообщение отдельно
Старый 05.10.2007, 16:34
Bорон вне форума Посмотреть профиль Отправить личное сообщение для Bорон Посетить домашнюю страницу Bорон Найти все сообщения от Bорон
  № 17  
Ответить с цитированием
Bорон
 
Аватар для Bорон

Регистрация: Jun 2005
Адрес: Очень странное место
Сообщений: 329
Отправить сообщение для Bорон с помощью ICQ
Цитата:
Usage 1: Compares the x and y coordinates to the shape or bounding box of the specified instance, according to the shapeFlag setting. If shapeFlag is set to true, only the area actually occupied by the instance on the Stage is evaluated, and if x and y overlap at any point, a value of true is returned. This evaluation is useful for determining if the movie clip is within a specified hit or hotspot area. The method signature for this usage is:

public hitTest(x:Number, y:Number, [shapeFlag:Boolean]):Boolean

Usage 2: Evaluates the bounding boxes of the target and specified instance, and returns true if they overlap or intersect at any point. The method signature for this usage is:

public hitTest(target:Object):Boolean
В первом случае у нас проверяется принадлежат ли координаты точек заполеной области клипа или ограничивающему его прямоугольнике.
Во втором просто пересечение ограничивающих прямоугольников двух обьектов.

Ни то ни другое нам как то не походит...
__________________
Студия "Ночной народ" | http://nightfolk.net/