Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bring object to front flash actionscript 3

I have a menu set up that has about 20 menu items in a circle. When you mouse over each item, a title comes up. The only problem is that because of the depth order, it's hidden behind the other menu items. Is there a way to bring this item to the front when moused over? I'm pretty actionscript illiterate so any help would be awesome.

like image 683
steve Avatar asked May 23 '10 10:05

steve


1 Answers

If you don't want your object being removed and then added to the display list using addChild you can use setChildIndex

var parent:DisplayObjectContainer = myElement.parent;
parent.setChildIndex(myElement, parent.numChildren-1);
like image 74
Patrick Avatar answered Oct 21 '22 20:10

Patrick