3 Replies Latest reply on Jul 21, 2011 4:43 AM by kokorito

    [Fb:Mobile]How Can i Delete the text inside the TextInput?

    Barno7

      I would like to click on textInput lead to empty the text field

       

      I tried with:

       

      <s:TextInput id="myText" visible="false" x="10" y="234" change="clearText(event)" fontSize="24" text="Default Text"/>

       

      protected function clearText(event:TextOperationEvent):void

      {

      myText = "";

      }

       

      OR

       

       

      <s:TextInput id="myText" visible="false" x="10" y="234" click="clearText(event)" fontSize="24" text="Default Text"/>

       

       

       

      protected function clearText(event:MouseEvent):void

      {

      myText = "";

      }

       

      Debugging with the action on click works, but not on iphone