Hi,
I’m wondering how to properly reference a movieclip from the document class that’s already on stage, (manually created and placed). I’ve created a movieclip that has a couple levels to it and I’m trying to access it using an array that contains the instance names of the mcs
so it’s like this:
private var _overLays:Overlays = new Overlays;
private var _overBtnNames:Array = new Array("grBtn", "mmBtn");
for (var i = 0; i<_overBtnNames.length; i++) {
_overlays.designBtns.overBtnNames*.addEventListener(MouseEvent.CLICK, zoomScene);
}
I realize the problem is that _overBtnNames* is a string and it needs to be a MovieClip object… I’ve tried (_overBtnNames* as MovieClip) and similar approaches with no success. Any ideas?