Flash Video not displaying in Firefox but works Fine in IE

Hi

I've got a flash movie on a page that works fine in IE but in Firfox i just get white background, when i right click on the background i get the Flash message saying "Movie not loaded" and About Adobe Flash player 10.

Im using this code to display the flash bit,

<script language="javascript">
                        writeFlash("callig", 720, 540)
</script>

i didnt write the code im using somone else's code so not sure what's wrong. It works perfactly in IE.

Any help would be appreciated greatly.

Thanks

Sho
shoaib2000Asked:
Who is Participating?
 
shoaib2000Connect With a Mentor Author Commented:
Hi Guys

Ive sorted it out myself, i've replaced the above code with this code and its working fine now in Firefox, it was somthing to do with JavaScript function that i was using to display the Flash movie, removed the Javascript function and embeded the Flash movie directly and it fixed it.

Thanks for looking into it.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="720" height="540">
          <param name="movie" value="Images/portfolio/callig/callig.swf">
          <param name="quality" value="high">
          <embed src="Images/portfolio/callig/callig.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="720" height="540"></embed></object>
0
 
wannabetechieCommented:
Do you have the flash movie add on in your firefox.You can check it in the Tools->Options->Applications?
If not download the latest flash player add-on.
0
 
shoaib2000Author Commented:
yep i've got all the plugins installed, you can try the link yourself in firefox http://sumiyastudios.com/handpainted.html  it works fine in IE but not in Firefox.

Thanks
shoaib
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
wannabetechieCommented:
Try closing all your param and embed tags under the object tag
like this
<param value="images/portfolio/hand/callig.swf" name="movie" />

0
 
wannabetechieCommented:
Also when you try to reload the html after doing the changes clear the browser cache in firefox
0
 
shoaib2000Author Commented:
Hi Wnnabetechie

I've just looked at the code and its already closed like you asked, here is the code (am i missing something here)

<script language="javascript">
  function writeFlash(title, w, h) {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.0.0" width="' + w + '" height="' + h + '" ID="sf" VIEWASTEXT>')
    document.write('  <param name="movie" value="images/portfolio/callig/' + title + '.swf" />')
    document.write('  <param name="quality" value="high" />')
    document.write('  <param name="wmode" value="window" />')
    document.write('  <param name="allowScriptAccess" value="always" />')
    document.write('  <param name="allowFullScreen" value="true" />')
    document.write('  <embed src="' + title + '.swf" quality="high" name="sf" allowScriptAccess="always" allowFullScreen="true" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '"></embed>')
    document.write('</object>')
  }
</script>
0
 
shoaib2000Author Commented:
Hi Administrator

Could you please close this question as i've manage to find the solution myself.

Many Thanks

Shoaib
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.