Ben,

Try registering with loader.contentLoaderInfo for the various load
events (especially IOErrorEvent.IO_ERROR) to see what could be going
wrong. Since the load is asynchronous, Flash may not be able to throw an
error immediately, so it has to dispatch an error event.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-----Original Message-----
From: Ben Marchbanks <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trouble with try/catch for loader error
Date: Wed, 16 Jan 2008 13:56:44 -0000

I am using Ely' SuperImage with the preload to cache feature.

I am having some through with loading one set of images to the cache
and not having much luck trapping the error.

The following try/catch is totally ignored - what am I doing wrong ?

here's a snippet
----------------------------------------------------------

trace(" not in cache or inaccessible: creating new Loader");
loader = new Loader();

try{
loader.load(request);
}
catch(e:Error)
{
trace("loadResult="+e)
}
cachedItems.push(loader);
result = loader
----------------------------------------------------------




 


Reply via email to