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:Script>
    <![CDATA[
 
    public function doLoad()
    {
        myImage.source = "http://somedomain.com/someImage.jpg";
    }
 
    ]]>
    </mx:Script>
 
    <mx:ProgressBar source="myImage" />
 
    <mx:Image id="myImage" />
 
</mx:Application>
 
 
Kris
 
--
 
Kristopher Schultz
Developer
 
Resource Interactive
p: 614.410.2123
 


Yahoo! Groups Links

Reply via email to