Use default event mode to track loading progress of an image using the Image control : Image Event « Graphics « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Graphics » Image EventScreenshots 
Use default event mode to track loading progress of an image using the Image control
Use default event mode to track loading progress of an image using the Image control
           
<?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="200" source="image1" />
        </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.Image resize eventsImage resize events
2.Image click eventImage click event
3.Use default event mode to track the progress of loading an image by using the Image controlUse default event mode to track the progress of loading an image by using the Image control
4.Image Load EventImage Load Event
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.