# \[AS1-2-3\] General Programming Question

**URL:** <https://forum.kirupa.com/t/as1-2-3-general-programming-question/257948>\
**Category:** flash\
**Created:** [April 18, 2008, 7:03pm UTC](https://forum.kirupa.com/t/as1-2-3-general-programming-question/257948 "2008-04-18T19:03:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![t0w](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@t0w](https://forum.kirupa.com/u/t0w)\
**Post date:** [April 18, 2008, 7:03pm UTC](https://forum.kirupa.com/t/as1-2-3-general-programming-question/257948/1 "2008-04-18T19:03:49Z")

</div>

Now, I’m sure that this will go to use in the future. For now I’m just fooling around trying to learn stuff. Anyway I’m wondering how to get _‘n’_ out of the following function.

Edit: See third post.

```auto

var n:Number;
onEnterFrame = function () {
    n++;
};
trace(n);

```
