In Actionscript, there is a “Class” type, that acts as a variable to store any type of “class”. So, a class can be passed as a parameter if required like this :
public myFunction ( someClass:Class):void
{
…
}
myFunction( MovieClip) ;
myFunction( MyClass) ;
What is the way to do the same in OpenFl ?
I tried seeing for it here, under “Object” but i think it does not exist
http://www.openfl.org/documentation/api/#