Call actionscript function from xml file

greetings all

my xml file is as such:

<menu txt="THIS ITEM FIRES A FUNCTION IN FLASH" txtcolor="0xFFFFFF" menuaction="myFUNCTION" />

myFUNCTION is a function inside of flash, how can i possibly trigger this?

i did some searches but i can’t find the sollution:

i read upon asfunction:myFUNCTION, but it simply doesn’t work

this is my relevant flash code

myFUNCTION = function()
trace ("am i called?");
BUTTON.onRelease = function() 
trace("myFUNCTION : " + XMLARRAY[this.ID].attributes.menuaction);

thanks in advance