Thanks for answer. I wish you the best in new year too.
I came with that suggestion by those spam posts seen here...
but why I came here is just my misunderstanding error event in
bulkLoader.
I have some xml data with paths to images in that xml. Typical
scenario.
But if I misspell the path i.e: <image>imagei5.jpg</image> -where
should be <image>image5.jpg</image>
I succesfully get handling error (ErrorEvent.Error, handleError) in
flash IDE (besides output's error notification).
What is strange if I publish .swf and run it in localhost location I
get #2044 error notification as unhandled in the browser( text=Error
#2036: Didnt finish loading URL:
http://localhost/.../images/imagei5.jpg,
and doesn't quite understand how to workaround it. I do misspell in
xml file on purpose, because if wrong path was given I need to load
other data (image) instead.
I resolved that in the error handler function by:
function handleError(e:ErrorEvent)
{
var item = LoadingItem(e.target).id; //output: img4
//trace(loader.itemsLoaded);
loader.remove(item,true);
//trace(loader.itemsLoaded);
loader.add("pathToData/"+myXML.noImage[0],{id:item});
loader.loadNow(item);
}
So then loader gets content from <noImage> tag which is other image...
When error window pops up if I choose CONTINUE, all content loads well
and app works with no issues,
but I want to have my app without that annoying window popped up.
I tried to change listener for loading image from ErrorEvent.ERROR to
IOErrorEvent.IO_ERROR, but it doesnt seem to work.
If I add:
loader.add("pathToData/"+rightImageToLoad).addEventListener(IOErrorEvent.IO_ERROR,handleIOError);
this will never fire that event, which I quess is responsible for
handling that unwanted popup window...
Any ideas?
Regards Pawel
On 4 Sty, 18:02, Arthur Debert <
art...@stimuli.com.br> wrote:
> Hi Northmantif.
>
> Not really.
>
> In the past few months the traffic has lowered a lot...
> Also, I'm on a long vacation so a few messages might have slept
> through... anyway, this list is answered by volunteers and their
> decision to answer or not a particular message will vary,
>
> Best regards and happy new year
>