Hi All,
I am new to flex.
I am trying to down load an image. while loading the image, i have to show progress bar to user. But i am getting both at a time.
My intention is first progress bar to show the downloading progress then image has to display.
my code is:
<?xml version=“1.0”?>
<mx:Application xmlns:mx="[COLOR=#800080]http://www.adobe.com/2006/mxml">[/COLOR]
<mx:Script>
<![CDATA[
public function initImage():void {
image1.load(‘E:/gr/Airtel Bill Pay.JPG’);
}
]]>
</mx:Script>
<mx:VBox id=“vbox0” width=“600” height=“600”>
<mx:Canvas>
<mx:ProgressBar width=“200” source=“image1”/>
</mx:Canvas>
<mx:Button id=“myButton” label=“Show” click=“initImage();”/>
<mx:Image height=“600” width=“600” id=“image1” autoLoad=“false” visible=“true”/>
</mx:VBox>
</mx:Application>
Please give some solution.
Thanks in Adv