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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
shoaib2000Author Commented:
Hi Administrator

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

Many Thanks

Shoaib
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Components

From novice to tech pro — start learning today.