Graphics Flex



    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    creationComplete="toggleImage()">
    
         
        private var imageSmall:String = "a.jpg"; 
        private var imageLarge:String = "a.jpg"; 
        private function toggleImage():void { 
            // Runtime location of the images is the same folder 
            // as this MXML file. 
            if (image1.source == imageSmall) { 
                image1.load(imageLarge); 
            } else { 
                image1.load(imageSmall); 
            } 
        }