Self-update:
I just realized I CAN just set the main container contextMenu
property and get a global ContextMenu, as I had expected at first.
There is a curious reason why this did not work before. My background
sprite was one big bitmap.
Once I changed the bitmap to a rectangle shape, the global menu
worked...EXCEPT for the content that contains dynamically generated
bitmaps.
Wrapping bitmaps in interactive sprites does not change this. So my
question now is, why do bitmaps--and sprites wrapping bitmaps--impede
the main container's right click capability? And how to stop this?
/////////////
Hi
I'm trying to create a context menu that can be controlled
dynamically (these commands are available now) AND does not depend on
cursor location (where it is clicked does not matter). (AS3)
I want the menu logic tied to the app logic, not the current display
list.
I have a background sprite whose contextMenu property changes with
the nav. But different content is constantly loading and unloading,
and if you right-click on these transient sprites, their uncustomized
menu drops down instead of my default dynamic/global menu.
Short of setting the contextMenu property of every single sprite that
appears, what can I do to ensure that my menu comes up every time?
I have some unpromising ideas (like capturing bubbling mouseDowns,
sifting for right-clicks, getting the original target, changing its
contextMenu...) but before I go down the garden path, I was hoping
that I missed something obvious (I'm new to ContextMenu).
Thanks
Matt
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com