Frame 1
Stage.showMenu = false;
var _system = System.capabilities.playerType;
var path = (((_system == "StandAlone") || (_system == "External")) ? "" : "/hotmath_help/games/kp/");
a = (this.getBytesLoaded() / this.getBytesTotal()) * 100;
Frame 2
stop();
trace("A");
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.getBytesLoaded() >= _local1.getBytesTotal()) {
timeleft = "";
delete _local1.onEnterFrame;
gotoAndPlay (4);
}
w = (_local1.getBytesLoaded() / _local1.getBytesTotal()) * 100;
indi._width = (w / 100) * 234;
t_w = indi._width;
var _local2 = t_w / (getTimer() / 1000);
timeleft = String(((234 - t_w) / _local2) / 60);
timeleft = timeleft.split(".");
sec = (timeleft[1] ? (Math.round(("." + timeleft[1]) * 60)) : 0);
if (timeleft[0] > 0) {
if (sec < 10) {
timeleft = ((timeleft[0] + ":") + "0") + sec;
} else {
timeleft = (timeleft[0] + ":") + sec;
}
} else if (sec < 10) {
timeleft = ("0" + sec) + " secs";
} else {
timeleft = sec + " secs";
}
};
Frame 4
function loadNextSound() {
soundLoaded++;
if (soundLoaded >= totalSound) {
timeleft = (soundLoaded + "/") + totalSound;
trace(timeleft);
delete this.onEnterFrame;
mysound_2.setVolume(60);
gotoAndPlay (5);
} else {
indi._width = (soundLoaded / totalSound) * 234;
timeleft = (soundLoaded + "/") + totalSound;
trace((soundLoaded + ":") + soundArr[soundLoaded + 1]);
_root["mysound_" + (soundLoaded + 1)].loadSound(path + soundArr[soundLoaded + 1], false);
}
}
stop();
Stage.showMenu = false;
var soundArr = [null, "loader.mp3", "Rave.mp3", "round.mp3", "ins_birth.mp3", "g_bgm.mp3", "round_advance.mp3", "rocket.mp3", "laser.mp3", "spray.mp3", "shoe.mp3", "ins_killed.mp3", "close.mp3", "wrong.mp3", "correct.mp3", "error.mp3"];
var soundLoaded = 0;
var totalSound = 15;
s_count = 1;
while (s_count < 16) {
_root["mysound_" + s_count] = new Sound();
_root["mysound_" + s_count].onLoad = function (boo) {
if (boo) {
loadNextSound();
}
};
s_count++;
}
mysound_1.loadSound(path + "loader.mp3", false);
Frame 5
gotoAndPlay (95);
Frame 124
stop();
Frame 143
stop();
Frame 144
stop();
mysound_5.stop();
Frame 145
stop();
Frame 150
d_rocket._visible = false;
d_laser._visible = false;
d_spray._visible = false;
d_shoe._visible = false;
outline._visible = true;
stop();
mysound_2.stop();
mysound_5.stop();
mysound_1.start(0, 99999);
mysound_1.setVolume(60);
Frame 152
meter_clip.siren._visible = false;
var testXML = new XML();
testXML.ignoreWhite = true;
testXML.onLoad = function (boo) {
if (boo) {
nodeArray = this.firstChild.firstChild;
titleVal = nodeArray.childNodes[0].firstChild.nodeValue;
typeVal = nodeArray.childNodes[1].firstChild.nodeValue;
trace((titleVal + ":") + typeVal);
}
};
testXML.load(path + "karappanpoochi_withsound.xml");
fire._visible = false;
fire_txt._visible = false;
mym._visible = false;
eql._visible = false;
myc._visible = false;
wpn._visible = true;
wpn_txt._visible = true;
r_d._visible = false;
rtxt._visible = false;
eq_box._visible = false;
fire_flag = 0;
rounds = 1;
r_display = 0;
vc = null;
_global.key_e = false;
_root.neq = 0;
_root.ncorrect = 0;
_root.nwrong = 0;
_root.nmissed = 0;
_root.nguess = 0;
report._visible = 0;
stop();
Number.prototype.toFixed = function (howmany) {
var val = (this < 0);
var w_num = Math.abs(this);
var intpart = Math.floor(w_num);
var _local2 = w_num - intpart;
_local2 = _local2 * Math.pow(10, howmany);
_local2 = Math.floor(_local2) + 0.1;
_local2 = _local2 / Math.pow(10, howmany);
var intstr = new String(intpart);
var _local1 = new String(_local2);
_local1 = _local1.substring(0, _local1.length - 1);
_local1 = _local1.substring(1, _local1.length);
var _local3 = " ";
if (val) {
_local3 = _local3 + "-";
}
_local3 = _local3 + (intstr + _local1);
return(Number(_local3));
};
Math.plot = function (deg, radius) {
rad = (Math.PI * deg) / 180;
xpt = radius * Math.cos(rad);
ypt = radius * Math.sin(rad);
pts = {xp:xpt, yp:ypt};
return(pts);
};
Number.prototype.todeci = function (fraction) {
var _local2 = fraction;
var frac = _local2;
if (!Number(_local2)) {
var _local1 = frac.split("/");
_global.f_v0 = _local1[0];
_global.f_v1 = _local1[1];
var _local3 = _local1[0] / _local1[1];
} else {
var _local3 = Number(_local2);
}
return(_local3);
};
function mc() {
var _local2 = _global;
var _local3 = _root;
function insmov(aqq) {
a = Number(aqq);
flagstop = 0;
stopcount = 0;
p = Math.plot(ang, r1[a]);
myline.empm["ins" + a]._x = p.xp;
myline.empm["ins" + a]._y = p.yp;
v1[a] = v[a];
if (v1[a] == 0) {
if ((a % 2) == 0) {
if (a == 2) {
r1[a] = r1[a] - (2 * a);
}
r1[a] = r1[a] - (a + ((a / (0.666666666666667 * a)) + 2));
} else {
if (a == 1) {
r1[a] = r1[a] + (2.5 * a);
}
r1[a] = r1[a] + (a + ((a / (0.666666666666667 * a)) + 2));
}
}
if (v1[a] == 1) {
if ((a % 2) == 0) {
if (a == 2) {
r1[a] = r1[a] + (2 * a);
}
r1[a] = r1[a] + (a + ((a / (0.666666666666667 * a)) + 2));
} else {
if (a == 1) {
r1[a] = r1[a] - (2.5 * a);
}
r1[a] = r1[a] - (a + ((a / (0.666666666666667 * a)) + 2));
}
}
if (((myline.empm["ins" + a].hitTest(bo_top) || (myline.empm["ins" + a].hitTest(bo_down))) || (myline.empm["ins" + a].hitTest(bo_left))) || (myline.empm["ins" + a].hitTest(bo_rit))) {
if (myline.empm["ins" + a]._xscale == 100) {
myline.empm["ins" + a].ins.gotoAndPlay(2);
}
myline.empm["ins" + a]._rotation = myline.empm["ins" + a]._rotation + 180;
p = Math.plot(ang, r1[a]);
myline.empm["ins" + a]._x = p.xp;
myline.empm["ins" + a]._y = p.yp;
switch (v[a]) {
case 1 :
v[a] = 0;
if ((a % 2) == 0) {
r1[a] = r1[a] - 10;
} else {
r1[a] = r1[a] + 10;
}
return;
case 0 :
v[a] = 1;
if ((a % 2) == 0) {
r1[a] = r1[a] + 10;
} else {
r1[a] = r1[a] - 10;
}
}
}
}
blink.gotoAndStop(1);
_local3.neq++;
meter_clip.siren._visible = false;
eq_box._visible = true;
eq_box.hinter._visible = true;
myl1.hint_1.removeMovieClip();
myl1.hint_2.removeMovieClip();
myl1.hint_3.removeMovieClip();
myline.clear();
myl.run_var = "";
myl.rise_var = "";
myline.marker1.removeMovieClip();
myline.marker2.removeMovieClip();
eq_box.hint_flag = 0;
if (sflag == 0) {
_local3.mysound_5.start(0, 999999);
}
eql._visible = true;
c_pass = false;
w_pass = false;
fire_flag = 0;
wpn._visible = true;
wpn_txt._visible = true;
b_b._visible = true;
fire._visible = false;
fire_txt._visible = false;
y1 = 0;
y2 = 0;
eq_box.mtxt._visible = true;
my = new Date();
var initial_time = my.getSeconds();
lmc.clear();
lmc2.clear();
lmc._visible = false;
myline.empn.removeMovieClip();
retxt.text = "";
re._visible = false;
result = "";
eq_box.m_a = "";
eq_box.c_a = "";
_local2.meter = 0;
_local2.b_e = 20;
_local2.flagstop = 0;
_local2.b = 1;
_local2.end_1 = 1;
end_1 = 1;
end = 0;
b = 1;
xs = 0;
b_e = 20;
egg = 55;
meter = 0;
flagstop = 0;
vr = 0;
r1 = new Array();
r1[0] = 0;
radiusr = 0;
v = new Array();
v1 = new Array();
v1[0] = 0;
va = 1;
while (va < 500) {
v[0] = 0;
v[va] = 0;
va++;
}
_local2.vr = 0;
r_d._visible = true;
rtxt._visible = true;
Selection.setFocus("eq_box.m_a");
if ((rounds >= 1) && (rounds < 6)) {
Selection.setFocus("eq_box.c_a");
r_display = 1;
eq_box.gotoAndStop(5);
fm = 0;
fmm = 0;
c_c = true;
growth = 0.2;
}
if ((rounds >= 6) && (rounds < 11)) {
eq_box.inter_._visible = false;
eq_box.ctxt._visible = false;
do {
r_display = 2;
if (rounds == 6) {
mym1 = new Array("1", "2", "3", "4", "5");
}
if (rounds == 7) {
mym1.push("1/2", "1/3", "1/4", "1/5");
}
mym1 = mym1;
xm = Math.round(random(mym1.length));
n_m = mym1[xm];
if (xm != 0) {
mym1[xm] = mym1[0];
mym1.shift();
} else {
mym1.shift();
}
if (!Number(n_m)) {
c_c = true;
} else {
c_c = false;
}
m_val = new Number();
nm = m_val.todeci(n_m);
fm = nm;
} while (fm == vc);
growth = 0.3;
} else {
eq_box.inter_._visible = true;
eq_box.ctxt._visible = true;
}
if ((rounds >= 11) && (rounds < 16)) {
do {
r_display = 3;
mym1 = new Array("1", "2", "3", "4", "5");
comp = mym1;
xm = Math.round(random(mym1.length));
n_m = mym1[xm];
if (!Number(n_m)) {
c_c = true;
} else {
c_c = false;
}
m_val = new Number();
nm = m_val.todeci(n_m);
fm = nm;
} while (fm == vc);
growth = 0.4;
}
if ((rounds >= 16) && (rounds < 21)) {
do {
r_display = 4;
mym1 = new Array("1/2", "1/3", "1/4", "1/5", "2/3");
xm = Math.round(random(mym1.length));
n_m = mym1[xm];
if (!Number(n_m)) {
c_c = true;
} else {
c_c = false;
}
m_val = new Number();
nm = m_val.todeci(n_m);
fm = nm;
} while (fm == vc);
growth = 0.5;
}
if ((rounds >= 21) && (rounds < 26)) {
do {
r_display = 5;
mym1 = new Array("1", "2", "3", "4", "5");
xm = Math.round(random(mym1.length));
n_m = mym1[xm];
if (!Number(n_m)) {
c_c = true;
} else {
c_c = false;
}
m_val = new Number();
nm = m_val.todeci(n_m);
fm = -nm;
} while (fm == vc);
growth = 0.6;
}
if ((rounds >= 26) && (rounds < 31)) {
do {
r_display = 6;
mym1 = new Array("1", "2", "3", "4", "5", "1/2", "1/3", "1/4", "1/5", "2/3", "2/5");
xm = Math.round(random(mym1.length));
n_m = mym1[xm];
if (!Number(n_m)) {
c_c = true;
} else {
c_c = false;
}
m_val = new Number();
nm = m_val.todeci(n_m);
fm = -nm;
} while (fm == vc);
growth = 0.8;
}
if ((rounds >= 31) && (rounds < 36)) {
do {
r_display = 7;
mym1 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "1/2", "1/3", "1/4", "1/5", "2/3", "2/5", "3/4", "3/5", "4/5", "5/6", "3/2", "5/4", "5/2");
xm = Math.round(random(mym1.length));
n_m = mym1[xm];
if (!Number(n_m)) {
c_c = true;
} else {
c_c = false;
}
m_val = new Number();
nm = m_val.todeci(n_m);
if (n_m == 0) {
fm = 0;
} else {
mym2 = new Array(-nm, nm);
ym = Math.round(random(2));
fm = mym2[ym];
}
} while (fm == vc);
growth = 1;
}
if (rounds > 35) {
do {
r_display = "B";
mym1 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "1/2", "1/3", "1/5", "1/6", "1/7", "1/8", "1/9", "2", "2/3", "2/5", "2/7", "2/9", "3", "3/2", "3/4", "3/5", "3/7", "3/8", "4", "4/3", "4/5", "4/7", "4/9", "5", "5/2", "5/3", "5/4", "5/6", "5/7", "5/8", "5/9", "6", "6/5", "6/7", "7");
xm = Math.round(random(mym1.length));
n_m = mym1[xm];
if (!Number(n_m)) {
c_c = true;
} else {
c_c = false;
}
m_val = new Number();
nm = m_val.todeci(n_m);
if (n_m == 0) {
fm = 0;
} else {
mym2 = new Array(-nm, nm);
ym = Math.round(random(2));
fm = mym2[ym];
}
} while (fm == vc);
growth = 3;
}
_local2.c_c = c_c;
_local2.grow = growth;
vc = fm;
if (r_display != 2) {
do {
if ((rounds == 1) || (rounds >= 6)) {
myc1 = new Array("1", "2", "3", "4", "5", "6", "7");
}
myca = myc1;
xc = Math.round(random(myca.length));
n_c = myca[xc];
if (xc != 0) {
myca[xc] = myca[0];
myca.shift();
} else {
myca.shift();
}
c_val = new Number();
var _local1 = c_val.todeci(n_c);
myc2 = new Array(-_local1, _local1);
yc = Math.round(random(2));
var fc = myc2[yc];
} while (fc == vvc);
} else {
var fc = 0;
}
vvc = fc;
fcc = n_c;
if (r_display == 1) {
fmm = 0;
} else {
fmm = n_m;
}
if (r_display == 2) {
fcc = 0;
}
if (fc >= 0) {
sign1 = "+";
} else if (fc < 0) {
sign1 = "-";
}
if (fm >= 0) {
sign2 = "";
} else if (fm < 0) {
sign2 = "-";
}
if (!Number(fm)) {
m = 0;
c = fc;
} else {
m = fm;
c = fc;
}
if (m == 0) {
ptx = Math.floor(Math.random() * 8.5) + 0.5;
pty = c;
} else {
do {
if (fc < 0) {
if (fc == -7) {
pty = -7;
} else {
pty = -(Math.floor(Math.random() * 6.5) + 0.5);
}
} else if (fc == 7) {
pty = 7;
} else {
pty = Math.floor(Math.random() * 6.5) + 0.5;
}
ptx = (pty - c) / m;
} while ((ptx > 7) || (ptx < -7));
}
if (m == 0) {
ang = -180;
} else {
rad = Math.atan(m);
ang = (180 * rad) / Math.PI;
}
myline.attachMovie("emp", "empm", 1, {_x:ptx * 35, _y:pty * 35});
var flag = 0;
var xsize = 55;
var ysize = 45;
var egg = 55;
var endflag = 0;
_local2.meter_level = meter_level;
myline.empm.onEnterFrame = function () {
var _local1 = _global;
rounds_ani.display = r_display;
switch (weaponflag) {
case 1 :
w_pon = "rocket";
break;
case 2 :
w_pon = "laser gun";
break;
case 3 :
w_pon = "spray gun";
break;
case 4 :
w_pon = "shoe";
}
if (Key.isDown(32)) {
str_find = " ";
mspos = eq_box.mtxt.text.indexOf(str_find);
cspos = eq_box.ctxt.text.indexOf(str_find);
if (mspos != -1) {
mepos = mspos + str_find.length;
Selection.setFocus(eq_box.mtxt);
Selection.setSelection(mspos, mepos);
}
if (cspos != -1) {
cepos = cspos + str_find.length;
Selection.setFocus(ctxt);
Selection.setSelection(cspos, cepos);
}
}
if (c_a >= 0) {
_local1.sign = "+";
} else if (c_a < 0) {
_local1.sign = "-";
}
if (key_e == false) {
if (r_display == 1) {
if (eq_box.c_a != "") {
if (fire_flag == 1) {
eq_box.gotoAndStop(5);
} else {
eq_box.gotoAndStop(6);
}
}
} else if (r_display == 2) {
if ((eq_box.m_a == "") || (eq_box.m_a == undefined)) {
eq_box.c_a = 0;
_local1.vm_a = 1;
if (fire_flag == 1) {
eq_box.gotoAndStop(1);
} else {
eq_box.gotoAndStop(2);
}
} else {
eq_box.c_a = 0;
if (fire_flag == 1) {
eq_box.gotoAndStop(1);
} else {
eq_box.gotoAndStop(2);
}
}
eq_box.ctxt._visible = false;
} else if (((eq_box.m_a == "") || (eq_box.m_a == undefined)) && (eq_box.c_a != "")) {
_local1.vm_a = 1;
if (fire_flag == 1) {
eq_box.gotoAndStop(1);
} else {
eq_box.gotoAndStop(2);
}
} else if ((eq_box.m_a != "") && (eq_box.c_a != "")) {
if (eq_box.m_a == "-") {
_local1.vm_a = -1;
}
if (fire_flag == 1) {
eq_box.gotoAndStop(1);
} else {
eq_box.gotoAndStop(2);
}
} else {
eq_box.gotoAndStop(1);
}
} else if (key_e == true) {
if (r_display == 2) {
eq_box.c_a = 0;
if ((eq_box.n_m != "") && (eq_box.d_m != "")) {
if (fire_flag == 1) {
eq_box.gotoAndStop(3);
} else {
eq_box.gotoAndStop(4);
}
} else {
eq_box.gotoAndStop(3);
}
eq_box.ctxt._visible = false;
} else if (((eq_box.n_m != "") && (eq_box.d_m != "")) && (eq_box.c_a != "")) {
if (fire_flag == 1) {
eq_box.gotoAndStop(3);
} else {
eq_box.gotoAndStop(4);
}
} else {
eq_box.gotoAndStop(3);
}
}
if (flagstop == 0) {
if (flag == 0) {
mysound_4.start(0, 1);
if (b < b_e) {
if (end_1 > 12) {
blink.gotoAndPlay(2);
}
birthrate = "Cockroaches born = " + end_1;
if (end_1 == 16) {
blink.gotoAndStop(1);
b = b_e + 1;
flagstop = 1;
_root.nmissed++;
attachMovie("splash_rw", "timeout", 2, {_x:400, _y:300});
}
meter++;
myline.empm.attachMovie("insect", "ins" + b, b, {_xscale:55, _yscale:45});
mod = b % 2;
if (mod == 0) {
myline.empm["ins" + b]._rotation = ang + 90;
} else if (mod == 1) {
myline.empm["ins" + b]._rotation = ang - 90;
}
flag = 1;
}
}
if (myline.empm["ins" + b]._xscale < 100) {
myline.empm["ins" + b]._xscale = myline.empm["ins" + b]._xscale + grow;
}
if (myline.empm["ins" + b]._yscale < 100) {
myline.empm["ins" + b]._yscale = myline.empm["ins" + b]._yscale + grow;
}
if (myline.empm["ins" + b]._xscale > 100) {
myline.empm["ins" + b]._xscale = 100;
myline.empm["ins" + b]._yscale = 100;
}
if (egg < 101) {
egg = egg + grow;
} else {
egg = 55;
xs = 1;
}
if (end_1 == 16) {
fire._visible = false;
fire_txt._visible = false;
eq_box.mtxt._visible = false;
eq_box.ctxt._visible = false;
myl1.hint_1.removeMovieClip();
myl1.hint_2.removeMovieClip();
myl1.hint_3.removeMovieClip();
myline.clear();
myl.run_var = "";
myl.rise_var = "";
myline.marker1.removeMovieClip();
myline.marker2.removeMovieClip();
eq_box.hint_flag = 0;
if (c_c == true) {
timeout.n_frac._visible = false;
timeout.n_frac_b._visible = false;
timeout.n_frac_m._visible = false;
if (fm == 0) {
timeout.cor_frac._visible = false;
timeout.cor_frac_b._visible = true;
if (sign1 == "+") {
timeout.cor_frac_b.inter = fcc;
} else if (sign1 == "-") {
timeout.cor_frac_b.inter = "- " + fcc;
}
} else {
timeout.cor_frac._visible = true;
timeout.cor_frac_b._visible = false;
timeout.cor_frac.numero = f_v0;
timeout.cor_frac.denom = f_v1;
timeout.cor_frac.sgn = sign1;
if (sign2 == "") {
timeout.cor_frac.sgn_m = "";
} else if (sign2 == "-") {
timeout.cor_frac.sgn_m = "-";
}
timeout.cor_frac.inter = Math.abs(fcc);
}
} else if (c_c == false) {
timeout.cor_frac._visible = false;
timeout.cor_frac_b._visible = false;
timeout.cor_frac_m._visible = false;
if (fm == 1) {
timeout.n_frac._visible = false;
timeout.n_frac_b._visible = false;
timeout.n_frac_m._visible = true;
timeout.n_frac_m.x_box._visible = true;
timeout.n_frac_m.icp_m = Math.abs(fcc);
timeout.n_frac_m.sgn = sign1;
} else if (fm == -1) {
timeout.n_frac._visible = false;
timeout.n_frac_b._visible = false;
timeout.n_frac_m._visible = true;
timeout.n_frac_m.x_box._visible = true;
timeout.n_frac_m.x_bo = "-x";
timeout.n_frac_m.icp_m = Math.abs(fcc);
timeout.n_frac_m.sgn = sign1;
} else if (fmm == 0) {
timeout.n_frac._visible = false;
timeout.n_frac_b._visible = true;
timeout.n_frac_m._visible = false;
if (sign1 == "+") {
timeout.n_frac_b.icp = fcc;
} else if (sign1 == "-") {
timeout.n_frac_b.icp = "-" + fcc;
}
} else {
timeout.n_frac._visible = true;
timeout.n_frac_b._visible = false;
timeout.n_frac_m._visible = false;
if (sign2 == "") {
timeout.n_frac.slp = fmm;
} else if (sign2 == "-") {
timeout.n_frac.slp = "-" + fmm;
}
timeout.n_frac.x_box._visible = true;
timeout.n_frac.icp = Math.abs(fcc);
timeout.n_frac.sgn = sign1;
}
}
lmc._visible = true;
lmc2.clear();
newgraf();
}
if (b < b_e) {
if (xs == 1) {
if (flagstop == 0) {
myline.empm["ins" + b].ins.gotoAndPlay(2);
}
xs = 0;
flag = 0;
b++;
end_1++;
}
}
}
};
myline.onEnterFrame = function () {
if (flagstop == 1) {
aq = 1;
while (aq < (b + 1)) {
p = Math.plot(ang, r1[aq]);
myline.empm["ins" + aq]._x = p.xp;
myline.empm["ins" + aq]._y = p.yp;
r1[aq] = r1[aq];
aq++;
}
} else {
for (w in myline.empm) {
fora = String(myline.empm[w]);
fora = fora.split("ins");
fora = fora[1];
i_call = fora;
if (Number(i_call)) {
insmov(i_call);
}
}
}
};
}
if (weaponflag != undefined) {
attachMovie("rounds_ani", "rounds_ani", 2, {_x:400, _y:300});
rounds_ani.display = 1;
rounds_ani.onUnload = function () {
comp = null;
vc = null;
};
} else {
attachMovie("selectpanel", "panel", 2, {_x:400, _y:300});
}
function in_graf() {
_root.mysound_5.stop();
lmc2.clear();
myline.empn.insr.removeMovieClip();
var vr = 0;
radiusr = 0;
radiusw = 0;
radiuss = 0;
radiusshoe = 0;
line = 0;
gg = 0;
flagstop = 0;
if (eq_box.m_a == 0) {
eq_box.m_a = 0;
var pno = eq_box.m_a;
} else if ((eq_box.m_a == "") || (eq_box.m_a == undefined)) {
var pno = 1;
} else if (eq_box.m_a == "-") {
var pno = -1;
} else {
var pno = eq_box.m_a;
}
if (pno == 0) {
pm = pno;
} else if (!Number(pno)) {
mv = pno;
mval = mv.split("/");
pm = mval[0] / mval[1];
} else {
pm = pno;
}
var pcno = eq_box.c_a;
if (!Number(pcno)) {
cno = eq_box.c_a;
cnov = cno.split("/");
pc = cnov[0] / cnov[1];
} else {
pc = pcno;
}
py1 = -12;
px1 = -14;
if (pm == 0) {
ang2 = -180;
} else {
rad2 = Math.atan(pm);
ang2 = (180 * rad2) / Math.PI;
}
myline.attachMovie("emp", "empn", 50, {_x:0, _y:pc * 35});
myline.empn._x = myline.empn.attachMovie("insect", "insr", 50, {_xscale:50, _yscale:50, _alpha:0});
flag_ln = 1;
hit = 0;
lo_pt = 1;
lmc2.onEnterFrame = function () {
var pr = Math.plot(ang2, radiusr);
myline.empn.insr._x = pr.xp;
myline.empn.insr._y = pr.yp;
if (vr == 0) {
radiusr = radiusr + 35;
}
if (eq_box.c_a == 0) {
pc = 0;
}
if (gg == 0) {
if (eq_box.m_a == 0) {
py1 = pc;
py2 = pc;
laser_x = 0;
laser_y = 0;
with (lmc2) {
lineStyle(2, 16711680, 100);
moveTo(px1 * 35, py1 * 35);
}
if (px1 < 14) {
px1 = -14;
while (px1 < 14) {
with (lmc2) {
lineStyle(2, 16711680, 100);
lineTo(px1 * 35, py1 * 35);
}
px1++;
}
}
gg = 1;
} else {
px1 = (py1 - pc) / pm;
px2 = (py2 - pc) / pm;
laser_x = 0;
laser_y = 0;
with (lmc2) {
lineStyle(2, 16711680, 100);
moveTo(px1 * 35, py1 * 35);
}
if (py1 < 12) {
py1 = -12;
while (py1 < 12) {
px1 = (py1 - pc) / pm;
px2 = (py2 - pc) / pm;
with (lmc2) {
lineStyle(2, 16711680, 100);
lineTo(px1 * 35, py1 * 35);
}
py1++;
}
}
gg = 1;
}
}
if (((myline.empn.insr.hitTest(bo_top) || (myline.empn.insr.hitTest(bo_down))) || (myline.empn.insr.hitTest(bo_left))) || (myline.empn.insr.hitTest(bo_rit))) {
if (lo_pt == 1) {
rocket_x = myline.empn.insr._x;
rocket_y = myline.empn.insr._y;
if (weaponflag == 1) {
myline.empn.attachMovie("gun", "roc_gun", 10, {_x:rocket_x, _y:rocket_y, _rotation:ang2});
_root.mysound_8.stop();
_root.mysound_7.start(0, 1);
}
if (weaponflag == 2) {
myline.empn.attachMovie("laser_gun", "laser", 10, {_x:laser_x, _y:laser_y, _rotation:ang2});
_root.mysound_7.stop();
_root.mysound_8.start(0, 1);
}
if (weaponflag == 3) {
myline.empn.attachMovie("spray_gun", "sprayer", 10, {_x:rocket_x, _y:rocket_y, _rotation:ang2});
_root.mysound_7.stop();
_root.mysound_8.stop();
_root.mysound_10.stop();
}
if (weaponflag == 4) {
myline.empn.attachMovie("shoe", "sh_oe", 10, {_x:rocket_x, _y:rocket_y, _rotation:ang2});
_root.mysound_7.stop();
_root.mysound_8.stop();
_root.mysound_9.stop();
}
lo_pt = 0;
}
}
if (lo_pt == 0) {
var pw = Math.plot(ang2, radiusw);
myline.empn.roc_gun._x = rocket_x + pw.xp;
myline.empn.roc_gun._y = rocket_y + pw.yp;
radiusw = radiusw - 40;
myline.empn.laser.kill._x = myline.empn.laser.kill._x - 30;
myline.empn.laser.kill_2._x = myline.empn.laser.kill_2._x + 30;
var ps = Math.plot(ang2, radiuss);
myline.empn.sprayer._x = rocket_x + ps.xp;
myline.empn.sprayer._y = rocket_y + ps.yp;
radiuss = radiuss - 25;
var psh = Math.plot(ang2, radiusshoe);
myline.empn.sh_oe._x = rocket_x + psh.xp;
myline.empn.sh_oe._y = rocket_y + psh.yp;
radiusshoe = radiusshoe - 25;
}
if (((myline.empn.roc_gun.kill.hitTest(bo_top) || (myline.empn.roc_gun.kill.hitTest(bo_down))) || (myline.empn.roc_gun.kill.hitTest(bo_left))) || (myline.empn.roc_gun.kill.hitTest(bo_rit))) {
if (hit == 0) {
flagstop = 1;
line = 1;
}
hit++;
}
if (((myline.empn.laser.kill.hitTest(bo_top) || (myline.empn.laser.kill.hitTest(bo_down))) || (myline.empn.laser.kill.hitTest(bo_left))) || (myline.empn.laser.kill.hitTest(bo_rit))) {
if (hit == 0) {
flagstop = 1;
line = 1;
}
hit++;
}
if (((myline.empn.sprayer.kill.hitTest(bo_top) || (myline.empn.sprayer.kill.hitTest(bo_down))) || (myline.empn.sprayer.kill.hitTest(bo_left))) || (myline.empn.sprayer.kill.hitTest(bo_rit))) {
if (hit == 0) {
flagstop = 1;
line = 1;
}
hit++;
}
if (((myline.empn.sh_oe.kill.hitTest(bo_top) || (myline.empn.sh_oe.kill.hitTest(bo_down))) || (myline.empn.sh_oe.kill.hitTest(bo_left))) || (myline.empn.sh_oe.kill.hitTest(bo_rit))) {
if (hit == 0) {
flagstop = 1;
line = 1;
}
hit++;
}
if (((myline.empn.roc_gun.kill.hitTest(bo_topc) || (myline.empn.roc_gun.kill.hitTest(bo_downc))) || (myline.empn.roc_gun.kill.hitTest(bo_leftc))) || (myline.empn.roc_gun.kill.hitTest(bo_ritc))) {
close_1.gotoAndStop(2);
wrong_1.gotoAndStop(2);
delete lmc2.onEnterFrame;
}
if (((myline.empn.laser.kill.hitTest(bo_topc) || (myline.empn.laser.kill.hitTest(bo_downc))) || (myline.empn.laser.kill.hitTest(bo_leftc))) || (myline.empn.laser.kill.hitTest(bo_ritc))) {
close_1.gotoAndStop(2);
wrong_1.gotoAndStop(2);
delete lmc2.onEnterFrame;
}
if (((myline.empn.sprayer.kill.hitTest(bo_topc) || (myline.empn.sprayer.kill.hitTest(bo_downc))) || (myline.empn.sprayer.kill.hitTest(bo_leftc))) || (myline.empn.sprayer.kill.hitTest(bo_ritc))) {
close_1.gotoAndStop(2);
wrong_1.gotoAndStop(2);
delete lmc2.onEnterFrame;
}
if (((myline.empn.sh_oe.kill.hitTest(bo_topc) || (myline.empn.sh_oe.kill.hitTest(bo_downc))) || (myline.empn.sh_oe.kill.hitTest(bo_leftc))) || (myline.empn.sh_oe.kill.hitTest(bo_ritc))) {
close_1.gotoAndStop(2);
wrong_1.gotoAndStop(2);
delete lmc2.onEnterFrame;
}
if (w_pass == true) {
k = 1;
while (k < (b + 1)) {
still_x = myline.empm["ins" + k]._x;
still_y = myline.empm["ins" + k]._y;
still_a = myline.empm["ins" + k]._rotation;
still_xs = myline.empm["ins" + k]._xscale;
still_ys = myline.empm["ins" + k]._yscale;
if (_root.myline.empm["ins" + k].hit_pt.hitTest(_root.myline.empn.roc_gun.kill)) {
_root.mysound_11.start(0, 1);
myline.empm.attachMovie("still4_ins", "still_" + k, k + 150, {_x:still_x, _y:still_y, _rotation:still_a, _xscale:still_xs, _yscale:still_ys});
myline.empm["ins" + k].removeMovieClip();
b_e++;
}
if (myline.empm["ins" + k].hit_pt.hitTest(myline.empn.laser.kill) || (myline.empm["ins" + k].hit_pt.hitTest(myline.empn.laser.kill_2))) {
_root.mysound_11.start(0, 1);
myline.empm.attachMovie("still2_ins", "still2_" + k, k + 150, {_x:still_x, _y:still_y, _rotation:still_a, _xscale:still_xs, _yscale:still_ys});
myline.empm["ins" + k].removeMovieClip();
b_e++;
}
if (myline.empm["ins" + k].hit_pt.hitTest(myline.empn.sprayer.kill)) {
spray_x = myline.empm["ins" + k]._x;
spray_y = myline.empm["ins" + k]._y;
myline.empm.attachMovie("spray", "spray_" + k, k + 100, {_x:spray_x, _y:spray_y, _alpha:50});
myline.empn.sprayer.spraycan.gotoAndPlay(10);
myline.empm.attachMovie("still3_ins", "still_" + k, k + 150, {_x:still_x, _y:still_y, _rotation:still_a, _xscale:still_xs, _yscale:still_ys});
_root.mysound_9.start(0, 1);
_root.mysound_11.start(0, 1);
myline.empm["ins" + k].removeMovieClip();
b_e++;
}
if (myline.empm["ins" + k].hit_pt.hitTest(myline.empn.sh_oe.kill)) {
myline.empn.sh_oe.shoe_gr.gotoAndPlay(2);
myline.empm.attachMovie("still_ins", "still_" + k, k + 150, {_x:still_x, _y:still_y, _rotation:still_a, _xscale:still_xs, _yscale:still_ys});
_root.mysound_10.start(0, 1);
_root.mysound_11.start(0, 1);
myline.empm["ins" + k].removeMovieClip();
b_e++;
}
k++;
}
}
};
}
function graf() {
_root.mysound_5.stop();
y1 = -14;
y2 = 0;
x1 = 0;
x2 = 0;
q = 0;
flagstop = 0;
m = m;
c = c;
var radiusr = 0;
radiusw = 0;
radiuss = 0;
radiusshoe = 0;
var vr = 0;
lo_pt = 1;
hitc = 0;
hit = 0;
if (m == 0) {
ang2 = -180;
} else {
rad2 = Math.atan(m);
ang2 = (180 * rad2) / Math.PI;
}
myline.attachMovie("emp", "empn", 50, {_x:0, _y:c * 35});
myline.empn._x = myline.empn.attachMovie("insect", "insr", 50, {_xscale:50, _yscale:50, _alpha:0});
lmc._visible = true;
lmc.onEnterFrame = function () {
if (m == 0) {
y1 = c;
laser_x = 0;
laser_y = 0;
with (lmc) {
lineStyle(1, 52224, 100);
moveTo(x1 * 35, y1 * 35);
}
if (x1 < 12) {
x1 = -14;
while (x1 < 14) {
with (lmc) {
lineStyle(1, 52224, 100);
lineTo(x1 * 35, y1 * 35);
}
x1++;
}
}
} else {
x1 = (y1 - c) / m;
x2 = (y2 - c) / m;
laser_x = 0;
laser_y = 0;
with (lmc) {
lineStyle(1, 52224, 100);
moveTo(x1 * 35, y1 * 35);
}
if (y1 < 12) {
y1 = -12;
while (y1 < 12) {
x1 = (y1 - c) / m;
with (lmc) {
lineStyle(1, 52224, 100);
lineTo(x1 * 35, y1 * 35);
}
y1 = y1 + 1;
}
}
}
var pr = Math.plot(ang2, radiusr);
myline.empn.insr._x = pr.xp;
myline.empn.insr._y = pr.yp;
if (vr == 0) {
radiusr = radiusr + 35;
}
if (((myline.empn.insr.hitTest(bo_top) || (myline.empn.insr.hitTest(bo_down))) || (myline.empn.insr.hitTest(bo_left))) || (myline.empn.insr.hitTest(bo_rit))) {
if (lo_pt == 1) {
rocket_x = myline.empn.insr._x;
rocket_y = myline.empn.insr._y;
if (weaponflag == 1) {
myline.empn.attachMovie("gun", "roc_gun", 10, {_x:rocket_x, _y:rocket_y, _rotation:ang2});
_root.mysound_8.stop();
_root.mysound_7.start(0, 1);
}
if (weaponflag == 2) {
myline.empn.attachMovie("laser_gun", "laser", 10, {_x:laser_x, _y:laser_y, _rotation:ang2});
_root.mysound_7.stop();
_root.mysound_8.start(0, 1);
}
if (weaponflag == 3) {
myline.empn.attachMovie("spray_gun", "sprayer", 10, {_x:rocket_x, _y:rocket_y, _rotation:ang2});
_root.mysound_7.stop();
_root.mysound_8.stop();
_root.mysound_10.stop();
}
if (weaponflag == 4) {
myline.empn.attachMovie("shoe", "sh_oe", 10, {_x:rocket_x, _y:rocket_y, _rotation:ang2});
_root.mysound_7.stop();
_root.mysound_8.stop();
_root.mysound_9.stop();
}
lo_pt = 0;
}
}
if (lo_pt == 0) {
var pw = Math.plot(ang2, radiusw);
myline.empn.roc_gun._x = rocket_x + pw.xp;
myline.empn.roc_gun._y = rocket_y + pw.yp;
radiusw = radiusw - 40;
myline.empn.laser.kill._x = myline.empn.laser.kill._x - 30;
myline.empn.laser.kill_2._x = myline.empn.laser.kill_2._x + 30;
var ps = Math.plot(ang2, radiuss);
myline.empn.sprayer._x = rocket_x + ps.xp;
myline.empn.sprayer._y = rocket_y + ps.yp;
radiuss = radiuss - 25;
var psh = Math.plot(ang2, radiusshoe);
myline.empn.sh_oe._x = rocket_x + psh.xp;
myline.empn.sh_oe._y = rocket_y + psh.yp;
radiusshoe = radiusshoe - 25;
}
if (((myline.empn.roc_gun.kill.hitTest(bo_top) || (myline.empn.roc_gun.kill.hitTest(bo_down))) || (myline.empn.roc_gun.kill.hitTest(bo_left))) || (myline.empn.roc_gun.kill.hitTest(bo_rit))) {
if (hitc == 0) {
flagstop = 1;
line = 1;
}
hitc++;
}
if (((myline.empn.laser.kill.hitTest(bo_top) || (myline.empn.laser.kill.hitTest(bo_down))) || (myline.empn.laser.kill.hitTest(bo_left))) || (myline.empn.laser.kill.hitTest(bo_rit))) {
if (hitc == 0) {
flagstop = 1;
line = 1;
}
hitc++;
}
if (((myline.empn.sprayer.kill.hitTest(bo_top) || (myline.empn.sprayer.kill.hitTest(bo_down))) || (myline.empn.sprayer.kill.hitTest(bo_left))) || (myline.empn.sprayer.kill.hitTest(bo_rit))) {
if (hitc == 0) {
flagstop = 1;
line = 1;
}
hitc++;
}
if (((myline.empn.sh_oe.kill.hitTest(bo_top) || (myline.empn.sh_oe.kill.hitTest(bo_down))) || (myline.empn.sh_oe.kill.hitTest(bo_left))) || (myline.empn.sh_oe.kill.hitTest(bo_rit))) {
if (hitc == 0) {
flagstop = 1;
line = 1;
}
hitc++;
}
if (((myline.empn.roc_gun.kill.hitTest(bo_topc) || (myline.empn.roc_gun.kill.hitTest(bo_downc))) || (myline.empn.roc_gun.kill.hitTest(bo_leftc))) || (myline.empn.roc_gun.kill.hitTest(bo_ritc))) {
correct_1.gotoAndStop(2);
delete lmc.onEnterFrame;
}
if (((myline.empn.laser.kill.hitTest(bo_topc) || (myline.empn.laser.kill.hitTest(bo_downc))) || (myline.empn.laser.kill.hitTest(bo_leftc))) || (myline.empn.laser.kill.hitTest(bo_ritc))) {
correct_1.gotoAndStop(2);
delete lmc.onEnterFrame;
}
if (((myline.empn.sprayer.kill.hitTest(bo_topc) || (myline.empn.sprayer.kill.hitTest(bo_downc))) || (myline.empn.sprayer.kill.hitTest(bo_leftc))) || (myline.empn.sprayer.kill.hitTest(bo_ritc))) {
correct_1.gotoAndStop(2);
delete lmc.onEnterFrame;
}
if (((myline.empn.sh_oe.kill.hitTest(bo_topc) || (myline.empn.sh_oe.kill.hitTest(bo_downc))) || (myline.empn.sh_oe.kill.hitTest(bo_leftc))) || (myline.empn.sh_oe.kill.hitTest(bo_ritc))) {
correct_1.gotoAndStop(2);
delete lmc.onEnterFrame;
}
if (c_pass == true) {
k = 1;
while (k < (b + 1)) {
if (myline.empm["ins" + k].hitTest(myline.empn.roc_gun.kill)) {
_root.mysound_11.start(0, 1);
still_x = myline.empm["ins" + k]._x;
still_y = myline.empm["ins" + k]._y;
still_a = myline.empm["ins" + k]._rotation;
still_xs = myline.empm["ins" + k]._xscale;
still_ys = myline.empm["ins" + k]._yscale;
myline.empm.attachMovie("still4_ins", "still_" + k, k + 150, {_x:still_x, _y:still_y, _rotation:still_a, _xscale:still_xs, _yscale:still_ys});
myline.empm["ins" + k].removeMovieClip();
}
if (myline.empm["ins" + k].hit_pt.hitTest(myline.empn.laser.kill) || (myline.empm["ins" + k].hit_pt.hitTest(myline.empn.laser.kill_2))) {
_root.mysound_11.start(0, 1);
still2_x = myline.empm["ins" + k]._x;
still2_y = myline.empm["ins" + k]._y;
still2_a = myline.empm["ins" + k]._rotation;
still2_xs = myline.empm["ins" + k]._xscale;
still2_ys = myline.empm["ins" + k]._yscale;
myline.empm.attachMovie("still2_ins", "still2_" + k, k + 150, {_x:still2_x, _y:still2_y, _rotation:still2_a, _xscale:still2_xs, _yscale:still2_ys});
myline.empm["ins" + k].removeMovieClip();
}
if (myline.empm["ins" + k].hit_pt.hitTest(myline.empn.sprayer.kill)) {
spray_x = myline.empm["ins" + k]._x;
spray_y = myline.empm["ins" + k]._y;
myline.empm.attachMovie("spray", "spray_" + k, k + 100, {_x:spray_x, _y:spray_y, _alpha:50});
myline.empn.sprayer.spraycan.gotoAndPlay(10);
still_x = myline.empm["ins" + k]._x;
still_y = myline.empm["ins" + k]._y;
still_a = myline.empm["ins" + k]._rotation;
still_xs = myline.empm["ins" + k]._xscale;
still_ys = myline.empm["ins" + k]._yscale;
_root.mysound_9.start(0, 1);
_root.mysound_11.start(0, 1);
myline.empm.attachMovie("still3_ins", "still_" + k, k + 150, {_x:still_x, _y:still_y, _rotation:still_a, _xscale:still_xs, _yscale:still_ys});
myline.empm["ins" + k].removeMovieClip();
}
if (myline.empm["ins" + k].hit_pt.hitTest(myline.empn.sh_oe.kill)) {
myline.empn.sh_oe.shoe_gr.gotoAndPlay(2);
still_x = myline.empm["ins" + k]._x;
still_y = myline.empm["ins" + k]._y;
still_a = myline.empm["ins" + k]._rotation;
still_xs = myline.empm["ins" + k]._xscale;
still_ys = myline.empm["ins" + k]._yscale;
myline.empm.attachMovie("still_ins", "still_" + k, k + 150, {_x:still_x, _y:still_y, _rotation:still_a, _xscale:still_xs, _yscale:still_ys});
_root.mysound_10.start(0, 1);
_root.mysound_11.start(0, 1);
myline.empm["ins" + k].removeMovieClip();
}
k++;
}
}
};
}
function newgraf() {
if (m == 0) {
y1 = c;
with (lmc) {
lineStyle(1, 52224, 100);
moveTo(x1 * 35, y1 * 35);
}
if (x1 < 12) {
x1 = -14;
while (x1 < 14) {
with (lmc) {
lineStyle(1, 52224, 100);
lineTo(x1 * 35, y1 * 35);
}
x1++;
}
}
} else {
x1 = (y1 - c) / m;
with (lmc) {
lineStyle(1, 52224, 100);
moveTo(x1 * 35, y1 * 35);
}
if (y1 < 12) {
y1 = -12;
while (y1 < 12) {
x1 = (y1 - c) / m;
with (lmc) {
lineStyle(1, 52224, 100);
lineTo(x1 * 35, y1 * 35);
}
y1++;
}
}
}
}
function limitgraf() {
if (!Number(eq_box.m_a)) {
ma = eq_box.m_a.split("/");
ma = ma[0] / ma[1];
} else {
ma = eq_box.m_a;
}
if (!Number(eq_box.c_a)) {
ca = eq_box.c_a.split("/");
ca = ca[0] / ca[1];
} else {
ca = eq_box.c_a;
}
if ((eq_box.m_a == 0) || (ma == 0)) {
y1 = ca;
y2 = ca;
with (lmc2) {
lineStyle(2, 16711680, 100);
moveTo(x1 * 35, y1 * 35);
}
if (x1 < 12) {
x1 = -14;
while (x1 < 14) {
with (lmc2) {
lineStyle(2, 16711680, 100);
lineTo(x1 * 35, y1 * 35);
}
x1++;
}
}
} else if ((eq_box.m_a == undefined) || (ma == "NaN")) {
} else {
x1 = (y1 - ca) / ma;
x2 = (y2 - ca) / ma;
if (x1 < 12) {
with (lmc2) {
lineStyle(2, 16711680, 100);
moveTo(x1 * 35, y1 * 35);
}
y1 = -14;
while (y1 < 14) {
x1 = (y1 - ca) / ma;
x2 = (y2 - ca) / ma;
if (y1 < 12) {
with (lmc2) {
lineStyle(2, 16711680, 100);
lineTo(x1 * 35, y1 * 35);
}
}
y1++;
}
}
}
}
Instance of Symbol 575 MovieClip "bo_rit" in Frame 152
/* no clip actions */
Instance of Symbol 575 MovieClip "bo_left" in Frame 152
/* no clip actions */
Instance of Symbol 575 MovieClip "bo_top" in Frame 152
/* no clip actions */
Instance of Symbol 575 MovieClip "bo_rightc" in Frame 152
/* no clip actions */
Instance of Symbol 575 MovieClip "bo_leftc" in Frame 152
/* no clip actions */
Instance of Symbol 575 MovieClip "bo_topc" in Frame 152
/* no clip actions */
Instance of Symbol 575 MovieClip "bo_ritc" in Frame 152
/* no clip actions */
Instance of Symbol 581 MovieClip in Frame 152
onClipEvent (enterFrame) {
if ((_root.rounds >= 1) && (_root.rounds < 6)) {
_root.r_display = 1;
}
if ((_root.rounds >= 6) && (_root.rounds < 11)) {
_root.r_display = 2;
}
if ((_root.rounds >= 11) && (_root.rounds < 16)) {
_root.r_display = 3;
}
if ((_root.rounds >= 16) && (_root.rounds < 21)) {
_root.r_display = 4;
}
if ((_root.rounds >= 21) && (_root.rounds < 26)) {
_root.r_display = 5;
}
if ((_root.rounds >= 26) && (_root.rounds < 31)) {
_root.r_display = 6;
}
if ((_root.rounds >= 31) && (_root.rounds < 36)) {
_root.r_display = 7;
}
_root.rounds_ani.display = _root.r_display;
if (_root.rounds > 35) {
_root.rounds_ani.bonus = "Bonus";
_root.rounds_ani.display = "b";
_root.r_display = "b";
}
}
Symbol 2 Button
on (press) {
_parent.hint_1.startDrag();
}
on (release) {
_parent.hint_1.stopDrag();
}
Symbol 8 Button
on (release, keyPress "<Space>") {
this.removeMovieClip();
}
Symbol 11 MovieClip [hint_r1] Frame 2
Symbol 11 MovieClip [hint_r1] Frame 75
stop();
Symbol 12 Button
on (press) {
_parent.hint_3.startDrag();
}
on (release) {
_parent.hint_3.stopDrag();
}
Symbol 18 MovieClip [hint_3] Frame 2
Symbol 18 MovieClip [hint_3] Frame 75
stop();
Symbol 19 Button
on (press) {
_parent.hint_2.startDrag();
}
on (release) {
_parent.hint_2.stopDrag();
}
Symbol 22 MovieClip [hint_2] Frame 2
Symbol 22 MovieClip [hint_2] Frame 75
stop();
Symbol 25 MovieClip [hint_1] Frame 2
Symbol 25 MovieClip [hint_1] Frame 75
stop();
Symbol 34 Button
on (release) {
print (_root.report, "bmovie");
}
Symbol 36 Button
on (release) {
this.removeMovieClip();
}
Symbol 59 MovieClip [report] Frame 1
my_date = new Date();
myhr = my_date.getHours();
mymins = my_date.getMinutes();
mysecs = my_date.getSeconds();
if (mymins < 10) {
mymins = "0" + mymins;
}
if (mysecs < 10) {
mysecs = "0" + mysecs;
}
ftime = (((myhr + ":") + mymins) + ":") + mysecs;
year = my_date.getFullYear();
month = my_date.getMonth() + 1;
dt = my_date.getDate();
if (dt < 10) {
dt = "0" + dt;
}
if (month < 10) {
month = "0" + month;
}
sdate = (((month + " / ") + dt) + " / ") + year;
Symbol 62 Button
on (press) {
_parent.limitc.startDrag(false, 85, 50, 700, 560);
}
on (release) {
_parent.limitc.stopDrag();
}
Symbol 65 Button
on (release, keyPress "<Space>") {
_parent.myline.empn.removeMovieClip();
_parent.lmc2.clear();
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
this.removeMovieClip();
}
Symbol 66 MovieClip [value_m_hi] Frame 2
_root.mysound_15.start(0, 999999);
_root.mysound_5.stop();
Symbol 66 MovieClip [value_m_hi] Frame 75
stop();
_parent.myline.empn.removeMovieClip();
_parent.lmc2.clear();
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
this.removeMovieClip();
Symbol 69 MovieClip [value_m_lo] Frame 2
_root.mysound_15.start(0, 999999);
_root.mysound_5.stop();
Symbol 69 MovieClip [value_m_lo] Frame 75
stop();
_parent.myline.empn.removeMovieClip();
_parent.lmc2.clear();
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
this.removeMovieClip();
Symbol 144 MovieClip Frame 25
stop();
Symbol 151 Button
on (release, keyPress "<Enter>") {
gotoAndStop (150);
}
Symbol 153 Button
on (release) {
gotoAndStop (145);
}
Symbol 157 Button
on (release, keyPress "<Enter>") {
intro_hold.unloadMovie();
gotoAndPlay (144);
}
Symbol 161 Button
on (release) {
nextFrame();
}
Symbol 176 Button
on (press) {
_root.eq_box.startDrag();
}
on (release) {
_root.eq_box.stopDrag();
}
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
nex = 0;
Symbol 201 MovieClip Frame 3
nex++;
Symbol 201 MovieClip Frame 4
if (nex > 5) {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Symbol 201 MovieClip Frame 5
var wing = 0;
Symbol 201 MovieClip Frame 6
wing++;
Symbol 201 MovieClip Frame 7
if (wing > 20) {
gotoAndPlay (1);
} else {
gotoAndPlay (6);
}
Symbol 204 Button
on (release) {
prevFrame();
}
Symbol 216 Button
on (press) {
_parent.eq_box.startDrag(false, 85, 50, 653, 560);
}
on (release) {
_parent.eq_box.stopDrag();
if ((_root.eq_box.m_a == "") || (_root.eq_box.m_a == undefined)) {
Selection.setFocus("eq_box.m_a");
} else if ((_root.eq_box.c_a == "") || (_root.eq_box.c_a == undefined)) {
Selection.setFocus("eq_box.c_a");
}
}
Symbol 248 Button
on (release, keyPress "<Enter>") {
function mc_check() {
if ((m_a == 0) || (c_a == 0)) {
if (m_a == 0) {
fin = 0;
proceed = "true";
proceedm = 1;
} else {
proceedm = 0;
}
if (c_a == 0) {
cv = 0;
proceed = "true";
proceedc = 1;
} else {
proceedc = 0;
}
}
if (proceedm == 0) {
if (!Number(m_a)) {
mv = m_a;
mval = mv.split("/");
fin = mval[0] / mval[1];
if ((!Number(mval[0])) || (!Number(mval[1]))) {
intercept.removeMovieClip();
attachMovie("validm", "slope", 2, {_x:400, _y:300});
proceed = "false";
eqq = 1;
}
} else {
fin = m_a;
}
}
if (proceedc == 0) {
if (!Number(c_a)) {
cvt = c_a;
cval = cvt.split("/");
cv = cval[0] / cval[1];
if ((!Number(cval[0])) || (!Number(cval[1]))) {
slope.removeMovieClip();
attachMovie("validc", "intercept", 2, {_x:400, _y:300});
proceed = "false";
eqt = 1;
}
} else {
cv = c_a;
}
if ((c_a > 7) || (c_a < -7)) {
attachMovie("climit", "limitc", 4, {_x:400, _y:300});
proceed = "false";
limitgraf();
}
if (eqq == eqt) {
attachMovie("validmc", "valid_mc", 2, {_x:400, _y:300});
proceed = "false";
eqq = 0;
}
}
vm = m;
vc = c;
if (proceed == "true") {
result = "";
if ((Number(fin) == Number(vm)) && (Number(cv) == Number(vc))) {
attachMovie("correct", "correct_1", 2, {_x:400, _y:300});
graf();
} else if ((fin == vm) && (Number(cv) == Number(vc))) {
attachMovie("correct", "correct_1", 2, {_x:400, _y:300});
graf();
} else {
s_m = String(m_a);
s_c = String(c_a);
la = s_m.length;
lc = s_c.length;
s_m2 = int(m_a * 10);
s_c2 = int(c_a * 10);
s2 = String(m);
sc2 = String(c);
s_m1 = int(m * 10);
s_c1 = int(c * 10);
diff_m = fin - vm;
diff_c = cv - vc;
if ((s_m2 == s_m1) && (s_c2 == s_c1)) {
attachMovie("fractions", "fractions", 2, {_x:400, _y:300});
} else if (((diff_m < 0.3) && (diff_m > -0.3)) && ((diff_c <= 0.5) && (diff_c >= -0.5))) {
attachMovie("close", "close_1", 2, {_x:400, _y:300});
in_graf();
} else {
attachMovie("wrong", "wrong_1", 2, {_x:400, _y:300});
in_graf();
}
}
}
}
panel.removeMovieClip();
enterval.removeMovieClip();
slope.removeMovieClip();
intercept.removeMovieClip();
limitc.removeMovieClip();
valid_mc.removeMovieClip();
correct_1.removeMovieClip();
wrong_1.removeMovieClip();
newpanel.removeMovieClip();
fractions.removeMovieClip();
var eqq = 0;
var eqt = undefined;
_global.proceed = "false";
proceedm = 0;
proceedc = 0;
lmc2.clear();
lmc.clear();
flagstop = 0;
myline.empn.removeMovieClip();
if ((m_a == "") || (m_a == undefined)) {
attachMovie("entervalue", "enterval", 2, {_x:400, _y:300});
} else if ((c_a == "") || (c_a == undefined)) {
attachMovie("entervalue", "enterval", 2, {_x:400, _y:300});
} else {
proceed = "true";
mc_check();
}
updateAfterEvent();
}
Symbol 252 Button
on (release) {
gotoAndPlay (1);
}
Symbol 258 MovieClip Frame 274
stop();
Symbol 260 Button
on (release, keyPress "<Enter>") {
nextFrame();
alert_movie.loadMovie(path + "i_ani.swf");
}
Symbol 264 MovieClip Frame 160
stop();
Symbol 279 MovieClip [still2_ins] Frame 6
stop();
this.removeMovieClip();
Symbol 280 Button
on (release) {
gotoAndPlay (1);
}
Symbol 281 MovieClip Frame 1
cursor.gotoAndPlay(1);
Symbol 281 MovieClip Frame 160
stop();
Symbol 285 Button
on (release, keyPress "<Enter>") {
unloadMovie (alert_movie);
nextFrame();
}
Symbol 286 Button
on (release, keyPress "<Enter>") {
alert_movie.unloadMovie();
alert_movie.loadMovie("i_ani.swf");
}
Symbol 305 Button
on (release) {
mysound_1.stop();
mysound_2.start(0, 999999);
gotoAndStop (144);
}
Symbol 309 Button
on (release) {
if (weaponflag == undefined) {
w_mess = "first select your weapon,then click enter game";
} else {
gotoAndPlay (151);
mysound_1.stop();
}
}
Symbol 313 Button
on (release) {
_global.weaponflag = 1;
w_mess = "you have chosen the rocket as your weapon";
}
on (rollOver) {
d_shoe._visible = false;
d_spray._visible = false;
d_laser._visible = false;
d_rocket._visible = true;
}
on (rollOut) {
d_rocket._visible = false;
if (_global.weaponflag == 1) {
d_rocket._visible = true;
} else if (_global.weaponflag == 2) {
d_laser._visible = true;
} else if (_global.weaponflag == 3) {
d_spray._visible = true;
} else if (_global.weaponflag == 4) {
d_shoe._visible = true;
} else {
d_rocket._visible = false;
}
}
Symbol 314 Button
on (release) {
_global.weaponflag = 2;
w_mess = "you have chosen the laser gun as your weapon";
d_laser._visible = true;
}
on (rollOver) {
d_shoe._visible = false;
d_spray._visible = false;
d_rocket._visible = false;
d_laser._visible = true;
}
on (rollOut) {
d_laser._visible = false;
if (_global.weaponflag == 1) {
d_rocket._visible = true;
} else if (_global.weaponflag == 2) {
d_laser._visible = true;
} else if (_global.weaponflag == 3) {
d_spray._visible = true;
} else if (_global.weaponflag == 4) {
d_shoe._visible = true;
} else {
d_laser._visible = false;
}
}
Symbol 315 Button
on (release) {
_global.weaponflag = 3;
w_mess = "you have chosen the spray gun as your weapon";
d_spray._visible = true;
}
on (rollOver) {
d_shoe._visible = false;
d_laser._visible = false;
d_rocket._visible = false;
d_spray._visible = true;
}
on (rollOut) {
d_spray._visible = false;
if (_global.weaponflag == 1) {
d_rocket._visible = true;
} else if (_global.weaponflag == 2) {
d_laser._visible = true;
} else if (_global.weaponflag == 3) {
d_spray._visible = true;
} else if (_global.weaponflag == 4) {
d_shoe._visible = true;
} else {
d_spray._visible = false;
}
}
Symbol 316 Button
on (release) {
_global.weaponflag = 4;
w_mess = "you have chosen the shoe as your weapon";
d_shoe._visible = true;
}
on (rollOver) {
d_laser._visible = false;
d_rocket._visible = false;
d_spray._visible = false;
d_shoe._visible = true;
}
on (rollOut) {
d_shoe._visible = false;
if (_global.weaponflag == 1) {
d_rocket._visible = true;
} else if (_global.weaponflag == 2) {
d_laser._visible = true;
} else if (_global.weaponflag == 3) {
d_spray._visible = true;
} else if (_global.weaponflag == 4) {
d_shoe._visible = true;
} else {
d_shoe._visible = false;
}
}
Symbol 324 MovieClip [climit] Frame 2
_root.mysound_15.start(0, 999999);
_root.mysound_5.stop();
Symbol 324 MovieClip [climit] Frame 75
stop();
_parent.myline.empn.removeMovieClip();
_parent.lmc2.clear();
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
this.removeMovieClip();
Symbol 343 MovieClip Frame 20
stop();
Symbol 347 Button
on (release, keyPress "<Space>") {
_root.myline.empn.removeMovieClip();
_parent.lmc2.clear();
_parent.wpn._visible = true;
_parent.wpn_txt._visible = true;
_parent.b_b._visible = true;
_root.fire_flag = 0;
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
_root.flagstop = 0;
this.removeMovieClip();
}
Symbol 368 MovieClip Frame 1
mstyle = new TextFormat();
mstyle.font = "Times New Roman";
mstyle.bold = true;
mstyle.align = "right";
mstyle.color = 16777215 /* 0xFFFFFF */;
mtext = u_m;
m_size = mstyle.getTextExtent(mtext);
trace("mstyle::" + mtext);
this.createTextField("slope", 2, y_box._x + y_box._width, y_box._y, m_size.width + 1, m_size.height);
slope.text = mtext;
slope.setTextFormat(mstyle);
x_box._x = slope._x + (m_size.width - 2);
x_box._y = slope._y;
if (_root.r_display == 2) {
} else {
sgn_box._x = x_box._x + x_box._width;
sgn_box._y = slope._y;
cstyle = new TextFormat();
cstyle.font = "Times New Roman";
cstyle.bold = true;
cstyle.align = "left";
cstyle.color = 16777215 /* 0xFFFFFF */;
ctext = Math.abs(u_b);
c_size = cstyle.getTextExtent(ctext);
icp_x = sgn_box._x + (sgn_box._width - 2);
icp_y = slope._y;
this.createTextField("icp_box", 3, icp_x, icp_y, c_size.width + 1, c_size.height);
icp_box.text = Math.abs(ctext);
icp_box.setTextFormat(cstyle);
}
Symbol 375 MovieClip [close] Frame 1
stop();
_parent.wpn._visible = false;
_parent.wpn_txt._visible = false;
_parent.b_b._visible = false;
Symbol 375 MovieClip [close] Frame 2
del = 0;
w_pass = false;
_root.mysound_12.start(0, 1);
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = _parent;
del++;
if (del > 75) {
_local1.myline.empn.removeMovieClip();
_local2.lmc2.clear();
_local2.wpn._visible = true;
_local2.wpn_txt._visible = true;
_local2.b_b._visible = true;
_local1.fire_flag = 0;
if (sflag == 0) {
_local1.mysound_5.start(0, 999999);
}
_local1.eq_box.hinter._visible = true;
_local1.flagstop = 0;
this.removeMovieClip();
}
};
if (e_c == true) {
in_frac._visible = false;
in_frac_b._visible = false;
in_frac_m._visible = false;
if (u_m == 0) {
icor_frac._visible = false;
icor_frac_m._visible = false;
icor_frac_b._visible = true;
if (_root.eq_box.cv_o > 0) {
icor_frac_b.inter = u_b;
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
icor_frac_b.inter = "- " + u_b;
} else if (_root.eq_box.cv_o == 0) {
icor_frac_b.inter = "";
}
trace("1");
} else {
trace("2");
icor_frac._visible = true;
icor_frac_b._visible = false;
icor_frac_m._visible = false;
icor_frac.numero = Math.abs(nr);
icor_frac.denom = Math.abs(dr);
if (nr > 0) {
icor_frac.sgn_m = "";
} else if (nr < 0) {
icor_frac.sgn_m = "-";
}
icor_frac.inter = u_b;
if (_root.eq_box.cv_o > 0) {
icor_frac.sgn = "+";
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
icor_frac.sgn = "-";
} else if (_root.eq_box.cv_o == 0) {
icor_frac.sgn = "";
icor_frac.inter = "";
}
}
} else if (e_c == false) {
trace("3");
icor_frac._visible = false;
icor_frac_b._visible = false;
icor_frac_m._visible = false;
if ((u_m == 1) || (u_m == "")) {
in_frac._visible = false;
in_frac_b._visible = false;
in_frac_m._visible = true;
in_frac_m.x_box._visible = true;
in_frac_m.icp_m = u_b;
if (_root.eq_box.cv_o > 0) {
in_frac_m.sgn = "+";
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
in_frac_m.sgn = "-";
} else if (_root.eq_box.cv_o == 0) {
in_frac_m.sgn = "";
in_frac_m.icp_m = "";
}
} else if (u_m == -1) {
trace("4");
in_frac._visible = false;
in_frac_b._visible = false;
in_frac_m._visible = true;
in_frac_m.x_box._visible = true;
in_frac_m.x_bo = "- x";
in_frac_m.icp_m = u_b;
if (_root.eq_box.cv_o > 0) {
in_frac_m.sgn = "+";
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
in_frac_m.sgn = "-";
} else if (_root.eq_box.cv_o == 0) {
in_frac_m.sgn = "";
in_frac_m.icp_m = "";
}
} else if (u_m == 0) {
trace("5");
in_frac._visible = false;
in_frac_b._visible = true;
in_frac_m._visible = false;
if (_root.eq_box.cv_o > 0) {
in_frac_b.inter = u_b;
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
in_frac_b.inter = "- " + u_b;
}
} else {
trace("6");
in_frac._visible = true;
in_frac_b._visible = false;
in_frac_m._visible = false;
in_frac.slp = u_m;
in_frac.x_box._visible = true;
in_frac.inter = u_b;
if (_root.eq_box.cv_o > 0) {
in_frac.sgn = "+";
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
in_frac.sgn = "-";
} else if (_root.eq_box.cv_o == 0) {
in_frac.sgn = "";
in_frac.inter = "";
}
}
}
Symbol 380 Button
on (release, keyPress "<Enter>") {
_root.myl.run_var = "";
_root.myl.rise_var = "";
_root.myline.marker1.removeMovieClip();
_root.myline.marker2.removeMovieClip();
_root.myline.clear();
_parent.eq_box.d_m = "";
_parent.eq_box.n_m = "";
_global.key_e = false;
_root.rounds++;
if ((((((((_parent.rounds == 1) || (_parent.rounds == 6)) || (_parent.rounds == 11)) || (_parent.rounds == 16)) || (_parent.rounds == 21)) || (_parent.rounds == 26)) || (_parent.rounds == 31)) || (_parent.rounds == 36)) {
_root.mysound6.start(0, 1);
_parent.attachMovie("rounds_ani", "rounds_ani", 3, {_x:400, _y:300});
_parent.rounds_ani.gotoAndStop(3);
_parent.rounds_ani.display = _parent.r_display;
} else {
_parent.mc();
}
this.removeMovieClip();
}
Symbol 414 MovieClip [correct] Frame 1
_parent.wpn._visible = false;
_parent.wpn_txt._visible = false;
_parent.b_b._visible = false;
_root.myl.run_var = "";
_root.myl.rise_var = "";
_root.myline.marker1.removeMovieClip();
_root.myline.marker2.removeMovieClip();
_root.myline.clear();
stop();
Symbol 414 MovieClip [correct] Frame 2
_root.mysound_14.start(0, 1);
if (c_c == true) {
n_frac._visible = false;
n_frac_b._visible = false;
n_frac_m._visible = false;
if (_parent.fmm == 0) {
cor_frac._visible = false;
cor_frac_m._visible = false;
cor_frac_b._visible = true;
if (_parent.sign1 == "+") {
cor_frac_b.inter = _parent.fcc;
} else if (_parent.sign1 == "-") {
cor_frac_b.inter = "- " + _parent.fcc;
}
} else {
cor_frac._visible = true;
cor_frac_b._visible = false;
cor_frac_m._visible = false;
if (_parent.fcc == 0) {
cor_frac.numero = f_v0;
cor_frac.denom = f_v1;
cor_frac.sgn = "";
if (_parent.sign2 == "") {
cor_frac.sgn_m = "";
} else if (_parent.sign2 == "-") {
cor_frac.sgn_m = "-";
}
cor_frac.inter = "";
} else {
cor_frac.numero = f_v0;
cor_frac.denom = f_v1;
cor_frac.sgn = _parent.sign1;
if (_parent.sign2 == "") {
cor_frac.sgn_m = "";
} else if (_parent.sign2 == "-") {
cor_frac.sgn_m = "-";
}
cor_frac.inter = Math.abs(_parent.fcc);
}
}
} else if (c_c == false) {
cor_frac._visible = false;
cor_frac_b._visible = false;
cor_frac_m._visible = false;
if (_parent.fm == 1) {
n_frac._visible = false;
n_frac_b._visible = false;
n_frac_m._visible = true;
n_frac_m.x_box._visible = true;
if (_parent.fcc == 0) {
n_frac_m.icp_m = "";
n_frac_m.sgn = "";
} else {
n_frac_m.icp_m = Math.abs(_parent.fcc);
n_frac_m.sgn = _parent.sign1;
}
} else if (_parent.fm == -1) {
n_frac._visible = false;
n_frac_b._visible = false;
n_frac_m._visible = true;
n_frac_m.x_box._visible = true;
n_frac_m.x_bo = "-x";
if (_parent.fcc == 0) {
n_frac_m.icp_m = "";
n_frac_m.sgn = "";
} else {
n_frac_m.icp_m = Math.abs(_parent.fcc);
n_frac_m.sgn = _parent.sign1;
}
} else if (_parent.fmm == 0) {
n_frac._visible = false;
n_frac_b._visible = true;
n_frac_m._visible = false;
if (_parent.fcc == 0) {
n_frac_b.icp = "";
} else if (_parent.sign1 == "+") {
n_frac_b.icp = _parent.fcc;
} else if (_parent.sign1 == "-") {
n_frac_b.icp = "-" + _parent.fcc;
}
} else {
n_frac._visible = true;
n_frac_b._visible = false;
n_frac_m._visible = false;
if (_parent.sign2 == "") {
n_frac.slp = _parent.fmm;
} else if (_parent.sign2 == "-") {
n_frac.slp = "-" + _parent.fmm;
}
n_frac.x_box._visible = true;
if (_parent.fcc == 0) {
n_frac.icp = "";
n_frac.sgn = "";
} else {
n_frac.icp = Math.abs(_parent.fcc);
n_frac.sgn = _parent.sign1;
}
}
}
_parent.myline.empm.removeMovieClip();
Symbol 415 MovieClip [drop_action] Frame 1
_parent.instruct_title._visible = false;
Symbol 421 MovieClip [entervalue] Frame 1
Symbol 422 Button
on (press) {
_root.validc.startDrag(false, 85, 50, 700, 560);
}
on (release) {
_root.validc.stopDrag();
}
Symbol 424 Button
on (release) {
Selection.setFocus(_parent.mtxt);
_root.fire_flag = 0;
_parent.fractions.removeMovieClip();
}
Symbol 425 MovieClip [fractions] Frame 75
stop();
Selection.setFocus(_parent.mtxt);
_root.fire_flag = 0;
_parent.fractions.removeMovieClip();
Symbol 435 Button
on (release) {
savegame = SharedObject.getLocal(_root.nam);
savegame.data.savedDoc = _root.rounds;
this.removeMovieClip();
}
Symbol 437 Button
on (release) {
this.removeMovieClip();
}
Symbol 439 MovieClip [mid_save] Frame 1
exist = false;
stop();
Symbol 452 Button
on (release) {
_global.weaponflag = 2;
_root.attachMovie("rounds_ani", "rounds_ani", 4, {_x:400, _y:300});
_root.rounds_ani.gotoAndStop(3);
_root.new_select.removeMovieClip();
}
Symbol 453 Button
on (release) {
_global.weaponflag = 3;
_root.attachMovie("rounds_ani", "rounds_ani", 4, {_x:400, _y:300});
_root.rounds_ani.gotoAndStop(3);
_root.new_select.removeMovieClip();
}
Symbol 454 Button
on (release) {
_global.weaponflag = 4;
_root.attachMovie("rounds_ani", "rounds_ani", 4, {_x:400, _y:300});
_root.rounds_ani.gotoAndStop(3);
_root.new_select.removeMovieClip();
}
Symbol 455 Button
on (release) {
_global.weaponflag = 1;
_root.attachMovie("rounds_ani", "rounds_ani", 4, {_x:400, _y:300});
_root.rounds_ani.gotoAndStop(3);
_root.new_select.removeMovieClip();
}
Symbol 457 MovieClip [new_select] Frame 1
stop();
_parent.newpanel.onMouseDown = function () {
_parent.newpanel.startDrag(false);
};
_parent.newpanel.onMouseUp = function () {
_parent.newpanel.stopDrag();
};
Symbol 459 Button
on (release, keyPress "<Enter>") {
gotoAndPlay (5);
}
Symbol 460 Button
on (release) {
savegame = SharedObject.getLocal(_root.nam);
for (item in savegame.data) {
exist = true;
break;
}
if (exist == true) {
_root.rounds = savegame.data.savedDoc;
gotoAndPlay (5);
} else if (exist == false) {
gotoAndStop (4);
}
}
Symbol 466 Button
on (release) {
savegame = SharedObject.getLocal(_root.nam);
savegame.data.savedDoc = _root.rounds;
saved = "Game Saved";
}
Symbol 467 Button
on (release) {
savegame = SharedObject.getLocal(_root.nam);
for (item in savegame.data) {
exist = true;
break;
}
if (exist == true) {
_root.rounds = savegame.data.savedDoc;
gotoAndPlay (5);
} else {
loadgame = "No Saved Game";
}
}
Symbol 468 Button
on (release) {
if ((_parent.rounds >= 1) && (_parent.rounds < 6)) {
_parent.rounds = 1;
}
if ((_parent.rounds >= 6) && (_parent.rounds < 11)) {
_parent.rounds = 1;
}
if ((_parent.rounds >= 11) && (_parent.rounds < 16)) {
_parent.rounds = 6;
}
if ((_parent.rounds >= 16) && (_parent.rounds < 21)) {
_parent.rounds = 11;
}
if ((_parent.rounds >= 21) && (_parent.rounds <= 26)) {
_parent.rounds = 16;
}
if (_parent.rounds > 25) {
_parent.rounds = 26;
}
gotoAndPlay (5);
}
Symbol 469 Button
on (release) {
_parent.attachMovie("new_select", "new_select", 3, {_x:400, _y:300});
this.removeMovieClip();
}
Symbol 483 MovieClip Frame 15
stop();
Symbol 491 MovieClip [rounds_ani] Frame 1
stop();
var e_n = "player";
my_date = new Date();
hr = my_date.getHours();
mins = my_date.getMinutes();
secs = my_date.getSeconds();
if (mins < 10) {
mins = "0" + mins;
}
if (secs < 10) {
secs = "0" + secs;
}
_root.stime = (((hr + ":") + mins) + ":") + secs;
_parent.r_d._visible = false;
_parent.rtxt._visible = false;
_root.nam = e_n;
gotoAndStop (2);
Symbol 491 MovieClip [rounds_ani] Frame 2
stop();
exist = false;
Symbol 491 MovieClip [rounds_ani] Frame 3
stop();
_parent.r_d._visible = false;
_parent.rtxt._visible = false;
loadgame = "Load Game";
saved = "Save Game";
Symbol 491 MovieClip [rounds_ani] Frame 4
c_name = _root.nam;
stop();
Symbol 491 MovieClip [rounds_ani] Frame 5
_root.mysound_3.start(0, 1);
play();
Symbol 491 MovieClip [rounds_ani] Frame 49
_root.fire_flag = 0;
_parent.mc();
this.removeMovieClip();
Symbol 493 Button
on (release) {
_global.weaponflag = 2;
_parent.w_mess = "you have choosen laser gun as your weapon";
this.newpanel.removeMovieClip();
}
Symbol 494 Button
on (release) {
_global.weaponflag = 3;
_parent.w_mess = "you have choosen spray gun as your weapon";
this.newpanel.removeMovieClip();
}
Symbol 495 Button
on (release) {
_global.weaponflag = 4;
_parent.w_mess = "you have choosen shoe as your weapon";
this.newpanel.removeMovieClip();
}
Symbol 496 Button
on (release) {
_global.weaponflag = 1;
_parent.w_mess = "you have choosen rocket as your weapon";
this.newpanel.removeMovieClip();
}
Symbol 501 Button
on (release, keyPress "<Enter>") {
_parent.wpn._visible = true;
_parent.wpn_txt._visible = true;
if (weaponflag != undefined) {
_parent.attachMovie("rounds_ani", "rounds_ani", 3, {_x:400, _y:300});
_parent.rounds_ani.display = 1;
this.removeMovieClip();
}
}
Symbol 503 MovieClip [selectpanel] Frame 1
_parent.panel.onMouseDown = function () {
_parent.panel.startDrag(false);
};
_parent.panel.onMouseUp = function () {
_parent.panel.stopDrag();
};
Symbol 504 MovieClip Frame 1
stop();
Symbol 510 Button
on (release, keyPress "<Enter>") {
_parent.eq_box.d_m = "";
_parent.eq_box.n_m = "";
_global.key_e = false;
_parent.attachMovie("rounds_ani", "rounds_ani", 3, {_x:400, _y:300});
_parent.rounds_ani.gotoAndPlay(5);
if (_parent.r_display == 1) {
_parent.rounds_ani.display = 1;
} else if (_parent.r_display > 1) {
_parent.rounds_ani.display = _parent.r_display;
}
_parent.myline.empm.removeMovieClip();
_parent.lmc.clear();
this.removeMovieClip();
}
Symbol 517 MovieClip [splash_rw] Frame 2
if (c_c == true) {
n_frac._visible = false;
n_frac_b._visible = false;
n_frac_m._visible = false;
if (_parent.fmm == 0) {
cor_frac._visible = false;
cor_frac_m._visible = false;
cor_frac_b._visible = true;
if (_parent.sign1 == "+") {
cor_frac_b.inter = _parent.fcc;
} else if (_parent.sign1 == "-") {
cor_frac_b.inter = "- " + _parent.fcc;
}
} else {
cor_frac._visible = true;
cor_frac_b._visible = false;
cor_frac_m._visible = false;
if (_parent.fcc == 0) {
cor_frac.numero = f_v0;
cor_frac.denom = f_v1;
cor_frac.sgn = "";
if (_parent.sign2 == "") {
cor_frac.sgn_m = "";
} else if (_parent.sign2 == "-") {
cor_frac.sgn_m = "-";
}
cor_frac.inter = "";
} else {
cor_frac.numero = f_v0;
cor_frac.denom = f_v1;
cor_frac.sgn = _parent.sign1;
if (_parent.sign2 == "") {
cor_frac.sgn_m = "";
} else if (_parent.sign2 == "-") {
cor_frac.sgn_m = "-";
}
cor_frac.inter = Math.abs(_parent.fcc);
}
}
} else if (c_c == false) {
cor_frac._visible = false;
cor_frac_b._visible = false;
cor_frac_m._visible = false;
if (_parent.fm == 1) {
n_frac._visible = false;
n_frac_b._visible = false;
n_frac_m._visible = true;
n_frac_m.x_box._visible = true;
if (_parent.fcc == 0) {
n_frac_m.icp_m = "";
n_frac_m.sgn = "";
} else {
n_frac_m.icp_m = Math.abs(_parent.fcc);
n_frac_m.sgn = _parent.sign1;
}
} else if (_parent.fm == -1) {
n_frac._visible = false;
n_frac_b._visible = false;
n_frac_m._visible = true;
n_frac_m.x_box._visible = true;
n_frac_m.x_bo = "-x";
if (_parent.fcc == 0) {
n_frac_m.icp_m = "";
n_frac_m.sgn = "";
} else {
n_frac_m.icp_m = Math.abs(_parent.fcc);
n_frac_m.sgn = _parent.sign1;
}
} else if (_parent.fmm == 0) {
n_frac._visible = false;
n_frac_b._visible = true;
n_frac_m._visible = false;
if (_parent.fcc == 0) {
n_frac_b.icp = "";
} else if (_parent.sign1 == "+") {
n_frac_b.icp = _parent.fcc;
} else if (_parent.sign1 == "-") {
n_frac_b.icp = "-" + _parent.fcc;
}
} else {
n_frac._visible = true;
n_frac_b._visible = false;
n_frac_m._visible = false;
if (_parent.sign2 == "") {
n_frac.slp = _parent.fmm;
} else if (_parent.sign2 == "-") {
n_frac.slp = "-" + _parent.fmm;
}
n_frac.x_box._visible = true;
if (_parent.fcc == 0) {
n_frac.icp = "";
n_frac.sgn = "";
} else {
n_frac.icp = Math.abs(_parent.fcc);
n_frac.sgn = _parent.sign1;
}
}
}
_parent.myline.empm.removeMovieClip();
_root.mysound_5.stop();
_parent.fire_flag = 1;
_parent.panel.removeMovieClip();
_parent.enterval.removeMovieClip();
_parent.slope.removeMovieClip();
_parent.intercept.removeMovieClip();
_parent.limitc.removeMovieClip();
_parent.valid_mc.removeMovieClip();
_parent.wrong_1.removeMovieClip();
_parent.newpanel.removeMovieClip();
_parent.fractions.removeMovieClip();
_parent.wpn._visible = false;
_parent.wpn_txt._visible = false;
_parent.b_b._visible = false;
_parent.myline.empn.removeMovieClip();
_parent.lmc2.clear();
_root.mysound_13.start(0, 1);
if ((_parent.rounds >= 1) && (_parent.rounds < 6)) {
_parent.rounds = 1;
}
if ((_parent.rounds >= 6) && (_parent.rounds < 11)) {
_parent.rounds = 6;
}
if ((_parent.rounds >= 11) && (_parent.rounds < 16)) {
_parent.rounds = 11;
}
if ((_parent.rounds >= 16) && (_parent.rounds < 21)) {
_parent.rounds = 16;
}
if ((_parent.rounds >= 21) && (_parent.rounds < 26)) {
_parent.rounds = 21;
}
if ((_parent.rounds >= 26) && (_parent.rounds < 31)) {
_parent.rounds = 26;
}
if ((_parent.rounds >= 31) && (_parent.rounds < 36)) {
_parent.rounds = 31;
}
if (_parent.rounds > 35) {
_parent.rounds = 36;
}
_parent.timeout.onMouseDown = function () {
_parent.timeout.startDrag(false);
};
_parent.timeout.onMouseUp = function () {
_parent.timeout.stopDrag();
};
stop();
Symbol 522 MovieClip [spray] Frame 8
gotoAndStop (1);
Symbol 528 MovieClip Frame 1
stop();
Symbol 540 MovieClip [still_ins] Frame 40
stop();
this.removeMovieClip();
Symbol 544 MovieClip [still3_ins] Frame 41
stop();
this.removeMovieClip();
Symbol 545 MovieClip [still4_ins] Frame 7
this.removeMovieClip();
Symbol 546 Button
on (press) {
_parent.intercept.startDrag(false, 85, 50, 700, 560);
}
on (release) {
_parent.intercept.stopDrag();
}
Symbol 548 Button
on (release, keyPress "<Space>") {
Selection.setFocus(_parent.ctxt);
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
_parent.intercept.removeMovieClip();
}
Symbol 549 MovieClip [validc] Frame 2
_root.mysound_5.stop();
_root.mysound_15.start(0, 999999);
Symbol 549 MovieClip [validc] Frame 75
stop();
Selection.setFocus(_parent.ctxt);
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
_parent.intercept.removeMovieClip();
Symbol 550 Button
on (press) {
_parent.slope.startDrag(false, 85, 50, 700, 560);
}
on (release) {
_parent.slope.stopDrag();
}
Symbol 552 Button
on (release, keyPress "<Space>") {
Selection.setFocus(_parent.mtxt);
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
_parent.slope.removeMovieClip();
}
Symbol 553 MovieClip [validm] Frame 2
_root.mysound_15.start(0, 999999);
_root.mysound_5.stop();
Symbol 553 MovieClip [validm] Frame 75
stop();
Selection.setFocus(_parent.mtxt);
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
_parent.slope.removeMovieClip();
Symbol 554 Button
on (press) {
_parent.valid_mc.startDrag(false, 85, 50, 700, 560);
}
on (release) {
_parent.valid_mc.stopDrag();
}
Symbol 556 Button
on (release, keyPress "<Space>") {
Selection.setFocus(_parent.mtxt);
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
this.removeMovieClip();
}
Symbol 557 MovieClip [validmc] Frame 2
_root.mysound_15.start(0, 999999);
_root.mysound_5.stop();
Symbol 557 MovieClip [validmc] Frame 75
stop();
Selection.setFocus(_parent.mtxt);
_root.fire_flag = 0;
_root.mysound_15.stop();
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
this.removeMovieClip();
Symbol 569 Button
on (release, keyPress "<Space>") {
_parent.lmc2.clear();
_root.myline.empn.removeMovieClip();
_root.wpn._visible = true;
_root.wpn_txt._visible = true;
_root.b_b._visible = true;
_parent.fire_flag = 0;
if (sflag == 0) {
_root.mysound_5.start(0, 999999);
}
_root.eq_box.hinter._visible = true;
_root.flagstop = 0;
this.removeMovieClip();
}
Symbol 571 MovieClip [wrong] Frame 1
stop();
_parent.wpn._visible = false;
_parent.wpn_txt._visible = false;
_parent.b_b._visible = false;
Symbol 571 MovieClip [wrong] Frame 2
if (e_c == true) {
in_frac._visible = false;
in_frac_b._visible = false;
in_frac_m._visible = false;
if (u_m == 0) {
icor_frac._visible = false;
icor_frac_m._visible = false;
icor_frac_b._visible = true;
if (_root.eq_box.cv_o > 0) {
icor_frac_b.inter = u_b;
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
icor_frac_b.inter = "- " + u_b;
} else if (_root.eq_box.cv_o == 0) {
icor_frac_b.inter = "";
}
trace("1");
} else {
trace("2");
icor_frac._visible = true;
icor_frac_b._visible = false;
icor_frac_m._visible = false;
icor_frac.numero = Math.abs(nr);
icor_frac.denom = Math.abs(dr);
if (nr > 0) {
icor_frac.sgn_m = "";
} else if (nr < 0) {
icor_frac.sgn_m = "-";
}
icor_frac.inter = u_b;
if (_root.eq_box.cv_o > 0) {
icor_frac.sgn = "+";
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
icor_frac.sgn = "-";
} else if (_root.eq_box.cv_o == 0) {
icor_frac.sgn = "";
icor_frac.inter = "";
}
}
} else if (e_c == false) {
trace("3");
icor_frac._visible = false;
icor_frac_b._visible = false;
icor_frac_m._visible = false;
if ((u_m == 1) || (u_m == "")) {
in_frac._visible = false;
in_frac_b._visible = false;
in_frac_m._visible = true;
in_frac_m.x_box._visible = true;
in_frac_m.icp_m = u_b;
if (_root.eq_box.cv_o > 0) {
in_frac_m.sgn = "+";
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
in_frac_m.sgn = "-";
} else if (_root.eq_box.cv_o == 0) {
in_frac_m.sgn = "";
in_frac_m.icp_m = "";
}
} else if (u_m == -1) {
trace("4");
in_frac._visible = false;
in_frac_b._visible = false;
in_frac_m._visible = true;
in_frac_m.x_box._visible = true;
in_frac_m.x_bo = "- x";
in_frac_m.icp_m = u_b;
if (_root.eq_box.cv_o > 0) {
in_frac_m.sgn = "+";
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
in_frac_m.sgn = "-";
} else if (_root.eq_box.cv_o == 0) {
in_frac_m.sgn = "";
in_frac_m.icp_m = "";
}
} else if (u_m == 0) {
trace("5");
in_frac._visible = false;
in_frac_b._visible = true;
in_frac_m._visible = false;
if (_root.eq_box.cv_o > 0) {
in_frac_b.inter = u_b;
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
in_frac_b.inter = "- " + u_b;
}
} else {
trace((("6:" + u_m) + ":") + u_b);
in_frac._visible = true;
in_frac_b._visible = false;
in_frac_m._visible = false;
in_frac.slp = u_m;
in_frac.x_box._visible = true;
in_frac.inter = u_b;
if (_root.eq_box.cv_o > 0) {
in_frac.sgn = "+";
} else if (_root.eq_box.cv_o < 0) {
u_b = u_b.split("-");
u_b = u_b[1];
in_frac.sgn = "-";
} else if (_root.eq_box.cv_o == 0) {
in_frac.sgn = "";
in_frac.inter = "";
}
}
}
del = 0;
w_pass = false;
_root.mysound_13.start(0, 1);
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = _parent;
del++;
if (del > 75) {
_local2.lmc2.clear();
_local1.myline.empn.removeMovieClip();
_local1.wpn._visible = true;
_local1.wpn_txt._visible = true;
_local2.b_b._visible = true;
_local2.fire_flag = 0;
_local1.mysound_13.stop();
if (sflag == 0) {
_local1.mysound_5.start(0, 999999);
}
_local1.eq_box.hinter._visible = true;
_local1.flagstop = 0;
this.removeMovieClip();
}
};
Symbol 580 Button
on (release, keyPress "<PgUp>") {
attachMovie("report", "report", 1000, {_x:400, _y:300});
report.neq = _root.neq;
report.ncorrect = _root.ncorrect;
report.nwrong = _root.nwrong;
report.nguess = _root.nguess;
report.nmissed = _root.nmissed;
report.u_name = _root.nam;
report.stime = _root.stime;
report.__rnd = _root.r_display;
}
on (keyPress "<PgDn>") {
report.removeMovieClip();
}
Symbol 583 Button
on (release) {
_root.attachMovie("mid_save", "mid_save", 2, {_x:400, _y:300});
}
Symbol 586 Button
on (release) {
if (_root.r_display != 1) {
if (hint_flag < 3) {
hint_flag++;
} else {
hint_flag = 1;
}
ayn = new Array();
ayp = new Array();
ax = new Array();
pt_x1 = new Array();
pt_x2 = new Array();
pt_y1 = new Array();
pt_y2 = new Array();
pt_c = 0;
vy1 = 0;
while (vy1 > -8) {
vx = (vy1 - _root.c) / _root.m;
if (((vx == int(vx)) && ((vx < 10) && (vx > -10))) && (vx != undefined)) {
ayn[Math.abs(vy1)] = vy1;
ax[Math.abs(vy1)] = vx;
}
vy1--;
}
vy2 = 1;
while (vy2 < 8) {
vx = (vy2 - _root.c) / _root.m;
if (((vx == int(vx)) && ((vx < 10) && (vx > -10))) && (vx != undefined)) {
ayn[vy2 + 7] = vy2;
ax[vy2 + 7] = vx;
}
vy2++;
}
vy3 = 0;
while (vy3 <= 14) {
vy4 = 0;
while (vy4 <= 14) {
if ((ayn[vy3] != undefined) && (ayn[vy4] != undefined)) {
if ((((ayn[vy4] - ayn[vy3]) / (ax[vy4] - ax[vy3])) == _root.m) || (((ayn[vy3] - ayn[vy4]) / (ax[vy3] - ax[vy4])) == _root.m)) {
pt_c++;
pt_x1[pt_c] = ax[vy3];
pt_y1[pt_c] = ayn[vy3];
pt_x2[pt_c] = ax[vy4];
pt_y2[pt_c] = ayn[vy4];
}
}
vy4++;
}
vy3++;
}
_root.createEmptyMovieClip("myl2", 6000);
_root.myl2._x = _root.myl._x;
_root.myl2._y = _root.myl._y;
ht_x = (pt_x1[1] * 35) - 10;
ht_y = (pt_y1[1] * 35) + 10;
if (hint_flag == 1) {
_root.myl1.hint_2.removeMovieClip();
_root.myl1.hint_3.removeMovieClip();
_root.myl.run_var = "";
_root.myl.rise_var = "";
_root.myline.clear();
pick = random(pt_c - 1) + 1;
_root.myline.attachMovie("marker", "marker1", 5000);
_root.myline.attachMovie("marker", "marker2", 5001);
_root.myline.marker1._xscale = 50;
_root.myline.marker1._yscale = 50;
_root.myline.marker2._xscale = 50;
_root.myline.marker2._yscale = 50;
_root.myline.marker1._x = pt_x1[1] * 35;
_root.myline.marker1._y = pt_y1[1] * 35;
_root.myline.marker2._x = pt_x2[1] * 35;
_root.myline.marker2._y = pt_y2[1] * 35;
if (pt_x1[1] < pt_x2[1]) {
_root.myl1.attachMovie("hint_1", "hint_1", 5003);
ht_x = ((pt_x1[1] * 35) + _root.myl.hint_1._width) + 10;
ht_y = (pt_y1[1] * 35) + 10;
_root.myl1.hint_1._x = ht_x;
_root.myl1.hint_1._y = ht_y + 20;
} else {
_root.myl1.attachMovie("hint_1", "hint_1", 5003);
_root.myl1.hint_1._x = ht_x;
_root.myl1.hint_1._y = ht_y;
}
}
if (hint_flag == 2) {
_root.myl1.hint_1.removeMovieClip();
_root.myl1.hint_3.removeMovieClip();
if (pt_x1[1] < pt_x2[1]) {
_root.myline.lineStyle(1, 65280, 100);
_root.myline.moveTo(pt_x1[1] * 35, pt_y1[1] * 35);
_root.myline.lineTo(pt_x2[1] * 35, pt_y1[1] * 35);
_root.myline.lineTo(pt_x2[1] * 35, pt_y2[1] * 35);
_root.myline.lineTo(pt_x1[1] * 35, pt_y1[1] * 35);
_root.myl1.attachMovie("hint_2", "hint_2", 5003);
ht_x = ((pt_x1[1] * 35) + _root.myl1.hint_2._width) + 10;
ht_y = (pt_y1[1] * 35) + 10;
_root.myl1.hint_2._x = ht_x;
_root.myl1.hint_2._y = ht_y + 20;
} else {
_root.myline.lineStyle(1, 65280, 100);
_root.myline.moveTo(pt_x2[1] * 35, pt_y2[1] * 35);
_root.myline.lineTo(pt_x1[1] * 35, pt_y2[1] * 35);
_root.myline.lineTo(pt_x1[1] * 35, pt_y1[1] * 35);
_root.myline.lineTo(pt_x2[1] * 35, pt_y2[1] * 35);
_root.myl1.attachMovie("hint_2", "hint_2", 5003);
_root.myl1.hint_2._x = ht_x;
_root.myl1.hint_2._y = ht_y;
}
}
if (hint_flag == 3) {
run_val = pt_x2[1] - pt_x1[1];
rise_val = pt_y2[1] - pt_y1[1];
if (_root.m > 0) {
run_val = Math.abs(run_val);
rise_val = Math.abs(rise_val);
} else if (_root.m < 0) {
run_val = Math.abs(run_val);
rise_val = -Math.abs(rise_val);
}
_root.myl.run_var = "run = " + run_val;
_root.myl.rise_var = "rise = " + rise_val;
if (pt_x1[1] < pt_x2[1]) {
_root.myl.run._x = pt_x1[1] * 35;
_root.myl.run._y = (pt_y1[1] * 35) + 20;
_root.myl.rise._x = (pt_x2[1] * 35) + 5;
_root.myl.rise._y = (pt_y2[1] * 35) + 20;
_root.myl1.attachMovie("hint_3", "hint_3", 5003);
ht_x = ((pt_x1[1] * 35) + _root.myl.hint_3._width) + 10;
ht_y = (pt_y1[1] * 35) + 10;
_root.myl1.hint_3._x = ht_x;
_root.myl1.hint_3._y = ht_y + 20;
} else {
_root.myl.run._x = pt_x2[1] * 35;
_root.myl.run._y = pt_y2[1] * 35;
_root.myl.rise._x = (pt_x1[1] * 35) + 5;
_root.myl.rise._y = pt_y1[1] * 35;
_root.myl1.attachMovie("hint_3", "hint_3", 5003);
_root.myl1.hint_3._x = ht_x;
_root.myl1.hint_3._y = ht_y;
}
_root.myl1.hint_1.removeMovieClip();
_root.myl1.hint_2.removeMovieClip();
}
} else {
_root.myline.attachMovie("marker", "marker1", 5000);
_root.myline.marker1._xscale = (_root.myline.marker1._yscale = 50);
_root.myline.marker1._y = _root.c * 35;
_root.myl1.attachMovie("hint_r1", "hint_r1", 5003);
if (_root.c >= 6) {
_root.myl1.hint_r1._x = _root.myl1.hint_r1._width + 20;
_root.myl1.hint_r1._y = (_root.c * 35) - _root.myl1.hint_r1._height;
} else {
_root.myl1.hint_r1._x = _root.myl1.hint_r1._width + 20;
_root.myl1.hint_r1._y = (_root.c * 35) + 20;
}
}
}
Symbol 599 Button
on (release, keyPress "<Enter>") {
function mc_check() {
var _local1 = _root;
var _local2 = _global;
if ((u_m == 0) || (_local1.eq_box.c_a == 0)) {
if (u_m == 0) {
fin = 0;
proceed = "true";
proceedm = 1;
_local2.e_c = true;
} else {
proceedm = 0;
}
if (_local1.eq_box.c_a == 0) {
cv = 0;
proceed = "true";
proceedc = 1;
} else {
proceedc = 0;
}
}
if (proceedm == 0) {
if (!Number(u_m)) {
mv = u_m;
mval = mv.split("/");
fin = mval[0] / mval[1];
_local2.nr = mval[0];
_local2.dr = mval[1];
_local2.e_c = true;
if ((!Number(mval[0])) || (!Number(mval[1]))) {
_local1.intercept.removeMovieClip();
_local1.attachMovie("validm", "slope", 2, {_x:400, _y:300});
proceed = "false";
eqq = 1;
}
} else if (((u_m < 0.1) && (u_m > -0.1)) && (u_m != 0)) {
_local1.attachMovie("value_m_lo", "value_m_lo", 2, {_x:400, _y:300});
proceed = "false";
} else if (u_m > 30) {
_local1.attachMovie("value_m_hi", "value_m_hi", 2, {_x:400, _y:300});
proceed = "false";
} else {
_local2.e_c = false;
fin = u_m;
}
}
if (proceedc == 0) {
if (!Number(_local1.eq_box.c_a)) {
cvt = _local1.eq_box.c_a;
cval = cvt.split("/");
cv = cval[0] / cval[1];
if ((!Number(cval[0])) || (!Number(cval[1]))) {
_local1.slope.removeMovieClip();
_local1.attachMovie("validc", "intercept", 2, {_x:400, _y:300});
proceed = "false";
eqt = 1;
}
} else {
cv = _local1.eq_box.c_a;
}
if ((_local1.eq_box.c_a > 7) || (_local1.eq_box.c_a < -7)) {
_local1.attachMovie("climit", "limitc", 4, {_x:400, _y:300});
proceed = "false";
_local1.limitgraf();
}
if (eqq == eqt) {
_local1.attachMovie("validmc", "valid_mc", 2, {_x:400, _y:300});
proceed = "false";
eqq = 0;
}
}
vm = _local1.m;
vc = _local1.c;
if (proceed == "true") {
if ((Number(fin) == Number(vm)) && (Number(cv) == Number(vc))) {
_local1.attachMovie("correct", "correct_1", 2, {_x:400, _y:300});
_local1.b = _local1.b_e + 1;
_local1.c_pass = true;
_local1.ncorrect++;
_local1.graf();
} else if ((fin == vm) && (Number(cv) == Number(vc))) {
_local1.attachMovie("correct", "correct_1", 2, {_x:400, _y:300});
_local1.c_pass = true;
_local1.b = _local1.b_e + 1;
_local1.ncorrect++;
_local1.graf();
} else {
vmt = String(_local1.m);
ava = vmt.split(".");
value_d = ava[1];
la = value_d.length;
s_m2 = _local1.eq_box.m_a;
s_c2 = _local1.eq_box.c_a;
s2 = String(vm);
sc2 = String(vc);
s_m1 = Math.abs(s_m2 - vm);
s_c1 = vc;
diff_m = fin - vm;
diff_c = cv - vc;
if (((s_m1 <= 0.01) && (s_c2 == s_c1)) && (la > 10)) {
_local1.attachMovie("fractions", "fractions", 2, {_x:400, _y:300});
} else if (((diff_m < 0.3) && (diff_m > -0.3)) && ((diff_c <= 0.5) && (diff_c >= -0.5))) {
_local1.attachMovie("close", "close_1", 2, {_x:400, _y:300});
_local1.w_pass = true;
_local1.nwrong++;
_local1.in_graf();
} else {
_local1.attachMovie("wrong", "wrong_1", 2, {_x:400, _y:300});
_local1.w_pass = true;
_local1.nwrong++;
_local1.in_graf();
}
}
}
}
_root.nguess++;
if (_root.r_display == 2) {
cv_o = 0;
} else if (!Number(_root.eq_box.c_a)) {
cv_o = _root.eq_box.c_a;
cv_o = cv_o.split("/");
cv_o = cv_o[0] / cv_o[1];
} else {
cv_o = _root.eq_box.c_a;
}
hinter._visible = false;
u_m = _root.eq_box.m_a;
u_b = _root.eq_box.c_a;
_global.u_m = u_m;
_global.u_b = u_b;
_parent.fire_flag = 1;
_root.myl1.hint_1.removeMovieClip();
_root.myl1.hint_2.removeMovieClip();
_root.myl1.hint_3.removeMovieClip();
_root.myl1.hint_r1.removeMovieClip();
_root.panel.removeMovieClip();
_root.enterval.removeMovieClip();
_root.slope.removeMovieClip();
_root.intercept.removeMovieClip();
_root.limitc.removeMovieClip();
_root.valid_mc.removeMovieClip();
_root.correct_1.removeMovieClip();
_root.wrong_1.removeMovieClip();
_root.newpanel.removeMovieClip();
_root.fractions.removeMovieClip();
var eqq = 0;
var eqt = undefined;
_global.proceed = "false";
proceedm = 0;
proceedc = 0;
_root.lmc2.clear();
_root.lmc.clear();
_root.flagstop = 0;
_root.myline.empn.removeMovieClip();
if (((u_m == "") || (u_m == undefined)) || ((u_m == "-") && ((_root.eq_box.c_a != undefined) || (_root.eq_box.c_a != "")))) {
if ((u_m == "") || (u_m == undefined)) {
fin = 1;
u_m = 1;
} else if (u_m == "-") {
fin = -1;
u_m = -1;
}
proceedm = null;
_global.e_c = false;
if (_root.eq_box.c_a == 0) {
cv = 0;
proceedc = 1;
} else {
proceedc = 0;
}
proceed = "true";
mc_check();
} else if ((_root.eq_box.c_a == "") || (_root.eq_box.c_a == undefined)) {
_root.attachMovie("entervalue", "enterval", 2, {_x:400, _y:300});
} else {
proceed = "true";
mc_check();
}
if (isNaN(c_a)) {
c_a = "";
}
if (isNaN(m_a)) {
m_a = "";
}
}
Symbol 609 Button
on (release, keyPress "<Enter>") {
function mc_check() {
var _local1 = _root;
var _local2 = _global;
if ((m_a == 0) || (_local1.eq_box.c_a == 0)) {
if (m_a == 0) {
fin = 0;
proceed = "true";
proceedm = 1;
_local2.e_c = true;
} else {
proceedm = 0;
}
if (_local1.eq_box.c_a == 0) {
cv = 0;
proceed = "true";
proceedc = 1;
} else {
proceedc = 0;
}
}
if (proceedm == 0) {
if (!Number(m_a)) {
mv = m_a;
mval = mv.split("/");
fin = mval[0] / mval[1];
_local2.nr = mval[0];
_local2.dr = mval[1];
_local2.e_c = true;
if ((!Number(mval[0])) || (!Number(mval[1]))) {
_local1.intercept.removeMovieClip();
_local1.attachMovie("validm", "slope", 2, {_x:400, _y:300});
proceed = "false";
eqq = 1;
} else if (((fin < 0.1) && (fin > -0.1)) && (fin != 0)) {
_local1.attachMovie("value_m_lo", "value_m_lo", 2, {_x:400, _y:300});
proceed = "false";
} else if (fin > 30) {
_local1.attachMovie("value_m_hi", "value_m_hi", 2, {_x:400, _y:300});
proceed = "false";
}
} else {
_local2.e_c = false;
fin = _local1.eq_box.m_a;
}
}
if (proceedc == 0) {
if (!Number(_local1.eq_box.c_a)) {
cvt = _local1.eq_box.c_a;
cval = cvt.split("/");
cv = cval[0] / cval[1];
if ((!Number(cval[0])) || (!Number(cval[1]))) {
_local1.slope.removeMovieClip();
_local1.attachMovie("validc", "intercept", 2, {_x:400, _y:300});
proceed = "false";
eqt = 1;
}
} else {
cv = _local1.eq_box.c_a;
}
if ((_local1.eq_box.c_a > 7) || (_local1.eq_box.c_a < -7)) {
_local1.attachMovie("climit", "limitc", 4, {_x:400, _y:300});
proceed = "false";
_local1.limitgraf();
}
if (eqq == eqt) {
_local1.attachMovie("validmc", "valid_mc", 2, {_x:400, _y:300});
proceed = "false";
eqq = 0;
}
}
vm = _local1.m;
vc = _local1.c;
if (proceed == "true") {
if ((Number(fin) == Number(vm)) && (Number(cv) == Number(vc))) {
_local1.attachMovie("correct", "correct_1", 2, {_x:400, _y:300});
_local1.c_pass = true;
_local1.b = _local1.b_e + 1;
_local1.ncorrect++;
_local1.graf();
} else if ((fin == vm) && (Number(cv) == Number(vc))) {
_local1.attachMovie("correct", "correct_1", 2, {_x:400, _y:300});
_local1.c_pass = true;
_local1.b = _local1.b_e + 1;
_local1.ncorrect++;
_local1.graf();
} else {
vmt = String(_local1.m);
ava = vmt.split(".");
value_d = ava[1];
la = value_d.length;
s_m2 = m_a;
s_c2 = _local1.eq_box.c_a;
s2 = String(vm);
sc2 = String(vc);
s_m1 = Math.abs(s_m2 - vm);
s_c1 = vc;
diff_m = fin - vm;
diff_c = cv - vc;
if (((diff_m < 0.3) && (diff_m > -0.3)) && ((diff_c <= 0.5) && (diff_c >= -0.5))) {
_local1.attachMovie("close", "close_1", 2, {_x:400, _y:300});
_local1.w_pass = true;
_local1.nwrong++;
_local1.in_graf();
} else {
_local1.attachMovie("wrong", "wrong_1", 2, {_x:400, _y:300});
_local1.w_pass = true;
_local1.nwrong++;
_local1.in_graf();
}
}
}
}
_root.nguess++;
if ((n_m < 0) && (d_m < 0)) {
frac_sgn = "";
n_m = Math.abs(n_m);
d_m = Math.abs(d_m);
} else if (((n_m > 0) && (d_m < 0)) && (frac_sgn == "-")) {
frac_sgn = "";
d_m = Math.abs(d_m);
} else if (((n_m >= 0) && (d_m < 0)) && (frac_sgn == "")) {
frac_sgn = "-";
d_m = Math.abs(d_m);
}
hinter._visible = false;
_root.myl1.hint_1.removeMovieClip();
_root.myl1.hint_2.removeMovieClip();
_root.myl1.hint_3.removeMovieClip();
_root.myl1.hint_r1.removeMovieClip();
if (_root.r_display == 2) {
cv_o = 0;
} else if (!Number(_root.eq_box.c_a)) {
cv_o = _root.eq_box.c_a;
cv_o = cv_o.split("/");
cv_o = cv_o[0] / cv_o[1];
} else {
cv_o = _root.eq_box.c_a;
}
if ((n_m == 0) && (d_m == 0)) {
n_m = 0;
m_a = Number.NaN;
} else if (n_m == 0) {
n_m = 0;
m_a = 0;
} else if (d_m == 0) {
m_a = Number.NaN;
} else {
if (!Number(n_m)) {
n_m = n_m.split("/");
n_m = n_m[0] / n_m[1];
}
if (!Number(d_m)) {
d_m = d_m.split("/");
d_m = d_m[0] / d_m[1];
}
frac_s = frac_sgn;
m_a = ((frac_s + n_m) + "/") + d_m;
}
u_m = m_a;
u_b = _root.eq_box.c_a;
_global.u_m = u_m;
_global.u_b = u_b;
_parent.fire_flag = 1;
_root.panel.removeMovieClip();
_root.enterval.removeMovieClip();
_root.slope.removeMovieClip();
_root.intercept.removeMovieClip();
_root.limitc.removeMovieClip();
_root.valid_mc.removeMovieClip();
_root.correct_1.removeMovieClip();
_root.wrong_1.removeMovieClip();
_root.newpanel.removeMovieClip();
_root.fractions.removeMovieClip();
var eqq = 0;
var eqt = undefined;
_global.proceed = "false";
proceedm = 0;
proceedc = 0;
_root.lmc2.clear();
_root.lmc.clear();
_root.flagstop = 0;
_root.myline.empn.removeMovieClip();
proceed = "true";
mc_check();
if (isNaN(d_m)) {
d_m = "";
}
if (isNaN(n_m)) {
n_m = "";
}
updateAfterEvent();
}
Symbol 613 Button
on (release, keyPress "<Enter>") {
function mc_check() {
var _local1 = _root;
if ((_local1.eq_box.m_a == 0) || (_local1.eq_box.c_a == 0)) {
if (_local1.eq_box.m_a == 0) {
fin = 0;
proceed = "true";
proceedm = 1;
_global.e_c = true;
}
if (_local1.eq_box.c_a == 0) {
cv = 0;
proceed = "true";
proceedc = 1;
} else {
proceedc = 0;
}
}
if (proceedc == 0) {
if (!Number(_local1.eq_box.c_a)) {
cvt = _local1.eq_box.c_a;
cval = cvt.split("/");
cv = cval[0] / cval[1];
if ((!Number(cval[0])) || (!Number(cval[1]))) {
_local1.slope.removeMovieClip();
_local1.attachMovie("validc", "intercept", 2, {_x:400, _y:300});
proceed = "false";
eqt = 1;
}
} else {
cv = _local1.eq_box.c_a;
}
if ((_local1.eq_box.c_a > 7) || (_local1.eq_box.c_a < -7)) {
_local1.attachMovie("climit", "limitc", 4, {_x:400, _y:300});
proceed = "false";
_local1.limitgraf();
}
}
vc = _local1.c;
if (proceed == "true") {
if (Number(cv) == Number(vc)) {
_local1.attachMovie("correct", "correct_1", 2, {_x:400, _y:300});
_local1.b = _local1.b_e + 1;
_local1.c_pass = true;
_local1.ncorrect++;
_local1.graf();
} else {
s_c2 = _local1.eq_box.c_a;
sc2 = String(vc);
s_c1 = vc;
diff_c = cv - vc;
if ((diff_c <= 0.5) && (diff_c >= -0.5)) {
_local1.attachMovie("close", "close_1", 2, {_x:400, _y:300});
_local1.w_pass = true;
_local1.nwrong++;
_local1.in_graf();
} else {
_local1.attachMovie("wrong", "wrong_1", 2, {_x:400, _y:300});
_local1.w_pass = true;
_local1.nwrong++;
_local1.in_graf();
}
}
}
}
_root.nguess++;
if (!Number(_root.eq_box.c_a)) {
cv_o = _root.eq_box.c_a;
cv_o = cv_o.split("/");
cv_o = cv_o[0] / cv_o[1];
} else {
cv_o = _root.eq_box.c_a;
}
hinter._visible = false;
_global.u_m = 0;
_global.u_b = _root.eq_box.c_a;
_parent.fire_flag = 1;
_root.myl1.hint_1.removeMovieClip();
_root.myl1.hint_2.removeMovieClip();
_root.myl1.hint_3.removeMovieClip();
_root.myl1.hint_r1.removeMovieClip();
_root.panel.removeMovieClip();
_root.enterval.removeMovieClip();
_root.slope.removeMovieClip();
_root.intercept.removeMovieClip();
_root.limitc.removeMovieClip();
_root.valid_mc.removeMovieClip();
_root.correct_1.removeMovieClip();
_root.wrong_1.removeMovieClip();
_root.newpanel.removeMovieClip();
_root.fractions.removeMovieClip();
var eqq = 0;
var eqt = undefined;
_global.proceed = "false";
proceedm = 0;
proceedc = 0;
_root.lmc2.clear();
_root.lmc.clear();
_root.flagstop = 0;
_root.myline.empn.removeMovieClip();
_root.eq_box.m_a = 0;
mc_check();
if (isNaN(c_a)) {
c_a = "";
}
}
Symbol 614 MovieClip Frame 1
_root.onEnterFrame = function () {
foc = Selection.getFocus();
};
if (_root.r_display == 2) {
_root.eq_box.inter_._visible = false;
_root.eq_box.ctxt_._visible = false;
}
if (Selection.getFocus() == "_level0.eq_box.ctxt") {
} else {
Selection.setFocus("mtxt");
Selection.setSelection(mtxt.length, mtxt.length + 1);
}
Key.removeListener(myListener);
Key.removeListener(myListener3);
Key.removeListener(myListener4);
if (m_a == "NaN") {
m_a = "";
}
_global.frac_sgn = frac_sgn;
myListener2 = new Object();
myListener2.onKeyDown = function () {
if (Key.getCode() == 39) {
if (Selection.getCaretIndex() == mtxt.length) {
Selection.setFocus("ctxt");
}
}
if (((Key.getCode() == 37) && (Selection.getFocus() == "_level0.eq_box.ctxt")) && (c_a == "")) {
Selection.setFocus("mtxt");
}
if (foc == "_level0.eq_box.mtxt") {
if (Key.getAscii() == 47) {
if (typeof(m_a) != "number") {
if (m_a == "-") {
nm_a = -1;
n_m = Math.abs(nm_a);
} else {
slope_value = m_a;
slv = slope_value.split("/");
nm_a = slv[0];
n_m = Math.abs(nm_a);
}
} else {
nm_a = n_m;
n_m = Math.abs(n_m);
}
if (m_a != "") {
_global.key_e = true;
}
if ((nm_a < 0) || (m_a < 0)) {
frac_sgn = "-";
} else if ((nm_a >= 0) || (m_a >= 0)) {
frac_sgn = "";
}
} else {
_global.key_e = false;
}
}
};
Key.addListener(myListener2);
focu = true;
focus1 = false;
stop();
Symbol 614 MovieClip Frame 2
_root.onEnterFrame = function () {
foc = Selection.getFocus();
};
Key.removeListener(myListener2);
Key.removeListener(myListener4);
if (m_a == "NaN") {
m_a = "";
}
if (_root.r_display == 2) {
_root.eq_box.inter_._visible = false;
_root.eq_box.ctxt_._visible = false;
}
myListener3 = new Object();
myListener3.onKeyDown = function () {
if (((Key.getCode() == 37) && (Selection.getFocus() == "_level0.eq_box.ctxt")) && (Selection.getCaretIndex() == 0)) {
Selection.setFocus("mtxt");
}
if (foc == "_level0.eq_box.mtxt") {
if (Key.getAscii() == 47) {
if (typeof(m_a) != "number") {
slope_value = m_a;
slv = slope_value.split("/");
nm_a = slv[0];
n_m = Math.abs(nm_a);
} else {
nm_a = n_m;
n_m = Math.abs(n_m);
}
if (m_a != "") {
_global.key_e = true;
}
if (nm_a < 0) {
frac_sgn = "-";
} else if (nm_a >= 0) {
frac_sgn = "";
}
d_m = "";
} else {
_global.key_e = false;
}
}
};
Key.addListener(myListener3);
focu = true;
if (_root.r_display == 2) {
ctxt._visible = false;
}
if (focus1 == true) {
Selection.setFocus("mtxt");
}
stop();
Symbol 614 MovieClip Frame 3
_root.onEnterFrame = function () {
foc = Selection.getFocus();
};
if (isNaN(d_m)) {
d_m = "";
}
if (isNaN(n_m)) {
n_m = "";
}
Key.removeListener(myListener2);
Key.removeListener(myListener3);
Key.removeListener(myListener4);
myListener = new Object();
myListener.onKeyDown = function () {
var _local1 = _global;
if (Key.getCode() == 40) {
Selection.setFocus("d_mtxt");
}
if (Key.getCode() == 38) {
Selection.setFocus("n_mtxt");
}
if ((foc == "_level0.eq_box.ctxt") && ((c_a == "") || (Selection.getCaretIndex() == 0))) {
if (Key.getCode() == 37) {
Selection.setFocus("n_mtxt");
Selection.setSelection(mtxt.length, mtxt.length);
}
}
if (foc == "_level0.eq_box.d_mtxt") {
if (_root.r_display != 2) {
if ((Key.getCode() == 39) && (Selection.getCaretIndex() == d_mtxt.length)) {
Selection.setFocus("ctxt");
}
}
if ((Key.getCode() == 8) && ((d_m == "") || (d_m == undefined))) {
m_a = Number(frac_sgn + n_m);
if ((key_e == true) && ((typeof(d_m) == "undefined") || (d_m == ""))) {
kk = 1;
}
if ((d_m == "") && (n_m == "")) {
_local1.key_e = false;
}
if (kk == 1) {
kk = 0;
_local1.key_e = false;
}
} else {
m_a = Number(frac_sgn + n_m);
_local1.key_e = true;
}
}
};
Key.addListener(myListener);
if ((focu == true) && (n_m != "")) {
Selection.setFocus("d_mtxt");
Selection.setSelection(d_mtxt.length, d_mtxt.length);
d_m = "";
} else if (n_m == "") {
Selection.setFocus("n_mtxt");
Selection.setSelection(n_mtxt.length, n_mtxt.length);
} else if ((d_m == "") && (n_m != "")) {
Selection.setFocus("d_mtxt");
Selection.setSelection(d_mtxt.length, d_mtxt.length);
}
if (_root.r_display == 2) {
_root.eq_box.inter_._visible = false;
_root.eq_box.ctxt_._visible = false;
}
focus1 = true;
Symbol 614 MovieClip Frame 4
_root.onEnterFrame = function () {
foc = Selection.getFocus();
};
Key.removeListener(myListener2);
Key.removeListener(myListener3);
Key.removeListener(myListener);
myListener4 = new Object();
myListener4.onKeyDown = function () {
var _local1 = _global;
if (Key.getCode() == 40) {
Selection.setFocus("d_mtxt");
}
if (Key.getCode() == 38) {
Selection.setFocus("n_mtxt");
}
if ((foc == "_level0.eq_box.ctxt") && ((c_a == "") || (Selection.getCaretIndex() == 0))) {
if (Key.getCode() == 37) {
Selection.setFocus("n_mtxt");
Selection.setSelection(mtxt.length, mtxt.length);
}
}
if (foc == "_level0.eq_box.d_mtxt") {
if (_root.r_display != 2) {
if ((Key.getCode() == 39) && (Selection.getCaretIndex() == d_mtxt.length)) {
Selection.setFocus("ctxt");
}
}
if ((Key.getCode() == 8) && ((d_m == "") || (d_m == undefined))) {
m_a = Number(frac_sgn + n_m);
if ((key_e == true) && ((typeof(d_m) == "undefined") || (d_m == ""))) {
kk = 1;
}
if ((d_m == "") && (n_m == "")) {
_local1.key_e = false;
}
if (kk == 1) {
kk = 0;
_local1.key_e = false;
}
} else {
m_a = Number(frac_sgn + n_m);
_local1.key_e = true;
}
}
};
Key.addListener(myListener4);
if (focu == true) {
Selection.setFocus("d_mtxt");
Selection.setSelection(d_mtxt.length, d_mtxt.length);
}
if (_root.r_display == 2) {
_root.eq_box.inter_._visible = false;
_root.eq_box.ctxt_._visible = false;
}
focu = false;
focus1 = true;
Symbol 614 MovieClip Frame 5
stop();
this.onEnterFrame = function () {
foc = Selection.getFocus();
};
if (foc == "_level0.eq_box.ctxt") {
Selection.setFocus("ctxt");
Selection.setSelection(ctxt.length, ctxt.length + 1);
} else {
Selection.setFocus("ctxt");
Selection.setSelection(ctxt.length, ctxt.length + 1);
}
Symbol 614 MovieClip Frame 6
stop();
Symbol 625 MovieClip Frame 1
sflag = 0;
this.onEnterFrame = function () {
_global.sflag = sflag;
if (sflag == 0) {
mchold.onRelease = function () {
with (mchold) {
mc1.gotoAndStop(11);
mc2.gotoAndStop(11);
mc3.gotoAndStop(11);
mc4.gotoAndStop(11);
mcl.gotoAndStop(11);
mcl2.gotoAndStop(11);
}
_root.mysound_5.stop();
mute = "o\rn";
sflag = 1;
};
}
if (sflag == 1) {
mchold.onRelease = function () {
with (mchold) {
mc1.play();
mc2.play();
mc3.play();
mc4.play();
mcl.play();
mcl2.play();
}
_root.mysound_5.start(0, 999999);
mute = "";
sflag = 0;
};
}
};
Symbol 627 Button
on (release) {
blink.gotoAndStop(1);
panel.removeMovieClip();
timeout.removeMovieClip();
enterval.removeMovieClip();
slope.removeMovieClip();
intercept.removeMovieClip();
limitc.removeMovieClip();
intercept.removeMovieClip();
slope.removeMovieClip();
valid_mc.removeMovieClip();
correct_1.removeMovieClip();
wrong_1.removeMovieClip();
close_1.removeMovieClip();
newpanel.removeMovieClip();
fractions.removeMovieClip();
rounds_ani.removeMovieClip();
value_m_hi.removeMovieClip();
value_m_lo.removeMovieClip();
_root.myl1.hint_1.removeMovieClip();
_root.myl1.hint_2.removeMovieClip();
_root.myl1.hint_3.removeMovieClip();
_root.myline.clear();
_root.myl.run_var = "";
_root.myl.rise_var = "";
_root.myline.marker1.removeMovieClip();
_root.myline.marker2.removeMovieClip();
hint_flag = 0;
_global.key_e = false;
stopAllSounds();
gotoAndStop (150);
}
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 20
gotoAndPlay (2);