  | | | hitTest question | hitTest question 2004-03-18 - By Jason Merrique
Back Oops, forgot something: As a workaround, I had planned to put all the relevant mc's into an array, and then cycle through the array doing a hitTest with each mc. I'm sure there's a more efficient way though.... Cheers Json
__ ____ ____ ____ ____ ____ ____
From: Jason Merrique [mailto:j.merrique@(protected)] Sent: 18 March 2004 12:12 To: flashnewbie@(protected) Subject: [Flashnewbie] hitTest question Hi Chaps, I've got a quick question: MovieClip.hitTest() Does the target need to be specific? i.e. Is it possible to have this return true if MovieClip collides with *anything*? The reason for asking is that I've created a movie in which lots of objects are moving around (randomly) and I don't want them to overlap. Thanks in advance! Jason
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Jason Stationery</TITLE> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <STYLE type=text/css>BODY { FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans -serif } #disclaimer { FONT-SIZE: 8pt } </STYLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=094251212-18032004>Oops, forgot something:</SPAN></DIV> <DIV dir=ltr align=left><SPAN class=094251212-18032004></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=094251212-18032004>As a workaround, I had planned to put all the relevant mc's into an array, and then cycle through the array doing a hitTest with each mc. I'm sure there's a more efficient way though....</SPAN></DIV> <DIV dir=ltr align=left><SPAN class=094251212-18032004></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=094251212-18032004>Cheers</SPAN></DIV> <DIV dir=ltr align=left><SPAN class=094251212-18032004></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=094251212-18032004>Json</SPAN></DIV> <DIV> </DIV><BR> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma><B>From:</B> Jason Merrique [mailto:j.merrique@(protected)] <BR><B>Sent:</B> 18 March 2004 12:12<BR><B>To:</B> flashnewbie@(protected)<BR><B>Subject:</B> [Flashnewbie] hitTest question<BR></FONT><BR></DIV> <DIV></DIV> <DIV><SPAN class=330570512-18032004>Hi Chaps,</SPAN></DIV> <DIV><SPAN class=330570512-18032004></SPAN> </DIV> <DIV><SPAN class=330570512-18032004>I've got a quick question:</SPAN></DIV> <DIV><SPAN class=330570512-18032004></SPAN> </DIV> <DIV><SPAN class=330570512-18032004><SPAN class=heading1>MovieClip.hitTest() </SPAN></SPAN></DIV> <DIV><SPAN class=330570512-18032004><SPAN class=heading1></SPAN></SPAN> </DIV> <DIV><SPAN class=330570512-18032004><SPAN class=heading1>Does the target need to be specific? i.e. Is it possible to have this return true if MovieClip collides with *anything*?</SPAN></SPAN></DIV> <DIV><SPAN class=330570512-18032004><SPAN class=heading1></SPAN></SPAN> </DIV> <DIV><SPAN class=330570512-18032004><SPAN class=heading1>The reason for asking is that I've created a movie in which lots of objects are moving around (randomly) and I don't want them to overlap.</SPAN></SPAN></DIV> <DIV><SPAN class=330570512-18032004><SPAN class=heading1></SPAN></SPAN> </DIV> <DIV><SPAN class=330570512-18032004><SPAN class=heading1>Thanks in advance!</SPAN></SPAN></DIV> <DIV><SPAN class=330570512-18032004><SPAN class=heading1></SPAN></SPAN> </DIV> <DIV><SPAN class=330570512-18032004><SPAN class=heading1>Jason</SPAN></SPAN></DIV></BLOCKQUOTE></BODY></HTML>
|
|
 |