# Random text fade in/out

**URL:** <https://forum.kirupa.com/t/random-text-fade-in-out/213346>\
**Category:** Uncategorized\
**Created:** [January 18, 2007, 9:16pm UTC](https://forum.kirupa.com/t/random-text-fade-in-out/213346 "2007-01-18T21:16:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qt\_silvertoes](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/qt_silvertoes/32/3201_2.png) [@qt\_silvertoes](https://forum.kirupa.com/u/qt_silvertoes)\
**Post date:** [January 18, 2007, 9:16pm UTC](https://forum.kirupa.com/t/random-text-fade-in-out/213346/1 "2007-01-18T21:16:41Z")

</div>

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](http://www.kirupa.com/developer/mx2004/random_quotes.htm),  
but changed the code a little bit that it loads randomly without clicking the button:

```auto
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! 😊
