# ExternalInterface and XML?

**URL:** <https://forum.kirupa.com/t/externalinterface-and-xml/202718>\
**Category:** Uncategorized\
**Created:** [October 4, 2006, 7:56am UTC](https://forum.kirupa.com/t/externalinterface-and-xml/202718 "2006-10-04T07:56:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bed718](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bed718](https://forum.kirupa.com/u/bed718)\
**Post date:** [October 4, 2006, 7:56am UTC](https://forum.kirupa.com/t/externalinterface-and-xml/202718/1 "2006-10-04T07:56:39Z")

</div>

I am creating links in my flash movie using XML. Once I do I would like the links to send info to my HTML page using ExternalInterface. It works when I hard code the url like so:

ExternalInterface.call(“ajaxpage”, ‘hardCode.htm’, ‘rightcolumn’);

but when I try to load the content using XML i get this error:  
"256 levels of recursion were exceeded in one action list.  
This is probably an infinite loop.  
Further execution of actions has been disabled in this movie.  
"

What am i doing wrong???

```auto
import flash.external.*;

myXML = new XML ();
myXML.ignoreWhite = true;
myXML.onLoad = function (ok)
{
	if (ok)
	{
		//process data
		allGalleryData = this.firstChild.childNodes;
		for (i = 0; i < allGalleryData.length; i++){
			newLink=hold_mc.attachMovie("btn_mc","hold"+i,i);
			newLink._y=(i*(newLink._height+4));
			newLink.btn.name = allGalleryData*.firstChild.firstChild;
			
			newLink.btn.title = allGalleryData*.firstChild.nextSibling.firstChild;
			newLink.txt.text=newLink.btn.name;
			newLink.btn.onPress=function(){
				 ExternalInterface.call("ajaxpage", this.title, 'rightcolumn');
			
			
			}
		}
	}
}
myXML.load("link.xml");

```
