Basically, you need to differentiate between objects which scroll, objects which should be fixed on the screen (for example score displays) and the object which causes the scrolling. When you add an object to the world, you add it to a scrolling or non-scrolling list. Whenever the object which is causing the scrolling reaches a certain point on the x-axis, you move all objects in the scrolling-list (and the object itself) to the side.
You could look at this scenario from danpost: http://www.greenfoot.org/scenarios/19020