功能类型
函数的类型为 Function:
function example():void { }
trace(example is Function); // true
它们可以由 Function 类型的其他变量引用:
var ref:Function = example;
ref(); // ref.call(), ref.apply(), etc.
并且可以将它们作为参数传递给类型为 Function 的参数:
function test(callback:Function):void {
    callback();
}
test(function() {
    trace('It works!');
}); // Output: It works!