Skip to main content
Known Participant
January 22, 2007
Question

Randomly Attached Movie Clips

  • January 22, 2007
  • 2 replies
  • 331 views
Ok, I'm sure this has a simple solution, and I suspect it involves using an array, but I'm not sure...

What I'm trying to accomplish is to have a movie clip randomly seleted and attached to the main movie. I have the for loop which will randomly generate the numbers, and I'd like to have that result concatenated with "mcC1Exercise" for attaching, so it would be mcC1Exercise01, McC1Exercise12, and so on. Here is the code I have so far.

I've tried simply just adding the nRand1 to the end of "mcC1Exercise" but no movie loads. What should I do to make this work?

Thank you..
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
January 22, 2007
you're welcome.
kglad
Community Expert
Community Expert
January 22, 2007
try:

Known Participant
January 22, 2007
Thanks for the feedback, you helped me figure it out. Ultimately is was the linkage that was the issue. I had them linked as "01", and "02" etc.

All I had to do was change the link names to "1" and "2" and presto! Thanks for your help..