Skip to main content
Known Participant
October 2, 2014
Question

Can you program a button to choose a random function?

  • October 2, 2014
  • 1 reply
  • 299 views

This is more of a hypothetical question for possible use in a future project.  Say I have three different movie clips with different animation within them.  Would it be possible to program a single button to randomly play one of those three movieclips so that theoretically you'd have to click that button 3 times before seeing the same animation twice?

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
October 2, 2014

Yes.  Something like this could use an array of the instance names where you randomize it and then go thru the array one item at a time.