3 Replies Latest reply on Feb 17, 2008 9:55 AM by Gregory Lafrance

    Image Issue

    Nutan.lade
      Hi I am developing an application so that some images are dispalyed and above that a big image is displayed.And whenever we move on to small images then the bigger image should change according to the small image.And here is the code i written for it please someone help to solve this issue.
      Thanq.

      <?xml version="1.0" encoding="utf-8"?>

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientColors="[#74BBFB,#ffffff]">
      <mx:Script>
      <![CDATA[
      import mx.collections.*;
      import mx.controls.Image;

      private var catalog:ArrayCollection;


      private var x1:String;

      private function picture(event:Event,x:int):void
      {

      mainimage.source= "../images/x.jpg";

      }
      ]]>
      </mx:Script>
      <mx:Image x="423" y="85" width="234" height="267" id="mainimage" source="../images/1.jpg"/>
      <mx:Image x="228" y="413" source="images/1.JPG" width="100" height="66" mouseOver="picture(event,1);"/>
      <mx:Image x="365" y="413" source="images/2.JPG" width="100" height="66" mouseOver="picture(event,2);"/>
      <mx:Image x="499" y="413" width="89" height="66" source="images/3.jpg" mouseOver="picture(event,3);"/>
      <mx:Image x="647" y="413" source="images/4.jpg" width="100" height="66" mouseOver="picture(event,4);"/>

      </mx:Application>