Цитата:
Сообщение от mott
А он ( globalToLocal ) разве принимает координаты не из системы исчисления _this клипа ?
|
Из документации:
Цитата:
globalToLocal () method
Converts the point object from the Stage (global) coordinates to the display object's (local) coordinates.
To use this method, first create an instance of the Point class. The x and y values that you assign represent global coordinates because they relate to the origin (0,0) of the main display area. Then pass the Point instance as the parameter to the globalToLocal() method. The method returns a new Point object with x and y values that relate to the origin of the display object instead of the origin of the Stage.
|
С localToGlobal аналогично.