1 Reply Latest reply on Oct 5, 2006 10:16 AM by injpix

    Variable with attachMovie

    strange_creatures
      Hi. I'm a relative beginner at Actionscript. I have a project with seven sliding galleries, each containing ten clips. Users can open any of the galleries then drag and drop any of the samples within them. I'd like to attach another copy of whichever sample has been selected. I know how to use attachMovie to load specific clips, but I don't know how to use it more generically .

      I imagine it would be something like:

      _root.attachMovie( "sample" + i, "newclip" + n, level);

      where 'i' would have an integer value of between 1and 70, but I can't get Actionscript to accept the first parameter in this form. Has anyone any suggestions?