2 Replies Latest reply on May 31, 2009 9:01 PM by Michael Borbor

    Newbie needs help with Images

    tutorialchamp Level 1

      Hi, I am a flex beginner and I have a very quick and basic question about images. I am trying to have a simple image displayed, and when it is clicked on it, it changes in to another image, and when clicked on again it goes back to the original.  From my knowlege, the first part of the MXML code works as:

       

      <mx:Image id="myImage" source="Old.jpg" click="myImage.source='New.jpg'" />

       

      So the first part works, but how can i make it so that when i click on the new image the source goes back to the original picture?  Thanks in advance.