Hi all,

I can dynamically add a property with:
   this.["prop1"] = 3;

I can dynamically add a function with:
   this.["getProp1"] = function():int { return 3 }

How do I dynamically add a getter/setter?  Is it possible in AS3?

What I'd like is a way to dynamically do the following:
   private var _prop1:int;
   public function get prop1():int { return _prop1 }
   public function set prop1(value:int):void { _prop1 = value }

Thanks,
Dion.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to