Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Flash5 question (collision detection) |
From: | Mike S |
Date: | Sat, 5 Aug 2000 00:41:49 +0100 |
At 12:17 PM 8/4/2000 -0700, you wrote:
>Where is your movieclip.hit test Mike?
Not sure I understand...? In flash 5 movieclip objects have a member function
called hitTest. There are two forms of this function:
bool hitTest( x, y, shapeFlag );
bool hitTest( target );
The first tests against a point, the second against the bounding boxes of
two movie clips. If you have the beta you can find this in the ActionScript
reference by searching for "hitTest".
--mikes
>Karin
>
>but on a
>> >shape... Is this possible??
>>
>>
>> Yes.
>>
>> Use myMovieClip.hitTest( target ); It returns true if they collide.
------------------
Michael S.
Sr. Software Engineer
Excite@Home
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: FW: Sound???, Tim Ryan
Re: FLASH: Flash5 question (collision de, Mike S
Re: FLASH: Flash5 question (collision de, Karin Christensen
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]