Constrain movement to within a scene only

I'm still working out the logic but how would I constrain movement to within a scene. I do not want the actor to go out of the scene but halt when the edge reaches the left or right edge of a scene.
The size of the actor is 136x40.
Thanks.
The size of the actor is 136x40.
Thanks.
Comments
Darren.
A quick template for you.
Darren.
You know this made me think though. Tshirt would love this:
How hard would it be to make a web app that mimics the GS interface? So that just like in GS you could drag an object into the scene and create rules. All it would be is a gui where you drag dummy objects around and have text fields where you can write in parameters. It would be awesome to demonstrate how to do certain functions in GS. You could open up the web app from a button above the "reply" textbox (which, I'm currently typing in, drag your dummy objects around and arrange them, enter necessary text, then when done click a button and it posts an image within the reply box and voila a demo image to help you explain.
Darren.