List Info

Thread: Re: How do I repaint?




Re: How do I repaint?
country flaguser name
United States
2008-04-23 11:01:35

I am not sure if this is "best practice" - but have you tried calling stage.invalidate() ?

-eric

--- In flexcoders%40yahoogroups.com">flexcodersyahoogroups.com, "Matt" <matt...> wrote:
&gt;
> I am dynamically setting the 'icon' to a LinkButton using Ben Stucki's
> IconUtility and it works great when the link first gets loaded, but if
> I want to dynamically change the icon after it is displayed it doesn't
> refresh properly.
>
> If I add a line to displayLoader that calls
&gt; component.styleChanged('icon') that seems to help a little...when I
> move my mouse over the link the icon will change to the correct one.
>; I'm still missing a step I think. What else do I need to do in order
&gt; to get it to completely redraw the LinkButton to display the new icon?
&gt;
> Is there some way I can replicate the mouseover validation that occurs
&gt; (since there is obviously something in there that's doing what I need)?
&gt;

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )