# Security Sandbox Violation with XML Link

**URL:** <https://forum.kirupa.com/t/security-sandbox-violation-with-xml-link/249342>\
**Category:** flash\
**Created:** [January 17, 2008, 6:09pm UTC](https://forum.kirupa.com/t/security-sandbox-violation-with-xml-link/249342 "2008-01-17T18:09:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mediumman](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mediumman/32/551_2.png) [@mediumman](https://forum.kirupa.com/u/mediumman)\
**Post date:** [January 17, 2008, 6:09pm UTC](https://forum.kirupa.com/t/security-sandbox-violation-with-xml-link/249342/1 "2008-01-17T18:09:24Z")

</div>

I am trying to modify the squirrel finder xml sample by adding links within the xml file…below is the code i used in the FLA to call the link, however i am getting a “Security Sandbox Violation - Halted Not Permitted by file …” any thoughts? I tried using the files live and local and i get nothing…

var squirrel\_xml = new XML();  
squirrel\_xml.ignoreWhite = true;

squirrel\_xml.onLoad = function(success){  
if (success) CreateMenu(this);  
else trace(“Error loading XML file”);  
}  
squirrel\_xml.load(“tt.xml”);

var item\_spacing = 28;  
var item\_count = 0;

function CreateMenu(menu\_xml){

```
var items = menu_xml.firstChild.firstChild.childNodes; 
for (var i=0; i&lt;items.length; i++) {
	
	if (items*.attributes.type == "squirrel") { 
		
		var species = items*.firstChild;
		var location = items*.childNodes[1];
		link = items*.childNodes[2];
		
		var item_mc = menu_mc.attachMovie("menu_itemz","item"+item_count, item_count);
		item_mc._y = item_count * item_spacing;
		
		item_count++;
		
		item_mc.species_txt.text = species.firstChild.nodeValue;
		item_mc.main_btn.location_text = location.firstChild.nodeValue;
		
		item_mc.main_btn.onRelease = function() {
		getURL(link, "_blank");
		}
	}
}

```

}
