Have a santiy check of your code on the 2nd flashvars object:

var flashvars2 = {};
flashvars.level2 = "<?php ;echo $level2;?>";
flashvars.score2 = "<?php echo $score1;?>";

You are creating "flashvars2", then adding two variables to a different (the
original) "flashvars" object :)


BTW, you don't need separate <script> tags between your declarations.


Aran

On Wed, Nov 18, 2009 at 9:14 AM, Sam Sherlock <[email protected]>wrote:

> in the following I am declaring a single var for flashvars and reseting it
> between calls to embedswf
>
> <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);
>
> flashvars = {};
>
> flashvars.level2 = "<?php ;echo $level2;?>";
> flashvars.score2 = "<?php echo $score1;?>";
> swfobject.embedSWF("mydomain/externalflash2.swf", "externalflash2",
> "760", "360", "9.0.0","expressInstall.swf",flashvars);
>
> </script>
> - S
>
>
>
>  --
> 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]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=.
>

--

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=.


Reply via email to