¿Cómo desactivo y elimino el swf cargado? para vovler a usar el libro_principal.swf y poder ver otros temas (tema_2.swf o tema_3.swf, etc.) en cada libro de temas hay un boton_salir el cual deberia cerrar el archivo del tema_X.swf y regresar al libro_principal.swf
Todos los archivos tienen el mismo tamaño y el codigo que tiene el libro_principal.swf es el siguiente:
Código :
btn_tema1.addEventListener(MouseEvent.CLICK, carga_tema_1); function carga_tema_1(event:MouseEvent):void { var loader:Loader = new Loader(); loader.load(new URLRequest(tema_1.swf)); addChild(loader); } btn_tema2.addEventListener(MouseEvent.CLICK, carga_tema_2); function inicioClick(event:MouseEvent):void { var loader:Loader = new Loader(); loader.load(new URLRequest(tema_2.swf)); addChild(loader); }
Saludos y muchas gracias por su atencion