Published in: ActionScript
Cuando cargamos un video en una pelicula y queremos que la linea de tiempo (o el evento qeu se desee) siga una vez finalizado éste. NOTAS: Este código sólo funciona si el flv formado proviene de un .mov; si proviene de un .mpeg no funcionará. Ojo con codificar el mpeg con Mac, el sonido no se importará.
//************************************************************ When we load a video in a movie and want that the line of time (or the event qeu is wished) remains finished once this one.
Comment: This source only works if the formed flv comes from a .mov; if it(he,she) comes from a .mpeg it will not work. Make your atention codifying the mpeg with Mac, the sound will not be imported.
/** Se requiere: - Componente FLVPlayback en el escenario, con el nombre de instancia my_FLVPlybk */ import mx.video.*; var listenerObject:Object = new Object(); listenerObject.complete = function(eventObject:Object):Void { trace("Elapsed play time at completion is: " + my_FLVPlybk.playheadTime); // Colocar aqui el evento qeu se desea iniciar una vez que acabe el video, en mi caso era continuar la pelicula con gotoAndPlay(36); }; my_FLVPlybk.addEventListener("complete", listenerObject); my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
You need to login to post a comment.
