Skip navigation
Currently Being Moderated

How do I make a random movieclip visible based on a variable's quantity?

May 30, 2012 11:52 AM

Tags: #problem #flash #as3 #dynamic #variable #movieclip

Hi all!

Very new to all this so this should be an easy question!

 

I have a line of code that gives a variable "random" a random number between 1 and 100.

 

I have 100 movieclips called: mc1, mc2, mc3 . . mc100

 

I want to do somthing like this:

 

mc[random].visible=true

 

..to make a random shape visible.

 

Any ideas?

 

Cheers


Chris

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points