So I am putting 2 swf files on the same page but only one is working.

Below the Colored text should be another flash file. I can see it when I show source. Thanks in advance!

Dani AI

Generated

resolved this by rebuilding the page. Recreating the HTML often clears the real culprits: malformed or unclosed tags, duplicate container IDs, or a script that overwrote the second embed. Below is a short, practical checklist and a minimal embedding example to help diagnose and prevent the problem in other pages.

Common checks and fixes:

  • Validate the page markup (unclosed tags can break the DOM).
  • Make sure each SWF uses a distinct container id and that any JavaScript embed routine targets different elements.
  • Inspect the DOM and console for JS errors or for code that writes into the same container twice.
  • Verify network responses (each .swf returns 200 and the paths are correct; watch for case-sensitivity on servers).
  • If using wmode (transparent/opaque), set explicit CSS position and z-index; wmode changes stacking and can make content invisible.
  • Test each SWF alone to confirm the files themselves work.

Minimal SWFObject-style example (unique containers):

<div id="swf1"></div>
<div id="swf2"></div>

<script>
/* assumes swfobject is loaded */
swfobject.embedSWF("first.swf", "swf1", "600", "300", "9.0.0");
swfobject.embedSWF("second.swf", "swf2", "600", "300", "9.0.0");
</script>

Note: Flash has been deprecated and disabled in modern browsers since 2020. For long-term projects, plan to migrate interactive content to HTML5/Canvas/WebGL.


put the wrong link the first time

I figured it out. I recreated the page and it is working now.

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.