Frame 1
function reportError(newError) {
trace("ERROR *** " + newError);
}
stop();
smoothpercent = (rSmoothpercent = 0);
_root.gameMode = "webMode";
_root.hasPlayedIntro = false;
trace("1. _root.autoScribblesUrl= " + _root.autoScribblesUrl);
if (_level0.autoScribblesUrl == null) {
_level0.autoScribblesUrl = "assets/swf/games/quickonthedraw/auto_scribbles/";
}
trace("2. _level0.autoScribblesUrl= " + _level0.autoScribblesUrl);
MovieClip.prototype.tween = function (prop, target, a, s) {
var _local3 = 999000 /* 0x0F3E58 */;
var _local4 = "mc" + prop;
var d = ((i = 0));
var _local2 = ["_x", "_y", "_rotation", "_alpha", "_xscale", "_yscale", "_width", "_height"];
i = 0;
while (i < _local2.length) {
if (prop == _local2[i]) {
_local3 = _local3 + i;
break;
}
i++;
}
var _local5 = this.createEmptyMovieClip(_local4, _local3);
_local5.onEnterFrame = function () {
d = (((this._parent[prop] - target) / a) + d) / s;
this._parent[prop] = this._parent[prop] - d;
if ((d > -0.1) && (d < 0.1)) {
d = int(target);
this._parent[prop] = d;
delete this.onEnterFrame;
this.removeMovieClip();
}
};
};
MovieClip.prototype.delayClip = function (minimumWaitFrames, maximumWaitFrames) {
if (maximumWaitFrames == null) {
maximumWaitFrames = minimumWaitFrames;
}
var _local4 = maximumWaitFrames - minimumWaitFrames;
this.delayTime = minimumWaitFrames + Math.floor(_local4 * Math.random());
this.stop();
this.frameAtStartOFDelay = this._currentframe;
this.onEnterFrame = function () {
if (this.delayTime > 0) {
this.delayTime--;
if (this.delayTime == 0) {
this.play();
this.onEnterFrame = null;
}
if (this.frameAtStartOFDelay != this._currentframe) {
this.onEnterFrame = null;
}
} else {
this.onEnterFrame = null;
}
};
};
var scribbleModeWords = new Array();
var autoScribbles = new Array();
webConfig = new XML();
webConfig.ignoreWhite = true;
webConfig.onLoad = function (success) {
if (success) {
var _local1;
for (_local1 in webConfig.firstChild.childNodes) {
if (webConfig.firstChild.childNodes[_local1].nodeName == "scribbleModeWords") {
for (var _local4 in webConfig.firstChild.childNodes[_local1].childNodes) {
var _local3 = webConfig.firstChild.childNodes[_local1].childNodes[_local4];
var _local2 = _local3.attributes.value;
scribbleModeWords.push(_local2);
}
}
if (webConfig.firstChild.childNodes[_local1].nodeName == "autoScribbles") {
for (var _local4 in webConfig.firstChild.childNodes[_local1].childNodes) {
var _local3 = webConfig.firstChild.childNodes[_local1].childNodes[_local4];
var _local2 = _level0.autoScribblesUrl + _local3.attributes.value;
autoScribbles.push(_local2);
}
}
}
gotoAndStop ("loadGame");
} else {
reportError("webConfig.onLoad.success=false: " + webConfig.XMLFilename);
}
};
webConfig.XMLFilename = _level0.autoScribblesUrl + "index.xml";
webConfig.load(_level0.autoScribblesUrl + "index.xml");
Frame 10
play();
bytesloaded = this.getBytesLoaded();
if (bytesloaded > 0) {
bytestotal = this.getBytesTotal();
percent = Math.floor((bytesloaded / bytestotal) * 100);
smoothpercent = smoothpercent + ((percent - smoothpercent) / 3);
rSmoothpercent = Math.round(smoothpercent);
loadedText = ("0" + rSmoothpercent) + "%";
loadingbar.gotoAndStop(rSmoothpercent);
if (rSmoothpercent == 100) {
AudioLibrary.addSound("scribble", this);
AudioLibrary.addSound("allRight", this);
AudioLibrary.addSound("yeahYeah", this);
AudioLibrary.addSound("yeeeehhhh", this);
AudioLibrary.addSound("yipee", this);
AudioLibrary.addSound("nNNNo", this);
AudioLibrary.addSound("oops", this);
AudioLibrary.addSound("scribbleWebMusic", this);
AudioLibrary.playSound("scribbleWebMusic", 99999);
loadedText = "100%";
this.gotoAndPlay("title");
}
}
Frame 11
gotoAndPlay(_currentframe - 1);
Frame 20
stop();
Mouse.show();
_root.skipToScribbleWords = false;
Frame 30
stop();
intro_mc.gotoAndStop("out");
fade_mc.tween("_alpha", 100, 6, 2);
Frame 40
trace("_root currentframe='game mode'");
if (_level0.menuItem == "single mode") {
debug_txt.text = "Game Mode = Single";
} else if (_level0.menuItem == "scribble mode") {
debug_txt.text = "Game Mode = Scribble";
}
stop();
Frame 50
stop();
Frame 60
stop();
Symbol 16 Button
on (rollOver) {
_parent.overControls = true;
}
on (rollOut) {
_parent.overControls = false;
}
Symbol 21 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 44 Button
on (rollOver) {
pencil1.gotoAndStop(2);
_parent.overControls = true;
}
on (rollOut) {
pencil1.gotoAndStop(1);
_parent.overControls = false;
}
on (press) {
_root.doSetColour(15348499);
_parent.colour = 15348499 /* 0xEA3313 */;
setPencilColor();
}
Symbol 45 Button
on (rollOver) {
pencil2.gotoAndStop(2);
_parent.overControls = true;
}
on (rollOut) {
pencil2.gotoAndStop(1);
_parent.overControls = false;
}
on (press) {
_root.doSetColour(15309075);
_parent.colour = 15309075 /* 0xE99913 */;
setPencilColor();
}
Symbol 46 Button
on (rollOver) {
pencil3.gotoAndStop(2);
_parent.overControls = true;
}
on (rollOut) {
pencil3.gotoAndStop(1);
_parent.overControls = false;
}
on (press) {
_root.doSetColour(15132222);
_parent.colour = 15132222 /* 0xE6E63E */;
setPencilColor();
}
Symbol 47 Button
on (rollOver) {
pencil8.gotoAndStop(2);
_parent.overControls = true;
}
on (rollOut) {
pencil8.gotoAndStop(1);
_parent.overControls = false;
}
on (press) {
_root.doSetColour(1250067);
_parent.colour = 1250067 /* 0x131313 */;
setPencilColor();
}
Symbol 48 Button
on (rollOver) {
pencil4.gotoAndStop(2);
_parent.overControls = true;
}
on (rollOut) {
pencil4.gotoAndStop(1);
_parent.overControls = false;
}
on (press) {
_root.doSetColour(7585310);
_parent.colour = 7585310 /* 0x73BE1E */;
setPencilColor();
}
Symbol 49 Button
on (rollOver) {
pencil7.gotoAndStop(2);
_parent.overControls = true;
}
on (rollOut) {
pencil7.gotoAndStop(1);
_parent.overControls = false;
}
on (press) {
_root.doSetColour(1260945);
_parent.colour = 1260945 /* 0x133D91 */;
setPencilColor();
}
Symbol 50 Button
on (rollOver) {
pencil6.gotoAndStop(2);
_parent.overControls = true;
}
on (rollOut) {
pencil6.gotoAndStop(1);
_parent.overControls = false;
}
on (press) {
_root.doSetColour(15118054);
_parent.colour = 15118054 /* 0xE6AEE6 */;
setPencilColor();
}
Symbol 51 Button
on (rollOver) {
pencil5.gotoAndStop(2);
_parent.overControls = true;
}
on (rollOut) {
pencil5.gotoAndStop(1);
_parent.overControls = false;
}
on (press) {
_root.doSetColour(9100262);
_parent.colour = 9100262 /* 0x8ADBE6 */;
setPencilColor();
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 59 Button
on (rollOver) {
clear_mc.gotoAndStop(2);
_parent.overControls = true;
}
on (rollOut) {
clear_mc.gotoAndStop(1);
_parent.overControls = false;
}
on (press) {
_root.doReset();
_root.doClearMsg();
_parent.resetCanvas();
}
Symbol 60 MovieClip Frame 1
function setPencilColor() {
var _local2 = new Color(_parent.pencil.bgcolor_mc);
_local2.setRGB(_parent.colour);
}
hitBlock.useHandCursor = false;
Symbol 66 Button
on (rollOver) {
pass_mc.tween("_xscale", 110, 1.5, 2);
pass_mc.tween("_yscale", 110, 1.5, 2);
overControls = true;
}
on (rollOut) {
pass_mc.tween("_xscale", 100, 2, 3);
pass_mc.tween("_yscale", 100, 2, 3);
overControls = false;
}
on (press) {
resetCanvas();
if (Math.random() < 0.5) {
AudioLibrary.playSound("nNNNo", 1);
} else {
AudioLibrary.playSound("oops", 1);
}
}
Symbol 67 Button
on (rollOver) {
yes_mc.tween("_xscale", 110, 1.5, 2);
yes_mc.tween("_yscale", 110, 1.5, 2);
overControls = true;
}
on (rollOut) {
yes_mc.tween("_xscale", 100, 2, 3);
yes_mc.tween("_yscale", 100, 2, 3);
overControls = false;
}
on (press) {
_root.nevAnims.gotoAndStop("correct");
updateWebScore();
switch (Math.floor(Math.random() * 4)) {
case 1 :
AudioLibrary.playSound("allRight", 1);
break;
case 2 :
AudioLibrary.playSound("yeahYeah", 1);
break;
case 3 :
AudioLibrary.playSound("yeeeehhhh", 1);
break;
default :
AudioLibrary.playSound("yipee", 1);
}
}
Symbol 73 MovieClip [timer] Frame 1
#initclip 7
Object.registerClass("timer", Timer);
#endinitclip
Symbol 93 Button
on (rollOver) {
playAgain_mc.tween("_xscale", 110, 1.5, 2);
playAgain_mc.tween("_yscale", 110, 1.5, 2);
}
on (rollOut) {
playAgain_mc.tween("_xscale", 100, 2, 3);
playAgain_mc.tween("_yscale", 100, 2, 3);
}
on (press) {
_root.intro_mc.gotoAndPlay(1);
_root.gotoAndStop("title");
}
Symbol 99 Button
on (rollOver) {
nextUp_mc.tween("_xscale", 110, 1.5, 2);
nextUp_mc.tween("_yscale", 110, 1.5, 2);
}
on (rollOut) {
nextUp_mc.tween("_xscale", 100, 2, 3);
nextUp_mc.tween("_yscale", 100, 2, 3);
}
on (press) {
_root.skipToScribbleWords = true;
_root.gotoAndStop("options");
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 10
stop();
block_btn.useHandCursor = false;
Symbol 100 MovieClip Frame 19
stop();
block_btn.useHandCursor = false;
Symbol 101 MovieClip [mc : scribble mode game] Frame 1
#initclip 5
Object.registerClass("mc : scribble mode game", Scribbler);
#endinitclip
Symbol 110 Button
on (rollOver) {
pass_mc.tween("_xscale", 110, 1.5, 2);
pass_mc.tween("_yscale", 110, 1.5, 2);
}
on (rollOut) {
pass_mc.tween("_xscale", 100, 2, 3);
pass_mc.tween("_yscale", 100, 2, 3);
}
on (press) {
pass();
}
Symbol 111 Button
on (rollOver) {
submit_mc.tween("_xscale", 110, 1.5, 2);
submit_mc.tween("_yscale", 110, 1.5, 2);
}
on (rollOut) {
submit_mc.tween("_xscale", 100, 2, 3);
submit_mc.tween("_yscale", 100, 2, 3);
}
on (press, keyPress "<Enter>") {
submit();
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 10
stop();
blocker.useHandCursor = false;
Symbol 120 MovieClip Frame 19
stop();
blocker.useHandCursor = false;
Symbol 121 MovieClip [mc : single mode game] Frame 1
#initclip 6
Object.registerClass("mc : single mode game", AutoScribbler);
#endinitclip
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 10
play();
Symbol 126 MovieClip Frame 48
_parent.gotoAndStop(_level0.menuItem);
gotoAndStop ("hide");
Symbol 132 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 20
_parent._parent._parent.sounds_mc.pickRandomSound("short");
Symbol 147 MovieClip Frame 70
_root.continueNextRound();
_parent._parent.gotoAndStop("hide");
stop();
Symbol 154 MovieClip Frame 20
_parent._parent._parent.sounds_mc.pickRandomSound("long");
Symbol 154 MovieClip Frame 70
_root.continueNextRound();
_parent._parent.gotoAndStop("hide");
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 20
stop();
Symbol 156 MovieClip Frame 40
stop();
Symbol 402 MovieClip [__Packages.AudioLibrary] Frame 0
class AudioLibrary
{
function AudioLibrary () {
}
static function reset() {
for (var _local1 in sounds) {
sounds[_local1].removeMovieClip();
}
sounds = new Array();
}
static function addSound(soundName, timeline) {
trace((("audiolibrary.addsound: soundName=" + soundName) + " - timeline=") + timeline);
if (typeof(sounds[soundName]) != "object") {
timeline.createEmptyMovieClip(soundName + "_sound_mc", timeline.getNextHighestDepth());
sounds[soundName] = new Sound(timeline[soundName + "_sound_mc"]);
sounds[soundName].attachSound(soundName);
setVolume(soundName, globalVolume);
} else {
trace(soundName + " already exists");
}
}
static function playSound(soundName, repeat) {
trace((((("audiolibrary.playSound: soundName=" + soundName) + " - repeat=") + repeat) + " - sounds[soundName]=") + sounds[soundName]);
if (repeat == -1) {
sounds[soundName].start(0, 1);
sounds[soundName].onSoundComplete = function () {
AudioLibrary.sounds[soundName].start();
};
} else {
sounds[soundName].start(0, repeat);
sounds[soundName].onSoundComplete = function () {
};
}
}
static function stopSound(soundName) {
sounds[soundName].stop();
}
static function setVolume(soundName, volume) {
sounds[soundName].setVolume(volume);
}
static function setGlobalVolume(volume) {
var _local1;
for (_local1 in sounds) {
sounds[_local1].setVolume(volume);
}
globalVolume = volume;
}
static function setPan(soundName, position) {
sounds[soundName].setPan(position);
}
static var sounds = new Array();
static var globalVolume = 100;
}
Symbol 403 MovieClip [__Packages.Scribbler] Frame 0
class Scribbler extends MovieClip
{
var doListen, doBroadcast, pencil, _xmouse, _ymouse, prevX, prevY, canvas;
function Scribbler () {
super();
trace((("scribbler constructor: doBroadcast=" + doBroadcast) + ", doListen=") + doListen);
Mouse.addListener(this);
if (_root.gameMode == "webMode") {
minX = -320;
maxX = 270;
minY = -245;
maxY = 215;
isLocked = false;
}
if (_root.gameMode == "desinger") {
minX = -290;
maxX = 275;
minY = -255;
maxY = 225;
isLocked = true;
}
}
function onMouseUp() {
isMouseDown = false;
}
function onMouseDown() {
isMouseDown = true;
}
function updatePencilColour(col) {
colour = col;
var _local2 = new Color(pencil.bgcolor_mc);
_local2.setRGB(col);
}
function onEnterFrame() {
var _local4 = Math.round(_xmouse);
var _local3 = Math.round(_ymouse);
if ((((!doBroadcast) && (!doListen)) && (_root.gameMode != "webMode")) && (_root.gameMode != "desinger")) {
_local3 = _local3 + 30;
}
if ((overControls || (isLocked)) || ((_root.gameMode == "desinger") && (!isWithinMouseBorder(_local4, _local3)))) {
Mouse.show();
} else {
Mouse.hide();
}
if (_root.gameMode == "webMode") {
if ((((230 < _xmouse) && (_xmouse < 320)) && (-175 < _ymouse)) && (_ymouse < -120)) {
Mouse.show();
}
}
if (doBroadcast) {
if (isLocked) {
mBAllow = false;
} else if (!isMouseDown) {
mBAllow = true;
}
}
if ((_local4 != prevX) || (_local3 != prevY)) {
prevX = _local4;
prevY = _local3;
if (!doListen) {
if (isWithinMouseBorder(_local4, _local3)) {
if (((!isLocked) || (!doBroadcast)) && (!(((_root.gameMode == "webMode") || (_root.gameMode == "desinger")) && (isLocked)))) {
if (!overControls) {
updateCanvas(_local4, _local3, isMouseDown && (mBAllow));
if (doBroadcast) {
_root.client_nc.call("updateMouse", null, _local4, _local3, isMouseDown && (mBAllow));
}
}
}
}
}
}
}
function isWithinMouseBorder(x, y) {
return((((x > minX) && (x < maxX)) && (y > minY)) && (y < maxY));
}
function resetCanvas() {
canvas.clear();
canvas.moveTo(_xmouse, _ymouse);
}
function updateWebScore() {
trace("scribbler.updatewebscore");
webScore++;
resetCanvas();
}
function updateCanvas(x, y, isMouseDown) {
x2 = x1;
y2 = y1;
x1 = x0;
y1 = y0;
x0 = x;
y0 = y;
pencil._x = x0;
pencil._y = y0;
if ((((!doBroadcast) && (!doListen)) && (_root.gameMode != "webMode")) && (_root.gameMode != "desinger")) {
pencil._y = pencil._y - 30;
}
if (isMouseDown) {
var _local3 = x1 - x2;
var _local5 = y1 - y2;
var _local4 = Math.sqrt(Math.pow(_local3, 2) + Math.pow(_local3, 2));
targetD = Math.sqrt(_local4);
if (targetD < 1) {
targetD = 1;
}
adjustedD = adjustedD + ((targetD - adjustedD) / 5);
canvas.lineStyle((16 / adjustedD) + 2, colour, 100);
canvas.curveTo(x2 + (_local3 * 1.3), y2 + (_local5 * 1.3), x0, y0);
} else {
canvas.moveTo(x, y);
}
if (_root.gameMode == "desinger") {
_root.updateMouseTrack(x, y, isMouseDown);
}
}
function removeUserNumber(fullName) {
if (fullName.indexOf("#") != -1) {
return(fullName.substr(0, fullName.indexOf("#")));
}
}
var minX = 200;
var maxX = 862;
var minY = 0;
var maxY = 576;
var x0 = MovieClip.prototype._xmouse;
var y0 = MovieClip.prototype._ymouse;
var x1 = MovieClip.prototype._xmouse;
var y1 = MovieClip.prototype._ymouse;
var x2 = MovieClip.prototype._xmouse;
var y2 = MovieClip.prototype._ymouse;
var targetD = 1;
var adjustedD = 1;
var isMouseDown = false;
var roundNum = 1;
var colour = 2236962;
var isLocked = true;
var overControls = false;
var mBAllow = true;
var webScore = 0;
}
Symbol 404 MovieClip [__Packages.AutoScribbler] Frame 0
class AutoScribbler extends MovieClip
{
var pencil, canvas, guess, score_txt;
function AutoScribbler () {
super();
initRandomAutoScribble();
}
function onEnterFrame() {
if (runAutoScribble) {
if (autoScribble[ticker] != null) {
if (autoScribble[ticker].colour != null) {
colour = autoScribble[ticker].colour;
var _local2 = new Color(pencil.bgcolor_mc);
_local2.setRGB(colour);
}
updateCanvas(autoScribble[ticker].x, autoScribble[ticker].y, autoScribble[ticker].isMouseDown);
}
ticker++;
}
}
function initRandomAutoScribble() {
canvas.clear();
var autoScribbleXML = new XML();
autoScribbleXML.ignoreWhite = true;
autoScribbleXML.onLoad = function (success) {
if (success) {
_root.autoScribbler.autoScribbleMinutes = autoScribbleXML.firstChild.attributes.minutes;
_root.autoScribbler.autoScribbleHours = autoScribbleXML.firstChild.attributes.hours;
_root.autoScribbler.autoScribbleYear = autoScribbleXML.firstChild.attributes.year;
_root.autoScribbler.autoScribbleMonth = autoScribbleXML.firstChild.attributes.month;
_root.autoScribbler.autoScribbleName = autoScribbleXML.firstChild.attributes.name;
_root.autoScribbler.autoScribbleUser = autoScribbleXML.firstChild.attributes.user;
var _local5;
for (_local5 in autoScribbleXML.firstChild.childNodes) {
var _local3 = autoScribbleXML.firstChild.childNodes[_local5];
if (_local3.nodeName == "mouse") {
var _local6 = Number(_local3.attributes.tickCount);
var _local4 = new Object();
_local4.isMouseDown = Boolean(_local3.attributes.isMouseDown == "true");
_local4.x = Number(_local3.attributes.x);
_local4.y = Number(_local3.attributes.y);
_local4.colour = Number(_local3.attributes.colour);
_root.autoScribbler.autoScribble[_local6] = _local4;
} else {
trace("AutoScribbler.initRandomAutoScribble found unknown node: " + autoScribbleXML.firstChild.childNodes[_local5].nodeName);
}
}
this.startAutoScribble();
trace("xml loaded, start game: " + _root.autoScribbler.autoScribbleName);
_root.autoScribbler.ticker = 0;
_root.autoScribbler.runAutoScribble = true;
} else {
this.reportError("AutoScribbler.initRandomAutoScribble: XML load failed - XMLFilename=" + this.XMLFilename);
}
};
autoScribble = new Array();
runAutoScribble = false;
var _local6;
var _local9;
var _local5 = 0;
while (_local5 < 9999) {
_local6 = Math.floor(Math.random() * _root.autoScribbles.length);
_local9 = _root.autoScribbles[_local6];
if (!hasAlreadyScribbled(_local6.toString())) {
break;
}
_local5++;
}
trace("attempting to load: " + _local9);
autoScribbleXML.XMLFilename = _local9;
autoScribbleXML.load(_local9);
}
function hasAlreadyScribbled(newScribble_str) {
if (alreadyScribbled.indexOf(("<" + newScribble_str) + ">") == -1) {
alreadyScribbled = alreadyScribbled + (("<" + newScribble_str) + ">");
scribbleCount++;
if (scribbleCount == _root.autoScribbles.length) {
alreadyScribbled = "";
}
return(false);
}
return(true);
}
function startAutoScribble() {
trace("startAutoScribble");
}
function updateCanvas(x, y, isMouseDown) {
x2 = x1;
y2 = y1;
x1 = x0;
y1 = y0;
x0 = x;
y0 = y;
pencil._x = x0 + offsetX;
pencil._y = y0 + offsetY;
if (isMouseDown) {
var _local2 = x1 - x2;
var _local4 = y1 - y2;
var _local3 = Math.sqrt(Math.pow(_local2, 2) + Math.pow(_local2, 2));
targetD = Math.sqrt(_local3);
if (targetD < 1) {
targetD = 1;
}
adjustedD = adjustedD + ((targetD - adjustedD) / 5);
canvas.lineStyle((16 / adjustedD) + 2, colour, 100);
canvas.curveTo(x2 + (_local2 * 1.3), y2 + (_local4 * 1.3), x0, y0);
} else {
canvas.moveTo(x, y);
}
}
function pass() {
trace("autoscribbler.pass");
restartDrawing(0);
guess.text = "";
}
function submit() {
trace((("autoscribbler.submit guess=" + guess.text) + ", autoScribbleName=") + autoScribbleName);
if (guess.text.toLowerCase() == autoScribbleName.toLowerCase()) {
_root.nevAnims.gotoAndStop("correct");
restartDrawing(1);
switch (Math.floor(Math.random() * 4)) {
case 1 :
AudioLibrary.playSound("allRight", 1);
break;
case 2 :
AudioLibrary.playSound("yeahYeah", 1);
break;
case 3 :
AudioLibrary.playSound("yeeeehhhh", 1);
break;
default :
AudioLibrary.playSound("yipee", 1);
}
} else {
_root.nevAnims.gotoAndStop("wrong");
if (Math.random() < 0.5) {
AudioLibrary.playSound("nNNNo", 1);
} else {
AudioLibrary.playSound("oops", 1);
}
}
guess.text = "";
}
function restartDrawing(incScoreBy) {
autoScribbleName = "65406510615616501665";
runAutoScribble = false;
initRandomAutoScribble();
score = score + incScoreBy;
score_txt.text = score.toString();
}
function reportError(newError) {
trace("ERROR *** " + newError);
}
var offsetX = -575;
var offsetY = -300;
var autoScribbleMinutes = 0;
var autoScribbleHours = 0;
var autoScribbleYear = 0;
var autoScribbleMonth = 0;
var autoScribbleName = "7107193392340540645";
var autoScribbleUser = "";
var autoScribble = new Array();
var x0 = 0;
var y0 = 0;
var x1 = 0;
var y1 = 0;
var x2 = 0;
var y2 = 0;
var targetD = 1;
var adjustedD = 1;
var ticker = 0;
var runAutoScribble = false;
var colour = 2236962;
var score = 0;
var alreadyScribbled = "";
var scribbleCount = 0;
}
Symbol 405 MovieClip [__Packages.Timer] Frame 0
class Timer extends MovieClip
{
var lastDisplayedTime, startTime, gotoAndStop, _parent;
function Timer () {
super();
trace("Timer constructor - last updated 15/2/7");
trace(" - - bug fix for slow update on countown timer");
lastDisplayedTime = -1;
trace("timer.constructor: roundTime==null=" + (_root.appSettings.roundTime == null));
_root.gameOver = false;
if (_root.appSettings.roundTime == null) {
if (_root.gameMode == "webMode") {
quiztime = 120000 /* 0x01D4C0 */;
startTimer();
}
} else {
quiztime = _root.appSettings.roundTime * 1000;
}
updateTimerDisplay(Number(_root.appSettings.roundTime));
}
function onEnterFrame() {
if (doRun) {
var _local4 = getTimer() - startTime;
var _local3 = quiztime - _local4;
var _local2 = Math.floor(_local3 / 1000);
if (lastDisplayedTime != _local2) {
updateTimerDisplay(_local2);
}
if ((_local3 <= 0) || (doForceGameOver)) {
doGameOver();
}
}
}
function doGameOver() {
_root.saveMouseTrack();
_root.gameOver = true;
_root.doSetLock("locked", "time_up");
gotoAndStop(100);
updateTimerDisplay(0);
doRun = false;
_parent._parent.nevAnims.gotoAndStop("outro");
if (_root.gameMode == "webMode") {
trace("TIMER: DO GAME OVER _level0.menuItem=" + _level0.menuItem);
_parent.isLocked = true;
_parent.messages_mc.gotoAndStop("timeUp");
if (_level0.menuItem == "single mode") {
_parent.runAutoScribble = false;
}
}
}
function forceGameOver() {
trace("TIMER: FORCE GAME OVER");
doForceGameOver = true;
}
function formatTimeString(timeLeftInSeconds) {
if (timeLeftInSeconds < 0) {
timeLeftInSeconds = 0;
}
if (isNaN(timeLeftInSeconds)) {
trace("Error Timer::formatTimeString timeLeftInSeconds=" + timeLeftInSeconds);
trace("Error Timer::formatTimeString lastDisplayedTime=" + lastDisplayedTime);
trace("Error Timer::formatTimeString startTime=" + startTime);
trace("Error Timer::formatTimeString getTimer()=" + getTimer());
timeLeftInSeconds = 0;
}
var _local3 = timeLeftInSeconds % 60;
var _local5 = (timeLeftInSeconds - _local3) / 60;
var _local4;
if (_local3 < 10) {
_local4 = (String(_local5) + ":0") + String(_local3);
} else {
_local4 = (String(_local5) + ":") + String(_local3);
}
return(_local4);
}
function updateTimerDisplay(timeLeftInSeconds) {
lastDisplayedTime = timeLeftInSeconds;
var _local3 = formatTimeString(timeLeftInSeconds);
_root.doUpdatePlayerTimer(_local3);
_parent.time_txt.text = _local3;
}
function startTimer() {
startTime = getTimer();
lastDisplayedTime = Number.MIN_VALUE;
doRun = true;
_root.doSetLock("unlocked");
}
function stopTimer() {
doRun = false;
gotoAndStop(1);
}
var doRun = false;
var quiztime = 0;
var doForceGameOver = false;
}
Symbol 181 Button
on (rollOver) {
scribbleMode_mc.tween("_xscale", 110, 2, 1.5);
scribbleMode_mc.tween("_yscale", 110, 2, 1.5);
}
on (rollOut) {
scribbleMode_mc.tween("_xscale", 100, 2, 3);
scribbleMode_mc.tween("_yscale", 100, 2, 3);
}
on (press) {
scribbleMode_mc.tween("_xscale", 100, 2, 3);
scribbleMode_mc.tween("_yscale", 100, 2, 3);
singleBtn._visible = false;
scribbleBtn._visible = false;
_level0.menuItem = "scribble mode";
_parent.gotoAndStop("options");
}
Symbol 183 Button
on (rollOver) {
singleMode_mc.tween("_xscale", 110, 2, 1.5);
singleMode_mc.tween("_yscale", 110, 2, 1.5);
}
on (rollOut) {
singleMode_mc.tween("_xscale", 100, 2, 3);
singleMode_mc.tween("_yscale", 100, 2, 3);
}
on (press) {
singleMode_mc.tween("_xscale", 100, 2, 3);
singleMode_mc.tween("_yscale", 100, 2, 3);
singleBtn._visible = false;
scribbleBtn._visible = false;
_level0.menuItem = "single mode";
_parent.gotoAndStop("options");
}
Symbol 184 MovieClip Frame 1
singleBtn._visible = false;
scribbleBtn._visible = false;
Symbol 219 MovieClip Frame 1
if (_root.hasPlayedIntro) {
gotoAndStop ("end");
} else {
play();
}
Symbol 219 MovieClip Frame 64
stop();
Symbol 234 MovieClip Frame 1
if (_root.hasPlayedIntro) {
gotoAndStop ("end");
} else {
play();
}
Symbol 234 MovieClip Frame 64
stop();
Symbol 275 MovieClip Frame 54
this.gotoAndPlay("loop");
Symbol 275 MovieClip Frame 61
stop();
Symbol 276 MovieClip Frame 1
play();
Symbol 276 MovieClip Frame 2
trace("_root.hasPlayedIntro=" + _root.hasPlayedIntro);
if (_root.hasPlayedIntro) {
gotoAndStop ("end");
} else {
play();
}
Symbol 276 MovieClip Frame 20
AudioLibrary.playSound("scribble", 1);
Symbol 276 MovieClip Frame 114
_parent._parent.sounds_mc.pickRandomSound("start");
Symbol 276 MovieClip Frame 120
_parent.fade_mc.tween("_alpha", 0, 8, 4);
_parent.interface1_mc.scribbleBtn._visible = true;
_parent.interface1_mc.singleBtn._visible = true;
_root.hasPlayedIntro = true;
stop();
Symbol 276 MovieClip Frame 121
nev_mc.gotoAndPlay("out");
trace("last frame of intro");
Symbol 287 Button
on (press) {
gotoAndStop ("soundOff");
}
Symbol 288 Button
on (press) {
gotoAndStop ("soundOn");
}
Symbol 289 MovieClip Frame 1
stop();
AudioLibrary.setGlobalVolume(100);
Symbol 289 MovieClip Frame 10
stop();
AudioLibrary.setGlobalVolume(0);
Symbol 295 MovieClip Frame 1
stop();
Symbol 307 Button
on (rollOver) {
play_mc.tween("_xscale", 110, 1.5, 2);
play_mc.tween("_yscale", 110, 1.5, 2);
}
on (rollOut) {
play_mc.tween("_xscale", 100, 2, 3);
play_mc.tween("_yscale", 100, 2, 3);
}
on (press) {
trace("play game btn: _level0.menuItem:" + _level0.menuItem);
if (_level0.menuItem == "single mode") {
_parent._parent.short_mc.nev2_mc.gotoAndPlay(58);
_parent._parent.fade_mc.tween("_alpha", 100, 6, 2);
guideBtn._visible = false;
playBtn._visible = false;
play_mc.tween("_xscale", 100, 2, 3);
play_mc.tween("_yscale", 100, 2, 3);
_parent._parent._parent.getReady_mc.gotoAndPlay("show");
_parent.gotoAndPlay("out");
} else if (_level0.menuItem == "scribble mode") {
this.gotoAndStop("words");
}
}
Symbol 308 Button
on (rollOver) {
guide_mc.tween("_xscale", 110, 1.5, 2);
guide_mc.tween("_yscale", 110, 1.5, 2);
}
on (rollOut) {
guide_mc.tween("_xscale", 100, 2, 3);
guide_mc.tween("_yscale", 100, 2, 3);
}
on (press) {
_parent.options_mc.tween("_x", 563, 2, 3);
this.gotoAndPlay(2);
}
Symbol 323 Button
on (rollOver) {
nextArrow_mc.tween("_xscale", 110, 2, 2);
nextArrow_mc.tween("_yscale", 110, 2, 2);
}
on (rollOut) {
nextArrow_mc.tween("_xscale", 100, 2, 2);
nextArrow_mc.tween("_yscale", 100, 2, 2);
}
on (press) {
nextArrow_mc.tween("_xscale", 100, 2, 2);
nextArrow_mc.tween("_yscale", 100, 2, 2);
guide_mc.nextFrame();
}
Symbol 324 Button
on (rollOver) {
prevArrow_mc.tween("_xscale", 110, 2, 2);
prevArrow_mc.tween("_yscale", 110, 2, 2);
}
on (rollOut) {
prevArrow_mc.tween("_xscale", 100, 2, 2);
prevArrow_mc.tween("_yscale", 100, 2, 2);
}
on (press) {
prevArrow_mc.tween("_xscale", 100, 2, 2);
prevArrow_mc.tween("_yscale", 100, 2, 2);
guide_mc.prevFrame();
}
Symbol 333 MovieClip Frame 1
stop();
_parent.showNext();
Symbol 333 MovieClip Frame 2
stop();
_parent.showPrev();
Symbol 336 Button
on (rollOver) {
closeArrow_mc.tween("_xscale", 110, 2, 2);
closeArrow_mc.tween("_yscale", 110, 2, 2);
}
on (rollOut) {
closeArrow_mc.tween("_xscale", 100, 2, 2);
closeArrow_mc.tween("_yscale", 100, 2, 2);
}
on (press) {
closeArrow_mc.tween("_xscale", 100, 2, 2);
closeArrow_mc.tween("_yscale", 100, 2, 2);
closeBtn._visible = false;
_parent._parent.options_mc.tween("_x", 600, 2, 3);
_parent.gotoAndPlay("close");
}
Symbol 345 MovieClip Frame 1
stop();
_parent.showNext();
Symbol 345 MovieClip Frame 2
stop();
_parent.showPrev();
Symbol 346 MovieClip Frame 1
function showNext() {
nextBtn._visible = true;
prevBtn._visible = false;
nextTxt_mc.tween("_alpha", 100, 6, 2);
prevTxt_mc.tween("_alpha", 0, 6, 2);
prevArrow_mc.tween("_alpha", 0, 6, 2);
prevArrow_mc.tween("_xscale", 10, 2, 3);
prevArrow_mc.tween("_yscale", 10, 2, 3);
prevArrow_mc.tween("_x", 191, 2, 3);
nextArrow_mc.tween("_alpha", 100, 6, 2);
nextArrow_mc.tween("_xscale", 100, 2, 3);
nextArrow_mc.tween("_yscale", 100, 2, 3);
nextArrow_mc.tween("_x", 215, 2, 3);
}
function showPrev() {
nextBtn._visible = false;
prevBtn._visible = true;
nextTxt_mc.tween("_alpha", 0, 6, 2);
prevTxt_mc.tween("_alpha", 100, 6, 2);
prevArrow_mc.tween("_alpha", 100, 6, 2);
prevArrow_mc.tween("_xscale", 100, 2, 3);
prevArrow_mc.tween("_yscale", 100, 2, 3);
prevArrow_mc.tween("_x", 199, 2, 3);
nextArrow_mc.tween("_alpha", 0, 6, 2);
nextArrow_mc.tween("_xscale", 10, 2, 3);
nextArrow_mc.tween("_yscale", 10, 2, 3);
nextArrow_mc.tween("_x", 223, 2, 3);
}
stop();
Symbol 363 MovieClip Frame 1
trace("populate words: scribbleModeWords.length=" + _root.scribbleModeWords.length);
var i = 0;
while (i < 12) {
this["word" + i].text = "";
i++;
}
var flags = new Array(_root.scribbleModeWords.length);
var i = 0;
while (i < _root.scribbleModeWords.length) {
flags[i] = false;
i++;
}
var emergencyBreak = 0;
var currentWord = 0;
do {
var nextWord = Math.floor(_root.scribbleModeWords.length * Math.random());
if (!flags[nextWord]) {
flags[nextWord] = true;
this["word" + currentWord].text = _root.scribbleModeWords[nextWord];
currentWord++;
emergencyBreak = 0;
if (currentWord == 12) {
break;
}
}
emergencyBreak++;
} while (emergencyBreak != 9999);
Symbol 367 Button
on (rollOver) {
playBtn_mc.tween("_xscale", 110, 1.5, 2);
playBtn_mc.tween("_yscale", 110, 1.5, 2);
}
on (rollOut) {
playBtn_mc.tween("_xscale", 100, 2, 3);
playBtn_mc.tween("_yscale", 100, 2, 3);
}
on (press) {
_parent._parent.short_mc.nev1_mc.gotoAndPlay(70);
_parent._parent.fade_mc.tween("_alpha", 100, 6, 2);
playBtn_mc._visible = false;
playBtn_mc._visible = false;
playBtn_mc.tween("_xscale", 100, 2, 3);
playBtn_mc.tween("_yscale", 100, 2, 3);
_parent._parent._parent.getReady_mc.gotoAndPlay("show");
_parent.gotoAndPlay("out");
}
Symbol 368 Button
on (rollOver) {
printBtn_mc.tween("_xscale", 110, 1.5, 2);
printBtn_mc.tween("_yscale", 110, 1.5, 2);
}
on (rollOut) {
printBtn_mc.tween("_xscale", 100, 2, 3);
printBtn_mc.tween("_yscale", 100, 2, 3);
}
on (press) {
var i = 0;
while (i < 12) {
printout["word" + i].text = ((i + 1) + ") ") + words_mc["word" + i].text;
i++;
}
print (printout, "bmovie");
}
Symbol 382 MovieClip Frame 1
stop();
if (_root.skipToScribbleWords) {
trace("mc : paper bag options - _root.skipToScribbleWords");
gotoAndStop ("words");
}
Symbol 382 MovieClip Frame 21
stop();
if (_level0.menuItem == "single mode") {
gameGuide_mc.gotoAndStop(1);
} else if (_level0.menuItem == "scribble mode") {
gameGuide_mc.gotoAndStop(2);
}
_parent.options_mc.tween("_x", 0, 2, 3);
Symbol 382 MovieClip Frame 40
_parent.options_mc.tween("_x", 0, 2, 3);
trace("paper bg options end of close");
gotoAndStop (1);
Symbol 382 MovieClip Frame 41
title_mc.tween("_y", -104, 2, 3);
words_mc.tween("_alpha", 100, 6, 2);
playBtn_mc.tween("_yscale", 100, 2, 3);
playBtn_mc.tween("_xscale", 100, 2, 3);
printBtn_mc.tween("_yscale", 100, 2, 3);
printBtn_mc.tween("_xscale", 100, 2, 3);
_root.skipToScribbleWords = false;
stop();
Symbol 383 MovieClip Frame 11
stop();
Symbol 383 MovieClip Frame 23
stop();
Symbol 388 MovieClip Frame 20
Symbol 388 MovieClip Frame 32
if (_level0.menuItem == "scribble mode") {
stop();
}
Symbol 388 MovieClip Frame 82
stop();
Symbol 389 MovieClip Frame 20
Symbol 389 MovieClip Frame 30
if (_level0.menuItem == "single mode") {
stop();
}
Symbol 389 MovieClip Frame 70
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 2
stop();
Symbol 391 MovieClip Frame 1
trace((("mc: interface 2 - _root.skipToScribbleWords=" + _root.skipToScribbleWords) + ", _level0.menuItem=") + _level0.menuItem);
if (_level0.menuItem == "single mode") {
bg_mc.gotoAndStop(1);
short_mc.gotoAndStop(2);
short_mc._x = 123;
} else if (_level0.menuItem == "scribble mode") {
bg_mc.gotoAndStop(2);
short_mc.gotoAndStop(1);
short_mc._x = -286;
}
fade_mc.tween("_alpha", 0, 6, 2);
Symbol 398 Button
on (press) {
_parent.intro_mc.gotoAndPlay(2);
_parent.gotoAndPlay("title");
}