I used this:

 

<mx:Image source="http://www.tsnn.ca"; ioError="trace('got error')" />

 

And got the trace after a few seconds and the Image tag showed the
brokenImage icon.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Csiki
Sent: Friday, February 08, 2008 1:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: SWFLoader.load() error handling does not work?

 

Ok Alex, I just replied before you did I'll copy the message again, it
can also be any URL that points to an Internet resource that actually
does not exist, as long as it's well-formed,

e.g. http://www.tsnn.ca <http://www.tsnn.ca/>  

All browsers return "Server not found" right away..

Thanks, Robert


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you have the time and can reproduce this problem on a public url,
> then maybe we can figure out what is going on or file a bug.
> 
> 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Robert Csiki
> Sent: Friday, February 08, 2008 12:45 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: SWFLoader.load() error handling does not
work?
> 
> 
> 
> It's an internal server that's supposed to serve me images. The url is
> something classy, 
> 
> <http://%3chost%3e:%3cport%3e/thumbnailServer/getThumbnail?%3ca>
> http://<host>:<port>/thumbnailServer/getThumbnail?<a
> <http://%3chost%3e:%3cport%3e/thumbnailServer/getThumbnail?%3cand> nd
a
> couple of params here to identify the file to serve>
> 
> Everything works fine if the server is up and running. But once I'll
> shut it down and reload the Flex app, the Flex mx:Image object will
keep
> "loading" the URL forever, no error events are ever being dispatched.
> Nothing.
> 
> Robert
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui" aharui@ wrote
> >
> > What URL are you hitting?
> > 
> > 
> > 
> > ________________________________
> > 
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Robert Csiki
> > Sent: Friday, February 08, 2008 11:18 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: SWFLo! ader.load() error handling does not
> work?
>! > > > 
> > 
> > Thanks Alex, but when I copy this well-formed URL in a browser I get
> > "The page cannot be displayed" message right away... trying the same
> URL
> > with my mx:Image.load() call will hang forever...I even waited for
> > hours, nothing.
> > 
> > The only case my IOError event handler got called was when the used
> URL
> > was malformed (e.g. if using this string "NOT_AN_URL" as URL I can
> catch
> > th! e IOError)
> > 
> > Robert
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Alex Harui" aharui@ wrote:
> > >
> > > You might have to wait for the server to timeout. The IO_ERROR
> should
> > > get dispatched and you'll see the brokenImage icon instead. If you
> > > don't see that, something else is going on.
> > > 
> > > > > > 
> > > ________________________________
> > > 
> > > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
> > On
> > > Behalf Of Robert Csiki
> > > Sent: Friday, February 08, 2008 8:53 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] SWFLoader.load() error handling does not
work?
> > > 
> > > 
> > > 
> > > Hello,
> > > 
> > > I'm using an mx:Image control and trying to load using an URL that
> for
> > > som! e reason points to a resource that cannot be reached (e.g.
the!
> 
> > server
> > > is down). How will I capture this condition, as I noticed none of
> the
> > > f! ollowing events get ever dispatched:
> > > 
> > > SecurityErrorEven! t.SECURITY_ERROR, IOErrorEvent.IO_ERROR,
>! ; > & gt; ErrorEvent.ERROR.
> > > 
> > > I expected the second one to get fired, but well none of my event
> > > handlers are ever called. Am I missing something? I'm using Flex
> 2.0.1
> > > 
> > > Thank you in advance, Robert
> > >
> >
>

 

Reply via email to