Skip to main content
Participant
May 21, 2008
Question

"This page requires AC_RunActiveContent.js"

  • May 21, 2008
  • 5 replies
  • 2750 views
I tried sending my boss a SWF in HTML format but came up with the "This page requires AC_RunActiveContent.js" error. There is currently an AC_RunActiveContent.js file in the flash files folder, but have no idea what function I need to use to import the .js file. Can anyone help?
Thanks!
This topic has been closed for replies.

5 replies

Ned Murphy
Legend
May 22, 2008
You either need to load the three files to a server, in the same folder, and send your boss a link to the html page, or zip up the three files and send them to your boss explaining that the files need to be placed in the same folder before opening the html file.

If your boss has the associated flash player, then you can probably just send the swf file. The html file alone does not contain the swf file, it contains the code to load the swf file.
Ned Murphy
Legend
May 22, 2008
You need to send your boss the AC_RunActiveContent.js file as well and your boss needs to place it in the same folder as the swf and html files.
LemonRoAuthor
Participant
May 22, 2008
When I attach the html file in an e-mail to myself, I still receive the message that the page requires AC RunActiveContent. If it doesn't work for me, I'm pretty sure it won't work for him either.
kglad
Community Expert
Community Expert
May 21, 2008
if the js file and WB.swf are in the same directory as that html file, you're done.
LemonRoAuthor
Participant
May 21, 2008
I'm sorry, I'm new to Flash and AS...this is the code I found, where do I go from here?


<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>WB</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="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', '550',
'height', '400',
'src', 'WB',
'quality', 'high',
'pluginspage', ' http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'WB',
'bgcolor', '#ffffff',
'name', 'WB',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'WB',
'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="550" height="400" id="WB" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="WB.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="WB.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="WB" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" />
</object>

</noscript>
</body>
</html>
kglad
Community Expert
Community Expert
May 21, 2008
the code to use that js file is in the published html that embeds the swf.