Is not
fun.call(new Foo(), ...);
Use instead because for function
no parameters required
fun.call(clazz);
The first parameter specified in adobe docs.
An object that sets the value of thisObject inside the body of the function.
[EDIT]
I forgot to indicate that you need to create an instance of a non-static class with the keyword "new".
var clazz:Class = new Foo();
[EDIT2]
Ok, I played and thought I got what you want.
base.as
package{ public class Base { public function Base() { trace('Base constructor') } public function someFunc( ){ trace('worked'); } } }
source share