2 Replies Latest reply on Sep 4, 2007 7:24 PM by kglad

    getting a substring of keyword "this"

    chopTheWood Level 1
      I have a mc called "mc3" which is contained within the mc "gridClip". If I use the "this" keyword to send the name of the mc (that gets clicked on) to a function(below) it sends:"_level0.gridClip.mc3". No surprises here. Note also that trace(nameOfClip) DOES = "_level0.gridClip.mc3" from within the function. The substring method just doesn't seem to work on this string.

      function getLargeImage(nameOfClip) {
      var nameOfClip:String;
      var clipNumber:String;
      I expect to get a value of "mc3" , but clipNumber is undefined instead.
      Is the keyword "this" not treated as a regular string data type?