# Retrieve url from txt

**URL:** <https://forum.kirupa.com/t/retrieve-url-from-txt/74161>\
**Category:** Uncategorized\
**Created:** [December 24, 2004, 1:21pm UTC](https://forum.kirupa.com/t/retrieve-url-from-txt/74161 "2004-12-24T13:21:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![3pinter](https://avatars.discourse-cdn.com/v4/letter/3/9de053/32.png) [@3pinter](https://forum.kirupa.com/u/3pinter)\
**Post date:** [December 24, 2004, 1:21pm UTC](https://forum.kirupa.com/t/retrieve-url-from-txt/74161/1 "2004-12-24T13:21:46Z")

</div>

Well,

I’ve read a few topics about my problem: [http://www.kirupaforum.com/forums/showthread.php?t=45311&highlight=txt+url](http://www.kirupaforum.com/forums/showthread.php?t=45311&highlight=txt+url)

BUT It doesn’t work for me:

What I want: my mc (infoxtra) has a few dynamic textfields and another mc (called ‘visit’)

* * *

MC infoxtra

- dynamictextfield ‘titel’

- dynamictextfield ‘categorie’

- dynamictextfield ‘info’

- mc ‘visit’

* * *

AS1 on mc infoxtra:

```auto
 loadText = new loadVars();
loadText.load(freakingtest);
loadText.onLoad = function(success) {
	if (success) {
		titel.html = true;
		titel.htmlText = this.titel;
		categorie.html = true;
		categorie.htmlText = this.categorie;
		info.html = true;
		info.htmlText = this.info;
		visit.onRelease = function() {
			getURL("loadText.url");
		};
	}
};
stop();
 

```

AS1 on the frame where ‘infoxtra’ is placed:  
freakingtest=“web.txt”

The first AS1 is static in my site. the second AS1 isn’t … or in other words: I want to load different txt files into infoxtra.

Problem 1:  
I’m not getting my url… what goes wrong

Problem 2:  
I can’t seem to reach freakingtest… at least flash can’t…  
(if I change freakingtest for “web.txt” it works ofcourse.)

Anybody: tips // other AS1 // anything would be greatly appreciated!!
