4 Replies Latest reply on Aug 9, 2011 9:20 AM by lingo55

    Please help deleting text

    lingo55 Level 1

      Hi,

      I want to know if it is possible to select a RichEditableText on my canvas and delete it by clicking on the delete key on my keyboard.

      This is the code for my text fields:

       

      <s:Group

       

       

      width="630" height="394" x="0" y="0">

       

      <s:RichEditableText

      id=

      MyAddress"

      text="

      my address here"

      fontSize="

      12"

      mouseDown="MyAddress.startDrag();"

      mouseUp="MyAddress.stopDrag();"

      mouseOut="resetHandler(event)"

      mouseOver="clickHandler(event)"

      x="

      114" y="64" fontFamily="Verdana" textAlign="right"

       

      />

       

       

       

      <s:RichEditableText

      id="

      MyWebsite"

      text="

      my website here"

      fontSize="

      12"

      mouseDown="MyWebsite.startDrag();"

      mouseUp="MyWebsite.stopDrag();"

      mouseOut="resetHandler(event)"

      mouseOver="clickHandler(event)"

      x="

      115" y="158" fontFamily="Verdana" textAlign="right"/>

       

       

       

      <s:RichEditableText

      id="

      MyPhone"

      text="

      my phone here"

      fontSize="

      12"

      mouseDown="MyPhone.startDrag();"

      mouseUp="MyPhone.stopDrag();"

      mouseOut="resetHandler(event)"

      mouseOver="clickHandler(event)"

      x="

      125" y="82" fontFamily="Verdana" textAlign="right"/>

       

       

      <s:RichEditableText

      id="

      MyFax"

      text="

      my fax here"

      fontSize="

      12"

      mouseDown="MyFax.startDrag();"

      mouseUp="MyFax.stopDrag();"

      mouseOut="resetHandler(event)"

      mouseOver="clickHandler(event)"

      x="

      146" y="99" fontFamily="Verdana" textAlign="right"/>

       

       

      <s:RichEditableText

      id="

      MyMobile"

      text="

      my mobile here"

      fontSize="

      12"

      mouseDown="MyMobile.startDrag();"

      mouseUp="MyMobile.stopDrag();"

      mouseOut="resetHandler(event)"

      mouseOver="clickHandler(event)"

      x="

      124" y="116" fontFamily="Verdana" textAlign="right"/>

       

       

       

       

      <s:RichEditableText

      id="

      MyEmail"

      text="

      my email here"

      fontSize="

      12"

      mouseDown="MyEmail.startDrag();"

      mouseUp="MyEmail.stopDrag();"

      mouseOut="resetHandler(event)"

      mouseOver="clickHandler(event)"

      x="

      132" y="133" fontFamily="Verdana" textAlign="right"

      toolTip = "

      you can drag me around or click inside me to enter your email here"

       

      />

       

       

       

      <s:RichEditableText

      id="

      MyName"

      text="

      my name here"

      fontSize="

      24"

      mouseDown="MyName.startDrag();"

      mouseUp="MyName.stopDrag();"

      mouseOut="resetHandler(event)"

      mouseOver="clickHandler(event)"

      x="

      50" y="23" fontFamily="Verdana" textAlign="right"

      toolTip = "

      you can drag me around or click inside me to enter your name here"/>

       

        

       

       

       

      <mx:Image x="319"

      y="

      292"

      source="

      @Embed('images/your_logo.png')"

      mouseDown="img.startDrag();"

      mouseUp="img.stopDrag();"

      mouseOut="resetHandler(event)"

      mouseOver="clickHandler(event)"

      id="

      img"

      toolTip = "

      you can drag me around :-)"

      complete="smoothImage(event)" smoothBitmapContent="

      true"/>

       

       

       

      </s:Group>