Comunidad de diseño web y desarrollo en internet online

bucle de video en as3

Citar            
MensajeEscrito el 11 Jun 2008 01:25 pm
Hola amigos,

Estoy intentando hacer que un video cuando llegue a su final vuelva a empezar.
Tenia este codigo para as2, pero no me sirve para as3:

var myListener:Object = new Object();
myListener.complete = function(eventObj:Object) {
mi_video.play()
};

mi_video.addEventListener("complete", myListener);




Alguien sabe como hacerlo?
Graciassssss

Por ptazta

13 de clabLevel



 

firefox
Citar            
MensajeEscrito el 11 Jun 2008 05:11 pm
Si usas un FLVPlayback

Código :

my_video.addEventListener(VideoEvent.COMPLETE, replay)
function replay(){
  my_video.play()
}


Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 12 Jun 2008 07:15 am
hola solisarg,
pongo el codigo y me dice que accedo a una propiedad videoEvent no definida.

Yo le pongo este import al principio:
import fl.video.FLVPlayback;

pero nada no me tira.
Alguna otra solucion?

gracias

Por ptazta

13 de clabLevel



 

firefox
Citar            
MensajeEscrito el 12 Jun 2008 09:25 am
Agrega también:

import flash.events.VideoEvent

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.