I have a class which extends the Proxy class, and has a statically defined member variable called num
:
public dynamic class TestProxy extends Proxy
{
private var num:Number = 100;
public function TestProxy()
{
super();
}
override flash_proxy function getProperty(name:*):*
{
trace("***** "+name);
}
}
I want getProperty() to be called when I attempt access num
. It works for any field which does not already exist, but not for fields that are predefined.
Is there some way to make this happen? Can I somehow dynamically get rid of num
? Or something else?