5 Replies Latest reply on Jun 14, 2010 4:13 PM by Flex harUI

    Checking if it is a specific object

    PHANTOMIASA

      Hello!

       

      I have to check if the event of a click: event.target is a specific object of a class, for example:

       

      if (event.target == com.foo.Bar)
      

       

      But this does not work. In the inspector of my debugger I see this:

      target = com.foo.Bar (@8dcdae1)

       

      How can I check if the object (event.target) is from a special class (com.foo.Bar)?

       

      Best Regards.