Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hittest(anything) ?

Status
Not open for further replies.

ThomasJSmart

Programmer
Joined
Sep 16, 2002
Messages
634
how can i check if a movieclip is touching any other movieclip instance on the stage withour looping thru all the names with a 'for' statement?

i want to put the script on several movieclips under an 'on enterframe' handeler.

thanks,

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
i guess that if you want to test if the clip is touching ANY other clip, there won't be no way to get around a "for"-statement.
When reading the explanation of flash-help concerning hittest there are only 2 general ways of using hittest but unfortunately neither fit to your requirements.

regards

tektips.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top