i hope someone can help me, i've built a small mp3 player in flash and i want to place it on my web page but when i do it will not work. i've tested it with flash and it works perfectly untill i put on my page. i'm stumped, someone help!

thanx
Bad Rabbit

Dani AI

Generated

Nice catch by and good to see got it working. For anyone finding this thread later, a few practical points and checks that go beyond the quick fix here will prevent the same headache.

Relative paths and testing environment

  • When a SWF loads an external file, the URL resolution is driven by the SWF (its own location), so a path that works in the IDE can fail once the SWF is moved or embedded.
  • Avoid debugging over file://. Run the page through a local HTTP testing server (Dreamweaver testing server, XAMPP/MAMP, etc.) because Flash enforces different sandbox rules for local files. If you must test locally, add the folder to Flash Player trusted locations.

Common server and network issues to check

  • Use the browser DevTools Network tab to confirm the MP3 request is sent and returns HTTP 200 with Content-Type audio/mpeg.
  • If the MP3 is hosted on another domain, check cross-domain/CORS policies or server headers; Flash can block cross-origin loads without proper policy.
  • If you see security errors, try the Flash debug player or check the Flash Player global security settings for trust issues.

Long-term: move off Flash

  • Flash Player reached end-of-life and modern browsers block SWFs, so consider replacing the Flash player with HTML5 audio or a JS audio library. The HTML5 <audio> element is the core API (MDN audio element), and libraries like Howler.js simplify cross-browser playback (Howler.js).
  • Short checklist: verify URL resolution, test over HTTP, confirm server MIME and status, check cross-domain rules, and consider migrating to HTML5 for future compatibility.

Recommended Answers

All 3 Replies

Member Avatar for Member #334542

If you loading external mp3 file from the local system then you have to place the file in the location where you save your dreamweaver html file. Or else the tag you used for embedding would be wrong. Use swfobject to embed your swf file.

If you loading external mp3 file from the local system then you have to place the file in the location where you save your dreamweaver html file. Or else the tag you used for embedding would be wrong. Use swfobject to embed your swf file.

that did the trick! thanxs so much for answering so quickly.

thanks again,

Bad Rabbit

Member Avatar for Member #334542

Please mark the thread as 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.