# Using Xml in flash problems

**URL:** <https://forum.kirupa.com/t/using-xml-in-flash-problems/330403>\
**Category:** flash\
**Created:** [January 15, 2013, 3:08pm UTC](https://forum.kirupa.com/t/using-xml-in-flash-problems/330403 "2013-01-15T15:08:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyrone\_Leyland](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@Tyrone\_Leyland](https://forum.kirupa.com/u/Tyrone_Leyland)\
**Post date:** [January 15, 2013, 3:08pm UTC](https://forum.kirupa.com/t/using-xml-in-flash-problems/330403/1 "2013-01-15T15:08:23Z")

</div>

I am getting this error code :  
TypeError: Error #1006: value is not a function.  
at ProjectMain\_Scene5\_fla::MainTimeline/frame1()

I am basically trying to load my xml file in flash and keep getting that error.

My code is:  
stop();

btnPlay.addEventListener(MouseEvent.CLICK, clickedPlay2);

var my\_xml = new XML();

my\_xml.load(“I:\Final Year Project  
umericGame.xml”);

function clickedPlay2(event:MouseEvent):void  
{  
trace (“play”);  
}

Can anyone help please?
