Figured it out. Triple equals will tell me if they are pointing to the
same actual style.

this.getStyle(style) === typeSelector.getStyle(style)

Sorry for the interruption,
Ben


--- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
<[EMAIL PROTECTED]> wrote:
>
> As part of my well-documented default styling efforts I have come upon
> a need for doing what the title describes. Basically I need to figure
> out how to determine where a style was assigned. For example, Panel
> has a titleStyleName style that defaults to "windowStyles". You can
> obviously override this with something like <mx:Panel
> titleStyleName="fooStyle" />. getStyle("titleStyleName") will return
> the correct value, but I need to determine if the style was defined
> inline or in the type selector because in my component structure there
> are styles whose precedence is less than inline but greater than the
> type selector.
> 
> Is this possible?
> 
> Thanks,
> Ben
>


Reply via email to