1 Reply Latest reply: Jan 26, 2012 5:35 PM by Ned Murphy RSS

    event.target movieclip

    jeremyskateboard1 Community Member

      I have a movieclip named button1 that contains a dynamic text named txt in it.

      My problem is that if i try

      if(event.target==button1)

      {

      ...

      }

      it will only recognize the click when it dosent intersect the dynamic textfield

      So i have to do:

      if(event.target==button1||event.target==button1.txt)

      {

      ...

      }

      do you have any explanation for why i cant only check if the target is button1? because the textfield is inside the button so normally it is considered as a part of it

      because the movieclip button1 is the container