What happens?

On 3/7/12 6:06 PM, "method_air" <loudj...@hotmail.com> wrote:






Attempting to create a flex Menu on 'mouseDown' is failing (but works using the 
'click' event):

private function createAndShow():void
{
var myMenu:Menu = Menu.createMenu(null, myMenuData, false);
    myMenu.show(10, 10);
}
]]>
</mx:Script>



<!-- Define a Button control to open the menu -->
<s:Button mouseDown="createAndShow();"/>

Is there a workaround?

Thanks,

Philip






--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to