Re: [flexcoders] Loading external css and setting a:hover style for htmlText

2006-07-17 Thread Tom Chiverton
On Monday 17 July 2006 13:02, olivierdejonge wrote: How do I connect an external stylesheet to a textfield so the htmlText gets the right styles? . But how to do this in Flex 2.0, when function 'load()' doesn't exist You can't apply styles at runtime in Flex 2 using a stylesheet (yet - there

Re: [flexcoders] Loading external css and setting a:hover style for htmlText

2006-07-17 Thread JesterXL
Subject: Re: [flexcoders] Loading external css and setting a:hover style for htmlText On Monday 17 July 2006 13:02, olivierdejonge wrote: How do I connect an external stylesheet to a textfield so the htmlText gets the right styles? . But how to do this in Flex 2.0, when function 'load()' doesn't

Re: [flexcoders] Loading external css and setting a:hover style for htmlText

2006-07-17 Thread Jean-Luc ESSER
I didn't tried it, but from help, this should work : package { import flash.display.Sprite; import flash.text.StyleSheet; import flash.text.TextField; import flash.text.TextFieldAutoSize; public class StyleSheetExample extends Sprite { public function StyleSheetExample() { var