hello,
this may not be an advance actionscript, but i need your help guys…
i found this loading random quotes - http://www.kirupa.com/developer/mx2004/random_quotes.htm,
but changed the code a little bit that it loads randomly without clicking the button:
function newquote(){
play();
clearInterval(auto_quote);
};
ranQuote = new LoadVars();
ranQuote.onLoad = function(success) {
if (success) {
RanNum = Math.ceil(Math.random()*5);
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();
auto_quote = setInterval(newquote, 10000);
my question is:
how to let the text fade in/out when it loads another quote?:pa:
any help will be greatly appreciated!