# Load an external MC from a dynamic text link? - Possible?

**URL:** <https://forum.kirupa.com/t/load-an-external-mc-from-a-dynamic-text-link-possible/38441>\
**Category:** flash\
**Created:** [December 22, 2003, 10:42pm UTC](https://forum.kirupa.com/t/load-an-external-mc-from-a-dynamic-text-link-possible/38441 "2003-12-22T22:42:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sintax321](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sintax321](https://forum.kirupa.com/u/sintax321)\
**Post date:** [December 22, 2003, 10:42pm UTC](https://forum.kirupa.com/t/load-an-external-mc-from-a-dynamic-text-link-possible/38441/1 "2003-12-22T22:42:56Z")

</div>

Ok i have a dymanic text box that scrolls. There are some words that the client would like to be links to the other sections in the site much like what you would do in HTML. Is it possible to attach action script to a link in a dymanic text box that scrolls? The load script it self would be

[AS]on(release){  
loadMovie(“home.swf”,\_root.content);  
}[/AS]

Can i get a dynamic text link to do this?

---

<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:** [December 23, 2003, 10:59am UTC](https://forum.kirupa.com/t/load-an-external-mc-from-a-dynamic-text-link-possible/38441/2 "2003-12-23T10:59:01Z")

</div>

Sure, run a search on ‘asfunction’ 😉

---

<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:** [December 23, 2003, 3:47pm UTC](https://forum.kirupa.com/t/load-an-external-mc-from-a-dynamic-text-link-possible/38441/3 "2003-12-23T15:47:09Z")

</div>

ya tried that and i’ll i get is 50 threads of ppl telling them to search. Man i’m going to be super helpful from now on and tell ppl to search. Or i might get really creative and paste the search button into my thread becuase you know ppl love seeing that.

---

<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:** [December 23, 2003, 4:33pm UTC](https://forum.kirupa.com/t/load-an-external-mc-from-a-dynamic-text-link-possible/38441/4 "2003-12-23T16:33:25Z")

</div>

Im assuming you are loading an external txt file.

```auto
lv = new LoadVars();
lv.onLoad = function(success) {
	if (success) {
		myTextField.html = true;
		myTextField.htmlText = this.myVar;
	}
};
lv.load("text.txt");
function loadClip(arg) {
	var temp = arg.split("|");
	loadMovie(temp[0], temp[1]);
}

```

And on the txt file called text.txt:

```auto
myVar=Load movie <a href='asfunction:loadClip,home.swf|_root.content'>here</a>&

```

---

<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:** [December 23, 2003, 4:37pm UTC](https://forum.kirupa.com/t/load-an-external-mc-from-a-dynamic-text-link-possible/38441/5 "2003-12-23T16:37:17Z")

</div>

Thanks claudio seems when ever i have the odd question you are my go to guy.

You txt line is exactly what i needed to see. I was making mine more complicated then i needed too and it was casusing problems. Thanks again and Happy Holidays.

---

<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:** [December 23, 2003, 4:39pm UTC](https://forum.kirupa.com/t/load-an-external-mc-from-a-dynamic-text-link-possible/38441/6 "2003-12-23T16:39:16Z")

</div>

Welcome sintax, happy holiday for you!  
🍺
