# Dynamic text in external swf

**URL:** https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664
**Category:** Uncategorized
**Created:** [August 16, 2003, 9:52am UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664 "2003-08-16T09:52:54Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![micron](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@micron](https://forum.kirupa.com/u/micron)
#### Post date: [August 16, 2003, 9:52am UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664/1 "2003-08-16T09:52:54Z")

</div>

Hello  
Dont know if i posted this thread in the right forum, but this is my first one.  
I wonder if someone can help me out with this problem. I want to load dynamic text into MC.B (that works fine)and then it´s saved as MC.B.swf.  
Then i want to load that movie into MC.A, wich have an emptyMC called “noneMC”.  
I get MC.B but not the text loaded dynamic.  
The script im using is:

on button in MC.A :

```
      on(press){
loadMovie("MC.B.swf","noneMC");

```

}  
In MC.B in actionslayer:

loadVarsText = new loadVars();  
loadVarsText.load(“cardo.txt”);  
loadVarsText.onLoad = function(success) {  
if (success) {  
trace(“done loading”);  
the  
scroller.text = this.var1;  
} else {  
trace(“not loaded”);  
}  
};

MC.B works great if i run on its on.  
I guess that i must have something to do with not finding “cardo.txt”.  
Hope that someone can help me out with this one.  
I´ve searched the forum and found lots of mesages about it but allthough i havent worked this one out.  
I´m a newbie but i want to advance.

Thankx , micron

---

<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 17, 2003, 2:19am UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664/2 "2003-08-17T02:19:05Z")

</div>

[AS]var loadVarsText = new LoadVars();  
loadVarsText.load(“cardo.txt”);  
loadVarsText.onLoad = function(success) {  
if (success) {  
trace(“done loading”);  
\_root.scroller.text = this.var1;  
} else {  
trace(“not loaded”);  
\_root.scroller.text = “Error!”;  
}  
};[/AS]

---

<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 17, 2003, 5:03pm UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664/3 "2003-08-17T17:03:55Z")

</div>

Thanks for the fast help, but it didnt seem to help me out. I dont know what i´m doing wrong. I attached my files and wonder if you perhaps could have a little look into them.  
I can get my buttons in MC.B to work inside the main movieclipso taht they arre playing my gallery.  
My thoughts are that at the end ,these two files should be loaded into a main movieclip.  
I´m glad that this forum exists with all you flashgurus.

---

<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 17, 2003, 5:11pm UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664/4 "2003-08-17T17:11:06Z")

</div>

Hmm i see no file attached :sigh:

---

<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 17, 2003, 5:19pm UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664/5 "2003-08-17T17:19:00Z")

</div>

sorry . here are the files.

---

<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 17, 2003, 5:21pm UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664/6 "2003-08-17T17:21:15Z")

</div>

Again i cant see them 😛  
Send me the files on \*\*\*\*\*\*@yahoo.com

---

<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 17, 2003, 5:34pm UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664/7 "2003-08-17T17:34:31Z")

</div>

Just sent you the files

---

<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 17, 2003, 5:45pm UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664/8 "2003-08-17T17:45:24Z")

</div>

thanx i´ll check them out . But now i have to go to the airport to get my family. great thanx again

---

<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 17, 2003, 5:48pm UTC](https://forum.kirupa.com/t/dynamic-text-in-external-swf/28664/9 "2003-08-17T17:48:50Z")

</div>

welcome 🙂
