1 Reply Latest reply on May 5, 2008 10:30 AM by Newsgroup_User

    attachMovie problem

    Level 7
      Hi, can't figure out why attachMovie is not working in the function I've
      created..


      function fBox(movieName){
      mcBox.attachMovie("movieName","CS",1, {_x:0, _y:0});
      }

      button1.onRelease = function(){
      fBox("Spa");
      }

      I've created movie clip Spa, and gave it linkage name of Spa.
      Also there is movie clip called mcBox on the stage.
      I've created function called fBox that should load movie clip using linkage
      names I set to movie clips.

      for example, I could have button1, button2 and button3 on the stage, and if
      button1 is released, the movie clip with linkage name Spa is loaded into
      movie clip mcBox,
      and if button2 is released, the movie clip with the linkage name Pool is
      loaded into movie clip mcBox, and so on.

      What am I doing wrong?