Flash components › Flash files › MP3 Players
Background Music Button
|
Posted on 2009 May 02 |
Please advise with example code how to integrate it into a website. I intend to integrate the music1 example, but there is no sound starting and the loud speaker item disappears right after the page has loaded. The code I am using is:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100" height="30">
<param name="movie" value="swf/preview.swf">
<param name="quality" value="autohigh">
<param name="scale" value="exactfit">
<embed src="swf/preview.swf" quality="autohigh" scale="exactfit" bgcolor="#99b4bf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="100" height="30">
</object>
Do I have to do somthing with the flashvars attribute to reference to the xml file? Thank you for help,
kind regards,
Christina
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100" height="30">
<param name="movie" value="swf/preview.swf">
<param name="quality" value="autohigh">
<param name="scale" value="exactfit">
<embed src="swf/preview.swf" quality="autohigh" scale="exactfit" bgcolor="#99b4bf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="100" height="30">
</object>
Do I have to do somthing with the flashvars attribute to reference to the xml file? Thank you for help,
kind regards,
Christina
|
Posted on 2009 May 03 |
You need check path to xml and mp3 files, try use firebug (FireFox browser) or same plugins for other browsers
XML file path you can set in fla, click to player and press F9 for Actions window open
XML file path you can set in fla, click to player and press F9 for Actions window open
























- Any number of background music files.
- Any number of music buttons in one project.
- Easy editable xml file.
- Looping audio support.
<music startup="Yes"> // Play Background sound as startup Yes/No
<item loop="Yes">music/1.mp3</item> // Path to mp3 file, set loop="Yes" for looping mp3 file
<item loop="No">music/2.mp3</item> // Path to mp3 file, set loop="No" for not looping mp3 file
<item loop="No">music/3.mp3</item>
</music>
If you no need background music, then just delete a in section in xml.
Sample:
<music>
</music>