I need help. I tried embedding a SWF banner I made for my website and when I try to preview it in either IE, or Firefox it doesnt even show the file. I have even tried to export the file to the remote server but still nothing. Suggestions?

Dani AI

Generated

Good fix by — the SWF must be served from a web-accessible path rather than a local file:// URL, which is why moving the file into the site folder resolved it for . Additional checks and longer-term context for readers landing here years later:

  • Quick troubleshooting checklist: open DevTools Network to confirm the SWF returns 200 and is not 404/403; confirm the server sends a Flash MIME type; test pages using a local HTTP server (not file://) to avoid opaque-origin/CORS issues; check z-index/wmode if the movie is present but invisible; ensure any external assets loaded by the SWF are reachable (crossdomain.xml if cross-domain). For Apache hosts you can add the SWF MIME mapping in an .htaccess or server config:

    AddType application/x-shockwave-flash .swf

    See Apache mod_mime docs for AddType usage. (httpd.apache.org) (developer.mozilla.org)

  • Modern context and migration: Adobe stopped supporting Flash on Dec 31, 2020 and major browsers removed or blocked Flash after that. If this thread is being read today, many browsers will refuse to run SWF content by default. For archival or site-preservation needs consider two paths: run an in-browser emulator (Ruffle) or convert the work to HTML5/Canvas. (adobe.com)

  • Practical next steps: if the goal is short-term playback, try Ruffle (easy CDN install or browser extension) to run many SWFs in modern browsers. If the banner/animation needs a long-term, supported solution, re-export or rebuild it as HTML5 Canvas (Adobe Animate can publish to Canvas/CreateJS), or record it as a video sprite. Links: Ruffle downloads/docs and Adobe Animate publish docs. (ruffle.rs)

This complements ’s relative-path advice with server, browser, and migration steps so the same fix still works now and stays usable in modern environments.

Recommended Answers

All 7 Replies

I am assuming that you have the adobe flash plug-in installed for those browsers...

Can you post the revelant code so that we can review it?

Yes I do have the adobe flash plug in installed I dont know what I am doing wrong. I am using dreamweaver. Shouldnt it be coding it correctly for me?

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="730" height="90">
      <param name="movie" value="file:///C|/Users/Sintel/Desktop/HeaderHOA.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="opaque" />
      <param name="swfversion" value="11.0.0.0" />
      <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
      <param name="expressinstall" value="Scripts/expressInstall.swf" />
      <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="file:///C|/Users/Sintel/Desktop/HeaderHOA.swf" width="730" height="90">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="11.0.0.0" />
        <param name="expressinstall" value="Scripts/expressInstall.swf" />
        <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
        <div>
          <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

Do I need any styling or css code in the head? That is the only thing I can think of.

I wouldnt depend on dreamweaver to code it correctly. In any case, this reference isnt going to work when you upload it:

value="file:///C|/Users/Sintel/Desktop/HeaderHOA.swf"

You should create a folder in your web directory, say videos, then place the file in that location. Then use a relative URL to reference that file.

<param name="movie" value="videos/HeaderHOA.swf" />

This relative URL may not be correct, as I do not know the structure of your directory

wow that did the trick... -_- *smacks face three times in a row*

Thanks! Should I do this too if I am building a gallery page in the content area of another page?

lol, i've been smacked around quite a bit too.

When it comes to building links on your pages, I would suggest that you use relative paths. The reason is that changing your domain name will not impact the links. Using absolute links whether they be local on your development computer, or on the web will cause you headaches once you need to make a change to your domain name.

So, yes, you should consider this for the gallery page.

Here is a short review on my site that explains the differences between absolute and relative paths.

Absolute and Relative Paths

Thanks

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.