3 Replies Latest reply on May 26, 2009 10:59 AM by Michael Borbor

    Detect when component loses focus?


      Hi all,


      I am expanding a text box when someone clicks in it, and then trying to resize it again when they interact elsewhere.e.g.,


          <mx:TextInput x="403" y="16" width="21" id="txt_busy" click="expand_b.end(); expand_b.play();" backgroundAlpha="0.5"/>
          <mx:Resize id="expand_b" target="{txt_busy}" widthTo="120"/>
          <mx:Resize id="contract_b" target="{txt_busy}" widthTo="21"/>


      But I can't find anything about detecting a 'losefocus' or similar?


      Thanks for your help!