Asfunction

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

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