11 Replies Latest reply on Jun 3, 2008 5:01 PM by Varangian

    Canvas click event for child objects

    Varangian Level 1
      I'm trying to register one event for every child object.
      and I'm using following this code

      http://livedocs.adobe.com/flex/3/html/help.html?content=events_08.html
      in the part of the examples (second example)

      However I'm adding dynamically custom extended Image objects, and when click on a displayed Image and check for its type if its the correct type, it would just return false.
      Alert.show((event.target is MyAClass).toString());

      Also when clicking on one of the children objects and display the event.target.name and it just displays a silly "FlexLoader74" or whatever number. It somehow looses it's properties or the type of the object.

      Is there something I am missing?!