# Help with the SWFObject!

**URL:** <https://forum.kirupa.com/t/help-with-the-swfobject/195651>\
**Category:** flash\
**Created:** [August 2, 2006, 6:10am UTC](https://forum.kirupa.com/t/help-with-the-swfobject/195651 "2006-08-02T06:10:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lolit](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@Lolit](https://forum.kirupa.com/u/Lolit)\
**Post date:** [August 2, 2006, 6:10am UTC](https://forum.kirupa.com/t/help-with-the-swfobject/195651/1 "2006-08-02T06:10:55Z")

</div>

Hi there,

Please, can someone help me, how to use the SWFObject for my HTML page that contains 2 flash objects and one media player object .wmv. The standard procedure below work just fine for one flash object, but when i try to use it for multiple objects in one web page, it doesn’t work! May be i am missing something or it is just a more complicated code! Please, help! Thanks in advance!

[FONT=Courier New]\<script type=“text/javascript” src=“swfobject.js”\>\</script\>[/FONT] /in the head of the html page/ and:

[FONT=Courier New]\<div id=“flashcontent”\>  
This text is replaced by the Flash movie.  
\</div\>[/FONT]  
[FONT=Courier New]\<script type=“text/javascript”\>  
var so = new SWFObject(“movie.swf”, “mymovie”, “500”, “100”, “6”, “#003399”);  
so.addVariable(“variable”, “varvalue”);  
so.write(“flashcontent”);  
\</script\> [/FONT]
