# Dynamically embedding swf in HTML from Query String?

**URL:** <https://forum.kirupa.com/t/dynamically-embedding-swf-in-html-from-query-string/239069>\
**Category:** flash\
**Created:** [September 18, 2007, 2:36pm UTC](https://forum.kirupa.com/t/dynamically-embedding-swf-in-html-from-query-string/239069 "2007-09-18T14:36:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lance](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Lance](https://forum.kirupa.com/u/Lance)\
**Post date:** [September 18, 2007, 2:36pm UTC](https://forum.kirupa.com/t/dynamically-embedding-swf-in-html-from-query-string/239069/1 "2007-09-18T14:36:10Z")

</div>

What I’m trying to do is use a query string to get the name of a swf to embed into the HTML.

Example: [www.myurl.com?name=interface1](http://www.myurl.com?name=interface1)

Then in my code for embedding the swf I have something like this.

Example:

```auto

<div align="center">

<script type="text/javascript" src="swfobject.js"></script>
		
<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
   var so = new SWFObject(name+".swf", name, "785", "575", "8", "#FFFFFF");
   so.addParam("quality", "high");
   so.write("flashcontent");
</script>
</div>

```

Does anybody know a way to make this work? I would be greatful for any input 🙂
