chieffan
unread,Nov 17, 2009, 4:27:52 PM11/17/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SWFObject
I have searched on here and it seems what I am doing is right, but
it's not working.
In the header.php of my Wordpress site, in the <head> section, I have
something like this after my call of the swfobject:
<script type="text/javascript">
var flashvars = {};
flashvars.level = "<?php ;echo $level;?>";
flashvars.score = "<?php echo $score;?>";
swfobject.embedSWF("mydomain/externalflash.swf", "externalflash",
"760", "360", "9.0.0","expressInstall.swf",flashvars);
</script>
<script type="text/javascript">
var flashvars2 = {};
flashvars.level2 = "<?php ;echo $level2;?>";
flashvars.score2 = "<?php echo $score1;?>";
swfobject.embedSWF("mydomain/externalflash2.swf", "externalflash2",
"760", "360", "9.0.0","expressInstall.swf",flashvars2);
</script>
My problem is the second swf shows but the flash vars dont pass. I
have put the number 2 next to the flashvars and tried without. It
only displays the movie without the data.
I am using swfobject 2 on this. Anyone have any suggestions?
In Wordpress, I then call it via <div id="externalflash2">alternate
content</div>
Any ideas?
Thanks.