<div dir="ltr">Oh foo, the &quot;eval&quot; feature of the debugger seems to be broken,<div>I get this runtime error whenever I enter an expression to be eval&#39;d</div><div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande">
Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande">
I better see what it is trying to compile for these expressions. &nbsp;Maybe something</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande">changed in the framework that broke the little &quot;debug application&quot; that gets</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande">compiled for each eval statement.&nbsp;</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande">
<br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande"><br></p><br><div class="gmail_quote">On Sat, Aug 23, 2008 at 2:06 AM, Max Carlson <span dir="ltr">&lt;<a href="mailto:max@laszlosystems.com">max@laszlosystems.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Good catch! &nbsp;I just noticed this myself, trying to debug ExternalInterface stuff in the standalone player.<br>
<br>
I can&#39;t seem to get the debugger to work in the browser anymore, even with &lt;canvas debug=&quot;true&quot;&gt;... &nbsp;I need the debugger working in the browser because I need access to External Interface. &nbsp;I tried backing out your change to only write messages if ($debug) {...} to no avail. Any ideas?<br>

<br>
Henry Minsky wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="Ih2E3d">
I added a conditional on the &quot;available&quot; flag, which seems to work OK<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (this.isroot &amp;&amp; DojoExternalInterface.available) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Expose your methods<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DojoExternalInterface.addCallback(&quot;getCanvasAttribute&quot;, lz.History, lz.History.getCanvasAttribute);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DojoExternalInterface.addCallback(&quot;setCanvasAttribute&quot;, lz.History, lz.History.setCanvasAttribute);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DojoExternalInterface.addCallback(&quot;callMethod&quot;, lz.History, lz.History.callMethod);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DojoExternalInterface.addCallback(&quot;receiveHistory&quot;, lz.History, lz.History.receiveHistory);<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Tell JavaScript that you are ready to have method calls<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DojoExternalInterface.loaded();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
the layouts are working fine now, it must have been the error getting thrown before that messed up<br>
app initialization<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
On Fri, Aug 22, 2008 at 11:53 PM, Henry Minsky &lt;<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a> &lt;mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;When I try to debug a swf9 app from the fdb command line debugger, I<br>
 &nbsp; &nbsp;get this error<br>
<br>
<br>
 &nbsp; &nbsp;[Fault] exception, information=Error: Error #2067: The<br>
 &nbsp; &nbsp;ExternalInterface is not available in this container.<br>
 &nbsp; &nbsp;ExternalInterface requires Internet Explorer ActiveX, Firefox,<br>
 &nbsp; &nbsp;Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.<br>
 &nbsp; &nbsp;Execution halted in &#39;gcursor.lzr=swf9.swf&#39; at 0xffffffff (-1)<br>
<br>
<br>
 &nbsp; &nbsp;Error: Error #2067: The ExternalInterface is not available in this<br>
 &nbsp; &nbsp;container. ExternalInterface requires Internet Explorer ActiveX,<br>
 &nbsp; &nbsp;Firefox, Mozilla 1.7.5 and greater, or other browsers that support<br>
 &nbsp; &nbsp;NPRuntime.<br>
<br>
 &nbsp; &nbsp;at Error$/throwError()<br>
<br>
 &nbsp; &nbsp;at flash.external::ExternalInterface$/call()<br>
<br>
 &nbsp; &nbsp;at<br>
 &nbsp; &nbsp;DojoExternalInterfaceClass/addCallback()[/private/tmp/lzswf9/lzgen16038/DojoExternalInterfaceClass.as:33]<br>
<br>
 &nbsp; &nbsp;at LzSprite/init()[/private/tmp/lzswf9/lzgen16038/LzSprite.as:99]<br>
<br>
 &nbsp; &nbsp;at<br>
 &nbsp; &nbsp;LzCanvas/__LZcallInit()[/private/tmp/lzswf9/lzgen16038/LzCanvas.as:418]<br>
<br>
 &nbsp; &nbsp;at<br>
 &nbsp; &nbsp;LzCanvas/__LZinstantiationDone()[/private/tmp/lzswf9/lzgen16038/LzCanvas.as:343]<br>
<br>
 &nbsp; &nbsp;at<br>
 &nbsp; &nbsp;LzInstantiatorService/makeSomeViews()[/private/tmp/lzswf9/lzgen16038/LzInstantiatorService.as:188]<br>
<br>
 &nbsp; &nbsp;at<br>
 &nbsp; &nbsp;LzInstantiatorService/checkQ()[/private/tmp/lzswf9/lzgen16038/LzInstantiatorService.as:132]<br>
<br>
 &nbsp; &nbsp;at Function/<a href="http://adobe.com/AS3/2006/builtin::call()" target="_blank">http://adobe.com/AS3/2006/builtin::call()</a><br>
<br>
 &nbsp; &nbsp;at LzEvent/sendEvent()[/private/tmp/lzswf9/lzgen16038/LzEvent.as:87]<br>
<br>
 &nbsp; &nbsp;at<br>
 &nbsp; &nbsp;LzIdleService/__idleupdate()[/private/tmp/lzswf9/lzgen16038/LzIdleService.as:51]<br>
<br>
 &nbsp; &nbsp;at<br>
 &nbsp; &nbsp;LzIdleKernel$/__update()[/private/tmp/lzswf9/lzgen16038/LzIdleKernel.as:27]<br>
<br>
 &nbsp; &nbsp;at Function/<a href="http://adobe.com/AS3/2006/builtin::apply()" target="_blank">http://adobe.com/AS3/2006/builtin::apply()</a><br>
<br>
 &nbsp; &nbsp;at SetIntervalTimer/onTimer()<br>
<br>
 &nbsp; &nbsp;at flash.utils::Timer/_timerDispatch()<br>
<br>
 &nbsp; &nbsp;at flash.utils::Timer/tick()<br>
<br>
<br>
<br>
<br>
 &nbsp; &nbsp;Is there a way we can make the calls to ExternalInterface optional,<br>
 &nbsp; &nbsp;or wrap them in a try-catch, so that it is possible to debug<br>
 &nbsp; &nbsp;without being in a browser? It looks like the canvas size or layout<br>
 &nbsp; &nbsp;computations may depend on some callback, if I continue through that<br>
 &nbsp; &nbsp;error,<br>
 &nbsp; &nbsp;the canvas comes up with all the components on top of each other.<br>
<br>
<br>
<br>
 &nbsp; &nbsp;--  &nbsp; &nbsp;Henry Minsky<br>
 &nbsp; &nbsp;Software Architect<br></div></div>
 &nbsp; &nbsp;<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a> &lt;mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>&gt;<br>
<br>
<br>
<br>
<br>
<br>
-- <br>
Henry Minsky<br>
Software Architect<br>
<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a> &lt;mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>&gt;<br>
<br>
<br>
</blockquote>
<br>
-- <br>
Regards,<br>
Max Carlson<br>
OpenLaszlo.org<br>
</blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>
</div></div>