akihiko122 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Append specified flash vars when express install is created. #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add the ability to append flashvars to the express installer.  Currently,
the showExpressInstall method passes MMredirectURL, MMplayerType and
MMdoctitle as flash vars, but does not allow the user to pass custom flash
vars.  If the method would pass custom flash vars, then the user could
modify the existing expressInstall.swf to accept different parameters and
act on it.

For example, I've modified the expressInstall.swf to accept a flash var to
call a JavaScript method when/if the user declines the installation of
Flash (clicks the "No" button in the express install).

I've fixed the issue locally by adding this code starting at line 286
(showExpressInstall function):

if (typeof regObj.flashVars != 'undefined') {
  for (var k in regObj.flashVars) {
    if (regObj.flashVars[k] != Object.prototype[k]) { // Filter out
prototype additions from other potential libraries
      if (typeof fv != UNDEF) {
        fv += "&" + k + "=" + regObj.flashVars[k];
      }
      else {
        fv = k + "=" + regObj.flashVars[k];
      }
    }
  }
}

Original issue reported on code.google.com by jgorn...@gmail.com on 2 Sep 2008 at 8:36

GoogleCodeExporter commented 9 years ago
Is already on the enhancement list :-)

See issues: 136 (and linked 127)

Original comment by bobbyvandersluis on 2 Sep 2008 at 10:00