This notation does not work. What's the correct way to write it. (I am x-ing out my analytics id). It does work properly without the gapro-1 plugin.
var flashvars = {};
flashvars.image = "../video/joy_websites.jpg";
flashvars.bufferlength = "0";
flashvars.file = "website_final.flv";
flashvars.plugins = "gapro-1";
flashvars.gapro.accountid = "XX-XXXXXX-X";
flashvars.gapro.trackstarts = "true";
flashvars.gapro.trackpercentage = "true";
flashvars.gapro.tracktime = "true";
var params = {};
params.play = "false";
params.loop = "false";
params.quality = "best";
params.scale = "exactfit";
params.wmode = "transparent";
params.bgcolor = "#ffffff";
params.swliveconnect = "false";
params.allowfullscreen = "false";
params.allowscriptaccess = "always";
var attributes = {};
attributes.id = "mpl";
swfobject.embedSWF("../video/player.swf", "player", "300", "240", "9.0.0", "../flash/expressInstall.swf", flashvars, params, attributes);
Where have I gone wrong? I have searched and found no solution.
When using swfobject 2, you don't need to say flashvars.value, you should do it like this:
var flashvars = {
plugins: "gapro-1",
'gapro.accountid': "XX-XXXXXX-X",
};
Etc
Note, when using a flashvar that has a period in it (the ga pro ones), you need to encapsulate it in single quotes.