aside from timeouts, I don't know if there is any way in SOLO mode to be informed of an error in the transport/loading!There might be some Flash hack to get some sort of status<br>out of loadMovie, but I don't recall seeing any way to do that.<br>
<br><br><div class="gmail_quote">On Fri, Apr 18, 2008 at 9:20 PM, Elliot Winard <<a href="mailto:enw@laszlosystems.com">enw@laszlosystems.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
How can/should I catch resource loading errors at runtime?<br>
<br>
The attached file shows that the onerror fires fine if the app is running in proxied mode. No luck in SOLO.<br>
The image resources that are loaded come from a servlet, so we have complete control over the HTTP responses. SWFs don't have access to the HTTP headers so I can't catch that the client gets a 404, even though I can see it when I sniff the wire for HTTP.<br>
<br>
Thanks,<br><font color="#888888">
-e<br>
</font><br><canvas debug="true" proxied="false"><br>
<view id="tt"><br>
<handler name="onerror"><br>
Debug.warn("onerror");<br>
OUT.setText("onerror");<br>
</handler><br>
</view><br>
<button text="trigger resource error" onclick="tt.setResource('http:foo.html')" /><br>
<text width="100%" id="OUT" /><br>
<simplelayout/><br>
</canvas><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>