Styles are defined by metadata and further controlled by the theme and skin.  
You’d probably have to retain metadata to introspect at runtime.

I’m not sure I understand the last question.  getStyle() would return the 
computed style.


On 6/25/10 5:38 PM, "[email protected]" 
<[email protected]> wrote:






How do you get a list of all styles that a component supports?

var buttonStyles:Array = getStyles(buttonComponent);
var containerStyles:Array = getStyles(borderContainer);

The follow up question to this is there a recommended api to get the
computed style for that component instance?

JP





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to