1 Reply Latest reply on Apr 29, 2006 4:45 AM by Newsgroup_User

    Actionscript and attachmovie syntax problem

    Level 7
      I have the following code :

      on (release) {
      var leveli;


      var intro2:MovieClip = attachMovie("Man_mc", "man_mc1" , leveli);
      manname._x = 208.85;
      manname._y = 142.4;
      leveli = leveli +1;

      This loads the movie onto the screen bu the _x & _y cords are wrong

      If I use .

      on (release) {

      var intro2:MovieClip = attachMovie("Man_mc", "man_mc1" , 1);
      manname._x = 208.85;
      manname._y = 142.4;

      The cords are correct but when I re-click a button the movie start again.

      What I need to do is click the button several times and a new instance of
      the movie is showm. eg

      first click var intro2:MovieClip = attachMovie("Man_mc", "man_mc1" , 1);
      first click var intro2:MovieClip = attachMovie("Man_mc", "man_mc2" , 2);
      first click var intro2:MovieClip = attachMovie("Man_mc", "man_mc3" , 3);