Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/06/2010, 09:31
Avatar de Lynxcraft
Lynxcraft
 
Fecha de Ingreso: noviembre-2007
Ubicación: yecla murcia
Mensajes: 1.346
Antigüedad: 16 años, 5 meses
Puntos: 51
Respuesta: Botón con condicional¿?

Código PHP:
var movieExterno = new Loader();
movieExterno.contentLoaderInfo.addEventListener(Event.COMPLETE,cargaCompleta);
movieExterno.load(new URLRequest("presentacion.swf"));

aviador_btn.addEventListener(MouseEvent.CLICK,cargaDespegue);

var 
tempMovieExterno:MovieClip

function cargaCompleta(event:Event):void {
    if(
contenedor.contains(tempMovieExterno)){
        
contenedor.removeChild(tempMovieExterno);
    }
    
tempMovieExternoevent.target.content as MovieClip
    contenedor
.addChild(tempMovieExterno);
}
function 
cargaDespegue(MouseEvent):void {
    
movieExterno = new Loader();
    
movieExterno.load(new URLRequest("despegue12.swf"));
    
movieExterno.contentLoaderInfo.addEventListener(Event.COMPLETE,cargaCompleta);

}
home_btn9.addEventListener(MouseEvent.CLICK,volverHome9);
function 
volverHome9(MouseEvent):void {
    if(
contenedor.contains(tempMovieExterno)){
        
contenedor.removeChild(tempMovieExterno);
    }
    
gotoAndStop("inicio");

__________________
Sobran las ideas cuando faltan ganas de trabajar en ellas
Lynxcraft