# As: Help with random movvement

**URL:** <https://forum.kirupa.com/t/as-help-with-random-movvement/165765>\
**Category:** flash\
**Created:** [October 13, 2005, 7:23pm UTC](https://forum.kirupa.com/t/as-help-with-random-movvement/165765 "2005-10-13T19:23:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wo1olf](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wo1olf](https://forum.kirupa.com/u/wo1olf)\
**Post date:** [October 13, 2005, 7:23pm UTC](https://forum.kirupa.com/t/as-help-with-random-movvement/165765/1 "2005-10-13T19:23:02Z")

</div>

I’m tryng to attach dynamicaly several instances of a movieclip in the library. And i want them to be placed in random position on the stage. After a few moment they would disappear and would be replaced by new instances of teh same movieclip (these new instances should also be placed in a random position).

here is the pseudo-code

Attach movieclip instances to stage in random positions  
Count time;  
Remove the instances ( not in the same time, but one by one)  
Attach new instances and so on  
Can anybody help me with coding?
