The following example shows how you can control whether the Adobe AIR FileSystemTree control displays only files, only subdirectories, or both by setting the enumerationMode property to one of the static constants in the FileSystemEnumerationMode class.

Full code after the jump.

[click to continue…]

{ 1 comment }

The following example shows how you can automatically scroll to a node in an Adobe AIR FileSystemTree control by using the openSubdirectory(), findIndex(), and scrollToIndex() methods.

Full code after the jump.

[click to continue…]

{ 1 comment }

The following example shows how you can open a subdirectory on a Adobe AIR FileSystemTree by calling the openSubdirectory() method and passing in a native file system path.

Full code after the jump.

[click to continue…]

{ 0 comments }

In a previous example, “Setting the root directory on a FileSystemTree control in Adobe AIR”, we saw how you could set the root directory on a FileSystemTree control by setting the directory property to a File object.

The following example shows how you can detect when the directory property changes on an Adobe AIR FileSystemTree control by listening for the directoryChange event.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the initial directory for the Adobe AIR FileSystemTree control by setting the directory property to a File object, which in this case is the user’s document’s directory.

Full code after the jump.

[click to continue…]

{ 3 comments }