Hi,
Just looking for a little help with this problem.
I did the “Loading Random Quotes” tutorial on the Kirupa site (http://www.kirupa.com/developer/mx2004/random_quotes.htm) .
The flash movie works fine as a standalone movie, but when I bring this movie into another movie that is acting as an outer shell the random quotes text doesn’t work anymore.
I’m loading the randomQuotes.swf into a movieclip with instance name “contents” within the outerShell.swf. I can tell the randomQuotes.swf loaded because I can see my generate button. I just can’t see the quotes text.
Here’s the code for loading the external quotes.txt file. Maybe something needs to be changed in it since it’s nested in another movie?
/**************************************** Random Quotes Script***************** ****************************************/ 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();
Any help is greatly appreciated. Thanks.