I'd like to hide the MC I've clicked. I can get the string name of the MC I clicked with
e.target.name
I want to do
e.target.name.visible=false;
Of course this doesn't work because e.target.name is a string.
I know there is this
MovieClip(e.target.name).visible=false;
But that's for MC's. Is there anything like this but for Buttons?
I can do this
MovieClip(root)[ev.target.name].visible=false;
And it works, but I shouldn't need to get the MovieClip root because it's not in an MC and...
[ev.target.name]
doesn't work alone, what can I use instead? stage in front doesn't work either.
If possible, please answer both of the questions.