Is it possible to pass a class as a function parameter

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

In haxe there’s Class<T>.
Looks like the differences with actionscript is that you need to specify a base class.

I think to be able to use any class you can use Class<Dynamic>