# Unique event counting

**URL:** https://forum.kirupa.com/t/unique-event-counting/188160
**Category:** flash
**Created:** [May 4, 2006, 11:30pm UTC](https://forum.kirupa.com/t/unique-event-counting/188160 "2006-05-04T23:30:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![funfunfun](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@funfunfun](https://forum.kirupa.com/u/funfunfun)
#### Post date: [May 4, 2006, 11:30pm UTC](https://forum.kirupa.com/t/unique-event-counting/188160/1 "2006-05-04T23:30:16Z")

</div>

I have a counter that counts each time a special event in a game occurs.

The code looks like this at the end of several movieClips’ last frame:

```auto
_level0.count++;
stop();

```

The problem is sometimes events get repeated, and though I don’t mind if the event happens again, I don’t want the repetition to count as a new number. I want it to count once and only once.

How could I code this?
