4 Replies Latest reply on Mar 4, 2009 2:06 PM by Francisc

    mouseDown increase number

    Francisc Level 3
      Hello!

      How can I increase a number by one on mouseDown event on a button?
      e.g.
      <mx:Script>
      <[CDATA[
      private function mouseDownHandler(event:MouseEvent):void
      {
      ?????
      }
      ]]>
      </mx:Script>
      <mx:Text id="myText" label="0">

      Thank you!
      <mx:Button label="test" mouseDown='mouseDownHandler(event)"/>