Hi guys,
I have multiple movie clips nesting inside each other as I need them to perform different functions.
On my main timeline I have a mc called “menu_mc”, inside of that I have “menubg_mc” and inside of that I have “drop_mc”. I have some code on the “menu_mc” timeline, a tween class to make the menu slide out from the left of the stage. Inside the “drop_mc” timeline I have some tween class code which reveals the drop down menu. Now the slide out menu works fine but because the “drop_mc” is 2 levels deep, it won’t play the drop down tween.
I know that I need to target this movie clip but my question to you is… Where do I place the code for “drop_mc” (tween) as obviously it doesn’t work being nestled 2 levels deep.
I have the following code in the main timeline
import mx.transitions.Tween;
import mx.transitions.easing.*;
var rolled_up = menu_mc._x;
var rolled_out = 0;
function slide_out() {
current_x = menu_mc._x;
var anim:Tween = new Tween(menu_mc, “_x”, Strong.easeOut, current_x, rolled_out, 1, true);
}
function slide_in() {
current_x = menu_mc._x;
var anim:Tween = new Tween(menu_mc, “_x”, Back.easeOut, current_x, rolled_up, 1, true);
}
menu_mc.onRollOver = function(){
slide_out();
}
hidden_btn.onRollOver = function(){
slide_in();
}
function turnOn() {
new Tween(this.menu_mc.menubg_mc.menubg_mc.mask_mc, “_y”, Strong.easeOut, -145, 150, 1, true);
}
function turnOff() {
new Tween(this.menu_mc.menubg_mc.menubg_mc.mask_mc, “_y”, Strong.easeIn, 150, -145, 1, true);
}
this.menu_mc.menubg_mc.menubg_mc.drop_btn.onRollOver= turnOn;
this.menu_mc.menubg_mc.menubg_mc.invisClip.onRollOver= turnOff;
Please help, it’s so frustrating!
Thanks,
Elle