# Loaded movie won't load external text file

**URL:** <https://forum.kirupa.com/t/loaded-movie-wont-load-external-text-file/118229>\
**Category:** Uncategorized\
**Created:** [August 3, 2004, 8:13pm UTC](https://forum.kirupa.com/t/loaded-movie-wont-load-external-text-file/118229 "2004-08-03T20:13:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![last](https://avatars.discourse-cdn.com/v4/letter/l/ecae2f/32.png) [@last](https://forum.kirupa.com/u/last)\
**Post date:** [August 3, 2004, 8:13pm UTC](https://forum.kirupa.com/t/loaded-movie-wont-load-external-text-file/118229/1 "2004-08-03T20:13:45Z")

</div>

Straight to the point:  
I created a flash swf(scroller swf:news) with dynamic scrolling loaded text. It works perfect as a standalone. The problem is that when I load it from another swf(main swf:test) through a button event the movie loads but the text doesn’t show. Please if anyone has the time please look over the code and help me unravel the “loading mystery”. The tutorial i used for the dynamic scrolling text is found at [Actionscript.org](http://Actionscript.org)(Intermidiate tutorial 29).

---

<div class="post-metadata">

**Author:** ![TheRealAlan](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@TheRealAlan](https://forum.kirupa.com/u/TheRealAlan)\
**Post date:** [August 3, 2004, 8:42pm UTC](https://forum.kirupa.com/t/loaded-movie-wont-load-external-text-file/118229/2 "2004-08-03T20:42:46Z")

</div>

Probably you’ve got something in your loaded .swf referring to the root timeline, which is getting screwed up when it loads into the other .swf. Remember that wherever you use \_root in your code, it’s going to go straight to the root timeline of your main .swf (as in the one that all your others are being loaded into). It sounds like that’s your problem.

---

<div class="post-metadata">

**Author:** ![hudge](https://avatars.discourse-cdn.com/v4/letter/h/46a35a/32.png) [@hudge](https://forum.kirupa.com/u/hudge)\
**Post date:** [August 3, 2004, 11:02pm UTC](https://forum.kirupa.com/t/loaded-movie-wont-load-external-text-file/118229/3 "2004-08-03T23:02:35Z")

</div>

How should you refer to the root then in a loaded swf?

if this is in your main.swf  
loadMovie(“movie.swf”, “instances”);

how do you refer to this:

loadVariablesNum(“html.txt”, 0);

or

onClipEvent (load) {  
\_root.scrollerDirection = “left”;  
}

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [August 3, 2004, 11:13pm UTC](https://forum.kirupa.com/t/loaded-movie-wont-load-external-text-file/118229/4 "2004-08-03T23:13:43Z")

</div>

a few different ways: using \_parent, using this in the timeline of the movieclip the textbox is in, or using \_root but putting in the fullpath to the textbox.

For example if the textbox is sitting on the main timeline of the external swf, and that external swf is being loaded into an empty movie clip in the main file called “container” then the path is simply \_root.container.myTextBox.

If the textbox is sitting in a movie clip called “myMC” which is sitting on the main timeline of the external swf then the path is \_root.container.myMC.myTextBox

Make sense? It’s all about showing Flash the path to your object.

:hr:
