Here's the code
Document class:
menu.more.addEventListener(MouseEvent.CLICK, More_func)
function More_func (e:MouseEvent):void
{
showmore.visible = true;
}
menu is the instance name of the movieclip in the document class. more is the instance name of a button inside the movieclip. And showmore is the instance name of another movieclip.
I want to transfer this code into the menu class. I just simkply copy/paste. But i recieve a message saying: 'Access of undefined property showmore.'.
So i am asking how i can use external object (in this case showmore) into another movieclip class (in this case menu).
The code works fine if it's in the document class.