I have this menu_mc appearing on stage on RollOver.
Inside this menu_mc are 5 other mcs that are also supposed to react on rollOver.
But : the rollOver works only on the menu_mc, the rollOver on the nested mcs no.
I put all the script on the main stage, accessing my nested mcs with the “insert target path”.
I tried also to put the script of the nested mcs inside the menu_mc movie clip, but it does not respond.
What do I do wrong ?
Thank you.
import mx.transitions.Tween;
import mx.transitions.easing.*;
orig = Menu_mc._x;
Menu_mc.onRollOver = function() {
menuIn = new Tween(this, “_x”, Regular.easeInOut, this._x, 0, .5, true);
fadeAway();
};
Menu_mc.onRollOut = function() {
menuIn = new Tween(this, “_x”, Regular.easeInOut, this._x, orig, .5, true);
fadeBack();
};
this.Menu_mc.Menu1._alpha = 70;
this.Menu_mc.Menu2._alpha = 70;
this.Menu_mc.Menu3._alpha = 70;
this.Menu_mc.Menu4._alpha = 70;
this.Menu_mc.Menu5._alpha = 70;
this.Menu_mc.Menu1.onRollOver = function() {
Fade = new Tween(this, “_alpha”, ease.Out, 70, 100, .2, true);
playSound();
};
this.Menu_mc.Menu1.onRollOut = function() {
FadeOut = new Tween(this, “_alpha”, ease.Out, 100, 70, .2, true);
};
this.Menu_mc.Menu2.onRollOver = function() {
Fade = new Tween(this, “_alpha”, ease.Out, 70, 100, .2, true);
playSound();
};
this.Menu_mc.Menu2.onRollOut = function() {
Fade.yoyo();
};
this.Menu_mc.Menu3.onRollOver = function() {
Fade = new Tween(this, “_alpha”, ease.Out, 70, 100, .2, true);
playSound();
};
this.Menu_mc.Menu3.onRollOut = function() {
Fade.yoyo();
};
this.Menu_mc.Menu4.onRollOver = function() {
Fade = new Tween(this, “_alpha”, ease.Out, 70, 100, .2, true);
playSound();
};
this.Menu_mc.Menu4.onRollOut = function() {
Fade.yoyo();
};
this.Menu_mc.Menu5.onRollOver = function() {
Fade = new Tween(this, “_alpha”, ease.Out, 70, 100, .2, true);
playSound();
};
this.Menu_mc.Menu5.onRollOut = function() {
Fade.yoyo();
};