I had a support request raised against flashnode - a user has existing flash content that consists of a main movie that then calls sub-movies. Flash interprets all paths relative to the page that initiates the flash, not the flash movie. For a Drupal site everything is relative to index.php so all the supporting flash movies end up in the root which isn't ideal.

This might be an issue/blocker for people migrating from a non-Drupal site. The most likely place for their flash content to end up will be under /files, if they use the upload system.

You can pass the parameter base to provide a base reference to a movie, and I have this working as a fix on the existing flashnode release that uses ufo.

I tried the same for flashnode-dev with SWFTools and notice that the base parameter isn't processed in the direct embedding method (I've not yet explored swfobject).

I'd suggest that this needs to be built in to SWFTools - I have modified swftools_swftools_embed locally and have it working there. I'm happy to try and develop this a little further and contribute a patch back shortly if you think it's worthwhile.

Comments

Stuart Greenfield’s picture

StatusFileSize
new2.69 KB

OK - first stab at a patch for swftools to support base parameter in direct embedding.

This patch also fixes the missing space issue after the object tag, and the swftools_swftools_flashvar returning true instead of an array!

Stuart Greenfield’s picture

StatusFileSize
new1.38 KB

Similar patch for swfobject to support base parameter. I'm not really familiar with how this js stuff works so you might want to check this :-) In particular, is code going to be happy if params['base'] isn't set, which is likely as not often the case.

I have tested locally and it seems happy :-)

This patch also re-introduces the swfobject_id to the div id to solve the cache issue.

sime’s picture

Status: Active » Fixed

base is now applied across the board. All file names are resolved to the full url as well.

Anonymous’s picture

Status: Fixed » Closed (fixed)