I have been stumped hard on this one. I am calling my timeline in a rollover and calling my movieclip(with nested movieclips) dynamically. I'm trying to reference the nested movieclips. This might not even be related to TimelineLite but to some actionscript 3.0 I haven't yet learned. Here's the code
function over(evt:MouseEvent) {
evt.target.parent[mcname].mouseChildren=false;
var mcname=evt.target.name;
var timeline1:TimelineLite = new TimelineLite();
timeline1.appendMultiple([TweenMax.to(mcname.block1, .92, {bezier:[{x:0, y:0}]}),
TweenMax.to(mcname.block2, .92, {bezier:[{x:0, y:0}]})]);
}
addEventListener(MouseEvent.MOUSE_OVER, over);
I've learned that to tween the movieclip that is rolled over I refer to it as "this[mcname]". I am unable to reference the movieclips within the outermost movieclip "mcname". Any help would be much appreciated!