All my "Setter" call other private routines to properly use the value given through the setter. They can set values before or after the instance is initialized.
All my plain public properties require that their values be set BEFORE the Class instance is initialized. As I loop through my available properties to set I want to set the values I need to set before or after when I need them too. (So this is why I need to know programmatically) I'm setting properties of a Class instance from an external XML file. Some of my properties are just properties declared as: public var keep_size_ratio:Boolean=false; Some declared with "set" and "get" -- -- Keith H -- ---- Paul Andrews <[EMAIL PROTECTED]> wrote: > It could be either, both or none of those. How would knowing which it is > help? > > Paul > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: "FlexCoders" <[email protected]> > Sent: Wednesday, February 27, 2008 5:41 PM > Subject: [flexcoders] Programmatically know if property is a Getter or > Setter? > > > > Is there a programmatic way to know if a property is Getter or Setter? > > > > > > public function set speed(v:Number):void > > { > > _speed=v; > > } > > public function get speed():Number > > { > > return _speed; > > } > > > > > > -- > > -- Keith H -- > > > > > > -- > > 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 > > > > > > > > >

