Surely somebody can tell me how to force a repaint on a changed icon
for a LinkButton?
--- In flexcoders@yahoogroups.com, 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
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
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
Actually, I take that back. Removing and re-adding gives me the same
result as just calling styleChanged. It still requires a mouse-over
before it updates.
--- In flexcoders@yahoogroups.com, Peeyush Tuli [EMAIL PROTECTED] wrote:
A wild guess but I think the updateDisplaylist method is
called
I am not sure if this is best practice - but have you tried calling
stage.invalidate() ?
-eric
--- In flexcoders@yahoogroups.com, 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
Even stage.invalidate() does not update it properly. Thanks for trying
to help though.
--- In flexcoders@yahoogroups.com, Eric Cooper [EMAIL PROTECTED] wrote:
I am not sure if this is best practice - but have you tried
calling stage.invalidate() ?
-eric
--- In flexcoders@yahoogroups.com,
Is there in issue with extending the said class and calling
updatedisplaylist?
You just have to make one public method inside which you can the above
method.
~Peeyush
On Wed, Apr 23, 2008 at 6:39 PM, Matt [EMAIL PROTECTED] wrote:
How can I do that without extending LinkButton?
I've
7 matches
Mail list logo