One work around is to just use action script to swap the image with an
image with height = 0 width=1 like a hidden gif icon used in old html
code for tables.
then reswap again with your new/same image so that you now have forced
flex to repaint it.

does that make sense?



--- In [email protected], "Matt" <[EMAIL PROTECTED]> wrote:
>
> Surely somebody can tell me how to force a repaint on a changed icon
> for a LinkButton?
> 
> --- In [email protected], "Matt" <matt@> wrote:
> >
> > 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
> > 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
> > to get it to completely redraw the LinkButton to display the new icon?
> > 
> > Is there some way I can replicate the mouseover validation that occurs
> > (since there is obviously something in there that's doing what I
need)?
> >
>


Reply via email to