Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
FileEvent

Package | mx.events
Class | public class FileEvent
Inheritance | FileEvent 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

| Property | Defined By
--- | --- | ---
|  | file : File The File instance associated with this event. | FileEvent

Public Methods

| Method | Defined By
--- | --- | ---
|  | FileEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, file:File = null) Constructor. | FileEvent

Public Constants

| Constant | Defined By
--- | --- | ---
|  | 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
|  | 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
|  | 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
|  | 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
|  | 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

file | property

`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

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

DIRECTORY_CHANGE | Constant

`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:

Property | Value
--- | ---
`bubbles` | false
`cancelable` | false
`currentTarget` | The 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`.
`file` | The File object associated with this event.
`target` | The 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.
`type` | FileEvent.DIRECTORY_CHANGE

DIRECTORY_CHANGING | Constant |

`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:

Property | Value
--- | ---
`bubbles` | false
`cancelable` | true
`currentTarget` | The 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`.
`file` | The File object associated with this event.
`target` | The 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.
`type` | FileEvent.DIRECTORY_CHANGING

DIRECTORY_CLOSING | Constant |

`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:

Property | Value
--- | ---
`bubbles` | false
`cancelable` | true
`currentTarget` | The 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`.
`file` | The File object associated with this event.
`target` | The 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.
`type` | FileEvent.DIRECTORY_CLOSING

DIRECTORY_OPENING | Constant |

`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:

Property | Value
--- | ---
`bubbles` | false
`cancelable` | true
`currentTarget` | The 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`.
`file` | The File object associated with this event.
`target` | The 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.
`type` | FileEvent.DIRECTORY_OPENING

FILE_CHOOSE | Constant |

`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:

Property | Value
--- | ---
`bubbles` | false
`cancelable` | false
`currentTarget` | The 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`.
`file` | The File object associated with this event.
`target` | The 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.
`type` | FileEvent.FILE_CHOOSE

Wed Nov 15 2017, 09:50 AM +01:00