0 Replies Latest reply on Aug 10, 2006 1:18 PM by VaporAction

    Attach/Remove MC using Array

      I'm making a chemistry tutorial where students would perform tests on elements.
      When a student clicks on a "Next Element" button, I would like the current element on the stage to be replaced with a new element.
      The elements all look exactly the same, I only need their instance names to change so I'm using the same symbol named "Element" and only changing the instance name ("ElementFe_mc, "ElementAl_mc", "ElementPt_mc").
      I've selected the "Element" symbol and set it's Linkage in the library.
      Then in ActionScript, I've attempted to create an array where the instance name of the Element mc changes each time the student clicks on "Next Element" and the current element is removed and replaced by the next element in the array...however, it's not working....here's the code...