Saturday, 15 January 2011

Conflict between swfobject and swffit -


  • swfobject.js - among other things - suggests that the browser has a Flash plugin, and if it does not Click here to get a Flash plugin (like click here to get Flash plugin).
  • swffit.js allows you to set the minimum and maximum size for your own form, so they shrink for smaller screens and larger screens (and, miraculously, it's SWF X and Y In the center.)

    Spread download examples run swfobject.js first, then swffit.js. This causes the following reasons ...

    • In FF and Chrome with Flash plugin enabled, swffit works like this
    • with Flash plugin in FF and Chromium Disabled, there is no SDF, but there is no error message, just a blank screen - somehow a very useful function has been overridden to swfobject.

      Backing the order, i, e. Swffit.js first, then swfobject.js ...

      • With Flash plugin enabled or disabled, in FF and Chrome, I do not get any SDF but there is error message. In summary, I Swizz's resizability is required, but it is also a swfobject error message, but it seems that you can not be both with these two scripts. Any idea anyone?

        Easy, open SWFFit only if SWFObject was successful. Do it using SWFObject.

        You have not given any code example, so I will use one from the SWFFit site:

          swfobject.embedSWF ("example.swf", "My_flash", "550", "400", "8.0.0"); Swffit.fit ("my_flash"); The example SWFObject's callback method is reconfigured to use:  
          var flashvars = {}; Var Params = {}; Var Properties = {}; Var callbackhandler = function (e) {if (e.success) {swffit.fit ("my_flash"); }}; Swfobject.embedSWF ("example.swf", "my_flash", "550", "400", "8.0.0", false, flashwares, parameters, attributes, callback handler);    

No comments:

Post a Comment