# Problem with Loading Random Quotes

**URL:** https://forum.kirupa.com/t/problem-with-loading-random-quotes/189038
**Category:** flash
**Created:** [May 12, 2006, 7:04pm UTC](https://forum.kirupa.com/t/problem-with-loading-random-quotes/189038 "2006-05-12T19:04:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![LNario](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@LNario](https://forum.kirupa.com/u/LNario)
#### Post date: [May 12, 2006, 7:04pm UTC](https://forum.kirupa.com/t/problem-with-loading-random-quotes/189038/1 "2006-05-12T19:04:31Z")

</div>

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](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.
