Hi list...

I'm dynamically adding a contextMenu on many sprites, some of which have nested 
menus (it's AIR).  I want to make sure garbage collecting the events with weak 
references is acceptable for context menus.  I almost always explicitly call 
removeEventListener, but it seems contextMenus are somewhat different.

Is this OK?
myMenu.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenuPrepare, 
false, 0, true);
eachItemInMyMenu.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, 
menuItemCallbackFunction, false, 0, true);

Any advice is appreciated.
- Michael M.


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to