TraverseTreeOptions
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Version: | 20 July 2005 |
| Author: | Arthur Clemens |
| Classpath: | data.tree.TraverseTreeOptions |
| File last modified: | Monday, 25 July 2005, 00:40:12 |
Tree traverse options used by TraverseTreeEnumerator.
Usage:
In the following example the enumerator traverse options are read from checkboxes:
var traverseOptions:Number = TraverseTreeOptions.NONE; var shouldTraverse:Boolean = traverse_cb.value; if (shouldTraverse) { traverseOptions |= TraverseTreeOptions.TRAVERSE_CHILDREN; } var shouldLoop:Boolean = loop_cb.value; if (shouldLoop) { traverseOptions |= TraverseTreeOptions.LOOP; } var shouldSkipRoot:Boolean = skiproot_cb.value; if (shouldSkipRoot) { traverseOptions |= TraverseTreeOptions.SKIP_ROOT; }
Summary
Class properties
Class properties
LOOP
static LOOP:Number = (1<<2)
(read,write)
The enumerator loops to the first node.
NONE
static NONE:Number = (1<<0)
(read,write)
The enumerator does nothing.
SKIP_ROOT
static SKIP_ROOT:Number = (1<<3)
(read,write)
The enumerator skips the root node and stops at the first node after the root.
TRAVERSE_CHILDREN
static TRAVERSE_CHILDREN:Number = (1<<1)
(read,write)
The enumerator traverses all children.