[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1392
  • Last Modified:

AC_RunActiveContent.js

I have a flash movie that has some audio files.  I am trying to embed into one of our templates Microsoft CMS 2002, however everytime I run it I receive the message that "This page requires AC_RunActiveContent.js. Now I understand from doing some reading that the this file needs to be in the same directrory as the .html page.

My dilemma is our site is build on templates .aspx and the content is then rendered in .html so I cannot put it in the same directory . I have tried to put the files in the template directory, however it does not work.

I understand that this .js file is added when you publish to an .html file, so if I am using the .swf do the same rules apply. With the .swf verstion will do I need the .js file or can I just leave it out.

Any help I could get on this would be appreciated.
0
mockweb
Asked:
mockweb
  • 4
1 Solution
 
Jason C. LevineNo oneCommented:
>> Now I understand from doing some reading that the this file needs to be in the same directrory as the .html page.

Not necessarily.  The file is called from a <script src=""></script> line in the HTML.  It can reside anywhere so long as the path is correct.

>> With the .swf verstion will do I need the .js file or can I just leave it out.

You need it because of the way the call to the Flash files are generated.  Using a javascript wrapper avoids the "click to activate" issues with IE.  
0
 
Jason C. LevineNo oneCommented:
mockweb,

Please post your solution and accept it or accept mine.
0
 
Jason C. LevineNo oneCommented:
Moderator,

My post at http:#a23730943 answers the question "With the .swf verstion will do I need the .js file or can I just leave it out[?]" and I also addressed the path issue.

However, there is more than one way to approach this problem and I have no issues with the asker posting an alternate solution for the PAQ.  But deletion is not appropriate.
0
 
mockwebAuthor Commented:
The solution was to comment out the code that referenced the alert box.
<!--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', '135',
                  'height', '440',
                  'src', 'welcome',
                  'quality', 'high',
                  'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                  'align', 'middle',
                  'play', 'true',
                  'loop', 'true',
                  'scale', 'showall',
                  'wmode', 'window',
                  'devicefont', 'false',
                  'id', 'welcome',
                  'bgcolor', '#ffffff',
                  'name', 'welcome',
                  'menu', 'true',
                  'allowFullScreen', 'false',
                  'allowScriptAccess','sameDomain',
                  'movie', 'welcome',
                  'salign', ''
                  ); //end AC code
      }
                        </script>-->


this is the solution that works in our enviroment.
0
 
Jason C. LevineNo oneCommented:
Thanks, mockweb.  I appreciate your posting that!
0

Featured Post

Technology Partners: 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
Tackle projects and never again get stuck behind a technical roadblock.
Join Now