flex - IOErrorEvent Eluding Capture -
I am working on a Flex application that processes and displays HTML in small amounts, sometimes with images Sometimes I'm receiving HTML outside of third-party RSS feeds, I see it in a pop-up window:
Error # 2044: Unrestricted IOErrorEvent:. Text = error # 2035: URL not found.
The RSS URL is just fine, but apparently there is something in HTML which is causing a problem. Since the application is to run as part of a non-interactive digital science, therefore whichever one click is required to continue, it is totally unacceptable. I do not care how bad or bad the URL is. ; The app must ignore the problem without disturbing the user.
Unfortunately, I do not have any luck to trap this incident. I am generously sprinkling the calls via code like this:
[item] .addEventListener (IOErrorEvent.IO_ERROR, handleIOError);
... Where [Object]
is everything from MX: Render the text object to HDM in its MX: Canvas parents MX: The application top-laser app, and handleIOError
is a simple task that looks like this:
Handle the private function IOError (Event: IOErrorEvent): Zero {trace ("IO Error occurred: "+ Event); }
But so far, nothing is done; Does the bloody error pop up in the flash player Does anyone have any insight, from where I am getting wrong?
Ensure that you are putting an event on the right thing, I do not have a lot of remote loading in Flex But in flash, there is a hilarious and annoying quirk that when you use the loader class to load the picture, the object is not needed to keep on the event handler, not only the loader but the property of the loader Is called contentLoaderInfo.
Carefully read the docs on the object you are using, a similar disturbance may be on play.
Comments
Post a Comment