LOL..Its an assignment with 3 goals actually... I have completed everything except the game area thing or to say the canvas.
The enemies (shapes) bounce of the edges and the player also is not allowed to leave the layout. For that i have created few rectangles around the layout given them the solid behavior and set those enemies to bounce of the solids and also to stop player from leaving. Now if i use the technique given by Asmodean something weird his happening (I have my project set into 1280x720) , so I tried to scale the layer which is the base layer (Background) with all those rectangles.
The things which are happening ( I don't want them to happen):
1. The layer is re-sizing from the bottom right corner (I want it to re-size from all the sides)
2. The rectangles now are not colliding with the player (Form other posts I have seen that objects should not be set on solids to collide with objects on another layer)