This does not completely answers your question, but i guess it may solve
your problem:

var b:Object = ObjectUtil.getClassInfo(yourObject);

now b have a property "properties" containing all your public properties and
getters as QName instances. the setter only functions don't appear here.

On Wed, Feb 27, 2008 at 3:18 PM, <[EMAIL PROTECTED]> wrote:

>   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] <paul%40ipauland.com>> wrote:
> > It could be either, both or none of those. How would knowing which it is
>
> > help?
> >
> > Paul
> > ----- Original Message -----
> > From: <[EMAIL PROTECTED] <khair%40nc.rr.com>>
> > To: "FlexCoders" <[email protected]<flexcoders%40yahoogroups.com>
> >
> > 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
> > >
> > >
> > >
> > >
> >
>
>  
>



-- 
Jhonny Everson

Reply via email to