My favorites | Sign in
Logo
                
Search
for
Updated Jul 05, 2009 by zwetan
Labels: Documentation
Errors  
the different type of errors.

The Error class in AS3

top-level

flash.errors package

Note : The flash.events.ErrorEvent is used to dispatch an error in the event flow, if no listener are registered in the dispatcher the event throws a message :

import flash.events.ErrorEvent ;
import flash.events.EventDispatcher ;

var handleError:Function = function( e:ErrorEvent ):void
{
    trace( "handle : " + e ) ;
}

var dispatcher:EventDispatcher = new EventDispatcher() ;

// dispatcher.addEventListener( "test" , handleError ) ; // uncomment this line to test the ErrorEvent normal propagation

dispatcher.dispatchEvent( new ErrorEvent("test", false, false, "hello world" ) ) ;

The Error class in Maashaack

system.errors package


Sign in to add a comment
Hosted by Google Code