Frame 2
Polar.OnQ = polarQ;
Polar.doState();
if (plotAtStartQ == true) {
plotAtStartQ = false;
calcScale();
cleanVars();
} else {
drawGraph();
stop();
}
Frame 3
DummySprite.duplicateMovieClip("Dummy1", 22000);
Frame 4
clearGraph();
drawGraph();
Frame 5
if (FuncText.text.length > 0) {
Parser.newParse(FuncText.text);
drawPlot(true, Anim, 255);
} else {
Anim.clear();
}
Frame 6
stop();
if (Func2Text.text.length > 0) {
Parser.newParse(Func2Text.text);
drawPlot(true, Anim2, 16711680);
} else {
Anim2.clear();
}
gotoandstop(3);
Symbol 7 MovieClip Frame 1
if (!hasOwnProperty("_load0242F408")) {
_load0242F408 = true;
tellTarget ("..") {
function makeURL() {
tellTarget (getProperty("..", _target)) {
s = "http://www.mathsisfun.com/graph/function-grapher.php?";
name = "";
if (FuncText.text.length > 0) {
s = s + (("func1=" + FuncText.text) + "&");
name = name + FuncText.text;
}
if (Func2Text.text.length > 0) {
s = s + (("func2=" + Func2Text.text) + "&");
if (name.length > 0) {
name = name + " vs ";
}
name = name + Func2Text.text;
}
s = s + (("xmin=" + xstt) + "&");
s = s + (("xmax=" + xend) + "&");
s = s + (("ymin=" + ystt) + "&");
s = s + (("ymax=" + yend) + "&");
if (Variable.text != "x") {
s = s + (("v=" + Variable.text) + "&");
}
if (Polar.OnQ == true) {
s = s + "gtype=polar&";
s = s + (("rev0=" + (RevFrom.text + 0)) + "&");
s = s + (("rev1=" + (RevTo.text + 0)) + "&");
}
s = s.substr(0, (s.length-1));
return(s);
}
}
}
} else {
// unexpected jump
}
function plotToObj(s, toObj, clr) {
tellTarget (getProperty("..", _target)) {
if (s.length > 0) {
cleanVars();
Parser.newParse(s);
drawPlot(true, toObj, clr);
} else {
toObj.clear();
}
}
}
// unexpected jump
// unexpected jump
function doUpdates() {
tellTarget (getProperty("..", _target)) {
calcScale();
cleanVars();
gotoandplay(4);
}
}
// unexpected jump
// unexpected jump
function calcScale() {
tellTarget (getProperty("..", _target)) {
if (xstt > xend) {
temp = xstt;
xstt = xend;
xend = temp;
}
if (ystt > yend) {
temp = ystt;
ystt = yend;
yend = temp;
}
xspan = xend - xstt;
if (0 >= xspan) {
xspan = 0.1;
}
xscale = xspan / PixelWidth;
yspan = yend - ystt;
if (0 >= yspan) {
yspan = 0.1;
}
yscale = yspan / PixelHeight;
if (UniScaleBtn.OnQ) {
var newScale = Math.max(yscale, xscale);
xscale = newScale;
xspan = xscale * PixelWidth;
var xmid = ((xstt + xend) / 2);
xstt = xmid - (xspan / 2);
xend = xmid + (xspan / 2);
yscale = newScale;
yspan = yscale * PixelHeight;
var ymid = ((ystt + yend) / 2);
ystt = ymid - (yspan / 2);
yend = ymid + (yspan / 2);
}
}
}
// unexpected jump
// unexpected jump
function cleanVars() {
tellTarget (getProperty("..", _target)) {
FuncText.Text = str_replace(" ", "", FuncText.Text);
Func2Text.Text = str_replace(" ", "", Func2Text.Text);
}
}
// unexpected jump
// unexpected jump
function drawGraph() {
tellTarget (getProperty("..", _target)) {
obj = _root.Graph;
GraphDepthStt = depth;
NumAtAxisQ = true;
xaxispos = yend / yscale;
yaxispos = (-xstt) / xscale;
TickFreq = 2;
TickLevels = 2;
LogSpan = Math.log(xspan / TickFreq) / Math.LN10;
xMajorTick = Math.pow(10, Math.floor(LogSpan));
if ((LogSpan - Math.floor(LogSpan)) < 0.3) {
xMajorTick = xMajorTick / 2;
}
xMinorTick = xMajorTick / 5;
if (Math.abs(((xscale / yscale)-1)) < 0.1) {
yMajorTick = xMajorTick;
} else {
LogSpan = Math.log(yspan / TickFreq) / Math.LN10;
yMajorTick = Math.pow(10, Math.floor(LogSpan));
if ((LogSpan - Math.floor(LogSpan)) < 0.3) {
yMajorTick = yMajorTick / 2;
}
}
yMinorTick = yMajorTick / 5;
TickLevel = 0;
for ( ; TickLevel < TickLevels ; TickLevel++) {
if (TickLevel == 0) {
obj.lineStyle(0, 255, 20);
xTick = xMajorTick;
yTick = yMajorTick;
} else {
obj.lineStyle(0, 255, 10);
xTick = xMinorTick;
yTick = yMinorTick;
}
var x = (Math.ceil(xstt / xTick) * xTick);
for ( ; xend >= x ; x = x + xTick) {
i = (x - xstt) / xscale;
obj.moveTo(i, 0);
obj.lineTo(i, PixelHeight);
if (TickLevel == 0) {
BaseXNum.duplicateMovieClip("N_" + depth, depth);
lblobj = eval ("N_" + depth);
depth++;
lblobj._x = Anim._x + i;
if (!(NumAtAxisQ ? (((xaxispos > 0) ? (xaxispos >= PixelHeight) : true)) : true)) {
lblobj._y = Anim._y + xaxispos;
} else {
lblobj._y = (Anim._y + PixelHeight) + 5;
}
lblobj.TheNum.text = EnuffDigits(x, xstt, xend);
}
}
var y = (Math.ceil(ystt / yTick) * yTick);
for ( ; yend >= y ; y = y + yTick) {
j = (yend - y) / yscale;
obj.moveTo(0, j);
obj.lineTo(PixelWidth, j);
if (TickLevel == 0) {
BaseYNum.duplicateMovieClip("N_" + depth, depth);
lblobj = eval ("N_" + depth);
depth++;
if (!(NumAtAxisQ ? (((yaxispos > 0) ? (yaxispos >= PixelWidth) : true)) : true)) {
lblobj._x = Anim._x - (xstt / xscale);
} else {
lblobj._x = Anim._x - 5;
}
lblobj._y = Anim._y + j;
lblobj.TheNum.text = EnuffDigits(y, ystt, yend);
}
}
}
obj.lineStyle(2, 4474111, 50);
if (!((yaxispos > 0) ? (yaxispos >= PixelWidth) : true)) {
obj.moveTo(yaxispos, 0);
obj.lineTo(yaxispos, PixelHeight);
YArrow._x = obj._x + yaxispos;
YArrow._y = obj._y;
} else {
YArrow._x = obj._x;
}
if (!((xaxispos > 0) ? (xaxispos >= PixelHeight) : true)) {
obj.moveTo(0, xaxispos);
obj.lineTo(PixelWidth, xaxispos);
XArrow._x = obj._x + PixelWidth;
XArrow._y = obj._y + xaxispos;
} else {
XArrow._y = obj._y + PixelHeight;
}
GraphDepthEnd = depth;
}
}
// unexpected jump
// unexpected jump
function clearGraph() {
tellTarget (getProperty("..", _target)) {
obj = _root.Graph;
obj.clear();
var i = GraphDepthStt;
for ( ; GraphDepthEnd >= i ; i++) {
obj = eval ("N_" + i);
obj.removeMovieClip();
}
}
}
// unexpected jump
// unexpected jump
function drawPlot(clearQ, obj, Col) {
tellTarget (getProperty("..", _target)) {
if (Polar.OnQ) {
plotIt(clearQ, obj, Col, "polar");
} else {
plotIt(clearQ, obj, Col, "xy");
}
}
}
// unexpected jump
// unexpected jump
function plotIt(clearQ, obj, clr, gtype) {
tellTarget (getProperty("..", _target)) {
var sttTime = getTimer();
calcScale();
if (clearQ) {
obj.clear();
}
obj.lineStyle(2, clr, 100);
var BreakQ = true;
var prevptX = -1;
var YState = 9;
delete _global.__resolve;
var ptNumMin;
var ptNumMax;
_global.__resolve = _global.__debugResolve;
if (gtype != "xy") {
if (gtype != "polar") {
// unexpected jump
ptNumMin = 0;
ptNumMax = PixelWidth;
// unexpected jump
}
} else {
ptNumMin = 0;
ptNumMax = PixelWidth;
// unexpected jump
var revFrom = (RevFrom.text + 0);
var revTo = (RevTo.text + 0);
angle0 = revFrom * 6.2832;
angle1 = revTo * 6.2832;
points = Math.min(3000, Math.max((revTo - revFrom) * 250, 600));
stepsize = (angle1 - angle0) / points;
if (stepsize == 0) {
stepsize = 1;
}
ptNumMin = Math.floor(angle0 / stepsize);
ptNumMax = Math.ceil(angle1 / stepsize);
}
var ptNum = 0;
for ( ; ptNumMax >= ptNum ; ptNum++) {
delete _global.__resolve;
var xval;
var yval;
var ptX;
var ptY;
_global.__resolve = _global.__debugResolve;
if (gtype != "xy") {
if (gtype != "polar") {
// unexpected jump
ptX = ptNum;
xval = xstt + (ptX * xscale);
Parser.setVarVal(xval);
yval = Parser.walk(-1);
// unexpected jump
}
} else {
ptX = ptNum;
xval = xstt + (ptX * xscale);
Parser.setVarVal(xval);
yval = Parser.walk(-1);
// unexpected jump
var angle = (ptNum * stepsize);
Parser.setVarVal(angle);
var radius = Parser.walk(-1);
xval = radius * Math.cos(angle);
yval = radius * Math.sin(angle);
}
var prevBreakQ = BreakQ;
BreakQ = false;
var prevYState = YState;
YState = 0;
if (yval < ystt) {
YState = -1;
}
if (yval > yend) {
YState = 1;
}
if (yval == Number.NEGATIVE_INFINITY) {
YState = -1;
yval = ystt - (yscale * 10);
}
if (yval == Number.POSITIVE_INFINITY) {
YState = 1;
yval = yend + (yscale * 10);
}
if ((prevYState * YState) == 0) {
BreakQ = false;
} else {
BreakQ = true;
}
if (IsNaN(yval)) {
YState = 9;
BreakQ = true;
}
if (gtype == "polar") {
xval = Math.min(xend + (xscale * 10), Math.max(xval, xstt - (xscale * 10)));
ptX = (xval - xstt) / xscale;
}
yval = Math.min(yend + (yscale * 10), Math.max(yval, ystt - (yscale * 10)));
ptY = (yend - yval) / yscale;
if (BreakQ) {
if (prevBreakQ) {
} else if (YState < 9) {
obj.lineTo(ptX, ptY);
}
} else if (prevBreakQ) {
if (prevYState < 9) {
obj.moveTo(prevptX, prevptY);
obj.lineTo(ptX, ptY);
} else {
obj.moveTo(ptX, ptY);
}
} else {
obj.lineTo(ptX, ptY);
}
prevptX = ptX;
prevptY = ptY;
}
var endTime = getTimer();
}
}
// unexpected jump
// unexpected jump
function addMouseHandlers() {
tellTarget (getProperty("..", _target)) {
onMouseDown = function () {
if (!((!_root.MsgBox.IsOpen) ? (!_root.graph.hitTest(_root._xmouse, _root._ymouse, false)) : true)) {
drawing = true;
startX = _xmouse;
startY = _ymouse;
}
};
onMouseMove = function () {
if (drawing == true) {
if (_root.graph.hitTest(_root._xmouse, _root._ymouse, false)) {
endX = _xmouse;
endY = _ymouse;
_root.tracker.clear();
_root.drawRectangle(_root.tracker, startX, startY, endX, endY, 1, 16711935, false);
}
} else {
xval = _root.xstt + ((_root._xmouse - _root.Anim._x) * _root.xscale);
_root.coords.xval.text = _root.EnuffDigits(xval, _root.xstt, _root.xend);
yval = _root.yend - ((_root._ymouse - _root.Anim._y) * _root.yscale);
_root.coords.yval.text = _root.EnuffDigits(yval, _root.ystt, _root.yend);
}
updateAfterEvent();
};
onMouseUp = function () {
if (_root.graph.hitTest(_root._xmouse, _root._ymouse, false)) {
if (drawing) {
drawing = false;
_root.tracker.clear();
endX = _xmouse;
endY = _ymouse;
if (!((Math.abs(endX - startX) > 10) ? (Math.abs(endY - startY) <= 10) : true)) {
x1 = _root.xstt + ((startX - _root.Anim._x) * _root.xscale);
y1 = _root.yend - ((startY - _root.Anim._y) * _root.yscale);
x2 = _root.xstt + ((endX - _root.Anim._x) * _root.xscale);
y2 = _root.yend - ((endY - _root.Anim._y) * _root.yscale);
} else {
xmid = _root.xstt + ((startX - _root.Anim._x) * _root.xscale);
xhalfspan = (_root.xend - _root.xstt) / 2;
x1 = xmid - xhalfspan;
x2 = xmid + xhalfspan;
ymid = _root.yend - ((startY - _root.Anim._y) * _root.yscale);
yhalfspan = (_root.yend - _root.ystt) / 2;
y1 = ymid - yhalfspan;
y2 = ymid + yhalfspan;
}
if (x1 > x2) {
temp = x1;
x1 = x2;
x2 = temp;
}
if (y1 > y2) {
temp = y1;
y1 = y2;
y2 = temp;
}
_root.xstt = x1;
_root.ystt = y1;
_root.xend = x2;
_root.yend = y2;
_root.doUpdates();
}
}
};
}
}
// unexpected jump
// unexpected jump
function drawRectangle(it, startX, startY, mouseX, mouseY, TheThick, TheCol, TheFill) {
tellTarget (getProperty("..", _target)) {
if (!(((mouseX - startX) == 0) ? ((mouseY - startY) != 0) : true)) {
return(undefined);
}
RPlineStyle(it, TheThick, TheCol, 100);
RPmoveTo(it, startX, startY);
RPlineTo(it, mouseX, startY);
RPlineTo(it, mouseX, mouseY);
RPlineTo(it, startX, mouseY);
RPlineTo(it, startX, startY);
}
}
// unexpected jump
// unexpected jump
function RPmoveTo(it, x, y) {
tellTarget (getProperty("..", _target)) {
it.moveTo(x, y);
}
}
// unexpected jump
// unexpected jump
function RPlineTo(it, x, y) {
tellTarget (getProperty("..", _target)) {
it.lineTo(x, y);
}
}
// unexpected jump
// unexpected jump
function RPlineStyle(it, thickness, rgb, alpha) {
tellTarget (getProperty("..", _target)) {
it.lineStyle(thickness, rgb, alpha);
}
}
// unexpected jump
// unexpected jump
function str_replace(search, replace, subject) {
tellTarget (getProperty("..", _target)) {
return(subject.split(search).join(replace));
}
}
// unexpected jump
// unexpected jump
function EnuffDigits(x, x0, x1) {
tellTarget (getProperty("..", _target)) {
dx = Math.abs(x1 - x0);
digits = 3 - Math.round(Math.log(dx) / Math.LN10);
if (digits < 10) {
factor = Math.pow(10, digits);
newx = Math.round(x * factor) / factor;
} else {
newx = x;
}
return(newx);
}
}
// unexpected jump
// unexpected jump
function setVar(varName, newVal) {
tellTarget (getProperty("..", _target)) {
Parser.setConstantVal(varName, newVal);
updatePlots();
}
}
// unexpected jump
// unexpected jump
function updatePlots() {
tellTarget (getProperty("..", _target)) {
plotToObj(FuncText.text, Anim, 255);
plotToObj(Func2Text.text, Anim2, 16711680);
}
}
// unexpected jump
// unexpected jump
PixelHeight = 400;
PixelWidth = 600;
extent = 12;
xstt = -extent;
XSttText.text = xstt;
xend = extent;
XEndText.text = xend;
ystt = Math.ceil(((-extent) * PixelHeight) / PixelWidth);
YSttText.text = ystt;
yend = Math.ceil((extent * PixelHeight) / PixelWidth);
YEndText.text = yend;
calcScale();
depth = 100;
LastRandom = 0;
xval = 1;
addMouseHandlers();
plotAtStartQ = false;
delete _global.__resolve;
var func1;
var func2;
var xmin;
var xmax;
var ymin;
var ymax;
var v;
var rev0;
var rev1;
var gtype;
_global.__resolve = _global.__debugResolve;
if (func1.length > 0) {
FuncText.text = func1;
plotAtStartQ = true;
}
if (func2.length > 0) {
Func2Text.text = func2;
plotAtStartQ = true;
}
if (xmin.length > 0) {
xstt = xmin + 0;
}
if (xmax.length > 0) {
xend = xmax + 0;
}
if (ymin.length > 0) {
ystt = ymin + 0;
}
if (ymax.length > 0) {
yend = ymax + 0;
}
if (v.length > 0) {
Variable.text = v;
}
if (rev0.length > 0) {
RevFrom.text = rev0;
}
if (rev1.length > 0) {
RevTo.text = rev1;
}
var polarQ = false;
if (gtype.length > 0) {
if (gtype == "polar") {
polarQ = true;
}
}
// unexpected jump
// unexpected jump
};
stop();
Symbol 22 Button
on (release) {
extent = 10;
xstt = -extent;
XSttText.text = xstt;
xend = extent;
XEndText.text = xend;
ystt = Math.ceil(((-extent) * PixelHeight) / PixelWidth);
YSttText.text = ystt;
yend = Math.ceil((extent * PixelHeight) / PixelWidth);
YEndText.text = yend;
calcScale();
doUpdates();
}
Symbol 24 Button
on (release) {
xmid = (xstt + xend) / 2;
xstt = xmid - ((xmid - xstt) * 10);
xend = xmid + ((xend - xmid) * 10);
ymid = (ystt + yend) / 2;
ystt = ymid - ((ymid - ystt) * 10);
yend = ymid + ((yend - ymid) * 10);
calcScale();
doUpdates();
}
Symbol 26 Button
on (release) {
xmid = (xstt + xend) / 2;
xstt = xmid - ((xmid - xstt) * 2);
xend = xmid + ((xend - xmid) * 2);
ymid = (ystt + yend) / 2;
ystt = ymid - ((ymid - ystt) * 2);
yend = ymid + ((yend - ymid) * 2);
calcScale();
doUpdates();
}
Symbol 28 Button
on (release) {
xmid = (xstt + xend) / 2;
xstt = xmid - ((xmid - xstt) / 2);
xend = xmid + ((xend - xmid) / 2);
ymid = (ystt + yend) / 2;
ystt = ymid - ((ymid - ystt) / 2);
yend = ymid + ((yend - ymid) / 2);
calcScale();
doUpdates();
}
Symbol 44 Button
on (release) {
getURL("http://www.mathsisfun.com/graph/function-grapher.html");
}
Symbol 46 MovieClip Frame 1
_text.onChanged = function () {
tellTarget ("..") {
newVal = _root.XEndText.text;
if (!isNaN(newVal)) {
_root.xend = newVal;
_root.doUpdates();
}
};
};
stop();
Symbol 47 MovieClip Frame 1
_text.onChanged = function () {
tellTarget ("..") {
newVal = _root.XSttText.text;
if (!isNaN(newVal)) {
_root.xstt = newVal;
_root.doUpdates();
}
};
};
stop();
Symbol 48 MovieClip Frame 1
_text.onChanged = function () {
tellTarget ("..") {
newVal = _root.YEndText.text;
if (!isNaN(newVal)) {
_root.yend = newVal;
_root.doUpdates();
}
};
};
stop();
Symbol 49 MovieClip Frame 1
_text.onChanged = function () {
tellTarget ("..") {
newVal = _root.YSttText.text;
if (!isNaN(newVal)) {
_root.ystt = newVal;
_root.doUpdates();
}
};
};
stop();
Symbol 51 Button
on (keyPress "<Enter>") {
_root.plotToObj(this.text, _root.Anim2, 16711680);
}
Symbol 55 Button
on (release) {
plotToObj(Func2Text.text, Anim2, 16711680);
}
Symbol 57 Button
on (keyPress "<Enter>") {
_root.plotToObj(this.text, _root.Anim, 255);
}
Symbol 60 Button
on (release) {
plotToObj(FuncText.text, Anim, 255);
}
Symbol 62 Button
on (release) {
MsgBox.clearMe();
MsgBox.showMe();
cleanVars();
Parser.newParse(Func2Text.text);
if (Parser.ErrMsg.length == 0) {
x = _root.Parser.walk(Parser.objIndex);
MsgBox.addMe(("Answer = " + x) + newline);
} else {
MsgBox.addMe(Parser.ErrMsg + newline);
}
MsgBox.addMe(newline);
x = _root.Parser.walkFmt(Parser.objIndex);
MsgBox.addMe(("Interpreted Formula: " + x) + newline);
MsgBox.addMe(("Current 'x': " + xval) + newline);
MsgBox.addMe("Formula Stack:\n");
MsgBox.addMe(_root.Parser.StackFmt());
}
Symbol 63 Button
on (release) {
MsgBox.clearMe();
MsgBox.showMe();
cleanVars();
Parser.newParse(FuncText.text);
if (Parser.ErrMsg.length == 0) {
x = _root.Parser.walk(_root.Parser.objIndex);
MsgBox.addMe(("Answer = " + x) + newline);
} else {
MsgBox.addMe(_root.Parser.ErrMsg + newline);
}
MsgBox.addMe(newline);
x = _root.Parser.walkFmt(_root.Parser.objIndex);
MsgBox.addMe(("Interpreted Formula: " + x) + newline);
MsgBox.addMe(("Current 'x': " + xval) + newline);
MsgBox.addMe("Formula Stack:\n");
MsgBox.addMe(_root.Parser.StackFmt());
}
Symbol 69 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
function setVal(newVal) {
tellTarget (getProperty("..", _target)) {
currVal = newVal;
Slider._x = width * ((newVal - SlideMin) / (SlideMax - SlideMin));
doUpdates(newVal);
}
}
}
} else {
// unexpected jump
}
function doUpdates() {
tellTarget (getProperty("..", _target)) {
Fill._x = SliderTrack._x;
Fill._xscale = (100 * (Slider._x - SliderTrack._x)) / SliderTrack._width;
}
}
// unexpected jump
// unexpected jump
function setValFromSlider() {
tellTarget (getProperty("..", _target)) {
currVal = SlideMin + (((SlideMax - SlideMin) * Slider._x) / width);
currVal = Math.round(currVal * 1000) / 1000;
SliderText.text = "a = " + currVal;
_root.setVar("a", currVal);
}
}
// unexpected jump
// unexpected jump
function setMin(x) {
tellTarget (getProperty("..", _target)) {
SlideMin = x;
setValFromSlider();
}
}
// unexpected jump
// unexpected jump
function setMax(x) {
tellTarget (getProperty("..", _target)) {
SlideMax = x;
setValFromSlider();
}
}
// unexpected jump
// unexpected jump
var SlideMin = 0;
var SlideMax = 1;
var currVal = 0.5;
var width = SliderTrack._width;
var isDragging = false;
Slider._x = 0;
setValFromSlider();
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 69 MovieClip Frame 3
tellTarget ("..") {
if (isDragging) {
setValFromSlider();
doUpdates();
}
};
gotoAndPlay (2);
Symbol 80 Button
on (press) {
_parent.isDragging = true;
this.startDrag(false, 0, this._y, _parent.width, this._y);
}
on (release, releaseOutside) {
_parent.isDragging = false;
stopDrag();
}
Symbol 84 MovieClip Frame 1
_text.onChanged = function () {
tellTarget ("..") {
var x = (this._parent.text + 0);
setMax(x);
};
};
stop();
Symbol 86 MovieClip Frame 1
_text.onChanged = function () {
tellTarget ("..") {
var x = (this._parent.text + 0);
setMin(x);
};
};
stop();
Symbol 95 Button
on (release) {
MsgBox.clearMe();
MsgBox.showMe();
cleanVars();
MsgBox.addMe("[url=");
s = makeURL();
MsgBox.addMe(s);
MsgBox.addMe("]");
if (_root.Polar.OnQ == true) {
MsgBox.addMe("Polar ");
}
MsgBox.addMe("Plot of ");
MsgBox.addMe(name);
MsgBox.addMe("[/url]");
}
Symbol 97 Button
on (release) {
MsgBox.clearMe();
MsgBox.showMe();
cleanVars();
s = makeURL();
MsgBox.addMe(s);
}
Symbol 109 Button
on (release) {
do {
var RandomNo = random(6);
} while (RandomNo == LastRandom);
LastRandom = RandomNo;
if (RandomNo != 0) {
if (RandomNo != 1) {
if (RandomNo != 2) {
if (RandomNo != 3) {
if (RandomNo != 4) {
if (RandomNo != 5) {
// unexpected jump
FuncText.text = "floor(x)";
// unexpected jump
FuncText.text = "sin(x^2)";
// unexpected jump
FuncText.text = "sqrt(x+5)";
// unexpected jump
FuncText.text = "(tanh(x/5)+1)*2";
// unexpected jump
FuncText.text = "abs(cos(x))*2";
// unexpected jump
}
}
}
}
}
} else {
FuncText.text = "floor(x)";
// unexpected jump
FuncText.text = "sin(x^2)";
// unexpected jump
FuncText.text = "sqrt(x+5)";
// unexpected jump
FuncText.text = "(tanh(x/5)+1)*2";
// unexpected jump
FuncText.text = "abs(cos(x))*2";
// unexpected jump
FuncText.text = "x^3";
}
doUpdates();
}
Symbol 113 MovieClip Frame 1
_text.onChanged = function () {
_root.Parser.setVar(this.text);
};
stop();
Symbol 116 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
function doState() {
tellTarget (getProperty("..", _target)) {
OnState._visible = OnQ;
OffState._visible = !OnQ;
if (OnQ) {
_root.Equals1Text.text = "r =";
_root.Equals2Text.text = "r =";
} else {
_root.Equals1Text.text = "y =";
_root.Equals2Text.text = "y =";
}
_root.RevLabel._visible = OnQ;
_root.RevFrom._visible = OnQ;
_root.RevArrow._visible = OnQ;
_root.RevTo._visible = OnQ;
}
}
}
} else {
// unexpected jump
}
OverState._visible = false;
OnQ = true;
this._parent.doState();
// unexpected jump
// unexpected jump
};
stop();
Symbol 123 Button
on (release) {
tellTarget ("..") {
OnQ = !OnQ;
doState();
_root.HintsQ = OnQ;
if (_root.MyRadioGroup.getRadioNum() > 2) {
_root.showHints(_root.HintsQ);
}
}
}
on (rollOver) {
_parent.OverState._visible = true;
}
on (rollOut) {
_parent.OverState._visible = false;
}
Symbol 142 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
function fmt() {
tellTarget (getProperty("..", _target)) {
var x = this.digits;
decpos = x.length - this.dec;
if (decpos < 0) {
x = ("0." + _root.StrRepeat("0", -decpos)) + x;
} else if (decpos == 0) {
x = "0." + x;
} else if (decpos > 0) {
x = (x.substr(0, decpos) + ".") + x.substr(decpos, this.dec);
}
if (x.charAt(x.length - 1) == ".") {
x = x.substring(0, x.length - 1);
}
if (this.sign == -1) {
x = "-" + x;
}
return(x);
}
}
}
} else {
// unexpected jump
}
function abs() {
tellTarget (getProperty("..", _target)) {
var x = this.digits;
var decpos = (x.length - this.dec);
if (decpos < 0) {
x = ("0." + StrRepeat("0", -decpos)) + x;
} else if (decpos == 0) {
x = "0." + x;
} else if (decpos > 0) {
x = (x.substr(0, decpos) + ".") + x.substr(decpos, this.dec);
}
return(x);
}
}
// unexpected jump
// unexpected jump
function Num(NumStr) {
tellTarget (getProperty("..", _target)) {
NumStr = NumStr + "";
this.String = NumStr;
this.digits = NumStr;
if (NumStr.charAt(0) == "-") {
this.sign = -1;
this.digits = this.digits.substring(1);
} else {
this.sign = 1;
}
this.dec = NumStr.length - (NumStr.indexOf(".") + 1);
if (this.dec == NumStr.length) {
this.dec = 0;
}
this.digits = _root.replace(this.digits, ".", "");
this.digits = _root.rpTrimLeft(this.digits, "0");
}
}
// unexpected jump
// unexpected jump
function Mult10(n) {
tellTarget (getProperty("..", _target)) {
this.dec = this.dec - n;
if (this.dec < 0) {
this.digits = this.digits + _root.StrRepeat("0", -this.dec);
this.dec = 0;
}
}
}
// unexpected jump
// unexpected jump
function SigFig(SigDig) {
tellTarget (getProperty("..", _target)) {
if (SigDig > this.digits.length) {
}
}
}
// unexpected jump
// unexpected jump
};
stop();
Symbol 146 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
function setVar(newVar) {
tellTarget (getProperty("..", _target)) {
Variable = newVar;
}
}
}
} else {
// unexpected jump
}
function setVarVal(newVal) {
tellTarget (getProperty("..", _target)) {
varVal = newVal;
}
}
// unexpected jump
// unexpected jump
function setConstantVal(varName, newVal) {
tellTarget (getProperty("..", _target)) {
aVal = newVal;
}
}
// unexpected jump
// unexpected jump
function getAnswer(expr, x, y) {
tellTarget (getProperty("..", _target)) {
newParse(expr);
setVarVal(x);
return(walk(objIndex));
}
}
// unexpected jump
// unexpected jump
function newParse(TheText) {
tellTarget (getProperty("..", _target)) {
reset();
TheText = str_replace(" ", "", TheText);
TheText = fixUnaryMinus(TheText);
TheText = fixImplicitMultply(TheText);
var opsQ = false;
var i = 0;
for ( ; i < operators.length ; i++) {
if (TheText.indexOf(operators.charAt(i)) > -1) {
opsQ = true;
break;
}
}
if (!opsQ) {
TheText = TheText + "+0";
}
parse(TheText);
}
}
// unexpected jump
// unexpected jump
function str_replace(search, replace, subject) {
tellTarget (getProperty("..", _target)) {
return(subject.split(search).join(replace));
}
}
// unexpected jump
// unexpected jump
function fixUnaryMinus(s) {
tellTarget (getProperty("..", _target)) {
var operators = "+-*/(),^";
var x = (s + newline);
var y = "";
OpenQ = false;
prevType = "(";
var i = 0;
for ( ; i < s.length ; i++) {
c = s.charAt(i);
if (isNaN(c)) {
if (operators.indexOf(c) >= 0) {
if (c == "-") {
thisType = "-";
} else {
thisType = "O";
}
} else if (!((c != ".") ? (c != Variable) : false)) {
thisType = "N";
} else {
thisType = "C";
}
if (c == "(") {
thisType = "(";
}
if (c == ")") {
thisType = ")";
}
} else {
thisType = "N";
}
x = x + thisType;
if (!((prevType == "(") ? (thisType != "-") : true)) {
y = y + "0";
}
if (OpenQ) {
if (thisType != "N") {
} else {
// unexpected jump
}
y = y + ")";
OpenQ = false;
}
if (!((prevType == "O") ? (thisType != "-") : true)) {
y = y + "(0";
OpenQ = true;
}
y = y + c;
prevType = thisType;
}
if (OpenQ) {
y = y + ")";
OpenQ = false;
}
return(y);
}
}
// unexpected jump
// unexpected jump
function fixImplicitMultply(s) {
tellTarget (getProperty("..", _target)) {
var x = (s + newline);
var y = "";
var prevType = "?";
var prevName = "";
var thisType = "?";
var thisName = "";
var i = 0;
for ( ; i < s.length ; i++) {
c = s.charAt(i);
if (isNaN(c)) {
if (operators.indexOf(c) >= 0) {
thisType = "O";
thisName = "";
} else {
thisType = "C";
thisName = thisName + c;
}
if (c == "(") {
thisType = "(";
}
if (c == ")") {
thisType = ")";
}
} else {
thisType = "N";
}
x = x + thisType;
if (!((prevType == "N") ? (thisType != "C") : true)) {
y = y + "*";
thisName = "";
}
if (!((prevType == "N") ? (thisType != "(") : true)) {
y = y + "*";
}
if (!((prevType == ")") ? (thisType != "(") : true)) {
y = y + "*";
}
if (thisType == "(") {
if (prevName != "i") {
if (prevName != "pi") {
if (prevName != "e") {
if (prevName != "a") {
var _local1 = Variable;
if (prevName != _local1) {
// unexpected jump
}
}
}
}
} else {
y = y + "*";
}
}
y = y + c;
prevType = thisType;
prevName = thisName;
}
return(y);
}
}
// unexpected jump
// unexpected jump
function reset() {
tellTarget (getProperty("..", _target)) {
objIndex = 0;
ErrMsg = "";
}
}
// unexpected jump
// unexpected jump
function createObj(fun, param1, param2) {
tellTarget (getProperty("..", _target)) {
if (objIndex < FSize) {
var lhs = parse(param1);
var rhs = parse(param2);
objIndex++;
F[objIndex][0] = fun;
F[objIndex][1] = lhs;
F[objIndex][2] = rhs;
} else {
ErrMsg = ErrMsg + "Function too difficult to parse\n";
}
return(objIndex);
}
}
// unexpected jump
// unexpected jump
function parse(orgTxt) {
tellTarget (getProperty("..", _target)) {
if (orgTxt == "") {
return(0);
}
if (!isNaN(orgTxt)) {
if (orgTxt >= 0) {
return(orgTxt + 0);
}
return(orgTxt + 0);
}
if (orgTxt.charAt(0) == "$") {
if (!isNaN(orgTxt.substr(1))) {
return(orgTxt);
}
}
orgTxt.toLowerCase();
var _local1 = Variable;
if (orgTxt.toLowerCase() != _local1) {
if (orgTxt.toLowerCase() != "y") {
if (orgTxt.toLowerCase() != "pi") {
if (orgTxt.toLowerCase() != "e") {
if (orgTxt.toLowerCase() != "a") {
if (orgTxt.toLowerCase() != "i") {
// unexpected jump
}
}
}
}
}
} else {
return(orgTxt.toLowerCase());
}
var k = orgTxt.lastIndexOf("(");
if (k > -1) {
var m = orgTxt.indexOf(")", k);
if (m == -1) {
ErrMsg = ErrMsg + "Missing ')'\n";
return(0);
}
if (k == 0) {
isParam = false;
} else {
prefix = orgTxt.substr(k - 1, 1);
if (operators.indexOf(prefix) > -1) {
isParam = false;
} else {
isParam = true;
}
}
if (!isParam) {
var newIndex = parse(orgTxt.substr(k + 1, ((m - k)-1)));
newIndex = parse((orgTxt.substr(0, k) + newIndex) + orgTxt.substr(m + 1, ((orgTxt.length - m)-1)));
return(newIndex);
}
var startM = -1;
var u = (k - 1);
for ( ; u > -1 ; u--) {
var found = operators.indexOf(orgTxt.substr(u, 1));
if (found > -1) {
startM = u;
break;
}
}
var newIndex = parse(orgTxt.substr(k + 1, ((m - k)-1)));
newIndex = createObj(orgTxt.substr(startM + 1, ((k - startM)-1)), newIndex, "");
newIndex = parse(((orgTxt.substr(0, startM + 1) + "$") + newIndex) + orgTxt.substr(m + 1, ((orgTxt.length - m)-1)));
return(newIndex);
}
var k1 = orgTxt.lastIndexOf("+");
var k2 = orgTxt.lastIndexOf("-");
if (!((k1 <= -1) ? (k2 <= -1) : false)) {
if (k1 > k2) {
k = k1;
var newIndex = createObj("add", orgTxt.substr(0, k), orgTxt.substr(k + 1, ((orgTxt.length - k)-1)), objIndex);
return("$" + newIndex);
}
k = k2;
var newIndex = createObj("sub", orgTxt.substr(0, k), orgTxt.substr(k + 1, ((orgTxt.length - k)-1)), objIndex);
return("$" + newIndex);
}
var k1 = orgTxt.lastIndexOf("*");
var k2 = orgTxt.lastIndexOf("/");
if (!((k1 <= -1) ? (k2 <= -1) : false)) {
if (k1 > k2) {
k = k1;
var newIndex = createObj("mult", orgTxt.substr(0, k), orgTxt.substr(k + 1, ((orgTxt.length - k)-1)), objIndex);
return("$" + newIndex);
}
k = k2;
var newIndex = createObj("div", orgTxt.substr(0, k), orgTxt.substr(k + 1, ((orgTxt.length - k)-1)), objIndex);
return("$" + newIndex);
}
var k = orgTxt.indexOf("^");
if (k > -1) {
var newIndex = createObj("pow", orgTxt.substr(0, k), orgTxt.substr(k + 1, ((orgTxt.length - k)-1)), objIndex);
return("$" + newIndex);
}
if (isNaN(orgTxt)) {
ErrMsg = ErrMsg + (("'" + orgTxt) + "' is not a number.\n");
return(0);
}
return(orgTxt + 0);
}
}
// unexpected jump
// unexpected jump
function StackFmt() {
tellTarget (getProperty("..", _target)) {
var s = "";
var i = 1;
for ( ; objIndex >= i ; i++) {
s = s + (((((((i + ": ") + F[i][0]) + ",") + F[i][1]) + ",") + F[i][2]) + newline);
}
return(s);
}
}
// unexpected jump
// unexpected jump
function walk(index) {
tellTarget (getProperty("..", _target)) {
if (index < 0) {
index = objIndex;
}
var lhs = F[index][1];
if (isNaN(lhs)) {
if (lhs.charAt(0) == "$") {
lhs = walk(lhs.substr(1));
} else {
lhs = getVar(lhs);
}
}
var rhs = F[index][2];
if (isNaN(rhs)) {
if (rhs.charAt(0) == "$") {
rhs = walk(rhs.substr(1));
} else {
rhs = getVar(rhs);
}
}
var val = 0;
F[index][0].toLowerCase();
if (F[index][0].toLowerCase() != "add") {
if (F[index][0].toLowerCase() != "sub") {
if (F[index][0].toLowerCase() != "mult") {
if (F[index][0].toLowerCase() != "div") {
if (F[index][0].toLowerCase() != "pow") {
if (F[index][0].toLowerCase() != "sin") {
if (F[index][0].toLowerCase() != "cos") {
if (F[index][0].toLowerCase() != "tan") {
if (F[index][0].toLowerCase() != "asin") {
if (F[index][0].toLowerCase() != "acos") {
if (F[index][0].toLowerCase() != "atan") {
if (F[index][0].toLowerCase() != "sinh") {
if (F[index][0].toLowerCase() != "cosh") {
if (F[index][0].toLowerCase() != "tanh") {
if (F[index][0].toLowerCase() != "exp") {
if (F[index][0].toLowerCase() != "log") {
if (F[index][0].toLowerCase() != "ln") {
if (F[index][0].toLowerCase() != "abs") {
if (F[index][0].toLowerCase() != "chance") {
if (F[index][0].toLowerCase() != "deg") {
if (F[index][0].toLowerCase() != "rad") {
if (F[index][0].toLowerCase() != "sign") {
if (F[index][0].toLowerCase() != "sqrt") {
if (F[index][0].toLowerCase() != "round") {
if (F[index][0].toLowerCase() != "floor") {
if (F[index][0].toLowerCase() != "ceil") {
// unexpected jump
val = lhs + rhs;
// unexpected jump
val = lhs - rhs;
// unexpected jump
val = lhs * rhs;
// unexpected jump
val = lhs / rhs;
// unexpected jump
val = Math.pow(lhs, rhs);
// unexpected jump
val = Math.sin(lhs);
// unexpected jump
val = Math.cos(lhs);
// unexpected jump
val = Math.tan(lhs);
// unexpected jump
val = Math.asin(lhs);
// unexpected jump
val = Math.acos(lhs);
// unexpected jump
val = Math.atan(lhs);
// unexpected jump
val = (Math.exp(lhs) - Math.exp(-lhs)) / 2;
// unexpected jump
val = (Math.exp(lhs) + Math.exp(-lhs)) / 2;
// unexpected jump
val = (Math.exp(lhs) - Math.exp(-lhs)) / (Math.exp(lhs) + Math.exp(-lhs));
// unexpected jump
val = Math.exp(lhs);
// unexpected jump
val = Math.log(lhs) / Math.LN10;
// unexpected jump
val = Math.log(lhs);
// unexpected jump
val = Math.abs(lhs);
// unexpected jump
val = (random(10000) / 100) < lhs;
// unexpected jump
val = lhs * 57.2957795130823;
// unexpected jump
val = lhs * (Math.PI/180);
// unexpected jump
val = ((lhs < 0) ? -1 : ((lhs == 0) ? 0 : 1));
// unexpected jump
val = Math.sqrt(lhs);
// unexpected jump
val = Math.round(lhs);
// unexpected jump
val = Math.floor(lhs);
// unexpected jump
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} else {
val = lhs + rhs;
// unexpected jump
val = lhs - rhs;
// unexpected jump
val = lhs * rhs;
// unexpected jump
val = lhs / rhs;
// unexpected jump
val = Math.pow(lhs, rhs);
// unexpected jump
val = Math.sin(lhs);
// unexpected jump
val = Math.cos(lhs);
// unexpected jump
val = Math.tan(lhs);
// unexpected jump
val = Math.asin(lhs);
// unexpected jump
val = Math.acos(lhs);
// unexpected jump
val = Math.atan(lhs);
// unexpected jump
val = (Math.exp(lhs) - Math.exp(-lhs)) / 2;
// unexpected jump
val = (Math.exp(lhs) + Math.exp(-lhs)) / 2;
// unexpected jump
val = (Math.exp(lhs) - Math.exp(-lhs)) / (Math.exp(lhs) + Math.exp(-lhs));
// unexpected jump
val = Math.exp(lhs);
// unexpected jump
val = Math.log(lhs) / Math.LN10;
// unexpected jump
val = Math.log(lhs);
// unexpected jump
val = Math.abs(lhs);
// unexpected jump
val = (random(10000) / 100) < lhs;
// unexpected jump
val = lhs * 57.2957795130823;
// unexpected jump
val = lhs * (Math.PI/180);
// unexpected jump
val = ((lhs < 0) ? -1 : (((lhs == 0) ? 0 : 1)));
// unexpected jump
val = Math.sqrt(lhs);
// unexpected jump
val = Math.round(lhs);
// unexpected jump
val = Math.floor(lhs);
// unexpected jump
val = Math.ceil(lhs);
}
return(val);
}
}
// unexpected jump
// unexpected jump
function walkFmt(index) {
tellTarget (getProperty("..", _target)) {
var lhs = F[index][1];
if (isNaN(lhs)) {
if (lhs.charAt(0) == "$") {
lhs = ("(" + walkFmt(lhs.substr(1))) + ")";
} else {
lhs = lhs;
}
}
var rhs = F[index][2];
if (isNaN(rhs)) {
if (rhs.charAt(0) == "$") {
rhs = ("(" + walkFmt(rhs.substr(1))) + ")";
} else {
rhs = rhs;
}
}
var val = 0;
F[index][0].toLowerCase();
if (F[index][0].toLowerCase() != "add") {
if (F[index][0].toLowerCase() != "sub") {
if (F[index][0].toLowerCase() != "mult") {
if (F[index][0].toLowerCase() != "div") {
if (F[index][0].toLowerCase() != "pow") {
if (F[index][0].toLowerCase() != "cos") {
if (F[index][0].toLowerCase() != "sin") {
if (F[index][0].toLowerCase() != "tan") {
if (F[index][0].toLowerCase() != "exp") {
if (F[index][0].toLowerCase() != "log") {
if (F[index][0].toLowerCase() != "ln") {
if (F[index][0].toLowerCase() != "abs") {
if (F[index][0].toLowerCase() != "acos") {
if (F[index][0].toLowerCase() != "asin") {
if (F[index][0].toLowerCase() != "atan") {
if (F[index][0].toLowerCase() != "sinh") {
if (F[index][0].toLowerCase() != "cosh") {
if (F[index][0].toLowerCase() != "tanh") {
if (F[index][0].toLowerCase() != "chance") {
if (F[index][0].toLowerCase() != "deg") {
if (F[index][0].toLowerCase() != "rad") {
if (F[index][0].toLowerCase() != "sign") {
if (F[index][0].toLowerCase() != "sqrt") {
if (F[index][0].toLowerCase() != "round") {
if (F[index][0].toLowerCase() != "floor") {
if (F[index][0].toLowerCase() != "ceil") {
// unexpected jump
val = (lhs + "+") + rhs;
// unexpected jump
val = (lhs + "-") + rhs;
// unexpected jump
val = (lhs + "*") + rhs;
// unexpected jump
val = (lhs + "/") + rhs;
// unexpected jump
val = (lhs + "^") + rhs;
// unexpected jump
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} else {
val = (lhs + "+") + rhs;
// unexpected jump
val = (lhs + "-") + rhs;
// unexpected jump
val = (lhs + "*") + rhs;
// unexpected jump
val = (lhs + "/") + rhs;
// unexpected jump
val = (lhs + "^") + rhs;
// unexpected jump
val = ((F[index][0].toLowerCase() + "(") + lhs) + ")";
// unexpected jump
}
val = ("UNKNOWN(" + lhs) + ")";
return(val);
}
}
// unexpected jump
// unexpected jump
function getVar(varName) {
tellTarget (getProperty("..", _target)) {
var val = 0;
varName.toLowerCase();
var _local1 = Variable;
if (varName.toLowerCase() != _local1) {
if (varName.toLowerCase() != "pi") {
if (varName.toLowerCase() != "e") {
if (varName.toLowerCase() != "a") {
// unexpected jump
val = varVal;
// unexpected jump
val = Math.PI;
// unexpected jump
val = Math.E;
// unexpected jump
}
}
}
} else {
val = varVal;
// unexpected jump
val = Math.PI;
// unexpected jump
val = Math.E;
// unexpected jump
val = aVal;
}
return(val);
}
}
// unexpected jump
// unexpected jump
operators = "+-*/(),^.";
FSize = 200;
F = new Array(FSize);
var i = 0;
for ( ; i < FSize ; i++) {
F[i] = new Array(3);
}
var Variable = "x";
var varVal = 0;
var aVal = 0;
reset();
// unexpected jump
// unexpected jump
};
stop();
Symbol 148 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
function clearMe() {
tellTarget (getProperty("..", _target)) {
MsgSprite.MsgText.text = "";
}
}
}
} else {
// unexpected jump
}
function addMe(s) {
tellTarget (getProperty("..", _target)) {
MsgSprite.MsgText.text = MsgSprite.MsgText.text + s;
}
}
// unexpected jump
// unexpected jump
function showMe() {
tellTarget (getProperty("..", _target)) {
if (!IsOpen) {
this.swapdepths(22000);
gotoandplay(2);
}
}
}
// unexpected jump
// unexpected jump
function HideMe() {
tellTarget (getProperty("..", _target)) {
gotoandplay(15);
}
}
// unexpected jump
// unexpected jump
IsOpen = false;
stop();
// unexpected jump
// unexpected jump
};
stop();
Symbol 157 Button
on (press) {
MsgText.scroll = MsgText.scroll - 1;
}
Symbol 159 Button
on (press) {
MsgText.scroll = MsgText.scroll + 1;
}
Symbol 162 Button
on (release) {
_parent.HideMe();
}
Symbol 163 MovieClip Frame 14
IsOpen = true;
stop();
Symbol 163 MovieClip Frame 25
stop();
IsOpen = false;
stop();
Symbol 164 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
function Test() {
tellTarget (getProperty("..", _target)) {
_root.MsgBox.clearMe();
_root.MsgBox.showMe();
var i = 0;
for ( ; i < TestArr.length ; i++) {
_root.xval = 1;
_root.Parser.newParse(TestArr[i]);
if (_root.Parser.ErrMsg.length == 0) {
s = _root.Parser.walk(_root.Parser.objIndex);
} else {
s = "Error: " + _root.Parser.ErrMsg;
}
_root.MsgBox.addMe(TestArr[i]);
_root.MsgBox.addMe("=>");
_root.MsgBox.addMe(s);
_root.MsgBox.addMe((" (vs " + AnsArr[i]) + ")");
_root.MsgBox.addMe(newline);
}
}
}
}
} else {
// unexpected jump
}
TestArr = ["-2^-x", "-2^-2", "x-2^0.5", "4*2-6*x", "3(1+x)", "3pi", "3x", "2^2^2", "3.2/1.6+x", "-sqrt(2)", "1.2^1.3", "-2^-1"];
AnsArr = ["-0.5", "-0.25", "-0.414213", "2", "6", "9.4247779", "3", "16", "3", "-1.414213", "1.2674639", "-0.5"];
// unexpected jump
// unexpected jump
};
stop();
Symbol 168 Button
on (release) {
Tester.test();
}
Symbol 169 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
function doState(CallFromOutsideQ) {
tellTarget (getProperty("..", _target)) {
OnState._visible = OnQ;
OffState._visible = !OnQ;
if (CallFromOutsideQ) {
} else if (OnQ) {
_root.calcScale();
_root.updatePlots();
}
}
}
}
} else {
// unexpected jump
}
OverState._visible = false;
var OnQ = true;
this._parent.doState(false);
// unexpected jump
// unexpected jump
};
stop();
Symbol 181 Button
on (release, releaseOutside) {
tellTarget ("..") {
OnQ = !OnQ;
doState();
_root.HintsQ = OnQ;
}
}
on (rollOver) {
_parent.OverState._visible = true;
}
on (rollOut) {
_parent.OverState._visible = false;
}