View Full Version : swf in html page doesn't show on site
I have a flash website. On one of the page, there are rows of graphics buttons. When click and release, the button will open a new window with a image.
Here is the problem, one button should open a html page with a swf file in it; it shows OK locally, however, when I test it on the website. I only see a blank page, no swf file.
All files are in the same directory.
What is the problem here?
Can you post your code? Perhaps you are using absolute paths that are no longer valid when not on your local hard drive.
Thank you Nuke for the quick reply.
I thought about the path issue too, but doesn't seem to be the case here.
Here is the code:
<!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>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<title>InterceptCS</title>
</head>
<body>
<p align="center"><br />
<br />
<br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="250" width="300" name="interceptcs">
<param name="movie" value="Interceptad.swf" />
<param name="quality" value="best" />
<param name="play" value="true" />
<embed height="250" name="interceptcs" pluginspage="http://www.macromedia.com/go/getflashplayer" src="Interceptad.swf" type="application/x-shockwave-flash" width="300" quality="best" play="true"></embed>
</object></p>
<p align="center"><br>
<br>
</p>
</body>
</html>
if it's a unix server, and you're on windows, check to make sure the case is correct, because unix is case sensitive, windows is not. That's one reason it would work locally and not remote is you're sure the path is correct.
Tim, the case is correct, I am using GoLive, I located/embed the swf file in the html page. Not a absolute path.
However, since this is a test site for approval. I created a Test Folder under the Root Folder and uploaded. Everything is OK, except this html file :(
Thank you for your input.
Finally gets it working. Still don't know exactly what was wrong. I changed the file names a few times, un-link and re-link the files a few times, and cleared the browser’s cache a few times. Bingo, it works.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.