aadimalli Posted January 28, 2007 Share Posted January 28, 2007 how can we make the menus when mouse is placed the menu items are displayed and when mouse is out the menu items are not visible how this is possible. Link to comment Share on other sites More sharing options...
smiles Posted January 29, 2007 Share Posted January 29, 2007 I think you use menu component so must need a button followed var someListener:Object = new Object();someListener.onMouseUp = function () { ... };Mouse.addListener(someListener); For example import mx.controls.Button;import mx.controls.Menu;var my_menu:Menu = Menu.createMenu();// Add some menu items.my_menu.addMenuItem("Item1");my_menu.addMenuItem("Item2");//var mouseListener:Object = new Object();mouseListener.onMouseUp = function() {my_menu.show(my_button.x + my_button.width,my_button.y ); };Mouse.addListener(mouseListener); Something like that Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now