# Hyperlink

**URL:** <https://forum.kirupa.com/t/hyperlink/27643>\
**Category:** Uncategorized\
**Created:** [August 5, 2003, 2:52am UTC](https://forum.kirupa.com/t/hyperlink/27643 "2003-08-05T02:52:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apple](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@apple](https://forum.kirupa.com/u/apple)\
**Post date:** [August 5, 2003, 2:52am UTC](https://forum.kirupa.com/t/hyperlink/27643/1 "2003-08-05T02:52:53Z")

</div>

i working on a movie clip which contains a hyperlink text. When i click on the hypelink text, it should load a movie contains the description of the text. So, what should i do to make it happen?? i have tried to use the "\<a href\>\</a\> to do that but is not working. And, how i going to check which description should be loaded?? i hope maybe someone can help me up. thanks.

---

<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 5, 2003, 3:59am UTC](https://forum.kirupa.com/t/hyperlink/27643/2 "2003-08-05T03:59:31Z")

</div>

If you are using hyperlink, on the “URL link” field, enter this:[AS]asfunction:launchMovie,site.swf[/AS]Replace site.swf with the swf you want to load.

Now on your timeline, place the following:[AS]function launchMovie(clip) {  
this.createEmptyMovieClip(“container\_mc”,100);  
container\_mc.loadMovie(clip);  
}[/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 5, 2003, 6:51am UTC](https://forum.kirupa.com/t/hyperlink/27643/3 "2003-08-05T06:51:10Z")

</div>

This can be done using one of the undocumented AS Commands the ASFunction. This allows you to call functions directly from an html enabled textfield.

To do this, create a dynamic textfield which is html enabled and give it an instance name:

```auto

//I named my my dynamic textfield as tf...
tf.html = true;
tf.htmlText = "<a href='asfunction:loadSWF, swfToLoad.swf'>Click to load file!</a>";
//swfToLoad.swf should be the file you intend to load
//and loadSWF should be the function the will load it for you

//Set your load function
loadSWF = function(swfFileName){
loadMovieNum(swfFileName, 1);
}
//Here the swfFileName argument will be replaced by the one
//you specified at the html link...

```

Good luck!

🙂

---

<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 7, 2003, 7:27am UTC](https://forum.kirupa.com/t/hyperlink/27643/4 "2003-08-07T07:27:54Z")

</div>

Thanks for helping me!! I’m very appreciate it and finally i solved my problem. Arigataou gozaimasita!! (Thank you very much)
