# AS3 place movieclips on stage

**URL:** https://forum.kirupa.com/t/as3-place-movieclips-on-stage/304715
**Category:** flash
**Created:** [February 12, 2010, 12:22pm UTC](https://forum.kirupa.com/t/as3-place-movieclips-on-stage/304715 "2010-02-12T12:22:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joobny](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@joobny](https://forum.kirupa.com/u/joobny)
#### Post date: [February 12, 2010, 12:22pm UTC](https://forum.kirupa.com/t/as3-place-movieclips-on-stage/304715/1 "2010-02-12T12:22:05Z")

</div>

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)](http://www.adamatomic.com/canabalt/).

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!
