Hi,
I am trying to dynamically add a child to stage, this works. Then I try to access it using the instance name and I can’t. Why can’t I do this?
intro_btn.addEventListener(MouseEvent.CLICK, goIntro);
function goIntro(EVENT){
var intro:MovieClip;
intro = new Intro();
intro.name = "scr";
targetX_mc.addChild(intro);
targetX_mc.scr.sb.init(targetX_mc.scr.txt_mc, "easeOutBack",2,true,2);
}
Thank you,
Kim