[Flashcoders] problems accessing a MovieClip / display list issue

2009-07-03 Thread Isaac Alves
Problems trying to access a MovieClip that contains a dynamically loaded image, inside dynamically created menu items. I hope the code is self explanatory ! function mouseOverItem(e:Event):void { var item:MenuItem = e.target as MenuItem; trace (item.getChildAt(3).name); trace

Re: [Flashcoders] problems accessing a MovieClip / display list issue

2009-07-03 Thread Ktu
Just a thought, try doing getChildByName(icone); What it looks like, is that there is no member variable in the MenuItem class called icone. You can't call object.child by using the name property of the child. The bt_title does, because probably you have defined in the MenuItem class a variable