Packagemx.events
Classpublic class FileEvent
InheritanceFileEvent Inheritance flash.events.Event

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : AIR 1.1

The FileEvent class represents event objects that are specific to the FileSystemList, FileSystemDataGrid, FileSystemTree and FileSystemComboBox controls.

See also

mx.controls.FileSystemComboBox
mx.controls.FileSystemDataGrid
mx.controls.FileSystemList
mx.controls.FileSystemTree


Public Properties
 PropertyDefined By
  AIR-only file : File
The File instance associated with this event.
FileEvent
Public Methods
 MethodDefined By
  
AIR-only FileEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, file:File = null)
Constructor.
FileEvent
Public Constants
 ConstantDefined By
  AIR-only DIRECTORY_CHANGE : String = directoryChange
[static] The FileEvent.DIRECTORY_CHANGE constant defines the value of the type property of the event object for a directoryChange event.
FileEvent
  AIR-only DIRECTORY_CHANGING : String = directoryChanging
[static] The FileEvent.DIRECTORY_CHANGING constant defines the value of the type property of the event object for a directoryChanging event.
FileEvent
  AIR-only DIRECTORY_CLOSING : String = directoryClosing
[static] The FileEvent.DIRECTORY_CLOSING constant defines the value of the type property of the event object for a directoryClosing event.
FileEvent
  AIR-only DIRECTORY_OPENING : String = directoryOpening
[static] The FileEvent.DIRECTORY_OPENING constant defines the value of the type property of the event object for a directoryOpening event.
FileEvent
  AIR-only FILE_CHOOSE : String = fileChoose
[static] The FileEvent.FILE_CHOOSE constant defines the value of the type property of the event object for a fileChoose event.
FileEvent
Property Detail
AIR-only fileproperty
public var file:File

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : AIR 1.1

The File instance associated with this event.

Constructor Detail
AIR-only FileEvent()Constructor
public function FileEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, file:File = null)

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : AIR 1.1

Constructor.

Parameters
type:String — The event type; indicates the action that caused the event.
 
bubbles:Boolean (default = false) — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean (default = false) — Specifies whether the behavior associated with the event can be prevented.
 
file:File (default = null) — The File instance associated with this event.
Constant Detail
AIR-only DIRECTORY_CHANGEConstant
public static const DIRECTORY_CHANGE:String = directoryChange

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : AIR 1.1

The FileEvent.DIRECTORY_CHANGE constant defines the value of the type property of the event object for a directoryChange event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
fileThe File object associated with this event.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
typeFileEvent.DIRECTORY_CHANGE

AIR-only DIRECTORY_CHANGINGConstant 
public static const DIRECTORY_CHANGING:String = directoryChanging

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : AIR 1.1

The FileEvent.DIRECTORY_CHANGING constant defines the value of the type property of the event object for a directoryChanging event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
fileThe File object associated with this event.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
typeFileEvent.DIRECTORY_CHANGING

AIR-only DIRECTORY_CLOSINGConstant 
public static const DIRECTORY_CLOSING:String = directoryClosing

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : AIR 1.1

The FileEvent.DIRECTORY_CLOSING constant defines the value of the type property of the event object for a directoryClosing event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
fileThe File object associated with this event.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
typeFileEvent.DIRECTORY_CLOSING

AIR-only DIRECTORY_OPENINGConstant 
public static const DIRECTORY_OPENING:String = directoryOpening

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : AIR 1.1

The FileEvent.DIRECTORY_OPENING constant defines the value of the type property of the event object for a directoryOpening event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelabletrue
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
fileThe File object associated with this event.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
typeFileEvent.DIRECTORY_OPENING

AIR-only FILE_CHOOSEConstant 
public static const FILE_CHOOSE:String = fileChoose

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : AIR 1.1

The FileEvent.FILE_CHOOSE constant defines the value of the type property of the event object for a fileChoose event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
fileThe File object associated with this event.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
typeFileEvent.FILE_CHOOSE