4 Replies Latest reply on Mar 3, 2011 1:34 PM by gtbus

    Where is the display object that represents FlexGlobals.topLevelApplicaton.contextMenu?

    gtbus Level 1

      Hi all,


      I want to run some code when flash's context menu is added to the stage (ie, when the context menu 'shows' onscreen). I tried the obvious:


      FlexGlobals.topLevelApplication.contextMenu.addEventListener(Event.ADDED, someFunction);


      but of course, it doesnt work.  Anyone know where the display object to which I can add this listener to is?