Frame 1
stop();
Stage.showMenu = false;
NewgroundsAPI.connectMovie(1288);
NewgroundsAPI.addCustomEvent(1, "GEM1");
NewgroundsAPI.addCustomEvent(2, "GEM2");
NewgroundsAPI.addCustomEvent(3, "GEM3");
NewgroundsAPI.addCustomEvent(4, "COURONNE");
Frame 2
gotoAndStop ("ad");
Frame 4
var GANG = new Date();
trace("an : " + GANG.getFullYear());
trace("jour : " + GANG.getDate());
trace("mois : " + GANG.getMonth());
if ((GANG.getFullYear() > 2008) || ((GANG.getFullYear() == 2008) && (GANG.getMonth() > 7))) {
RICKYSPROCKET = true;
}
stop();
Frame 5
stop();
Frame 6
this.attachMovie("gig", "gig", 83784);
stop();
function saveGame() {
saveFile.data.levelReached = levelReached;
saveFile.data.gems = gems;
}
function playSound(cat) {
if (VOL) {
allSounds.push(new Sound(this));
allSounds[allSounds.length - 1].attachSound(soundsLib[cat][random(soundsLib[cat].length)]);
if (soundsLib[cat].volume != undefined) {
allSounds[allSounds.length - 1].setVolume(soundsLib[cat].volume * VOL);
} else {
allSounds[allSounds.length - 1].setVolume(100 * VOL);
}
allSounds[allSounds.length - 1].start(0, 0);
if (allSounds.length > 50) {
allSounds.shift();
}
}
}
function bossON() {
BOSS = true;
toune.stop();
toune.attachSound("bossSong");
toune.start(0, 0);
}
function bossOFF() {
if (BOSS) {
toune.stop();
currentSong = 1;
toune.attachSound("s" + currentSong);
toune.start(0, 0);
}
BOSS = false;
}
var saveFile = SharedObject.getLocal("farletybeta");
levelReached = saveFile.data.levelReached;
gems = saveFile.data.gems;
if (levelReached == undefined) {
levelReached = 1;
gems = new Array();
}
VOL = 1;
var soundsLib = new Array();
soundsLib.Robin = new Array();
soundsLib.Robin.volume = 15;
soundsLib.Robin.push("Robin1");
soundsLib.Robin.push("Robin2");
soundsLib.Robin.push("Robin3");
soundsLib.RobinSpecial = new Array();
soundsLib.RobinSpecial.push("RobinSpecial");
soundsLib.Hits = new Array();
soundsLib.Hits.push("Hit1");
soundsLib.Hits.push("Hit2");
soundsLib.Cash = new Array();
soundsLib.Cash.push("Cash");
soundsLib.Steps = new Array();
soundsLib.Steps.push("Step1");
soundsLib.Steps.push("Step2");
soundsLib.Steps.push("Step3");
soundsLib.Steps.push("Step4");
soundsLib.Archer = new Array();
soundsLib.Archer.push("Archer");
soundsLib.Block = new Array();
soundsLib.Block.push("Block1");
soundsLib.Block.push("Block2");
soundsLib.Block.push("Block3");
soundsLib.Block.volume = 10;
soundsLib.VIK = new Array();
soundsLib.VIK.push("Viking1");
soundsLib.VIK.push("Viking2");
soundsLib.VIK.push("Viking3");
soundsLib.Switch = new Array();
soundsLib.Switch.push("Switch");
soundsLib.Switch.volume = 35;
soundsLib.Gate = new Array();
soundsLib.Gate.push("Switch");
soundsLib.bossDie = new Array();
soundsLib.bossDie.push("DIEson");
soundsLib.tonerre = new Array();
soundsLib.tonerre.push("tonerre");
soundsLib.tonerre.volume = 35;
var allSounds = new Array();
BOSS = false;
currentSong = 1;
var toune = new Sound(this);
toune.attachSound("s" + currentSong);
toune.start(0, 0);
toune.onSoundComplete = function () {
if (!BOSS) {
currentSong++;
if (currentSong == 5) {
currentSong = 1;
}
toune.attachSound("s" + currentSong);
toune.start(0, 0);
} else {
toune.start(0, 0);
}
};
onEnterFrame = function () {
toune.setVolume(VOL * 100);
};
function testFall() {
if (((!hero.jumping) && (!BG.ground.hitTest(hero._x + hero.xs, hero._y + 20, true))) && (!BG.oneWay.hitTest(hero._x + hero.xs, hero._y + 20, true))) {
hero.fall(true);
}
}
function adjust() {
if (BG.ground.hitTest(hero._x, hero._y, true)) {
hero.land();
}
if (!hero.jumping) {
oldy = hero._y;
id = 0;
while (!BG.ground.hitTest(hero._x, hero._y, true)) {
hero._y++;
id++;
if (id == 20) {
hero._y = oldy;
break;
}
}
}
while (BG.ground.hitTest(hero._x, hero._y, true)) {
hero._y--;
}
hero.myFloor = hero._y;
if ((hero.xs >= 0) && (BG.ground.hitTest(hero._x + 20, hero._y - 20, true))) {
while (BG.ground.hitTest(hero._x + 20, hero._y - 5, true)) {
hero._x--;
}
hero.xs = 0;
hero.xs2 = 0;
cam2();
}
if ((hero.xs <= 0) && (BG.ground.hitTest(hero._x - 20, hero._y - 20, true))) {
while (BG.ground.hitTest(hero._x - 20, hero._y - 5, true)) {
hero._x++;
}
hero.xs = 0;
hero.xs2 = 0;
cam2();
}
if ((((!hero.jumping) && (hero.xs != 0)) && (!BG.ground.hitTest(hero._x + hero.xs, hero._y + 20, true))) && (!BG.oneWay.hitTest(hero._x + hero.xs, hero._y + 20, true))) {
hero.fall(true);
}
if ((hero.jumping && (BG.oneWay.hitTest(hero._x, hero._y, true))) && (hero.ys > 0)) {
hero.land();
while (BG.oneWay.hitTest(hero._x, hero._y, true)) {
hero._y--;
}
hero.myFloor = hero._y;
}
}
function cam() {
diff = -hero.xs;
BG._x = BG._x + diff;
hero._x = hero._x + diff;
diff = 355 - _root.hero._y;
if (currentMap == 8) {
diff = 380 - _root.hero._y;
}
BG._y = BG._y + diff;
hero._y = hero._y + diff;
hero.myFloor = hero.myFloor + diff;
}
function cam2() {
diff = 406 - hero._x;
hero._x = hero._x + diff;
BG._x = BG._x + diff;
}
_global.gp = false;
floorVisible = false;
enemies = new Array();
adjust();
cam();
function newArrow(xat, yat, facing) {
BG.attachMovie("arrow", "newOne", BG.getNextHighestDepth());
if (facing == "Left") {
BG.newOne.xs = -60;
} else {
BG.newOne.xs = 60;
}
BG.newOne.ys = 0;
BG.newOne._x = xat;
BG.newOne._y = yat - 75;
BG.newOne._name = "lol" + BG.getNextHighestDepth();
}
function startGame(newMap) {
BGMENU._visible = false;
if (newMap == "map1") {
currentMap = 1;
canWin = true;
COURONNE = true;
} else {
canWin = false;
}
extraDmg = 0;
attachMovie("fades", "fade", 1000);
fade.gotoAndPlay("in");
cash = 0;
_xscale = 80;
_yscale = 80;
attachMovie(newMap, "BG", 1);
attachMovie("robin", "hero", 2);
attachMovie("interfaceGame", "interfaceGame", 3);
if (currentMap == 8) {
bossON();
}
hero._x = 405.9;
hero._y = 312;
kills = 0;
hero.control = true;
}
function startGameReal(theNext) {
FOMen.myShit = theNext;
sel.prevFrame();
FOMen.play();
currentMap = theNext.charAt(3);
}
function nextMap(newMap) {
fade.gotoAndPlay("in");
attachMovie(newMap, "BG", 1);
hero._x = 405.9;
hero._y = 312;
kills = 0;
hero.control = true;
if (currentMap == 8) {
bossON();
} else {
bossOFF();
}
}
function mapFinish() {
gig.timer = 0;
gig._alpha = 100;
hero.xs = 0;
currentMap++;
if (currentMap >= levelReached) {
levelReached = currentMap;
saveGame();
}
fade.gotoAndPlay("out");
}
function die() {
fade.gotoAndPlay("out");
}
function retry() {
nextMap("map" + currentMap);
cash = 0;
hero.hp = 100;
hero.dead = false;
hero.canMove = true;
hero.goto("stand");
}
function nextMapSti() {
nextMap("map" + currentMap);
}
function gotoMenu() {
bossOFF();
BGMENU._visible = true;
BGMENU.gems.rofl();
removeMovieClip("BG");
removeMovieClip("interfaceGame");
removeMovieClip("hero");
removeMovieClip("fade");
}
_xscale = 80;
_yscale = 80;
currentMap = 1;
SHAKE = 10;
Symbol 37 MovieClip Frame 1
if (_root.wearCour) {
nextFrame();
} else {
prevFrame();
}
onEnterFrame = function () {
if (_root.wearCour) {
nextFrame();
} else {
prevFrame();
}
};
Symbol 55 MovieClip Frame 1
_root.playSound("Steps");
nextFrame();
Symbol 78 MovieClip Frame 5
_parent._parent.jump();
Symbol 78 MovieClip Frame 9
_parent.nextFrame();
Symbol 83 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 5
_parent._parent.jump();
Symbol 87 MovieClip Frame 9
_parent.nextFrame();
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 5
stop();
Symbol 98 MovieClip Frame 5
stop();
Symbol 103 MovieClip Frame 3
stop();
Symbol 107 MovieClip Frame 3
stop();
Symbol 113 MovieClip Frame 1
if (!_root.wearCour) {
_visible = false;
}
Symbol 119 MovieClip Frame 1
_visible = false;
i = 0;
while (i < _root.enemies.length) {
if (this.hitTest(_root.enemies[i])) {
_root.enemies[i].dmg(_parent._parent.dmg);
}
i++;
}
Symbol 121 MovieClip Frame 1
_root.playSound("Robin");
nextFrame();
Symbol 123 MovieClip Frame 11
_parent._parent.attackLol = false;
Symbol 123 MovieClip Frame 13
_parent._parent.attacking = false;
Symbol 128 MovieClip Frame 1
if (!_root.wearCour) {
_visible = false;
}
Symbol 134 MovieClip Frame 11
_parent._parent.attackLol = false;
Symbol 134 MovieClip Frame 13
_parent._parent.attacking = false;
Symbol 139 MovieClip Frame 1
if (!_root.wearCour) {
_visible = false;
}
Symbol 142 MovieClip Frame 11
_parent._parent.attackLol = false;
Symbol 142 MovieClip Frame 13
_parent._parent.attacking = false;
Symbol 146 MovieClip Frame 1
if (!_root.wearCour) {
_visible = false;
}
Symbol 149 MovieClip Frame 11
_parent._parent.attackLol = false;
Symbol 149 MovieClip Frame 13
_parent._parent.attacking = false;
Symbol 155 MovieClip Frame 1
if (!_root.wearCour) {
_visible = false;
}
Symbol 157 MovieClip Frame 1
_root.playSound("RobinSpecial");
nextFrame();
Symbol 163 MovieClip Frame 1
_xscale = (80 + random(40));
_yscale = (80 + random(40));
_rotation = random(360);
if (random(2) == 1) {
gotoAndPlay (2);
}
_x = (_x + (random(5) - random(5)));
_y = (_y + (random(5) - random(5)));
Symbol 163 MovieClip Frame 6
stop();
Symbol 168 MovieClip Frame 13
_parent._parent.attackLol = false;
Symbol 168 MovieClip Frame 15
_parent._parent.attacking = false;
Symbol 173 MovieClip Frame 1
if (!_root.wearCour) {
_visible = false;
}
Symbol 180 MovieClip Frame 13
_parent._parent.attackLol = false;
Symbol 180 MovieClip Frame 15
_parent._parent.attacking = false;
Symbol 186 MovieClip Frame 1
if (_root.wearCour) {
nextFrame();
} else {
prevFrame();
}
onEnterFrame = function () {
if (_root.wearCour) {
nextFrame();
} else {
prevFrame();
}
};
Symbol 195 MovieClip Frame 60
_root.die();
stop();
Symbol 204 MovieClip Frame 60
_root.die();
stop();
Symbol 205 MovieClip Frame 1
_parent.attacking = false;
_parent.attackLol = false;
Symbol 205 MovieClip Frame 2
_parent.attacking = false;
_parent.attackLol = false;
Symbol 205 MovieClip Frame 3
_parent.attacking = false;
_parent.attackLol = false;
Symbol 205 MovieClip Frame 4
_parent.attacking = false;
_parent.attackLol = false;
Symbol 205 MovieClip Frame 11
_parent.attackLol = false;
Symbol 205 MovieClip Frame 12
_parent.attackLol = false;
Symbol 205 MovieClip Frame 13
dmg = (15 + (_root.extraDmg * 1)) + (_root.wearCour * 15000);
Symbol 205 MovieClip Frame 14
dmg = (15 + (_root.extraDmg * 1)) + (_root.wearCour * 15000);
Symbol 205 MovieClip Frame 15
dmg = (20 + (_root.extraDmg * 1.5)) + (_root.wearCour * 15000);
Symbol 205 MovieClip Frame 16
dmg = (20 + (_root.extraDmg * 1.5)) + (_root.wearCour * 15000);
Symbol 205 MovieClip Frame 17
dmg = (30 + (_root.extraDmg * 2)) + (_root.wearCour * 15000);
Symbol 205 MovieClip Frame 18
dmg = (30 + (_root.extraDmg * 2)) + (_root.wearCour * 15000);
Symbol 205 MovieClip Frame 19
_parent.xs = 0;
Symbol 205 MovieClip Frame 20
_parent.xs = 0;
Symbol 207 MovieClip Frame 1
_visible = false;
Symbol 208 MovieClip [robin] Frame 1
function land() {
if (dead) {
goto("die");
}
ys = 0;
jumping = false;
}
function land2() {
SHITTIMER = 0;
if (dead) {
goto("die");
}
xs = 0;
ys = 0;
jumping = false;
goto("stand");
}
function jump() {
xs = oldxs;
oldxs = "none";
canMove = true;
jumping = true;
ys = -jumpH;
}
function fall(air) {
jumping = true;
if (air) {
goto("air");
}
}
function takeDmg(dmg, xpos, avoid) {
attackTimer = 30;
if (!jumping) {
xs = 0;
}
if ((avoid && (blocking)) && (!attacking)) {
if ((xpos == "left") && (facing == "Droite")) {
_root.playSound("Block");
} else if ((xpos == "right") && (facing == "Gauche")) {
_root.playSound("Block");
} else {
_root.playSound("Hits");
hp = hp - dmg;
_root.COURONNE = false;
if (_root.wearCour && (dmg < 50)) {
hp = 100;
}
}
} else {
_root.playSound("Hits");
hp = hp - dmg;
if (_root.wearCour && (dmg < 50)) {
hp = 100;
}
_root.COURONNE = false;
}
if (hp <= 0) {
dead = true;
canMove = false;
if (!jumping) {
goto("die");
}
}
}
function goto(targ) {
sprites.gotoAndStop([targ + facing]);
}
function pushMe(dir) {
if (dir == "left") {
if (blocking) {
xs2 = -10;
} else {
xs2 = -20;
}
} else if (blocking) {
xs2 = 10;
} else {
xs2 = 20;
}
}
sprites.stop();
var canMove = true;
var xs = 0;
var xs2 = 0;
var ys = 0;
var oldxs = "none";
var accel = 5;
var maxSpeed = 12;
var facing = "Droite";
var hp = 100;
var dead = false;
var attacking = false;
var attackTimer = 0;
var blocking = false;
var currentAttack = 1;
var attackLol = false;
var jumping = false;
var jumpH = 25;
SHITTIMER = 0;
onEnterFrame = function () {
if (Math.abs(xs2) <= 0.1) {
xs2 = 0;
} else {
_x = (_x + xs2);
_root.cam2();
_root.testFall();
}
xs2 = xs2 / 1.5;
if (((sprites._currentframe == 6) || (sprites._currentframe == 8)) && (Math.abs(ys) <= 1)) {
SHITTIMER++;
if (SHITTIMER >= 5) {
land2();
}
} else {
SHITTIMER = 0;
}
attackTimer++;
if (attackTimer >= 20) {
currentAttack = 1;
}
_x = (_x + xs);
_y = (_y + ys);
_root.adjust();
_root.cam();
if (jumping) {
ys = ys + 2;
}
if (((!jumping) && (canMove)) && (!attacking)) {
if (Key.isDown(16) && (control)) {
xs = 0;
blocking = true;
goto("block");
} else {
blocking = false;
}
}
if (canMove && (control)) {
if (Key.isDown(68)) {
if (((!jumping) && (!blocking)) && (!attacking)) {
goto("move");
facing = "Droite";
xs = xs + accel;
} else if (jumping) {
xs = xs + (accel / 5);
}
if (xs > maxSpeed) {
xs = maxSpeed;
}
if (blocking && (!attacking)) {
facing = "Droite";
goto("block");
}
} else if (Key.isDown(65)) {
if (((!jumping) && (!blocking)) && (!attacking)) {
goto("move");
facing = "Gauche";
xs = xs - accel;
} else if (jumping) {
xs = xs - (accel / 5);
}
if (xs < (-maxSpeed)) {
xs = -maxSpeed;
}
if (blocking && (!attacking)) {
facing = "Gauche";
goto("block");
}
} else {
if (((!jumping) && (!blocking)) && (!attacking)) {
goto("stand");
xs = xs / 2.5;
}
if (Math.abs(xs) < 0.1) {
xs = 0;
}
}
if ((((!jumping) && (Key.isDown(87))) && (!attacking)) && (control)) {
if (oldxs == "none") {
blocking = false;
oldxs = xs;
xs = 0;
canMove = false;
goto("jumpUp");
}
}
}
};
onMouseDown = function () {
if ((((!jumping) && (canMove)) && (!attackLol)) && (control)) {
attackLol = true;
xs = 0;
attacking = true;
goto("attack" + currentAttack);
if (currentAttack == 1) {
attackTimer = 0;
currentAttack++;
} else if (attackTimer <= 20) {
attackTimer = 0;
currentAttack++;
if (currentAttack == 4) {
currentAttack = 1;
}
} else {
currentAttack = 1;
}
}
};
Symbol 211 MovieClip [arrow] Frame 1
function calcAngle() {
a1 = Math.atan2((_y + ys) - _y, (_x + xs) - _x);
a2 = Math.round((a1 * 180) / Math.PI);
return(a2);
}
hit = false;
fade = 10;
if (this.hitTest(_root.hero.dy)) {
if (xs < 0) {
_root.hero.takeDmg(20, "left", true);
} else {
_root.hero.takeDmg(20, "right", true);
}
hit = true;
fade = 100;
}
onEnterFrame = function () {
if (!hit) {
if (this.hitTest(_root.hero.dy)) {
if (xs < 0) {
_root.hero.takeDmg(20, "left", true);
} else {
_root.hero.takeDmg(20, "right", true);
}
hit = true;
fade = 100;
}
_x = (_x + xs);
_y = (_y + ys);
ys++;
_rotation = calcAngle();
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
xs = 0;
ys = 0;
hit = true;
}
} else {
_alpha = (_alpha - fade);
}
if (_alpha <= 0) {
removeMovieClip(this);
}
};
Symbol 213 MovieClip [smoke] Frame 1
sc = 70 + random(30);
_xscale = 0;
_yscale = 0;
if (random(2) == 1) {
I = -1;
} else {
I = 1;
}
_xscale = (_xscale * I);
_x = ((_parent._parent.boss._x + random(50)) - random(50));
_y = ((_parent._parent.boss._y + random(10)) - random(10));
onEnterFrame = function () {
sc = sc - 4;
_xscale = (_xscale + (((sc * I) - _xscale) / 2.5));
_yscale = (_yscale + ((sc - _yscale) / 2.5));
if (_yscale <= 0) {
removeMovieClip(this);
}
};
Symbol 219 MovieClip Frame 1
_visible = false;
Symbol 220 Button
on (release) {
triso();
}
Symbol 221 MovieClip [gig] Frame 1
function mute() {
_root.VOL = 0;
gig.GAG.gotoAndStop(99);
}
function unmute() {
_root.VOL = 1;
gig.GAG.play();
}
function triso() {
if (!jig) {
mute();
} else {
unmute();
}
jig = !jig;
}
timer = 0;
jig = false;
onEnterFrame = function () {
timer++;
if (timer > 300) {
at = 0;
}
if (box.hitTest(_root._xmouse, _root._ymouse)) {
at = 50;
timer = 0;
} else if (timer < 300) {
at = 25;
}
_alpha = (_alpha + ((at - _alpha) / 2.5));
};
Symbol 224 MovieClip [hp] Frame 1
gotoAndStop (999);
onEnterFrame = function () {
gotoAndStop(int(_root.hero.hp) + 1);
if (_root.hero.hp <= 0) {
_alpha = 0;
} else {
_alpha = 100;
}
};
Symbol 234 Button
on (release) {
_root.play();
}
Symbol 235 MovieClip [AAAAAAAA] Frame 1
stop();
var loaded = _root.getBytesLoaded();
var total = _root.getBytesTotal();
onEnterFrame = function () {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
if (loaded == total) {
play();
}
};
Symbol 235 MovieClip [AAAAAAAA] Frame 11
prevFrame();
Symbol 253 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 259 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 261 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 793 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 268 MovieClip Frame 1
_visible = false;
Symbol 269 MovieClip Frame 1
sc = (Math.random() * 10) + 90;
_xscale = sc;
_yscale = sc;
_rotation = (_rotation + ((Math.random() * 10) - 5));
_x = (_x + ((Math.random() * 5) - (Math.random() * 5)));
_y = (_y + ((Math.random() * 5) - (Math.random() * 5)));
onEnterFrame = function () {
if ((!_root.hero.dead) && (_root.hero.feet.hitTest(this.pointe))) {
_root.hero.takeDmg(1000);
}
};
Symbol 271 MovieClip Frame 1
stop();
lol = false;
onEnterFrame = function () {
if (_root.kills == 0) {
nextFrame();
}
if (((!lol) && (this.box.hitTest(_root.hero.dy))) && (_currentframe == 2)) {
_root.mapFinish();
lol = true;
}
};
Symbol 271 MovieClip Frame 2
_root.playSound("Gate");
Symbol 277 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 279 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 282 MovieClip Frame 1
onEnterFrame = function () {
if ((_currentframe == 1) && (this.hitTest(_root.hero.HT))) {
play();
_root.cash++;
_root.playSound("Cash");
}
};
stop();
Symbol 282 MovieClip Frame 17
this.swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
Symbol 284 MovieClip Frame 1
_parent._x = _parent._x + (405.9 - _x);
_parent._y = _parent._y + (312 - _y);
_visible = false;
Symbol 291 MovieClip Frame 1
function dmg(comb) {
hp = hp - comb;
if (hp <= 0) {
dead = true;
_root.kills--;
i = 0;
while (i < _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
}
i++;
}
}
}
xs = (Math.random() * 10) - (Math.random() * 10);
ys = (Math.random() * 10) - (Math.random() * 10);
rofl.gotoAndPlay(random(8) + 1);
active = false;
xt = (_x + (Math.random() * 10)) - (Math.random() * 10);
yt = (_y + (Math.random() * 10)) - (Math.random() * 10);
maxSpeed = 15;
range = 250;
sc = 90 + (Math.random() * 20);
_xscale = sc;
_yscale = sc;
dead = false;
hp = 20 + random(15);
_root.enemies.push(this);
_root.kills++;
wait = 15 + random(10);
onEnterFrame = function () {
_x = (_x + xs);
_y = (_y + ys);
xs = xs + ((xt - _x) / 8.25);
ys = ys + ((yt - _y) / 8.25);
_rotation = xs;
if (xs > maxSpeed) {
xs = maxSpeed;
}
if (ys > maxSpeed) {
ys = maxSpeed;
}
if (xs < (-maxSpeed)) {
xs = -maxSpeed;
}
if (ys < (-maxSpeed)) {
ys = -maxSpeed;
}
if (!active) {
if (((!dead) && ((!_root.hero.dead) & (Math.abs(_root.hero._x - (_x + _parent._x)) < range))) && (Math.abs(_root.hero._y - (_y + _parent._y)) < range)) {
active = true;
}
if (dead || (_root.hero.dead)) {
yt = -8000;
xt = xt + ((Math.random() * 10) - (Math.random() * 10));
}
}
if (active) {
timer++;
if (timer >= wait) {
if (this.hitTest(_root.hero.dy) && (!_root.hero.blocking)) {
xs = (Math.random() * 15) - (Math.random() * 15);
ys = (Math.random() * 15) - (Math.random() * 15);
timer = 0;
wait = 15 + random(10);
_root.hero.xs2 = xs;
}
}
xt = ((_root.hero._x + (Math.random() * 20)) - (Math.random() * 20)) - _parent._x;
yt = (((_root.hero._y + (Math.random() * 20)) - (Math.random() * 20)) - _parent._y) - 80;
}
if (dead || (_root.hero.dead)) {
active = false;
}
};
Symbol 292 MovieClip [map1] Frame 1
stop();
Symbol 297 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 299 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 338 MovieClip Frame 1
nextFrame();
_root.playSound("Archer");
Symbol 342 MovieClip Frame 12
_root.newArrow(_parent._parent._x, _parent._parent._y, _parent._parent.facing);
Symbol 342 MovieClip Frame 15
_parent._parent.attacking = false;
_parent._parent.goto("stand");
Symbol 356 MovieClip Frame 12
_root.newArrow(_parent._parent._x, _parent._parent._y, _parent._parent.facing);
Symbol 356 MovieClip Frame 15
_parent._parent.attacking = false;
_parent._parent.goto("stand");
Symbol 358 MovieClip Frame 1
_root.playSound("Hits");
nextFrame();
Symbol 359 MovieClip Frame 4
_parent._parent.hit = false;
Symbol 360 MovieClip Frame 4
_parent._parent.hit = false;
Symbol 367 MovieClip Frame 13
stop();
Symbol 374 MovieClip Frame 13
stop();
Symbol 383 MovieClip Frame 1
function goto(f) {
sprites.gotoAndStop(f + facing);
}
function dmg(dm) {
if (range == 500) {
hpTimer = 200;
hpBar._alpha = 100;
hp = hp - dm;
if ((hp <= 0) && (!dead)) {
i = 0;
while (i < _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
}
i++;
}
_root.kills--;
goto("die");
dead = true;
} else if ((!dead) && (!attacking)) {
hit = true;
goto("hit");
}
}
}
var facing = "Right";
sprites.stop();
_root.kills++;
_root.enemies.push(this);
var leftB = (_x - (_width / 2));
var rightB = (leftB + _width);
_xscale = 100;
var hp = (125 + ((Math.random() * _root.currentMap) * 5));
var maxHp = hp;
var range = 250;
var range2 = 300;
var reload = 0;
var attackTimer = 40;
var attacking = false;
var go = "none";
var speed = 5;
var hit = false;
var dead = false;
var hpTimer = 0;
hpBar._alpha = 0;
onEnterFrame = function () {
hpBar.gotoAndStop(int((hp / maxHp) * 100));
if (!dead) {
hpTimer = hpTimer - 5;
if ((hpTimer <= 100) && (hpTimer >= -100)) {
hpBar._alpha = hpTimer;
}
} else {
hpBar._visible = false;
}
if (((!_root.hero.dead) && (Math.abs(_root.hero._x - (_x + _parent._x)) < range)) && ((_root.hero._y <= (_y + _parent._y)) || (Math.abs(_root.hero._y - (_y + _parent._y)) < (range / 3)))) {
range = 500;
reload++;
if ((((reload < attackTimer) && (!attacking)) && (!hit)) && (!dead)) {
if ((_root.hero._x < (_x + _parent._x)) && (_x < rightB)) {
go = "Right";
_x = (_x + speed);
} else if ((_root.hero._x > (_x + _parent._x)) && (_x > leftB)) {
go = "Left";
_x = (_x - speed);
} else {
go = "none";
}
if (go != "none") {
facing = go;
goto("walk");
} else {
goto("stand");
}
} else if (((!attacking) && (!dead)) && (!hit)) {
if (_root.hero._x > (_x + _parent._x)) {
facing = "Right";
} else {
facing = "Left";
}
goto("attack");
attacking = true;
reload = -15;
}
} else {
if (!dead) {
goto("stand");
}
reload = reload + 2;
}
if (_root.hero.dead && (!dead)) {
goto("stand");
}
};
Symbol 389 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 391 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 396 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
_visible = _root.floorVisible;
stop();
Symbol 401 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 422 MovieClip Frame 1
_visible = false;
if (this.hitTest(_root.hero.dy)) {
_root.hero.pushMe("right");
_root.hero.takeDmg(20, "right", true);
}
Symbol 424 MovieClip Frame 1
_root.playSound("VIK");
nextFrame();
Symbol 425 MovieClip Frame 13
_parent._parent.attacking = false;
Symbol 429 MovieClip Frame 1
_visible = false;
if (this.hitTest(_root.hero.dy)) {
_root.hero.pushMe("left");
_root.hero.takeDmg(20, "left", true);
}
Symbol 430 MovieClip Frame 13
_parent._parent.attacking = false;
Symbol 432 MovieClip Frame 4
_parent._parent.hit = false;
Symbol 434 MovieClip Frame 4
_parent._parent.hit = false;
Symbol 439 MovieClip Frame 13
stop();
Symbol 445 MovieClip Frame 13
stop();
Symbol 447 MovieClip Frame 1
function goto(f) {
sprites.gotoAndStop(f + facing);
}
function dmg(dm) {
if (active) {
attackTimer = attackTimer - 5;
hpTimer = 200;
hpBar._alpha = 100;
hp = hp - dm;
if ((hp <= 0) && (!dead)) {
i = 0;
while (i < _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
}
i++;
}
_root.kills--;
goto("die");
dead = true;
} else if ((!dead) && (!attacking)) {
hit = true;
goto("hit");
}
}
}
var facing = "Right";
sprites.stop();
_root.kills++;
_root.enemies.push(this);
initX = _x;
range = _width / 2;
_xscale = 100;
target = _x;
var hp = (250 + ((Math.random() * _root.currentMap) * 8));
var maxHp = hp;
var rangeAttack = 100;
var reload = 0;
var attackTimer = 40;
var attacking = false;
var go = "none";
var speed = 5;
var hit = false;
var dead = false;
var hpTimer = 0;
hpBar._alpha = 0;
var active = false;
onEnterFrame = function () {
target2 = _x;
hpTimer = hpTimer - 5;
if ((hpTimer <= 100) && (hpTimer >= -100)) {
hpBar._alpha = hpTimer;
}
if (!dead) {
hpBar.gotoAndStop(int((hp / maxHp) * 100));
if (!active) {
target = initX;
hp++;
if (hp >= maxHp) {
hp = maxHp;
} else {
hpBar._alpha = 100;
hpTimer = 200;
}
if (((Math.abs(_root.hero._x - (initX + _parent._x)) < range) && (!_root.hero.dead)) && (Math.abs(_root.hero._y - (_y + _parent._y)) < range)) {
active = true;
}
} else {
if (_root.hero.dead) {
active = false;
}
attackTimer--;
if (attackTimer <= 0) {
attackTimer = 40 + random(20);
goto("attack");
hit = false;
attacking = true;
}
if (attackTimer >= 60) {
attackTimer = 60;
}
if (_root.hero._x < (_x + _parent._x)) {
target = (_root.hero._x - _parent._x) + 60;
}
if (_root.hero._x > (_x + _parent._x)) {
target = (_root.hero._x - _parent._x) - 60;
}
if (Math.abs(_root.hero._x - (initX + _parent._x)) > range) {
active = false;
}
}
if ((!hit) && (!attacking)) {
if (Math.abs(_x - target) < 6) {
_x = target;
if (_root.hero._x < (_x + _parent._x)) {
facing = "Left";
} else if (_root.hero._x > (_x + _parent._x)) {
facing = "Right";
}
goto("stand");
} else if (_x < target) {
if (active) {
attackTimer++;
}
goto("walk");
facing = "Right";
_x = (_x + speed);
if (Math.abs(_x - target) < 5) {
_x = target;
}
} else if (_x > target) {
if (active) {
attackTimer++;
}
goto("walk");
facing = "Left";
_x = (_x - speed);
if (Math.abs(_x - target) < 5) {
_x = target;
}
} else if (_root.hero._x < (_x + _parent._x)) {
facing = "Left";
goto("stand");
} else if (_root.hero._x > (_x + _parent._x)) {
facing = "Right";
goto("stand");
}
}
} else {
hpBar._visible = false;
}
};
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 2
_root.playSound("Switch");
Symbol 451 MovieClip Frame 15
stop();
Symbol 451 MovieClip Frame 16
prevFrame();
Symbol 452 MovieClip [map4] Frame 1
function openDoor() {
ground.nextFrame();
BG.nextFrame();
}
stop();
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip [map4] Frame 1
onClipEvent (load) {
function dmg(comb) {
hp = hp - comb;
if (hp <= 0) {
play();
_parent.openDoor();
}
}
dead = false;
_root.enemies.push(this);
hp = 1;
}
Symbol 457 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 459 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 463 MovieClip Frame 1
onEnterFrame = function () {
if ((_currentframe == 1) && (this.hitTest(_root.hero.HT))) {
play();
_root.hero.hp = _root.hero.hp + 20;
if (_root.hero.hp > 100) {
_root.hero.hp = 100;
}
}
};
stop();
Symbol 463 MovieClip Frame 25
this.swapDepths(_root.getNextHighestDepth());
removeMovieClip(this);
Symbol 464 MovieClip [map5] Frame 1
function openDoor() {
ground.nextFrame();
BG.nextFrame();
}
Symbol 468 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 1
_visible = _root.floorVisible;
stop();
Symbol 473 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 474 MovieClip [map6] Frame 1
function openDoor() {
ground.nextFrame();
BG.nextFrame();
}
Instance of Symbol 451 MovieClip in Symbol 474 MovieClip [map6] Frame 1
onClipEvent (load) {
function dmg(comb) {
hp = hp - comb;
if (hp <= 0) {
play();
_parent.openDoor();
}
}
dead = false;
_root.enemies.push(this);
hp = 1;
}
Symbol 478 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 1
_visible = _root.floorVisible;
stop();
Symbol 484 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 506 MovieClip Frame 1
_visible = false;
if (this.hitTest(_root.hero.dy)) {
_root.hero.pushMe("right");
_root.hero.takeDmg(20, "right", true);
}
Symbol 507 MovieClip Frame 13
_parent._parent.attacking = false;
Symbol 510 MovieClip Frame 1
_visible = false;
if (this.hitTest(_root.hero.dy)) {
_root.hero.pushMe("left");
_root.hero.takeDmg(20, "left", true);
}
Symbol 511 MovieClip Frame 13
_parent._parent.attacking = false;
Symbol 512 MovieClip Frame 4
_parent._parent.hit = false;
Symbol 513 MovieClip Frame 4
_parent._parent.hit = false;
Symbol 517 MovieClip Frame 13
stop();
Symbol 521 MovieClip Frame 13
stop();
Symbol 526 MovieClip Frame 1
function goto(f) {
sprites.gotoAndStop(f + facing);
}
function dmg(dm) {
if (active) {
attackTimer = attackTimer - 5;
hpTimer = 200;
hpBar._alpha = 100;
hp = hp - dm;
if ((hp <= 0) && (!dead)) {
i = 0;
while (i < _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
}
i++;
}
_root.kills--;
goto("die");
dead = true;
} else if ((!dead) && (!attacking)) {
hit = true;
goto("hit");
}
}
}
var facing = "Right";
sprites.stop();
_root.kills++;
_root.enemies.push(this);
initX = _x;
range = _width / 2;
_xscale = 100;
target = _x;
var hp = (350 + ((Math.random() * _root.currentMap) * 10));
var maxHp = hp;
var rangeAttack = 100;
var reload = 0;
var attackTimer = 40;
var attacking = false;
var go = "none";
var speed = 5;
var hit = false;
var dead = false;
var hpTimer = 0;
hpBar._alpha = 0;
var active = false;
onEnterFrame = function () {
target2 = _x;
hpTimer = hpTimer - 5;
if ((hpTimer <= 100) && (hpTimer >= -100)) {
hpBar._alpha = hpTimer;
}
if (!dead) {
hpBar.gotoAndStop(int((hp / maxHp) * 100));
if (!active) {
target = initX;
hp++;
if (hp >= maxHp) {
hp = maxHp;
} else {
hpBar._alpha = 100;
hpTimer = 200;
}
if ((Math.abs(_root.hero._x - (initX + _parent._x)) < range) && (!_root.hero.dead)) {
active = true;
}
} else {
if (_root.hero.dead) {
active = false;
}
attackTimer--;
if (attackTimer <= 0) {
attackTimer = 40 + random(20);
goto("attack");
hit = false;
attacking = true;
}
if (attackTimer >= 60) {
attackTimer = 60;
}
if (_root.hero._x < (_x + _parent._x)) {
target = (_root.hero._x - _parent._x) + 60;
}
if (_root.hero._x > (_x + _parent._x)) {
target = (_root.hero._x - _parent._x) - 60;
}
if (Math.abs(_root.hero._x - (initX + _parent._x)) > range) {
active = false;
}
}
if ((!hit) && (!attacking)) {
if (Math.abs(_x - target) < 6) {
_x = target;
if (_root.hero._x < (_x + _parent._x)) {
facing = "Left";
} else if (_root.hero._x > (_x + _parent._x)) {
facing = "Right";
}
goto("stand");
} else if (_x < target) {
if (active) {
attackTimer++;
}
goto("walk");
facing = "Right";
_x = (_x + speed);
if (Math.abs(_x - target) < 5) {
_x = target;
}
} else if (_x > target) {
if (active) {
attackTimer++;
}
goto("walk");
facing = "Left";
_x = (_x - speed);
if (Math.abs(_x - target) < 5) {
_x = target;
}
} else if (_root.hero._x < (_x + _parent._x)) {
facing = "Left";
goto("stand");
} else if (_root.hero._x > (_x + _parent._x)) {
facing = "Right";
goto("stand");
}
}
} else {
hpBar._visible = false;
}
};
Symbol 527 MovieClip [map7] Frame 1
function openDoor() {
ground.nextFrame();
BG.nextFrame();
}
Instance of Symbol 451 MovieClip in Symbol 527 MovieClip [map7] Frame 1
onClipEvent (load) {
function dmg(comb) {
hp = hp - comb;
if (hp <= 0) {
play();
_parent.openDoor();
}
}
dead = false;
_root.enemies.push(this);
hp = 1;
}
Symbol 532 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 534 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 536 MovieClip Frame 1
_xscale = (100 + random(40));
_yscale = (100 + random(40));
xs = (Math.random() * 2) - (Math.random() * 2);
ys = (Math.random() * 1) - (Math.random() * 1);
xt = (_x + (Math.random() * 2)) - (Math.random() * 2);
yt = (_y + (Math.random() * 1)) - (Math.random() * 1);
sp1 = 40 + (Math.random() * 20);
sp2 = 40 + (Math.random() * 20);
onEnterFrame = function () {
xs = xs + ((xt - _x) / sp1);
_x = (_x + xs);
ys = ys + ((yt - _y) / sp2);
_y = (_y + ys);
};
Symbol 539 MovieClip Frame 1
sc = 50;
_xscale = 25;
_yscale = 75;
xs = 0;
ys = 0;
onEnterFrame = function () {
xs = xs + ((sc - _xscale) / 2.5);
_xscale = (_xscale + xs);
xs = xs / 1.4;
ys = ys + ((sc - _yscale) / 2.5);
_yscale = (_yscale + ys);
ys = ys / 1.4;
_alpha = (_alpha - 5);
};
Symbol 540 MovieClip Frame 1
_visible = false;
if (this.hitTest(_root.hero.dy) && (!_root.BOSSDEAD)) {
_root.hero.takeDmg(20, "right", false);
}
Symbol 541 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 78
_root.playSound("tonerre");
Symbol 541 MovieClip Frame 129
_parent.boss.phase = 1;
_parent.boss.timer = -50;
Symbol 543 MovieClip Frame 1
initx = _x;
inity = _y;
onEnterFrame = function () {
if (_parent.shake) {
_x = ((initx + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
_y = ((inity + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
}
};
Symbol 545 MovieClip Frame 1
initx = _x;
inity = _y;
onEnterFrame = function () {
if (_parent.shake) {
_x = ((initx + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
_y = ((inity + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
}
};
Symbol 549 MovieClip Frame 1
initx = _x;
inity = _y;
onEnterFrame = function () {
if (_parent.shake) {
_x = ((initx + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
_y = ((inity + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
}
};
Symbol 551 MovieClip Frame 1
initx = _x;
inity = _y;
onEnterFrame = function () {
if (_parent.shake) {
_x = ((initx + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
_y = ((inity + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
}
};
Symbol 553 MovieClip Frame 1
initx = _x;
inity = _y;
onEnterFrame = function () {
if (_parent.shake) {
_x = ((initx + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
_y = ((inity + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
}
};
Symbol 555 MovieClip Frame 1
initx = _x;
inity = _y;
onEnterFrame = function () {
if (_parent.shake) {
_x = ((initx + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
_y = ((inity + (Math.random() * _root.SHAKE)) - (Math.random() * _root.SHAKE));
}
};
Symbol 562 MovieClip Frame 1
gotoAndPlay(int(_parent._parent.ayoye) + 1);
Symbol 562 MovieClip Frame 80
_parent._parent.strikes++;
_parent._parent.timer = -50 + _parent._parent.ayoye;
_parent.gotoAndStop("stand");
Symbol 566 MovieClip Frame 26
_parent._parent._parent.eclair1.play();
_parent._parent._parent.eclair2.play();
Symbol 566 MovieClip Frame 44
if (_parent._parent.phase == 1) {
_parent.gotoAndStop(1);
} else {
gotoAndPlay (26);
}
Symbol 580 MovieClip Frame 1
_xscale = (80 + random(40));
_yscale = (80 + random(40));
_rotation = random(360);
if (random(2) == 1) {
gotoAndPlay (2);
}
Symbol 581 MovieClip Frame 1
shake = true;
Symbol 581 MovieClip Frame 7
_root.playSound("bossDie");
Symbol 581 MovieClip Frame 64
shake = false;
Symbol 581 MovieClip Frame 138
stop();
_root.kills--;
Symbol 587 MovieClip Frame 1
_parent.HPBAR._visible = false;
Symbol 587 MovieClip Frame 101
stop();
_parent.HPBAR._visible = true;
Symbol 588 MovieClip Frame 1
function dmg(dm) {
if (phase == 2) {
hpTimer = 200;
hpBar._alpha = 100;
hp = hp - dm;
if (hp <= (maxHP / 2)) {
ayoye = 15;
}
if (hp <= (maxHP / 4)) {
ayoye = 25;
}
if ((hp <= 0) && (!dead)) {
HPBAR._visible = false;
i = 0;
while (i < _root.enemies.length) {
if (_root.enemies[i] == this) {
_root.enemies.splice(i, 1);
}
i++;
}
_root.BOSSDEAD = true;
sprites.gotoAndStop("die");
dead = true;
}
}
}
sprites.stop();
_root.kills++;
_root.enemies.push(this);
xs = 0;
ys = 10;
xt = _x;
yt = _y;
_x = (_x + 50);
_y = (_y - 50);
timer = -100;
phase = 0;
strikes = 0;
_root.BOSSDEAD = false;
hp = 1500;
maxHP = hp;
ayoye = 0;
dead = false;
onEnterFrame = function () {
HPBAR.gotoAndStop(int((hp / maxHP) * 100));
if (!dead) {
timer++;
_x = (_x + xs);
_y = (_y + ys);
xs = xs + ((xt - _x) / 10);
ys = ys + ((yt - _y) / 10);
xs = xs / 1.4;
ys = ys / 1.4;
if (!_root.hero.dead) {
if ((timer >= 0) && (phase == 0)) {
phase = 1;
timer = -50;
}
if (phase == 1) {
if (strikes == 3) {
strikes = 0;
phase = 2;
}
timer++;
if (timer > 75) {
sprites.gotoAndStop("strike");
yt = YT2 + 50;
} else {
xt = _root.hero._x - _parent._x;
yt = (_root.hero._y - _parent._y) - 150;
YT2 = yt;
}
}
if (phase == 2) {
sprites.gotoAndStop("eclair");
xt = 0;
yt = 193;
}
} else {
yt = yt - 5;
xt = _x;
}
}
};
Symbol 589 MovieClip Frame 1
id = 0;
onEnterFrame = function () {
if (!_parent.boss.dead) {
id++;
attachMovie("smoke", "s" + id, id);
}
};
Symbol 590 MovieClip [map8] Frame 1
stop();
Symbol 595 MovieClip Frame 1
_visible = _root.floorVisible;
Symbol 597 MovieClip Frame 1
_rotation = random(360);
_xscale = (80 + random(40));
_yscale = (50 + random(20));
sp = 1 + (Math.random() * 1);
if (random(2) == 1) {
sp = sp * -1;
}
onEnterFrame = function () {
_rotation = (_rotation + sp);
};
Symbol 599 MovieClip Frame 1
sp = 2 + (Math.random() * 2);
onEnterFrame = function () {
_rotation = (_rotation + sp);
};
Symbol 601 MovieClip Frame 1
_rotation = random(360);
_xscale = (random(20) + 90);
_yscale = _xscale;
gotoAndPlay(random(6) + 1);
if (lol == undefined) {
lol = "KLAK";
gotoAndPlay(random(30) + 1);
}
Symbol 610 MovieClip Frame 1
stop();
if (((_root.cash == 160) || ((_root.cash == 90) && (_root.extraDmg == 8))) && (_root.canWin)) {
_root.gems[1] = true;
_root.saveGame();
nextFrame();
}
Symbol 611 MovieClip Frame 1
stop();
if ((_root.hero.hp == 100) && (_root.canWin)) {
_root.gems[2] = true;
_root.saveGame();
nextFrame();
}
Symbol 612 MovieClip Frame 1
stop();
if (_root.canWin) {
_root.gems[0] = true;
_root.saveGame();
nextFrame();
}
Symbol 614 MovieClip Frame 1
if (_root.COURONNE && (_root.cash == 160)) {
_root.gems[3] = true;
nextFrame();
_root.saveGame();
} else {
gotoAndStop (3);
if (_parent.FUCK) {
gotoAndStop (5);
}
}
Symbol 615 MovieClip [map9] Frame 1
stop();
if (!_root.wearCour) {
if (_root.canWin) {
NewgroundsAPI.logCustomEvent("GEM1");
}
if (((_root.cash == 160) || ((_root.cash == 90) && (_root.extraDmg == 8))) && (_root.canWin)) {
NewgroundsAPI.logCustomEvent("GEM2");
}
if ((_root.hero.hp == 100) && (_root.canWin)) {
NewgroundsAPI.logCustomEvent("GEM3");
}
if (_root.COURONNE && (_root.cash == 160)) {
NewgroundsAPI.logCustomEvent("COURONNE");
}
}
Symbol 636 MovieClip Frame 1
stop();
if (sc1 == undefined) {
sc1 = _xscale;
sc = sc1;
}
onEnterFrame = function () {
_xscale = (_xscale + ((sc - _xscale) / 2.5));
_yscale = _xscale;
if (HIT.hitTest(_root._xmouse, _root._ymouse)) {
sc = sc1 * 1.2;
nextFrame();
} else {
prevFrame();
sc = sc1;
}
};
Symbol 655 MovieClip Frame 1
stop();
sc = 100;
onEnterFrame = function () {
_xscale = (_xscale + ((sc - _xscale) / 2.5));
_yscale = _xscale;
if (this.hitTest(_root._xmouse, _root._ymouse)) {
sc = 120;
nextFrame();
} else {
prevFrame();
sc = 100;
}
};
Symbol 660 MovieClip Frame 1
gotoAndStop(_root.extraDmg + 1);
onEnterFrame = function () {
gotoAndStop(_root.extraDmg + 1);
};
stop();
Symbol 665 MovieClip Frame 1
gotoAndStop(_root.extraDmg + 1);
onEnterFrame = function () {
gotoAndStop(_root.extraDmg + 1);
};
stop();
Symbol 666 MovieClip Frame 1
_alpha = 0;
at = 100;
onEnterFrame = function () {
_alpha = (_alpha + ((at - _alpha) / 2.5));
};
_root.hero.xs = 0;
if (_root.currentMap >= 9) {
at = 0;
_root.nextMapSti();
}
Instance of Symbol 636 MovieClip in Symbol 666 MovieClip Frame 1
on (release) {
_root.nextMapSti();
}
Instance of Symbol 636 MovieClip in Symbol 666 MovieClip Frame 1
on (release) {
_root.gotoMenu();
}
Instance of Symbol 655 MovieClip in Symbol 666 MovieClip Frame 1
on (release) {
if ((_root.extraDmg == 0) && (_root.cash >= 15)) {
_root.extraDmg = 2;
_root.cash = _root.cash - 15;
} else if ((_root.extraDmg == 2) && (_root.cash >= 20)) {
_root.extraDmg = 4;
_root.cash = _root.cash - 20;
} else if ((_root.extraDmg == 4) && (_root.cash >= 35)) {
_root.extraDmg = 8;
_root.cash = _root.cash - 35;
}
}
Instance of Symbol 655 MovieClip in Symbol 666 MovieClip Frame 1
on (release) {
if ((_root.hero.hp <= 80) && (_root.cash >= 25)) {
_root.hero.hp = _root.hero.hp + 40;
_root.cash = _root.cash - 25;
if (_root.hero.hp > 100) {
_root.hero.hp = 100;
}
}
}
Instance of Symbol 655 MovieClip in Symbol 666 MovieClip Frame 1
on (release) {
if ((_root.hero.hp <= 80) && (_root.cash >= 15)) {
_root.hero.hp = _root.hero.hp + 20;
_root.cash = _root.cash - 15;
}
}
Symbol 684 MovieClip Frame 1
stop();
FUCK = true;
Instance of Symbol 636 MovieClip in Symbol 684 MovieClip Frame 1
on (release) {
_parent.nextFrame();
}
Instance of Symbol 636 MovieClip in Symbol 684 MovieClip Frame 2
on (release) {
_root.gotoMenu();
}
Symbol 685 MovieClip [fades] Frame 1
if (lol == undefined) {
lol = "KOSK";
_xscale = 125;
_yscale = 125;
_x = (_x + (_width / 2));
_y = (_y + (_height / 2));
}
Symbol 685 MovieClip [fades] Frame 15
stop();
Symbol 685 MovieClip [fades] Frame 31
stop();
if (_root.hero.dead) {
nextFrame();
} else {
_root.hero.control = false;
if (_root.currentMap == 10) {
gotoAndStop ("finish");
}
}
Instance of Symbol 636 MovieClip in Symbol 685 MovieClip [fades] Frame 32
on (release) {
_root.retry();
}
Instance of Symbol 636 MovieClip in Symbol 685 MovieClip [fades] Frame 32
on (release) {
_root.gotoMenu();
}
Symbol 692 Button
on (release) {
getURL ("www.joelasticot.com", "_blank");
}
Symbol 695 Button
on (release) {
getURL ("www.grecocreation.blogspot.com", "_blank");
}
Symbol 697 MovieClip Frame 1
if (_root.RICKYSPROCKET) {
GAG.nextFrame();
}
_xscale = 0;
_yscale = 0;
sp = 0;
ROT = -500;
TIME = 0;
onEnterFrame = function () {
sp = sp + ((100 - _xscale) / 5);
_xscale = (_xscale + sp);
_yscale = (_yscale + sp);
sp = sp / 1.25;
ROT = ROT + ((-ROT) / 5);
_rotation = ROT;
TIME++;
if (TIME > 90) {
_alpha = (_alpha + ((-_alpha) / 2.5));
}
if (_alpha < 1) {
_root.nextFrame();
}
};
GAG.stop();
onMouseDown = function () {
TIME = 91;
};
Symbol 713 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 716 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 716 MovieClip Frame 3
stopAllSounds();
Symbol 716 MovieClip Frame 4
onMouseDown = function () {
if (_currenframe < 149) {
gotoAndPlay (149);
}
};
Symbol 716 MovieClip Frame 176
_root.nextFrame();
Symbol 731 MovieClip Frame 1
function rofl() {
if (_root.gems[0]) {
g1._visible = true;
g1.nextFrame();
} else {
g1._visible = false;
}
if (_root.gems[1]) {
g2._visible = true;
g2.nextFrame();
} else {
g2._visible = false;
}
if (_root.gems[2]) {
g3._visible = true;
g3.nextFrame();
} else {
g3._visible = false;
}
}
rofl();
Symbol 732 Button
on (release) {
_root.wearCour = !_root.wearCour;
}
Symbol 733 MovieClip Frame 1
_root.wearCour = false;
onEnterFrame = function () {
if (_root.gems[3]) {
bite._visible = true;
if (_root.wearCour) {
cour.gotoAndStop(2);
} else {
cour.gotoAndStop(4);
}
} else {
bite._visible = false;
cour.gotoAndStop(3);
}
};
Instance of Symbol 636 MovieClip in Symbol 734 MovieClip Frame 1
on (release) {
_root.startGameReal("map1");
}
Instance of Symbol 636 MovieClip in Symbol 734 MovieClip Frame 1
on (release) {
_root.sel.nextFrame();
}
Instance of Symbol 636 MovieClip in Symbol 734 MovieClip Frame 1
on (release) {
_root.ins.nextFrame();
}
Instance of Symbol 636 MovieClip in Symbol 734 MovieClip Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 736 Button
on (release) {
prevFrame();
}
Symbol 749 Button
on (release) {
nextFrame();
}
Symbol 755 Button
on (release) {
prevFrame();
}
Symbol 776 MovieClip Frame 1
if (_root.RICKYSPROCKET) {
nextFrame();
}
stop();
Symbol 777 Button
on (release) {
_parent.prevFrame();
}
Symbol 778 MovieClip Frame 1
stop();
Symbol 779 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 1
gotoAndStop(_root.levelReached);
stop();
Instance of Symbol 636 MovieClip in Symbol 789 MovieClip Frame 1
on (release) {
if (_root.levelReached >= 1) {
_root.startGameReal("map1");
_root.currentMap = 1;
_parent.prevFrame();
}
}
Instance of Symbol 636 MovieClip in Symbol 789 MovieClip Frame 2
on (release) {
if (_root.levelReached >= 2) {
_root.startGameReal("map2");
_root.currentMap = 2;
_parent.prevFrame();
}
}
Instance of Symbol 636 MovieClip in Symbol 789 MovieClip Frame 3
on (release) {
if (_root.levelReached >= 3) {
_root.startGameReal("map3");
_root.currentMap = 3;
_parent.prevFrame();
}
}
Instance of Symbol 636 MovieClip in Symbol 789 MovieClip Frame 4
on (release) {
if (_root.levelReached >= 4) {
_root.startGameReal("map4");
_root.currentMap = 4;
_parent.prevFrame();
}
}
Instance of Symbol 636 MovieClip in Symbol 789 MovieClip Frame 5
on (release) {
if (_root.levelReached >= 5) {
_root.startGameReal("map5");
_root.currentMap = 5;
_parent.prevFrame();
}
}
Instance of Symbol 636 MovieClip in Symbol 789 MovieClip Frame 6
on (release) {
if (_root.levelReached >= 6) {
_root.startGameReal("map6");
_root.currentMap = 6;
_parent.prevFrame();
}
}
Instance of Symbol 636 MovieClip in Symbol 789 MovieClip Frame 7
on (release) {
if (_root.levelReached >= 7) {
_root.startGameReal("map7");
_root.currentMap = 7;
_parent.prevFrame();
}
}
Instance of Symbol 636 MovieClip in Symbol 789 MovieClip Frame 8
on (release) {
if (_root.levelReached >= 8) {
_root.startGameReal("map8");
_root.currentMap = 8;
_parent.prevFrame();
}
}
Symbol 790 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 25
_root.startGame(myShit);