Be careful of your scope.  Are you sure that scope of the event handler isn’t the application?

 


From: [email protected] [mailto:[email protected]] On Behalf Of Tracy Spratt
Sent: Tuesday, September 26, 2006 3:03 PM
To: [email protected]
Subject: [flexcomponents] Flex 1.5, extending Label, how/when get the color value

 

I am making a simple Label subclass (mxml component) that fiddles with the text color based on certain conditions.

If those conditions are NOT met, I want to use the color that the label would have normally, after an inline color is specified or any styles have been applied.

In an initialize event handler, I call: super.getStyle("color")

But it reports the same value(16776960) regardless of any inline specified color or css style.

On creationComplete, it returns a different value(16777215), but always the same one.

How and when can I determine what the text color of the label would actually be?

Tracy

A Flex 2.0 hint would be welcome as well.

 

__._,_.___


SPONSORED LINKS
Software development tool Application development software Development software
Development outsourcing software Embedded software development

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to