A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to handle Exceptions for Loader/URLRequest

  1. #1
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006

    How to handle Exceptions for Loader/URLRequest


    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.

    As ever,
    Vinayak Kadam

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center