[AS1-2-3] General Programming Question

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.


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