Try invalidating the display list in commitProperties to refresh the
image component, something like this:
if (__sponsorPathChanged)
{
__sponsorImg.source = __sponsorPath;
__sponsorImg.addEventListener(Event.COMPLETE,
__onSponsorImgLoadComplete);
__sponsorPathChanged = false;
invalidateDisplayList();
}
You may have to invalidateSize also, but I'm unclear on that one.
adamduro wrote:
> I'm extending a Panel component in Actionscript and adding an Image
> control to the titleBar.
>
> My problem is that for some god-forsaken reason, the image loads, but
> does not display, except for every once and a while. That's right,
> sometimes the image displays, sometimes it does not.
>
> I have it setup, properly overriding the nessisary methods. You can
> see an example of the code here:
>
> http://pastie.org/401744
>
> The above example shows the MXML component that instantiates the
> custom Panel. The image source is fed in via the 'sponsor' property.
>
> Any help is appreciated.
>
> Adam Duro
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>
--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711 | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust