AS3 place movieclips on stage

Hey everyone,

I’m in the process of making a game, and I’ve stumbled into some problems.

The player controls the character with their mouse - it follows their cursor. I’m trying to make an environment continually scroll from the right hand side of the screen to the left - much like in Canabalt (click to see).

I’ve been trying to do this with tweens, but it doesn’t seem like it’s going to be the most efficient way of doing it… Plus Flash keeps dying on me whenever I try to do it.

I have a couple of background images, and then I have objects in the foreground that the player is going to destroy by mousing the character over them.

How do I get Actionscript 3 to place instances of movieclips on the screen at certain points, and make them to scroll from the right of the screen to the left? I have a lot of different movieclips to use, so it’d also be great if they could be removed from the stage once they reach a certain point…

Had some great advice from this forum before so I hope you can point me in the right direction!