# Moving the stage

**URL:** <https://forum.kirupa.com/t/moving-the-stage/264798>\
**Category:** Uncategorized\
**Created:** [June 30, 2008, 5:55pm UTC](https://forum.kirupa.com/t/moving-the-stage/264798 "2008-06-30T17:55:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anirudhvineet](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@anirudhvineet](https://forum.kirupa.com/u/anirudhvineet)\
**Post date:** [June 30, 2008, 5:55pm UTC](https://forum.kirupa.com/t/moving-the-stage/264798/1 "2008-06-30T17:55:32Z")

</div>

Hey, am new here and kinda a beginner in flash. I am currently working on a game in which there is a map that is bigger tan the stage size. In the game there is a car which is controlled by the user. The problem is I need the map to move when the car reaches the end of the stage. The map is a move clip. Could someone please help me?

---

<div class="post-metadata">

**Author:** ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)\
**Post date:** [July 1, 2008, 10:49am UTC](https://forum.kirupa.com/t/moving-the-stage/264798/2 "2008-07-01T10:49:50Z")

</div>

you would probably use an onEnterFrame to check the position (\_x and \_y) of the car movie clip, then if it was in a certain area, move the map movie clip by a set amount

eg

```auto

this.onEnterFrame = function():Void {
     if(carMC._y < 100){
          mapMC._y -= 5;
     }
}

```

obviously youd need to tie it in with your ‘driving/moving’ code…
