hope this method is of some help
PHP Code:
// extend the TextField class to include the hitTest method
TextField.prototype.hitTest = hitTest;
// create the textfield
this.createTextField("link1",1,100,100,200,30);
link1.html = true;
link1.autoSize = true;
// activate color changes on hitTest
this.onMouseMove = function(){
if(link1.hitTest(_xmouse,_ymouse)){
link1.textColor = 0x0000FF;
} else {
link1.textColor = 0xFF0000;
}
};
// load the xml
_xml = new XML();
_xml.ignoreWhite = true;
_xml.load("link.xml");
// pass the node value to the textfield
_xml.onLoad = function(){
link1.htmlText = this.firstChild.firstChild.nodeValue;
};
// run this function to load the passed parameter
function myFunc(param){
trace(param);
// code to load flv
};
/*--link.xml--
<?xml version="1.0" encoding="UTF-8"?>
<node>
<![CDATA[<P ALIGN='CENTER'><B><FONT color='#FF0000'><a href='asfunction:myFunc,rocket.flv'>RED ROCKET</a></FONT></P>]]>
</node>
*/