hitTest question 2004-03-18 - By Andreas Weber
Back
> will make some redundant double-checks.
OK, hit-test each clip against every other clip without redundant double-tests:
clips = [A_mc, B_mc, C_mc];
this.onEnterFrame = function(){ var i = clips.length; while(i--){ var rest = clips.slice(0,i); var j = rest.length; while(j--){ res = clips[i].hitTest(rest[j]); trace(res); } } }
(not thoroughly tested)
-- ---- ------ Andreas Weber motiondraw.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|