How can/should I catch resource loading errors at runtime?
The attached file shows that the onerror fires fine if the app is
running in proxied mode. No luck in SOLO.
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.
Thanks,
-e
<canvas debug="true" proxied="false">
<view id="tt">
<handler name="onerror">
Debug.warn("onerror");
OUT.setText("onerror");
</handler>
</view>
<button text="trigger resource error"
onclick="tt.setResource('http:foo.html')" />
<text width="100%" id="OUT" />
<simplelayout/>
</canvas>