On 2/1/13 3:11 AM, "Cooper, Andrew" <[email protected]> wrote:
> In 4.1 I accessed the textDisplay object directly.
>
>
>
> But In 4.6 this changed to an interface.
Yes, but if you know the type and know it will not change, you can coerce to
it.
>
>
> When I run it the titleDisplay.styleName doesn't get updated
>
>
>
> What am I doing wrong ?
Not sure. I didn't see anything obvious.
>
> Is there an easier way to change the style of the title without having
> to have a skin for each instance
I believe you can use Advanced CSS to style the panel's titleDisplay. Some
combination of descendant and id selectors should work. I'm not a CSS
person so look for examples.
--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui