2 Replies Latest reply: Jul 21, 2009 7:37 PM by rlinsurf1 RSS

    Bad "" parameter

    rlinsurf1 Community Member

      I'm trying to use Google's MP3 reader in a button. Here's the original code:

       

       

      <embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=MP3_FILE_URL" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
       
      
      

      Now here's the way it was re-written for my use.

       

      <embed id="mp3Player" type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl="" width="400" height="27" allowscriptaccess="always" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
       
      
      
      

       

       

      I find that all the html after this turns brown, meaning I have an open quote, etc., here. This is where I found it:

       

      src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=""
       
      
      
      

       

       

      Can someone tell me how to fix this? Thanks.

        • 1. Re: Bad "" parameter
          JoeLowery Community Member

          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 Community Member

            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">