# AS2: randomizing location of movieclips

**URL:** <https://forum.kirupa.com/t/as2-randomizing-location-of-movieclips/283282>\
**Category:** flash\
**Created:** [March 4, 2009, 2:17pm UTC](https://forum.kirupa.com/t/as2-randomizing-location-of-movieclips/283282 "2009-03-04T14:17:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilleypants](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@lilleypants](https://forum.kirupa.com/u/lilleypants)\
**Post date:** [March 4, 2009, 2:17pm UTC](https://forum.kirupa.com/t/as2-randomizing-location-of-movieclips/283282/1 "2009-03-04T14:17:46Z")

</div>

I have 7 movieclips that form a line down the stage like so:

Movieclip 1  
Movieclip 2  
Movieclip 3

I need it so that when a button is pressed is randomizes the order in which they are shown for example it could be:

Movieclip 2  
Movieclip 3  
Movieclip 1

Any help would be great thanks :yoda:
