# Load xml problem

**URL:** <https://forum.kirupa.com/t/load-xml-problem/160131>\
**Category:** Uncategorized\
**Created:** [August 23, 2005, 5:28pm UTC](https://forum.kirupa.com/t/load-xml-problem/160131 "2005-08-23T17:28:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakepeg](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jakepeg](https://forum.kirupa.com/u/jakepeg)\
**Post date:** [August 23, 2005, 5:28pm UTC](https://forum.kirupa.com/t/load-xml-problem/160131/1 "2005-08-23T17:28:13Z")

</div>

Can anyone tell me why this works

[AS]  
this.onMouseUp=function() {  
this.g++;  
if (this.g==1) {  
this.tree.loadXML(‘test.xml’)};  
}  
[/AS]

but this does not  
[AS]  
myReceiving\_lc = new LocalConnection()  
myReceiving\_lc.connect("\_treeConnection")  
myReceiving\_lc.recievedValue = function(load\_id)  
{  
this.tree.loadXML(‘test.xml?id=’+load\_id+’);  
trace(‘test.xml?id=’+load\_id+’)  
}  
[/AS]

the trace traces the correct output.

???
