# Bizarre dynamic text problem

**URL:** <https://forum.kirupa.com/t/bizarre-dynamic-text-problem/60660>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 1:22pm UTC](https://forum.kirupa.com/t/bizarre-dynamic-text-problem/60660 "2004-08-11T13:22:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Calydon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/calydon/32/682_2.png) [@Calydon](https://forum.kirupa.com/u/Calydon)\
**Post date:** [August 11, 2004, 1:22pm UTC](https://forum.kirupa.com/t/bizarre-dynamic-text-problem/60660/1 "2004-08-11T13:22:33Z")

</div>

Ok, we’ve all loaded text into a movie clip using LoadVarNum, right? Simple, right??

Well then why is that when I create a movie clip (news.swf) that is loaded from a parent clip (main.swf) the text doesn’t show up???

You can see this for yourself at [http://www.craigmoritz.com/news.swf](http://www.craigmoritz.com/news.swf) where the dynamic text loading clearly is working…but then go to the main clip where this same news MC is being loaded:  
[http://www.craigmoritz.com/main.swf](http://www.craigmoritz.com/main.swf) and you can see nothing! nothing!? grrr.

Fla files available at [http://www.craigmoritz.com/news.fla and [url=“http://www.craigmoritz.com/main.fla”]http://www.craigmoritz.com/main.fla](http://www.craigmoritz.com/news.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 1:47pm UTC](https://forum.kirupa.com/t/bizarre-dynamic-text-problem/60660/2 "2004-08-11T13:47:39Z")

</div>

That happens because the path to the object changes after you load the news.swf into the main.swf  
Try the following code instead:

```auto
this.loadVariables("news.txt", "news1");

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 2:06pm UTC](https://forum.kirupa.com/t/bizarre-dynamic-text-problem/60660/3 "2004-08-11T14:06:56Z")

</div>

> [@claudio](#):
>
> That happens because the path to the object changes after you load the news.swf into the main.swf  
> Try the following code instead:
> 
> ```auto
> this.loadVariables("news.txt", "news1");
> 
> ```

yes, thank you, Claudio!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2004, 12:55pm UTC](https://forum.kirupa.com/t/bizarre-dynamic-text-problem/60660/4 "2004-08-12T12:55:57Z")

</div>

Welcome
