|
Errors
the different type of errors.
The Error class in AS3top-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 Maashaacksystem.errors package
|
Sign in to add a comment