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
mikowAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

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

:-)
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

Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

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>
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

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.