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
out of loadMovie, but I don't recall seeing any way to do that.
On Fri, Apr 18, 2008 at 9:20 PM, Elliot Winard <[EMAIL PROTECTED]>
wrote:
> 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>
>
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]