I know everyone doesn't have the same needs but we have used HTML text in flash ever since it was supported. The framework in Flex as well as the new VM really made this difficult and in the end we had to override several of the Flex framework classes as well as extend some of the components to handling this in a global way.
I guess what really made this easier for us in the past was the ability to use the 'prototype' chain to override properties and functions at a global level for all TextField instances. I know overriding the prototype chain is a thing of the past and for good reasons but it sure would be nice if ALL textFields in every component could get a StyleSheet instance from the StyleManager. My current solution is to over ride the StyleManager with a modified version that creates a StyleSheet instance from the styles that it contains. Then I have to go in and extend Text, Label, TextArea etc so they automatically use the StyleSheet instance from my custom StyleManager. In this way we don't have to 1. Maintain multiple style sheets and 2. go around assigning the StyleSheet to every component I want to use it on which is a huge pain! J It would be nice to see some kind of support for this in the future even if it was just Text, Label and TextArea that supported it. Thanks! Lance From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Friday, December 01, 2006 1:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Styling in Flex is officially ridiculous We haven't devoted a lot of attention to HTML text in Flex because the Flash Player's support for HTML is so limited and many Flex developers find it doesn't meet their needs, Apollo will change that, but it isn't clear when the Player's HTML support for Flex apps in the browser will get better. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller Sent: Thursday, November 30, 2006 1:33 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Styling in Flex is officially ridiculous While in general I've been fairly happy with my ability to style flex, one area in which really lacking (and unfortunately for me in a key place for my application) is in styling text, especially text contained in an htmlText element. Despite reading the docs 5 times now, I remain unable to style a simple anchor tag (<A HREF="">. "A" as a type selector doesn't work, but neither do a:link, a:hover, or a:active which the docs say should work. Why the A tag doesn't simply support styleName as an attribute (or class="" or style="") is a complete mind bender to me. Why htmlText doesn't support <span styleName=""> is equally puzzling. Also, is it just me or are many of the css property names different, eg font-family vs fontFamily, etc. And what about shorthand syntax, eg "border: 1x dotted black." I realize and accept as necessary and good the need to support a limited set of HTML tags but don't understand why standard and rigorous text styling is so out of reach. This in fact would be one of my top wish list items for future releases. Meantime, if anyone has any tips on styling text now, I'm all ears =) cheers, ethan