Thanks Chris, but that answer doesn't solve the problem.
Let me try to clarify my question further...
I have a scene whose rectangle is (0,0,600,400). I've put a square in the middle of that scene and I've set the movable attribute for it. I begin to move the square to the left edge of the scene. When any part of my square touches the scene's border, any further movement of the square will be ignored (if the movement would cause any part of the square to fall outside the scene's rectangle). Basically, I want it so the scene's rectangle should acts like a true container (no graphical object can escape the container).
Hope I did I better job of explaining it.
Bookmarks