4 Replies Latest reply on Sep 28, 2006 3:03 AM by pompeybam

    get number out of String

    luciewong Level 1
      I have several emptyMCs on my page, created with a for loop;
      Each MC has now a different name, like "Roll_mcT0","Roll_mcT1","Roll_mcT2", and so on....
      How could I get the number property out of this MC name?

      var depthT:Number = 1000+d;
      this.createEmptyMovieClip("Roll_mcT"+ d, depthT);

      this["Roll_mcT" + d].onRollOver = function(){
      myno = this.d;

      best regards,