Thank you! That was a very silly assumption of me to make in such a
version leap that it would remain the same, thanks for pointing it
out.
The problem I have now is that it doesn't seem to be passing the
parameters on but as far as I can tell this is the correct syntax. The
javascript is as follows:
var flashvars = {
flashVarName1: "",
flashVarName2: "",
flashVarName3: ""
};
var params = {
autoPlay: "no",
playlistPath: "mp3/playlist%203.xml"
};
var attributes = {
};
swfobject.embedSWF("mp3/playerMultipleList.swf", "june",
"300","240", "9.0.0", "expressInstall.swf", flashvars, params,
attributes);
Thanks Sherlock for the helpful reply =)
On Jul 9, 10:50 pm, Sam Sherlock <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---