# as2 in CS5: xml problem

**URL:** <https://forum.kirupa.com/t/as2-in-cs5-xml-problem/319049>\
**Category:** flash\
**Created:** [February 7, 2011, 6:36pm UTC](https://forum.kirupa.com/t/as2-in-cs5-xml-problem/319049 "2011-02-07T18:36:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [February 7, 2011, 6:36pm UTC](https://forum.kirupa.com/t/as2-in-cs5-xml-problem/319049/1 "2011-02-07T18:36:30Z")

</div>

trying to do this with as2 in CS5:

```auto
var xml:XML = new XML();
xml.ignoreWhite=true;

xml.onLoad=function(success)
{

if(success)
{
	
	trace("loaded!");
	trace("xml: "+xml.firstChild.firstChild.childNodes);
}
	
}

xml.load("slides.xml");

```

seems to be good as2 code… what’s up with cs5? does it have full support for as2 “as installed” or do i need to point it at an AS2 library or something?
