ayuda para la Acción Script2 CS3 desempeñar diferentes películas en flv

  • jalexduran1
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Oct 29, 2008
  • Mensajes: 12
  • Status: Offline

Nota Enero 3rd, 2009, 4:51 pm

Max:
Tengo 5 segmentos de películas y necesito un código para hacerlo jugar automático "después de terminar el segmento de inicio automático de 1 segundo segmento y consecutivos hasta el mismo para todos los segmentos 5 y, a continuación, ir a la 1 ª vez en el segmento final del último segmento, y repetir que siempre bucle...

muestra: automática sobre "segment1.flv" al final ir a flv "segment2.flv"....
entonces "segment3.flv", luego "segment4. flv ", hasta" segment5.flv "y luego ir y jugar el primer flv" segment1.flv "

gracias

Alex J
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Enero 3rd, 2009, 4:51 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • Avatar de Usuario
  • Registrado: May 28, 2003
  • Mensajes: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Nota Enero 4th, 2009, 5:08 am

El componente de reproducción de FLV que se ha construido adentro Ver mi mensaje aquí
flash-forum/listeners-not-working-update-t57460.html #p305090

El tutorial ya que es aquí
http://www.adobe.com/devnet/flash/artic ... print.html


Código: [ Select ]
import mx.video.*;
var listenerObject2:Object = new Object();
listenerObject2.stateChange = function(eventObject:Object):Void {
    trace(my_FLVPlybk.state);
};
my_FLVPlybk.addEventListener("stateChange", listenerObject2);
my_FLVPlybk.contentPath = "cuepointloop12.flv";
   // Set Videos Behavior
   
   // Create a videos object to hold a video
   // playlist and event handler functions...
   var videos:Object = new Object();
   
   // Set up to 7 video feeds in a single component
   videos.list = new Array();
   videos.list[0] = "cuepointloop12.flv";
   videos.list[1] = "";
   videos.list[2] = "";
   videos.list[3] = "";
   videos.list[4] = "";
   videos.list[5] = "";
   videos.list[6] = "";
   videos.loop = true;
   videos.length = 1;
   videos.loaded = false;
   
   
   // Path to FLVPlayback components
   var m = this.my_FLVPlybk;
   
   // Set the path of the first video feed
   m.contentPath = videos.list[0];
   
   // Set a 'ready' event handler to load the videos
   videos.ready = function( evt:Object ):Void
   {
      if(!this.loaded){
         this.loaded = true;
         for( var n=1; n<this.list.length; n++ ){
            if( videos.list[n].indexOf(".flv") != -1 ){
               m.activeVideoPlayerIndex = n;
               m.contentPath = videos.list[n];
               this.length++;
            }
         }
         m.activeVideoPlayerIndex = 0;
      }
   }
   m.addEventListener("ready",videos);
   
   // Set a 'complete' event handler to load the next video
   videos.complete = function( evt:Object ):Void
   {
     
      var nextIndex = Number(evt.vp)+1;
      if( nextIndex == this.length){
         if( this.loop ){
            nextIndex = 0;
         }else{
            return;
         }
      }
      m.activeVideoPlayerIndex = nextIndex;
      m.visibleVideoPlayerIndex = nextIndex;
      m.play();
   }
   m.addEventListener("complete",videos);
   
   // End Set Videos Behavior
         
  1. import mx.video.*;
  2. var listenerObject2:Object = new Object();
  3. listenerObject2.stateChange = function(eventObject:Object):Void {
  4.     trace(my_FLVPlybk.state);
  5. };
  6. my_FLVPlybk.addEventListener("stateChange", listenerObject2);
  7. my_FLVPlybk.contentPath = "cuepointloop12.flv";
  8.    // Set Videos Behavior
  9.    
  10.    // Create a videos object to hold a video
  11.    // playlist and event handler functions...
  12.    var videos:Object = new Object();
  13.    
  14.    // Set up to 7 video feeds in a single component
  15.    videos.list = new Array();
  16.    videos.list[0] = "cuepointloop12.flv";
  17.    videos.list[1] = "";
  18.    videos.list[2] = "";
  19.    videos.list[3] = "";
  20.    videos.list[4] = "";
  21.    videos.list[5] = "";
  22.    videos.list[6] = "";
  23.    videos.loop = true;
  24.    videos.length = 1;
  25.    videos.loaded = false;
  26.    
  27.    
  28.    // Path to FLVPlayback components
  29.    var m = this.my_FLVPlybk;
  30.    
  31.    // Set the path of the first video feed
  32.    m.contentPath = videos.list[0];
  33.    
  34.    // Set a 'ready' event handler to load the videos
  35.    videos.ready = function( evt:Object ):Void
  36.    {
  37.       if(!this.loaded){
  38.          this.loaded = true;
  39.          for( var n=1; n<this.list.length; n++ ){
  40.             if( videos.list[n].indexOf(".flv") != -1 ){
  41.                m.activeVideoPlayerIndex = n;
  42.                m.contentPath = videos.list[n];
  43.                this.length++;
  44.             }
  45.          }
  46.          m.activeVideoPlayerIndex = 0;
  47.       }
  48.    }
  49.    m.addEventListener("ready",videos);
  50.    
  51.    // Set a 'complete' event handler to load the next video
  52.    videos.complete = function( evt:Object ):Void
  53.    {
  54.      
  55.       var nextIndex = Number(evt.vp)+1;
  56.       if( nextIndex == this.length){
  57.          if( this.loop ){
  58.             nextIndex = 0;
  59.          }else{
  60.             return;
  61.          }
  62.       }
  63.       m.activeVideoPlayerIndex = nextIndex;
  64.       m.visibleVideoPlayerIndex = nextIndex;
  65.       m.play();
  66.    }
  67.    m.addEventListener("complete",videos);
  68.    
  69.    // End Set Videos Behavior
  70.          
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • jalexduran1
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Oct 29, 2008
  • Mensajes: 12
  • Status: Offline

Nota Enero 4th, 2009, 2:01 pm

Cargar las secuencias de comandos para el 1 de vídeo, hago algo mal, dejan ver

He llamado 5 vídeos: segmento1.flv, segmento2.flv, segmento3.flv, segmento4.flv y segmento5.flv

esta es la web: http://www.losbayuncos.com

También disponemos de 5 jugadores diferentes, a la derecha, si hace clic en el botón 1 en la parte superior segmento1.flv, video1.swf carga, si hace clic en el botón debajo de 2 º, se cargará segmento2. flv que jugar en video2.swf.... y mantener así hasta el último botón, segmento5.flv, ese juego de video5.swf..... I colocar el código en cada uno (swf) archivo video1.swf, video2.swf...hasta video5.swf...También el nombre de cada componente en el archivo *. swf como my_FLVPlybk....? no funciona, algo está mal, ¿me pueden ayudar

Publicar Información

  • Total de mensajes en este tema: 3 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 21 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC