please help to my problem :( everytime i preview my flash in web it doesn't work. help pleas. .

Dani AI

Generated

Good catch by — wrong path is by far the most common cause when a SWF plays in Dreamweaver’s local preview but not on the live site. Dreamweaver often runs files from the local filesystem or a preview server, so a missing or incorrect URL, a file that wasn’t uploaded, or a filename case mismatch on a Linux host will let it work locally but fail on the web. ’s “problem solved” is exactly the outcome this checklist targets.

Quick checklist and two fast checks you can apply immediately:

  • Confirm the SWF is uploaded to the exact path your HTML references (watch for uppercase/lowercase differences).
  • Use the browser Network panel or this command to confirm the file is reachable and the server returns a proper Content-Type:
curl -I https://example.com/path/to/movie.swf
# expect HTTP 200 and: Content-Type: application/x-shockwave-flash
  • If the server doesn’t send the right MIME type, add one (Apache/.htaccess example):
# in .htaccess
AddType application/x-shockwave-flash .swf

Setting MIME types with AddType is standard server practice and the common SWF type is application/x-shockwave-flash. (httpd.apache.org)

If the SWF loads resources from another domain, the Flash player requires a cross-domain policy (/crossdomain.xml) on that domain (common gotcha for networked games or feeds). Put a valid crossdomain.xml at the site root and ensure the server serves it with an appropriate text/XML content type. (adobe.com)

Important context for readers finding this thread years later: Adobe ended Flash Player support on December 31, 2020 and modern browsers block the plugin; for long-term viability convert interactive content to HTML5/WebAssembly or use an emulator like Ruffle for legacy viewing. Running the deprecated Adobe plugin on public sites is not recommended. ()

Commonly this combination of path + server MIME + crossdomain checks explains why a SWF works in DW preview but not when live.

Recommended Answers

All 3 Replies

is the path in the html to the .swf correct?

Member Avatar for Member #114696

Could you post the link to web page or some code to which we can look and solve. Chances are slim for getting problem solved just by the information you have given.

thanks fresh problem solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.