Thanks a lot, Manish.

>
> If I'm not wrong, menu objects are directly parented by the system
> manager. You can verify this by trace()'ing menu.parent. You want to
> use that parent object with localToGlobal().

In createMenu, first parameter is assigned to menu.parent property, I
used null, so, ok, my menu.parent is System Manager for all (menu and
submenus). But I've problems with submenus, because
menu.parent.localToGlobal(event.menu.x, event.menu.y) returns (0, 0)
for every submenus. (system_manager === menu.parent)

I'm listening the onShow event, is this correct?

It seems that the system buid the menus in the position 0,0 and then
it moves them to their places.
I'm loading data from an external XML and I'm saving main menu in a
class variable and move it manually to its place, and it is the only
menu that doesn't return (0,0) in localToGlobal...

I'm a bit confused... any other ideas?

Thankou all very much for these minutes.


Reply via email to