Search code examples
flashmp3dreamweaver

How do I add a flash mp3 player to my webpage using dreamweaver


I want embed a little flash mp3 player in a webpage page using Dreamweaver cs3. This is the little player with the stop and pause buttons.

How do I do this?

Thanks

Ken


Solution

  • Assuming you have DreamWeaver CS3, and you have a Flash file locally called

    mp3player.swf within the same folder as your html file

    Click Insert -> Media -> Flash

    Make sure when you get your file you use the option relative to Document

    Insert a Title say Mp3 Player

    you will get the following placed in your html file.

    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','550','height','400','title','Mp3 Player','src','file:///Macintosh HD/Users/phwd/Desktop/mp3player','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','file:///Macintosh HD/Users/phwd/Desktop/mp3player' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="400" title="Mp3 Player">
        <param name="movie" value="file:///Macintosh HD/Users/phwd/Desktop/mp3player.swf" />
        <param name="quality" value="high" />
        <embed src="file:///Macintosh HD/Users/phwd/Desktop/mp3player.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="400"></embed>
      </object></noscript>
    

    NOTE that I have

    file:///Macintosh HD/Users/phwd/Desktop/mp3player

    and

    file:///Macintosh HD/Users/phwd/Desktop/mp3player.swf

    in your case it will be

    mp3player and mp3player.swf