# How to pass flashvars using swfobject

**URL:** <https://forum.kirupa.com/t/how-to-pass-flashvars-using-swfobject/247254>\
**Category:** flash\
**Created:** [December 20, 2007, 2:07am UTC](https://forum.kirupa.com/t/how-to-pass-flashvars-using-swfobject/247254 "2007-12-20T02:07:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy789](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@andy789](https://forum.kirupa.com/u/andy789)\
**Post date:** [December 20, 2007, 2:07am UTC](https://forum.kirupa.com/t/how-to-pass-flashvars-using-swfobject/247254/1 "2007-12-20T02:07:12Z")

</div>

Hi,

I have a flash component calling an external xml file configurable via the component inspector (I mean the location of the xml file).

What I need is to pass the xml location as a flashvar variable from the html code. When I debug my flash, I can see the xml variable as

Variable \_level0.myBook.extXML = “[www.xml](http://www.xml/)”

So, I am trying to add the flashvar to swfobject as

so.addParam(“flashVars”,“extXML=sample.xml”); //any xml what i need

It does not work and does not pass the variable.

Please, help. Very urgently.

Thanks
