# Points hittest

**URL:** <https://forum.kirupa.com/t/points-hittest/222027>\
**Category:** Uncategorized\
**Created:** [April 10, 2007, 7:57am UTC](https://forum.kirupa.com/t/points-hittest/222027 "2007-04-10T07:57:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario\_hater](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mario\_hater](https://forum.kirupa.com/u/mario_hater)\
**Post date:** [April 10, 2007, 7:57am UTC](https://forum.kirupa.com/t/points-hittest/222027/1 "2007-04-10T07:57:59Z")

</div>

i have made this code and it is supposed to check for a hitTest on all the points but it doesn’t work, does anyone know why?  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#0000FF]for[/COLOR] [COLOR=#000000]([/COLOR]i=[COLOR=#000080]0[/COLOR]; i\<=[COLOR=#000080]8[/COLOR]; i++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
points = [COLOR=#0000FF]\_root[/COLOR][COLOR=#000000][[/COLOR][COLOR=#FF0000]“pieman.point”[/COLOR]+i[COLOR=#000000]][/COLOR];  
[COLOR=#0000FF]if[/COLOR] [COLOR=#000000]([/COLOR]guards.[COLOR=#0000FF]hitTest[/COLOR][COLOR=#000000]([/COLOR]points.[COLOR=#0000FF]\_x[/COLOR], points.[COLOR=#0000FF]\_y[/COLOR], [COLOR=#000000] **true** [/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]trace[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]
