3 Replies Latest reply on Oct 10, 2006 9:57 AM by tboparis

    Problems with Load Movie

    tboparis
      Hello! I am a flash newbie who is making his first game. I would like to load a movie clip called 'ship' when the ground called "mainGround" is duplicated 7 times. Also I would like the ground to stop scrolling at this point, There is a "ground" mc inside mainGround. Here is the code:



      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 to all of you! (I realize this must be a stupid question but everyone has to start, right?)