Linking Mc on stage with class Mc
Hello
I am trying to tell mc on stage to react to another one that is called by addchild and has a class name. I am doing this from the main timeline. How can I achieve this?
if
(this.currentFrame == 3) //Mc with class name that is on stage with addchild method. Called Mcl1//
Mcl2.gotoAndPlay(1) //Mc physically on stage with instance name//
Do I have to add enterframe events listener on the main timeline. (There is already one inside Mcl1 class code).
Any help is appreciated. Thanks.
