Hey guys and
gals,
I've stumbled upon
a quirky behavior I'm hoping you can help me resolve.
The ProgressBar
component does not appear to work properly if the graphic asset being loaded is
in the browser's cache. The simple example below illustrates this problem. The
first time this app is displayed the ProgressBar properly tracks the loading of
the image. But on subsequent browser refreshes, the image loads
just fine but the ProgressBar remains at 0%. If the browser cache is
cleared and the app is reloaded the ProgressBar once again works
properly.
Is this a known
issue? How do I work around this problem?
==== Example
====
<?xml
version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.macromedia.com/2003/mxml"
initialize="doLoad()"
>
<mx:Application
xmlns:mx="http://www.macromedia.com/2003/mxml"
initialize="doLoad()"
>
<mx:Script>
<![CDATA[
public function doLoad()
{
myImage.source = "http://somedomain.com/someImage.jpg";
}
]]>
</mx:Script>
<![CDATA[
public function doLoad()
{
myImage.source = "http://somedomain.com/someImage.jpg";
}
]]>
</mx:Script>
<mx:ProgressBar source="myImage" />
<mx:Image id="myImage" />
<mx:Image id="myImage" />
</mx:Application>
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.