1. is this working for page.tpl swf objects? I mean paste your $swf = new SWFObject('path/to/file.swf'); If so, It does not work.
2. if we use it inside a node type. I dont need it!

Comments

mbutcher’s picture

Category: bug » support

RE: 1:

You'd have to do:

$swf = new SWFObject('path/to/file.swf');
print $swf->render();

RE: 2:

You might want to look at swftools for CCK-style integration. SWF Embed is just a low-level library.

pp’s picture

Re1 is not working!

If the swf file is in your modul directory use this:

  $swf = new SWFObject(base_path() . drupal_get_path('module', 'yourmodulename') .'/file.swf');

The first slash in the file path is necessary!

If the swf file is in your webroot use this:

  $swf = new SWFObject(base_path() .'file.swf');

pp

mbutcher’s picture

Status: Active » Closed (fixed)