Then I suppose you can override onRowRollOver method in your subclass for the tree component. You can find source code in the mx.controls.listclasses.ScrollSelectList class. It is an ancestor of a tree class. If current row is disabled just skip drawRow invocation.
Hopefully it will work. Andrey Ermilkin ------Original Message-------- Date: Wed, 15 Mar 2006 17:56:37 +0000 From: James Marsden <[EMAIL PROTECTED]> Subject: Re: [Flashcoders] Help with Tree Component To: Flashcoders mailing list <[email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hey, Thanks for the reply. I was about to have a hernia. I've snooped through as much of this component as I'm willing to bare. If you mean this: tree.addEventListener('itemRollOver', treeListener); tree.addEventListener('itemRollOut', treeListener); treeListener.itemRollOver = function(evt:Object) { evt.target.setStyle("useRollOver", false); } treeListener.itemRollOut = function(evt:Object) { evt.target.setStyle("useRollOver", true); } It really doesn't work very well. The custom event handler responds after the default behaviour has been triggered. How can it be this complex to just stop the rollover for disabled elements :'( J _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

