0 Replies Latest reply on Mar 2, 2007 11:15 AM by funonmars

    Flash javascript and Activecontent code

    funonmars Level 1
      I've got an animated chatbot that uses a variety of swfs and phps and a big external JavaScript to work. It works fine with the old style embed and object code, with the same variety of swfs and phps and external JS.

      But when I try to use the

      <script src="AC_ActiveX.js" type="text/javascript"></script>
      <script src="AC_RunActiveContent.js" type="text/javascript"></script>

      and I code the main Flash piece like this:

      <script type="text/javascript">
      AC_FL_RunContent( 'codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
      'width','540','height','360','swliveconnect','true','src','whinbarnexp','quality','high',' pluginspage',
      ' http://www.macromedia.com/go/getflashplayer','movie1','whinbarnexp' );
      </script>


      The above broken into lines to make more readable here.
      but when I run it it doesn't work right, and the error console advises:

      "movie1 has no properties."

      and points to the first line of the big function in the JavaScript "brain" of the chatbot:

      shesaid=movie1.GetVariable("coder")

      What am I doing wrong? It's got to be within this code since the same "brain" file works fine with old style object/embed coding.