# Asfunction in xml

**URL:** <https://forum.kirupa.com/t/asfunction-in-xml/157614>\
**Category:** Uncategorized\
**Created:** [August 3, 2005, 6:34am UTC](https://forum.kirupa.com/t/asfunction-in-xml/157614 "2005-08-03T06:34:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlie\_su1986](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@charlie\_su1986](https://forum.kirupa.com/u/charlie_su1986)\
**Post date:** [August 3, 2005, 6:34am UTC](https://forum.kirupa.com/t/asfunction-in-xml/157614/1 "2005-08-03T06:34:18Z")

</div>

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:)
