Estoy trabajando con un fla, que me permite reproducir un video pantalla comleta a nivel del browser.
Mi idea es hacer un fade-out fade-in de videos, apartir del click de un boton.
Tengo: 2 movie clip y 1 objeto video en la biblioteca.
Este es el codigo:
Código ActionScript :
stop();
var conexion:NetConnection = new NetConnection();  
conexion.connect(null);  
var stream:NetStream = new NetStream(conexion); 
miVideo.attachVideo(stream);
miVideo2.attachVideo(stream);
stream.play("video1.flv"); 
stream.pause("video2.flv"); 
// ------------------------ fullbrowser-------------------------------
this.onResize = function()
   {
      this.btnN1._x = (Stage.width  / 2) - (this.btnN1._width  / 2);
      this.btnN1._y = (Stage.height / 2) - (this.btnN1._height / 2);
      this.btnN1.text = Stage.width + "x" + Stage.height;
   
      miVideo._width = Stage.width;  
      miVideo._height =Stage.height; 
   };
   
Stage.scaleMode = "noScale";
Stage.align = "TL";
Stage.showMenu = false;
Stage.addListener(this);
   
this.onResize();
// ------------------------ btn Evento -------------------------------
this.miVideo._x =0;
this.miVideo._y =0;
this.miVideo2._x =0;
this.miVideo2._y =0;
miVideo2._alpha = 0;
btnN1.onRelease = function(){
   //------------------------- desaparecer ------------------------
   var alpha_interval:Number = setInterval(fadeImage, 50, miVideo);
   function fadeImage(target_mc:MovieClip):Void {
      target_mc._alpha -= 5;
      if (target_mc._alpha <= 0) {
         target_mc._visible = false;
         clearInterval(alpha_interval);
      }
   }
   
   //----------- aparecer --------------
   miVideo2.onEnterFrame = function() {
      miVideo2._alpha += 2;
      if (miVideo2._alpha == 100) {
         delete miVideo2.onEnterFrame;
         stream.play("video2.flv"); 
      }
   };
   
}Me salta un error:
Escena=Scene 1, layer=Script, frame=1, Línea 9 El tipo no coincide.
Linea 9:
Código ActionScript :
stream.pause("video2.flv"); Alguien me podria ayudar??
Desde ya muchas gracias!!!
Saludosss


 
    
  
			 
  
 
