Context menu for loaded SWF
Posted
by Palantar
on Stack Overflow
See other posts from Stack Overflow
or by Palantar
Published on 2009-10-14T19:51:49Z
Indexed on
2010/06/12
1:02 UTC
Read the original article
Hit count: 228
flex
|actionscript
I have a Flex app with a viewport that loads a series of other swfs. I would like to place a context menu over top of the SWFs when the user right-clicks. To that end, I have set up a fairly standard context menu where each item has a ContextMenuEvent.MENU_ITEM_SELECT event handler. One problem: The eventHandler never gets called.
If I place the context-menu code anywhere else in the app, i.e. not on top of a loaded SWF, everything works fine. However, when I place the exact same code on the SWF viewport, the context menu items appear, but the eventHandlers are never called. Any ideas?
© Stack Overflow or respective owner