<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - 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 ".</title>
    <link>https://forums.adobe.com/community/director/director_lingo?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Wed, 18 Jun 2014 17:59:32 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-06-18T17:59:32Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: 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 ".</title>
      <link>https://forums.adobe.com/message/6469070?tstart=0#6469070</link>
      <description>&lt;!-- [DocumentBodyStart:468af7a3-49cb-4714-9788-51acc1cc0d0d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I've got it working now. I used the console in Chrome to check the shockwave object and its methods; the script is exactly the same as above with one difference: the call to EvalScript was made using the name (ID) of the shockwave object, and the function name is "EvalScript()" (not "evalScript()").&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;br/&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;document.EE02.EvalScript(data.message);&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;(EE02 is the ID of the shockwave object).&lt;em&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:468af7a3-49cb-4714-9788-51acc1cc0d0d] --&gt;&lt;img src='/beacon?t=1415930932287' /&gt;</description>
      <pubDate>Wed, 18 Jun 2014 17:59:32 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6469070?tstart=0#6469070</guid>
      <dc:date>2014-06-18T17:59:32Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: 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 ".</title>
      <link>https://forums.adobe.com/message/6465568?tstart=0#6465568</link>
      <description>&lt;!-- [DocumentBodyStart:67fd2874-ff46-42c9-9de4-35f7985549d4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks Sean.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I tried your suggestion first, using getNetText to poll the server and read a text file. The drawbak is that I had to poll the server constantly, since I could not know in advance when the text file was going to change (and it's not practical to stump the server and connection).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I've kept trying the EvalScript, asigning the Shockwave object to a variable first, then calling the EvalScript() in the object, but it doesn't work, either. I think I will simply use JavaScript and forget about shockwave altogether, since everything is working fine up to that point (although it would be nice to be able to use Lingo for the rest of the app).&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:67fd2874-ff46-42c9-9de4-35f7985549d4] --&gt;</description>
      <pubDate>Tue, 17 Jun 2014 16:03:27 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6465568?tstart=0#6465568</guid>
      <dc:date>2014-06-17T16:03:27Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: 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 ".</title>
      <link>https://forums.adobe.com/message/6463950?tstart=0#6463950</link>
      <description>&lt;!-- [DocumentBodyStart:43db2349-b608-4cad-800f-bd930d0df62f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;EvalScript is known to be flaky and should be avoided.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Can you not poll your other machine using getNetText or similar? If you &lt;strong&gt;really&lt;/strong&gt; need to have the browser communicate with an embedded Shockwave movie (and it sounds like there might be a better option), take a look at &lt;a class="jive-link-external-small" href="http://valentin.dasdeck.com/lingo/dir_js/d11_simple/" rel="nofollow"&gt;this demo&lt;/a&gt; by Valentin Schmidt (which doesn't seem to be working for me with the current version of SW in Firefox/Windows)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;He also has a SOAP example, socket example and http server push example available.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:43db2349-b608-4cad-800f-bd930d0df62f] --&gt;</description>
      <pubDate>Tue, 17 Jun 2014 01:34:21 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6463950?tstart=0#6463950</guid>
      <dc:date>2014-06-17T01:34:21Z</dc:date>
      <clearspace:dateToText>4 months 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>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 ".</title>
      <link>https://forums.adobe.com/message/6463423?tstart=0#6463423</link>
      <description>&lt;!-- [DocumentBodyStart:81b30d12-5dd8-4564-a11f-0fff9cc914b4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;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 "&lt;span style="color: #ff0000; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;Uncaught ReferenceError: evalScript is not defined" &lt;span style="color: #000000; font-size: 10pt;"&gt;in the browser's console.&lt;/span&gt;&lt;/span&gt; What am I doing wrong?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;'m using the following script in the webpage where the shockwave object is located:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enable pusher logging - don't include this in production&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pusher.log = function(message) {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (window.console &amp;amp;&amp;amp; window.console.log) {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.console.log(message);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pusher = new Pusher('abc963cf3e6g678879e');&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var channel = pusher.subscribe('Galileo_channel');&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; channel.bind('Galileo_event', function(data) {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; evalScript(data.message);&lt;/p&gt;&lt;p&gt;&amp;nbsp; alert(data.message);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;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).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Help!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:81b30d12-5dd8-4564-a11f-0fff9cc914b4] --&gt;</description>
      <pubDate>Mon, 16 Jun 2014 22:09:30 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6463423?tstart=0#6463423</guid>
      <dc:date>2014-06-16T22:09:30Z</dc:date>
      <clearspace:dateToText>4 months 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

