Hi  Fetimo,
this syntax is for 1.x

swfObject is quite different

http://code.google.com/p/swfobject/wiki/documentation


this is swfobject 2.x syntax

<script type="text/javascript">

var flashvars = {};
flashvars.name1 = "hello";

flashvars.name2 = "world";
flashvars.name3 = "foobar";

var params = {};
params.menu = "false";

var attributes = {};
attributes.id = "myDynamicContent";

attributes.name = "myDynamicContent";

swfobject.embedSWF("myContent.swf", "myContent", "300", "120",
"9.0.0","expressInstall.swf", flashvars, params, attributes);

</script>


declare the flashvars, params & attribute objects once with var then
reuse them after each call to swfobject.embedSWF do this in the head
of the document within a single script codeblock


- S


2009/7/9 Fetimo <[email protected]>

>
> Hello, I've just started using SWFObject 2.2 as a cleaner way of
> embedding my Flash but I've run into some problems. I'm trying to
> display 3 different swf files on the same page but none of them are
> displayed. I've looked over the past couple of hours but the other
> solutions/ people with a similar problem do not seem to help. The code
> is as follows:
>
> <pre>
>
> <h3>June 2009</h3>
>
> <div id="flashPlayer3" align="center">
>
> </div>
> <script type="text/javascript">
>
>   var so = new SWFObject("/mp3/playerMultipleList3.swf", "June09",
> "295", "250", "7", "#FFFFFF");
>   so.addVariable("autoPlay","no")
>   so.addVariable("playlistPath","/mp3/playlist%203.xml")
>   so.write("flashPlayer3");
>
> </script>
> <h3>April 2009</h3>
> <script type="text/javascript">
>
>   var so = new SWFObject("/mp3/playerMultipleList2.swf", "April09",
> "295", "250", "7", "#FFFFFF");
>   so.addVariable("autoPlay","no")
>   so.addVariable("playlistPath","/mp3/playlist%202.xml")
>   so.write("flashPlayer2");
>
> </script>
> <div id="flashPlayer2" align="center">
>
> </div>
> <h3>June 2008</h3>
> <script type="text/javascript">
>
>   var so = new SWFObject("/mp3/playerMultipleList.swf", "June08",
> "295", "250", "7", "#FFFFFF");
>   so.addVariable("autoPlay","no")
>   so.addVariable("playlistPath","/mp3/playlist.xml")
>   so.write("flashPlayer");
>
> </script>
> <div id="flashPlayer" align="center">
>
> </div>
> </pre>
>
> If anyone has any clue as to why this is happening it will be hugely
> appreciated! I'm sure it's just something obvious.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to