Frame 1
_root.showTweezers = false;
Instance of Symbol 76 MovieClip "loader" in Frame 1
/* no clip actions */
Frame 2
if (restart == 1) {
gotoAndStop ("choose");
} else {
stop();
}
Frame 16
stop();
Frame 26
stop();
Frame 27
function showGuesses(g) {
var _local1 = _root;
var _local2 = g;
_local1.voteLocked = true;
_local1[_local2 + "Guess"] = _local1[_local2 + "Guess"] + 1;
if (_local1[_local2 + "Guess"] > 12) {
_local1[_local2 + "Guess"] = 12;
}
_local1[_local2 + "Dot"].numItems = _local1[_local2 + "Guess"];
_local1[_local2 + "Dot"].gotoAndPlay(2);
_local1.totalGuesses = _local1.totalGuesses + 1;
if (_local1.totalGuesses == 12) {
_local1.done = true;
Mouse.show();
TWEEZERS._visible = false;
gotoAndStop ("review");
}
}
function hairGuessed(h) {
var _local1 = _root;
if (voteLocked == false) {
_local1.inScope = false;
_local1.pickSnd.gotoAndPlay(2);
guess = guesses[h - 1];
if (h > 3) {
guessStr = "other";
} else {
guessStr = guess;
}
trace(guess);
trace(_local1.popped);
if (guess == _local1.popped) {
_local1.correctGuess = true;
showGuesses(guessStr);
} else {
_local1.correctGuess = false;
_local1.errorSnd.gotoAndPlay(2);
}
} else {
_local1.errorSnd.gotoAndPlay(2);
}
}
Array.prototype.shuffle = function () {
var _local2 = this;
var nLength = _local2.length;
var _local1 = 0;
while (_local1 < nLength) {
var _local3 = Math.floor(Math.random() * nLength);
var temp = _local2[_local1];
_local2[_local1] = _local2[_local3];
_local2[_local3] = temp;
_local1++;
}
};
TWEEZERS._x = _xmouse;
TWEEZERS._y = _ymouse;
if (_root.chosenScat == undefined) {
_root.chosenScat = "mcScat1";
}
SCAT.attachMovie(_root.chosenScat, "sc", this.getNextHighestDepth());
deer = 0;
moose = 0;
beaver = 0;
otherGuess = 0;
other = 0;
beaverGuess = 0;
mooseGuess = 0;
deerGuess = 0;
otherGuess = 0;
totalGuesses = 0;
correctGuess = true;
var voteLocked = true;
var inScope = false;
var done = false;
guesses = new Array("beaver", "moose", "deer", "groundhog", "bear", "squirrel", "chipmunk", "racoon", "hare", "deermouse");
other = new Array("hare", "squirrel", "bear", "groundhog", "deermouse", "racoon", "chipmunk");
rnd = random(2);
trace("rnd=" + rnd);
if (rnd == 1) {
trace("Pimlott");
_root.givenStudy = "Pimlott";
animals = new Array("deer", "deer", "deer", "deer", "deer", "deer", "deer", "deer", "deer", "deer", "deer", "deer", "deer", "deer", "deer", "deer", "moose", "moose", "beaver");
animals.push(other[random(6)]);
} else {
trace("Theberge");
_root.givenStudy = "Theberge";
animals = new Array("deer", "deer", "deer", "deer", "deer", "deer", "deer", "moose", "moose", "moose", "moose", "moose", "moose", "beaver", "beaver", "beaver", "beaver", "beaver", "beaver");
animals.push(other[random(6)]);
}
animals.shuffle();
trace(animals);
trace(animals.length);
Instance of Symbol 192 MovieClip "beaverDot" in Frame 27
onClipEvent (load) {
homeY = this._y;
}
Instance of Symbol 192 MovieClip "mooseDot" in Frame 27
onClipEvent (load) {
homeY = this._y;
}
Instance of Symbol 192 MovieClip "deerDot" in Frame 27
onClipEvent (load) {
homeY = this._y;
}
Instance of Symbol 192 MovieClip "otherDot" in Frame 27
onClipEvent (load) {
homeY = this._y;
}
Instance of Symbol 314 MovieClip "TWEEZERS" in Frame 27
onClipEvent (mouseMove) {
if ((_root.done != true) && ((((_root._xmouse > 0) && (_root._xmouse < 480)) && (_root._ymouse > 203)) && (_root._ymouse < 445))) {
Mouse.hide();
this._visible = true;
this._x = _parent._xmouse;
this._y = _parent._ymouse;
} else {
Mouse.show();
this._visible = false;
}
}
Frame 33
stop();
Frame 56
stop();
Instance of Symbol 387 MovieClip "PimlottInCorrect" in Frame 57
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 390 MovieClip "PimlottCorrect" in Frame 57
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 392 MovieClip "ThebergeInCorrect" in Frame 57
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 394 MovieClip "ThebergeCorrect" in Frame 57
onClipEvent (load) {
_visible = false;
}
Frame 58
if (selectedStudy == givenStudy) {
trace(selectedStudy + "Correct");
_root[selectedStudy + "Correct"]._visible = true;
} else {
_root[selectedStudy + "InCorrect"]._visible = true;
}
Frame 62
stop();
Frame 83
stop();
Frame 92
stop();
Instance of Symbol 69 MovieClip [FScrollBarSymbol] in Frame 100
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "txtFld";
horizontal = false;
}
Frame 106
stop();
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 3 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 5 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 6 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 7 MovieClip [UpArrow] Frame 1
stop();
Symbol 7 MovieClip [UpArrow] Frame 2
stop();
Symbol 7 MovieClip [UpArrow] Frame 3
stop();
Symbol 8 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 18 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 19 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 21 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 23 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 25 MovieClip [DownArrow] Frame 1
stop();
Symbol 25 MovieClip [DownArrow] Frame 2
stop();
Symbol 25 MovieClip [DownArrow] Frame 3
stop();
Symbol 29 Button
on (press) {
if ((_root.inScope != true) && (_root.correctGuess != false)) {
gotoAndPlay (2);
_root.TWEEZERS.gotoAndStop("closed");
var x = _parent._x;
var y = _parent._y;
startDrag (_parent, false, 50, 0, 400, 170);
} else {
_root.errorSnd.gotoAndPlay(2);
}
}
on (release, releaseOutside) {
gotoAndStop (1);
stopDrag();
_root.TWEEZERS.gotoAndStop("opened");
if (_parent.hitTest(_parent._parent.microscope)) {
_root.voteLocked = false;
_parent._visible = false;
var popped = _root.animals.pop();
_root.popped = popped;
_root.FIELD.gotoAndStop(popped);
_root.switchSnd.gotoAndPlay(2);
_root.SCOPE.gotoAndStop(1);
_root.inScope = true;
} else {
_root.errorSnd.gotoAndPlay(2);
_parent._x = x;
_parent._y = y;
}
}
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 2
if (_parent.hitTest(_parent._parent.microscope)) {
_root.SCOPE.gotoAndStop("red");
} else {
_root.SCOPE.gotoAndStop(1);
}
Symbol 30 MovieClip Frame 3
gotoAndPlay (2);
Symbol 68 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 69 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 76 MovieClip Frame 1
var startWidth = BAR._width;
_parent.stop();
Symbol 76 MovieClip Frame 2
var bytesLoaded = _parent.getBytesLoaded();
var bytesTotal = _parent.getBytesTotal();
var fractionLoaded = (bytesLoaded / bytesTotal);
BAR._width = startWidth * fractionLoaded;
STAT = ((Math.round(bytesLoaded / 1024) + " of ") + Math.round(bytesTotal / 1024)) + "k loaded";
if (bytesLoaded == bytesTotal) {
_parent.play();
stop();
}
Symbol 76 MovieClip Frame 3
gotoAndPlay (2);
Symbol 89 Button
on (release) {
gotoAndStop ("instructions");
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 3
gotoAndStop (1);
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 3
gotoAndStop (1);
Symbol 111 Button
on (release) {
gotoAndStop ("selectResearch");
}
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 3
gotoAndStop (1);
Symbol 114 Button
on (release) {
gotoAndStop ("choose");
}
Symbol 124 Button
on (release) {
_root.chosenScat = "mcScat1";
gotoAndStop ("exam");
}
Symbol 131 Button
on (release) {
_root.chosenScat = "mcScat2";
gotoAndStop ("exam");
}
Symbol 138 Button
on (release) {
_root.chosenScat = "mcScat3";
gotoAndStop ("exam");
}
Symbol 144 Button
on (release) {
_root.chosenScat = "mcScat4";
gotoAndStop ("exam");
}
Instance of Symbol 149 MovieClip in Symbol 150 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 181 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 1
dot._visible = false;
stop();
Symbol 192 MovieClip Frame 2
dot._visible = true;
startx = dot._x;
x = startx;
y = dot._y;
if (numItems > 20) {
numItems = 20;
}
var counter = 0;
t = 1;
while (t <= numItems) {
counter = counter + 1;
duplicateMovieClip ("dot", "d" + t, t);
this["d" + t]._x = x;
this["d" + t]._y = y;
x = x + 10;
if (counter == 10) {
y = y + 12;
x = startx;
this._y = homeY - 4;
}
t++;
}
Symbol 213 Button
on (rollOver, press) {
gotoAndPlay (2);
}
on (rollOut, release, releaseOutside) {
gotoAndStop (1);
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
startTop = Number(_parent.maskRect._x);
if (_parent.roller._x <= startTop) {
_parent.roller._x = _parent.roller._x + 10;
} else {
gotoAndStop (1);
}
if (_parent.roller._x >= startTop) {
_parent.roller._x = startTop;
}
Symbol 214 MovieClip Frame 3
gotoAndPlay (2);
Symbol 218 Button
on (rollOver, press) {
gotoAndPlay (2);
}
on (rollOut, release, releaseOutside) {
gotoAndStop (1);
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
startTop = _parent.maskRect._x;
scrollWin = _parent.maskRect._width;
if ((_parent.roller._x + _parent.roller._width) <= ((startTop + scrollWin) - 10)) {
gotoAndStop (1);
} else {
_parent.roller._x = _parent.roller._x - 10;
}
Symbol 219 MovieClip Frame 3
gotoAndPlay (2);
Symbol 241 Button
on (release) {
_root.hairGuessed(1);
}
on (rollOver) {
hl1._visible = true;
}
on (rollOut) {
hl1._visible = false;
}
Symbol 242 Button
on (release) {
_root.hairGuessed(2);
}
on (rollOver) {
hl2._visible = true;
}
on (rollOut) {
hl2._visible = false;
}
Symbol 243 Button
on (release) {
_root.hairGuessed(3);
}
on (rollOver) {
hl3._visible = true;
}
on (rollOut) {
hl3._visible = false;
}
Symbol 244 Button
on (release) {
_root.hairGuessed(4);
}
on (rollOver) {
hl4._visible = true;
}
on (rollOut) {
hl4._visible = false;
}
Symbol 245 Button
on (release) {
_root.hairGuessed(5);
}
on (rollOver) {
hl5._visible = true;
}
on (rollOut) {
hl5._visible = false;
}
Symbol 246 Button
on (release) {
_root.hairGuessed(6);
}
on (rollOver) {
hl6._visible = true;
}
on (rollOut) {
hl6._visible = false;
}
Symbol 247 Button
on (release) {
_root.hairGuessed(7);
}
on (rollOver) {
hl7._visible = true;
}
on (rollOut) {
hl7._visible = false;
}
Symbol 248 Button
on (release) {
_root.hairGuessed(8);
}
on (rollOver) {
hl8._visible = true;
}
on (rollOut) {
hl8._visible = false;
}
Symbol 249 Button
on (release) {
_root.hairGuessed(9);
}
on (rollOver) {
hl9._visible = true;
}
on (rollOut) {
hl9._visible = false;
}
Symbol 250 Button
on (release) {
_root.hairGuessed(10);
}
on (rollOver) {
hl10._visible = true;
}
on (rollOut) {
hl10._visible = false;
}
Instance of Symbol 255 MovieClip "hl1" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 257 MovieClip "hl2" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 260 MovieClip "hl3" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 263 MovieClip "hl4" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 266 MovieClip "hl5" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 269 MovieClip "hl6" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 273 MovieClip "hl7" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 277 MovieClip "hl8" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 281 MovieClip "hl9" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 285 MovieClip "hl10" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 8
Symbol 314 MovieClip Frame 1
stop();
Symbol 326 Button
on (release) {
gotoAndStop ("selectResearch");
}
Symbol 349 Button
on (release) {
selectedStudy = "Pimlott";
gotoAndPlay ("showSelected");
}
Symbol 364 Button
on (release) {
selectedStudy = "Theberge";
gotoAndPlay ("showSelected");
}
Symbol 386 Button
on (release) {
_parent.gotoAndPlay("selectResearch");
}
Symbol 389 Button
on (release) {
_parent.gotoAndPlay("learnMore");
}
Symbol 402 Button
on (release) {
getURL ("http://www.sbaa.ca/projects.asp?cn=314", "_blank");
}
Symbol 405 Button
on (release) {
gotoAndStop ("thankYou");
}
Symbol 417 Button
on (release) {
gotoAndStop ("choose");
}
Symbol 424 Button
on (release) {
gotoAndPlay ("summary");
}
Symbol 436 Button
on (release) {
gotoAndStop ("quit");
}
Symbol 448 Button
on (release) {
gotoAndPlay (1);
}