I'm trying to pass a variable into an swf using query strings. Am loading the swf through swfobject.js in my aspx page.

Code:
<div id="flashcontent">Replacement copy</div>


<script type="text/javascript">
var myVar = new SWFObject("mymovie.swf", "name", "740", "540", "8", "#ffffff");
so.addVariable("varInFlash", "<%=Request.QueryString["variableName"]%>");
myVar.write("flashcontent");
</script>
with a

Code:
_root.varInFlash;
in the first frame of my movie.


Only problem is, that with the so.addVariable statement in there, the swf doesn't load. I comment out that line, and it loads just fine.

So I have syntax off somehow? I think for asp that the brackets [ ] are needed, but not sure.

Or is my javascript syntax off??

Anyone here have some input?

THANKS!