| Package | flash.events | 
| Class | public class IOErrorEvent | 
| Inheritance | IOErrorEvent  ErrorEvent  TextEvent  Event  Object | 
| Language version: | ActionScript 3.0 | 
| Runtime version: | 
You can check for error events that do not have any listeners by using the debugger 
version of Flash Player or the AIR Debug Launcher (ADL). The string defined by the 
text parameter of the IOErrorEvent constructor is displayed.
See also
| Method | Defined by | ||
|---|---|---|---|
| 
IOErrorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String = "", id:int = 0) 
	Creates an Event object that contains specific information about  ioErrorevents. | IOErrorEvent | ||
| 
	Creates a copy of the IOErrorEvent object and sets the value of each property to match that of the original. | IOErrorEvent | ||
|  | 
	 A utility function for implementing the  toString()method in custom 
	 ActionScript 3.0 Event classes. | Event | |
|  | 
	 Indicates whether an object has a specified property defined. | Object | |
|  | 
	Checks whether the  preventDefault()method has been called on the event. | Event | |
|  | 
	 Indicates whether an instance of the Object class is in the prototype chain of the object specified 
	 as the parameter. | Object | |
|  | 
	Cancels an event's default behavior if that behavior can be canceled. | Event | |
|  | 
	 Indicates whether the specified property exists and is enumerable. | Object | |
|  | 
     Sets the availability of a dynamic property for loop operations. | Object | |
|  | 
	Prevents processing of any event listeners in the current node and any subsequent nodes in 
	the event flow. | Event | |
|  | 
	Prevents processing of any event listeners in nodes subsequent to the current node in the 
	event flow. | Event | |
|  | 
	 Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
| 
	Returns a string that contains all the properties of the IOErrorEvent object. | IOErrorEvent | ||
|  | 
	 Returns the primitive value of the specified object. | Object | |
| Constant | Defined by | ||
|---|---|---|---|
|  | ACTIVATE : String = "activate" [static]
	The  ACTIVATEconstant defines the value of thetypeproperty of anactivateevent object. | Event | |
|  | ADDED : String = "added" [static]
	The  Event.ADDEDconstant defines the value of thetypeproperty of 
	anaddedevent object. | Event | |
|  | ADDED_TO_STAGE : String = "addedToStage" [static]
	The  Event.ADDED_TO_STAGEconstant defines the value of thetypeproperty of anaddedToStageevent object. | Event | |
|  | BROWSER_ZOOM_CHANGE : String = "browserZoomChange" [static]
    The  Event.BROWSER_ZOOM_CHANGEconstant defines the value of thetypeproperty of anbrowserZoomChangeevent object. | Event | |
|  | CANCEL : String = "cancel" [static]
	The  Event.CANCELconstant defines the value of thetypeproperty of acancelevent object. | Event | |
|  | CHANGE : String = "change" [static]
	The  Event.CHANGEconstant defines the value of thetypeproperty of achangeevent object. | Event | |
|  | CHANNEL_MESSAGE : String = "channelMessage" [static]
	The  Event.CHANNEL_MESSAGEconstant defines the value of thetypeproperty of achannelMessageevent object. | Event | |
|  | CHANNEL_STATE : String = "channelState" [static]
	The  Event.CHANNEL_STATEconstant defines the value of thetypeproperty of achannelStateevent object. | Event | |
|  | CLEAR : String = "clear" [static]
	The  Event.CLEARconstant defines the value of thetypeproperty 
	of aclearevent object. | Event | |
|  | CLOSE : String = "close" [static]
	The  Event.CLOSEconstant defines the value of thetypeproperty of acloseevent object. | Event | |
|  | CLOSING : String = "closing" [static]
	The  Event.CLOSINGconstant defines the value of thetypeproperty of aclosingevent object. | Event | |
|  | COMPLETE : String = "complete" [static]
	The  Event.COMPLETEconstant defines the value of thetypeproperty of acompleteevent object. | Event | |
|  | CONNECT : String = "connect" [static]
	The  Event.CONNECTconstant defines the value of thetypeproperty of aconnectevent object. | Event | |
|  | CONTEXT3D_CREATE : String = "context3DCreate" [static]
	The  Event.CONTEXT3D_CREATEconstant defines the value of thetypeproperty of acontext3Dcreateevent object. | Event | |
|  | COPY : String = "copy" [static]
	Defines the value of the  typeproperty of acopyevent object. | Event | |
|  | CUT : String = "cut" [static]
	Defines the value of the  typeproperty of acutevent object. | Event | |
|  | DEACTIVATE : String = "deactivate" [static]
	The  Event.DEACTIVATEconstant defines the value of thetypeproperty of adeactivateevent object. | Event | |
|  | DISPLAYING : String = "displaying" [static]
	 The  Event.DISPLAYINGconstant defines the value of thetypeproperty of adisplayingevent object. | Event | |
|  | ENTER_FRAME : String = "enterFrame" [static]
	The  Event.ENTER_FRAMEconstant defines the value of thetypeproperty of anenterFrameevent object. | Event | |
|  | ERROR : String = "error" [static]
	Defines the value of the  typeproperty of anerrorevent object. | ErrorEvent | |
|  | EXIT_FRAME : String = "exitFrame" [static]
	The  Event.EXIT_FRAMEconstant defines the value of thetypeproperty of anexitFrameevent object. | Event | |
|  | EXITING : String = "exiting" [static]
	The  Event.EXITINGconstant defines the value of thetypeproperty of anexitingevent object. | Event | |
|  | FRAME_CONSTRUCTED : String = "frameConstructed" [static]
	The  Event.FRAME_CONSTRUCTEDconstant defines the value of thetypeproperty of anframeConstructedevent object. | Event | |
|  | FRAME_LABEL : String = "frameLabel" [static]
	The  Event.FRAME_LABELconstant defines the value of thetypeproperty of anframeLabelevent object. | Event | |
|  | FULLSCREEN : String = "fullScreen" [static]
	The  Event.FULL_SCREENconstant defines the value of thetypeproperty of afullScreenevent object. | Event | |
|  | HTML_BOUNDS_CHANGE : String = "htmlBoundsChange" [static]
	The  Event.HTML_BOUNDS_CHANGEconstant defines the value of thetypeproperty of anhtmlBoundsChangeevent object. | Event | |
|  | HTML_DOM_INITIALIZE : String = "htmlDOMInitialize" [static]
	The  Event.HTML_DOM_INITIALIZEconstant defines the value of thetypeproperty 
	of anhtmlDOMInitializeevent object. | Event | |
|  | HTML_RENDER : String = "htmlRender" [static]
	The  Event.HTML_RENDERconstant defines the value of thetypeproperty of anhtmlRenderevent object. | Event | |
|  | ID3 : String = "id3" [static]
	The  Event.ID3constant defines the value of thetypeproperty of anid3event object. | Event | |
|  | INIT : String = "init" [static]
	The  Event.INITconstant defines the value of thetypeproperty of aninitevent object. | Event | |
| IO_ERROR : String = "ioError" [static]
	Defines the value of the  typeproperty of anioErrorevent object. | IOErrorEvent | ||
|  | LINK : String = "link" [static]
     Defines the value of the  typeproperty of alinkevent object. | TextEvent | |
|  | LOCATION_CHANGE : String = "locationChange" [static]
	The  Event.LOCATION_CHANGEconstant defines the value of thetypeproperty of alocationChangeevent object. | Event | |
|  | MOUSE_LEAVE : String = "mouseLeave" [static]
	The  Event.MOUSE_LEAVEconstant defines the value of thetypeproperty of amouseLeaveevent object. | Event | |
|  | NETWORK_CHANGE : String = "networkChange" [static]
	The  Event.NETWORK_CHANGEconstant defines the value of thetypeproperty of anetworkChangeevent object. | Event | |
|  | OPEN : String = "open" [static]
	The  Event.OPENconstant defines the value of thetypeproperty of anopenevent object. | Event | |
|  | PASTE : String = "paste" [static]
	The  Event.PASTEconstant defines the value of thetypeproperty of apasteevent object. | Event | |
|  | PREPARING : String = "preparing" [static]
	 The  Event.PREPARINGconstant defines the value of thetypeproperty of apreparingevent object. | Event | |
|  | REMOVED : String = "removed" [static]
	The  Event.REMOVEDconstant defines the value of thetypeproperty of
	aremovedevent object. | Event | |
|  | REMOVED_FROM_STAGE : String = "removedFromStage" [static]
	The  Event.REMOVED_FROM_STAGEconstant defines the value of thetypeproperty of aremovedFromStageevent object. | Event | |
|  | RENDER : String = "render" [static]
	The  Event.RENDERconstant defines the value of thetypeproperty of arenderevent object. | Event | |
|  | RESIZE : String = "resize" [static]
	The  Event.RESIZEconstant defines the value of thetypeproperty of aresizeevent object. | Event | |
|  | SCROLL : String = "scroll" [static]
	The  Event.SCROLLconstant defines the value of thetypeproperty of ascrollevent object. | Event | |
|  | SELECT : String = "select" [static]
	The  Event.SELECTconstant defines the value of thetypeproperty of aselectevent object. | Event | |
|  | SELECT_ALL : String = "selectAll" [static]
	The  Event.SELECT_ALLconstant defines the value of thetypeproperty of aselectAllevent object. | Event | |
|  | SOUND_COMPLETE : String = "soundComplete" [static]
	The  Event.SOUND_COMPLETEconstant defines the value of thetypeproperty of asoundCompleteevent object. | Event | |
|  | STANDARD_ERROR_CLOSE : String = "standardErrorClose" [static]
	The  Event.STANDARD_ERROR_CLOSEconstant defines the value of thetypeproperty of astandardErrorCloseevent object. | Event | |
| STANDARD_ERROR_IO_ERROR : String = "standardErrorIoError" [static]
	 The  standardErrorIoErrorevent is dispatched when an error occurs while 
	 reading data from the standardError stream of a NativeProcess object. | IOErrorEvent | ||
|  | STANDARD_INPUT_CLOSE : String = "standardInputClose" [static]
	The  Event.STANDARD_INPUT_CLOSEconstant defines the value of thetypeproperty of astandardInputCloseevent object. | Event | |
| STANDARD_INPUT_IO_ERROR : String = "standardInputIoError" [static]
	 The  standardInputIoErrorevent is dispatched when an error occurs while 
	 writing data to the standardInput of a NativeProcess object. | IOErrorEvent | ||
|  | STANDARD_OUTPUT_CLOSE : String = "standardOutputClose" [static]
	The  Event.STANDARD_OUTPUT_CLOSEconstant defines the value of thetypeproperty of astandardOutputCloseevent object. | Event | |
| STANDARD_OUTPUT_IO_ERROR : String = "standardOutputIoError" [static]
	 The  standardOutputIoErrorevent is dispatched when an error occurs while 
	 reading data from the standardOutput stream of a NativeProcess object. | IOErrorEvent | ||
|  | SUSPEND : String = "suspend" [static]
	The  Event.SUSPENDconstant defines the value of thetypeproperty of ansuspendevent object. | Event | |
|  | TAB_CHILDREN_CHANGE : String = "tabChildrenChange" [static]
	The  Event.TAB_CHILDREN_CHANGEconstant defines the value of thetypeproperty of atabChildrenChangeevent object. | Event | |
|  | TAB_ENABLED_CHANGE : String = "tabEnabledChange" [static]
	The  Event.TAB_ENABLED_CHANGEconstant defines the value of thetypeproperty of atabEnabledChangeevent object. | Event | |
|  | TAB_INDEX_CHANGE : String = "tabIndexChange" [static]
	The  Event.TAB_INDEX_CHANGEconstant defines the value of thetypeproperty of atabIndexChangeevent object. | Event | |
|  | TEXT_INPUT : String = "textInput" [static]
     Defines the value of the  typeproperty of atextInputevent object. | TextEvent | |
|  | TEXT_INTERACTION_MODE_CHANGE : String = "textInteractionModeChange" [static]
	The  Event.TEXT_INTERACTION_MODE_CHANGEconstant defines the value of thetypeproperty of ainteraction modeevent object. | Event | |
|  | TEXTURE_READY : String = "textureReady" [static]
	The  Event.TEXTURE_READYconstant defines the value of thetypeproperty of atextureReadyevent object. | Event | |
|  | UNLOAD : String = "unload" [static]
	The  Event.UNLOADconstant defines the value of thetypeproperty of anunloadevent object. | Event | |
|  | USER_IDLE : String = "userIdle" [static]
	The  Event.USER_IDLEconstant defines the value of thetypeproperty of auserIdleevent object. | Event | |
|  | USER_PRESENT : String = "userPresent" [static]
	The  Event.USER_PRESENTconstant defines the value of thetypeproperty of auserPresentevent object. | Event | |
|  | VIDEO_FRAME : String = "videoFrame" [static]
	The  Event.VIDEO_FRAMEconstant defines the value of thetypeproperty of avideoFrameevent object. | Event | |
|  | WORKER_STATE : String = "workerState" [static]
	The  Event.WORKER_STATEconstant defines the value of thetypeproperty of aworkerStateevent object. | Event | |
| IOErrorEvent | () | constructor | 
public function IOErrorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String = "", id:int = 0)
| Language version: | ActionScript 3.0 | 
| Runtime version: | 
	Creates an Event object that contains specific information about ioError events.
	Event objects are passed as parameters to Event listeners.
		
| type:String—  The type of the event. Event listeners can access this information through the inheritedtypeproperty. There is only one type of input/output error event:IOErrorEvent.IO_ERROR. | |
| bubbles:Boolean(default =false)— Determines whether the Event object participates in the bubbling stage of the event flow. Event listeners can access this information through the inheritedbubblesproperty. | |
| cancelable:Boolean(default =false)— Determines whether the Event object can be canceled. Event listeners can access this information through the inheritedcancelableproperty. | |
| text:String(default = "")— Text to be displayed as an error message. Event listeners can access this information through thetextproperty. | |
| id:int(default =0)— A reference number to associate with the specific error (supported in Adobe AIR only). | 
See also
| clone | () | method | 
public override function clone():Event
| Language version: | ActionScript 3.0 | 
| Runtime version: | 
Creates a copy of the IOErrorEvent object and sets the value of each property to match that of the original.
Returns| Event— 
                        A new IOErrorEvent object with property values that match those of the original. | 
| toString | () | method | 
public override function toString():String
| Language version: | ActionScript 3.0 | 
| Runtime version: | 
Returns a string that contains all the properties of the IOErrorEvent object. The string is in the following format:
[IOErrorEvent type=value bubbles=value cancelable=value text=value errorID=value]
	The errorId is only available in Adobe AIR
| String— 
                        A string that contains all the properties of the IOErrorEvent object. | 
| IO_ERROR | constant | 
public static const IO_ERROR:String = "ioError"
| Language version: | ActionScript 3.0 | 
| Runtime version: | 
	Defines the value of the type property of an ioError event object.
	
This event has the following properties:
| Property | Value | 
|---|---|
| bubbles | false | 
| cancelable | false; there is no default behavior to cancel. | 
| currentTarget | The object that is actively processing the Event object with an event listener. | 
| errorID | A reference number associated with the specific error (AIR only). | 
| target | The network object experiencing the input/output error. | 
| text | Text to be displayed as an error message. | 
See also
| STANDARD_ERROR_IO_ERROR | constant | 
public static const STANDARD_ERROR_IO_ERROR:String = "standardErrorIoError"
| Language version: | ActionScript 3.0 | 
| Runtime version: | AIR 2 | 
	 The standardErrorIoError event is dispatched when an error occurs while 
	 reading data from the standardError stream of a NativeProcess object.
	 
This event has the following properties:
| Property | Value | 
|---|---|
| bubbles | No. | 
| cancelable | No. There is no default behavior to cancel. | 
| errorID | The reference number associated with the specific error. | 
| target | The object on which the error occurred. | 
| text | Text to be displayed as an error message. | 
| STANDARD_INPUT_IO_ERROR | constant | 
public static const STANDARD_INPUT_IO_ERROR:String = "standardInputIoError"
| Language version: | ActionScript 3.0 | 
| Runtime version: | AIR 2 | 
	 The standardInputIoError event is dispatched when an error occurs while 
	 writing data to the standardInput of a NativeProcess object.
	 
This event has the following properties:
| Property | Value | 
|---|---|
| bubbles | No. | 
| cancelable | No. There is no default behavior to cancel. | 
| errorID | The reference number associated with the specific error. | 
| target | The object on which the error occurred. | 
| text | Text to be displayed as an error message. | 
| STANDARD_OUTPUT_IO_ERROR | constant | 
public static const STANDARD_OUTPUT_IO_ERROR:String = "standardOutputIoError"
| Language version: | ActionScript 3.0 | 
| Runtime version: | AIR 2 | 
	 The standardOutputIoError event is dispatched when an error occurs while 
	 reading data from the standardOutput stream of a NativeProcess object.
	 
This event has the following properties:
| Property | Value | 
|---|---|
| bubbles | No. | 
| cancelable | No. There is no default behavior to cancel. | 
| errorID | The reference number associated with the specific error. | 
| target | The object on which the error occurred. | 
| text | Text to be displayed as an error message. | 
IOErrorEventExample class to show how an error
  event object is dispatched when an attempt is made to load a nonexistent file.  The example carries out the following tasks:
  loader.ioError, which has
  	an associated subscriber method ioErrorHandler(), which simply prints information about
  	the event using trace().request,
  	passing MissingFile.xml so that the name and location of the missing file are 
  known.request variable is then passed to loader.load(), which attempts to load the
  	missing file.  Since the file is missing, the event handler dispatches an ioError event.Notes:
package {
	import flash.display.Sprite;
	import flash.events.IOErrorEvent;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	public class IOErrorEventExample extends Sprite {
		public function IOErrorEventExample() {
			var loader:URLLoader = new URLLoader();
			loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
			var request:URLRequest = new URLRequest("MissingFile.xml");
			loader.load(request);
		}
		private function ioErrorHandler(event:IOErrorEvent):void {
			trace("ioErrorHandler: " + event);
		}
	}
}
