Click to See Complete Forum and Search --> : Trouble Embedding Flash


JCB1985
10-01-2008, 11:18 PM
I'm trying to embed a flash movie onto my page...but it will not display when I upload it. It DOES display in Dreamweaver preview...any ideas?

Thanks

Matt

Here's the source of my page...
<!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 name="keywords" content="jackson cabin boys, south point, ashland, huntington, country, music, matt mcclay, lance ross, jackson lake, wtcr, ohio, kentucky, west virginia, folsom prison blues, mp3, download, matt, lance, official, official site, anything but mine" />
<meta name="description" content="The official website of the country music duo, the Jackson Cabin Boys!" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::The Official Website of the Jackson Cabin Boys::</title>
<style type="text/css">
<!--
body {
background-color: #333333;
}
.style2 {font-size: x-small}
.style3 {color: #CCCCCC; font-family: Arial, Helvetica, sans-serif;}
.style5 {
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: small;
font-weight: bold;
}
.style7 {
font-family: Arial, Helvetica, sans-serif;
font-size: small;
color: #FFFFFF;
}
a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: medium;
font-style: normal;
font-weight: bold;
color: #CCCCCC;
text-decoration: none;
}
a:visited {
font-family: Arial, Helvetica, sans-serif;
font-size: medium;
font-style: normal;
font-weight: bold;
color: #CCCCCC;
text-decoration: none;
}
a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: medium;
font-style: normal;
font-weight: bold;
color: #FFFF66;
text-decoration: none;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<table width="800" border="0" align="center"" cellpadding="0" cellspacing="0" bgcolor="#000000 align="center>
<tr>
<td bgcolor="#666666">
<span class="style5">JacksonCabinBoys.com</span></td>
</tr>
<tr>
<td bgcolor="#999999"><div align="center"><a href="index.html">Home</a> | <a href="bio.html">Bio</a> | <a href="shows.html">Shows</a> | <a href="news.html">News</a> | <a href="fanclub.html">Fan Club</a> | <a href="media.html">Media</a> | <a href="contact.html">Contact Info</a> | <a href="http://www.myspace.com/jacksoncabinboys" target="_new">MySpace</a></div></td>
</tr>

<tr>
<td><img src="images/banner_1gray.jpg" width="800" height="300" /></td>
</tr>

<tr>
<td height="225" valign="top" bgcolor="#000000"><table width="795" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="794" valign="top"><pre class="style7"> Welcome to the official website of the Jackson Cabin Boys! Whether you are a tried-and-true JCB fan, or are checking us out for the<br> first time, we hope enjoy our music. Our schedule changes often, so check our website often for the most up-to-date show times<br> and dates. Sit back, relax, and enjoy the Jackson Cabin Boys!
</pre>
<table width="794" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="440" valign="top">&nbsp;</td>
<td width="354"><div align="right">
<p>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','350','height','240','src','flash/fanclub','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/fanclub' ); //end AC code
</script><noscript><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="350" height="240">
<param name="movie" value="flash/fanclub.swf" />
<param name="quality" value="high" />
<embed src="flash/fanclub.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="350" height="240"></embed>
</object></noscript>
</p>
<p>&nbsp; </p>
</div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>

</table>
<div align="center" class="style2">
<pre><span class="style3">Copyright &copy; 2008 Matt McClay;
All Rights Reserved</span></pre>
</div>
<div align="left"></div>
</body>
</html>

Eye for Video
10-02-2008, 01:26 AM
If it works on your local machine but not after uploading it's almost always a path issue.
As a test I tried to just download the .swf from:
http://www.jacksoncabinboys.com/flash/fanclub.swf
This returned a file not found error.
So either the file upload did not work, the file name is incorrect, or the path is wrong.
So while you may have place the .swf on a page which is not in the root, my guess is that the address above should have worked.
Keep on Truckin'
Eye for Video
www.cidigitalmedia.com

JCB1985
10-02-2008, 08:55 AM
Actually, the path is "jcb/flash/fanclub.swf"

The path of the HTML file is "jcb/index.html"

If you test "http://www.jacksoncabinboys.com/jcb/flash/fanclub.swf" it works.

I think it's a scripting issue or something...

Eye for Video
10-02-2008, 11:03 AM
Looks like you are right on the path issue, that works. Somehow the script you are using doesn’t work. Strip that out and just use the <object>, it works just fine. So it’s the .js.
Go to:
http://www.adobe.com/devnet/activecontent/articles/devletter.html
to review your script. Or use SWFObject to place the .swf on the page. This gives you the option of adding alternate content, which can be used to decribe the content of your .swf and will be picked up by spiders and robots.
http://www.adobe.com/devnet/flash/articles/swfobject.html
Good luck,
EfV

JCB1985
10-03-2008, 08:44 AM
EjV,

Thank you much! Stripped out the JavaScript and it works! I wonder why Dreamweaver insists on adding the script and not using the <object > tags...

Eye for Video
10-03-2008, 10:28 AM
Some of the older browsers like IE6 will put an annoying little gray border around the Flash <object> an require the viewer to "Click to activate.." anytime the viewer mouses over the Flash <object>. The javascript elliminates that. There's nothing wrong with using the .js but I wonder if that set of code you ended up with has errors. Did you upload the actual .js file when you uploaded the .swf?
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
Maybe if the Flash is not interactive, it's just an animation, you can get by without the .js, but for any interactive Flash, for sure you should use the .js. I'd just recommend .swfobject instead, because it allows for alternate content.
Here's an example of what I mean. Go to this page and view the source code.
http://www.cidigitalmedia.com/video.html
Scroll down to where it says
<!-- Alternate content -->
This is all alternate content about the videos, written in html, that can be read and indexed by robots and spider..
Video interviews and highlights from the Sequim Irrigation Festival. Videos were created for the Sequim Shiso City, Sister City Association.<br />
Video Sequim Mayor Laura Dubois greets Mitsunori Namba, Consul General of Japan.<br />
Video interviews with Sequim students prior to the Irrigation Festival Parade. They will be traveling to Japan this fall.<br />
You can use photos, links, or whatever for that alt content.
Well good luck on your project.
Eye for Video
www.cidigitalmedia.com