# AS3, passing SharedObject into URL using a string

**URL:** <https://forum.kirupa.com/t/as3-passing-sharedobject-into-url-using-a-string/330793>\
**Category:** flash\
**Created:** [March 16, 2013, 6:53pm UTC](https://forum.kirupa.com/t/as3-passing-sharedobject-into-url-using-a-string/330793 "2013-03-16T18:53:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcoo](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@dcoo](https://forum.kirupa.com/u/dcoo)\
**Post date:** [March 16, 2013, 6:53pm UTC](https://forum.kirupa.com/t/as3-passing-sharedobject-into-url-using-a-string/330793/1 "2013-03-16T18:53:45Z")

</div>

[LEFT][SIZE=3][COLOR=#000000][FONT=Arial]Im loading dynamically named xml file and Im trying to pass a SharedObject from putusername.text into a string to complete the url.

[/FONT][/COLOR][/SIZE][/LEFT]  
[SIZE=2]var galleryLoader:LoaderMax;var url = “https:/www.mysite.com/”;var putusername = putusername.text;var queue:XMLLoader = new XMLLoader(String(url)+(putusername)+"\_myfile.xml",{name:“xmlDoc”, maxConnections:11, estimatedBytes:5000, onCompletemlCompleteHandler});queue.load();[/SIZE]  
[FONT=Arial]  
Here is the Error:[/FONT]  
[FONT=Arial]Error on XMLLoader ‘xmlDoc’ ([http://www.mysite.com/\_myfile.xml](http://www.mysite.com/_myfile.xml)): Error #2032: Stream Error. URL:[http://www.mysite.com/\_myfile.xml[/FONT]](http://www.mysite.com/_myfile.xml%5B/FONT%5D)
