I found an issue using the current stable version of swfobject (2.1).

current js output is generated like this:

$swfaddress_js = <<<SWFOBJECT
swfobject.embedSWF('%s%s', '%s', '%s', '%s', '%s', false, {}, {bgcolor: '#%s'}, {id: '%s'});  
SWFOBJECT;

With the current version of swf object, I get the flash in an

tag instead of an . And with object tag, it seems that ExternalInterface.objectID looks for a name attribute instead of an id. So here I patched the above code to add a name attribute.
$swfaddress_js = <<<SWFOBJECT
  var swf_address = '%s%s';
  var flash_tag_id = '%s';
  var flash_width = '%s';
  var flash_height = '%s';
  var flash_version = '%s';
  var flash_background = '#%s';
  var flash_replace_id = '%s';
swfobject.embedSWF(swf_address, flash_tag_id, flash_width, flash_height, flash_version, false, {}, {bgcolor: flash_background, allowscriptaccess: 'always'}, {id: flash_replace_id, name: flash_replace_id});  
SWFOBJECT;
I'm sure there is a better way to code that but it works.

Comments

Steven Merrill’s picture

Committed to the 6.x-dev version. - http://drupal.org/cvs?commit=177124

Steven Merrill’s picture

Committed to the 5.x-dev version: - http://drupal.org/cvs?commit=177126

Steven Merrill’s picture

Status: Active » Fixed

Please check this out in the latest dev releases.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.