# Dynamically setting function type through xml

**URL:** <https://forum.kirupa.com/t/dynamically-setting-function-type-through-xml/175684>\
**Category:** flash\
**Created:** [January 17, 2006, 12:09am UTC](https://forum.kirupa.com/t/dynamically-setting-function-type-through-xml/175684 "2006-01-17T00:09:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ice987](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@ice987](https://forum.kirupa.com/u/ice987)\
**Post date:** [January 17, 2006, 12:09am UTC](https://forum.kirupa.com/t/dynamically-setting-function-type-through-xml/175684/1 "2006-01-17T00:09:13Z")

</div>

I have a number of functions and I want to execute 1 based on the entries in a .xml file

part my xml file reads as follows

\<funcType\>thisFunc\</funcType\>

In my .fla I have defined thisFunc along with a number of similar functions

I want to execute the function as follows

chosenFunc=Node.childNodes[0].childNodes[0].nodeValue;//points to thisFunc in the .xml file

chosenFunc(); // This should execute as thisFunc ()

Problem is this doesn’t seem to be working. Am I trying the impossible?
