“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

hitTestObjects

Posted: March 28th, 2008 | Author: Ivan Valadares | Filed under: Actionscript3, Code | 2 Comments »

This function can be used to test a hit between a displayObject with an amount of displaysObjects (Array). It will return the displayObject where the biggest contact area occurred. Note: it uses the bounding boxes.

hittestobjects.swf

hittestobjects.zip