Re: [flexcoders] Get all styles at runtime of specific component [2 Attachments]

2010-06-26 Thread dorkie dork from dorktown
So there are two parts to this. I'm reiterating your replies: 1. Get a reference to a component at runtime via code and providing a list of all applicable styles just like design time displays in the property inspector. A: this is not possible to get all the styles of a component unless the

Re: [flexcoders] Get all styles at runtime of specific component

2010-06-26 Thread Alex Harui
Good question, ask on the FlexBuilder forum. On 6/26/10 8:28 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: [Attachment(s) #TopText from dorkie dork from dorktown included below] So there are two parts to this. I'm reiterating your replies: 1. Get a

[flexcoders] Get all styles at runtime of specific component

2010-06-25 Thread dorkie dork from dorktown
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

Re: [flexcoders] Get all styles at runtime of specific component

2010-06-25 Thread Alex Harui
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, dorkiedorkfromdorkt...@gmail.com