We’ve had several requests for an easier way to add background music to the Flash galleries without having to know how to author Flash. This could have been done in such a way that an “add music” option appeared in the application UI’s, but that would take more time than I have at the moment (as I’d need to do three variations on that for the different app’s gallerymaker implementations). So I’ve put together a quick and dirty solution (albeit requires you to edit the XML -but that is easy!).
Basically it is a flash movie (bgmusic.swf) that you can insert into your exported gallery as a “background image” (though there is nothing “visible” in this movie) and which plays any mp3 file that you want.
Here’s how to do that in four easy steps:
1. right click on this link and choose “save link as” to save the bgmusic.swf to your hard drive in the “resources” folder of your Lightroom Flash gallery.
2. open the “style.xml” file found inside the “styles” folder there in that same resources folder with your favorite text editor
3. find the line of text that looks like this: <backgroundbgimg alpha=”100.00″ src=”"/> - about 2/3 of the way down (line 73 in the Lightroom version) and add the path to the bgmusic.swf into that tag. It should then look like this: <backgroundbgimg alpha=”0.00″ src=”resources\bgmusic.swf”/>
(Elements 5 users should be aware that the relative paths in their galleries are “hard coded” (via the baseref flashvar) to look in the “resources” folder, so it will not work if you include that folder name in the path. So your tweak to the style file would look like this: <backgroundBgImg alpha=”0″ src=”bgmusic.swf” /> )
4. take your background music clip (must be in mp3 format) and copy it into the resources folder as well, and rename it “bgmusic.mp3″
that’s it! Here’s a sample gallery that uses this approach.
Sound that automatically plays in websites is appropriate in some circumstances, and terribly annoying in others. This can be particularly true when you don’t offer volume controls or a mute button (which this movie does not have). So please be thoughtful about where and when to use this. When I have more time, I’ll make one with at least a mute button and post it.