Log in

View Full Version : Problem embedding .swf



Sammacha
01-03-2012, 01:04 AM
Hi everyone,
if anyone has a some time to help me with this I would really appreciate it.

I'm not the greatest at coding but I wanted to give myself a shot at making my own website. So far so good (in my opinion). Here is the problem that I am having.
For the new year I have re-done my website and now I can no longer seem to get my flash banners (.swf) to appear on my website. i even tried using the previous code and manually re-direct the source to the files new location. No luck. however when I open it to preview on my own machine it seems to work.
Here is the current code



<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','468','height','60','title','Highlight','src','../Gallery/DontLook/flash/www.sammacha.com_simple_highlight','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../Gallery/DontLook/flash/www.sammacha.com_simple_highlight' ); //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="468" height="60" title="Highlight">
<param name="movie" value="../Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" />
<param name="quality" value="high" />
<embed src="../Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60"></embed>
</object></noscript>

if someone could tell me where I've made a mistake I would appreciate it
Also if needed : a link to the actual page on the website
http://www.sammacha.com/Home/Support.html
and a link to the files location
http://www.sammacha.com/Gallery/DontLook/flash/

~Sammacha

coothead
01-03-2012, 04:02 PM
Hi there Sammacha,

personally, I wouldn't use javascript for your .swf banners.

This coding works perfectly for me...


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<base href="http://www.sammacha.com/" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="english" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<title></title>

<style type="text/css">
*{
margin:0;
padding:0;
}
body{
font:76% verdana,tahoma,Arial,sans-serif;
line-height:1.4em;
text-align:center;
color:#666;
background:#000;
}
#content{
float:left;
width:auto
font-size:0.9em;
padding:20px 0 0 20px;
}
</style>

</head>
<body>

<div id="content">

<p>Flash Banners</p>
<p>
<object type="application/x-shockwave-flash" data="Gallery/DontLook/flash/www.sammacha.com_fade_banner.swf" width="468" height="68">
<param name="movie" value="Gallery/DontLook/flash/www.sammacha.com_fade_banner.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
</object>
</p><p>
<object type="application/x-shockwave-flash" data="Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" width="468" height="68">
<param name="movie" value="Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
</object>
</p>

</div>

</body>
</html>

coothead

Sammacha
01-04-2012, 04:08 AM
Thanks so much coothead
That code works fine for me if i remove all the other content on my website but it wont work with it....
Im so confused now lol

coothead
01-04-2012, 09:42 AM
Hi there Sammacha,

sorry about that. :(

After looking at your page code, I would suggest that you put ../ before Gallery/DontLook/flash/...


<object type="application/x-shockwave-flash" data="../Gallery/DontLook/flash/www.sammacha.com_fade_banner.swf" width="468" height="68">
<param name="movie" value="../Gallery/DontLook/flash/www.sammacha.com_fade_banner.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
</object>
</p><p>
<object type="application/x-shockwave-flash" data="../Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" width="468" height="68">
<param name="movie" value="../Gallery/DontLook/flash/www.sammacha.com_simple_highlight.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
</object>

...to effect a cure. ;)

coothead

Sammacha
01-05-2012, 07:00 AM
Ah! ... Lol, do I feel silly now :P

Thanks so much for the help, and for the better way to insert the flash as an object rather then using a javascript
Very helpful :)

coothead
01-05-2012, 07:08 AM
No problem, you're very welcome. ;)

eugenebeyes
01-19-2012, 04:01 AM
Another option if you only plan to play this from you pc would be to enable Local Access Mode. You will find this in Project Properties>Flash. With this checked
it will allow the SWF to load local files but it will disable webserver functionality.