Re: [flexcoders] TreeMenu access to higlighted item

2006-05-16 Thread Manish Jethani



On 5/15/06, Federico Ferri <[EMAIL PROTECTED]> wrote:

> With Fex2 beta2 this code was working, now i'm not able to recreate it with
> the beta3, the mouseEvent.currentTarget.highlightItem doesn't exist...

Can you use a combination of listItems (protected) and
isItemHighlighted instead?






--
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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] TreeMenu access to higlighted item

2006-05-16 Thread Federico Ferri



i want to create in a tree, a custom contex menu in function of the item 
highlighted.
I'm able to create a custom context menu, but with the beta 3 i'm not able to 
capture the highlithed item any more
i mean that i don't know how to get the target of the highlighted Item, the 
one on which i put my mouse and open my context menu (click on the right 
button)


With Fex2 beta2 this code was working, now i'm not able to recreate it with 
the beta3, the mouseEvent.currentTarget.highlightItem doesn't exist...
-
public function changeContextMenu(mouseEvent:MouseEvent):void {
  if( mouseEvent.currentTarget is Tree && 
mouseEvent.currentTarget.highlightItem != null){
    switch ([EMAIL PROTECTED]()){
      case "agent":
          mouseEvent.currentTarget.contextMenu=generateAgentContextMenu();
          cxaActiveItem = mouseEvent.currentTarget.highlightItem;
        break;
      default:
          mouseEvent.currentTarget.contextMenu=new ContextMenu();
        break;
    }
  }
}
-

thank you for you reply,
bye, Federico








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.