Thanks, but I don't think it actually outputs style info. Unless one
of the following IS style information and I'm just overlooking it:

The class of the object 
The attributes of the class 
The inheritance tree from the class to its base classes 
The interfaces implemented by the class 
The declared instance properties of the class 
The declared static properties of the class 
The instance methods of the class 
The static methods of the class 
For each method of the class, the name, number of parameters, return
type, and parameter types 

Are there any negative effects to setting a nonexistent style? Will
they just build up in memory despite being useless?

--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> describeType() can give you information about class's [Style] metadata.
> But you have to use the -keep-as3-metadata compilation option to tell
> the MXML compiler which metadata to compile into the SWF.
>  
> - Gordon
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of zzwi89
> Sent: Wednesday, May 02, 2007 7:21 PM
> To: [email protected]
> Subject: [flexcoders] Function to check if component supports a style?
> 
> 
> 
> So I know there is a function to check if an object has a property
> (object.hasOwnProperty()), but is there a way of determining if an
> object supports a style? I want to allow the user to alter some style
> properties own their own through the UI, but I don't want to be
> setting nonexistent styles and was hoping there was a way of verifying
> if a style existed for a component.
> 
> So something like button.hasStyle("paddingLeft") should return true,
> but button.hasStyle("paddingg") should return false.
>


Reply via email to