Too late, had 5 minutes to make a decision.  I basically got the tree["rows"], looped through 'em all when you right clicked (mouseUp runs a check to see if Key.isDown(2)), checked the x and y positions + the vPosition... so far, only bug is if you immediately right click elsewhere.  2 calls to mx.core.LowLevelEvents.onMouseMove() should fix it, just ran out of time.  about 40 lines of code, not too bad.. but I'd much rather have a right click.
 
----- Original Message -----
From: jeremy lu
Sent: Monday, December 05, 2005 9:30 PM
Subject: Re: [flexcoders] Right click on tree

hi jesse,

try using instance._dropTarget if you mean flex 1.5,
it might be a little easier and consume less resources.

On 12/6/05, JesterXL <[EMAIL PROTECTED] > wrote:
Trying to add "Add...", "Edit..." and "Delete..." options for a tree.  I've
created my own context menu, but since there is no native right click event
in Flash, I'm going to have to use hitTesting to know which tree node I
right clicked on.  Before I dive in, has someone already done this and would
be willing to share their code?



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to