Foros del Web » Creando para Internet » Flash y Actionscript »

FLV + seekBar

Estas en el tema de FLV + seekBar en el foro de Flash y Actionscript en Foros del Web. Buenos días: He creado un video, y he asignado la barra de tiempo de los componentes a mi reproductor de video. myFlv.seekBar = mySeekBar; Por ...
  #1 (permalink)  
Antiguo 16/05/2007, 05:51
 
Fecha de Ingreso: mayo-2007
Mensajes: 2
Antigüedad: 16 años, 11 meses
Puntos: 0
FLV + seekBar

Buenos días:

He creado un video, y he asignado la barra de tiempo de los componentes a mi reproductor de video.
myFlv.seekBar = mySeekBar;

Por otra parte quiero poder escalar este video, y que se ajusten todos los componentes de la barra de botones sin cambiar su tamaño.
Para ello he capturado el evento.

Stage.scaleMode = "noScale";
var miListener:Object = new Object();
miListener.onResize = function() {

//Aqui voy poniendo la posición y el tamaño de los diferentes componentes.

//Ajustamos el ancho de las barras al del Stage
barra_titulo._width = Stage.width;
barra_botones._width = Stage.width;
barra_botones._y = Stage.height-barra_botones._height;

//Ajustamos el video
myFlv._height = Stage.height-51;
myFlv._width= Stage.width;

//Ajustamos la posición de la barra inferior de botones segun el alto del Stage y el alto propio, sin modificar su tamaño
myPlay._y=Stage.height-(barra_botones._height-2);
myPause._y=Stage.height-(barra_botones._height-2);
myBack._y=Stage.height-(barra_botones._height-6);

//HASTA ESTE PUNTO PERFECTO, EL PROBLEMA SE PRODUCE CUANDO AJUSTO EL TAMAÑO DEL COMPONENTE seekBar. A LO ANCHO SE AJUSTA PERO EL MARCADOR DEL TIEMPO (SeekBarHandle) QUE LLEVAMOS DE PELICULA NO SE POSICIONA CORRECTAMENTE EN DICHO COMPONENTE. EXISTE ALGUNA FUNCION PARA AJUSTAR EL MARCADOR DE TIEMPO (SeekBarHandle) AL COMPONENTE seekBar, CON EL NUEVO TAMAÑO QUE TENGA ESTA BARRA

mySeekBar._y=Stage.height-(barra_botones._height);
mySeekBar._width= Stage.width-140;
};
Stage.addListener(miListener);

Muchas gracias
Un saludo
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:05.