0 Replies Latest reply on Aug 30, 2007 1:06 AM by ctzn99

    Image Focus

    ctzn99 Level 1
      Hey guys,

      Totally stuck on something that I thought was going to be brain dead easy. I'm trying to click on an image and have it fire off a focus event. In my main application i've got several images, i want the one that i click on to recieve (and fire) a focusIn event and the image that had focus to fire a focusOut event. I couldn't get it to work in my application so made a small sample but it also doesn't seem to allow an Image to recieve focus.

      I just want to click on the image and have it recieve focus... grrrr.... as you can see in my example i've tried setting all kinds of flags but still cant' get it to work.

      Thoughts and ideas would be appreciated.
      Best,
      Zach

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Script>
      <![CDATA[
      import mx.controls.Alert;
      ]]>
      </mx:Script>

      <mx:Image x="10" y="10"
      source="./Images/Icons/csv.gif"
      focusIn="Alert.show('focusIn');"
      focusOut="Alert.show('focusOut');"
      mouseFocusChange="Alert.show('mouseFocusChange');"
      focusEnabled="true"
      mouseFocusEnabled="true"
      mouseEnabled="true"
      enabled="true"/>
      </mx:Application>