Adding Flash using attachBehaviors and SWFObject

Events happening in the community are now at Drupal community events on www.drupal.org.
akayani's picture

$(document).ready(function(){
var flashtags = $('

[swf file="sites/all/modules/flashtags/flash/flashtags.swf"]

').appendTo('#privatemsg-new').get(0);
if (Drupal.jsEnabled) {
Drupal.attachBehaviors(flashtags);
});

This is my code. I'm using SWFObject.

[swf file="sites/all/modules/flashtags/flash/flashtags.swf"]

The above is being printed on the page but it is ignored by SWFObject. It needs some sort of forced refresh or maybe the use of an alternative method to add Flash objects. Or otherwise using a totally different approach like hook_alter

Yani

(Sorry this belongs in a support forum, should be deleted and moved really.)

Javascript

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: