# Passing multiple parameters to loaded swf

**URL:** <https://forum.kirupa.com/t/passing-multiple-parameters-to-loaded-swf/313491>\
**Category:** Uncategorized\
**Created:** [September 1, 2010, 1:07am UTC](https://forum.kirupa.com/t/passing-multiple-parameters-to-loaded-swf/313491 "2010-09-01T01:07:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peacock](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@peacock](https://forum.kirupa.com/u/peacock)\
**Post date:** [September 1, 2010, 1:07am UTC](https://forum.kirupa.com/t/passing-multiple-parameters-to-loaded-swf/313491/1 "2010-09-01T01:07:53Z")

</div>

I have a loaded swf that passes parameters  
Here’s the html snippet from swfobject:  
var flashvars = {  
loadBreakfastSWF:“assets/mcd\_breakfasthappymeals.swf?next=assets/mcd\_rodhappymeals.swf&xmlPath=assets/product/productDetail\_rod.xml”,

I am able to get the first parameter (next) but not the xmlPath.  
in flash, i tried these two:  
xmlPath = this.loaderInfo.parameters.xmlPath;

and  
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;  
next = String(paramObj.next);  
xmlPath = String(paramObj.xmlPath);  
url\_txt.text = next;  
xml\_txt.text= xmlPath;

can anybody help?
