# XML onLoad function

**URL:** <https://forum.kirupa.com/t/xml-onload-function/172475>\
**Category:** flash\
**Created:** [December 14, 2005, 6:48pm UTC](https://forum.kirupa.com/t/xml-onload-function/172475 "2005-12-14T18:48:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parad0xl0g](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@parad0xl0g](https://forum.kirupa.com/u/parad0xl0g)\
**Post date:** [December 14, 2005, 6:48pm UTC](https://forum.kirupa.com/t/xml-onload-function/172475/1 "2005-12-14T18:48:48Z")

</div>

Somebody knows how to include in a class the implementation of the onLoad function of the XML class. I have something like:

class theClass  
{  
private var output : XML;

```
private var input : String;

function theClass( )
{
     output = new XML( );
     output.onLoad = myOnLoad;
     output.load( );
}

function myOnLoad
{
     input = output.firstChild.childNodes[0].attributes.n;
}

```

}

BUT!! … it doesn’t work. Some ideas???
