[flexcoders] Re: Best practices for dynamically styling components in FlashBuilder 4.5

2011-09-13 Thread turbo_vb
styleManager.getStyleDeclaration(style_name).setStyle(property, value); -TH --- In flexcoders@yahoogroups.com, c0mpl3xxx ktyacke@... wrote: Hi all, I'm trying to create a set of components for a video player app that require the ability to be styled via user supplied color options.

[flexcoders] Re: Best practices for dynamically styling components in FlashBuilder 4.5

2011-09-13 Thread c0mpl3xxx
Thanks TH, That will help with updating the font sizes! If anyone else has any other thoughts or suggestions on how to best manage updating the color styles of the buttons and other components, it would be greatly appreciated!

[flexcoders] Re: Best practices for dynamically styling components in FlashBuilder 4.5

2011-09-13 Thread c0mpl3xxx
Note: As a potential solution, I have been trying to add some custom style properties to my various components (ie. fillColor, fillAlpha, etc.), then setting these properties via CSS. The thought was that I could then simply update those properties using the styleManager.getStyleDeclaration()

[flexcoders] Re: Best practices for dynamically styling components in FlashBuilder 4.5

2011-09-13 Thread c0mpl3xxx
So as it turns out, the reason that I was getting errors on my custom styles was that I was trying to use a pre-existing stylename (fillColor was already taken). It seems to be working somewhat well now and I might have my solution; however, I'd really like to hear any suggestions anyone still