3 Replies Latest reply on Oct 10, 2006 7:08 PM by kglad

    Problems with Load Movie

    tboparis
      Hello! I am making a game in Flash (my first) and I would like to load a movie clip called 'ship' when the ground which is called "mainGround" is duplicated 7 times (it is duplicated when the screen moves to give a scrolling impression). There is a "ground" movie clip inside mainGround. Here is the mainGround code:


      th

      onClipEvent (load) {

      ground.duplicateMovieClip("ground2", 100);
      ground2._x = ground._x+ground._width;
      groundStartx = this._x;
      groundSpeed=10;

      }

      onClipEvent (enterFrame) {

      if (_root.spaceship.scrollStart){
      this._x-=groundSpeed;
      if (this._x<= (groundStartx-ground._width)){
      this._x=groundStartx-groundSpeed;
      }
      }

      }

      Thanks.