# Bizarre dynamic text problem

**URL:** https://forum.kirupa.com/t/bizarre-dynamic-text-problem/119095
**Category:** Uncategorized
**Created:** [August 11, 2004, 1:22pm UTC](https://forum.kirupa.com/t/bizarre-dynamic-text-problem/119095 "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/119095/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: ![claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@claudio](https://forum.kirupa.com/u/claudio)
#### Post date: [August 11, 2004, 1:47pm UTC](https://forum.kirupa.com/t/bizarre-dynamic-text-problem/119095/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: ![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, 2:06pm UTC](https://forum.kirupa.com/t/bizarre-dynamic-text-problem/119095/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: ![claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@claudio](https://forum.kirupa.com/u/claudio)
#### Post date: [August 12, 2004, 12:55pm UTC](https://forum.kirupa.com/t/bizarre-dynamic-text-problem/119095/4 "2004-08-12T12:55:57Z")

</div>

Welcome
