var snd1 = new Sound(win3);
var snd2 = new Sound(win4);
function setCrossfade(p) {
snd1.setVolume(100 - p);
snd2.setVolume(p);
}
function setLeft(n) {
win1.attachMovie("vid" + n, "vid", 1);
win1.vid.stop();
win1.onEnterFrame = function() {
if (win2.vid._currentframe == win2.vid._totalframes) {
win3.attachMovie("sd" + n, "sd", 1);
win3.sd.stop();
this.vid.play();
delete this.onEnterFrame;
}
}
snd1 = new Sound(win3.vid);
snd1.setVolume(100 - fader.getPerc());
}
function setRight(n) {
win2.attachMovie("vid" + n, "vid", 1);
win2.vid.stop();
win2.onEnterFrame = function() {
if (win1.vid._currentframe == win1.vid._totalframes) {
win4.attachMovie("sd" + n, "sd", 1);
win4.sd.stop();
this.vid.play();
delete this.onEnterFrame;
}
}
snd2 = new Sound(win4.vid);
snd2.setVolume(fader.getPerc());
}