DxtrLws
asked on
SWF file doesn't play on web page
I have a SWF file that's based off a XML file. It's basically a banner slide show. I uploaded all the SWF, Content.xml, and images to the root location. When I just click on the main SWF, the movie plays as it should. It's when I embed the file into the web page that I get stuck. It basically just shows the background color scene in the FLA file. It's like it doesn't know where the files are located and if that's the case, I'm not sure where edit it to make the change.
Sorry if I got some of the terminology wrong as I'm pretty new at this.
Sorry if I got some of the terminology wrong as I'm pretty new at this.
ASKER
It's an internal site, so I can't really post up a link for you to see. But here's a copy of th ecode that's on the main page as well as a screen shot. I can also attach the flash and xml files if needed.
<%@LANGUAGE="VBSCRIPT"%>
<!--#include virtual="/Connections/wwwReader.asp" -->
<%
Dim release
Dim release_cmd
Dim release_numRows
Set release_cmd = Server.CreateObject ("ADODB.Command")
release_cmd.ActiveConnection = MM_wwwReader_STRING
release_cmd.CommandText = "SELECT ItemID, HeadLine FROM dbo.PressReleases ORDER BY ReleaseDateTime DESC"
release_cmd.Prepared = true
Set release = release_cmd.Execute
release_numRows = 0
%>
<%
Dim FrontPageImage
Dim FrontPageImage_cmd
Dim FrontPageImage_numRows
Set FrontPageImage_cmd = Server.CreateObject ("ADODB.Command")
FrontPageImage_cmd.ActiveConnection = MM_wwwReader_STRING
FrontPageImage_cmd.CommandText = "SELECT * FROM dbo.FrontPageLinks"
FrontPageImage_cmd.Prepared = true
Set FrontPageImage = FrontPageImage_cmd.Execute
FrontPageImage_numRows = 0
dim a(100), b(100), c(100)
while (not FrontPageImage.eof)
num = num + 1
a(num) = FrontPageImage.Fields.Item("image").Value
b(num) = FrontPageImage.Fields.Item("link").Value
c(num) = FrontPageImage.Fields.Item("name").Value
FrontPageImage.MoveNext()
wend
%>
<% Dim RanID
Randomize
RanID = Int((num * Rnd) + 1)
RanImage = a(RanID)
RanLink = b(RanID)
RanName = c(RanID)
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Orbital Sciences Corporation</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<LINK href="/includes/styles.css" type=text/css rel=stylesheet>
</head>
<body>
<script type="text/javascript" src="/nav/menu_scr.js">
</script>
<!--#include virtual="/includes/table_top.inc" -->
<table width="934" border="0" align="center" cellpadding="0" cellspacing="0" id="main">
<!--#include virtual="/includes/nav.inc" -->
<tr>
<td colspan="4" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="934" height="254">
<param name="movie" value="FlashBanner/deploy/main.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<embed src="FlashBanner/deploy/main.swf" quality="high" wmode="opaque" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="934" height="254"></embed>
</object></td>
</tr>
<tr>
<td rowspan="2"><a href="#"><img src="/images/Graphics/Sub_feature/sub47_feature.jpg" alt="" width="207" height="190" border="0" usemap="#Map" /></a></td>
<td rowspan="2"><a href="http://www.orbital.com/NewsInfo/MissionUpdates/MinotaurIV_STPS26/"><img src="images/Graphics/Sub_feature/Feature_Sub1_MinIV STP-S26settolaunch.jpg" alt="Read the Latest Edition of the Orbital Quartely" width="208" height="190" border="0" /></a></td>
<td>
<img src="/images/news/news_header.gif" width="52" height="25" alt="" /></td>
<td>
<img src="/includes/images/spacer.gif" width="467" height="1" alt="" /></td>
</tr>
<tr>
<td height="165" colspan="2" background="/images/news/news_body.gif"><table width="100%" border="0" cellpadding="4" cellspacing="0">
<% dim returns
returns = 0
while not release.eof and returns < 3 %>
<tr>
<td width="20" height="30" align="right" valign="top" class="TDfooter"><img src="images/graphics/Misc/blue_arrow.gif" width="7" height="11" /></td>
<td valign="top" ><a href="/NewsInfo/release.asp?prid=<%=(release.Fields.Item("ItemID").Value)%>" class="TDnav"><%=(release.Fields.Item("HeadLine").Value)%></a></td>
</tr>
<% returns = returns + 1
release.MoveNext()
wend
%>
<tr>
<td align="right" valign="top" ><span class="TDfooter"><img src="images/graphics/Misc/blue_arrow.gif" width="7" height="11" /></span></td>
<td class="sidebar"><a href="/NewsInfo/PressReleaseList.asp" class="TDnav">MORE NEWS...</a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4">
<img src="/includes/images/spacer.gif" width="934" height="9" alt="" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<!--#include virtual="/includes/footer.inc" -->
</table>
<!--#include virtual="/includes/table_bottom.inc" -->
<map name="Map" id="Map">
<area shape="rect" coords="3,4,204,87" href="TaurusII/" alt="Taurus II Microsite" />
<area shape="rect" coords="3,90,203,189" href="CargoResupplyServices/" alt="Cyngus Microsite" />
</map>
</body>
</html>
<%
FrontPageImage.Close()
Set FrontPageImage = Nothing
%>
Homepage.jpg
>> But here's a copy of th ecode that's on the main page as well as a screen shot. I can also attach the flash and
>> xml files if needed.
Probably not worth doing. Can you run Firefox with Firebug and look at the page with Firebug active and the Net panel enabled? That might return a 404 error for the XML and give us more of clue as to why it is failing...
>> xml files if needed.
Probably not worth doing. Can you run Firefox with Firebug and look at the page with Firebug active and the Net panel enabled? That might return a 404 error for the XML and give us more of clue as to why it is failing...
ASKER
I will give that a shot when I go back into the office tomorrow.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry for the late reply, but thanks!! That helped a lot. Looks like I had some of the files located in the wrong place. Sometimes it's just the small things that get overlooked.
>> change.
Can you post a link for us to look at?