all groups > flash (macromedia) > june 2007 >
You're in the

flash (macromedia)

group:

Embedding multiple flash .swf


Embedding multiple flash .swf patrickzgoldn
6/13/2007 8:48:48 PM
flash (macromedia):
I am having trouble adding multiple .swf videos to my webpage. When I toy with
this code, I always end up having to click to play the other .swf videos. Any
help is appreciated.

<SCRIPT src="swfobject.js" type=text/javascript></SCRIPT>
<STYLE type=text/css>

body {
background-color: #000000;
font: .8em/1.3em verdana,arial,helvetica,sans-serif;
}

#info {
width: 400px;
overflow: auto;
}

#flashcontent {
border: solid 20px #000000;
width: 400px;
height: 300px;
float: center;
margin: 15px 20px;
}

</STYLE>

<P></P>
<DIV id=flashcontent><STRONG>You need to upgrade your
Flash Player</STRONG> This is replaced by the Flash
content. Place your alternate content here and users
without the Flash plugin or with Javascript turned off
will see this. Content here allows you to leave out
<CODE>noscript</CODE> tags. Include a link to <A
href="swfobject.html?detectflash=false">bypass the
detection</A> if you wish. </DIV>
<SCRIPT type=text/javascript>
// <![CDATA[

var so = new SWFObject("collins.swf", "sotester", "400", "300", "9",
"#000000");
so.addVariable("flashVarText", "this is passed in via FlashVars for example
only"); // this line is optional, but this example uses the variable and
displays this text inside the flash movie
so.write("flashcontent");

// ]]>
</SCRIPT>
Re: Embedding multiple flash .swf dzedward
6/13/2007 8:51:36 PM
AddThis Social Bookmark Button