Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can you program a button to choose a random function?

Explorer ,
Oct 01, 2014 Oct 01, 2014

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?

TOPICS
ActionScript
280
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 02, 2014 Oct 02, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines