views:

285

answers:

1

I'm using Flash actionscript2.0 and I'm using this code to show a custom cursor.

onEnterFrame = function()
{
Mouse.hide();
myCursor._x = _xmouse;
myCursor._y = _ymouse;
}

But this results in disappearing mouse cursor when viewing right click context menu. Is there a way to show the standard mouse cursor when viewing the context menu?

Thanks.

A: 

You should be able to tap into the onSelect event of the ContextMenu object to show the cursor when the user goes to use the menu. Getting the cursor to show again may be a bit more tricky, but you may be able to do it by swapping in a movieclip above everything else that looks for mouse overs or mouse moves. I don't think it will get any events while the menu is up but should once the menu goes away.

Branden Hall