# External txt files

**URL:** https://forum.kirupa.com/t/external-txt-files/118172
**Category:** Uncategorized
**Created:** [August 3, 2004, 11:45am UTC](https://forum.kirupa.com/t/external-txt-files/118172 "2004-08-03T11:45:46Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Coolio](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Coolio](https://forum.kirupa.com/u/Coolio)
#### Post date: [August 3, 2004, 11:45am UTC](https://forum.kirupa.com/t/external-txt-files/118172/1 "2004-08-03T11:45:46Z")

</div>

okay…

here goes 🙂

first of all, thx for the help i´ve got so far 🙂 u r great guys.

now the the point:

i have a main MC and several external swf´s beeing loaded onto my main MC at press of certain buttons… all that stuff.

but now comes the fact, that the dynamic text files at some of the swf´s is going to be updated sometimes. and as its irritatin doing it all by hand, i want to make the txt external too, i´ve done it before, but that was on main stage, i am going to embed the font outline thingy, right?

but how do i do that in an external txt file?

is there an html code for it? 🙂

//Coolio

---

<div class="post-metadata">

### Author: ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)
#### Post date: [August 3, 2004, 12:01pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/2 "2004-08-03T12:01:33Z")

</div>

an html code to embed the font ? is it that ? if you want to embed your font (it’s the same for external text), just select character --\> embed in the property panel of your dynamic text.  
I don’t know if i reply to your question

---

<div class="post-metadata">

### Author: ![Coolio](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Coolio](https://forum.kirupa.com/u/Coolio)
#### Post date: [August 3, 2004, 1:04pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/3 "2004-08-03T13:04:14Z")

</div>

hmm… well i understand what you mean, but thats if you wrote the text in flash, want i want is , that it loads the txt from an external txt file and into the dynamic text field, but still imbedded so i can see it throug the mask…

---

<div class="post-metadata">

### Author: ![Coolio](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Coolio](https://forum.kirupa.com/u/Coolio)
#### Post date: [August 3, 2004, 1:05pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/4 "2004-08-03T13:05:30Z")

</div>

or wait, i didnt read it all ( ups :book: )

hehe sry, i´ll see if it works 🙂

---

<div class="post-metadata">

### Author: ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)
#### Post date: [August 3, 2004, 1:08pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/5 "2004-08-03T13:08:45Z")

</div>

yep, that will work, embed your dynamic textbox 😉

---

<div class="post-metadata">

### Author: ![Coolio](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Coolio](https://forum.kirupa.com/u/Coolio)
#### Post date: [August 3, 2004, 1:13pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/6 "2004-08-03T13:13:23Z")

</div>

hehe uber thx 😛

or as i would say

mange tak for det 🙂

i´ll post my partial work later on, and see if it works 🙂

---

<div class="post-metadata">

### Author: ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)
#### Post date: [August 3, 2004, 1:15pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/7 "2004-08-03T13:15:51Z")

</div>

> hehe uber thx

or as i would say

mange tak for det

:h:  
and… you’re welcome !

---

<div class="post-metadata">

### Author: ![Coolio](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Coolio](https://forum.kirupa.com/u/Coolio)
#### Post date: [August 3, 2004, 1:28pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/8 "2004-08-03T13:28:38Z")

</div>

he he its danish 😛

btw, i have another prob

i want the text to load as soon as the swf is loaded… not with a button click, what script do i use?

```auto
onClipEvent (enterFrame){Function; {
 
	loadText = new loadVars();
	loadText.load("text1.txt");
	loadText.onLoad = function(success) {
		if (success) {
			// trace(success);
			newsBox.html = true;
			newsBox.htmlText = this.myNews;
		}
	};
}
loadText = new loadVars();
	loadText.load("text2.txt");
	loadText.onLoad = function(success) {
		if (success) {
			// trace(success);
			newsBox1.html = true;
			newsBox1.htmlText = this.myNews;
		}
	};
}

```

but that does not work?

---

<div class="post-metadata">

### Author: ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)
#### Post date: [August 3, 2004, 1:29pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/9 "2004-08-03T13:29:57Z")

</div>

the second one 🙂 ([SIZE=1]in fact i don’t think it changes something for the loading time)[/SIZE] but put it on the first frame of your movie

Edit–  
What doesn’t work ? could you post you file ?

---

<div class="post-metadata">

### Author: ![Coolio](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Coolio](https://forum.kirupa.com/u/Coolio)
#### Post date: [August 3, 2004, 1:36pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/10 "2004-08-03T13:36:32Z")

</div>

i cant use onClipEvent (enterFrame ) for the function, it says its only allowed for uhm… some movie thingy…

so what code should i use?

---

<div class="post-metadata">

### Author: ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)
#### Post date: [August 3, 2004, 1:41pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/11 "2004-08-03T13:41:03Z")

</div>

Edit  
Use onClipEvent for movieclip, so use the second one

---

<div class="post-metadata">

### Author: ![Coolio](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Coolio](https://forum.kirupa.com/u/Coolio)
#### Post date: [August 3, 2004, 1:53pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/12 "2004-08-03T13:53:26Z")

</div>

well… i´ll try 🙂

but… second one? eh

here´s what it looks like now

[http://o0ice0o.freewebpage.org/t4a\_site.html](http://o0ice0o.freewebpage.org/t4a_site.html)

---

<div class="post-metadata">

### Author: ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)
#### Post date: [August 3, 2004, 1:56pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/13 "2004-08-03T13:56:17Z")

</div>

Nice graphics you have there, is it the scrollbar from claudio you’re using ?

edit: just saw your title what makes you confused the onClipEvent thing ?

---

<div class="post-metadata">

### Author: ![Coolio](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@Coolio](https://forum.kirupa.com/u/Coolio)
#### Post date: [August 3, 2004, 1:59pm UTC](https://forum.kirupa.com/t/external-txt-files/118172/14 "2004-08-03T13:59:53Z")

</div>

i was confused about what u meant with the second on…

the scollbar i got from [actionscript.org](http://actionscript.org), adn then i made ít other colours and dif size 🙂

graphics took 5 hours to make 😛
