我想让一个变量保存一个类构造函数,但它给出了这个错误:
var myFunction:Function
function someFunction() {}
myFunction = someFunction //works
myFunction = MovieClip //doesn't work - 1067: Implicit coercion of a value of type Class to an unrelated type Function.
有没有办法做到这一点?