How can I do that without extending LinkButton? I've tried:
validateDisplayList() validateNow() validateProperties() invalidateProperties() invalidateDisplayList() invalidateSize() I've even tried invoking them via callLater, but still it doesn't update. It does work if I remove and re-add, but ideally I'd prefer not to do that. Thanks! --- In [email protected], "Peeyush Tuli" <[EMAIL PROTECTED]> wrote: > > A wild guess but I think the updateDisplaylist method is > called by flex to redraw the icon when you mouseover. > > You might have to call this method explicitly. > > ~Peeyush > > > On Tue, Apr 22, 2008 at 11:05 PM, Matt <[EMAIL PROTECTED]> 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)? > > > > > > >

