• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4740
  • Last Modified:

AC_RunActiveContent.js

I have an flash banner i am trying to view in IE7 - my designer used flash and created three files for me.  I have an html file, swf and the ac_runactivecontent.js - all files are sitting in the same folder on my server.  I can then view the html file in chrome just fine, but when i try to view it in IE7 it doesn't work.  I get an error message saying this page requires AC_RunActiveContent.js
0
mikow
Asked:
mikow
  • 4
  • 2
2 Solutions
 
knonieCommented:
Check your code, because different browsers read different area of code for flash:

Make sure your code looks like the sample below:
[Assuming you have .swf and .js in the same directory]

In my example, swf is "movie.swf"

Make sure you have included the .js file in <head> like in example below.

<head>
 
<title>Title</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
 
<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','32','height','32','src','movie','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','movie' ); //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="32" height="32">
  <param name="movie" value="movie.swf" />
  <param name="quality" value="high" />
  <embed src="movie.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object></noscript>
</body>
</html>

Open in new window

0
 
knonieCommented:
If it doesn't help, please share your HTML code here...

:-)
0
 
knonieCommented:
In my above code, I used the swf as movie.swf, but that will create some confusion, since "movie" is also a parameter name.

See the code below, where I used "moviex.swf" as swf file.

See if your code looks like that:

<html>
<head>
<title>Title</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
 
<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','32','height','32','src','moviex','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','moviex' ); //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="32" height="32">
  <param name="movie" value="moviex.swf" />
  <param name="quality" value="high" />
  <embed src="moviex.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object></noscript>
</body>
</html>

Open in new window

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mikowAuthor Commented:
Here is the code.  Yes my swf and js file were in the same place.


<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>D2Dlink_bannerad</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', '728',
                  'height', '90',
                  'src', 'D2Dlink_bannerad',
                  'quality', 'high',
                  'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                  'align', 'middle',
                  'play', 'true',
                  'loop', 'true',
                  'scale', 'showall',
                  'wmode', 'window',
                  'devicefont', 'false',
                  'id', 'D2Dlink_bannerad',
                  'bgcolor', '#ffffff',
                  'name', 'D2Dlink_bannerad',
                  'menu', 'true',
                  'allowFullScreen', 'false',
                  'allowScriptAccess','sameDomain',
                  'movie', 'D2Dlink_bannerad',
                  '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="728" height="90" id="D2Dlink_bannerad" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="false" />
      <param name="movie" value="D2Dlink_bannerad.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />      <embed src="D2Dlink_bannerad.swf" quality="high" bgcolor="#ffffff" width="728" height="90" name="D2Dlink_bannerad" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>
</noscript>
</body>
</html>
0
 
knonieCommented:
Your code is correct for IE7, as I ran your code with my swf renamed to "D2Dlink_bannerad.swf" and it's working perfect at my side.

What you can do is use the code I'm pasting below for your flash.
Just put it in a new HTML page and test it.

I have removed the unnecessary Javascript checks from your code.

This code is standard, as approved by Adobe Applications.
<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>D2Dlink_bannerad</title>
 
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff">
 
<script type="text/javascript">
            AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width', '728','height', '90','src', 'D2Dlink_bannerad','quality', 'high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','align', 'middle','play', 'true', 'loop', 'true','scale', 'showall','wmode', 'window','devicefont', 'false','id', 'D2Dlink_bannerad','bgcolor', '#ffffff','name', 'D2Dlink_bannerad','menu', 'true','allowFullScreen', 'false','allowScriptAccess','sameDomain','movie', 'D2Dlink_bannerad' ); //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="728" height="90" id="D2Dlink_bannerad" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="false" />
      <param name="movie" value="D2Dlink_bannerad.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />      <embed src="D2Dlink_bannerad.swf" quality="high" bgcolor="#ffffff" width="728" height="90" name="D2Dlink_bannerad" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>
</noscript>
</body>
</html>

Open in new window

0
 
mikowAuthor Commented:
someone was able to show me how to make the file available through an http URL instead of what i was trying to do which was an ftp url.  Now it works :)  so thanks for your help but i guess that was what i was messing up.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now