Game Border

Am creating A game in FlashCS3 with Action script 2.o.The player do not go to the out of screen.if player touches the end it will not move player in button controls what can i do for this function