Flash attachBehaviors

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

Adding Flash using attachBehaviors and SWFObject

$(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

Read more
Subscribe with RSS Syndicate content