Re: Problem with Flash Header
Quote:
So now I just put the 2 .js files in this folder as I thought you suggested, but still no change.
I did not suggest putting js files into css folder..Only commented
that they were not loading but stylesheets were..
Below is sample of flash file entered into template header..
give you an idea of how your coding should look...
Code:
<!--bof-branding display-->
<script type="text/javascript" src="includes/templates/mytemplatename/js/swfobject.js"></script>
<div id="flashcontent">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
id="Movie6" width="760" height="194">
<param name="movie" value="Movie6.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFCCCC">
<embed name="Movie6" src="Movie6.swf" quality="high" bgcolor="#FFCCCC"
width="760" height="194"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
</embed>
</object>
</center>
<script type="text/javascript">
var so = new SWFObject("includes/templates/mytemplatename/Movie6.swf", "YOUR_HEADER", "760", "194", "7", "#FFCCCC");
so.write("flashcontent");
</script>
</div>
Notice path of the swfobject.js file
Re: Problem with Flash Header
Thank you very, very much for your help. But WHERE do I put this code? What file should this code appear in? I really don't understand what files go where, or even what files are required.
I am so sorry if it seems I am so stupid about this, but I have never added a flash file to zen cart before.
Derwin
Re: Problem with Flash Header
Before entering any code, need to make sure swf file and js file
are in correct folders. Otherwise whatever code you enter,
its not going to find relevant files.
Look at my example code, and see
where have placed the swf and swfobject.js file.
i.e. relevant folders in your own current template
folder
Re: Problem with Flash Header
Hi
I found just use a gif file in flash so easy not swf file. Deam weaver CS3 and the new MSN 2008 front page web design both seem harder to use, so gone back to front page 2003 Jocar
Re: Problem with Flash Header
Here is where I have each file:
flash swf file:
/includes/templates/theme054/images/carousel.swf
the flash html file:
/includes/templates/theme054/images/carousel.html
the AC_RunActiveContent file:
/includes/templates/theme054/jscript/AC_RunActiveContent.js
the swfobject file
/includes/templates/theme054/jscript/swfobject.js
THERE YOU HAVE IT. That is exactly where I have ALL of my flash related files located.
Is this correct, or do I need to make changes in location?
Derwin
Re: Problem with Flash Header
So you now use correct code, with correct paths as you have outlined below..
not sure why you are using html file or AC_RunActiveContent.js
plus my swfobject.js is in folder /includes/template/mytemplate/js/
and swf file is in /includes/template/mytemplate/
I will check this thread for further posts later this morning..
Currently almost 1.00am here in UK..
Re: Problem with Flash Header
here is the code in define_main_page.php file:
<script src="../../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="DWConfiguration/ActiveContent/IncludeFiles/AC_ActiveX.js" type="text/javascript"></script>
<div align="center"><script type="text/javascript">
AC_AX_RunContent( 'width','336','height','251','src','carousel.swf','movie','carousel.swf' ); //end AC code
</script><noscript><object width="336" height="251">
<param name="movie" value="carousel.swf">
<embed src="carousel.swf" width="336" height="251">
</embed>
</object></noscript></div>
IS THE ABOVE CODE CORRECT FOR THIS FILE?
Derwin
Re: Problem with Flash Header
Would need to see file/code, without your configuration, to
see if you are entering correctly.
Re: Problem with Flash Header
Hello! I don't understand. What I posted above is the name of the file, and the code that is in the file. What else can I give you?
I really appreciate your help with this, I am really new to zencart.
Derwin
Re: Problem with Flash Header
Here is the code for this file: "Carousel.html"....
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>caraosel</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
'width', '900',
'height', '600',
'src', 'caraosel',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'caraosel',
'bgcolor', '#000000',
'name', 'caraosel',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'caraosel',
'salign', ''
); //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=7,0,0,0" width="900" height="600" id="caraosel" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="caraosel.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="caraosel.swf" quality="high" bgcolor="#000000" width="900" height="600" name="caraosel" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>
SO I HAVE NOW POSTED 2 FILES WITH THE CODE. THE HTML FILE FOR THE FLASH MOVIE, AND THE DEFINE MAIN PAGE PHP FILE WITH THE CODE.
Derwin