• Hi Avan
    Here is the code to embed the application for an MP3 player that will enable me to control the number of times that a student can listen to an audio recording. I cannot seem to get the code to work. I am using brackets to modify the code. Could you please assist?

    <div align="center">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="100" id="myFlashContent">
    <param name="movie" value="swf/mp3_test.swf" />
    <param name="flashvars" value="mp3url=mp3/little_prince_01.mp3&amp;timesToPlay=2&amp;showPlay=true&amp;waitToPlay=true&amp;showID3=true&amp;addHttp=false" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="swf/mp3_test.swf" width="600" height="100">
    <param name="flashvars" value="mp3url=mp3/little_prince_01.mp3&amp;timesToPlay=2&amp;showPlay=true&amp;waitToPlay=true&amp;showID3=true&amp;addHttp=false" />
    <!--<![endif]-->
    <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" />
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    
    
    

    The developer goes on to say
    You can copy and paste this code into any HTML web page using a web or text editor. There are five lines of this code that you'll need to modify to make it work on your web site with the desired MP3 audio files. I've highlighted the parts that you need to edit in bold:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="**600**" height="**100**" id="myFlashContent">
    
    <param name="movie" value="**swf/mp3_test.swf**" />
    
    <param name="flashvars" value="mp3url=**mp3/little_prince_01.mp3**&amp;timesToPlay=2&amp;showPlay=true&amp;waitToPlay=true&amp;showID3=true&amp;addHttp=false" />
    
    <object type="application/x-shockwave-flash" data="**swf/mp3_test.swf**" width="600" height="100">
    
    <param name="flashvars" value="mp3url=**mp3/little_prince_01.mp3**&amp;timesToPlay=2&amp;showPlay=true&amp;waitToPlay=true&amp;showID3=true&amp;addHttp=false" />
    


  • Per our session via zoom here is working version of the mp3 player. Wanted to post in case there is somebody else looking for the same thing.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    	<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    		<title>MP3 Player For Testing Purposes (Only Plays Twice)</title>
    	</head>
    	<body>
    	    <h1>MP3 Player For Testing Purposes (Only Plays Twice)</h1>
    	    <script type="text/javascript" src="https://avantutor.com/student_files/swfobject.js"></script>
          <script src="main.js" charset="utf-8"></script>
    		<div id="myAlternativeContent">
    			<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" />
    			</a>
    		</div>
    	</body>
    </html>
    

    main.js javascript file in the same directory as the html.

    var flashvars = {};
    flashvars.mp3url = "https://avantutor.com/student_files/test.mp3";
    flashvars.timesToPlay = "2";
    flashvars.showPlay = true;
    flashvars.waitToPlay = true;
    var params = {};
    var attributes = {};
    attributes.id = "myflashcontent";
    swfobject.embedSWF("https://avantutor.com/student_files/mp3.swf", "myAlternativeContent", "100%", "100", "9.0.115", "https://avantutor.com/student_files/expressInstall.swf", flashvars, params, attributes);