<div dir="ltr">Oh foo, the "eval" feature of the debugger seems to be broken,<div>I get this runtime error whenever I enter an expression to be eval'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. 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 "debug application" that gets</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande">compiled for each eval statement. </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"><<a href="mailto:max@laszlosystems.com">max@laszlosystems.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Good catch! I just noticed this myself, trying to debug ExternalInterface stuff in the standalone player.<br>
<br>
I can't seem to get the debugger to work in the browser anymore, even with <canvas debug="true">... I need the debugger working in the browser because I need access to External Interface. 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 "available" flag, which seems to work OK<br>
if (this.isroot && DojoExternalInterface.available) {<br>
// Expose your methods<br>
DojoExternalInterface.addCallback("getCanvasAttribute", lz.History, lz.History.getCanvasAttribute);<br>
DojoExternalInterface.addCallback("setCanvasAttribute", lz.History, lz.History.setCanvasAttribute);<br>
DojoExternalInterface.addCallback("callMethod", lz.History, lz.History.callMethod);<br>
DojoExternalInterface.addCallback("receiveHistory", lz.History, lz.History.receiveHistory);<br>
<br>
// Tell JavaScript that you are ready to have method calls<br>
DojoExternalInterface.loaded();<br>
}<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 <<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a> <mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>>> wrote:<br>
<br>
When I try to debug a swf9 app from the fdb command line debugger, I<br>
get this error<br>
<br>
<br>
[Fault] exception, information=Error: Error #2067: The<br>
ExternalInterface is not available in this container.<br>
ExternalInterface requires Internet Explorer ActiveX, Firefox,<br>
Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.<br>
Execution halted in 'gcursor.lzr=swf9.swf' at 0xffffffff (-1)<br>
<br>
<br>
Error: Error #2067: The ExternalInterface is not available in this<br>
container. ExternalInterface requires Internet Explorer ActiveX,<br>
Firefox, Mozilla 1.7.5 and greater, or other browsers that support<br>
NPRuntime.<br>
<br>
at Error$/throwError()<br>
<br>
at flash.external::ExternalInterface$/call()<br>
<br>
at<br>
DojoExternalInterfaceClass/addCallback()[/private/tmp/lzswf9/lzgen16038/DojoExternalInterfaceClass.as:33]<br>
<br>
at LzSprite/init()[/private/tmp/lzswf9/lzgen16038/LzSprite.as:99]<br>
<br>
at<br>
LzCanvas/__LZcallInit()[/private/tmp/lzswf9/lzgen16038/LzCanvas.as:418]<br>
<br>
at<br>
LzCanvas/__LZinstantiationDone()[/private/tmp/lzswf9/lzgen16038/LzCanvas.as:343]<br>
<br>
at<br>
LzInstantiatorService/makeSomeViews()[/private/tmp/lzswf9/lzgen16038/LzInstantiatorService.as:188]<br>
<br>
at<br>
LzInstantiatorService/checkQ()[/private/tmp/lzswf9/lzgen16038/LzInstantiatorService.as:132]<br>
<br>
at Function/<a href="http://adobe.com/AS3/2006/builtin::call()" target="_blank">http://adobe.com/AS3/2006/builtin::call()</a><br>
<br>
at LzEvent/sendEvent()[/private/tmp/lzswf9/lzgen16038/LzEvent.as:87]<br>
<br>
at<br>
LzIdleService/__idleupdate()[/private/tmp/lzswf9/lzgen16038/LzIdleService.as:51]<br>
<br>
at<br>
LzIdleKernel$/__update()[/private/tmp/lzswf9/lzgen16038/LzIdleKernel.as:27]<br>
<br>
at Function/<a href="http://adobe.com/AS3/2006/builtin::apply()" target="_blank">http://adobe.com/AS3/2006/builtin::apply()</a><br>
<br>
at SetIntervalTimer/onTimer()<br>
<br>
at flash.utils::Timer/_timerDispatch()<br>
<br>
at flash.utils::Timer/tick()<br>
<br>
<br>
<br>
<br>
Is there a way we can make the calls to ExternalInterface optional,<br>
or wrap them in a try-catch, so that it is possible to debug<br>
without being in a browser? It looks like the canvas size or layout<br>
computations may depend on some callback, if I continue through that<br>
error,<br>
the canvas comes up with all the components on top of each other.<br>
<br>
<br>
<br>
-- Henry Minsky<br>
Software Architect<br></div></div>
<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a> <mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>><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> <mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>><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>