Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/11/2012, 10:36
mglimas
 
Fecha de Ingreso: mayo-2006
Mensajes: 198
Antigüedad: 18 años
Puntos: 1
cómo cargar swf con este código?

Hola, tengo este código que me permite cargar un MC de la biblioteca, pero lo que quiero hacer ahora es que me cargue un swf de una carpeta determinada en el servidor. Probé de distintas formas pero no lo logro. Alguien me puede dar una mano?

Gracias!

Código:
consultoria_btn.addEventListener (MouseEvent.ROLL_OVER, whoOver);
consultoria_btn.addEventListener (MouseEvent.ROLL_OUT, whoOut);
consultoria_btn.addEventListener (MouseEvent.CLICK, whoClick);

function whoOver (event:MouseEvent): void {
   consultoria_btn.gotoAndStop ("rollover");
}
function whoOut (event:MouseEvent): void {
   consultoria_btn.gotoAndPlay ("rollout");
}
function whoClick (event:MouseEvent): void {
	consultoria_btn.removeEventListener (MouseEvent.ROLL_OVER, whoOver);
	consultoria_btn.removeEventListener (MouseEvent.ROLL_OUT, whoOut);
	consultoria_btn.removeEventListener (MouseEvent.CLICK, whoClick);
	consultoria_btn.buttonMode=false;
	institucional_btn.addEventListener (MouseEvent.ROLL_OVER, instiOver);
	institucional_btn.addEventListener (MouseEvent.ROLL_OUT, instiOut);
	institucional_btn.addEventListener (MouseEvent.CLICK, instiClick);
	institucional_btn.buttonMode=true;
	institucional_btn.gotoAndStop ("rollout");
	var consul:flash.display.MovieClip = new consultoría_mc();
	contenedor.addChild(consul);
	consul.x=1.0
	consul.y=0;
}
consultoria_btn.buttonMode=true;