0
Can you program a button to choose a random function?
Explorer
,
/t5/animate-discussions/can-you-program-a-button-to-choose-a-random-function/td-p/6528815
Oct 01, 2014
Oct 01, 2014
Copy link to clipboard
Copied
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/animate-discussions/can-you-program-a-button-to-choose-a-random-function/m-p/6528816#M149505
Oct 02, 2014
Oct 02, 2014
Copy link to clipboard
Copied
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

