com.judah.controls

class dndTree

mx.updatedcontrols.List | +--mx.updatedcontrols.Tree | +--com.judah.controls.dndTree

class dndTree extends Tree
Drag and drop Tree class
The dndTree is an enhanced Tree component extended from the Macromedia Tree. It follows the same model as the Macromedia Tree and can follow the same examples. The dndTree inherits all the properties and methods of the classes it inherits including all the properties and methods of the MovieClip > UIObject class > UIComponent class > View > ScrollView > ScrollSelectList > List component and Tree classes. To begin, study the properties and methods of the Macromedia Tree, TreeDataProvider and the XMLObject class documentation first. The inherited properties and methods are listed in the Flash Help Panel in the Macromedia List and Tree component documentation. The additional properties and methods the dndTree adds are listed here. Since the data you are dealing with in the Tree is XML and XMLNode objects, you should become familiar with the XML and XMLNode classes to learn how to navigate and find specific information. To get started read the getting started page.
  • Example:
    This first example loads data into the Tree from an xml file. The second example adds data to the Tree from the timeline.
    // Example 1
    // Define XML object to load the external data
    dataTreeDP = new XML();
    // set this to true to get rid of white space in your xml
    dataTreeDP.ignoreWhite = true;
     
    // load data into Tree
    function loadData() {
    	// load an xml structure data from an xml object
    	dataTreeDP.load("testdata.xml");
    	
    	// onLoad event gets called when the xml file is loaded
    	dataTreeDP.onLoad = function() {
    		// set the loaded xml file into the Tree
    		// if your xml nodes do not have a label attributes then you need to add it to 
    		// your nodes or set the labelField or labelFunction to the attribute you want to use as your label
    		theTree.dataProvider = dataTreeDP;
    		// open the root node
    		theTree.setIsOpen(theTree.getTreeNodeAt(0), true);
    	}
    }
    // load data into the tree
    loadData()
    
    // Example 2
    // set the dataProvider to a new XML object
    theTree.dataProvider = new XML();
    // using addTreeNode to add a node to the root and get a reference to that node
    var rootNode = theTree.addTreeNode("Root");
    // add node to the root node
    rootNode.addTreeNode("Child Node");
    // open the root node. we could have passed in rootNode and it would have worked the same
    theTree.setIsOpen(theTree.getTreeNodeAt(0), true);
    

Field Summary

public ADD_BRANCH: Number
Add Branch constant
public ADD_LEAF: Number
Add Leaf constant
Event generated when a branch node is added
public addBranchPastePosition: String
Position to paste new branch nodes
Event generated when a leaf node is added
public addLeafPastePosition: String
Position to paste new leaf
public branchNodeXML: String
Default XML to use when adding branch nodes
public canDropOnEmptyRows: Boolean
Can drop on empty rows
public className: String
Class name of the component class
public clickThreshold: Number
Time in milliseconds to separate a doubleclick from a delayed click
public cm: ContextMenu
Reference to the ContextMenu
public COPY_ITEM: Number
Copy Item constant
public copyIcon: MovieClip
Copy icon shown when dragging
Event generated when a node is copied
public CUT_ITEM: Number
Cut Item constant
Event generated when a node is cut
Event generated when a row is delayed clicked
public dndEnabled: Boolean
Enables or disables drag and drop
public dndGutter: Number
The height in pixels of the gutter space inbetween nodes
public dndReadOnly: Boolean
Enables all move operations to be copy operations
public doNotInsertOnDrop: Boolean
Do not insert a row on drop
Event generated when a row is double clicked
public drag_mc: MovieClip
Id of movieclip when dragging and dropping rows
public dragDuplicateRow: Boolean
Creates an exact duplicate of the row you are dragging.
public dragHighlightAlpha: Number
Transparency amount of the highlight rectangle when dragging
public dragOnRollOut: Boolean
start dragging when you mouse moves out of the row
public dragOverPos: Number
Contains current or last position of the dragged node
public dragRowStyle: String
The default row style of the rows in the drag mc
public drop_Event
Event generated after a drag and drop
public DROP_EVENT: Number
Drop Event constant
Enable automatic horizontal scrollbars
public enabled: Boolean
Enables or disables the Tree
public enableDisplayLabel: Boolean
Displays or hides the node label while dragging. Deprecated
public enableDragHighlight: Boolean
Displays or hides a highlight rectangle when dragging. Deprecated
public enableDragIcon: Boolean
Displays or hides a node's icon when dragging. Deprecated
public enableDragLine: Boolean
Draws a drag line over rows
public enableGenericIcon: Boolean
Displays or hides the default generic drag icon when dragging. Deprecated
public enableKeySearch: Boolean
Determines if keypresses in the Tree find and select rows
public enableRenameNode: Boolean
Determines if nodes can be renamed from within the textfield in the Tree
public enableToolTip: Boolean
Enable tooltip
public errorMsg: String
Error message variable
public lastMovedIndex: Number
Index of the last moved node
public lastMovedIndices: Array
Indices of the last moved nodes
public lastMovedItem: Object
Reference to the last node moved
public lastMovedItems: Array
Reference to the last nodes moved
public lastMovedParent: Object
Parent node of the last moved node
public lastMovedParents: Array
Parent nodes of the last moved nodes
public lastMovedSource: Object
Owner of the last moved node
public lastMovedSources: Object
Owners of the last moved nodes
public lastOver: Number
Absolute index of the row the mouse was last over
public lastOverIndex: Number
Relative index of the row the mouse was last over
public lastSelectedSources: Object
Owners of the last selected nodes
public leafNodeXML: String
Default XML to use when adding leaf nodes
public menu
Reference to the current ContextMenu.
public MENU_EVENT: Number
Menu Event constant
public METHOD_CALL: Number
Method Call constant
public movementBeforeDrag: Number
number of pixels to move before we start dragging
public multipleSelection: Boolean
If true mutiple row selection is allowed
public nodeIcon: MovieClip
Node icon to show when dragging. Deprecated
Event generated when a branch node is opened
Event generated when a branch node is closed
Open a closed branch on paste into
public PASTE_AFTER: Number
Paste After constant
public PASTE_BEFORE: Number
Paste Before constant
public PASTE_INTO: Number
Paste Into constant
Event generated after pasteNode method is called
public preserveBranches: Boolean
Preserves branch nodes as branch nodes
public preventDropIntoLeafNodes: Boolean
Prevents the user from dropping into a leaf node
public REMOVE_ITEM: Number
Remove Item constant
Event generated when a node is removed
public RENAME_ITEM: Number
Rename Item constant
public renameField: String
Name of rename label to access when using a cellrenderer
Event generated when a node is renamed
public renameOnDoubleClick: Boolean
Determines if an item can be renamed on double click
public renameTextRestrict: String
Indicates set of characters a user may enter into the rename text field.
public root_mc: MovieClip
Reference to the root movieclip
public scrollDragSpeed: Number
Scroll drag speed in milliseconds
public showDebug: Boolean
Shows debug information
public showToolTipsOnAllRows: Boolean
Show tooltips on all rows
Event generated when a row is single clicked
public strAddBranch: String
Context Menu Item Add Branch string. Deprecated
public strAddLeaf: String
Context Menu Item Add Leaf string. Deprecated
public strCopyIcon: String
Id of icon to show when copying a node
public strCopyItem: String
Context Menu Item Copy string. Deprecated
public strCutItem: String
Context Menu Item Cut string. Deprecated
public strDragBranchIcon: String
Id of icon when dragging a closed branch node. Deprecated
Id of icon when dragging an opened branch node. Deprecated
public strDragLeafIcon: String
Id of icon when dragging a leaf node. Deprecated
public strGenericIcon: String
Id of generic icon. Deprecated
public strNoDropIcon: String
Id of icon when dragging is not permitted
public strPasteAfter: String
Context Menu Item Paste After string. Deprecated
public strPasteBefore: String
Context Menu Item Paste Before string. Deprecated
public strPasteInto: String
Context Menu Item Paste Into string. Deprecated
Context Menu Item Remove string. Deprecated
Context Menu Item Rename string. Deprecated
static symbolName: String
The name of the ActionScript class
static symbolOwner: Object
The fully qualified class name
public targetNode: Object
Reference to the target node after drag and drop
public theCopyGridItems: Array
Reference to the copied datagrid items
public theCopyItems: Array
Reference to the copied list items
public theCopyNodes: Array
Reference to the copied nodes
public thePasteToParentNode: XMLNode
Parent node where nodes were pasted into
public thePasteToPosition: Number
Relative index in the parent node where nodes were pasted into
public toolTipDelay: Number
Tooltip delayed response in milliseconds
public toolTipDepth: Number
Tooltip depth
public trackDebug: Boolean
Track debug messages in errorMsg variable
public trashCan: MovieClip
Deprecated. Since version 2
public versionNumber: String
Current version number for this component
public visible: Boolean
Displays or hides the tree
Fields inherited from class mx.updatedcontrols.Tree

Property Summary

public copyControlMode (read-only)
controls copy
public copyIconX: Number (write)
Sets the X coordinate for the copy icon
public copyIconX (read)
Gets the X coordinate for the copy icon
public copyIconY: Number (write)
Sets the Y coordinate for the copy icon
public copyIconY (read)
Gets the Y coordinate for the copy icon
public enableContextMenu: Boolean (read, write)
getterEnables or disables the right-click context menu
Properties inherited from class mx.updatedcontrols.Tree

Constructor

public dndTree ( )
Constructor used when creating a new tree

Method Summary

public addBranchNode ( theTargetNode, pastePosition, theSourceNode )
Method to add a branch node to the tree
public addError ( strFunction, strMessage )
adds an error
public addLeafNode ( theTargetNode, pastePosition, theSourceNode )
Method to add a leaf node to the tree
public cancelRename ( )
Cancels a rename node operation
public convertToGridItem ( theNode )
Converts single tree node into a datagrid row
public convertToItem ( theNode )
Converts single tree node into a list item
public copyNode ( theNodes, eventSource )
A function to copy nodes from the Tree
public cutNode ( theNodes, eventSource, eventType )
A function to cut node from the Tree
public drawSeparator ( objPoint, row, dragOverPos, bCanDrop )
Draws separator line when dragging
public dropNode ( theSourceNode, theTargetNode, pastePosition, moveNode, eventSource, eventConstant )
Method called when user drags and drops nodes
public getIsLeaf ( node: XMLNode )
Checks if node is a leaf node
public getNodeIcon ( theNode, subIcon )
Gets the icon of the node
public getNodeLabel ( theNode, subLabel )
Gets the label of the node
public getRoot ( mc )
Find root movieclip
public hideToolTip ( )
Method to hide tooltip
public iconFunction ( node )
Method to manually set the icon of the row
public labelFunction ( node )
Method to manually set the label of the row
public modifyDragMC ( drag_mc )
Modifies the drag movieclip before dragging
User customizable function for manipulating the context menu
public onRowDragOver ( rowIndex : Number ): Void
overrides the onRowDragOver event of ScrollSelectList class
public onRowRollOut ( rowIndex : Number ): Void
row roll out listener
public onRowRollOver ( rowIndex : Number ): Void
row roll over listener
public pasteNode ( theSourceNode, theTargetNode, pastePosition, moveNode, eventSource, eventConstant )
Method to insert or move nodes into the Tree
public permitClose ( theNode )
A user defined function to allow close of a node
public permitContextMenu ( theSourceNode, theAction, theMenuItem, theContextMenu )
A user defined function to display context menu items
public permitDropFunction ( theSourceNode, theTargetNode, theAction )
A user defined function to allow or prevent drop
public permitOpen ( theNode )
A user defined function to allow open of node
public permitOpenClose ( theNode, bOpen )
A user defined function to allow open or closing of node. Deprecated.
public permitRemove ( obj, menuItem, menuCaption, eventType, cellIndex )
Lets the user show an alert before a cut or remove event
public permitRename ( theSourceNode )
A user defined function to allow rename on a node
Removes items from the clipboard
public renameFunction ( rowIndex, eventSource )
Lets the user override the normal rename method
Shows or hides horizontal scroll bars if they are needed for the current set of visible rows
public setHorizontalScrollLater ( ): Void
displays scroll bars if the tree needs it. this runs on the next frame after setHorizontalScroll is called
public setNodeLabel ( theNode: XMLNode, labelText: String ): String
A method to call to set the node label
public showRenameNode ( rowIndex: Number, eventSource )
Shows renaming textfield over row
public showToolTip ( )
Method to display tooltip
public toolTipFunction ( row_mc )
Method to modify tooltip movieclip directly after it has been created
public traced ( strMessage )
trace output if showDebug is true
public validateNodeLabel ( newText: String, renameTextField: TextField ): Boolean
Validates renamed node labels

Field Documentation

cm

public var cm: ContextMenu
Reference to the ContextMenu
ContextMenu; Reference to ContextMenu. The ContextMenu class is documented in the Help Panel. You can change the context menu items easily by following the examples in the Help Panel or by following the examples provided with the component.

The contextMenu has an additional method called, "find(caption:String)" that returns the item by matching the item's caption. Each customItem in the customItems array, the array of items that make up the context menu, have an additional "action" property that contains one of the dndTree contants, PASTE_INTO, PASTER_AFTER, etc. useful for internal dndTree methods.

When you create your own context menu items add the owner property. The owner should be a reference to the component. This allows the component to work inside nested movieclips.

This is also a duplicate of the menu property. You do not want to over write the menu property with your own menu because the menu will not work in nested movieclips in Flash Player 7 and 8. Instead add or remove items from the existing menu or if you would like to use a different menu add it to the contextMenu property. This will provide the necessary behaviors to work in nested movieclips and to handle selecting the node the mouse is over (which is not always the selected node). You can always revert back to the default contextMenu by setting contextMenu to the cm property.

To change the text of any of the existing menu items use the caption property. For example, myTree.cm.customItems[0].caption = "new text".

drop_Event

public var drop_Event
Event generated after a drag and drop
Event. Event generated after a user drags and drops nodes into the Tree. This event includes five properties. The target contains a reference to the Tree, eventSource contains an internal constant for the DROP_EVENT, pastePosition contains the location in the target node where the paste occured (PASTE_INTO, PASTE_BEFORE, PASTE_AFTER), targetNode contains a reference to the target node and targetIndex contains a reference to the targetIndex. You can also use properties in the Tree for more information. Some useful properties are lastMovedItem, lastMovedIndex, lastMovedParent, lastMovedSource, lastMovedItems, lastMovedIndices, lastMovedParents, lastMovedSources, lastSelectedSources, selectedNode, selectedNode.firstChild and selectedNodes.
  • Usage:
    myInstance.addEventListener("onDrop", myListener);
  • Example:
    The example below adds a listener to the drop event.
    // include delegation class
    import mx.utils.Delegate;
    // Drop Event
    function nodeDrop(evt) {
    trace("A node has been dropped onto the Tree!");
    // reference to the tree
    var theTree = evt.target;
    // references to all the nodes and components involved 
    trace("pastePosition="+evt.pastePosition);
    trace("thePasteToPosition="+theTree.thePasteToPosition);
    trace("thePasteToParentNode="+theTree.thePasteToParentNode);
    trace("lastMovedItem="+theTree.lastMovedItem);
    trace("lastMovedIndex="+theTree.lastMovedIndex);
    trace("lastMovedParent="+theTree.lastMovedParent);
    trace("lastMovedSource="+theTree.lastMovedSource);
    trace("lastMovedItems="+theTree.lastMovedItems);
    trace("lastMovedIndices="+theTree.lastMovedIndices);
    trace("lastMovedParents="+theTree.lastMovedParents);
    trace("lastMovedSources="+theTree.lastMovedSources);
    trace("targetNode="+theTree.targetNode);
    trace("targetNode="+theTree.selectedNode);
    trace("targetNode="+theTree.selectedNodes);
    trace("targetNode="+theTree.selectedNode.firstChild);
    }
    // we add a function that "listens" for the drop event. When a drop event is generated this function gets called. 
    theTree.addEventListener("onDrop", Delegate.create(this, nodeDrop));
    

pasteNode_Event

public var pasteNode_Event
Event generated after pasteNode method is called
Event. Event generated after the pasteNode method is called. When items are cut, copied or removed they are copied into the dndComponent.theCopyItems, dndComponent.theCopyNodes and the dndComponent.theCopyGridItems arrays. If enableCrossDrag property is true then the cut, copied or removed items will be available to any dndComponent that also has their cross drag property enabled. When you then paste from the context menu this is where those items come from. This event includes five properties. The target contains a reference to the Tree, eventSource contains an internal constant for METHOD_CALL, pastePosition contains the location in the target node where the paste occured (PASTE_INTO, PASTE_BEFORE, PASTE_AFTER), targetNode contains a reference to the targetNode and targetIndex contains a reference to the target index. You can also use properties in the Tree for more information. Some useful properties are lastMovedItem, lastMovedIndex, lastMovedParent, lastMovedSource, lastMovedItems, lastMovedIndices, lastMovedParents, lastMovedSources, lastSelectedSources, selectedNode, selectedNode.firstChild and selectedNodes.
  • Usage:
    myInstance.addEventListener("pasteNode", myListener);
  • Example:
    The example below adds a listener to the pasteNode event.
    // include delegation class
    import mx.utils.Delegate;
    // Paste Node event function
    function pasteNodeEvent(evt) {
    trace("A node has been pasted into the Tree!");
    // reference to the tree
    var theTree = evt.target;
    // references to all the nodes and components involved 
    trace("pastePosition="+evt.pastePosition);
    trace("thePasteToPosition="+theTree.thePasteToPosition);
    trace("thePasteToParentNode="+theTree.thePasteToParentNode);
    trace("lastMovedItem="+theTree.lastMovedItem);
    trace("lastMovedIndex="+theTree.lastMovedIndex);
    trace("lastMovedParent="+theTree.lastMovedParent);
    trace("lastMovedSource="+theTree.lastMovedSource);
    trace("lastMovedItems="+theTree.lastMovedItems);
    trace("lastMovedIndices="+theTree.lastMovedIndices);
    trace("lastMovedParents="+theTree.lastMovedParents);
    trace("lastMovedSources="+theTree.lastMovedSources);
    trace("targetNode="+theTree.targetNode);
    trace("targetNode="+theTree.selectedNode);
    trace("targetNode="+theTree.selectedNodes);
    trace("targetNode="+theTree.selectedNode.firstChild);
    }
    // we add a function that "listens" for the paste event. When a pasteNode event is generated this function gets called. 
    theTree.addEventListener("pasteNode", Delegate.create(this, pasteNodeEvent));
    

Property Documentation


Constructor Documentation


Method Documentation

drawSeparator

public function drawSeparator (
objPoint,
row,
dragOverPos,
bCanDrop)
Draws separator line when dragging
Draws separator line when dragging. This method is provided in case you want to create your own drag separator. For example, you could use this function to highlight rows as you drag over them. The enableDragLine must be set to true to use this function.

pasteNode

public function pasteNode (
theSourceNode,
theTargetNode,
pastePosition,
moveNode,
eventSource,
eventConstant)
Method to insert or move nodes into the Tree
Method to insert or move nodes into the Tree at specific places. A pasteNode event is generated when this method is called. The event contains the target, which is a reference to the Tree, the eventSource, which indicates if the method was called from the context menu, pastePosition, which indicates the position above, below or into the target node, targetNode, which is a reference to the target node and targetIndex which is the target node index.
  • Parameters:
    theSourceNode
    theSourceNodes - The node or nodes that will be inserted into the tree.
    theTargetNode
    - The location by node of where to insert the source nodes.
    pastePosition
    - Constant that refers to the paste position (PASTE_INTO, PASTE_BEFORE, PASTE_AFTER).
    moveNode
    - Boolean. Indicates to move or copy the nodes from their original location.
    eventSource
    - Optional. A constant used to indicate the source of the method. Also used to generate the appropriate events (pasteNode, drop, addLeafNode, addBranchNode). Value can be DROP_EVENT, MENU_EVENT or METHOD_CALL. If not specified a pasteNode event is generated.
    eventConstant
    - Optional. A constant used to indicate and generate an ADD_LEAF or ADD_BRANCH event.
  • Returns:
    Returns a reference to the XMLNode or an array of XMLNodes. Same reference as selectedNode or selectedNodes.
  • Usage:
    myInstance.pasteNode(theSourceNode, theTargetNode, pastePosition, moveNode, eventSource, eventConstant);
  • Example:
    The example below pastes a node into the root node.
    theTree.pasteNode(theTree.selectedNode, theTree.dataProvider, theTree.PASTE_INTO, true);
    

permitContextMenu

public function permitContextMenu (
theSourceNode,
theAction,
theMenuItem,
theContextMenu)
A user defined function to display context menu items
A user defined function to show or hide context menu items. When a user right-clicks on a node in the Tree the permitContextMenu function is called for every item in the menu. If you return true to this function the menu item shows up. If you return false then the menu item is hidden. If you have multiple nodes selected this procedure is called on every node. Any node that hides a menu item for itself hides it for the rest of the nodes. For example, let's say you did not want the user to cut out any branch nodes. So you would use this function to check if the menu item being checked is a CUT_ITEM menu item and theSourceNode being passed in is a branch. If they are then return false. Now, lets say the user has selected nine leaf nodes and one branch node. Because we are returning false on the conditions we have setup in this function the "Cut Item" menu item will not show up in the context menu.
  • Parameters:
    theSourceNode
    theSourceNode:XMLNode - The selected node
    theAction
    theAction:String - Reference to a static event variable if one is assigned such as (PASTE_INTO, ADD_LEAF, etc).
    theMenuItem
    theMenuItem:Object - Reference to custom item object
    theContextMenu
    theContextMenu:ContextMenu - Reference to the context menu
  • Returns:
    Boolean
  • Usage:
    myInstance.permitContextMenu = function(theSourceNode,theAction,theMenuItem,theContextMenu) {};
  • Example:
    The example below hides the "Paste Into" menu item preventing a user from pasting the copied node into a leaf node.
    theTree.permitContextMenu = function (theSourceNode, theAction, theMenuItem, theContextMenu) {
    	// trace("the node being examined is " + theSourceNode.attributes.label)
    	// trace("   the menu item being passed in is="+ theMenuItem.caption)
    	// prevent a user from pasting into a leaf node if preventDropIntoLeafNodes is set to true
    	if (theTree.getIsLeaf(theSourceNode) && preventDropIntoLeafNodes && theAction==theTree.PASTE_INTO) {
    		return false;
    	}
    	return true;
    }
    

permitOpenClose

public function permitOpenClose (
theNode,
bOpen)
A user defined function to allow open or closing of node. Deprecated.
Deprecated. Use permitOpen or permitClose functions. A user defined function to allow open or closing of node. This default value returned by this function is true.
  • Overrides:
  • Parameters:
    theNode
    theNode:XMLNode - The selected node
    bOpen
    bOpen:Boolean - Refers to the method being called on the node. If true then the node is trying to be opened. If false then the node is trying to be closed.
  • Returns:
    Boolean
  • Usage:
    myInstance.permitOpenClose = function(theNode, bOpen) {};
  • Example:
    The example below prevents a user from closing branch nodes.
     
    theTree.permitOpenClose = function (theNode, bOpen) {
    	if (this.getIsBranch(theNode) && bOpen==false) {
    		return false;
    	}
    	return true;
    }
    
  • See also:

permitRemove

public function permitRemove (
obj,
menuItem,
menuCaption,
eventType,
cellIndex)
Lets the user show an alert before a cut or remove event
Lets the user show an alert before a cut or remove event. You can define this to pop up an alert prompt similar to windows explorer. Because of the nature of the Alert component we cannot get the button clicked syncronously, as far as I know. Therefore, we have to manually call the method we would have performed when the user clicks the OK button. See permissions example.

toolTipFunction

public function toolTipFunction (
row_mc)
Method to modify tooltip movieclip directly after it has been created
Method to modify tooltip movieclip directly after it has been created. A copy of the row is passed as the first parameter. The tooltip is the textfield on the row modified with a background and border. The textfield reference is the cll property. If you use a cellrenderer then you may need to reference the renameField property or your own textfield depending on if you added it to your cellrenderer or not.
  • Parameters:
    row_mc
    Row that contains the textfield that is used as the tooltip
  • Example:
    This is the code of the tooltip funciton
    function toolTipFunction(row_mc) {
    	// determine if we are using a cell renderer by checking if cell has the renameField or a textfield we know exists in our cellrenderer
    	var bCellRenderer:Boolean = (row_mc.cll.renameField != undefined) ?  true : false;
    	// get a reference to the row label - you may need to point this to your textfield
    	var rowLabel = (bCellRenderer) ? row_mc.cll.renameField : row_mc.cll;
    	// set selectable to false to prevent text cursor 
    	rowLabel.selectable = false;
    	// set border color, border and background
    	rowLabel.setStyle("borderColor",0xD5DDDD);
    	rowLabel.border = true;
    	rowLabel.background = true;
    	// some properties i've turned off but could be enabled
    	//rowLabel.autoSize = "left";
    	//rowLabel.wordWrap = true;
    	//rowLabel.multiline = true;
    	// autosize text field
    	rowLabel.autoSize = "center";
    	// snap cell (label) to the left edge of the row which is positioned next to the mouse
    	row_mc.cell._x = 0;
    }
    

The documentation was generated from the following file:
  • dndTree.as, Last Modified: 6/14/2006 11:15:20 PM