新建一个getEntity.as
package com.test{
public function getEntity():String { return new String("返回对象"); }}
可以在任意类中这样调用
没有类名,也不用初始化
trace(getEntity()); //返回对象