# XML loads other XML Files, onload function in onload function

**URL:** https://forum.kirupa.com/t/xml-loads-other-xml-files-onload-function-in-onload-function/207639
**Category:** flash
**Created:** [November 20, 2006, 9:22am UTC](https://forum.kirupa.com/t/xml-loads-other-xml-files-onload-function-in-onload-function/207639 "2006-11-20T09:22:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![crazed\_climber](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@crazed\_climber](https://forum.kirupa.com/u/crazed_climber)
#### Post date: [November 20, 2006, 9:22am UTC](https://forum.kirupa.com/t/xml-loads-other-xml-files-onload-function-in-onload-function/207639/1 "2006-11-20T09:22:46Z")

</div>

I am writting an image gallery that loads one intial xml file named galleries.xml.  
From this point each xml node loads a XMl file for that gallery that holds all the images.  
The problem arises in the fact that to do this I need a onload function within an onload function. Onload functions dont accept parameters so I can pass down the variable that shows what loop the gallery loop is on as I need that in the function that holds the images. I hope you can understand what I am trying to say.

I will include the galleries.xml file and a sample image xml file and the fla.
