Solmetra uploader et swfobject 2

Voici ma mise à jour vers swfobject 2 de l’uploader de Solmetra.

HTML :

<div id="uploader"></div>

Javascript :

var flashvars = {
  language: "fr",
  baseurl: "/",
  uploadurl: "upload.php",
  config: "swf/uploader.xml",
  instance: "uploader",
  allowed: "",
  disallowed: "php,php3,php4,php5",
  verifyupload: "true",
  configXml: "",
  maxsize: "2097152",
  hijackForm: "yes",
  externalErrorHandler: "SolmetraUploader.broadcastError",
  externalEventHandler: "SolmetraUploader.broadcastEvent"
};

var params = {
  menu: "false",
  allowFullScreen: "false",
  allowScriptAccess: "always",
  wmode: "transparent"
};

swfobject.embedSWF("swf/uploader.swf", "uploader", "500", "50", "8", "expressInstall.swf", flashvars, params, {});

Bon codage.