2 Replies Latest reply on Jul 20, 2009 9:52 AM by EMelville

    This should be easy

    EMelville Level 1

      I'm trying to display info about the "Image" I click. I was able to get this to work for a button, but for some reason, can't get it to work on a image:

       

      Does anyone have any ideas?

       

       

      <mx:Script>

       

      <![CDATA[

       

      private function handleImageClick(event:MouseEvent):void

      {

      ExteriorUpperLabel.text = event.target.id;         //For Some Reason This Line isn't running

      mx.controls.Alert.show('Something New Got Clicked');

      }

       

      ]]>

      </mx:Script>

       

      <mx:Label x="106" y="342" id="ExteriorUpperLabel"/>

       

      <mx:Image x="891" y="36" id="dspOverlay" toolTip="Test" buttonMode="true" click="handleImageClick(event)">

      <mx:source>texture46.jpg</mx:source>

      </mx:Image>

       

       

      Thanks!