# Why is it that

**URL:** <https://forum.kirupa.com/t/why-is-it-that/128291>\
**Category:** Uncategorized\
**Created:** [November 11, 2004, 2:54am UTC](https://forum.kirupa.com/t/why-is-it-that/128291 "2004-11-11T02:54:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glitch](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@Glitch](https://forum.kirupa.com/u/Glitch)\
**Post date:** [November 11, 2004, 2:54am UTC](https://forum.kirupa.com/t/why-is-it-that/128291/1 "2004-11-11T02:54:59Z")

</div>

Why is it that…

```auto

onClipEvent(mouseDown){
     x++
     trace(x);
};

```

has an output of:  
1  
2  
3  
4  
etc.  
based on the number of times you click the mouse.  
However…

```auto

onClipEvent(mouseDown){
     x++
     this.duplicateMovieClip("newMC"+x,x)
     trace(x)
}

```

has an output of:  
1  
2  
1  
3  
1  
4  
1  
1  
2  
5

after 5 clicks. Why is that?
