Thanks for that Manish, looks like I'm not the only one...

I spent an hour or two writing a class that seems to do the trick
using a combination of TextField.StyleSheet and CSSStyleDeclaration -
it can be done... :-)

Cheers,
Rich

--- In [email protected], Manish Jethani
<[EMAIL PROTECTED]> wrote:
> On 5/23/05, Richard Butler <[EMAIL PROTECTED]> wrote:
> 
> > Has anyone tried loading in a CSS stylesheet dynamically at
runtime, or
> > know how it could be done? The only way I can think of is using
the good
> > old Flash way using TextField.StyleSheet's parseCSS() and then doing a
> > few loops, but is there a more up-to-date method within Flex?
> 
> Yes, styles specified in the Style tag are compiled into the SWF.  As
> far as I know, the only way to set styles at runtime is to use the
> setStyle() method.  See this thread:
> http://www.mail-archive.com/[email protected]/msg04682.html




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to