# Asfunction

**URL:** <https://forum.kirupa.com/t/asfunction/162291>\
**Category:** Uncategorized\
**Created:** [September 11, 2005, 9:30pm UTC](https://forum.kirupa.com/t/asfunction/162291 "2005-09-11T21:30:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![salvadore](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@salvadore](https://forum.kirupa.com/u/salvadore)\
**Post date:** [September 11, 2005, 9:30pm UTC](https://forum.kirupa.com/t/asfunction/162291/1 "2005-09-11T21:30:24Z")

</div>

Sometimes I just can’t realize my ideas with flash… ☹

I am loading html formatted data in the dynamic text field using load vars.  
In this html data i put some hyperlinks with asfunctions.

HTML LINK:

\<a href =“asfunction:myFunction”\>link\<a\>

CODE:

function myFunction():void{  
myLV.load(“data\_1.html”);  
}

I am using this asfunctions to load another html formatted data in the same text field.  
That is no problem.  
But when I wrote 10 hardcoded functions I realize that there should be a nicer way to do this because I don’t want to mess with my flash files everytime I put in another link (for example when I am updating my site).

I just want my site to be more dynamic, when it comes to updating.  
I guess I have to write some code which is capable to do this via external file (XML or PHP) .

Can someone give me a direction please.

THANK YOU IN ADVANCE
