3 Replies Latest reply on Dec 20, 2007 8:15 AM by kglad

    variable in a movieclip name

    gringito Level 1
      hello, being a beginner I still dont get the syntax rules of AS ... could anyone help, please?

      1. I have a variable called "num" which has a different value (1 to 6) everytime the timeline of the scene repeats

      num = Number(random(6)+1);

      2.here I would like to use "num" value in a movieclip name ("container" number should be changing according to the "num" value)

      somevariable = container 1 _mc.cont 1 _txt;

      how can i use the "num" value inside the movieclip names (replacing 1 in the example above)?