Frame 1
loops = 100;
initializing = true;
tones = ["e", "a", "d", "g", "b", "eh"];
guitarStrings = ["eGS", "aGS", "dGS", "gGS", "bGS", "ehGS"];
interval = 5;
click = Number(0);
function switchInstrument(type) {
var radio;
if (type == "tone") {
radio = 1;
} else {
radio = 2;
}
radioButton("soundType", 2, radio);
setSoundType(type);
stopAll();
highlightNote();
}
function highlightNote(who) {
var me;
i = 0;
while (i < (_root.tones.length + 1)) {
if (who == _root.tones[i]) {
me = Number(i) + Number(1);
current.note = i;
}
i++;
}
i = 0;
while (i < (_root.guitarStrings.length + 1)) {
if (who == _root.guitarStrings[i]) {
me = Number(i) + Number(1);
current.note = i;
}
i++;
}
radioButton("h", 6, me);
}
function toggleSingle(who, index) {
click = index;
if (eval (("bSingles." add who) add "State")) {
stopAll();
Set(("bSingles." add who) add "State", 0);
highlightNote();
} else {
stopAll(who);
Set(("bSingles." add who) add "State", 1);
highlightNote(who);
}
}
function setSoundType(input) {
current.soundType = input;
bSingles.gotoAndStop(input);
if (input == "tone") {
volStartup(slider1, 100);
volStartup(slider2, 100);
volStartup(slider3, 100);
volStartup(slider4, 90);
volStartup(slider5, 90);
volStartup(slider6, 85);
i = 1;
while (i < 7) {
eval ("slider" add i).id = eval (tones[i - 1]);
i++;
}
} else {
i = 1;
while (i < 7) {
volStartup(eval ("slider" add i), 100);
eval ("slider" add i).id = eval (guitarStrings[i - 1]);
i++;
}
}
}
function radioButton(type, total, selected) {
i = 1;
while (i < (total + 1)) {
eval (type add i).gotoAndStop("off");
i = i + 1;
}
eval (type add selected.toString()).gotoAndStop("on");
}
function stopAll(turnOn) {
i = 0;
while (i < 7) {
Set(("bSingles." add guitarStrings[i]) add "State", 0);
Set(("bSingles." add tones[i]) add "State", 0);
i++;
}
i = 0;
while (i < _root.tones.length) {
eval (tones[i].toString()).stop();
i++;
}
i = 0;
while (i < _root.guitarStrings.length) {
eval (guitarStrings[i].toString()).stop();
i++;
}
eval (turnOn).stop();
eval (turnOn).start(0, loops);
}
function volStartup(who, value) {
who.handle._y = ((who.bkgd._height - who.handle._height) * value) / 100;
}
function vol(who, value) {
var me;
me = eval (who);
me.setVolume(value);
}
stop();
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (load) {
playHere = 95;
startAction = "play";
}
Instance of Symbol 49 MovieClip "dialR" in Frame 2
onClipEvent (enterFrame) {
live = this.hitTest(_root._xmouse, _root._ymouse, true);
if (live) {
_root.interval = int(5 + (4 * (arrow._rotation / 135)));
}
}
Instance of Symbol 92 MovieClip "slider2" in Frame 2
onClipEvent (load) {
id = _root.a;
}
Instance of Symbol 92 MovieClip "slider1" in Frame 2
onClipEvent (load) {
id = _root.e;
}
Instance of Symbol 92 MovieClip "slider3" in Frame 2
onClipEvent (load) {
id = _root.d;
}
Instance of Symbol 92 MovieClip "slider4" in Frame 2
onClipEvent (load) {
id = _root.g;
}
Instance of Symbol 92 MovieClip "slider5" in Frame 2
onClipEvent (load) {
id = _root.b;
}
Instance of Symbol 92 MovieClip "slider6" in Frame 2
onClipEvent (load) {
id = _root.eh;
}
Frame 3
e = new Sound(eMC);
e.attachSound("etone");
a = new Sound(aMC);
a.attachSound("atone");
d = new Sound(dMC);
d.attachSound("dtone");
g = new Sound(gMC);
g.attachSound("gtone");
b = new Sound(bMC);
b.attachSound("btone");
eh = new Sound(ehMC);
eh.attachSound("ehtone");
eGS = new Sound(eMCgs);
eGS.attachSound("eGuitar");
aGS = new Sound(aMCgs);
aGS.attachSound("aGuitar");
dGS = new Sound(dMCgs);
dGS.attachSound("dGuitar");
gGS = new Sound(gMCgs);
gGS.attachSound("gGuitar");
bGS = new Sound(bMCgs);
bGS.attachSound("bGuitar");
ehGS = new Sound(ehMCgs);
ehGS.attachSound("ehGuitar");
Instance of Symbol 89 MovieClip in Frame 4
onClipEvent (load) {
_root.volStartup(_root.slider1, 50);
_root.volStartup(_root.slider2, 100);
_root.volStartup(_root.slider3, 30);
_root.volStartup(_root.slider4, 35);
_root.volStartup(_root.slider5, 40);
_root.volStartup(_root.slider6, 10);
}
Frame 5
stop();
radioButton("soundType", 2, 2);
setSoundType(current.soundType);
Instance of Symbol 130 MovieClip "clock" in Frame 5
onClipEvent (enterFrame) {
timerFunk();
if (_root.interval < _parent.mysec) {
timeBase = getTimer();
freeze = Number(0);
if (5 < _root.click) {
_root.click = 0;
}
if (_root.current.soundType == "guitar") {
_root.highlightNote(_root.guitarStrings[_root.click].toString());
_root.stopAll(_root.guitarStrings[_root.click].toString());
}
if (_root.current.soundType == "tone") {
_root.highlightNote(_root.tones[_root.click].toString());
_root.stopAll(_root.tones[_root.click].toString());
}
_root.click++;
}
}
Symbol 4 Button
on (release) {
gotoAndPlay (2);
}
Symbol 11 MovieClip Frame 1
function prelaod() {
if (doneLoading == 0) {
if (!check) {
this_frame = _parent._currentframe;
_root.this_frame = this_frame;
if ((playhere >= 100) || (1 >= playhere)) {
playhere = 95;
}
playHereP = playHere / 100;
check = 1;
}
total = _parent.getBytesTotal() * playHereP;
isloaded = _parent.getBytesLoaded();
percent = 100 * (isLoaded / total);
bytes = ((int(isloaded / 1000) add " KB of ") add int(total / 1000)) add " KB";
percentPrint = int(percent) add "% LOADED";
bar._xscale = percent;
if (Number(95) < Number(percent)) {
if (thenGoHere) {
if (startAction == "play") {
_parent.gotoAndPlay(thenGoHere);
}
if (startAction == "stop") {
_parent.gotoAndStop(thenGoHere);
}
} else {
if (startAction == "play") {
_parent.gotoAndPlay(Number(this_frame + 1));
}
if (startAction == "stop") {
_parent.gotoAndStop(Number(this_frame + 1));
}
}
gotoAndStop ("off");
doneLoading = 1;
} else if (waitHere) {
_parent.gotoAndStop(waitHere);
} else {
_parent.gotoAndStop(Number(this_frame));
}
}
}
_parent.stop();
doneLoading = 0;
check = 0;
stop();
Instance of Symbol 5 MovieClip "bkgd" in Symbol 11 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.prelaod();
}
Symbol 36 Button
on (press) {
_root.switchInstrument("tone");
gotoAndStop ("tone");
}
Symbol 40 Button
on (press) {
_root.switchInstrument("guitar");
gotoAndStop ("guitar");
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 49 MovieClip Frame 1
stop();
Instance of Symbol 43 MovieClip "arrow" in Symbol 49 MovieClip Frame 1
onClipEvent (mouseDown) {
if (_parent.live == true) {
_parent.gotoAndStop("on");
} else {
_parent.gotoAndStop("off");
}
}
Symbol 49 MovieClip Frame 2
stop();
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip Frame 2
onClipEvent (mouseUp) {
_parent.gotoAndStop("off");
}
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._ymouse < 12) {
_parent.arrow._rotation = _parent.arrow._rotation + _parent.arrow._xmouse;
}
}
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
stop();
Symbol 90 Button
on (press) {
startDrag (this, false, 0, 0, 0, _parent.bkgd._height - this._height);
}
on (release, releaseOutside) {
stopDrag();
}
Instance of Symbol 91 MovieClip "handle" in Symbol 92 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse) || (_root.initializing == true)) {
_parent.id.setVolume((this._y / _parent.bkgd._height) * 100);
}
}
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 1
var soundType = "guitar";
var note = 0;
Symbol 104 Button
on (press, keyPress "a") {
_root.toggleSingle("a", 1);
}
Symbol 105 Button
on (press, keyPress "d") {
_root.toggleSingle("d", 2);
}
Symbol 106 Button
on (press, keyPress "g") {
_root.toggleSingle("g", 3);
}
Symbol 107 Button
on (press, keyPress "b") {
_root.toggleSingle("b", 4);
}
Symbol 108 Button
on (press, keyPress "3") {
_root.toggleSingle("eh", 5);
}
Symbol 109 Button
on (press, keyPress "e") {
_root.toggleSingle("e", 0);
}
Symbol 110 Button
on (press, keyPress "a") {
_root.toggleSingle("aGS", 1);
}
Symbol 111 Button
on (press, keyPress "d") {
_root.toggleSingle("dGS", 2);
}
Symbol 112 Button
on (press, keyPress "g") {
_root.toggleSingle("gGS", 3);
}
Symbol 113 Button
on (press, keyPress "b") {
_root.toggleSingle("bGS", 4);
}
Symbol 114 Button
on (press, keyPress "3") {
_root.toggleSingle("ehGS", 5);
}
Symbol 115 Button
on (press, keyPress "e") {
_root.toggleSingle("eGS", 0);
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 121 Button
on (press) {
getURL ("http://www.gieson.com");
}
Symbol 125 Button
on (press, keyPress "<Enter>") {
_root.highlightNote();
_root.stopAll();
_root.click = 0;
freeze = 0;
gotoAndStop ("off");
playPause.gotoAndStop("play");
}
on (rollOver) {
light.gotoAndStop("on");
}
Symbol 126 Button
on (press, keyPress "<Space>") {
_parent.gotoAndStop("on");
gotoAndStop ("pause");
}
on (rollOver) {
_parent.light.gotoAndStop("on");
}
Symbol 127 Button
on (press, keyPress "<Space>") {
_parent.gotoAndStop("pause");
gotoAndStop ("play");
}
on (rollOver) {
_parent.light.gotoAndStop("on");
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 1
stop();
timerON = 0;
check = 1;
reset = 1;
function timerFunk() {
if (pickup) {
freeze = microtime;
pickUp = 0;
}
if (reset) {
freeze = 0;
totalseconds = 0;
time = atime.join("");
reset = 0;
}
if (timerOn) {
if (check) {
timeBase = getTimer();
check = 0;
}
timeNow = getTimer();
microtime = (Number(timeNow) - Number(timeBase)) + Number(freeze);
totalseconds = int(microtime / 1000);
mts = (microtime / 1000).toString().split(".");
if (59 < mts[0]) {
check = 1;
}
atime[6] = mts[1].substr(0, 1);
if (atime[6].toString().length < 1) {
atime[6] = "0";
}
atime[4] = mts[0];
if (atime[4].toString().length < 2) {
atime[4] = "0" add atime[4];
}
if (atime[4].toString().length < 1) {
atime[4] = "00";
}
if (59 < atime[4]) {
atime[2] = Number(atime[2]) + Number(1);
atime[4] = "00";
}
if (atime[2].toString().length < 2) {
atime[2] = "0" add atime[2].toString();
}
if (59 < atime[2]) {
atime[0] = Number(atime[0]) + Number(1);
atime[2] = "00";
}
if (atime[0].toString().length < 2) {
atime[0] = "0" add atime[0];
}
if (atime[0].toString().length < 1) {
atime[0] = "00";
}
time = atime.join("");
}
_parent.mysec = totalseconds;
}
atime = new Array();
atime[0] = "00";
atime[1] = ":";
atime[2] = "00";
atime[3] = ":";
atime[4] = "00";
atime[5] = ".";
atime[6] = "0";
totalseconds = 0;
Symbol 130 MovieClip Frame 2
stop();
timerON = 1;
check = 1;
Symbol 130 MovieClip Frame 3
stop();
timerON = 0;
check = 1;
pickUp = 1;