On 2/2/06, Teoti Graphix <[EMAIL PROTECTED]> wrote: > Setting styleName, and even using setStyle() on the label does nothing and > if you use getUITextFormat(), it returns an object like you have not set any > styles.
Both work! <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"> <mx:Style> .barStyle { color: blue; } </mx:Style> <mx:Label text="foo" id="fooLabel" click="fooLabel.setStyle('color', 'red')" /> <mx:Label text="bar" id="barLabel" click="barLabel.styleName = 'barStyle'" /> </mx:Application> Click on foo, click on bar. Can you provide an example that doesn't work? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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/

