1 Reply Latest reply on Feb 23, 2008 7:29 PM by peterent

    Click on an image

    jefflemon Level 1
      Im adding an image in as3, but how can I add a click to it:

      //add marker
      var marker:Image = new Image;
      marker.source = ("images/pointer.png");
      marker.x = (tagX);
      marker.y = (tagY);
      marker.click = (this.currentState = 'mail';);

      mapCanvas.addChild(marker);