Use jQuery Flash plugin instead?
fajerstarter - January 26, 2007 - 08:29
| Project: | SWFObject API |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#1
There 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.
#2
It 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.
#3
unfortunately, because you can't use compressed flash.jquery.js with drupal there is practically no benefit over swfobject