# Transparency on a SWFobject

**URL:** <https://forum.kirupa.com/t/transparency-on-a-swfobject/315837>\
**Category:** flash\
**Created:** [November 5, 2010, 10:53am UTC](https://forum.kirupa.com/t/transparency-on-a-swfobject/315837 "2010-11-05T10:53:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dean0674](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@dean0674](https://forum.kirupa.com/u/dean0674)\
**Post date:** [November 5, 2010, 10:53am UTC](https://forum.kirupa.com/t/transparency-on-a-swfobject/315837/1 "2010-11-05T10:53:04Z")

</div>

Hi There

I am wandering if anyone could help. I have a flash SWFObject on a pafge and i want to make the background transparent so that the base HTML background shows through. This is my code:

var so = new SWFObject(“images/topnav.swf”, “flash”, “100%”, “100%”, “6”,"#000000");  
so.addVariable(“xml”, “data.xml?time=”+new Date().getTime())  
so.write(“flashcontent”);

where do I add the parameter code and what does the actual code look like?
