• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 888
  • Last Modified:

Need to embed swf that calls other swf files

Hi- I received this swf file from a designer. He says that the Header.swf needs the other files to work. So if I click on Header.swf and watch it in flash, it's great. But I need help with the code to embed it on a web page. I am using this but it's not working:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0";
 width="950" height="390">
<param name="movie" value="/siteimages/raf/Header.swf">
<param name="loop" value="true">
<param name="play" value="true">
<param name="quality" value="autohigh">
<embed src="/siteimages/raf/Header.swf" width="950" height="390" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; loop="true" play="false" quality="autohigh"></embed></object>

Thanks in advance!
0
mel200
Asked:
mel200
  • 5
  • 3
1 Solution
 
Scott Fell, EE MVEDeveloperCommented:
if you surf to www.yoursite.com/siteimages/raf/Header.swf do you see the header.swf?
0
 
mel200Author Commented:
0
 
Scott Fell, EE MVEDeveloperCommented:
There are some errors in the embed code.  See if this works

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="950" HEIGHT="390" id="Yourfilename" ALIGN="">
 <param name="loop" value="true">
  <param name="play" value="true">
  <param name="quality" value="autohigh">
  <EMBED src="/siteimages/raf/Header.swff"  WIDTH="950" HEIGHT="390"  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

Otherwise, if you look at the code you have, the end if the first line is #version=4,0,0,0&quot; and the &quote; should be a " so #version=4,0,0,0".  I think there are some other errors as well.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
mel200Author Commented:
Ok... this is meant to go on the header, but I got nothing there, so I tried it in the body of the home page. I do see it there, but not as a moving swf.

https://secure.funeralhomewebhosting.com/RAF/index.php
0
 
mel200Author Commented:
This did work on another site, but it had an swf file that didn't need the other files. With this one, if you just open the Header.swf outside of the folder with the other files, you get a blank file. I can't help but think that has something to do with it. (?)
0
 
Scott Fell, EE MVEDeveloperCommented:
I just took the code from someplace else because your code had errors.  You will need to adjust it for your site.  But it looks like you need to change

  <EMBED src="/siteimages/raf/Header.swff"  WIDTH="950" HEIGHT="390"  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>

to

  <EMBED src="/siteimages/raf/Header.swff"  WIDTH="950" HEIGHT="390"  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" loop="true" play="false" quality="autohigh">></EMBED>

I found the other error in  your original code.  This should work too

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0"
 width="950" height="390">
<param name="movie" value="/siteimages/raf/Header.swf">
<param name="loop" value="true">
<param name="play" value="true">
<param name="quality" value="autohigh">
<embed src="/siteimages/raf/Header.swf" width="950" height="390" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" loop="true" play="false" quality="autohigh"></embed></object>
0
 
mel200Author Commented:
Hi- Thanks for your time. If I use the code above:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0"
 width="950" height="390">
<param name="movie" value="/siteimages/raf/Header.swf">
<param name="loop" value="true">
<param name="play" value="true">
<param name="quality" value="autohigh">
<embed src="/siteimages/raf/Header.swf" width="950" height="390" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" loop="true" play="false" quality="autohigh"></embed></object>

I still get the same result, static image.
https://secure.funeralhomewebhosting.com/RAF/index.php
0
 
mel200Author Commented:
I didn't have all the files required for this, so I was asking the wrong question. For the question I asked here, I got the correct answer, so thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now