0 Replies Latest reply on Aug 20, 2010 4:22 AM by Karl_Sigiscar_1971

    Using ContextMenu for contextual help

    Karl_Sigiscar_1971 Level 3

      Hi,

       

      I have set up the following handler for my "Help"  menu item:


           private function onHelpMenuItemHandler(event:ContextMenuEvent):void
           {
             // Contextual Help
              switch(event.mouseTarget.name)
              {
                  // Check the instance name of the display list object on which the user right-clicked in order to display the relevant contextual help
              }

           }

       

      Problem is, the result I get are not really satisfactory.


      I get such results as:

       

      comm

      ListBasedDisplayObject02 (over a list or tree)

      SearchPanel1 (on an instance of the SearchPanel class)

       

      Not much better when I use:
      UIComponent(event.mouseTarget).id

       

      Any idea how to achieve this ?

       

      Thanks in advance.