Random Flash Movie PHP
Random Flash Movie PHP
Out of context: Reply #6
- Started
- Last post
- 8 Responses
- ********0
ranQuote = new LoadVars();
ranQuote.onLoad = function(success) {
if (success) {
RanNum = Math.ceil(Math.random()*12);
ran = this["quote"+RanNum];
quote_txt.text = ran;
}
else {
quote_txt.text = "The text failed to load due to an error";
}
}
ranQuote.load("Quotes.txt");
stop();then load in your txt