Asfunction in xml

Hi all,

I’m trying to call an function in flash from xml. so I used <a> tag and asfunction. But how come when it calls a built-in function in flash, it works. and when it calls a custom function, it just won’t work???

function customFunc(a){
trace(“here”)
}

these are in my xml file:
<a href=“asfunction:trace,here”>Click</a>
– okay this one works
<a href=“asfunction:customFunc,whatever”>Click</a>
– this one doesn’t

Thanks in advance:)