Originally Posted by
myalkut
I tried it this way and it all works!!!!!
//remove video box...
var closevid_btn:btnclose = new btnclose();
closevid_btn.addEventListener(MouseEvent.CLICK, closeThis);
videobox1_mc.addChild(closevid_btn);
closevid_btn.x = 96;
closevid_btn.y = 296;
function closeThis(e:MouseEvent):void
{
removeChild(videobox1_mc);
trace("The lesson disappears");
videobox1_mc.alapvideo.stop();
trace("The audio stops");
}
still wondering if I can simplify the functions or if I just need to make 14 of them though.