# Help with Loading text from External Sources

**URL:** <https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932>\
**Category:** flash\
**Created:** [October 25, 2003, 11:15am UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932 "2003-10-25T11:15:13Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJ\_Foxx](https://avatars.discourse-cdn.com/v4/letter/d/a698b9/32.png) [@DJ\_Foxx](https://forum.kirupa.com/u/DJ_Foxx)\
**Post date:** [October 25, 2003, 11:15am UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/1 "2003-10-25T11:15:13Z")

</div>

Whats up yall. Here is my problem. The tutorial that is on this site gives me exactly what i need except for my issue is that i dont use a button for my button i use a movie clip and use scripting to make it work. The problem is is that when i add the script to add the import the text it changes the movie clip into the text. weird i tell yall. how do i target the text box? e-mail me please.

[Lukasz@lapdesign.net](mailto:Lukasz@lapdesign.net)

Thanks for the help

---

<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:** [October 25, 2003, 5:17pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/2 "2003-10-25T17:17:59Z")

</div>

Can you post your code here?

---

<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:** [October 25, 2003, 5:38pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/3 "2003-10-25T17:38:57Z")

</div>

on (release) {  
loadText = new loadVars();  
loadText.load(“text1.txt”);  
loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
newsBox.html = true;  
newsBox.htmlText = this.myNews;  
}  
};  
}

---

<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:** [October 25, 2003, 5:45pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/4 "2003-10-25T17:45:44Z")

</div>

I cant see anything wrong with your code. Can you post your 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:** [October 25, 2003, 5:47pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/5 "2003-10-25T17:47:06Z")

</div>

would you like me to e-mail it to you?

---

<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:** [October 25, 2003, 5:48pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/6 "2003-10-25T17:48:14Z")

</div>

email it to claudiodj at yahoo dot 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:** [October 25, 2003, 5:51pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/7 "2003-10-25T17:51:24Z")

</div>

you got mail. its a little over 4 mb

---

<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:** [October 25, 2003, 5:54pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/8 "2003-10-25T17:54:22Z")

</div>

just kidding

---

<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:** [October 25, 2003, 5:57pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/9 "2003-10-25T17:57:22Z")

</div>

[http://www.lapdesign.net/journees4/topnav2.fla](http://www.lapdesign.net/journees4/topnav2.fla)

just click there

---

<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:** [October 25, 2003, 5:57pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/10 "2003-10-25T17:57:35Z")

</div>

[edit] nevermind i got the file

---

<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:** [October 25, 2003, 6:04pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/11 "2003-10-25T18:04:09Z")

</div>

cool

---

<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:** [October 25, 2003, 6:04pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/12 "2003-10-25T18:04:45Z")

</div>

for some reason it wont load the text

---

<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:** [October 25, 2003, 6:06pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/13 "2003-10-25T18:06:48Z")

</div>

Try this code:

```auto
on (release) {
	loadText = new loadVars();
	loadText.load("text1.txt");
	loadText.onLoad = function(success) {
		if (success) {
			// trace(success);
			_parent.newsBox.html = true;
			_parent.newsBox.htmlText = this.myNews;
		}
	};
}

```

---

<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:** [October 25, 2003, 6:08pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/14 "2003-10-25T18:08:18Z")

</div>

beautiful!!! it worked. thanks so much

---

<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:** [October 25, 2003, 6:08pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/15 "2003-10-25T18:08:57Z")

</div>

welcome 🙂

---

<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:** [October 27, 2003, 7:14pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/16 "2003-10-27T19:14:48Z")

</div>

Hey Dj Foxx,

Do you know why I can’t add special characters  
in the text file? If my text1.txt file has … à or é…  
for example… the code gets all messed up.

Any ideas?

Thanks! :crazy:

Neuhaus3000

---

<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:** [October 27, 2003, 7:27pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/17 "2003-10-27T19:27:53Z")

</div>

all about special characters  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=1024&highlight=special+characters](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=1024&highlight=special+characters)

scotty

---

<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:** [October 27, 2003, 7:30pm UTC](https://forum.kirupa.com/t/help-with-loading-text-from-external-sources/33932/18 "2003-10-27T19:30:50Z")

</div>

Hey, thanks Scotty! :beam:
