I have been trying to get a menu right. The menu appears fine, but the
problem is I have too much items on it.
According to the docs, Menu inherits indirectly from ScrollConrolBase,
and it does indeed seem to have some scrolling-related properties...
So I've tried this:
var myMenu:Menu = Menu.createMenu(null, arrMenu);
myMenu.show(menux, menuy);
myMenu.maxHeight=200;
myMenu.showScrollTips = true;
myMenu.verticalScrollPolicy = ScrollPolicy.ON
Menu draws fine with the correct height and stuff, no errors, but no
scrolling.
Also after clicking an item in the menu, I put a component of mine on
the canvas. After clicking a checkbox on the component, the menu still
shows up. Is this due to event propagation in the component?
I register the click event to the canvas in the following manner:
this.addEventListener(MouseEvent.CLICK, clickHandler, false, 1);
How can I stop the event from propagating through the component to the
canvas?
Thanks in advance,
Chris.