Re: [flexcoders] getStyleDefinition

2009-07-22 Thread Rohit Sharma
  Hi,

 I am not sure about Flex 4 SDK. But earlier in Flex 3 SDK, I was using
StyleManager.getStyleDeclaration(component)
  to access styles for a particular component.
I hope it helps.

 Regards,
 Rohit

On Tue, Jul 21, 2009 at 2:26 PM, Julian Tenney 
julian.ten...@nottingham.ac.uk wrote:



 Hi,

 Maybe someone can shed some light on this.

 I need to get at runtime a list of styles a particular component
 supports. I am using the Flex 4 SDK.

 I have read about ComponentClass.getStyleDefinition() but cannot get it
 to work. I see this is a method inherited from UIComponent, but it
 always returns undefined if I trace UIComponent.getStyleDefinition

 Is this a Flash only feature or is it also in Flex? Am I missing
 something?

 Is there any other way of getting a list of supported styles for a
 component class?

 many thanks,

 Jules

 This message has been checked for viruses but the contents of an attachment
 may still contain software viruses, which could damage your computer
 system:
 you are advised to perform your own checks. Email communications with the
 University of Nottingham may be monitored as permitted by UK legislation.

  



[flexcoders] getStyleDefinition

2009-07-21 Thread Julian Tenney
Hi,

Maybe someone can shed some light on this.

I need to get at runtime a list of styles a particular component
supports. I am using the Flex 4 SDK.

I have read about ComponentClass.getStyleDefinition() but cannot get it
to work. I see this is a method inherited from UIComponent, but it
always returns undefined if I trace UIComponent.getStyleDefinition

Is this a Flash only feature or is it also in Flex? Am I missing
something?

Is there any other way of getting a list of supported styles for a
component class?

many thanks,

Jules

This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.