有沒有辦法通過它的UID獲取對象,以便下面的代碼可以工作?如何通過其uid獲取對象?
當函數完成時,屬性「xxx」的值應該是「字符串2」而不是「字符串1」。
// Test class
public function test():void {
this.xxx = "string one";
foo.bar(this.xxx);
trace(this.xxx); // Prints: string two
}
// Foo class
public function bar(value:*):void {
// ... What would I have to do here to get the property, not its value?
value = "string two";
}
這看起來不錯,我猜,它可以從CTRL +空間中受益。 – GxFlint