Active
Project:
SWFObject API
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2007 at 08:29 UTC
Updated:
10 Apr 2007 at 09:15 UTC
Have you looked at using jquery flash plugin instead, http://jquery.lukelutman.com/plugins/flash? It should have the same functionality but with less code and using jquery.
Comments
Comment #1
mfer commentedThere is a problem using this method. Take a look at the known issues (http://jquery.lukelutman.com/plugins/flash/#known-issues). In IE there will be the click to activate in drupals case because, out of the box, drupal is using the compressed version of jquery.
So, to follow this method would require swapping out the core jquery library with either the non-compressed one (over a 35K increase in size) or using a different kind of compression. I tried compressing jquery down with other methods and there is still a 11K increase in size. Add to that lukes script and you are at a 14K overall increase. The SWFObject script is 6.5K compressed (working compression).
Using SWFObject is smaller and doesn't require any hacks on core.
Also, drupal is all about options. There is another module implementing the script at http://jquery.lukelutman.com/plugins/flash. It's the SWF Tools module.
Comment #2
anders.fajerson commentedIt didin't cross my mind that many drupal pages doesn't use jquery by default. So using swfObject will result in less code for those pages.
Comment #3
simeunfortunately, because you can't use compressed flash.jquery.js with drupal there is practically no benefit over swfobject