-
Senior Member
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.
-
.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|