I have a mainMC and inside the mc are two MC’s (menu1 and menu2).
I want to set up some onRollOver and onRollOuts on the two mc’s within the main mc.
Both mc’s have an instance names of menu1 and menu2. They are also named menu1 and menu2.
Here is a basic example of what I have. How can I get this to work?
function mainMCcontrol() {
var mainMC:MovieClip = _root.attachMovie ("mainMC", "mainMC", 202);
mainMC._x = 500;
mainMC._y = 300;
}
menu1.mainMC.onPress = function () {
trace ("test1");
};
mainMC.menu1.onPress = function () {
trace ("test2");
};