| jmahoney.uk@googlemail.com 2007-09-29, 6:15 pm |
| Hi there,
As the subject suggests I'm having problems with an embeded SWF file,
whereby if I open the HTML file containing it locally - the movie
loads fine, but if I access via a webserver it doesn't.
I currently have two SWF files... one (intro.swf) which preloads and
then displays the second (info_ani.swf).
The thing to bare in mind here is I have IIS installed and thus the
file locations are EXACTLY the same when I open intro.html locally (C:
\Inetpub\wwwroot\suite\intro.html) or via the web server (http://
localhost/suite/intro.html).
Below is the code in the HTML file (generated by Flash CS3) calling
the SWF:
code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>intro</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="includes/AC_RunActiveContent.js" language="javascript"></
script>
</head>
<body bgcolor="#ffffff">
<!--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=9,0,0,0',
'width', '340',
'height', '120',
'src', 'includes/intro',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'intro',
'bgcolor', '#ffffff',
'name', 'intro',
'menu', 'false',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'includes/intro',
'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=9,0,0,0" width="340" height="120" id="intro"
align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="includes/intro.swf" /><param name="menu"
value="false" /><param name="quality" value="high" /><param
name="bgcolor" value="#ffffff" /> <embed src="includes/intro.swf"
menu="false" quality="high" bgcolor="#ffffff" width="340" height="120"
name="intro" align="middle" allowScriptAccess="sameDomain"
allowFullScreen="false" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>
Any help would be GREATLY appreciated, I've been wracking my brains on
this one for many hours now!!
FYI - File locations: In the base directory "suite" is intro.html, in
a subdirectory of that - "includes" are the two SWF files and the
JavaScript file AC_RunActiveContent.js
|