Moving the stage

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?

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


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

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