We help IT Professionals succeed at work.

Does anyone know why Flash won't apply to a page from a template?

319 Views
Last Modified: 2013-12-24
Hi all!

Can anyone help me with this?  I have a template with 3 Flash instances, one menu, two banners.  I have saved the page as a template in DW CS3 and added two editable regions, these are description of page and content.  When i try to apply this template to a new page, everything comes accross except the Flash.  I am trying to apply the page to a .cfm file, don't know if that's going to make any difference?

Anyway, i hope someone out there has a solution to this?

Many thanks in advance all :-)
Comment
Watch Question

Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Hi loki421,

Please post the template code.

Author

Commented:
Okeydokey :-)  Here you go.....
<!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=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: small;
	color: #999999;
}
body {
	background-color: #FFFFFF;
	background-image: url(../images/background%20for%20page.png);
	background-repeat: no-repeat;
}
#top {
	width: 1028px;
	margin-bottom: 3px;
	margin-right: auto;
	margin-left: auto;
}
#container {
	width: 1028px;
	margin-right: auto;
	margin-left: auto;
	height: 550px;
	background-color: #FFFFFF;
	border: 1px solid #666666;
}
#container #content {
	padding: 5px;
	height: 390px;
	background-image: url(../images/background%20for%20content.png);
}
#container #content #scrolling {
	padding: 5px;
	height: 350px;
	width: 900px;
	margin-top: 5px;
	border: 1px groove #BE0303;
	margin-right: auto;
	margin-left: auto;
	overflow: scroll;
	background-color: #FFFFFF;
}
-->
</style>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
 
<body>
<div id="top"><img src="../images/company logo top left.png" alt="logo" width="110" height="39" vspace="3" /><img src="../text.png" alt="text" width="200" height="34" hspace="10" vspace="3" /></div>
<!--this is the end of the top div -->
<div id="container">
  <div id="menu">
    <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1028','height','50','title','menu','src','../localhost nav menu','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../localhost nav menu' ); //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="1028" height="50" title="menu">
      <param name="movie" value="../localhost nav menu.swf" />
      <param name="quality" value="high" />
      <embed src="../localhost nav menu.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1028" height="50"></embed>
    </object>
  </noscript></div>
  <!--this is the end of the menu div -->
  <div id="topbanner">
    <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1028','height','50','title','banner','src','../phone number banner','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../phone number banner' ); //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="1028" height="50" title="banner">
      <param name="movie" value="../phone number banner.swf" />
      <param name="quality" value="high" />
      <embed src="../phone number banner affinity.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1028" height="50"></embed>
    </object>
  </noscript></div>
  <!--this is the end of the topbanner div -->
  <!--this is the start if the content div --><div id="content"><!-- TemplateBeginEditable name="text" -->Content for  id "content" Goes Here<!-- TemplateEndEditable -->
    <div id="scrolling"><!-- TemplateBeginEditable name="content" -->Content for  id "scrolling" Goes Here<!-- TemplateEndEditable --></div>
  </div>
  <!--this is the end of the content div -->
  <div id="bottombanner">
    <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1028','height','50','title','bottombanner','src','../advert01','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../advert01' ); //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="1028" height="50" title="bottombanner">
      <param name="movie" value="../advert01.swf" />
      <param name="quality" value="high" />
      <embed src="../advert01.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1028" height="50"></embed>
    </object>
  </noscript></div><!--this is the end of the bottombanner div -->
</div>
<!--this is the end of the container div -->
</body>
</html>

Open in new window

Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Hi loki421,

That looks like a page based on the template, and not the template itself.  Your paths appear to be incorrect, which is a common template bug:

<param name="movie" value="../phone number banner.swf" />

should probably be:

<param name="movie" value="phone number banner.swf" />

The swf's are in the same folder as the page, right?

Check your site definition, templates tab to see if rewrite relative document paths is set.  

Author

Commented:
Ok, thanks for looking.  It was created from a .cfm page and then saved as a template.  The .swf files are saved in a 'Flash' folder in the wwwroot folder.  I've tried to use a http address and a C:/ address on the paths, but still no joy....

I'm afraid i'm still quite new to DW so i appologise in advance for this, but how do i check the 'site definition, templates tab' as you suggested?
Don't talk to me.
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Ok then, i'll give that a go, thanks.  Oh, and i forgot to say i also copied the .swf directly to the site root just in case the Flash folder was the problem :-)

Be back in five....... :-)
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
Right now, the paths are the problem and that has to be fixed in the source code.

I'm heading off to sleep.  Will pick this up tomorrow morning.

Author

Commented:
Ha!  Perfect!  That worked :-)  It updated all the pages based on that template.  Thanks for that, but what a mess about!  This must be a bug in DW right?  I did some Googling before i came here and it seemed to be quite a common problem, but no one knew how to fix it.

Thanks for your help with this, get some well deserved sleep :-p

Cheers! :-)

Author

Commented:
Perfect!  Thanks again :-)
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
>> This must be a bug in DW right?  I did some Googling before i came here and it seemed to be quite a common
>> problem, but no one knew how to fix it.

There are a variety of bugs in the Template system.  In this specific instance, by going from an already created page and saving it as a template, the paths didn't rewrite.  There are a bunch of other bugs that can pop up, but the fix is pretty much the same (remove the item in the template, publish changes, put the item back in).

Author

Commented:
Yeah i tried that option but it didn't work.  I had worked earlier that day, but not last night :-(  

I've managed to fix it though by changing the settings to 'relative to site root' as opposed to 'relative to document'.  Probably an obvious solution but i'm still learning :-)

Thanks for all your help jason1178, much appreciated...
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
It shouldn't matter if you use site-root or doc-relative, but that's another way around it.

Author

Commented:
It seemed to do the job though :-)  Once i'd made that change and updated, everything worked fine.  Strange hey?

Thanks again

Take care!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.