Character reaches the end of the map (walls and camera movement)

Hi all!
First of all i hope everyone is ok today.:slight_smile:
My problem for today is that i am making another 2d adventure game but now my problem is that the main character is at the center of the screen and the surrounding arrea is moving around him,but when he reaches the map reaches the end of the screen it must stop and the caracter should be able to move forvard from the center to the edge of the screen,and if he came back to the center everything must be the same.
I dont know if you undersant thatโ€ฆ
I link my fla,and maybe someone could help me.:rambo:

LINK:

Auch!
Solved the problem:D
[COLOR=#0066cc]http://www.mkworkshop.comuf.com/cube_game2.rar[/COLOR]

Here it is!
Maybe if someone has a smarter and easyer solvation please write it down for me!

Bye bye