I realize this is kind of an odd issue, but I am wondering if there’s any way to get Flash to allow me to access a class’s static functions using a class variable that points to the class. Example:
I create a class called FooClass that has a static function named foo
I then create a variable of type Class that points to it
var class:Class = Class(getDefinitionByName("FooClass"));
However, when I try to call foo() using the variable, it errors saying the function doesn’t exist, even though the class has the function.
class.foo();
It is entirely possible that I have misunderstood what the Class variable type does in Flash, if that is the case, then I’ll rephrase.
I have an array of classes. That array stores an ID and name for each class as well as storing a Class variable that points back to the class. I want to be able to grab an arbitrary element from that array and call a static function based on the class of the element I selected.
Any thoughts are appreciated!