# iFeelDumb++;

**URL:** https://forum.kirupa.com/t/ifeeldumb/66837
**Category:** flash
**Created:** [October 9, 2004, 7:07pm UTC](https://forum.kirupa.com/t/ifeeldumb/66837 "2004-10-09T19:07:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Freddythunder](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@Freddythunder](https://forum.kirupa.com/u/Freddythunder)
#### Post date: [October 9, 2004, 7:07pm UTC](https://forum.kirupa.com/t/ifeeldumb/66837/1 "2004-10-09T19:07:23Z")

</div>

Hello all.  
Been a while since I posted. I recently bought 2004 and have immediately come up with something I don’t get. I made a textbox on the stage and gave it the var ‘textbox’. I actually started with a different project and came across this error and decided to investigate why it wasn’t working. On the timeline, I put this:

```auto

onEnterFrame = function(){
i++;
textbox = i;
}

```

Simple counter, right? I get ‘NaN’ in the textbox. Now if I move the code to a movieClip somewhere - works. Tired the above code on my old computer with MX, works. So why doesn’t that chuck of code work in 2004??!! I tried doing a search for onEnterFrame’s and just found a bunch of threads with working code - but mine doesn’t. Why?? Why!!!
