Frame 1
var loaded = false;
onEnterFrame = function () {
if (!loaded) {
var _local3 = _root.getBytesTotal();
var _local4 = _root.getBytesLoaded();
if (_local4 == _local3) {
loaded = true;
_root.gotoAndPlay(90);
this.kirupatxt = "OKKKEI";
loaded = true;
} else {
_root.gotoAndStop(1);
thePerc = Math.round((_local4 * 100) / _local3);
preloader_mc.value = _local4 / _local3;
this.kirupatxt = thePerc + "% loaded";
}
}
};
Frame 2
Frame 4
stop();
Frame 5
stop();
Frame 90
frames = 0;
trans = false;
transDir = 0;
transP = 0;
oldRadio = 0;
MAX_PLAYERS = 2;
theRadios = new Array("radiotrans1", "radiotrans2", "radiotrans3");
players = new Array();
mm[0] = this.attachMovie("player", "mm0", 10001);
mm[1] = this.attachMovie("player", "mm1", 10002);
this.attachMovie("dial", "dial1", 10000);
dial1._x = 200;
dial1._y = 320;
tranSound = this.createEmptyMovieClip("tranSound", this.getNextHighestDepth());
tranSound.ss = new Array();
tranSound.ss[1] = new Sound(tranSound);
tranSound.ss[1].attachSound("sweep1");
theRadio = 1;
currentVol = 100;
pp = 0;
StartPlayer = function (n) {
eval ("mm" + pp).StopSound();
pp = (pp + 1) % MAX_PLAYERS;
eval ("mm" + pp).StartSound(n - 1);
};
SettaVolumi = function (v) {
mm1.theSound.setVolume(v);
mm0.theSound.setVolume(v);
mm1.theVolume = v;
mm1.theVolume = v;
currentVol = v;
tranSound.setVolume(v);
};
SettaVolumi(50);
SelectS = function (s) {
if (s < 100) {
theNewRadio = 0;
} else if (s < 110) {
theNewRadio = 0;
} else if (s < 120) {
theNewRadio = 2;
} else if (s < 130) {
theNewRadio = 3;
} else if (s < 140) {
theNewRadio = 4;
} else if (s < 180) {
theNewRadio = 0;
} else if (s < 190) {
theNewRadio = 5;
} else if (s < 200) {
theNewRadio = 6;
} else if (s < 210) {
theNewRadio = 7;
} else if (s < 220) {
theNewRadio = 8;
} else if (s < 300) {
theNewRadio = 0;
} else if (s < 310) {
theNewRadio = 9;
} else if (s < 320) {
theNewRadio = 10;
} else if (s < 400) {
theNewRadio = 0;
} else if (s < 410) {
theNewRadio = 11;
} else if (s < 420) {
theNewRadio = 12;
} else if (s < 430) {
theNewRadio = 13;
} else if (s < 440) {
theNewRadio = 14;
} else if (s < 550) {
theNewRadio = 0;
} else if (s < 560) {
theNewRadio = 15;
} else if (s < 570) {
theNewRadio = 16;
} else if (s < 580) {
theNewRadio = 0;
} else if (s < 650) {
theNewRadio = 17;
} else if (s < 660) {
theNewRadio = 18;
} else if (s < 750) {
theNewRadio = 0;
} else if (s < 760) {
theNewRadio = 19;
} else if (s < 850) {
theNewRadio = 0;
} else if (s < 860) {
theNewRadio = 20;
} else if (s < 870) {
theNewRadio = 1;
} else {
theNewRadio = 0;
}
if (theNewRadio != theRadio) {
tranSound.ss[1].stop();
tranSound.ss[1].setVolume(currentVol * 1.5);
tranSound.ss[1].start(0, 1);
theRadio = theNewRadio;
StartPlayer(theRadio);
}
theVal = theNewRadio;
return(0);
};
tempoPassato = function () {
return(frames * 0.5);
};
onEnterFrame = function () {
frames = frames + 1;
};
stop();
Symbol 8 MovieClip [volumeknob] Frame 1
increment = 4;
level = 0;
knob1.knobText.text = "yuyuy";
panKnob.onPress = function () {
if (Key.isDown(Key.getCode(18))) {
autoPan = true;
} else {
autoPan = false;
start = -_root._ymouse;
newStart = panKnob._rotation;
if (!dragging) {
}
dragging = true;
}
};
panKnob.onRelease = function () {
dragging = false;
};
panKnob.onReleaseOutside = function () {
dragging = false;
};
this.onEnterFrame = function () {
if (dragging) {
pivot = (((-_root._ymouse) - start) * 2) + newStart;
panKnob._rotation = pivot;
if (pivot < -135) {
panKnob._rotation = -135;
}
if (pivot > 135) {
panKnob._rotation = 135;
}
level = Math.round(panKnob._rotation / 1.35);
} else {
if (autoPan) {
textInput.value.selectable = false;
level = level + increment;
if ((level > 99) || (level < -99)) {
increment = increment * -1;
}
} else {
textInput.value.selectable = true;
}
if (level > 100) {
level = 100;
} else if (level < -100) {
level = -100;
} else if ((level <= 100) && (level >= -100)) {
panKnob._rotation = level * 1.35;
}
}
_root.dial1._x = _root.scale1._x + (2 * (level + 100));
_root.SelectS(Math.round(0.5 * (level + 100)));
};
Symbol 11 MovieClip [player] Frame 1
var theVolume = 0;
var actVol = 0;
var theR = "";
theTrim = 0;
transUp = false;
transDown = false;
stepVol = 0;
stepsUp = 1;
stepsDown = 1;
var theSound;
theSoundComplete = function () {
theSound.start(0, 999);
};
StartSound = function (n) {
delete theSound;
theSound = new Sound(this);
theSound.onSoundComplete = theSoundComplete;
theSound.attachSound((n + 1) + "");
theR = _root.theRadios[n];
dur = theSound.duration;
now = 100 * Math.round(_root.tempoPassato());
pos = (now % dur) * 0.001;
actVol = 0;
theVolume = _root.currentVol;
theSound.setVolume(0);
theSound.start(pos, 1);
stepVol = theVolume / stepsUp;
transUp = true;
transDown = false;
};
StopSound = function () {
theSound.stop();
theVolume = _root.currentVol;
actVol = theVolume;
stepVol = _root.currentVol / stepsDown;
};
PrintMsg = function (s) {
trace(s);
};
SetSound = function (n) {
theSound = new Sound(this);
theSound.attachSound(_root.theRadios[n]);
};
this.onEnterFrame = function () {
if (transUp) {
actVol = actVol + stepVol;
if (actVol <= theVolume) {
theSound.setVolume(actVol);
} else {
transUp = 0;
}
} else if (transDown) {
actVol = actVol - stepVol;
if (actVol >= 0) {
theSound.setVolume(actVol);
} else {
transDown = false;
theSound.stop();
delete theSound;
}
}
};
Symbol 13 MovieClip [tuneknob] Frame 1
lastRotation = 0;
newRotation = 0;
theRotation = 0;
increment = 4;
level = 0;
knob1.knobText.text = "yuyuy";
anti = false;
panKnob.onPress = function () {
if (Key.isDown(Key.getCode(18))) {
autoPan = true;
} else {
autoPan = false;
start = -_root._ymouse;
if (_xmouse >= 0) {
anti = false;
} else {
anti = true;
}
anti = true;
newStart = theRotation;
if (!dragging) {
}
dragging = true;
initRot = theRotation;
}
};
panKnob.onRelease = function () {
dragging = false;
};
panKnob.onReleaseOutside = function () {
dragging = false;
};
this.onEnterFrame = function () {
if (dragging) {
if (anti) {
pivot = ((-_root._ymouse) - start) * 2;
} else {
pivot = (_root._ymouse + start) * 2;
}
theRotation = initRot + pivot;
if (theRotation < -540) {
theRotation = -540;
}
if (theRotation > 540) {
theRotation = 540;
}
panKnob._rotation = theRotation;
if (pivot < -540) {
}
if (pivot > 540) {
}
if ((lastRotation > 170) && (panKnob._rotation < 0)) {
}
level = Math.round(panKnob._rotation / 1.35);
level = Math.round(panKnob._rotation);
} else {
if (autoPan) {
textInput.value.selectable = false;
level = level + increment;
if ((level > 99) || (level < -99)) {
increment = increment * -1;
}
} else {
textInput.value.selectable = true;
}
if (level > 100) {
} else if (level < -100) {
} else if ((level <= 100) && (level >= -100)) {
}
}
_root.theVal2 = theRotation;
theNewPos = _root.scale1._x + ((200 * (theRotation + 540)) / 540);
theNewPos = 207 + (0.35 * (540 + theRotation));
_root.dial1._x = (_root.dial1._x * 0.5) + (0.5 * theNewPos);
_root.SelectS(Math.round((1000 * (theRotation + 540)) / 1080));
};
Symbol 17 MovieClip Frame 1
var value = 0;
onEnterFrame = function () {
bar_mc._xscale = 100 * value;
};
onEnterFrame();
Symbol 81 MovieClip Frame 1
lastRotation = 0;
newRotation = 0;
theRotation = 0;
increment = 4;
level = 0;
knob1.knobText.text = "yuyuy";
anti = 0;
panKnob.onPress = function () {
if (Key.isDown(Key.getCode(18))) {
autoPan = true;
} else {
autoPan = false;
start = -_root._ymouse;
newStart = theRotation;
if (!dragging) {
}
if (_xmouse >= 0) {
anti = false;
} else {
anti = true;
}
anti = true;
dragging = true;
initRot = theRotation;
}
};
panKnob.onRelease = function () {
dragging = false;
};
panKnob.onReleaseOutside = function () {
dragging = false;
};
this.onEnterFrame = function () {
if (dragging) {
pivot = (((-_root._ymouse) - start) * 2) + newStart;
if (anti) {
pivot = ((-_root._ymouse) - start) * 2;
} else {
pivot = (_root._ymouse + start) * 2;
}
theRotation = initRot + pivot;
if (theRotation < -135) {
theRotation = -135;
}
if (theRotation > 135) {
theRotation = 135;
}
panKnob._rotation = theRotation;
if (pivot < -135) {
}
if (pivot > 135) {
}
if ((lastRotation > 170) && (panKnob._rotation < 0)) {
}
level = Math.round(panKnob._rotation / 1.35);
if (level > 100) {
level = 100;
} else if (level < -100) {
level = -100;
}
numero = Math.round((100 + level) / 2);
_root.SettaVolumi(numero);
} else {
if (autoPan) {
textInput.value.selectable = false;
level = level + increment;
if ((level > 99) || (level < -99)) {
increment = increment * -1;
}
} else {
textInput.value.selectable = true;
}
if (level > 100) {
level = 100;
} else if (level < -100) {
level = -100;
} else if ((level <= 100) && (level >= -100)) {
}
}
_root.theVal2 = theRotation;
theNewPos = _root.scale1._x + ((200 * (theRotation + 540)) / 540);
theNewPos = 207 + (0.35 * (540 + theRotation));
theVal2 = level;
};