# Play random mc on stage

**URL:** <https://forum.kirupa.com/t/play-random-mc-on-stage/169649>\
**Category:** Uncategorized\
**Created:** [November 18, 2005, 12:50am UTC](https://forum.kirupa.com/t/play-random-mc-on-stage/169649 "2005-11-18T00:50:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monotypic](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@monotypic](https://forum.kirupa.com/u/monotypic)\
**Post date:** [November 18, 2005, 12:50am UTC](https://forum.kirupa.com/t/play-random-mc-on-stage/169649/1 "2005-11-18T00:50:54Z")

</div>

hello everyone.  
here’s the situation:

on the stage i have a few instances of a movieclip.

for the sake of discussion we’ll say 5 mc’s.  
lz0 through lz4  
what i’m trying to do is use

targetmovie = “lz”+random(4);  
targetmovie.gotoAndPlay(2);

but for some odd reason flash does seem to see it.  
i can manually say lz4.gotoAndPlay(2);  
but i can’t seem to get the “lz”+random number to work.  
Ive gotta be missing something really basic…
