Keep Background in the screen

Hello,

I’m making a little project for my mom. She is a painter and she wants her paintings on a wall. The idea is that the user can walk to the left or the right. I did this by one of the movement tutorials, so it isn’t you who’s walking, but the background is. But the only problem is, is that the background is walking outside the scene. So my goal is that the background stops moving before he walks out of the scene. I’ve posted the .fla file with it!

ps.
When i’m walking, you hear footsteps. But it doesnt wait till the footstep has stoped when it repeats, but it is playing when the first footstep is still busy! So you hear a lot of footsteps at the same time!

Sorry for my bad english, i’m dutch.

[edit]
Its Flash MX 2004 i saw

well that isn’t too hard… just change the code to this:


on (keyPress "<Left>") {
	if(this._x<712.1){
	currentX = this._x;
	this._x = currentX + 8;
	}
 
}
on (keyPress "<Right>") {
	if(this._x>-1128.1){
	trace(this._x);
	currentX = this._x;
	this._x = currentX - 8;
	}
}

but i think you used a strange way of doing this… you could have made the background grey to, instead of making a background…

from what you wrote i thought you were english

Thanx, i’m going to try this! Well the grey background wasn’t the real Background, because the real one was too big to upload here.

thanx for the help.