4 Replies Latest reply on May 29, 2006 7:28 AM by kglad

    concatenating with inctance names

    Verstile
      Hi all,
      I was wondering how i can concatenate inctance name....
      I have l 10 movie clips with each instance name of d c1, c2, c3 ... c10 etc..

      In actionscript i want to call them, by using another variable : someting like this :
      var fCounter:Number = 0 ;
      var count:Number = 4;
      var cN:Number = "1";
      var cf1:Number = 200;

      this.onEnterFrame = function(){
      fCounter++;
      trace("cf"+cN); /// i wnat the code under to work like string concatenation
      if (fCounter>=cf[cN]){
      c[cN].citeA[cN]._alpha += count;
      if (c[cN].citeA[cN]._alpha >= 100){
      c[cN].citeA[cN]._alpha = 100;
      cN += 1;
      //delete this.onEnterFrame;
      }
      } ,......


      Can anyone helpme please?
      Any suggestions?
      Can anyone help me?