Hello,
I'm fairly new to coding and am having difficulty with my flash mp3 player. I'm making a website that plays mp3 podcasts for learning english and i have the flash player called more than once on the podcasts page. The first time it is called everything works fine. If I want to call it more than once it won't work. It works fine in firefox.
here is a section of coding that i have. I use the same coding to call the mp3 player:
<h3>Dare 2: The Pay Off</h3>
<div id="banner" class="homePhotos">
<a href="dare2.php?owner=Dare2" title="The Dare"><img src="img/dare2.jpg" name="portrait"width="423" height="76" id="portrait"/></a></div>
<p><a href="
http://media.libsyn.com/media/china232/005_dare2.mp3"><img src="img/download.jpg" alt="download"width="124" height="18" border="0"/></a><span class="speakTwo">To download the file, right click the press "Save As"</span><br>
In this follow up podcast we find whats happens next in "the dare".</p>
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("flash/player.swf", "Dare2", "400", "50", "8", "#FFF");
so.addVariable("src", "player/player.swf?fileName=005_Dare2&file=http://media.libsyn.com/media/china232/005_dare2.mp3"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
so.write("flashcontent");
// ]]>
</script>
<p>Dialogue</p>
<p>Difficulty Level: Intermediate | Comments: 0 | Rating: 0</p>
<p>Topic: The pay off</p>
<hr>
<h3>Dare</h3>
<div id="banner" class="homePhotos">
<a href="dare.php?owner=Dare" title="The Dare"><img id="portrait" src="img/dare.jpg"width="423" height="76"/></a>
</div>
<p><a href="
http://media.libsyn.com/media/china232/004_dare.mp3"><img src="img/download.jpg" alt="download"width="124" height="18" border="0"/></a><span class="speakTwo">To download the file, right click the press "Save As"</span><br>
In this podcast we listen to a dare taking place in a bar between two friends, listen to find out the outcome...</p>
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("flash/player.swf", "Dare", "400", "50", "8", "#FFF");
so.addVariable("src", "player/player.swf?fileName=004_Dare&file=http://media.libsyn.com/media/china232/004_dare.mp3"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
so.write("flashcontent");
// ]]>
</script>
<p>Dialogue</p>
<p>Difficulty Level: Intermediate | Comments: 0 | Rating: 0</p>
<p>Topic: A dare between friends</p>
<hr>
so here is the coding. I find in IE the next times the player is called it just says that i have to upgrade my player which shouldn't be the case.
Any ideas would help so much!!
Thanks for the help.