This question is about how to implement a flash video in a Drupal site. Currently I'm calling the video directly on my page-front.tpl.php file by doing this:

<object>
<param name="movie" value="<?php print base_path() . path_to_theme() ?>/fla/psm_index.swf" /> <embed height="385" width="958" src="<?php print base_path() . path_to_theme() ?>/fla/psm_index.swf"></embed> 
</object>

I've got an 'action script' in the video which takes some swfs and randomly generates them w/ the main swf. It is as follows:

filename = ["bio_1.swf", "bio_2.swf", "bio_3.swf", "bio_4.swf"];
//path = "./";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(filename[k], loadInto);

Now, my long winded question. This video is giving me fits because it works when I 'browse' to it locally. However with the above code in my page-front.tpl.php the video will render, but not with the extra bio_1.swf etc. movies on top of it. I have no idea why. Any flash experts out there who have done something like this before and can help?

Thanks,
Phil

Comments

Check your file paths

First thing I'd check would be the paths to the SWFs. Using Firebug or something similar, you should be able to see where the browser is looking for those files & you may have to adjust the file paths accordingly. Hopefully that helps...

nobody click here