AS3 linking URL

Out of context: Reply #2

  • Started
  • Last post
  • 6 Responses
  • sixfngers0

    yes this makes sense but carefull with the currentTarget.
    that means if the but1 has a child in it for example a text field.
    if you clicked on the button while the mouse is over the text field the MouseEvent.currentTarget would be the textfield not the button but the MouseEvent.target would still be but1 make sense

    • You got that backwards. currentTarget is the object the listener is applied to.skelly_b
    • target is the object the received the event, sometimes a child of the listening object.skelly_b

View thread