Hi friends,
Anyone help me for collision detection of different shapes in flash lite 1.1/2.0 any, thank you..![]()
Hi friends,
Anyone help me for collision detection of different shapes in flash lite 1.1/2.0 any, thank you..![]()
Hi,
The API is called hitTest and has been around since Flash5, which includes all Flash Lite versions.
http://www.adobe.com/support/flash/a...ionary534.html
Mark
Mark Doherty
Developer Evangelist
Adobe Systems, Mobile and Devices EMEA
Yup..You can use hitTest Api if you are working in Flash Lite 2.0/2.1/3 enviroment..It is as easy as you think to use..Suppose You want to detect the collision of two movie clips A and B . Then , its syntax can be :
But if you are working in Flash Lite 1.1 (which is based on Flash MX 2004 Action Script) then you cant use hitTest. In this case, you have to useCode:if (A.hitTest(B)) { trace("collision detected"); }
to find out the x and y axis of clip any moment and then by comparing it with other object x and y axis . You can detect the collision...Enjoy Flash Programming...Code:getPoperty("mc_clip", _property);