So, I recently aquired Macromedia Flash 8, and I've wanted to create a random text box, that would display one of several text dialogs at random.
However, I haven't been able to figure out a way to do so, and after searching for a solution online, the closest thing I've found to this is a number generator, which doesn't work quite the same way.
I should also note that I'm more-or-less oblivious to script code, but if you have any, I'll try my best to understand. Thanks in advance. :)
>>31973
The code to select a word from a list of words at random would be something like this (this is javascript not actual actionscript, it is similar though, you'll have to check if actionscript has Math.random):
words = ["a word", "another word", "etc"];
max = words.length;
min = 0;
rand_index = Math.floor(Math.random() * (max - min)) + min;
selected_word = words[rand_index];
Then find a way to put the string selected_word into your text.