4 Replies Latest reply on Apr 27, 2007 9:56 AM by mike93

    Help with vars

    mike93
      Hi Everyone,

      I am trying to use a variable as a instance name and I'm not able to make it work. This is an example of what I'm trying to do.

      function clicked(myParameter){
      var button = myParameter;
      test_mc.button.gotoAndStop("start");
      }

      clicked(myMC);


      When I trace the for the value button I get undefined.

      Thanks
      Mike