speedyvespa
08-20-2007, 02:00 AM
Hi all,
This is my first post so please excuse me if I trample on any protocols!
My problem is this: I want to store all my Flash movies in a different (sub)directory to the index.html that calls it. It works fine if I don't install the AC_RunActiveContent fix from Adobe. However, once I place the javascript in my code, it doesn't load.
This is my layout:
http://mysite.com/mydir/index.html
http://mysite.com/mydir/AC_RunActiveContent.js
http://mysite.com/mydir/private/flash.swf
http://mysite.com/mydir/AC_RunActiveContent.js (<< placed in here to see if this fixes the issue)
My index.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>Title</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<body bgcolor="#eeeeee">
<div align="center">
<!--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=8,0,0,0',
'width','996',
'height','619',
'id','private/flash.swf',
'align','middle',
'src','private/flash.swf',
'quality','high',
'bgcolor','#eeeeee',
'name','private/flash.swf',
'allowscriptaccess','sameDomain',
'allowfullscreen','false',
'pluginspage','http://www.macromedia.com/go/getflashplayer',
'movie','private/flash.swf'
); //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=8,0,0,0" width="996" height="619" id="private/flash.swf" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="private/flash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#eeeeee" />
<embed src="private/flash.swf" quality="high" bgcolor="#eeeeee" width="996" height="619" name="private/flash.swf" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</div>
</body>
</html>
-------------------------------------------------------------------------------------------
If I place the AC_RunActiveContent.js and the flash.swf file in the same directory as the index.html, everything works fine.
I've tried everything from changing the path to reference from the root dir upwards, and nothing seems to work - when I take the AC_RunActiveContent part out, it loads fine (save for getting the 'Click to active control' message).
Any ideas would be welcome - I've searched the Adobe site and come up with nothing. Is this a bug? Is there something that needs to be done to address this at the time the movie is published?
This is my first post so please excuse me if I trample on any protocols!
My problem is this: I want to store all my Flash movies in a different (sub)directory to the index.html that calls it. It works fine if I don't install the AC_RunActiveContent fix from Adobe. However, once I place the javascript in my code, it doesn't load.
This is my layout:
http://mysite.com/mydir/index.html
http://mysite.com/mydir/AC_RunActiveContent.js
http://mysite.com/mydir/private/flash.swf
http://mysite.com/mydir/AC_RunActiveContent.js (<< placed in here to see if this fixes the issue)
My index.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>Title</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<body bgcolor="#eeeeee">
<div align="center">
<!--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=8,0,0,0',
'width','996',
'height','619',
'id','private/flash.swf',
'align','middle',
'src','private/flash.swf',
'quality','high',
'bgcolor','#eeeeee',
'name','private/flash.swf',
'allowscriptaccess','sameDomain',
'allowfullscreen','false',
'pluginspage','http://www.macromedia.com/go/getflashplayer',
'movie','private/flash.swf'
); //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=8,0,0,0" width="996" height="619" id="private/flash.swf" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="private/flash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#eeeeee" />
<embed src="private/flash.swf" quality="high" bgcolor="#eeeeee" width="996" height="619" name="private/flash.swf" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</div>
</body>
</html>
-------------------------------------------------------------------------------------------
If I place the AC_RunActiveContent.js and the flash.swf file in the same directory as the index.html, everything works fine.
I've tried everything from changing the path to reference from the root dir upwards, and nothing seems to work - when I take the AC_RunActiveContent part out, it loads fine (save for getting the 'Click to active control' message).
Any ideas would be welcome - I've searched the Adobe site and come up with nothing. Is this a bug? Is there something that needs to be done to address this at the time the movie is published?