How to handle Exceptions for Loader/URLRequest
Hi,
I want to catch all possible exceptions while loading a swf by URLRequest, please see below codesnap:
try {
mLoader.load( new URLRequest( mAddress ) ); // mAddress is a swf file path
}
catch (e:IOError)
{
trace("SWFLoader handling IOError");
}
catch (e:Error)
{
trace("SWFLoader handling Error");
}
In this I have deleted the swf file but still it is not coming in catch block of IOError.
Please help me to catch exceptions while loading swf files.
Thanks.