3 Replies Latest reply on Jun 18, 2014 10:59 AM by GalileoMX

    How can I use the "EvalScript()" function? I am trying to send text to a Director app from the web browser, but the console in the browser just responds "Uncaught ReferenceError: evalScript is not defined ".

    GalileoMX Level 1

      I am trying to control a Shockwave app form another machine, using "Pusher" service (websockets), and everything is ok so far; but when I try to send the shockwave app the text recieved from another machine, using the "EvalScript()" function (as documented), I only get the message "Uncaught ReferenceError: evalScript is not defined" in the browser's console. What am I doing wrong?


      'm using the following script in the webpage where the shockwave object is located:


        <script type="text/javascript">

          // Enable pusher logging - don't include this in production

          Pusher.log = function(message) {

            if (window.console && window.console.log) {





          var pusher = new Pusher('abc963cf3e6g678879e');

          var channel = pusher.subscribe('Galileo_channel');

          channel.bind('Galileo_event', function(data) {






      The "alert" is working fine, but I can't get JavaScript to recognize the EvalScript (I even tried calling the shockwave object, ie: "extev01.evalScript()", since the object's ID is extev01, but it doesn't work, either).