html5 - AS3 .swf file not playing or previewing when uploaded to server -


help needed.

i have .swf file of flash game created using as3. have added html file using object tag. when test file locally in browser window on mac plays .swf file. file contained in same folder html file. when upload server , review on ff/chrome/safari display white boxes.

previously tried using jquery swfobject, same issue.

i've stripped down code bear minimun , used different examples found online , having no luck.

code sample:

<!doctype html> <html> <body>  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash /swflash.cab#version=8,0,0,0"> <param name="src" value="bodyshopgame.swf"> <embed src="bodyshopgame.swf"></embed> </object>  <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="339" height="513"> <param name="movie" value="bodyshopgame.swf"> <embed src="bodyshopgame.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="339" height="513"></embed>  </object>   </body> </html> 

site link: http://www.stellacurley.com/flashtest.html

i've tested on pc , issue same. know have overlooked obvious have spent long time trying figure out answer. i'm new this, appreciated thanks.

a white box commonly indicates movie failed load. use browser's developer console see if request swf returning 404 (file not found) error.

checklist:

  1. ensure you're using correct path swf
  2. ensure swf has been uploaded
  3. ensure swf named (case-sensitive on servers)
  4. ensure server configured host swf files (mime type application/x-shockwave-flash should enabled)

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -