-
1. Re: Bad "" parameter
JoeLowery Jul 21, 2009 6:49 PM (in response to rlinsurf1)You need to add in the URL to the MP3 file you want to play. For example, let's say you have a MP3 file in the same folder as the page with the player and its filename is "myMP3File.mp3". You would change your code to this:
<embed id="mp3Player" type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=myMP3File.mp3" width="400" height="27" allowscriptaccess="always" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
To get the full benefit out of Dreamweaver's Flash integration, you would insert a SWF and set the SRC attribute to the one you have in the code above (with the proper MP3 file URL, of course!).
Best - Joe
Joseph Lowery
Author, Dreamweaver CS4 Bible
-
2. Re: Bad "" parameter
rlinsurf1 Jul 21, 2009 7:37 PM (in response to JoeLowery)Hi, Joe--
Ok, I decided to try both.
First, the url is supposed to be handled by the javascript:
function doButtons(picimage, mp3file) { document['picture'].src=picimage; document.getElementById('mp3Holder').src = mp3file; }Then I do this:
<area shape="rect" coords="171,460,271,469" alt="" onclick = "doButtons('http://charlesnewmanpubl.com/images/cd1/-47-33-PM.jpg','http://charlesnewmanpubl.com/audio/cd1/Sweethearts_On_Parade_MW.m4a')">Then
<embed id="mp3Holder" type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=XXXXXX" width="400" height="27" allowscriptaccess="always" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
This is supposed to change the image for the album art, and bring up the controller for the mp3 (or in this case, .m4a). This is done for each track on the CD.
This doesn't work. But now I've also added this
</object>--> <object id="FlashID" classid="mp3Holder" width="50" height="50"> <param name="movie" value=""> <param name="quality" value="high"> <param name="wmode" value="opaque"> <param name="swfversion" value="6.0.65.0"> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --> <param name="expressinstall" value="../../Scripts/expressInstall.swf"> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="" width="50" height="50"> <!--<![endif]--> <param name="quality" value="high"> <param name="wmode" value="opaque"> <param name="swfversion" value="6.0.65.0"> <param name="expressinstall" value="../../Scripts/expressInstall.swf"> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --> <div> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p> </div> <!--[if !IE]>--> </object> <!--<![endif]--> </object>
I don't see this working either.
Obvioiusly, I've never worked with any media at all before..
Here's the page as it now is, with all my experiments.
http://charlesnewmanpubl.com/catalog.html
EDITED: Oh, I forgot, here's the picture thing
<img name=picture src="http://charlesnewmanpubl.com/images/covers/cd1top.jpg" alt="" border="0">

