[Laszlo-user] catching invalid resources in SOLO mode

Henry Minsky henry.minsky at gmail.com
Fri Apr 18 09:46:17 PDT 2008


There is a newer movieClipLoader API, which I think Max tried at one point,
and found it buggy.

Things are much better in Flash 9, the image Loader class has lots of status
and events sent during loading.



On Fri, Apr 18, 2008 at 12:45 PM, Henry Minsky <henry.minsky at gmail.com>
wrote:

> 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 <enw at laszlosystems.com>
> 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
> hminsky at laszlosystems.com
>
>


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080418/792ed765/attachment.html


More information about the Laszlo-user mailing list