Frame 2
mochi.as2.MochiServices.connect("6b37659c86926d6f");
stop();
onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
};
Instance of Symbol 101 MovieClip [API Connector (NewgroundsAPI)] in Frame 2
//component parameters
onClipEvent (construct) {
encryption_key = "tCb6u9OS2BbGU4v430p27xY7jJ4tT9AZ";
movie_id = "11211";
movie_version = "";
fake_session = true;
debug = true;
error_screens = true;
medal_popups = true;
}
Instance of Symbol 176 MovieClip in Frame 2
on (release) {
getURL ("http://www.wordgames.com", "_blank");
}
Frame 5
stop();
this.createEmptyMovieClip("mainSong_mc", 222);
mainSong_mc = new Sound(mainSong_mc);
mainSong_mc.attachSound("mainSong");
this.createEmptyMovieClip("wind_mc", 223);
wind_mc = new Sound(wind_mc);
wind_mc.attachSound("wind");
mainSong_mc.start(0, 99);
var vol = 100;
mainSong_mc.setVolume(vol);
var onMenu = false;
var vol2 = 20;
wind_mc.start(0, 9999);
wind_mc.setVolume(vol2);
Frame 6
stop();
var difficulty = 2;
resetGame = function () {
delete this.onEnterFrame;
removeMovieClip(wordGame);
_root.gotoAndPlay("startGame");
};
trans.goToMenu = false;
menu_mc.play();
onMenu = true;
Instance of Symbol 261 MovieClip "trans" in Frame 6
onClipEvent (load) {
var goToMenu = false;
}
onClipEvent (enterFrame) {
if (goToMenu) {
_root.gameOver = true;
_root.wordGame.removeMovieClip();
}
}
Instance of Symbol 263 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.onMenu) {
if (_root.vol > 20) {
_root.vol = _root.vol - 5;
_root.mainSong_mc.setVolume(_root.vol);
}
if (_root.vol2 < 100) {
_root.vol2 = _root.vol2 + 2;
_root.wind_mc.setVolume(_root.vol2);
}
} else {
if (_root.vol < 100) {
_root.vol = _root.vol + 5;
_root.mainSong_mc.setVolume(_root.vol);
}
if (_root.vol2 > 20) {
_root.vol2 = _root.vol2 - 2;
_root.wind_mc.setVolume(_root.vol2);
}
}
}
Frame 7
onMenu = false;
Frame 9
stop();
albet1 = new Array("Z", "X", "C", "V", "B", "N", "M");
albet2 = new Array("Z", "X", "C", "V", "B", "N", "M", "A", "S", "D", "F", "G", "H", "J", "K", "L");
albet3 = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
currentAlbet = albet3;
keys1 = new Array(90, 88, 67, 86, 66, 78, 77);
keys2 = new Array(90, 88, 67, 86, 66, 78, 77, 65, 83, 68, 70, 71, 72, 74, 75, 76);
keys3 = new Array(65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90);
currentKeys = keys3;
letters = new Array();
var projectileDepth = 10;
var projectileDepthMax = 20;
this.createEmptyMovieClip("boxMC", 100);
var keyDownChecker = false;
var pressedKey = 0;
var i = 0;
var i2 = 0;
var boxLength = 5;
var curBox;
var projectile;
var spacing = 180;
var flag1 = false;
var flag2 = false;
var clockCounter = 0;
timer = 60;
var gameOver = false;
score = 0;
var doubleTapFix = 0;
kosTotal = 3;
kos = 0;
buildLetters = function () {
i = 0;
while (i < boxLength) {
curBox = attachMovie("letterBox", "letterBox" + this.getNextHighestDepth(), this.getNextHighestDepth());
curBox._x = spacing;
curBox._y = 72;
curBox.letter = currentAlbet[random(currentAlbet.length)];
letters.push(curBox);
spacing = spacing + (curBox._width + 10);
i++;
}
};
setAlpha = function () {
i = 1;
while (i < boxLength) {
letters[i - 1]._alpha = i * 15;
letters[boxLength - 1]._alpha = 100;
i++;
}
};
pushLetters = function () {
i = 1;
while (i < letters.length) {
letters[i]._x = letters[i]._x + 67.3;
letters[i].gotoAndPlay(1);
i++;
}
};
if (difficulty < 3) {
attachMovie("wordGame", "wordGame", _root.getNextHighestDepth());
wordGame._x = 360;
wordGame._y = 72;
} else {
buildLetters();
setAlpha();
}
onEnterFrame = function () {
if (!gameOver) {
if (difficulty >= 3) {
if (!stage_mc.boss.cliffEdged) {
pressedKey = 0;
while (pressedKey < currentKeys.length) {
if (Key.isDown(currentKeys[pressedKey])) {
if (letters[4].letter == currentAlbet[pressedKey]) {
if (doubleTapFix == 0) {
letters[4].removeMovieClip();
letters.pop();
letters.unshift(attachMovie("letterBox", "letterBox" + this.getNextHighestDepth(), this.getNextHighestDepth()));
letters[0].letter = currentAlbet[random(currentAlbet.length)];
letters[0]._x = 180;
letters[0]._y = 70;
pushLetters();
setAlpha();
if (projectileDepth > projectileDepthMax) {
projectileDepth = 10;
} else {
projectileDepth++;
}
projectile = stage_mc.attachMovie("projectile_mc", "newprojectile" + projectileDepth, projectileDepth);
projectile._x = stage_mc.hero._x;
projectile._y = stage_mc.hero._y - (stage_mc.hero._height / 2);
stage_mc.hero.gotoAndPlay(2);
}
}
}
pressedKey++;
}
if (flag1) {
removeMovieClip(wordGame);
flag1 = false;
}
} else if (!flag1) {
attachMovie("wordGame", "wordGame", _root.getNextHighestDepth());
wordGame._x = 360;
wordGame._y = 72;
flag1 = true;
}
}
if (difficulty == 2) {
if (stage_mc.boss.cliffEdged) {
if (!flag2) {
attachMovie("game2", "game2", _root.getNextHighestDepth());
game2._x = 360;
game2._y = 72;
flag2 = true;
}
} else {
removeMovieClip(game2);
flag2 = false;
}
}
if (clockCounter < 45) {
clockCounter++;
} else {
timer--;
clockCounter = 0;
}
if (timer == 0) {
gameOver = true;
retryBox.gameOver = true;
}
}
i2 = 0;
while (i2 < 26) {
if (Key.isDown(i2 + 65)) {
doubleTapFix = 2;
}
i2++;
}
if (doubleTapFix > 0) {
doubleTapFix--;
}
if (stage_mc.boss.moveable) {
if (stage_mc.boss.cliffEdged) {
stage_mc._x = stage_mc._x + (((stage_mc.boss._x + stage_mc._x) - 360) / -7);
} else {
stage_mc._x = stage_mc._x + ((((stage_mc.boss._x / 1.5) - 100) + stage_mc._x) / -7);
}
}
};
Instance of Symbol 328 MovieClip "retryBox" in Frame 9
onClipEvent (load) {
gameOver = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (gameOver) {
_visible = true;
_x = 320;
_y = 249;
} else {
_x = 320;
_y = -63;
_visible = false;
}
}
Instance of Symbol 28 MovieClip [win] "win" in Frame 9
onClipEvent (load) {
_x = 320.8;
_y = 177.2;
}
Frame 10
gotoAndStop ("menu");
Frame 11
stop();
var o = {n:[13, 10, 3, 14, 10, 8, 13, 15, 0, 3, 3, 10, 15, 9, 5, 11], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID});
Frame 12
gotoAndStop ("menu");
Instance of Symbol 341 MovieClip in Frame 13
on (release) {
getURL ("http://www.sun-studios.net", "_blank");
}
Instance of Symbol 18 MovieClip in Frame 13
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_root.gotoAndStop("menu");
}
Symbol 5 MovieClip [fps] Frame 1
fps = 45;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
onEnterFrame = function () {
var _local1 = new Date();
timepassed = (((_local1.getMilliseconds() - lasttime) >= 0) ? (_local1.getMilliseconds() - lasttime) : (1000 + (_local1.getMilliseconds() - lasttime)));
fps = Math.round(10000 / timepassed) / 10;
lasttime = _local1.getMilliseconds();
};
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 15
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 15
stop();
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 15
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 15
stop();
Symbol 28 MovieClip [win] Frame 1
gotoAndStop ("safe");
Symbol 28 MovieClip [win] Frame 7
_root.score = _root.score * (_root.difficulty * 2);
if (_root.domain == "ungrounded.net") {
switch (_root.difficulty) {
case 1 :
var medal_name = "So you can type ";
com.newgrounds.API.unlockMedal(medal_name);
break;
case 2 :
var medal_name = "Secretary";
com.newgrounds.API.unlockMedal(medal_name);
break;
case 3 :
var medal_name = "Cliff keeper";
com.newgrounds.API.unlockMedal(medal_name);
break;
case 4 :
var medal_name = "Skitzo";
com.newgrounds.API.unlockMedal(medal_name);
}
}
Instance of Symbol 11 MovieClip in Symbol 28 MovieClip [win] Frame 55
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_parent.gotoAndPlay("submitScore");
}
Instance of Symbol 15 MovieClip in Symbol 28 MovieClip [win] Frame 58
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 18 MovieClip in Symbol 28 MovieClip [win] Frame 62
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_root.trans.goToMenu = true;
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 21 MovieClip in Symbol 28 MovieClip [win] Frame 66
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
getURL ("http://www.wordgames.com", "_blank");
}
Symbol 28 MovieClip [win] Frame 83
if (_root.domain == "ungrounded.net") {
if (_root.score >= 13000) {
var medal_name = "Keyboard pro";
com.newgrounds.API.unlockMedal(medal_name);
}
if (_root.score >= 14000) {
var medal_name = "Keyboard Master";
com.newgrounds.API.unlockMedal(medal_name);
}
if (_root.score >= 15000) {
var medal_name = "Godly twitch";
com.newgrounds.API.unlockMedal(medal_name);
}
if (_root.score >= 16000) {
var medal_name = "J. Fox syndrome";
com.newgrounds.API.unlockMedal(medal_name);
}
}
Symbol 28 MovieClip [win] Frame 148
stop();
Symbol 28 MovieClip [win] Frame 149
stop();
Instance of Symbol 11 MovieClip in Symbol 28 MovieClip [win] Frame 150
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
var o = {n:[13, 10, 3, 14, 10, 8, 13, 15, 0, 3, 3, 10, 15, 9, 5, 11], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:playerscore, name:playername});
}
Instance of Symbol 15 MovieClip in Symbol 28 MovieClip [win] Frame 150
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 18 MovieClip in Symbol 28 MovieClip [win] Frame 150
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_root.trans.goToMenu = true;
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 21 MovieClip in Symbol 28 MovieClip [win] Frame 150
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
Instance of Symbol 11 MovieClip in Symbol 28 MovieClip [win] Frame 150
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
var o = {n:[13, 10, 3, 14, 10, 8, 13, 15, 0, 3, 3, 10, 15, 9, 5, 11], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:playerscore, name:playername});
}
Symbol 28 MovieClip [win] Frame 163
stop();
Instance of Symbol 11 MovieClip in Symbol 28 MovieClip [win] Frame 163
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
var o = {n:[13, 10, 3, 14, 10, 8, 13, 15, 0, 3, 3, 10, 15, 9, 5, 11], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:_root.score, name:_parent.playerName});
}
Symbol 37 MovieClip Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (1675 % 511) * true);
return(\x03);
}
var \x01 = (848 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 39 MovieClip Frame 10
stop();
Symbol 41 MovieClip Frame 37
_parent.setGotoFrame("done");
stop();
Symbol 53 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2503 % 511) * true);
return(\x03);
}
var \x01 = (-389 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 53 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 2
medal.attachIcon(icon);
Symbol 53 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 10
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (1275 % 511) * true);
return(\x03);
}
var \x01 = (536 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 53 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 59 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2102 % 511) * true);
return(\x03);
}
var \x01 = (920 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 59 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 10
stop();
Symbol 59 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 62 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 1
!!!ERROR
Symbol 62 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 10
stop();
Symbol 62 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 83 MovieClip [NewgroundsAPIAsset_big_popup_background] Frame 1
!!!ERROR
Symbol 87 Button
on (release) {
!!!ERROR
Symbol 93 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 95 MovieClip [NewgroundsAsset_New_Version_Available] Frame 1
!!!ERROR
Symbol 96 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 100 MovieClip [NewgroundsAsset_Illegal_Host] Frame 1
!!!ERROR
Symbol 101 MovieClip [API Connector (NewgroundsAPI)] Frame 1
#initclip 29
Object.registerClass("API Connector (NewgroundsAPI)", com.newgrounds.components.APIConnector);
#endinitclip
Symbol 101 MovieClip [API Connector (NewgroundsAPI)] Frame 20
_visible = false;
Symbol 104 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
!!!ERROR
Symbol 102 MovieClip [__Packages.com.newgrounds.APIError] Frame 0
!!!ERROR
Symbol 103 MovieClip [__Packages.com.newgrounds.API] Frame 0
!!!ERROR
Symbol 105 MovieClip [__Packages.com.newgrounds.SaveFile] Frame 0
!!!ERROR
Symbol 106 MovieClip [__Packages.com.newgrounds.SaveGroup] Frame 0
!!!ERROR
Symbol 109 MovieClip [__Packages.com.newgrounds.SaveGroupQuery] Frame 0
!!!ERROR
Symbol 111 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner] Frame 0
!!!ERROR
Symbol 110 MovieClip [__Packages.com.newgrounds.encoders.BaseN] Frame 0
!!!ERROR
Symbol 120 MovieClip [__Packages.com.newgrounds.APIEventDispatcher] Frame 0
!!!ERROR
Symbol 108 MovieClip [__Packages.com.newgrounds.APIEvent] Frame 0
!!!ERROR
Symbol 116 MovieClip [__Packages.com.newgrounds.ScoreBoard] Frame 0
!!!ERROR
Symbol 342 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
!!!ERROR
Symbol 343 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
!!!ERROR
Symbol 344 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
!!!ERROR
Symbol 345 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
!!!ERROR
Symbol 346 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
!!!ERROR
Symbol 347 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
!!!ERROR
Symbol 348 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
!!!ERROR
Symbol 29 MovieClip [__Packages.com.newgrounds.components.APIConnector] Frame 0
!!!ERROR
Symbol 107 MovieClip [__Packages.com.newgrounds.ValidationTools] Frame 0
!!!ERROR
Symbol 112 MovieClip [__Packages.com.newgrounds.encoders.SerialXML] Frame 0
!!!ERROR
Symbol 113 MovieClip [__Packages.com.newgrounds.encoders.LZW2] Frame 0
!!!ERROR
Symbol 114 MovieClip [__Packages.com.newgrounds.encoders.LZW] Frame 0
!!!ERROR
Symbol 115 MovieClip [__Packages.com.newgrounds.Medal] Frame 0
!!!ERROR
Symbol 117 MovieClip [__Packages.com.newgrounds.Score] Frame 0
!!!ERROR
Symbol 118 MovieClip [__Packages.com.newgrounds.encoders.RC4] Frame 0
!!!ERROR
Symbol 119 MovieClip [__Packages.com.newgrounds.encoders.JSON] Frame 0
!!!ERROR
Symbol 121 MovieClip [__Packages.com.newgrounds.encoders.MD5] Frame 0
!!!ERROR
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 15
stop();
Symbol 139 MovieClip Frame 38
gotoAndStop (1);
Symbol 139 MovieClip Frame 46
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 15
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 12
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 13
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 15
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 15
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 15
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 15
stop();
Symbol 163 MovieClip Frame 15
stop();
Symbol 165 MovieClip Frame 15
stop();
Symbol 167 MovieClip Frame 15
stop();
Symbol 169 MovieClip Frame 15
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
Instance of Symbol 139 MovieClip in Symbol 171 MovieClip Frame 30
on (rollOver) {
if (this._currentframe < 39) {
gotoAndPlay ("over");
}
}
on (rollOut) {
if (this._currentframe < 39) {
gotoAndPlay ("out");
}
}
on (press) {
if (this._currentframe < 39) {
gotoAndPlay ("press");
_parent.gotoAndPlay("openMore");
}
}
Instance of Symbol 142 MovieClip in Symbol 171 MovieClip Frame 34
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
Instance of Symbol 145 MovieClip in Symbol 171 MovieClip Frame 35
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_root.gotoAndStop("showScore");
}
Instance of Symbol 148 MovieClip in Symbol 171 MovieClip Frame 52
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_root.gotoAndStop("credits");
}
Instance of Symbol 142 MovieClip in Symbol 171 MovieClip Frame 54
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
getURL ("http://www.wordgames.com", "_blank");
}
Symbol 171 MovieClip Frame 58
stop();
Instance of Symbol 151 MovieClip in Symbol 171 MovieClip Frame 60
on (rollOver) {
if (this._currentframe < 39) {
gotoAndPlay ("over");
}
}
on (rollOut) {
if (this._currentframe < 39) {
gotoAndPlay ("out");
}
}
on (press) {
_root.difficulty = 1;
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 154 MovieClip in Symbol 171 MovieClip Frame 62
on (rollOver) {
if (this._currentframe < 39) {
gotoAndPlay ("over");
}
}
on (rollOut) {
if (this._currentframe < 39) {
gotoAndPlay ("out");
}
}
on (press) {
_root.difficulty = 2;
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 160 MovieClip in Symbol 171 MovieClip Frame 66
on (rollOver) {
if (this._currentframe < 39) {
gotoAndPlay ("over");
}
}
on (rollOut) {
if (this._currentframe < 39) {
gotoAndPlay ("out");
}
}
on (press) {
_root.difficulty = 4;
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 151 MovieClip in Symbol 171 MovieClip Frame 70
on (rollOver) {
if (this._currentframe < 39) {
gotoAndPlay ("over");
}
_parent.instructions.gotoAndStop(1);
}
on (rollOut) {
if (this._currentframe < 39) {
gotoAndPlay ("out");
}
}
on (press) {
_root.difficulty = 1;
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 154 MovieClip in Symbol 171 MovieClip Frame 72
on (rollOver) {
if (this._currentframe < 39) {
gotoAndPlay ("over");
}
_parent.instructions.gotoAndStop(2);
}
on (rollOut) {
if (this._currentframe < 39) {
gotoAndPlay ("out");
}
}
on (press) {
_root.difficulty = 2;
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 157 MovieClip in Symbol 171 MovieClip Frame 74
on (rollOver) {
if (this._currentframe < 39) {
gotoAndPlay ("over");
}
_parent.instructions.gotoAndStop(3);
}
on (rollOut) {
if (this._currentframe < 39) {
gotoAndPlay ("out");
}
}
on (press) {
_root.difficulty = 3;
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 160 MovieClip in Symbol 171 MovieClip Frame 76
on (rollOver) {
if (this._currentframe < 39) {
gotoAndPlay ("over");
}
_parent.instructions.gotoAndStop(4);
}
on (rollOut) {
if (this._currentframe < 39) {
gotoAndPlay ("out");
}
}
on (press) {
_root.difficulty = 4;
_root.trans.gotoAndPlay(2);
}
Symbol 171 MovieClip Frame 84
stop();
Symbol 176 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 176 MovieClip Frame 37
startMovie();
Symbol 198 MovieClip [dust1] Frame 21
this.removeMovieClip();
Symbol 202 MovieClip [dust2] Frame 14
this.removeMovieClip();
Symbol 210 MovieClip [dust3] Frame 18
this.removeMovieClip();
Symbol 221 MovieClip [dust4] Frame 19
this.removeMovieClip();
Symbol 222 MovieClip [game2] Frame 1
var i = 0;
var curBox;
var spacing = -166.875;
letters = new Array();
deathRow = new Array();
var goal = 5;
var pressedKey = 0;
i = 0;
while (i < 5) {
curBox = attachMovie("letterBoxWord", "letterBoxWord" + this.getNextHighestDepth(), this.getNextHighestDepth());
curBox._x = spacing;
curBox._y = 0;
curBox.letter = _root.albet3[random(_root.albet3.length)];
letters.push(curBox);
spacing = spacing + (curBox._width + 10);
i++;
}
onEnterFrame = function () {
if (goal > 0) {
pressedKey = 0;
while (pressedKey < 26) {
if (Key.isDown(pressedKey + 65)) {
if (letters[0].letter == _root.albet3[pressedKey]) {
if (_root.doubleTapFix == 0) {
letters[0]._alpha = 30;
deathRow.push(letters[0]);
letters.shift();
goal--;
if (_root.projectileDepth > _root.projectileDepthMax) {
_root.projectileDepth = 10;
} else {
_root.projectileDepth++;
}
_root.projectile = _root.stage_mc.attachMovie("projectile_mc", "newprojectile" + _root.projectileDepth, _root.projectileDepth);
_root.projectile._x = _root.stage_mc.boss._x + 350;
_root.projectile._y = _root.stage_mc.hero._y - (_root.stage_mc.hero._height / 2);
_root.stage_mc.hero.gotoAndPlay(2);
}
}
}
pressedKey++;
}
} else if (goal == 0) {
if (_root.stage_mc.boss.cliffEdged) {
if (_root.projectile.hitTest(_root.stage_mc.boss)) {
_root.stage_mc.boss.moveable = false;
_root.stage_mc.boss._y = _root.stage_mc.boss._y - 5;
_root.stage_mc.boss.grav = 20;
_root.stage_mc.boss.xSpeed = -7;
_root.kos++;
if (_root.kos == 3) {
_root.win.gotoAndPlay(2);
_root.score = _root.score * _root.timer;
_root.timer = 0;
_root.gameOver = true;
}
goal = -1;
}
}
}
if (goal == -1) {
if (_root.kos < 3) {
if (_root.stage_mc.boss._y == 600) {
with (_root.stage_mc.boss) {
_x = origX;
_y = origY;
moveable = true;
cliffEdged = false;
gotoAndStop(1);
}
}
}
}
};
Symbol 223 MovieClip [wordGame] Frame 1
words = new Array("DURP", "BUSTER", "SORROW", "VIOLATE", "BREACH", "VEAL", "DUENNA", "SONOROUS", "CONDUIT", "CONDUCT", "SURREAL", "OXIDIZES", "FOISTING", "CACOMIXL", "BATISTES", "ARBOREAL", "ZODIAC", "CLENCH", "OBSCURE", "REASON", "CRUST", "SPOUT", "CREST", "ACTION", "HEAVY", "SHEAR", "SNIFF", "TABLE", "MILE", "STYLE", "DINT", "FAULT", "GUILT", "ENDAH", "DORIYE", "DOWN", "GIMP", "GREET", "GUNNER", "GLUE", "CRADLE", "NAME", "NEVER", "NORTH", "WEST", "SERVE", "INSULT", "INCEST", "INTEND", "SHOE", "SOUL", "SILVER", "YACK", "GRIM", "KNEE", "DARK", "LIGHT", "HURRY", "SLOTH", "DENSE", "INSIDE", "LIVER", "GLAZE", "RIDGE", "HUNT", "KILL", "LEAN", "ORAL", "WEATHER", "HOTEL", "VIDEO", "DESIGN", "DAMP", "UNIT", "SWIM", "JERK", "MORON", "BLAST", "BEARD", "LOVE", "KIND", "QUAD", "REST", "ZEEKOE", "ZAIM", "ZIPPER", "XANG", "XENU", "CHEESE", "FIGHT", "BACON", "SHAKE", "WINGED", "STILL", "MOOSE", "LARD", "LOST", "LONE", "BEAST", "BEYOND", "SCOOP", "BOOST", "SOFT", "TREAT", "CAST", "STREAM", "ONLINE", "CREED", "BEANS", "INSANE", "PLEASE", "FEAT", "RIDDLE", "BULLY", "FLAME", "BUST", "CASH", "MIDGET", "ROYAL", "SENSE", "YOUTH", "DIRTY", "FILTH", "FREAK", "TROMP", "TROTH", "COKE", "SNARE", "GHAST", "GRAPE", "INTEL", "EFFORT", "BLOOD", "CRIME", "LIGHT", "DRUNK", "TRIBE");
var currentWord = words[random(words.length)];
var goal = currentWord.length;
letters = new Array();
deathRow = new Array();
var i = 0;
var curBox;
var spacing = ((currentWord.length * 66.75) / -2);
var pressedKey = 0;
var flag1 = false;
var flag2 = false;
buildWord = function () {
letters.length = 0;
letters = [];
i = 0;
while (i < currentWord.length) {
curBox = attachMovie("letterBoxWord", "letterBoxWord" + this.getNextHighestDepth(), this.getNextHighestDepth());
curBox._x = spacing;
curBox._y = 0;
curBox.letter = currentWord.charAt(i);
letters.push(curBox);
spacing = spacing + (curBox._width + 10);
i++;
}
};
buildWord();
onEnterFrame = function () {
if (goal > 0) {
pressedKey = 0;
while (pressedKey < 26) {
if (Key.isDown(pressedKey + 65)) {
if (letters[0].letter == _root.albet3[pressedKey]) {
letters[0]._alpha = 30;
deathRow.push(letters[0]);
letters.shift();
goal--;
if (_root.projectileDepth > _root.projectileDepthMax) {
_root.projectileDepth = 10;
} else {
_root.projectileDepth++;
}
if (_root.difficulty < 3) {
_root.projectile = _root.stage_mc.attachMovie("projectile_mc", "newprojectile" + _root.projectileDepth, _root.projectileDepth);
if (_root.stage_mc.boss.cliffEdged) {
_root.projectile._x = _root.stage_mc.boss._x + 350;
} else {
_root.projectile._x = _root.stage_mc.hero._x;
}
_root.projectile._y = _root.stage_mc.hero._y - (_root.stage_mc.hero._height / 2);
_root.stage_mc.hero.gotoAndPlay(2);
} else {
_root.projectile = _root.stage_mc.attachMovie("projectile_mc", "newprojectile" + _root.projectileDepth, _root.projectileDepth);
_root.projectile._x = _root.stage_mc.boss._x + 350;
_root.projectile._y = _root.stage_mc.hero._y - _root.stage_mc.hero._height;
}
}
}
pressedKey++;
}
} else if (goal == 0) {
if (_root.difficulty < 3) {
if (_root.stage_mc.boss.cliffEdged) {
if (_root.difficulty == 1) {
if (_root.projectile.hitTest(_root.stage_mc.boss)) {
_root.stage_mc.boss.moveable = false;
_root.stage_mc.boss._y = _root.stage_mc.boss._y - 5;
_root.stage_mc.boss.grav = 20;
_root.stage_mc.boss.xSpeed = -7;
_root.kos++;
if (_root.kos == 3) {
_root.win.gotoAndPlay(2);
_root.score = _root.score * _root.timer;
_root.timer = 0;
_root.gameOver = true;
}
goal = -1;
}
}
} else {
i = 0;
while (i < deathRow.length) {
deathRow[i].removeMovieClip();
i++;
}
deathRow.length = 0;
deathRow = [];
currentWord = words[random(words.length)];
spacing = (currentWord.length * 66.75) / -2;
buildWord();
goal = currentWord.length;
}
} else if (_root.projectile.hitTest(_root.stage_mc.boss)) {
_root.stage_mc.boss.moveable = false;
_root.stage_mc.boss._y = _root.stage_mc.boss._y - 5;
_root.stage_mc.boss.grav = 20;
_root.stage_mc.boss.xSpeed = -7;
_root.kos++;
if (_root.kos == 3) {
_root.win.gotoAndPlay(2);
_root.score = _root.score * _root.timer;
_root.timer = 0;
_root.gameOver = true;
}
goal = -1;
}
}
if (goal == -1) {
if (_root.kos < 3) {
if (_root.stage_mc.boss._y == 600) {
with (_root.stage_mc.boss) {
_x = origX;
_y = origY;
moveable = true;
cliffEdged = false;
i = 0;
while (i < deathRow.length) {
deathRow[i].removeMovieClip();
i++;
}
i = 0;
while (i < letters.length) {
letters[i].removeMovieClip();
i++;
}
deathRow.length = 0;
deathRow = [];
letters.length = 0;
letters = [];
currentWord = words[random(words.length)];
spacing = (currentWord.length * 66.75) / -2;
buildWord();
goal = currentWord.length;
gotoAndStop(1);
}
}
}
}
if (_root.stage_mc.boss.cliffEdged) {
if (!flag1) {
if (_root.difficulty < 3) {
i = 0;
while (i < deathRow.length) {
deathRow[i].removeMovieClip();
i++;
}
i = 0;
while (i < letters.length) {
letters[i].removeMovieClip();
i++;
}
deathRow.length = 0;
deathRow = [];
letters.length = 0;
letters = [];
goal = -1;
if (_root.difficulty == 1) {
currentWord = words[random(words.length)];
spacing = (currentWord.length * 66.75) / -2;
buildWord();
goal = currentWord.length;
flag1 = true;
}
}
}
} else {
if ((_root.difficulty == 2) && (goal == -1)) {
goal = 0;
}
flag1 = false;
}
};
Symbol 239 MovieClip [projectile_mc] Frame 1
var hitEnemy = false;
var xSpeed = -30;
var ySpeed = 5;
var hitDust;
var i = 0;
if (!_parent.boss.cliffEdged) {
if (_parent.hero._currentframe < 2) {
this.proItem.gotoAndStop(_parent.hero.projec._currentframe);
} else {
this.proItem.gotoAndStop(random(14) + 1);
}
} else {
this.proItem.gotoAndStop(random(14) + 1);
}
var spinSpeed = ((30 + random(10)) - (random(10) * -1));
Symbol 239 MovieClip [projectile_mc] Frame 2
ySpeed = ySpeed - 0.5;
_y = (_y - ySpeed);
_x = (_x + xSpeed);
_rotation = (_rotation + spinSpeed);
if (!hitEnemy) {
if (this.hitTest(_parent.boss)) {
i = random(4) + 1;
spinSpeed = (10 + random(20)) - random(5);
hitDust = _parent.attachMovie("dust" + i, "dust" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth());
hitDust._x = this._x - 60;
hitDust._y = this._y;
xSpeed = (5 + random(3)) - random(3);
ySpeed = (18 + random(8)) - random(8);
if (!_root.stage_mc.boss.cliffEdged) {
_parent.boss.xSpeed = _parent.boss.hurt;
}
if (!_parent.boss.cliffEdged) {
_parent.boss.gotoAndStop(1);
_parent.boss.gotoAndStop("hurt");
}
_parent.boss.hitsTaken++;
_root.score++;
hitEnemy = true;
}
} else {
ySpeed--;
if (xSpeed > 0) {
xSpeed = xSpeed - 0.2;
} else {
xSpeed = xSpeed + 0.2;
}
}
if (this._y > 400) {
this.removeMovieClip();
}
Symbol 239 MovieClip [projectile_mc] Frame 3
gotoAndPlay (2);
Symbol 243 MovieClip [letterBoxWord] Frame 1
var safeFrame = _root._currentframe;
Symbol 243 MovieClip [letterBoxWord] Frame 10
if (_root.gameOver) {
_visible = false;
}
if (_root._currentframe != this.safeFrame) {
this.removeMovieClip();
}
Symbol 243 MovieClip [letterBoxWord] Frame 11
gotoAndPlay (10);
Symbol 244 MovieClip [letterBox] Frame 1
var safeFrame = _root._currentframe;
Symbol 244 MovieClip [letterBox] Frame 10
if (!_root.stage_mc.boss.cliffEdged) {
_visible = true;
} else {
_visible = false;
}
if (_root.gameOver) {
_visible = false;
}
if (_root._currentframe != this.safeFrame) {
this.removeMovieClip();
}
Symbol 244 MovieClip [letterBox] Frame 11
gotoAndPlay (10);
Symbol 257 MovieClip Frame 201
_root.nextFrame();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 67
if (goToMenu) {
_root.gotoAndStop("menu");
} else {
_root.resetGame();
}
Symbol 261 MovieClip Frame 137
gotoAndStop (1);
Symbol 267 MovieClip Frame 1
_visible = false;
Symbol 269 MovieClip Frame 1
_visible = false;
Symbol 287 MovieClip Frame 18
if (_parent.cliffEdged) {
_parent.gotoAndStop("edge");
} else if (_parent.currentSpeed < 2) {
_parent.gotoAndStop(_parent.currentSpeed + 1);
} else {
_parent.gotoAndStop("walk3");
}
Symbol 308 MovieClip Frame 76
stop();
Symbol 309 MovieClip Frame 1
stop();
Instance of Symbol 282 MovieClip in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
var percent = 0;
}
onClipEvent (enterFrame) {
if (_parent.cliffEdged) {
_visible = true;
percent = (_parent.cliffRecover / _parent.cliffRecoverOrig) * 100;
bar._xscale = percent;
} else {
_visible = false;
}
if (!_parent.moveable) {
_visible = false;
}
}
Symbol 311 MovieClip Frame 1
_visible = false;
Symbol 323 MovieClip Frame 1
stop();
Instance of Symbol 238 MovieClip "projec" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(14) + 1);
}
Instance of Symbol 128 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_parent._x / -5);
}
Instance of Symbol 309 MovieClip "boss" in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
var xSpeed = 0;
var currentSpeed = 0;
var hurt = 0;
var hitsTaken = 0;
var distToHero = 0;
var cliffEdged = false;
var origX = _x;
var origY = _y;
switch (_root.difficulty) {
case 1 :
var cliffRecover = 270;
var moveSpeed = new Array(0.5, 1.5, 2.5, 8);
var hurtArray = new Array(-7, -9, -11);
break;
case 2 :
var cliffRecover = 200;
var moveSpeed = new Array(1, 2.5, 4, 8);
var hurtArray = new Array(-7, -9, -11);
break;
case 3 :
var cliffRecover = 150;
var moveSpeed = new Array(2.5, 4, 5, 8);
var hurtArray = new Array(-9, -11, -13);
break;
case 4 :
var cliffRecover = 115;
var moveSpeed = new Array(3.5, 5, 7, 8);
var hurtArray = new Array(-10, -11.5, -12.5);
}
var cliffRecoverOrig = cliffRecover;
var moveable = true;
var grav = 0;
var win = false;
var lose = false;
}
onClipEvent (enterFrame) {
if (!lose) {
if (moveable) {
if (xSpeed > 0) {
xSpeed = xSpeed - 0.5;
} else if (xSpeed < 0) {
xSpeed = xSpeed + 0.5;
}
_x = (_x + xSpeed);
if (!cliffEdged) {
_x = (_x + moveSpeed[currentSpeed]);
hurt = hurtArray[currentSpeed];
distToHero = _parent.hero._x - this._x;
if (this.bound.hitTest(_parent.cliffEdge_event)) {
cliffEdged = true;
}
if (this.bound.hitTest(_parent.hero)) {
moveable = false;
lose = true;
_root.gameOver = true;
_root.retryBox.gameOver = true;
}
cliffRecover = cliffRecoverOrig;
if (hitsTaken == 0) {
currentSpeed = 0;
} else if (hitsTaken == 15) {
if (currentSpeed < 1) {
currentSpeed = 1;
}
} else if (hitsTaken == 30) {
if (currentSpeed < 2) {
currentSpeed = 2;
}
}
if (_root.gameOver) {
currentSpeed = 3;
}
} else {
gotoAndStop ("edged");
xSpeed = 0;
if (cliffRecover > 0) {
cliffRecover--;
} else {
_x = (_x + 50);
xSpeed = moveSpeed[currentSpeed] * 3;
if (currentSpeed < 2) {
currentSpeed++;
}
if (this._x > (_parent.cliffEdge_event._x + (_parent.cliffEdge_event._width / 2))) {
if (cliffEdged) {
gotoAndStop(currentSpeed + 1);
cliffEdged = false;
}
}
}
}
} else {
if (_parent.ground.hitTest(this.bound)) {
_y = (_y-1);
grav = 0;
} else {
gotoAndStop ("death");
}
_x = (_x + xSpeed);
grav--;
_y = (_y - grav);
}
if (_y > 600) {
_y = 600;
_x = 0;
}
} else {
gotoAndStop ("feed");
_parent.hero._visible = false;
}
}
Instance of Symbol 15 MovieClip in Symbol 328 MovieClip Frame 1
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 18 MovieClip in Symbol 328 MovieClip Frame 1
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
_root.trans.goToMenu = true;
_root.trans.gotoAndPlay(2);
}
Instance of Symbol 21 MovieClip in Symbol 328 MovieClip Frame 1
on (rollOver) {
gotoAndPlay ("over");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (release) {
getURL ("http://www.wordgames.com", "_blank");
}
Symbol 341 MovieClip Frame 80
stop();