Set Label for ProgressBar : ProgressBar « Components « Flex






Set Label for ProgressBar

Set Label for ProgressBar
       

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
        public function initImage():void {
            image1.load('http://localhost:8100/logo.JPG');
        }
      
    </mx:Script>
    <mx:VBox id="vbox0" width="600" height="600">
        <mx:Canvas>
            <mx:ProgressBar width="300" source="image1" mode="polled" label="Loading Image %1 out of %2 bytes, %3%%" labelWidth="400" />
        </mx:Canvas>
        <mx:Button id="myButton" label="Show" click="initImage();" />
        <mx:Image id="image1" height="600" width="600" autoLoad="false" visible="true" />
    </mx:VBox>
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.ProgressBar LabelProgressBar Label