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?

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

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.