So CS3’s help docs say this:
[see Functions as Objects in the Programming Actionscript 3.0 help book]
You can define your own function properties by defining them outside your function body. Function properties can serve as… …The following code creates a function property outside the function declaration and increments the property each time the function is called:
someFunction.counter = 0;
function someFunction():void
{
someFunction.counter++;
}
someFunction();
someFunction();
trace(someFunction.counter); // 2
The problem is that I can’t see evidence of this working at all. 1119 Errors abound. Anyone else ran into this problem? Is there any other way to reference the function besides pushing it into an Array and calling from it’s index?
:jail: