3 Replies Latest reply on Oct 30, 2009 1:45 AM by oggex

    setFocus except ...

    oggex

      i set my canvas element to be focused when a clik event occured;

       

      <mx:Canvas click="this.setFocus()" id="mainCanvas">
           <mx:Canvas>
                <mx:TextInput id="led"/>
                <mx:Label />
                <mx:Label />
           </mx:Canvas>
      </mx:Canvas>
      
      

       

      But i dont want my canvas to be focused when i click to my TextInput. I want to edit my textinput but when i click to my textinput my canvas is focusing so it is not possible to edit.

       

      Can u help me fix this