5 Replies Latest reply on Mar 5, 2010 6:45 AM by kglad

    Can I return the name of an object the mouse is touching on a click event?

    ankhcomm

      Is it possible to do something similar to this pseudo code?

       

      var oMouseListener:Object = new Object();

      oMouseListener.onMouseUp = function() {

           if (Mouse.clickTarget is a MovieClip) {

                return the name of the MovieClip;

                }

           };

      Mouse.addListener(oMouseListener);