Answered
access buttons in MC nested in MC nested..
Hi everyone, I would greatly appreciate if anyone could help
me out with the following..
I have a MC instance in main timeline in one layer and another layer called 'actions' (only one keyframefor both)
This MC is containing another MC2
The MC2 is containing another MC3
This MC3 is containing buttons.
In a main timeline :
stop();
trace("waiting for click");
_root.finalIntro_mc.roller_mc.OldIntro_mc.starwars_btn.onRelease = function(){
trace("success");
}
will not do anything....and that's the problem. If I put the same piece of code into 1st MC's timeline then it works. All instances have their names. It seems like I cannot access button that is in more than 3 nested MC's.
Any ideas ? you can download the FLA from the website : http://home.exetel.com.au/news/oldintros1.fla
Thank you !
I have a MC instance in main timeline in one layer and another layer called 'actions' (only one keyframefor both)
This MC is containing another MC2
The MC2 is containing another MC3
This MC3 is containing buttons.
In a main timeline :
stop();
trace("waiting for click");
_root.finalIntro_mc.roller_mc.OldIntro_mc.starwars_btn.onRelease = function(){
trace("success");
}
will not do anything....and that's the problem. If I put the same piece of code into 1st MC's timeline then it works. All instances have their names. It seems like I cannot access button that is in more than 3 nested MC's.
Any ideas ? you can download the FLA from the website : http://home.exetel.com.au/news/oldintros1.fla
Thank you !