通过字符串名访问变量
public class VPP{
public static var G:String = "AB";
public var m:String = "A";
public function VPP() {}
}
var v:VPP = new VPP();
trace(v["m"]);//A
trace(VPP["G"]);//AB
public class VPP{
public static var G:String = "AB";
public var m:String = "A";
public function VPP() {}
}
var v:VPP = new VPP();
trace(v["m"]);//A
trace(VPP["G"]);//AB