# Adding random movie clips to stage

**URL:** <https://forum.kirupa.com/t/adding-random-movie-clips-to-stage/277079>\
**Category:** open source\
**Created:** [December 7, 2008, 2:52pm UTC](https://forum.kirupa.com/t/adding-random-movie-clips-to-stage/277079 "2008-12-07T14:52:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![emrepbrown](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@emrepbrown](https://forum.kirupa.com/u/emrepbrown)\
**Post date:** [December 7, 2008, 2:52pm UTC](https://forum.kirupa.com/t/adding-random-movie-clips-to-stage/277079/1 "2008-12-07T14:52:35Z")

</div>

Hello everyone. My problem is that i want to adding random movie clips to stage from library ,where there are some movieclips, when i click to stage. I want to create a button and addevent listener to it then each time it adds random movieclips from library without no removing previous MovieClips with using AS3. I haven’t found the math random adding code when i click the myButton. Thanks.
