# hitTest counter problem

**URL:** <https://forum.kirupa.com/t/hittest-counter-problem/51935>\
**Category:** flash\
**Created:** [May 18, 2004, 4:53pm UTC](https://forum.kirupa.com/t/hittest-counter-problem/51935 "2004-05-18T16:53:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanhanif](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@shanhanif](https://forum.kirupa.com/u/shanhanif)\
**Post date:** [May 18, 2004, 4:53pm UTC](https://forum.kirupa.com/t/hittest-counter-problem/51935/1 "2004-05-18T16:53:17Z")

</div>

I need to be able to count hitTests so that after a number of hitTests have occured a particular frame is selected.

For my game a car collects items using hitTest. once they all been collected, there are 6 items, i would like to use the gotoAndPlay (3) funtion to to goto frame 3.

I’m sure this quite a simple problem to solve (i think) but it has got me completely stumped and i need help.

If you can offer any help i would like to see my fla then let me know please.

Many thanks

## James
