3 Replies Latest reply on Aug 22, 2007 1:19 PM by Kiruno

    Invoking "this" from within a function

    Kiruno
      Assume we are in this situation:

      mc.onRollover=function()
      {
      trace(this);
      function dosmthing()
      {
      trace(this);
      };
      };

      The first trace(this) would render the path of the movieclip, mc. The second one, however, would render "undefined". Is there a way of retrieving the path of the movieclip from within the function? I can't hardcode it, since it's dinamically assigned.