Frame 2
stop();
playOn_btn.onRelease = function () {
play();
};
Instance of Symbol 84 MovieClip in Frame 3
/* no clip actions */
Frame 15
function changeBeat(changeByHowMuch) {
currentBeatPos = beatSound.position;
beatSound.stop();
currentBeat = currentBeat + changeByHowMuch;
if (currentBeat == 0) {
currentBeat = totalBeatLoops;
} else if (currentBeat > totalBeatLoops) {
currentBeat = 1;
}
beatSound.attachSound((("beat" + currentBeat) + "_") + currentBeatTempo);
beatSound.start(currentBeatPos / 1000, 1);
}
function changeBeatTempo(changeByHowMuch) {
currentBeatTempoPos = beatSound.position;
beatSound.stop();
currentBeatTempo = currentBeatTempo + changeByHowMuch;
if (currentBeatTempo == 0) {
currentBeatTempo = totalBeatTempoLoops;
} else if (currentBeatTempo > totalBeatTempoLoops) {
currentBeatTempo = 1;
}
beatSound.attachSound((("beat" + currentBeat) + "_") + currentBeatTempo);
beatSound.start(currentBeatTempoPos / 1000, 1);
}
function changeString(changeByHowMuch) {
currentStringPos = stringSound.position;
stringSound.stop();
currentString = currentString + changeByHowMuch;
if (currentString == 0) {
currentString = totalStringLoops;
} else if (currentString > totalStringLoops) {
currentString = 1;
}
stringSound.attachSound((("string" + currentString) + "_") + currentStringTempo);
stringSound.start(currentStringPos / 1000, 1);
}
function changeStringTempo(changeByHowMuch) {
currentStringTempoPos = stringSound.position;
stringSound.stop();
currentStringTempo = currentStringTempo + changeByHowMuch;
if (currentStringTempo == 0) {
currentStringTempo = totalStringTempoLoops;
} else if (currentStringTempo > totalStringTempoLoops) {
currentStringTempo = 1;
}
stringSound.attachSound((("string" + currentString) + "_") + currentStringTempo);
stringSound.start(currentStringTempoPos / 1000, 1);
}
function changePiano(changeByHowMuch) {
currentPianoPos = pianoSound.position;
pianoSound.stop();
currentPiano = currentPiano + changeByHowMuch;
if (currentPiano == 0) {
currentPiano = totalPianoLoops;
} else if (currentPiano > totalPianoLoops) {
currentPiano = 1;
}
pianoSound.attachSound((("piano" + currentPiano) + "_") + currentPianoTempo);
pianoSound.start(currentPianoPos / 1000, 1);
}
function changePianoTempo(changeByHowMuch) {
currentPianoTempoPos = pianoSound.position;
pianoSound.stop();
currentPianoTempo = currentPianoTempo + changeByHowMuch;
if (currentPianoTempo == 0) {
currentPianoTempo = totalPianoTempoLoops;
} else if (currentPianoTempo > totalPianoTempoLoops) {
currentPianoTempo = 1;
}
pianoSound.attachSound((("piano" + currentPiano) + "_") + currentPianoTempo);
pianoSound.start(currentPianoTempoPos / 1000, 1);
}
function changeSyn(changeByHowMuch) {
currentSynPos = synSound.position;
synSound.stop();
currentSyn = currentSyn + changeByHowMuch;
if (currentSyn == 0) {
currentSyn = totalSynLoops;
} else if (currentSyn > totalSynLoops) {
currentSyn = 1;
}
synSound.attachSound((("syn" + currentSyn) + "_") + currentSynTempo);
synSound.start(currentSynPos / 1000, 1);
}
function changeSynTempo(changeByHowMuch) {
currentSynTempoPos = synSound.position;
synSound.stop();
currentSynTempo = currentSynTempo + changeByHowMuch;
if (currentSynTempo == 0) {
currentSynTempo = totalSynTempoLoops;
} else if (currentSynTempo > totalSynTempoLoops) {
currentSynTempo = 1;
}
synSound.attachSound((("syn" + currentSyn) + "_") + currentSynTempo);
synSound.start(currentPianoTempoPos / 1000, 1);
}
function muteTrack(whichTrack) {
whichTrack.Muted = true;
whichTrack.mySound.setVolume(0);
}
function unMute(whichTrack) {
whichTrack.Muted = false;
}
function soloTrack(whichTrack) {
slider_mc1.Muted = true;
slider_mc1.mySound.setVolume(0);
slider_mc2.Muted = true;
slider_mc2.mySound.setVolume(0);
slider_mc3.Muted = true;
slider_mc3.mySound.setVolume(0);
slider_mc4.Muted = true;
slider_mc4.mySound.setVolume(0);
whichTrack.Muted = false;
}
function unSolo() {
slider_mc1.Muted = false;
slider_mc2.Muted = false;
slider_mc3.Muted = false;
slider_mc4.Muted = false;
}
stop();
vol.data2Change = "vol";
allSound = new Sound();
beatSound = new Sound(soundHolder1);
beatSound.attachSound("beat1_1");
beatSound.setVolume(0);
currentBeat = 1;
totalBeatLoops = 2;
currentBeatTempo = 1;
totalBeatTempoLoops = 2;
beatSound.start();
beatSound.onSoundComplete = function () {
this.start();
};
slider_mc1.mySound = beatSound;
beatstat_txt.text = "beat1";
changeBeat_Next.onRelease = function () {
changeBeat(1);
beatGraphic_mc.play();
};
change_TempoBeat.onRelease = function () {
changeBeatTempo(1);
beatTempo_mc.play();
};
stringSound = new Sound(soundHolder2);
stringSound.attachSound("string1_1");
stringSound.setVolume(0);
stringSound.start();
stringSound.onSoundComplete = function () {
this.start();
};
slider_mc2.mySound = stringSound;
currentString = 1;
totalStringLoops = 2;
currentStringTempo = 1;
totalStringTempoLoops = 2;
changeString_Next.onRelease = function () {
changeString(1);
stringGraphic_mc.play();
};
change_TempoString.onRelease = function () {
changeStringTempo(1);
stringTempo_mc.play();
};
pianoSound = new Sound(soundHolder3);
pianoSound.attachSound("piano1_1");
pianoSound.setVolume(0);
pianoSound.start();
pianoSound.onSoundComplete = function () {
this.start();
};
slider_mc3.mySound = pianoSound;
currentPiano = 1;
totalPianoLoops = 2;
currentPianoTempo = 1;
totalPianoTempoLoops = 2;
changePiano_Next.onRelease = function () {
changePiano(1);
pianoGraphic_mc.play();
};
change_TempoPiano.onRelease = function () {
changePianoTempo(1);
pianoTempo_mc.play();
};
synSound = new Sound(soundHolder4);
synSound.attachSound("syn1_1");
synSound.setVolume(0);
synSound.start();
synSound.onSoundComplete = function () {
this.start();
};
slider_mc4.mySound = synSound;
currentSyn = 1;
totalSynLoops = 2;
currentSynTempo = 1;
totalSynTempoLoops = 2;
changeSyn_Next.onRelease = function () {
changeSyn(1);
synGraphic_mc.play();
};
change_TempoSyn.onRelease = function () {
changeSynTempo(1);
synTempo_mc.play();
};
play_btn.enabled = false;
play_btn._alpha = 50;
stop_btn.enabled = false;
stop_btn._alpha = 50;
record_btn.onPress = function () {
_root.record_btn.gotoAndStop("on");
};
record_btn.onRelease = function () {
_root.record_btn.gotoAndStop("off");
graphic_mc.gotoAndStop("record");
stop_btn.enabled = true;
stop_btn._alpha = 100;
delete recordedData;
recordedData = new Array();
counter = 0;
this.onEnterFrame = function () {
thisFrame = new Array();
thisFrame[0] = slider_mc1.dragger_mc._x;
thisFrame[1] = slider_mc2.dragger_mc._x;
thisFrame[2] = slider_mc3.dragger_mc._x;
thisFrame[3] = slider_mc4.dragger_mc._x;
thisFrame[4] = currentBeat;
thisFrame[5] = currentBeatTempo;
thisFrame[6] = currentString;
thisFrame[7] = currentStringTempo;
thisFrame[8] = currentPiano;
thisFrame[9] = currentPianoTempo;
thisFrame[10] = currentSyn;
thisFrame[11] = currentSynTempo;
thisFrame[12] = vol.Indicator._rotation;
recordedData[counter] = thisFrame;
counter++;
};
};
stop_btn.onPress = function () {
_root.stop_btn.gotoAndStop("on");
};
stop_btn.onRelease = function () {
_root.stop_btn.gotoAndStop("off");
slider_mc1.dragger_mc._x = _root.slider_mc1.bar_mc._x;
slider_mc2.dragger_mc._x = _root.slider_mc2.bar_mc._x;
slider_mc3.dragger_mc._x = _root.slider_mc3.bar_mc._x;
slider_mc4.dragger_mc._x = _root.slider_mc4.bar_mc._x;
record_btn.onEnterFrame = null;
this.enabled = false;
this._alpha = 50;
play_btn.onEnterFrame = null;
graphic_mc.gotoAndStop("stop");
play_btn.enabled = true;
play_btn._alpha = 100;
};
play_btn.onPress = function () {
_root.play_btn.gotoAndStop("on");
};
play_btn.onRelease = function () {
_root.play_btn.gotoAndStop("off");
stop_btn.enabled = true;
stop_btn._alpha = 100;
status_txt.text = "Playing";
counter = 0;
play_btn.onEnterFrame = function () {
thisFrame = recordedData[counter];
if (counter == 0) {
beatSound.stop();
beatSound.attachSound((("beat" + thisFrame[4]) + "_") + thisFrame[5]);
beatSound.start(0, 1);
if (thisFrame[4] == 1) {
beatGraphic_mc.gotoAndStop(2);
} else {
beatGraphic_mc.gotoAndStop(4);
}
if (thisFrame[5] == 1) {
beatTempo_mc.gotoAndStop(2);
} else {
beatTempo_mc.gotoAndStop(4);
}
stringSound.stop();
stringSound.attachSound((("string" + thisFrame[6]) + "_") + thisFrame[7]);
stringSound.start(0, 1);
if (thisFrame[6] == 1) {
stringGraphic_mc.gotoAndStop(2);
} else {
stringGraphic_mc.gotoAndStop(4);
}
if (thisFrame[7] == 1) {
stringTempo_mc.gotoAndStop(2);
} else {
stringTempo_mc.gotoAndStop(4);
}
pianoSound.stop();
pianoSound.attachSound((("piano" + thisFrame[8]) + "_") + thisFrame[9]);
pianoSound.start(0, 1);
if (thisFrame[8] == 1) {
pianoGraphic_mc.gotoAndStop(2);
} else {
pianoGraphic_mc.gotoAndStop(4);
}
if (thisFrame[9] == 1) {
pianoTempo_mc.gotoAndStop(2);
} else {
pianoTempo_mc.gotoAndStop(4);
}
synSound.stop();
synSound.attachSound((("piano" + thisFrame[10]) + "_") + thisFrame[11]);
synSound.start(0, 1);
if (thisFrame[10] == 1) {
synGraphic_mc.gotoAndStop(2);
} else {
pianoGraphic_mc.gotoAndStop(4);
}
if (thisFrame[11] == 1) {
synTempo_mc.gotoAndStop(2);
} else {
synTempo_mc.gotoAndStop(4);
}
}
if ((previousBeatLoop != thisFrame[4]) || (previousBeatTempo != thisFrame[5])) {
beatSound.stop();
beatSound.attachSound((("beat" + thisFrame[4]) + "_") + thisFrame[5]);
beatSound.start(0, 1);
if (thisFrame[4] == 1) {
beatGraphic_mc.gotoAndStop(2);
} else {
beatGraphic_mc.gotoAndStop(4);
}
if (thisFrame[5] == 1) {
beatTempo_mc.gotoAndStop(2);
} else {
beatTempo_mc.gotoAndStop(4);
}
}
if ((previousStringLoop != thisFrame[6]) || (previousStringTempo != thisFrame[7])) {
stringSound.stop();
stringSound.attachSound((("string" + thisFrame[6]) + "_") + thisFrame[7]);
stringSound.start(0, 1);
if (thisFrame[6] == 1) {
stringGraphic_mc.gotoAndStop(2);
} else {
stringGraphic_mc.gotoAndStop(4);
}
if (thisFrame[7] == 1) {
stringTempo_mc.gotoAndStop(2);
} else {
stringTempo_mc.gotoAndStop(4);
}
}
if ((previousPianoLoop != thisFrame[8]) || (previousPianoTempo != thisFrame[9])) {
pianoSound.stop();
pianoSound.attachSound((("piano" + thisFrame[8]) + "_") + thisFrame[9]);
pianoSound.start(0, 1);
if (thisFrame[8] == 1) {
pianoGraphic_mc.gotoAndStop(2);
} else {
pianoGraphic_mc.gotoAndStop(4);
}
if (thisFrame[9] == 1) {
pianoTempo_mc.gotoAndStop(2);
} else {
pianoTempo_mc.gotoAndStop(4);
}
}
if ((previousSynLoop != thisFrame[10]) || (previousSynTempo != thisFrame[11])) {
synSound.stop();
synSound.attachSound((("syn" + thisFrame[10]) + "_") + thisFrame[11]);
synSound.start(0, 1);
if (thisFrame[10] == 1) {
synGraphic_mc.gotoAndStop(2);
} else {
synGraphic_mc.gotoAndStop(4);
}
if (thisFrame[11] == 1) {
synTempo_mc.gotoAndStop(2);
} else {
synTempo_mc.gotoAndStop(4);
}
}
slider_mc1.dragger_mc._x = thisFrame[0];
slider_mc2.dragger_mc._x = thisFrame[1];
slider_mc3.dragger_mc._x = thisFrame[2];
slider_mc4.dragger_mc._x = thisFrame[3];
previousBeatLoop = thisFrame[4];
previousBeatTempo = thisFrame[5];
previousStringLoop = thisFrame[6];
previousStringTempo = thisFrame[7];
previousPianoLoop = thisFrame[8];
previousPianoTempo = thisFrame[9];
previousSynLoop = thisFrame[10];
previousSynTempo = thisFrame[11];
vol.turn(thisFrame[12]);
vol.custom();
counter++;
if (counter == recordedData.length) {
counter = 0;
}
};
record_btn.onEnterFrame = null;
};
Instance of Symbol 155 MovieClip "vol" in Frame 15
onClipEvent (load) {
function custom() {
if (data2Change == "vol") {
_parent.allSound.setVolume(curVal);
} else if (data2Change == "pan") {
_parent.allSound.setPan(curVal);
}
}
minRot = 200;
maxRot = 160;
dir = "cw";
minValue = 0;
maxValue = 100;
initValue = 100;
Text._visible = true;
_root.curVal = initValue;
}
Symbol 26 Button
on (release) {
_root.play();
}
Symbol 27 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 27 MovieClip Frame 2
gotoAndPlay (1);
Symbol 63 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 10
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 5
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 9
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
dragger_mc.onPress = function () {
this.startDrag(false, bar_mc._x, this._y, bar_mc._x + bar_mc._width, this._y);
};
dragger_mc.onRelease = function () {
stopDrag();
};
ratio = bar_mc._width / 100;
dragger_mc.onEnterFrame = function () {
if (Muted != true) {
mySound.setVolume((-this._x) / ratio);
}
volume_txt.text = Math.round(mySound.getVolume());
};
Muted = false;
mute_btn.onRelease = function () {
if (Muted == false) {
_root.muteTrack(this._parent);
} else {
_root.unMute(this._parent);
}
};
soloed = false;
solo_btn.onRelease = function () {
if (soloed != true) {
_root.soloTrack(this._parent);
soloed = true;
} else {
_root.unSolo();
soloed = false;
}
};
Symbol 114 MovieClip Frame 1
dragger_mc.onPress = function () {
this.startDrag(false, bar_mc._x, this._y, bar_mc._x + bar_mc._width, this._y);
};
dragger_mc.onRelease = function () {
stopDrag();
};
ratio = bar_mc._width / 100;
dragger_mc.onEnterFrame = function () {
if (Muted != true) {
mySound.setVolume((-this._x) / ratio);
}
volume_txt.text = Math.round(mySound.getVolume());
};
Muted = false;
mute_btn.onRelease = function () {
if (Muted == false) {
_root.muteTrack(this._parent);
} else {
_root.unMute(this._parent);
}
};
soloed = false;
solo_btn.onRelease = function () {
if (soloed != true) {
_root.soloTrack(this._parent);
soloed = true;
} else {
_root.unSolo();
soloed = false;
}
};
Symbol 116 MovieClip Frame 1
dragger_mc.onPress = function () {
this.startDrag(false, bar_mc._x, this._y, bar_mc._x + bar_mc._width, this._y);
};
dragger_mc.onRelease = function () {
stopDrag();
};
ratio = bar_mc._width / 100;
dragger_mc.onEnterFrame = function () {
if (Muted != true) {
mySound.setVolume((-this._x) / ratio);
}
volume_txt.text = Math.round(mySound.getVolume());
};
Muted = false;
mute_btn.onRelease = function () {
if (Muted == false) {
_root.muteTrack(this._parent);
} else {
_root.unMute(this._parent);
}
};
soloed = false;
solo_btn.onRelease = function () {
if (soloed != true) {
_root.soloTrack(this._parent);
soloed = true;
} else {
_root.unSolo();
soloed = false;
}
};
Symbol 118 MovieClip Frame 1
dragger_mc.onPress = function () {
this.startDrag(false, bar_mc._x, this._y, bar_mc._x + bar_mc._width, this._y);
};
dragger_mc.onRelease = function () {
stopDrag();
};
ratio = bar_mc._width / 100;
dragger_mc.onEnterFrame = function () {
if (Muted != true) {
mySound.setVolume((-this._x) / ratio);
}
volume_txt.text = Math.round(mySound.getVolume());
};
Muted = false;
mute_btn.onRelease = function () {
if (Muted == false) {
_root.muteTrack(this._parent);
} else {
_root.unMute(this._parent);
}
};
soloed = false;
solo_btn.onRelease = function () {
if (soloed != true) {
_root.soloTrack(this._parent);
soloed = true;
} else {
_root.unSolo();
soloed = false;
}
};
Symbol 129 MovieClip Frame 2
stop();
Symbol 129 MovieClip Frame 4
stop();
Symbol 132 MovieClip Frame 2
stop();
Symbol 132 MovieClip Frame 4
stop();
Symbol 135 MovieClip Frame 2
stop();
Symbol 135 MovieClip Frame 4
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 4
stop();
Symbol 141 MovieClip Frame 2
stop();
Symbol 141 MovieClip Frame 4
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 4
stop();
Symbol 147 MovieClip Frame 2
stop();
Symbol 147 MovieClip Frame 4
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 4
stop();
Symbol 152 Button
on (press) {
pressing = true;
gotoAndPlay ("Eval");
}
on (rollOut, release, releaseOutside) {
pressing = false;
}
Symbol 155 MovieClip Frame 1
function getRange() {
if (dir == "cw") {
if (minRot < maxRot) {
range = maxRot - minRot;
} else {
range = (maxRot + 360) - minRot;
}
} else if (minRot > maxRot) {
range = minRot - maxRot;
} else {
range = (minRot + 360) - maxRot;
}
}
function setDots() {
Limiter1._rotation = minRot;
Limiter1.text = minValue;
Limiter2._rotation = maxRot;
Limiter2.text = maxValue;
if (minRot > 180) {
Limiter1.gotoAndStop(2);
} else {
Limiter1.gotoAndStop(1);
}
if (maxRot > 180) {
Limiter2.gotoAndStop(2);
} else {
Limiter2.gotoAndStop(1);
}
}
function init(val) {
var _local1 = (val - minValue) / (maxValue - minValue);
if (dir == "cw") {
rawAngle = (minRot + (range * _local1)) % 360;
} else {
rawAngle = (minRot - (range * _local1)) % 360;
if (rawAngle < 0) {
rawAngle = rawAngle + 360;
}
}
turn(rawAngle);
}
function getAngle() {
theta = Math.atan2(_xmouse, -_ymouse);
rawAngle = (theta * 180) / Math.PI;
if (rawAngle <= 0) {
rawAngle = rawAngle + 360;
}
}
function convertAngle(angle) {
var _local1;
if (dir == "cw") {
_local1 = angle - minRot;
} else {
_local1 = minRot - angle;
}
if (_local1 < 0) {
_local1 = _local1 + 360;
}
return(_local1);
}
function turn(angle2) {
curVal = ((convertAngle(angle2) / range) * (maxValue - minValue)) + minValue;
Text.text = Math.round(curVal);
Indicator.text = Math.round(curVal);
if (angle2 > 180) {
Indicator.gotoAndStop(1);
} else {
Indicator.gotoAndStop(2);
}
Indicator._rotation = angle2;
}
function adjust() {
if (pressing == true) {
getAngle();
if (convertAngle(rawAngle) > range) {
freeze = true;
}
if (freeze != true) {
turn(rawAngle);
lastValidDeg = rawAngle;
} else if (convertAngle(lastValidDeg) < (range / 2)) {
if (convertAngle(rawAngle) > (range / 2)) {
turn(minRot);
} else {
freeze = false;
turn(rawAngle);
}
} else if ((convertAngle(rawAngle) < (range / 2)) || (convertAngle(rawAngle) > range)) {
turn(maxRot);
} else {
freeze = false;
turn(rawAngle);
}
} else {
freeze = false;
gotoAndStop ("Pause");
}
}
function build() {
getRange();
setDots();
init(curVal);
}
getRange();
setDots();
init(initValue);
Symbol 155 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 3
adjust();
custom();
Symbol 155 MovieClip Frame 4
adjust();
gotoAndPlay ("Eval");