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

Problema con swichmax "se mezcla sonido de los videos"

Estas en el tema de Problema con swichmax "se mezcla sonido de los videos" en el foro de Flash y Actionscript en Foros del Web. Hola amigos, tengo un problemilla con una web que hice en swichmax que es el siguiente: tengo 5 videos flv que cargan en la misma ...
  #1 (permalink)  
Antiguo 09/04/2010, 00:48
 
Fecha de Ingreso: mayo-2003
Mensajes: 194
Antigüedad: 21 años
Puntos: 4
Problema con swichmax "se mezcla sonido de los videos"

Hola amigos, tengo un problemilla con una web que hice en swichmax que es el siguiente:

tengo 5 videos flv que cargan en la misma escena.
la cuestion es que cuando habro un video se escucha el sonido de los 3 videos anteriores, he probado a poner que no se autoplay, y de meter los diferentes flv en diferentes carpetas, pero no funciona ninguna de estas soluciones.

¿tengo que tener los videos y reproductores en scenas separadas?
¿por que se mezcla el sonido de los videos?

en fin a ver si alguien puede ayudarme.

un saludo y muchas gracias.
  #2 (permalink)  
Antiguo 09/04/2010, 11:06
 
Fecha de Ingreso: mayo-2003
Mensajes: 194
Antigüedad: 21 años
Puntos: 4
Respuesta: Problema con swichmax "se mezcla sonido de los videos"

Amigos:
Investigando lo que puede ser, he visto que el problema es ni mas ni menos que los autoplays estan activados cuando en realidad estan desactivados, por eso al pasar por la linea de tiempo se ponen los autoplays de todos los videos.

que hago para desactivar eso, si la opcion del programa ya lo tengo desactivados ???


un saludo.
  #3 (permalink)  
Antiguo 10/04/2010, 17:59
 
Fecha de Ingreso: mayo-2003
Mensajes: 194
Antigüedad: 21 años
Puntos: 4
Respuesta: Problema con swichmax "se mezcla sonido de los videos"

Pues si amigos, la historia esta en que hay alguna funcion o variable que hace que los reproductores de video comiencen en estado de PLAY.

he podido trastocar las funciones, dondide stop es el play y al play le puse estop, y funciona los videos no comienzan hasta que presionas el STOP.

me parece una chapucilla el tener que apretar al stop para que el video comience ademas de una mala imagen, etc...

por eso os pido ayuda,

¿que variable o funcion controla esto exactamente?

¿alguien sabe algun tuto sobre funciones y variables en actionscript??


un saludo y muchas gracias de ante mano.
  #4 (permalink)  
Antiguo 13/04/2010, 11:00
 
Fecha de Ingreso: mayo-2003
Mensajes: 194
Antigüedad: 21 años
Puntos: 4
Respuesta: Problema con swichmax "se mezcla sonido de los videos"

os pongo el codigo scrpt del los botones del reproductor de video para ver si me podeis ayudar a saber que funcion o variable controla el que el reproductor comience en stop o pause, no en play.

function HasNavigationPoints() {
return theVideoPlayer.cuePoints.length > 0;
}
function LoadedPercentage() {
return theVideoPlayer.loadedPercentage;
}
function Playing() {
return theVideoPlayer.playing;
}
function TotalTime() {
return theVideoPlayer.totalTime;
}
function PlayheadTime() {
return theVideoPlayer.playheadTime;
}
function PlayheadPercentage() {
return theVideoPlayer.playheadPercentage;
}
function Volume() {
return theVideoPlayer.volume;
}
function Muted() {
return theVideoPlayer.muted;
}
function PlayVideo() {
theVideoPlayer.stop();
}
function StopVideo() {
theVideoPlayer.play();
}
function PauseVideo() {
theVideoPlayer.pause();
}
function ForwardVideo() {
theVideoPlayer.seekToNextNavCuePoint();
}
function BackwardVideo() {
theVideoPlayer.seekToPrevNavCuePoint();
}
function SetPlayheadTime(t) {
theVideoPlayer.playheadTime = t;
}
function SetPlayheadPercentage(p) {
theVideoPlayer.playheadPercentage = p;
}
function MuteVideo() {
theVideoPlayer.muted = true;
}
function UnmuteVideo() {
theVideoPlayer.muted = false;
}
function SetVolume(v) {
theVideoPlayer.volume = v;
}
//
// these functions are for temporarily pausing
// the video while we do other actions and then
// restoring the play status after we finish.
//
function RestorePlayPause() {
if (wasPlaying) {
theVideoPlayer.play();
wasPlaying = false;
}
isTemporaryPause = false;
}
function TemporaryPause() {
if (! isTemporaryPause) {
wasPlaying = Playing();
}
theVideoPlayer.pause();
isTemporaryPause = true;
}
//
onSelfEvent (load) {
//
// set up playControl
//
playControl.onEnterFrame = function () {
var playing = Playing() || wasPlaying;
this.PlayBtn._visible = ! playing;
this.PauseBtn._visible = playing;
};
playControl.PlayBtn._button.onRelease = function () {
PlayVideo();
};
playControl.PauseBtn._button.onRelease = function () {
PauseVideo();
};
playControl.StopBtn._button.onRelease = function () {
StopVideo();
};
//
// set up playheadControl
//
playheadControl.FormatTimeDisplay = function (t) {
h = t / 3600;
m = (h - Math.floor(h)) * 60;
s = (m - Math.floor(m)) * 60;
d = (s - Math.floor(s)) * 10;
h = Math.floor(h);
m = Math.floor(m);
s = Math.floor(s);
d = Math.floor(d);
h = (h < 10) ? "0" add h : h;
m = (m < 10) ? "0" add m : m;
s = (s < 10) ? "0" add s : s;
return h add ":" add m add ":" add s add "." add d;
};
playheadControl.UpdateLoadIndicator = function () {
this.LoadIndicator._xscale = LoadedPercentage();
};
playheadControl.Tracker = function () {
this.UpdateLoadIndicator();
this.Thumb._x = PlayheadPercentage() / 100 * this.Track._width + this.Track._x;
this.TimeDisplay = this.FormatTimeDisplay(PlayheadTime());
};
playheadControl.Dragger = function () {
this.UpdateLoadIndicator();
var p = ((this.Thumb._x-this.Track._x)/this.Track._width * 100);
this.TimeDisplay = this.FormatTimeDisplay(p*TotalTime()/100);
SetPlayheadPercentage(p);
};
playheadControl.StartDragging = function () {
this.onEnterFrame = this.Dragger;
this.Thumb.startDragUnlocked(this.Track._x,this.Tr ack._x+this.Track._width,this.Track._y,this.Track. _y);
TemporaryPause();
};
playheadControl.StopDragging = function () {
this.onEnterFrame = this.Tracker;
this.Thumb.stopDrag();
RestorePlayPause();
};
playheadControl.Thumb._button.onPress = function () {
this._parent._parent.StartDragging();
};
playheadControl.Thumb._button.onRelease = playheadControl.Thumb._button.onReleaseOutside = function () {
this._parent._parent.StopDragging();
};
playheadControl.onEnterFrame = playheadControl.Tracker;
//
// set up navigationControl
//
navigationControl.initDelay = 0.32; // delay for nav repeat
navigationControl.speedUp = 0.7;
navigationControl.interval = undefined;
navigationControl.rate = 16;
navigationControl.MovementStart = function (fw) {
TemporaryPause();
this.interval = setInterval(this,"Movement",10,fw);
this.delay = this.initDelay;
this.doneit = false;
this.time = PlayheadTime();
this.pressedTimer = getTimer()/1000;
this.show = true;
};
navigationControl.Movement = function (fw) {
var now = getTimer()/1000;
if (HasNavigationPoints()) {
if (now-this.pressedTimer > this.delay) {
this.delay *= this.speedUp;
this.pressedTimer = now;
if (fw) {
ForwardVideo();
} else {
BackwardVideo();
}
this.doneit = true;
}
} else {
if (this.show) {
var dir = fw ? +1 : -1;
SetPlayheadTime(this.time+(now-this.pressedTimer)*2*this.rate*dir);
TemporaryPause();
}
this.show = ! this.show;
}
updateAfterEvent();
};
navigationControl.MovementEnd = function (fw) {
if (HasNavigationPoints()) {
if (! this.doneit) {
if (fw) {
ForwardVideo();
} else {
BackwardVideo();
}
}
}
RestorePlayPause();
clearInterval(this.interval);
this.interval = undefined;
};
navigationControl.Forward._button.onPress = function () {
this._parent._parent.MovementStart(true);
};
navigationControl.Forward._button.onRelease = navigationControl.Forward._button.onReleaseOutside = function () {
this._parent._parent.MovementEnd(true);
};
navigationControl.Backward._button.onPress = function () {
this._parent._parent.MovementStart(false);
};
navigationControl.Backward._button.onRelease = navigationControl.Backward._button.onReleaseOutsid e = function () {
this._parent._parent.MovementEnd(false);
};
//
// set up volumeControl
//
volumeControl.UpdateControls = function () {
var m = Muted();
this.Mute._visible = ! m;
this.Unmute._visible = m;
};
volumeControl.Unmute._button.onRelease = function () {
UnmuteVideo();
};
volumeControl.Mute._button.onRelease = function () {
MuteVideo();
};
volumeControl.Tracker = function () {
this.Thumb._x = Volume() / 100 * this.Track._width + this.Track._x;
this.VolumeDisplay = Math.round(Volume());
this.UpdateControls();
};
volumeControl.Dragger = function () {
var v = ((this.Thumb._x-this.Track._x)/this.Track._width * 100);
this.VolumeDisplay = Math.round(v);
SetVolume(v);
this.UpdateControls();
};
volumeControl.StartDragging = function () {
this.onEnterFrame = this.Dragger;
this.Thumb.startDragUnlocked(this.Track._x,this.Tr ack._x+this.Track._width,this.Track._y,this.Track. _y);
};
volumeControl.StopDragging = function () {
this.onEnterFrame = this.Tracker;
this.Thumb.stopDrag();
};
volumeControl.Thumb._button.onPress = function () {
this._parent._parent.StartDragging();
};
volumeControl.Thumb._button.onRelease = volumeControl.Thumb._button.onReleaseOutside = function () {
this._parent._parent.StopDragging();
};
volumeControl.onEnterFrame = volumeControl.Tracker;
//
// the external video player object we are controlling
//
theVideoPlayer = _parent[properties.VideoPlayer];
//
// init the vars for temporary pause
//
isTemporaryPause = false;
wasPlaying = false;


he cambiado cosas y nada de nada.

un saludo y muchas gracias.

Etiquetas: sonido
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 23:06.