Frame 1
_root.createEmptyMovieClip("hscores", _root.getNextHighestDepth());
mochi.MochiServices.connect("3a47995743187b3f", hscores);
this._lockroot = true;
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
loader.gotoAndStop(percentbytes);
trace(percentbytes);
Frame 2
if (loadedbytes == totalbytes) {
if (gamePlyd != true) {
trace(gamePlyd);
_root.attachMovie("hpIntro_mc", "hpIntro", 10, {_x:400, _y:200});
_root.hp._visible = false;
_root.loader._visible = false;
unloadMovie (loader);
unloadMovie (hp);
trace("go time = " + loadedbytes);
}
} else {
gotoAndPlay (1);
}
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("d2762bcc", this, 10301, true);
stop();
trace("menu");
var hallpassTrick = true;
var shooting = true;
var ready;
var gravity = 0.8;
var timer = 0;
var ftimer = 0;
var onFire = false;
var zoomState = "zoomOut";
var arrowPos2;
var xSx;
var ySy;
var shakeTimer;
var inert;
var frameRate = 30;
var currentLevel;
var gamePaused = false;
var hintTimer = 0;
var lvl1 = ["HINT: Aim with the mouse: move up and down to change the angle, left and right to change the power.", "HINT: Hit the target board as accurately as possible to progress to the next level.", "HINT: Get a score greater than the target score to unlock the next level."];
var lvl2 = ["HINT: Watchout for obstacles: some guide you, others are hazardous", "HINT: Flaming hoops: shoot through the hoop, but do not hit the fire!"];
var lvl3 = ["HINT: If you fail a level, you can retry at the cost of 400 points from your total"];
var lvl4 = ["HINT: Brick walls: shoot over them, or blast through them with maximum power!"];
var lvl5 = ["HINT: To blast through brick walls, move the cursor to the right until the shot guide turns bright red"];
var lvl6 = ["HINT: Fan: Fans can blow away elves when shot near it"];
var lvl7 = ["HINT: Trampolines: Bounce off the these obstacles by landing on their tops."];
var lvl8 = ["HINT: Hit the wall softly to drop onto the trampoline and bounce onto the target."];
var lvl9 = ["HINT: Blast through the wall first with max power. Then shoot a less powerful shot through the hole."];
var lvl10 = ["HINT: Shoot a weak shot through the hoop towards the fan so it blows the elf towards the target."];
var lvl11 = ["HINT: Not all obstacles in a level are useful!", "HINT: One of the trampolines is unnecessary"];
var lvl13 = ["HINT: Blast through the wall, over the target and bounce back with the trampolines"];
var lvl16 = ["HINT: This is the final level! Sometimes thinking simple is smart..."];
var lvlHints = [lvl1, lvl2, lvl3, lvl4, lvl5, lvl6, lvl7, lvl8, lvl9, lvl10, lvl11, [" "], lvl13, [" "], [" "], lvl16];
var hintstog = false;
trace("/////////////////////////////////////////////////////////////////////////////////////////////// frame 3");
var maxWorldW;
var maxWorldH;
var minWorldW;
var minWorldH;
var scrollSpeedX;
var scrollSpeedY;
var zoomingSpeed;
var arrowCounter = 0;
var allArrows = new Array();
var mouseListener = new Object();
var keyListener = new Object();
var targscore;
var currscore = 0;
var level = 1;
var shots = 4;
var credits = 0;
var quit = false;
var allObstacles = new Array();
var particleCounter = 5;
var allParticles = new Array();
var sound = new Sound(this);
var mute = false;
var sliding = false;
var fanning = false;
var flamimg = false;
var randFrame = 0;
var sndShot = ["wooah", "waaah", "weee", "aargh"];
var sndHappy = ["congratulations", "good shooting", "nice shot", "woop", "yeah", "yipee", "you did it"];
var sndSad = ["damn it", "doh"];
_root.createEmptyMovieClip("hscores", _root.getNextHighestDepth());
_root.hscores.swapDepths(_root.getNextHighestDepth());
sound.attachSound("menu loop");
sound.start(0, 100);
_root.attachMovie("fadetransition2_mc", "fadetransition2_mc");
_root.hud.hint_mc.swapDepths(-21212);
unloadMovie (_root.hud.hint_mc);
hintTimer = 0;
_root.menu_mc.swapDepths(1213121);
_root.hscores.swapDepths(1213123);
if (_root.gamePlyd) {
_root.menu_mc.hi.gotoAndStop(2);
_root.menu_mc.p.gotoAndStop(2);
_root.menu_mc.h.gotoAndStop(2);
_root.menu_mc.instructions._visible = false;
_root.hscores.swapDepths(_root.getNextHighestDepth());
mochi.MochiScores.showLeaderboard({boardID:"b77116dc48f6dd62", score:_root.ttlscore, clip:hscores, showTableRank:true});
_root.HPScoreService.postScore(_root.ttlscore, "");
}
Frame 4
function init() {
shooting = true;
gravity = 0.8;
timer = 0;
ftimer = 0;
onFire = false;
zoomState = "zoomOut";
frameRate = 30;
gamePaused = false;
arrowCounter = 0;
currscore = 0;
level = 1;
shots = 4;
credits = 0;
quit = false;
credits = 0;
particleCounter = 5;
mute = false;
sliding = false;
fanning = false;
flamimg = false;
randFrame = 0;
sndShot = ["wooah", "waaah", "weee", "aargh"];
sndHappy = ["congratulations", "good shooting", "nice shot", "woop", "yeah", "yipee", "you did it"];
sndSad = ["damn it", "doh"];
shooting = true;
gravity = 0.8;
timer = 0;
ftimer = 0;
onFire = false;
zoomState = "zoomOut";
zoomingSpeed = 2;
frameRate = 30;
xSx = 0;
ySy = 0;
arrowCounter = 0;
allArrows = new Array();
mouseListener = new Object();
allObstacles = new Array();
particleCounter = 5;
allParticles = new Array();
}
function createLevel(lvlnum) {
createWorld();
switch (lvlnum) {
case 1 :
maxWorldW = 2500;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 2;
targscore = 150;
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:1000, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:1000, _y:Stage.height - 18});
allObstacles = ["hit_targ"];
break;
case 2 :
maxWorldW = 1800;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 3;
targscore = 200;
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:1300, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:1300, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 242, {_x:700, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole0", 280, {_x:700, _y:Stage.height - 18});
world.hit_mc.hit_pole0._height = world.pole0._height;
world.hit_mc.attachMovie("hit_mloop", "hit_loop0", 543, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("mloop1_mc", "mloop1_mc", -6, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("mloop2_mc", "mloop2_mc", 235, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
allObstacles = ["hit_targ", "hit_pole0", "hit_loop0"];
break;
case 3 :
maxWorldW = 2100;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 3;
targscore = 250;
world.attachMovie("trgBoard_mc", "trgBoard", -6, {_x:1200, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:1200, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 251, {_x:500, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole0", 280, {_x:500, _y:Stage.height - 18});
world.hit_mc.hit_pole0._height = world.hit_mc.hit_pole0._height / 1.7;
world.pole0._height = world.hit_mc.hit_pole0._height;
world.hit_mc.attachMovie("hit_lloop", "hit_loop0", 543, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("lloop1_mc", "lloop1_mc", -9, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("lloop2_mc", "lloop2_mc", 320, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole1", 252, {_x:725, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole1", 282, {_x:725, _y:Stage.height - 18});
world.hit_mc.hit_pole1._height = world.hit_mc.hit_pole1._height / 1.6;
world.pole1._height = world.hit_mc.hit_pole1._height;
world.hit_mc.attachMovie("hit_mloop", "hit_loop1", 544, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("mloop1_mc", "mloop1_mc", -8, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("mloop2_mc", "mloop2_mc", 321, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole2", 253, {_x:925, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole2", 283, {_x:925, _y:Stage.height - 18});
world.hit_mc.hit_pole2._height = world.hit_mc.hit_pole2._height / 1.6;
world.pole2._height = world.hit_mc.hit_pole2._height;
world.hit_mc.attachMovie("hit_sloop", "hit_loop2", 545, {_x:world.hit_mc.hit_pole2._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("sloop1_mc", "sloop1_mc", -7, {_x:world.hit_mc.hit_pole2._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("sloop2_mc", "sloop2_mc", 322, {_x:world.hit_mc.hit_pole2._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
allObstacles = ["hit_targ", "hit_pole0", "hit_pole1", "hit_pole2", "hit_loop0", "hit_loop1", "hit_loop2"];
break;
case 4 :
maxWorldW = 2500;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 2;
targscore = 150;
world.attachMovie("trgBoard45_mc", "trgBoard", -7, {_x:900, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ45", "hit_targ", 541, {_x:900, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick0", 542, {_x:500, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick1", 543, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick2", 544, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick3", 545, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick4", 546, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick3._y - world.hit_mc.hit_brick3._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick5", 547, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick6", 548, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.attachMovie("brick_mc", "brick0", -85, {_x:500, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick1", -84, {_x:world.brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.attachMovie("brick_mc", "brick2", -83, {_x:world.brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.attachMovie("brick_mc", "brick3", -82, {_x:world.brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.attachMovie("brick_mc", "brick4", -81, {_x:world.brick0._x, _y:world.hit_mc.hit_brick3._y - world.hit_mc.hit_brick3._height});
world.attachMovie("brick_mc", "brick5", -80, {_x:world.brick4._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.attachMovie("brick_mc", "brick6", -79, {_x:world.brick4._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
allObstacles = ["hit_targ", "hit_brick0", "hit_brick1", "hit_brick2", "hit_brick3", "hit_brick4", "hit_brick5", "hit_brick6"];
break;
case 5 :
maxWorldW = 1800;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 2;
targscore = 200;
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:1500, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:1500, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick0", 542, {_x:500, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick1", 543, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick2", 544, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick3", 545, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.attachMovie("brick_mc", "brick0", -85, {_x:500, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick1", -84, {_x:world.brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.attachMovie("brick_mc", "brick2", -83, {_x:world.brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.attachMovie("brick_mc", "brick3", -82, {_x:world.brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick4", 546, {_x:750, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick5", 547, {_x:world.hit_mc.hit_brick4._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick6", 548, {_x:world.hit_mc.hit_brick4._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick7", 549, {_x:world.hit_mc.hit_brick4._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.attachMovie("brick_mc", "brick4", -89, {_x:750, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick5", -88, {_x:world.brick4._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.attachMovie("brick_mc", "brick6", -87, {_x:world.brick4._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.attachMovie("brick_mc", "brick7", -86, {_x:world.brick4._x, _y:world.hit_mc.hit_brick6._y - world.hit_mc.hit_brick6._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick8", 552, {_x:1000, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick9", 553, {_x:world.hit_mc.hit_brick8._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick7._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick10", 554, {_x:world.hit_mc.hit_brick8._x, _y:world.hit_mc.hit_brick9._y - world.hit_mc.hit_brick8._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick11", 555, {_x:world.hit_mc.hit_brick8._x, _y:world.hit_mc.hit_brick10._y - world.hit_mc.hit_brick9._height});
world.attachMovie("brick_mc", "brick8", -99, {_x:1000, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick9", -98, {_x:world.brick8._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick8._height});
world.attachMovie("brick_mc", "brick10", -97, {_x:world.brick8._x, _y:world.hit_mc.hit_brick9._y - world.hit_mc.hit_brick9._height});
world.attachMovie("brick_mc", "brick11", -96, {_x:world.brick8._x, _y:world.hit_mc.hit_brick10._y - world.hit_mc.hit_brick10._height});
allObstacles = ["hit_targ", "hit_brick0", "hit_brick1", "hit_brick2", "hit_brick3", "hit_brick4", "hit_brick5", "hit_brick6", "hit_brick7", "hit_brick8", "hit_brick9", "hit_brick10", "hit_brick11"];
break;
case 6 :
maxWorldW = 1800;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 3;
targscore = 150;
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 251, {_x:0, _y:Stage.height - 18});
world.hit_mc.hit_pole0._height = world.hit_mc.hit_pole0._height * 5.65;
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:1500, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:1500, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_lblow", "hit_lblow0", 542, {_x:400, _y:Stage.height - 18});
world.attachMovie("lblower_mc", "lblower0", 700, {_x:400, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_lblow", "hit_lblow1", 543, {_x:800, _y:Stage.height - 18});
world.attachMovie("lblower_mc", "lblower0", 701, {_x:800, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_ublow", "hit_ublow0", 544, {_x:1200, _y:Stage.height - 18});
world.attachMovie("lblower_mc", "ublower0", 801, {_x:1200, _y:Stage.height - 18});
world.ublower0.gotoAndStop(2);
allObstacles = ["hit_targ", "hit_pole0", "hit_lblow0", "hit_lblow1", "hit_ublow0"];
break;
case 7 :
maxWorldW = 1200;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 3;
targscore = 200;
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:2700, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:2700, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_trampoline", "hit_trampoline0", 544, {_x:1700, _y:Stage.height - 18});
world.attachMovie("trampoline_mc", "trampoline0", 584, {_x:1700, _y:Stage.height - 18});
allObstacles = ["hit_targ", "hit_trampoline0"];
break;
case 8 :
maxWorldW = 1800;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 3;
targscore = 150;
world.attachMovie("trgBoard45_mc", "trgBoard", -7, {_x:700, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ45", "hit_targ", 541, {_x:700, _y:Stage.height - 18});
world.trgBoard._xscale = world.trgBoard._xscale * -1;
world.hit_mc.hit_targ._xscale = world.hit_mc.hit_targ._xscale * -1;
world.hit_mc.attachMovie("hit_pole", "hit_pole1", 251, {_x:0, _y:Stage.height - 18});
world.hit_mc.hit_pole1._height = world.hit_mc.hit_pole1._height * 5.65;
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 272, {_x:550, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole0", 282, {_x:550, _y:Stage.height - 18});
world.pole0._height = world.pole0._height * 1.5;
world.hit_mc.hit_pole0._height = world.pole0._height;
world.hit_mc.attachMovie("hit_mloop", "hit_loop0", 574, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("mloop1_mc", "mloop1_mc", -8, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("mloop2_mc", "mloop2_mc", 321, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.hit_mc.attachMovie("hit_ltrampoline", "hit_ltrampoline0", 583, {_x:980, _y:Stage.height - 18});
world.attachMovie("ltrampoline_mc", "ltrampoline0", 584, {_x:980, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick0", 542, {_x:1100, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick1", 543, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick2", 544, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick3", 545, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick4", 546, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick3._y - world.hit_mc.hit_brick3._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick5", 547, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick6", 548, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick7", 549, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick6._y - world.hit_mc.hit_brick6._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick8", 550, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick7._y - world.hit_mc.hit_brick7._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick9", 551, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick8._height});
world.attachMovie("brick_mc", "brick0", -85, {_x:1100, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick1", -84, {_x:world.brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.attachMovie("brick_mc", "brick2", -83, {_x:world.brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.attachMovie("brick_mc", "brick3", -82, {_x:world.brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.attachMovie("brick_mc", "brick4", -81, {_x:world.brick0._x, _y:world.hit_mc.hit_brick3._y - world.hit_mc.hit_brick3._height});
world.attachMovie("brick_mc", "brick5", -80, {_x:world.brick0._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.attachMovie("brick_mc", "brick6", -79, {_x:world.brick0._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.attachMovie("brick_mc", "brick7", -78, {_x:world.brick0._x, _y:world.hit_mc.hit_brick6._y - world.hit_mc.hit_brick6._height});
world.attachMovie("brick_mc", "brick8", -77, {_x:world.brick0._x, _y:world.hit_mc.hit_brick7._y - world.hit_mc.hit_brick7._height});
world.attachMovie("brick_mc", "brick9", -76, {_x:world.brick0._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick8._height});
allObstacles = ["hit_targ", "hit_pole0", "hit_pole1", "hit_loop0", "hit_ltrampoline0", "hit_brick0", "hit_brick1", "hit_brick2", "hit_brick3", "hit_brick4", "hit_brick5", "hit_brick6", "hit_brick7", "hit_brick8", "hit_brick9"];
break;
case 9 :
maxWorldW = 1800;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 4;
targscore = 200;
world.attachMovie("trgBoard45_mc", "trgBoard", -7, {_x:1550, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ45", "hit_targ", 541, {_x:1550, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 271, {_x:900, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole0", 280, {_x:900, _y:Stage.height - 18});
world.pole0._height = world.pole0._height * 1.5;
world.hit_mc.hit_pole0._height = world.pole0._height;
world.hit_mc.attachMovie("hit_lloop", "hit_loop0", 573, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("lloop1_mc", "lloop1_mc", -9, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("lloop2_mc", "lloop2_mc", 320, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole1", 272, {_x:500, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole1", 282, {_x:500, _y:Stage.height - 18});
world.pole1._height = world.pole1._height * 1.5;
world.hit_mc.hit_pole1._height = world.pole1._height;
world.hit_mc.attachMovie("hit_mloop", "hit_loop1", 574, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("mloop1_mc", "mloop1_mc", -8, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("mloop2_mc", "mloop2_mc", 321, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick0", 542, {_x:700, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick1", 543, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick2", 544, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick3", 545, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick4", 546, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick3._y - world.hit_mc.hit_brick3._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick5", 547, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick6", 548, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick7", 549, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick6._y - world.hit_mc.hit_brick6._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick8", 550, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick7._y - world.hit_mc.hit_brick7._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick9", 551, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick8._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick10", 552, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick9._y - world.hit_mc.hit_brick9._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick11", 553, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick10._y - world.hit_mc.hit_brick10._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick12", 554, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick11._y - world.hit_mc.hit_brick11._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick13", 555, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick12._y - world.hit_mc.hit_brick12._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick14", 556, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick13._y - world.hit_mc.hit_brick13._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick15", 557, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick14._y - world.hit_mc.hit_brick14._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick16", 558, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick15._y - world.hit_mc.hit_brick15._height});
world.attachMovie("brick_mc", "brick0", -85, {_x:700, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick1", -84, {_x:world.brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.attachMovie("brick_mc", "brick2", -83, {_x:world.brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.attachMovie("brick_mc", "brick3", -82, {_x:world.brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.attachMovie("brick_mc", "brick4", -81, {_x:world.brick0._x, _y:world.hit_mc.hit_brick3._y - world.hit_mc.hit_brick3._height});
world.attachMovie("brick_mc", "brick5", -80, {_x:world.brick0._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.attachMovie("brick_mc", "brick6", -79, {_x:world.brick0._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.attachMovie("brick_mc", "brick7", -78, {_x:world.brick0._x, _y:world.hit_mc.hit_brick6._y - world.hit_mc.hit_brick6._height});
world.attachMovie("brick_mc", "brick8", -77, {_x:world.brick0._x, _y:world.hit_mc.hit_brick7._y - world.hit_mc.hit_brick7._height});
world.attachMovie("brick_mc", "brick9", -76, {_x:world.brick0._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick8._height});
world.attachMovie("brick_mc", "brick10", -75, {_x:world.brick0._x, _y:world.hit_mc.hit_brick9._y - world.hit_mc.hit_brick9._height});
world.attachMovie("brick_mc", "brick11", -74, {_x:world.brick0._x, _y:world.hit_mc.hit_brick10._y - world.hit_mc.hit_brick10._height});
world.attachMovie("brick_mc", "brick12", -73, {_x:world.brick0._x, _y:world.hit_mc.hit_brick11._y - world.hit_mc.hit_brick11._height});
world.attachMovie("brick_mc", "brick13", -72, {_x:world.brick0._x, _y:world.hit_mc.hit_brick12._y - world.hit_mc.hit_brick12._height});
world.attachMovie("brick_mc", "brick14", -71, {_x:world.brick0._x, _y:world.hit_mc.hit_brick13._y - world.hit_mc.hit_brick13._height});
world.attachMovie("brick_mc", "brick15", -70, {_x:world.brick0._x, _y:world.hit_mc.hit_brick14._y - world.hit_mc.hit_brick14._height});
world.attachMovie("brick_mc", "brick16", -69, {_x:world.brick0._x, _y:world.hit_mc.hit_brick15._y - world.hit_mc.hit_brick15._height});
allObstacles = ["hit_targ", "hit_brick0", "hit_brick1", "hit_brick2", "hit_brick3", "hit_brick4", "hit_brick5", "hit_brick6", "hit_brick7", "hit_brick8", "hit_brick9", "hit_brick10", "hit_brick11", "hit_brick12", "hit_brick13", "hit_brick14", "hit_brick15", "hit_brick16", "hit_pole0", "hit_pole1", "hit_loop0", "hit_loop1"];
break;
case 10 :
maxWorldW = 1800;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 4;
targscore = 175;
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:600, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 241, {_x:600, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_pole", "hit_pole2", 279, {_x:590, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_pole", "hit_pole3", 271, {_x:580, _y:Stage.height - 18});
world.trgBoard._xscale = world.trgBoard._xscale * -1;
world.hit_mc.hit_targ._xscale = world.hit_mc.hit_targ._xscale * -1;
world.hit_mc.hit_pole2._xscale = world.hit_mc.hit_pole2._xscale * -1;
world.hit_mc.hit_pole2._height = world.hit_mc.hit_targ._height;
world.hit_mc.attachMovie("hit_pole", "hit_pole4", 251, {_x:0, _y:Stage.height - 18});
world.hit_mc.hit_pole4._height = world.hit_mc.hit_pole4._height * 5.65;
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 272, {_x:400, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole0", 282, {_x:400, _y:Stage.height - 18});
world.pole0._height = world.pole0._height * 1.8;
world.hit_mc.hit_pole0._height = world.pole0._height;
world.hit_mc.attachMovie("hit_sloop", "hit_loop0", 574, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("sloop1_mc", "sloop1_mc", -8, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("sloop2_mc", "sloop2_mc", 321, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.hit_mc.attachMovie("hit_lblow", "hit_lblow0", 542, {_x:1100, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_lblow", "hit_lblow1", 543, {_x:1200, _y:Stage.height - 18});
world.attachMovie("lblower_mc", "lblower0", 700, {_x:1100, _y:Stage.height - 18});
allObstacles = ["hit_targ", "hit_pole4", "hit_pole2", "hit_pole3", "hit_pole0", "hit_loop0", "hit_lblow0", "hit_lblow1"];
break;
default :
createLevel2(lvlnum);
}
world.hit_mc._visible = false;
world.attachMovie("santa_mc", "santa_mc", 200, {_x:world.trgBoard._x + 40, _y:Stage.height - 18});
level = lvlnum;
currscore = 0;
initZoomOut(world, zoomingSpeed);
hud.display.shots_mc.shot_txt.text = shots;
hud.display.score_mc.targscore_txt.text = "/" + targscore;
trace((("shot text = " + hud.display.shots_mc.shot_txt.text) + "var = ") + shots);
trace((("targscore text = " + hud.display.score_mc.targscore_txt.text) + "var = ") + targscore);
trace((("currscore text = " + hud.display.score_mc.score_txt.text) + "var = ") + currscore);
trace((("lvl text = " + hud.display.level_mc.lvl_txt.text) + "var = ") + level);
hud.display.score_mc.score_txt.text = currscore;
hud.display.level_mc.lvl_txt.text = level;
}
function createLevel2(lvlnum) {
switch (lvlnum) {
case 11 :
maxWorldW = 2000;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 6;
targscore = 150;
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 272, {_x:400, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole0", 282, {_x:400, _y:Stage.height - 18});
world.pole0._height = world.pole0._height * 2;
world.hit_mc.hit_pole0._height = world.pole0._height;
world.hit_mc.attachMovie("hit_lloop", "hit_loop0", 574, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("lloop1_mc", "lloop1_mc", -8, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("lloop2_mc", "lloop2_mc", 321, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole1", 273, {_x:1300, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole1", 283, {_x:1300, _y:Stage.height - 18});
world.pole1._height = world.pole1._height * 1.6;
world.hit_mc.hit_pole1._height = world.pole1._height;
world.hit_mc.attachMovie("hit_lloop", "hit_loop1", 575, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole1._height});
world.attachMovie("lloop1_mc", "lloop1_mc", -9, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole1._height});
world.attachMovie("lloop2_mc", "lloop2_mc", 322, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole1._height});
world.hit_mc.attachMovie("hit_trampoline", "hit_trampoline0", 544, {_x:1000, _y:Stage.height - 18});
world.attachMovie("trampoline_mc", "trampoline0", 584, {_x:1000, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_ltrampoline", "hit_ltrampoline0", 589, {_x:1500, _y:Stage.height - 18});
world.attachMovie("ltrampoline_mc", "ltrampoline0", 585, {_x:1500, _y:Stage.height - 18});
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:500, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:500, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_pole", "hit_pole2", 279, {_x:490, _y:Stage.height - 18});
world.trgBoard._xscale = world.trgBoard._xscale * -1;
world.hit_mc.hit_targ._xscale = world.hit_mc.hit_targ._xscale * -1;
world.hit_mc.hit_pole2._height = world.hit_mc.hit_targ._height;
world.hit_mc.attachMovie("hit_pole", "hit_pole4", 251, {_x:0, _y:Stage.height - 18});
world.hit_mc.hit_pole4._height = world.hit_mc.hit_pole4._height * 5.65;
allObstacles = ["hit_targ", "hit_pole4", "hit_pole2", "hit_pole0", "hit_loop0", "hit_pole1", "hit_loop1", "hit_trampoline0", "hit_ltrampoline0"];
break;
case 12 :
maxWorldW = 1500;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 2;
targscore = 300;
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:1900, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:1900, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_rblow", "hit_rblow0", 642, {_x:400, _y:Stage.height - 18});
world.attachMovie("lblower_mc", "rblower0", 700, {_x:400, _y:Stage.height - 18});
world.rblower0._xscale = world.rblower0._xscale * -1;
world.hit_mc.attachMovie("hit_brick", "hit_brick0", 542, {_x:700, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick1", 543, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick2", 544, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick3", 545, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.attachMovie("brick_mc", "brick0", -85, {_x:700, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick1", -84, {_x:world.brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.attachMovie("brick_mc", "brick2", -83, {_x:world.brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.attachMovie("brick_mc", "brick3", -82, {_x:world.brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick4", 546, {_x:950, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick5", 547, {_x:world.hit_mc.hit_brick4._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick6", 548, {_x:world.hit_mc.hit_brick4._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick7", 549, {_x:world.hit_mc.hit_brick4._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.attachMovie("brick_mc", "brick4", -89, {_x:950, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick5", -88, {_x:world.brick4._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.attachMovie("brick_mc", "brick6", -87, {_x:world.brick4._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.attachMovie("brick_mc", "brick7", -86, {_x:world.brick4._x, _y:world.hit_mc.hit_brick6._y - world.hit_mc.hit_brick6._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick8", 552, {_x:1200, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick9", 553, {_x:world.hit_mc.hit_brick8._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick7._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick10", 554, {_x:world.hit_mc.hit_brick8._x, _y:world.hit_mc.hit_brick9._y - world.hit_mc.hit_brick8._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick11", 555, {_x:world.hit_mc.hit_brick8._x, _y:world.hit_mc.hit_brick10._y - world.hit_mc.hit_brick9._height});
world.attachMovie("brick_mc", "brick8", -99, {_x:1200, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick9", -98, {_x:world.brick8._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick8._height});
world.attachMovie("brick_mc", "brick10", -97, {_x:world.brick8._x, _y:world.hit_mc.hit_brick9._y - world.hit_mc.hit_brick9._height});
world.attachMovie("brick_mc", "brick11", -96, {_x:world.brick8._x, _y:world.hit_mc.hit_brick10._y - world.hit_mc.hit_brick10._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick12", 566, {_x:1450, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick13", 567, {_x:world.hit_mc.hit_brick12._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick14", 568, {_x:world.hit_mc.hit_brick12._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick15", 569, {_x:world.hit_mc.hit_brick12._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.attachMovie("brick_mc", "brick12", -109, {_x:1450, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick13", -108, {_x:world.brick12._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.attachMovie("brick_mc", "brick14", -107, {_x:world.brick12._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.attachMovie("brick_mc", "brick15", -106, {_x:world.brick12._x, _y:world.hit_mc.hit_brick6._y - world.hit_mc.hit_brick6._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick16", 572, {_x:1700, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick17", 573, {_x:world.hit_mc.hit_brick16._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick7._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick18", 574, {_x:world.hit_mc.hit_brick16._x, _y:world.hit_mc.hit_brick9._y - world.hit_mc.hit_brick8._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick19", 575, {_x:world.hit_mc.hit_brick16._x, _y:world.hit_mc.hit_brick10._y - world.hit_mc.hit_brick9._height});
world.attachMovie("brick_mc", "brick16", -119, {_x:1700, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick17", -118, {_x:world.brick16._x, _y:world.hit_mc.hit_brick16._y - world.hit_mc.hit_brick16._height});
world.attachMovie("brick_mc", "brick18", -117, {_x:world.brick16._x, _y:world.hit_mc.hit_brick17._y - world.hit_mc.hit_brick17._height});
world.attachMovie("brick_mc", "brick19", -116, {_x:world.brick16._x, _y:world.hit_mc.hit_brick18._y - world.hit_mc.hit_brick18._height});
allObstacles = ["hit_targ", "hit_brick0", "hit_brick1", "hit_brick2", "hit_brick3", "hit_brick4", "hit_brick5", "hit_brick6", "hit_brick7", "hit_brick8", "hit_brick9", "hit_brick10", "hit_brick11", "hit_brick12", "hit_brick13", "hit_brick14", "hit_brick15", "hit_brick16", "hit_brick17", "hit_brick18", "hit_brick19", "hit_rblow0", "hit_rblow1", "hit_rblow2", "hit_rblow3", "hit_rblow4"];
break;
case 13 :
maxWorldW = 1500;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 3;
targscore = 250;
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:750, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:750, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 279, {_x:735, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_pole", "hit_pole1", 280, {_x:730, _y:Stage.height - 18});
world.trgBoard._xscale = world.trgBoard._xscale * -1;
world.hit_mc.hit_targ._xscale = world.hit_mc.hit_targ._xscale * -1;
world.hit_mc.hit_pole0._height = world.hit_mc.hit_targ._height;
world.hit_mc.hit_pole1._height = world.hit_mc.hit_targ._height;
world.hit_mc.attachMovie("hit_pole", "hit_pole4", 251, {_x:0, _y:Stage.height - 18});
world.hit_mc.hit_pole4._height = world.hit_mc.hit_pole4._height * 5.65;
world.hit_mc.attachMovie("hit_trampoline", "hit_trampoline0", 589, {_x:1300, _y:Stage.height - 18});
world.attachMovie("trampoline_mc", "trampoline0", 587, {_x:1300, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_ltrampoline", "hit_ltrampoline0", 583, {_x:2000, _y:Stage.height - 18});
world.attachMovie("ltrampoline_mc", "ltrampoline0", 584, {_x:2000, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick0", 542, {_x:650, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_brick", "hit_brick1", 543, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick2", 544, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick3", 545, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick4", 546, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick3._y - world.hit_mc.hit_brick3._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick5", 547, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick6", 548, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick7", 549, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick6._y - world.hit_mc.hit_brick6._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick8", 550, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick7._y - world.hit_mc.hit_brick7._height});
world.hit_mc.attachMovie("hit_brick", "hit_brick9", 551, {_x:world.hit_mc.hit_brick0._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick8._height});
world.attachMovie("brick_mc", "brick0", -85, {_x:650, _y:Stage.height - 18});
world.attachMovie("brick_mc", "brick1", -84, {_x:world.brick0._x, _y:world.hit_mc.hit_brick0._y - world.hit_mc.hit_brick0._height});
world.attachMovie("brick_mc", "brick2", -83, {_x:world.brick0._x, _y:world.hit_mc.hit_brick1._y - world.hit_mc.hit_brick1._height});
world.attachMovie("brick_mc", "brick3", -82, {_x:world.brick0._x, _y:world.hit_mc.hit_brick2._y - world.hit_mc.hit_brick2._height});
world.attachMovie("brick_mc", "brick4", -81, {_x:world.brick0._x, _y:world.hit_mc.hit_brick3._y - world.hit_mc.hit_brick3._height});
world.attachMovie("brick_mc", "brick5", -80, {_x:world.brick0._x, _y:world.hit_mc.hit_brick4._y - world.hit_mc.hit_brick4._height});
world.attachMovie("brick_mc", "brick6", -79, {_x:world.brick0._x, _y:world.hit_mc.hit_brick5._y - world.hit_mc.hit_brick5._height});
world.attachMovie("brick_mc", "brick7", -78, {_x:world.brick0._x, _y:world.hit_mc.hit_brick6._y - world.hit_mc.hit_brick6._height});
world.attachMovie("brick_mc", "brick8", -77, {_x:world.brick0._x, _y:world.hit_mc.hit_brick7._y - world.hit_mc.hit_brick7._height});
world.attachMovie("brick_mc", "brick9", -76, {_x:world.brick0._x, _y:world.hit_mc.hit_brick8._y - world.hit_mc.hit_brick8._height});
allObstacles = ["hit_targ", "hit_pole4", "hit_pole1", "hit_pole0", "hit_trampoline0", "hit_ltrampoline0", "hit_brick0", "hit_brick1", "hit_brick2", "hit_brick3", "hit_brick4", "hit_brick5", "hit_brick6", "hit_brick7", "hit_brick8", "hit_brick9"];
break;
case 14 :
maxWorldW = 1200;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 3;
targscore = 200;
world.attachMovie("trgBoard_mc", "trgBoard", -7, {_x:2400, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ", "hit_targ", 541, {_x:2400, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_trampoline", "hit_trampoline0", 589, {_x:500, _y:Stage.height - 18});
world.attachMovie("trampoline_mc", "trampoline0", 587, {_x:500, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_trampoline", "hit_trampoline1", 545, {_x:900, _y:Stage.height - 18});
world.attachMovie("trampoline_mc", "trampoline1", 584, {_x:900, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_trampoline", "hit_trampoline2", 546, {_x:1300, _y:Stage.height - 18});
world.attachMovie("trampoline_mc", "trampoline2", 585, {_x:1300, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_trampoline", "hit_trampoline3", 547, {_x:1700, _y:Stage.height - 18});
world.attachMovie("trampoline_mc", "trampoline3", 586, {_x:1700, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_trampoline", "hit_trampoline4", 544, {_x:2100, _y:Stage.height - 18});
world.attachMovie("trampoline_mc", "trampoline4", 582, {_x:2100, _y:Stage.height - 18});
allObstacles = ["hit_targ", "hit_trampoline0", "hit_trampoline1", "hit_trampoline2", "hit_trampoline3", "hit_trampoline4"];
break;
case 15 :
maxWorldW = 1400;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 4;
targscore = 400;
world.attachMovie("trgBoard45_mc", "trgBoard", -7, {_x:2200, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ45", "hit_targ", 541, {_x:2200, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 251, {_x:400, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole0", 280, {_x:400, _y:Stage.height - 18});
world.hit_mc.hit_pole0._height = world.hit_mc.hit_pole0._height * 1.25;
world.pole0._height = world.hit_mc.hit_pole0._height;
world.hit_mc.attachMovie("hit_sloop", "hit_sloop0", 543, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("sloop1_mc", "sloop1_mc", -9, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("sloop2_mc", "sloop2_mc", 320, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole3", 259, {_x:650, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole3", 289, {_x:650, _y:Stage.height - 18});
world.hit_mc.hit_pole3._height = world.hit_mc.hit_pole3._height * 1.7;
world.pole3._height = world.hit_mc.hit_pole3._height;
world.hit_mc.attachMovie("hit_mloop", "hit_loop3", 539, {_x:world.hit_mc.hit_pole3._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole3._height});
world.attachMovie("mloop1_mc", "mloop1_mc", -6, {_x:world.hit_mc.hit_pole3._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole3._height});
world.attachMovie("mloop2_mc", "mloop2_mc", 329, {_x:world.hit_mc.hit_pole3._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole3._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole1", 252, {_x:900, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole1", 282, {_x:900, _y:Stage.height - 18});
world.hit_mc.hit_pole1._height = world.hit_mc.hit_pole1._height * 2.1;
world.pole1._height = world.hit_mc.hit_pole1._height;
world.hit_mc.attachMovie("hit_mloop", "hit_loop1", 544, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole1._height});
world.attachMovie("mloop1_mc", "mloop1_mc", -8, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole1._height});
world.attachMovie("mloop2_mc", "mloop2_mc", 321, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole1._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole2", 253, {_x:1200, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole2", 283, {_x:1200, _y:Stage.height - 18});
world.hit_mc.hit_pole2._height = world.hit_mc.hit_pole2._height * 2.5;
world.pole2._height = world.hit_mc.hit_pole2._height;
world.hit_mc.attachMovie("hit_lloop", "hit_loop2", 545, {_x:world.hit_mc.hit_pole2._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole2._height});
world.attachMovie("lloop1_mc", "lloop1_mc", -27, {_x:world.hit_mc.hit_pole2._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole2._height});
world.attachMovie("lloop2_mc", "lloop2_mc", 322, {_x:world.hit_mc.hit_pole2._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole2._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole4", 254, {_x:1500, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole4", 284, {_x:1500, _y:Stage.height - 18});
world.hit_mc.hit_pole4._height = world.hit_mc.hit_pole4._height * 2.1;
world.pole4._height = world.hit_mc.hit_pole4._height;
world.hit_mc.attachMovie("hit_mloop", "hit_loop4", 546, {_x:world.hit_mc.hit_pole4._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole4._height});
world.attachMovie("mloop1_mc", "mloop1_mc", -23, {_x:world.hit_mc.hit_pole4._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole4._height});
world.attachMovie("mloop2_mc", "mloop2_mc", 323, {_x:world.hit_mc.hit_pole4._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole4._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole5", 255, {_x:1750, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole5", 285, {_x:1750, _y:Stage.height - 18});
world.hit_mc.hit_pole5._height = world.hit_mc.hit_pole5._height * 1.7;
world.pole5._height = world.hit_mc.hit_pole5._height;
world.hit_mc.attachMovie("hit_mloop", "hit_loop5", 547, {_x:world.hit_mc.hit_pole5._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole5._height});
world.attachMovie("mloop1_mc", "mloop1_mc", -16, {_x:world.hit_mc.hit_pole5._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole5._height});
world.attachMovie("mloop2_mc", "mloop2_mc", 326, {_x:world.hit_mc.hit_pole5._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole5._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole6", 256, {_x:2000, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole6", 286, {_x:2000, _y:Stage.height - 18});
world.hit_mc.hit_pole6._height = world.hit_mc.hit_pole6._height * 1.25;
world.pole6._height = world.hit_mc.hit_pole6._height;
world.hit_mc.attachMovie("hit_sloop", "hit_loop6", 548, {_x:world.hit_mc.hit_pole6._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole6._height});
world.attachMovie("sloop1_mc", "sloop1_mc", -25, {_x:world.hit_mc.hit_pole6._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole6._height});
world.attachMovie("sloop2_mc", "sloop2_mc", 325, {_x:world.hit_mc.hit_pole6._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole6._height});
allObstacles = ["hit_targ", "hit_pole0", "hit_pole1", "hit_pole2", "hit_pole3", "hit_pole4", "hit_pole5", "hit_pole6", "hit_loop0", "hit_loop1", "hit_loop2", "hit_loop3", "hit_loop4", "hit_loop4", "hit_loop5", "hit_loop6"];
break;
case 16 :
maxWorldW = 2000;
maxWorldH = maxWorldW * (Stage.height / Stage.width);
minWorldW = 4508.3;
minWorldH = minWorldW * (Stage.height / Stage.width);
currentLevel = lvlnum;
shots = 5;
targscore = 175;
world.hit_mc.attachMovie("hit_pole", "hit_pole0", 572, {_x:500, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole0", 582, {_x:500, _y:Stage.height - 18});
world.pole0._height = world.pole0._height * 2.2;
world.hit_mc.hit_pole0._height = world.pole0._height;
world.hit_mc.attachMovie("hit_lloop", "hit_loop0", 564, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("lloop1_mc", "lloop1_mc", -8, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.attachMovie("lloop2_mc", "lloop2_mc", 321, {_x:world.hit_mc.hit_pole0._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole0._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole1", 573, {_x:1290, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole1", 583, {_x:1290, _y:Stage.height - 18});
world.pole1._height = world.pole1._height * 2.5;
world.hit_mc.hit_pole1._height = world.pole1._height;
world.hit_mc.attachMovie("hit_lloop", "hit_loop1", 575, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole1._height});
world.attachMovie("lloop1_mc", "lloop1_mc", -9, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole1._height});
world.attachMovie("lloop2_mc", "lloop2_mc", 322, {_x:world.hit_mc.hit_pole1._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole1._height});
world.hit_mc.attachMovie("hit_pole", "hit_pole2", 554, {_x:700, _y:Stage.height - 18});
world.attachMovie("pole_mc", "pole2", 584, {_x:700, _y:Stage.height - 18});
world.pole2._height = world.pole2._height * 1.8;
world.hit_mc.hit_pole2._height = world.pole2._height;
world.hit_mc.attachMovie("hit_sloop", "hit_loop2", 579, {_x:world.hit_mc.hit_pole2._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole2._height});
world.attachMovie("sloop1_mc", "sloop1_mc", -11, {_x:world.hit_mc.hit_pole2._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole2._height});
world.attachMovie("sloop2_mc", "sloop2_mc", 329, {_x:world.hit_mc.hit_pole2._x, _y:(Stage.height - 18) - world.hit_mc.hit_pole2._height});
world.hit_mc.attachMovie("hit_ublow", "hit_ublow0", 546, {_x:900, _y:Stage.height - 18});
world.attachMovie("lblower_mc", "ublower0", 702, {_x:900, _y:Stage.height - 15});
world.ublower0.gotoAndStop(2);
world.hit_mc.attachMovie("hit_ublow", "hit_ublow1", 547, {_x:960, _y:Stage.height - 18});
world.attachMovie("lblower_mc", "ublower1", 703, {_x:960, _y:Stage.height - 18});
world.ublower1.gotoAndStop(2);
world.hit_mc.attachMovie("hit_ublow", "hit_ublow2", 549, {_x:930, _y:Stage.height - 18});
world.attachMovie("lblower_mc", "ublower2", 704, {_x:930, _y:Stage.height - 18});
world.ublower2.gotoAndStop(2);
world.attachMovie("trgBoard45_mc", "trgBoard", -7, {_x:1400, _y:Stage.height - 18});
world.hit_mc.attachMovie("hit_targ45", "hit_targ", 541, {_x:1400, _y:Stage.height - 18});
allObstacles = ["hit_targ", "hit_pole0", "hit_loop0", "hit_pole1", "hit_loop1", "hit_pole2", "hit_loop2", "hit_ublow0", "hit_ublow1", "hit_ublow2"];
}
}
function createWorld() {
createEmptyMovieClip("world", 42431);
world.createEmptyMovieClip("hit_mc", 540);
world.attachMovie("cannon_mc", "cannon", -928, {_x:55, _y:361});
world.attachMovie("landscape_mc", "landscape", -939, {_x:0, _y:Stage.height});
world.attachMovie("crewElf_mc", "crewElf", -929, {_x:25, _y:358});
world.attachMovie("leadElf_mc", "leadElf", -927, {_x:80, _y:375});
}
function createHUD() {
createEmptyMovieClip("hud", 542343);
hud.attachMovie("mute_mc", "mute_mc", 1232, {_x:767.9, _y:373.4});
hud.attachMovie("mute_btn", "mute_btn", 1349, {_x:767, _y:373.4});
hud.attachMovie("hintstog_mc", "hintstog_mc", 1231, {_x:700.8, _y:373.1});
hud.attachMovie("hintstog_btn", "hintstog_btn", 1340, {_x:679, _y:371.1});
hud.mute_btn._x = 767;
hud.mute_btn._y = 373.4;
hud.hintstog_btn._x = 702;
hud.hintstog_btn._y = 373.1;
hud.attachMovie("display_mc", "display", 542345);
hud.attachMovie("hallpass_mc", "hallpass_mc", 542346, {_x:676.1, _y:4.3});
hud.display.shots_mc.shot_txt.text = shots;
hud.display.score_mc.targscore_txt.text = "/" + targscore;
hud.display.score_mc.score_txt.text = currscore;
hud.display.level_mc.lvl_txt.text = level;
}
function fire() {
if (!shooting) {
if (_xmouse > world.cannon._x) {
if (_ymouse < world.cannon._y) {
if (shots > 0) {
if ((_xmouse < 600) || (_ymouse > 38)) {
var _local3 = getStartPosition();
var _local2 = _root.world.attachMovie("arrow_mc", "arrow" + arrowCounter, arrowCounter++, {_x:_local3._x, _y:_local3._y});
_local2.init(0.02, 0.995, Math.min((world.cannon.ctube.cannon_end.pwrBar_mask._width / 8.5) + 2, 52), _ymouse, _xmouse);
_local2._visible = false;
world.cannon.ctube.cannon_end.pwrBar.play();
allArrows.push(_local2);
zoomState = "zoomIn";
ready = false;
ftimer = 0;
shots--;
trace((("shot text = " + hud.display.shots_mc.shot_txt.text) + "var = ") + shots);
trace((("targscore text = " + hud.display.score_mc.targscore_txt.text) + "var = ") + targscore);
trace((("currscore text = " + hud.display.score_mc.score_txt.text) + "var = ") + currscore);
trace((("lvl text = " + hud.display.level_mc.lvl_txt.text) + "var = ") + level);
_root.hud.display.shots_mc.shot_txt.text = _root.shots;
trace(hud.display.shots_mc.shot_txt);
hud.attachMovie("-1_mc", "-1", 2131, {_x:128, _y:4});
onFire = false;
world.smoke1_mc.removeMovieClip();
removeMovieClip(world.smoke2_mc);
removeMovieClip(world.smoke3_mc);
var _local6 = _xmouse - world.cannon._x;
var _local5 = (_ymouse - world.cannon._y) * -1;
var _local4 = Math.atan(_local5 / _local6) / (Math.PI/180);
if (_local4 > 0) {
world.cannon.ctube._rotation = _local4 * -1;
}
}
}
}
}
}
}
function getStartPosition() {
var _local1 = {x:world.cannon.ctube.cannon_end._x, y:world.cannon.ctube.cannon_end._y};
world.cannon.ctube.localToGlobal(_local1);
return({_x:_local1.x, _y:_local1.y});
}
function checkBounds(trgnumber) {
if (allArrows[trgnumber]._y > 380) {
createParticle(6, allArrows[0]._x, allArrows[0]._y, allArrows[0].dx, allArrows[0].dy, allArrows[0].speed, 1, "snow_mc");
allArrows[trgnumber].gotoAndStop(5);
if (allArrows[0]._rotation < 30) {
allArrows[trgnumber].gotoAndStop(8);
if (!sliding) {
sound.attachSound("slide");
sound.start();
sliding = true;
}
if (allArrows[0].speed < 5) {
sliding = false;
allArrows.splice(trgnumber, 1);
initZoomOut(world, zoomingSpeed);
zoomState = "delayZoomOut";
} else {
allArrows[0].speed = allArrows[0].speed * 0.7;
allArrows[0].dy = allArrows[0].dy * 0.1;
screenShake(Math.random() * allArrows[0].speed, Math.random() * allArrows[0].speed, 0.8, 0.2);
}
} else {
allArrows.splice(trgnumber, 1);
initZoomOut(world, zoomingSpeed);
zoomState = "delayZoomOut";
sound.attachSound("land");
sound.start();
}
}
if (allArrows[trgnumber]._x < -30) {
allArrows[0].removeMovieClip();
allArrows.splice(trgnumber, 1);
initZoomOut(world, zoomingSpeed);
zoomState = "delayZoomOut";
}
}
function checkTarget(trg) {
var _local13 = allArrows[0].speed;
var _local12 = allArrows[0].dx;
var _local11 = allArrows[0].dy;
var _local2 = 0;
while (_local2 < _local13) {
var _local4 = {x:allArrows[0]._x + (_local2 * _local12), y:allArrows[0]._y + (_local2 * _local11)};
_root.world.localToGlobal(_local4);
if (world.hit_mc.hitTest(_local4.x, _local4.y, true)) {
allArrows[0]._x = _local4.x - world._x;
allArrows[0]._y = _local4.y - world._y;
_local2 = 0;
while (_local2 < allObstacles.length) {
if (allArrows[0].hitTest(world.hit_mc[allObstacles[_local2]])) {
switch (allObstacles[_local2].slice(0, 8)) {
case "hit_pole" :
createParticle(4, allArrows[0]._x, allArrows[0]._y, -allArrows[0].dx, 0.5, allArrows[0].speed / 4, 6, "spark_mc");
screenShake((Math.random() * allArrows[0].speed) * 1.3, 0, 0.9, 0.2);
sound.attachSound("Metal hit");
sound.start();
allArrows[0].gotoAndStop(4);
if ((allArrows[0]._x + world._x) > 70) {
allArrows[0]._x = allArrows[0]._x - 20;
allArrows[0].dx = allArrows[0].dx * -0.05;
allArrows[0].dy = allArrows[0].dy * -0.09;
allArrows[0].speed = allArrows[0].speed / 2;
allArrows[0]._yscale = -100;
trace("righht");
} else {
allArrows[0]._x = allArrows[0]._x + 20;
allArrows[0].dx = allArrows[0].dx * -0.05;
allArrows[0].dy = allArrows[0].dy * -0.09;
allArrows[0].speed = allArrows[0].speed / 2;
trace("left");
}
break;
case "hit_targ" :
allArrows[0].gotoAndStop(6);
screenShake(Math.random() * allArrows[0].speed, 0, 0.85, 0.2);
popScore(_root.world.hit_mc.hit_targ);
_root.hud.display.score_mc.score_txt.text = _root.currscore;
trace(_root.hud.display.score_mc.score_txt);
allArrows.splice(0, 1);
sound.attachSound("target");
sound.start();
initZoomOut(world, zoomingSpeed);
zoomState = "delayZoomOut";
break;
case "hit_loop" :
createParticle(8, allArrows[0]._x, allArrows[0]._y, 0, 0.5, allArrows[0].speed / 4, 2, "orgember_mc");
screenShake(Math.random() * allArrows[0].speed, Math.random() * allArrows[0].speed, 0.95, 0.2);
world.attachMovie("smoke1_mc", "smoke1_mc", 621, {_x:allArrows[0]._x, _y:allArrows[0]._y});
world.attachMovie("smoke1_mc", "smoke2_mc", 622);
world.attachMovie("smoke1_mc", "smoke3_mc", 623);
onFire = true;
allArrows[0].dy = allArrows[0].dy - 0.5;
allArrows[0].speed = 10;
allArrows[0].gotoAndStop(3);
if (!flamming) {
flamming = true;
sound.attachSound("Flame");
sound.start();
}
break;
case "hit_bric" :
var _local3 = "brick" + allObstacles[_local2].slice(9, 11);
if (allArrows[0].speed <= 44.2) {
trace(allArrows[0].speed);
screenShake(Math.random() * allArrows[0].speed, Math.random() * allArrows[0].speed, 0.8, 0.2);
allArrows[0]._x = allArrows[0]._x - 30;
allArrows[0].dx = allArrows[0].dx * -0.05;
allArrows[0].dy = allArrows[0].dy * -0.09;
allArrows[0].speed = allArrows[0].speed / 2;
allArrows[0]._yscale = -100;
trace("brick me");
sound.attachSound("target");
sound.start();
if (world[_local3]._currentframe < (world[_local3]._totalframes - 1)) {
world[_local3].gotoAndStop(world[_local3]._currentframe + 1);
}
} else {
createParticle(5, allArrows[0]._x, allArrows[0]._y, 0, 0, allArrows[0].speed / 4, 4, "dust_mc");
createParticle(5, allArrows[0]._x, allArrows[0]._y, allArrows[0].dx, 0, allArrows[0].speed / 2, 2, "ruin_mc");
screenShake((Math.random() * allArrows[0].speed) * 2, (Math.random() * allArrows[0].speed) * 2, 0.8, 0.2);
world.hit_mc[allObstacles[_local2]].gotoAndStop(2);
world[_local3].gotoAndStop(world[_local3]._totalframes);
sound.attachSound("brick smash");
sound.start();
}
break;
case "hit_tram" :
var _local5 = "trampoline" + allObstacles[_local2].slice(14, 16);
screenShake(0, Math.random() * allArrows[0].speed, 0.8, 0.2);
allArrows[0]._y = allArrows[0]._y - 5;
allArrows[0].dy = (-Math.abs(allArrows[0].dy)) + 0.05;
sound.attachSound("Trampoline");
sound.start();
world[_local5].trampoline2Bounce.play();
break;
case "hit_ltra" :
_local5 = "ltrampoline" + allObstacles[_local2].slice(15, 17);
screenShake(0, Math.random() * allArrows[0].speed, 0.8, 0.2);
allArrows[0]._y = allArrows[0]._y - 5;
allArrows[0]._x = allArrows[0]._x - 5;
allArrows[0].dy = (-Math.abs(allArrows[0].dy)) + 0.05;
allArrows[0].dx = (-Math.abs(allArrows[0].dy)) + 0.05;
allArrows[0]._yscale = -100;
sound.attachSound("Trampoline");
sound.start();
world[_local5].trampoline1Bounce.play();
break;
case "hit_lblo" :
var _local6 = Math.sqrt(Math.pow(allArrows[0]._x - world.hit_mc[allObstacles[_local2]]._x, 2) + Math.pow(allArrows[0]._y - world.hit_mc[allObstacles[_local2]]._y, 2));
allArrows[0].dy = allArrows[0].dy - (0.13 - (_local6 / 2000));
allArrows[0].dx = allArrows[0].dx - (0.13 - (_local6 / 2000));
if (allArrows[0].dx > 0) {
allArrows[0]._x = allArrows[0]._x - 2;
}
if (!fanning) {
fanning = true;
sound.attachSound("Fan");
sound.start();
}
break;
case "hit_rblo" :
_local6 = Math.sqrt(Math.pow(allArrows[0]._x - world.hit_mc[allObstacles[_local2]]._x, 2) + Math.pow(allArrows[0]._y - world.hit_mc[allObstacles[_local2]]._y, 2));
allArrows[0].dy = allArrows[0].dy - (0.13 - (_local6 / 2000));
allArrows[0].dx = allArrows[0].dx + (0.13 - (_local6 / 2000));
if (allArrows[0].dx > 0) {
allArrows[0]._x = allArrows[0]._x + 2;
}
if (!fanning) {
fanning = true;
sound.attachSound("Fan");
sound.start();
}
break;
case "hit_ublo" :
_local6 = Math.sqrt(Math.pow(allArrows[0]._x - world.hit_mc[allObstacles[_local2]]._x, 2) + Math.pow(allArrows[0]._y - world.hit_mc[allObstacles[_local2]]._y, 2));
allArrows[0].dy = allArrows[0].dy - (0.13 - (_local6 / 2000));
if (allArrows[0].dy > 0) {
allArrows[0]._y = allArrows[0]._y - 1;
}
if (fanning) {
break;
}
fanning = true;
sound.attachSound("Fan");
sound.start();
}
break;
}
_local2++;
}
break;
}
flamming = false;
fanning = false;
_local2++;
}
}
function popScore(trg) {
var _local3 = {y:trg._y - (trg._height / 2), x:trg._x};
var _local2 = (Math.round(Math.sqrt(Math.pow(_local3.x - allArrows[0]._x, 2) + Math.pow(_local3.y - allArrows[0]._y, 2))) * -1) + 200;
trace("void = " + allArrows[0]._x);
trace("- = " + (allArrows[0]._x - _root.world._x));
trace("+ = " + (allArrows[0]._x + _root.world._x));
if ((allArrows[0]._x + _root.world._x) > 300) {
world.attachMovie("lspeech_mc", "t_mc", 1201, {_x:world.santa_mc._x - 135, _y:world.santa_mc._y - 115});
} else {
world.attachMovie("rspeech_mc", "t_mc", 1201, {_x:world.santa_mc._x + 50, _y:world.santa_mc._y - 115});
}
world.santa_mc.play();
if (_local2 > 50) {
world.t_mc.w_txt.text = "Not bad";
}
if (_local2 > 100) {
trace("100");
world.t_mc.w_txt.text = "Good shot";
}
if (_local2 > 150) {
trace("yeah");
world.t_mc.w_txt.text = "Great shot!";
}
if (_local2 > 180) {
_local2 = _local2 + 50;
world.t_mc.w_txt.text = " ";
if ((allArrows[0]._x + _root.world._x) > 300) {
world.t_mc.attachMovie("bullpop_mc", "bullpop", getNextHighestDepth(), {_x:-20.4, _y:-26});
} else {
world.t_mc.attachMovie("bullpop_mc", "bullpop", getNextHighestDepth(), {_x:0, _y:-26});
}
}
world.t_mc.t_txt.text = "+" + _local2;
currscore = currscore + _local2;
}
function spring(targetx, targety, inertia, k) {
x = targetx + world._x;
y = targety + world._y;
xp = ((allArrows[0].dx * allArrows[0].speed) * inertia) + (x * k);
yp = Math.min(((allArrows[0].dy * allArrows[0].speed) * inertia) + (y * k), world._y);
world._x = world._x - xp;
world._y = world._y - yp;
while ((allArrows[0]._x + world._x) < 58) {
world._x++;
}
}
function screenShake(targetx, targety, inertia, k) {
xSx = (xSx * inertia) + ((targetx - _root._x) * k);
ySy = (ySy * inertia) + ((targety - _root._y) * k);
_root._x = Math.max(_root._x + xSx, 0);
_root._y = Math.max(_root._y + ySy, -18);
_root.inert = inertia;
}
function initZoomOut(target, zoomSpeed) {
scrollSpeedX = target._x / ((target._width - maxWorldW) / ((target._width / 100) * zoomSpeed));
scrollSpeedY = target._y / ((target._height - maxWorldH) / ((target._height / 100) * zoomSpeed));
}
function initZoomIn(target, zoomSpeed) {
scrollSpeedX = target._x / ((target._width - minWorldW) / ((target._width / 100) * zoomSpeed));
levelTransition();
}
function zoomOut(target, zoomSpeed) {
if (target._height > maxWorldH) {
if (target._y > 395) {
target._y = target._y - scrollSpeedY;
trace((("targ y = " + target._height) + ", maxH= ") + maxWorldH);
}
}
if (target._width > maxWorldW) {
target._xscale = target._xscale - zoomSpeed;
target._yscale = target._yscale - zoomSpeed;
target._y = target._y + (zoomSpeed * 4);
target._x = target._x / Math.max((scrollSpeedX / -150) + 1.3, 1.5);
while (target._x > 0) {
target._x--;
}
} else {
zoomingSpeed = 2;
initZoomIn(world, zoomingSpeed);
shooting = false;
ready = true;
}
}
function zoomIn(target, zoomSpeed) {
if (target._width < minWorldW) {
if (target._x > 0) {
target._x = target._x * (1 - (zoomingSpeed / 20));
}
target._xscale = target._xscale + zoomSpeed;
target._yscale = target._yscale + zoomSpeed;
target._y = target._y - (zoomSpeed * 4);
target._x = target._x - scrollSpeedX;
world.draw._alpha = world.draw._alpha - 5;
} else {
zoomingSpeed = 5;
delayZoomIn(1, 15, " ");
}
}
function delayZoomIn(increment, cap, output) {
timer = timer + increment;
if (timer == 5) {
if (shots > 0) {
if (randFrame == 2) {
world.leadElf.gotoAndStop(4);
randFrame = 0;
} else {
randFrame = Math.round(Math.random()) + 2;
world.leadElf.gotoAndStop(randFrame);
}
}
}
if (timer >= cap) {
if (allArrows[0]._visible == false) {
shooting = true;
screenShake(0, (Math.random() * allArrows[0].speed) * 1.5, 0.8, 0.2);
allArrows[0]._visible = true;
world.attachMovie("cnnsmoke_mc", "cnnsmoke", 765, {_x:getStartPosition()._x, _y:getStartPosition()._y});
world.cnnsmoke._rotation = world.cannon.ctube._rotation;
allArrows[0]._x = getStartPosition()._x;
allArrows[0]._y = getStartPosition()._y;
zoomState = output;
timer = 0;
sound.attachSound(sndShot[Math.round(Math.random() * 4)]);
sound.start();
cnnSound.attachSound("cannon");
cnnSound.setVolume(Math.min(100, ((world.cannon.ctube.cannon_end.pwrBar_mask._width / 6) / 52) * 100));
cnnSound.start();
}
}
}
function delayZoomOut(increment, cap, output) {
timer = timer + increment;
if (timer >= cap) {
zoomState = output;
timer = 0;
}
}
function snapZoom(target, zoomSpeed) {
switch (zoomState) {
case "zoomIn" :
return;
case "zoomOut" :
return;
case "delayZoomOut" :
zoomingSpeed = 2;
initZoomOut(world, zoomingSpeed);
zoomState = "zoomOut";
}
}
function checkFire() {
if ((ftimer++) > (frameRate * 8)) {
ftimer = 0;
onFire = false;
world.smoke1_mc.removeMovieClip();
removeMovieClip(world.smoke2_mc);
removeMovieClip(world.smoke3_mc);
} else if ((ftimer % frameRate) == 1) {
world.smoke1_mc.gotoAndPlay(1);
world.smoke1_mc._x = arrowPos2._x;
world.smoke1_mc._y = arrowPos2._y;
} else if ((ftimer % 25) == 1) {
world.smoke2_mc.gotoAndPlay(1);
world.smoke2_mc._x = arrowPos2._x;
world.smoke2_mc._y = arrowPos2._y;
} else if ((ftimer % 54) == 1) {
world.smoke3_mc.gotoAndPlay(1);
world.smoke3_mc._x = arrowPos2._x;
world.smoke3_mc._y = arrowPos2._y;
}
}
function createParticle(amount, ax, ay, vx, vy, aspeed, fadeRate, type) {
var _local3 = 0;
while (_local3 < amount) {
var _local2 = _root.world.attachMovie(type, "particle" + particleCounter, 700 + (particleCounter++), {_x:ax, _y:ay});
_local2.init(0.02, 0.995, aspeed / 3, ((-vy) * aspeed) - 10, (vx * aspeed) + 2, 40, fadeRate);
allParticles.push(_local2);
_local3++;
}
}
function checkParticle(trgnumber) {
if (allParticles[trgnumber]._alpha < 0) {
removeMovieClip(allParticles[trgnumber]);
allParticles.splice(trgnumber, 1);
}
}
function popHint(lvlNum) {
if (hintstog) {
if (shots > 0) {
if (hintTimer > 310) {
hud.attachMovie("hint_mc", "hint_mc", -13, {_x:46, _y:73.8});
hud.hint_mc.hint_txt.text = lvlHints[lvlNum - 1].splice(0, 1);
hintTimer = 0;
}
}
hintTimer++;
}
}
function levelTransition() {
if (shots == 0) {
zoomState = "zoomIn";
trace(hud.display.score_mc.score_txt.text);
if (currscore >= targscore) {
hud.attachMovie("lvlcomplete_mc", "lvlcomplete_mc", 2345, {_x:800, _y:50});
hud.lvlcomplete_mc.ttlscore_mc.ttlscore_txt.text = ttlscore;
if (currentLevel == 16) {
hud.attachMovie("gmcomplete_mc", "gmcomplete_mc", 2345, {_x:800, _y:50});
hud.gmcomplete_mc.ttlscore_mc.ttlscore_txt.text = ttlscore;
hud.gmcomplete_mc.credit_mc.credit_txt.text = credits;
}
} else {
hud.attachMovie("lvlfailed_mc", "lvlfailed_mc", 2345, {_x:800, _y:40});
hud.lvlfailed_mc.ttlscore_mc.ttlscore_txt.text = ttlscore;
_root.credits++;
trace(_root.credits + "c===");
}
} else if (currscore >= targscore) {
if (cap == 0) {
cap++;
hud.attachMovie("skip_mc", "skip_mc", 2356, {_x:600, _y:38});
}
}
}
stop();
init();
createLevel(1);
createHUD();
sound.stop();
sound.attachSound("game loop, final");
sound.start(0, 100);
var cnnSound = new Sound(world.cannon);
hud.hallpass_btn.onRelease = function () {
getURL ("http://www.hallpass.com");
};
hud.mute_btn.onRelease = function () {
mute = !mute;
if (mute) {
hud.mute_mc.gotoAndStop(2);
sound.setVolume(0);
cnnSound.setVolume(0);
} else {
hud.mute_mc.gotoAndStop(1);
sound.setVolume(100);
cnnSound.setVolume(100);
}
};
hud.hintstog_btn.onRelease = function () {
hintstog = !hintstog;
if (hintstog) {
hud.hintstog_mc.gotoAndStop(1);
hud.hintstog_mc.son_mc.gotoAndPlay(2);
hud.hintstog_mc.son_mc.play();
hud.hintstog_mc.son_mc.play();
} else {
hud.hintstog_mc.gotoAndStop(2);
hud.hintstog_mc.soff_mc.gotoAndPlay(2);
}
};
mouseListener.onMouseMove = function () {
if (ready) {
world.cannon.ctube.cannon_end.pwrBar.gotoAndStop(1);
world.createEmptyMovieClip("draw", 198798);
var _local10 = _xmouse - world.cannon._x;
var _local7 = (_ymouse - world.cannon._y) * -1;
var _local14 = Math.atan(_local7 / _local10) / (Math.PI/180);
var _local15 = Math.sqrt((_local10 * _local10) + (_local7 * _local7));
if (shots > 0) {
world.draw._alpha = 100;
} else {
world.draw._alpha = 0;
}
if (_local7 > 0) {
if (_local14 > 0) {
world.cannon.ctube._rotation = _local14 * -1;
world.cannon.ctube.cannon_end.pwrBar_mask._width = _local15;
_local7 = _local7 * -1;
var _local13 = Math.sqrt((_local10 * _local10) + (_local7 * _local7));
var _local5 = _local10 / _local13;
var _local4 = _local7 / _local13;
var _local1 = Math.min((world.cannon.ctube.cannon_end.pwrBar_mask._width / 8.5) + 2, 52);
var _local11 = 0.0315;
var _local8 = 0.9815;
var _local12 = getStartPosition();
var _local3 = _local12._x;
var _local2 = _local12._y - 18;
world.draw.moveTo(_local12._x, _local12._y - 18);
var _local6 = 15;
var _local9 = ((_local1 <= 44.2) ? 12394511 : 16723712);
while ((_local6++) < 60) {
world.draw.lineStyle(21 - (_local6 * 0.4), _local9, 100 - (_local6 * 3));
_local3 = _local3 + (_local5 * _local1);
_local2 = _local2 + (_local4 * _local1);
world.draw.lineTo(_local3, _local2);
_local5 = _local5 * _local8;
_local4 = _local4 + _local11;
_local3 = _local3 + (_local5 * _local1);
_local2 = _local2 + (_local4 * _local1);
world.draw.lineTo(_local3, _local2);
}
}
}
}
};
mouseListener.onMouseDown = function () {
if (!gamePaused) {
if (ready) {
fire();
shakeTimer = 0;
} else {
snapZoom(world, zoomingSpeed);
}
}
};
Mouse.addListener(mouseListener);
keyListener.onKeyDown = function () {
if (Key.isDown(77)) {
mute = !mute;
if (mute) {
hud.mute_mc.gotoAndStop(2);
sound.setVolume(0);
cnnSound.setVolume(0);
} else {
hud.mute_mc.gotoAndStop(1);
sound.setVolume(100);
cnnSound.setVolume(100);
}
}
if (Key.isDown(80)) {
gamePaused = !gamePaused;
if (gamePaused) {
hud.attachMovie("pauseScreen_mc", "pauseScreen", 1230);
} else {
hud.pauseScreen.play();
}
}
};
Key.addListener(keyListener);
var cap = 0;
var gamePlyd = true;
onEnterFrame = function () {
if (!gamePaused) {
popHint(currentLevel);
switch (zoomState) {
case "delayZoomOut" :
delayZoomOut(1, 60, "zoomOut");
break;
case "zoomOut" :
zoomOut(world, zoomingSpeed);
break;
case "zoomIn" :
zoomIn(world, zoomingSpeed);
}
if (onFire) {
if (allArrows[0]._x != undefined) {
arrowPos2 = {_x:allArrows[0]._x, _y:allArrows[0]._y};
}
checkFire();
}
if (shooting) {
checkTarget(_root.world.hit_mc);
checkBounds(0);
spring(allArrows[0]._x, allArrows[0]._y, 0.6, 0.03);
if ((_root._x != 0) || (_root._y != 0)) {
screenShake(0, 0, _root.inert, 0.2);
}
this.allArrows[0].fire();
}
var _local3 = 0;
while (_local3 < allParticles.length) {
checkParticle(_local3);
this.allParticles[_local3].fire();
_local3++;
}
if (ready) {
hud.pwrBar.play();
} else {
hud.pwrBar.stop();
}
}
};
trace("frame 4");
_root.menu_mc.unloadMovie();
var ttlscore = 0;
var hintstog = true;
hud.attachMovie("fadetransition2_mc", "fadetransition2_mc", getNextHighestPosition());
hud.display_mc.shots_mc.shot_txt.text = shots;
hud.display_mc.score_mc.targscore_txt.text = "/" + targscore;
hud.display_mc.score_mc.score_txt.text = currscore;
hud.display_mc.level_mc.lvl_txt.text = level;
_root.hscores.swapDepths(_root.getNextHighestDepth());
Symbol 6 MovieClip [rspeech_mc] Frame 60
stop();
Symbol 10 MovieClip [-400_mc] Frame 25
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 20
stop();
Symbol 27 MovieClip Frame 30
stop();
Symbol 27 MovieClip Frame 49
stop();
Symbol 32 MovieClip Frame 5
stop();
Symbol 63 MovieClip [santa_mc] Frame 1
stop();
Symbol 75 Button
on (release) {
getURL ("http://www.hallpass.com");
}
Symbol 80 MovieClip [hallpass_mc] Frame 8
stop();
Symbol 80 MovieClip [hallpass_mc] Frame 17
stop();
Symbol 81 MovieClip Frame 21
stop();
Symbol 81 MovieClip Frame 33
unloadMovie (this);
_root.hallpassTrick = !_root.hallpassTrick;
Symbol 82 Button
on (release) {
this.play();
_root.quit = true;
_root.hud.gmcomplete_mc.endpromo.play();
}
Symbol 83 MovieClip [gmcomplete_mc] Frame 1
_root.hud.hint_mc.gotoAndPlay(190);
Symbol 83 MovieClip [gmcomplete_mc] Frame 5
if (_root.randFrame == 2) {
_root.world.leadElf.gotoAndStop(4);
_root.randFrame = 0;
}
Symbol 83 MovieClip [gmcomplete_mc] Frame 15
_root.world.crewElf.gotoAndStop(2);
_root.world.crewElf.crewElfHappy.play();
_root.hud.skip_mc.gotoAndPlay(60);
_root.cap = 0;
Symbol 83 MovieClip [gmcomplete_mc] Frame 25
_root.world.leadElf.gotoAndStop(1);
_root.world.leadElf.leadElfHappy.play();
_root.sound.attachSound(_root.sndHappy[Math.round(Math.random() * 5)]);
_root.sound.start();
_root.hud.gmcomplete_mc.sflake_mc.gotoAndPlay(1);
Symbol 83 MovieClip [gmcomplete_mc] Frame 35
_root.world.crewElf.gotoAndStop(2);
_root.world.crewElf.crewElfHappy.play();
Symbol 83 MovieClip [gmcomplete_mc] Frame 56
_root.world.leadElf.gotoAndStop(1);
_root.world.leadElf.leadElfHappy.play();
_root.world.crewElf.gotoAndStop(2);
_root.world.crewElf.crewElfHappy.play();
Symbol 83 MovieClip [gmcomplete_mc] Frame 64
stop();
_root.hud.attachMovie("+_mc", "t_mc", 1202, {_x:690, _y:165});
_root.hud.t_mc.t_txt.text = "+" + _root.currscore;
_root.hud.t_mc.w_txt.text = " ";
_root.hud.t_mc._xscale = _root.hud.t_mc._xscale / 1.5;
_root.hud.t_mc._yscale = _root.hud.t_mc._yscale / 1.5;
ttlscore_mc.ttlscore_anim.gotoAndPlay(1);
_root.ttlscore = _root.ttlscore + _root.currscore;
_root.hud.gmcomplete_mc.ttlscore_mc.ttlscore_anim.ttlscore_txt.text = _root.ttlscore;
_root.hud.gmcomplete_mc.credit_mc.credit_txt.text = _root.credits;
trace(_root.credits);
Symbol 83 MovieClip [gmcomplete_mc] Frame 75
if (_root.quit) {
_root.hud.attachMovie("fadetransition1_mc", "fadetransition1_mc", getNextHighestDepth());
this.swapDepths(-43220);
} else {
_root.hud.attachMovie("lvltransition_mc", "lvltransition_mc", 43221, {_x:1022, _y:157});
}
_root.hud.gmcomplete_mc.sflake_mc.play();
_root.sound.stop();
Symbol 83 MovieClip [gmcomplete_mc] Frame 82
if (_root.quit) {
_root.gotoAndStop(3);
unloadMovie (_root.world);
unloadMovie (_root.hud);
_root.hud.display.swapDepths(86754);
_root.hud.display.removeMovieClip();
_root.hud.swapDepths(73872);
_root.hud.removeMovieClip();
_root.world.swapDepths(73823);
_root.world.removeMovieClip();
unloadMovie (_root.hud);
Mouse.removeListener(_root.mouseListener);
Key.removeListener(_root.keyListener);
_root.sound.stop();
}
Symbol 86 MovieClip [pwrMeter_mc] Frame 1
stop();
Symbol 86 MovieClip [pwrMeter_mc] Frame 30
stop();
Symbol 89 MovieClip [lspeech_mc] Frame 60
stop();
Symbol 91 MovieClip [hit_targ] Frame 1
getPixel();
Symbol 95 MovieClip [fadetransition2_mc] Frame 9
stop();
unloadMovie (this);
Symbol 108 Button
on (release) {
getURL ("http://www.hallpass.com");
}
Symbol 112 MovieClip [hallpass_mc2] Frame 8
stop();
Symbol 112 MovieClip [hallpass_mc2] Frame 17
stop();
Symbol 122 MovieClip Frame 109
stop();
Symbol 125 MovieClip Frame 5
stop();
Symbol 132 MovieClip Frame 5
stop();
Symbol 135 Button
on (release) {
_root.hud.lvlcomplete_mc.play();
}
Symbol 148 MovieClip [santa_mc2] Frame 1
stop();
Symbol 149 MovieClip Frame 21
stop();
Symbol 149 MovieClip Frame 33
unloadMovie (this);
_root.hallpassTrick = !_root.hallpassTrick;
Symbol 150 Button
on (release) {
_root.hud.lvlfailed_mc.play();
_root.ttlscore = _root.ttlscore - 400;
_root.hud.lvlfailed_mc.ttlscore_mc.ttlscore_txt.text = _root.ttlscore;
_root.hud.attachMovie("-400_mc", "-400_mc", 2456, {_x:690, _y:160});
}
Symbol 151 Button
on (release) {
this.play();
_root.quit = true;
}
Symbol 152 MovieClip [lvlfailed_mc] Frame 1
_root.hud.hint_mc.gotoAndPlay(190);
Symbol 152 MovieClip [lvlfailed_mc] Frame 15
if (_root.randFrame == 2) {
_root.world.leadElf.gotoAndStop(4);
_root.randFrame = 0;
}
_root.hud.lvlfailed_mc.sflake_mc.gotoAndPlay(1);
Symbol 152 MovieClip [lvlfailed_mc] Frame 45
_root.world.crewElf.gotAndStop(1);
_root.world.crewElf.crewElfHitCnn.play();
_root.world.leadElf.gotoAndStop(5);
Symbol 152 MovieClip [lvlfailed_mc] Frame 64
stop();
world.draw._alpha = 0;
if (_root.hallpassTrick == true) {
_root.hud.lvlfailed_mc.endpromo._visible = true;
trace("show");
} else {
_root.hud.lvlfailed_mc.endpromo._visible = false;
trace("don't show");
}
Symbol 152 MovieClip [lvlfailed_mc] Frame 65
_root.hud.lvlfailed_mc.endpromo.play();
Symbol 152 MovieClip [lvlfailed_mc] Frame 74
if (_root.quit) {
_root.hud.attachMovie("fadetransition1_mc", "fadetransition1_mc", getNextHighestDepth());
this.swapDepths(43220);
} else {
_root.hud.attachMovie("lvltransition_mc", "lvltransition_mc", 43221, {_x:1022, _y:157});
}
_root.hud.lvlfailed_mc.sflake_mc.play();
Symbol 152 MovieClip [lvlfailed_mc] Frame 82
if (_root.quit) {
_root.gotoAndStop(3);
unloadMovie (_root.world);
unloadMovie (_root.hud);
_root.hud.display.swapDepths(86754);
_root.hud.display.removeMovieClip();
_root.hud.swapDepths(73872);
_root.hud.removeMovieClip();
_root.world.swapDepths(73823);
_root.world.removeMovieClip();
unloadMovie (_root.hud);
Mouse.removeListener(_root.mouseListener);
Key.removeListener(_root.keyListener);
_root.sound.stop();
}
Symbol 152 MovieClip [lvlfailed_mc] Frame 103
stop();
trace("CURRENT LVL= " + _root.currentLevel);
_root.world.swapDepths(23);
removeMovieClip(_root.world);
_root.init();
_root.createLevel(_root.currentLevel);
_root.hud.swapDepths(_root.getNextHighestDepth());
_root.viza_mc.swapDepths(_root.getNextHighestDepth());
_root.fps.swapDepths(_root.getNextHighestDepth());
_root.level_mc.swapDepths(_root.getNextHighestDepth());
_root.score_mc.swapDepths(_root.getNextHighestDepth());
_root.shots_mc.swapDepths(_root.getNextHighestDepth());
Symbol 159 MovieClip [hit_brick] Frame 1
stop();
Symbol 178 MovieClip [bullpop_mc] Frame 47
stop();
Symbol 188 MovieClip [hint_mc] Frame 200
unloadMovie (this);
Symbol 198 Button
on (release) {
this.play();
_root.gamePaused = false;
}
Symbol 199 Button
on (release) {
this.play();
_root.quit = true;
}
Symbol 201 MovieClip [pauseScreen_mc] Frame 27
stop();
Symbol 201 MovieClip [pauseScreen_mc] Frame 31
if (_root.quit) {
hud.attachMovie("fadetransition1_mc", "fadetransition1_mc", getNextHighestPosition());
}
Symbol 201 MovieClip [pauseScreen_mc] Frame 41
unloadMovie (this);
if (_root.quit) {
_root.gotoAndStop(3);
unloadMovie (_root.world);
unloadMovie (_root.hud);
_root.hud.display.swapDepths(86754);
_root.hud.display.removeMovieClip();
_root.hud.swapDepths(73872);
_root.hud.removeMovieClip();
_root.world.swapDepths(73823);
_root.world.removeMovieClip();
unloadMovie (_root.hud);
Mouse.removeListener(_root.mouseListener);
Key.removeListener(_root.keyListener);
_root.sound.stop();
}
Symbol 203 MovieClip [-1_mc] Frame 25
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 20
stop();
Symbol 216 MovieClip Frame 5
stop();
Symbol 222 MovieClip Frame 5
stop();
Symbol 225 Button
on (release) {
_root.hud.lvlcomplete_mc.play();
}
Symbol 226 Button
on (release) {
trace("next");
_root.hud.lvlcomplete_mc.play();
}
Symbol 227 Button
on (release) {
trace(_root.quit);
_root.quit = true;
if (_root.quit) {
_root.hud.lvlcomplete_mc.play();
}
}
Symbol 228 MovieClip [lvlcomplete_mc] Frame 1
_root.hud.hint_mc.gotoAndPlay(190);
Symbol 228 MovieClip [lvlcomplete_mc] Frame 5
if (_root.randFrame == 2) {
_root.world.leadElf.gotoAndStop(4);
_root.randFrame = 0;
}
Symbol 228 MovieClip [lvlcomplete_mc] Frame 15
_root.world.crewElf.gotoAndStop(2);
_root.world.crewElf.crewElfHappy.play();
_root.hud.skip_mc.gotoAndPlay(60);
_root.cap = 0;
Symbol 228 MovieClip [lvlcomplete_mc] Frame 25
_root.world.leadElf.gotoAndStop(1);
_root.world.leadElf.leadElfHappy.play();
_root.sound.attachSound(_root.sndHappy[Math.round(Math.random() * 5)]);
_root.sound.start();
_root.hud.lvlcomplete_mc.sflake_mc.gotoAndPlay(1);
Symbol 228 MovieClip [lvlcomplete_mc] Frame 35
_root.world.crewElf.gotoAndStop(2);
_root.world.crewElf.crewElfHappy.play();
Symbol 228 MovieClip [lvlcomplete_mc] Frame 56
_root.world.leadElf.gotoAndStop(1);
_root.world.leadElf.leadElfHappy.play();
_root.world.crewElf.gotoAndStop(2);
_root.world.crewElf.crewElfHappy.play();
trace("do something!");
Symbol 228 MovieClip [lvlcomplete_mc] Frame 64
stop();
world.draw._alpha = 0;
_root.hud.attachMovie("+_mc", "t_mc", 1202, {_x:690, _y:165});
_root.hud.t_mc.t_txt.text = "+" + _root.currscore;
_root.hud.t_mc.w_txt.text = " ";
_root.hud.t_mc._xscale = _root.hud.t_mc._xscale / 1.5;
_root.hud.t_mc._yscale = _root.hud.t_mc._yscale / 1.5;
ttlscore_mc.ttlscore_anim.gotoAndPlay(1);
_root.ttlscore = _root.ttlscore + _root.currscore;
_root.hud.lvlcomplete_mc.ttlscore_mc.ttlscore_anim.ttlscore_txt.text = _root.ttlscore;
trace("stoped here");
Symbol 228 MovieClip [lvlcomplete_mc] Frame 75
if (_root.quit) {
_root.hud.attachMovie("fadetransition1_mc", "fadetransition1_mc", getNextHighestDepth());
this.swapDepths(43220);
trace("faaaading");
} else {
_root.hud.attachMovie("lvltransition_mc", "lvltransition_mc", 43221, {_x:1022, _y:157});
}
_root.hud.lvlcomplete_mc.sflake_mc.play();
Symbol 228 MovieClip [lvlcomplete_mc] Frame 82
if (_root.quit) {
trace("moviiing");
unloadMovie (_root.world);
unloadMovie (_root.hud);
Mouse.removeListener(_root.mouseListener);
Key.removeListener(_root.keyListener);
_root.sound.stop();
_root.gotoAndStop(3);
}
Symbol 228 MovieClip [lvlcomplete_mc] Frame 103
if (_root.quit) {
unloadMovie (_root.world);
unloadMovie (_root.hud);
_root.hud.display.swapDepths(86754);
_root.hud.display.removeMovieClip();
_root.hud.swapDepths(73872);
_root.hud.removeMovieClip();
_root.world.swapDepths(73823);
_root.world.removeMovieClip();
unloadMovie (_root.hud);
Mouse.removeListener(_root.mouseListener);
Key.removeListener(_root.keyListener);
_root.sound.stop();
_root.gotoAndStop(3);
} else {
stop();
_root.world.swapDepths(23);
removeMovieClip(_root.world);
_root.init();
_root.currentLevel = _root.currentLevel + 1;
_root.createLevel(_root.currentLevel);
_root.hud.swapDepths(54322);
}
Symbol 231 MovieClip [+_mc] Frame 1
play();
Symbol 231 MovieClip [+_mc] Frame 60
stop();
Symbol 233 MovieClip [lvltransition_mc] Frame 70
stop();
Instance of Symbol 237 MovieClip "score_mc" in Symbol 244 MovieClip [display_mc] Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 240 MovieClip "level_mc" in Symbol 244 MovieClip [display_mc] Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 243 MovieClip "shots_mc" in Symbol 244 MovieClip [display_mc] Frame 1
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth());
}
Symbol 245 MovieClip [fadetransition1_mc] Frame 9
stop();
unloadMovie (this);
Symbol 248 MovieClip [mute_mc] Frame 1
stop();
Symbol 248 MovieClip [mute_mc] Frame 2
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 2
this.play();
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 2
this.play();
Symbol 258 MovieClip [hintstog_mc] Frame 1
stop();
Symbol 258 MovieClip [hintstog_mc] Frame 2
stop();
Symbol 265 MovieClip Frame 10
stop();
Symbol 269 Button
on (release) {
_root.hud.skip_mc.play();
_root.cap = 0;
}
Symbol 271 Button
on (press) {
_root.hud.skip_mc.gotoAndPlay(41);
_root.cap = 0;
_root.shots = 0;
_root.levelTransition();
}
Symbol 273 MovieClip [skip_mc] Frame 1
_root.hud.hallpass_mc.gotoAndPlay(9);
Symbol 273 MovieClip [skip_mc] Frame 40
stop();
Symbol 273 MovieClip [skip_mc] Frame 65
stop();
_root.hud.hallpass_mc.gotoAndPlay(1);
Symbol 283 Button
on (release) {
creditPlay_mc.play();
}
Symbol 288 MovieClip Frame 10
stop();
Symbol 291 Button
on (release) {
this.gotoAndStop(4);
_parent.h.gotoAndStop(4);
_parent.hi.gotoAndStop(4);
}
Symbol 293 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 294 Button
on (release) {
_parent._parent.p.gotoAndStop(3);
_parent._parent.p.p2.play();
_parent._parent.hi.gotoAndStop(3);
_parent._parent.hi.hi2.play();
_parent._parent.h.gotoAndStop(3);
_parent._parent.h.h2.play();
}
Symbol 295 Button
on (release) {
this._parent.gotoAndStop(3);
}
Symbol 296 MovieClip Frame 1
stop();
trace("hello");
Symbol 296 MovieClip Frame 16
this._parent.gotoAndStop(1);
Symbol 297 MovieClip Frame 2
_root.attachMovie("fadetransition1_mc", "fadetransition1_mc", getNextHighestDepth());
Symbol 297 MovieClip Frame 10
trace("hey");
_root.gotoAndStop(4);
Symbol 298 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 10
stop();
Symbol 305 Button
on (release) {
this.gotoAndStop(2);
_parent.p.gotoAndStop(2);
_parent.hi.gotoAndStop(2);
_parent.instructions.gotoAndPlay(1);
_parent.instructions._visible = true;
}
Symbol 307 MovieClip Frame 21
_parent.gotoAndStop(3);
Symbol 308 Button
on (release) {
this.play();
_parent._parent.p.gotoAndStop(3);
_parent._parent.p.p2.play();
_parent._parent.hi.hi2.play();
}
Symbol 309 Button
on (release) {
this.play();
_root.menu_mc.p.gotoAndStop(3);
_root.menu_mc.p.p2.play();
_root.menu_mc.hi.hi2.play();
}
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
_parent._parent.instructions.play();
Symbol 310 MovieClip Frame 21
this._parent.gotoAndStop(1);
Symbol 311 MovieClip Frame 10
stop();
Symbol 312 MovieClip Frame 1
stop();
_parent.instructions.gotoAndStop(1);
_parent.instructions._visible = false;
Symbol 317 MovieClip Frame 10
stop();
Symbol 320 Button
on (release) {
this.gotoAndStop(2);
_parent.p.gotoAndStop(2);
_parent.h.gotoAndStop(2);
_parent.instructions._visible = false;
_root.hscores.swapDepths(_root.getNextHighestDepth());
mochi.MochiScores.showLeaderboard({boardID:"b77116dc48f6dd62", showTableRank:true, onClose:function () {
_root.menu_mc.p.gotoAndStop(3);
_root.menu_mc.p.p2.play();
_root.menu_mc.hi.hi2.play();
_root.menu_mc.h.h2.play();
}});
_root.hscores.swapDepths(_root.getNextHighestDepth());
}
Symbol 322 MovieClip Frame 25
_parent.gotoAndStop(3);
Symbol 323 Button
on (release) {
this.play();
_parent._parent.p.gotoAndStop(3);
_parent._parent.p.p2.play();
_parent._parent.h.h2.play();
}
Symbol 324 Button
on (release) {
this.play();
_root.menu_mc.p.gotoAndStop(3);
_root.menu_mc.p.p2.play();
_root.menu_mc.h.h2.play();
}
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
mochi.MochiScores.closeLeaderboard();
Symbol 325 MovieClip Frame 23
this._parent.gotoAndStop(1);
Symbol 326 MovieClip Frame 10
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 43
stop();
Symbol 389 MovieClip Frame 10
stop();
Symbol 392 Button
on (release) {
this.play();
_parent.p.gotoAndStop(3);
_parent.p.p2.play();
_parent.hi.hi2.play();
_parent.h.h2.play();
}
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 21
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 397 MovieClip [mainmenu_mc] Frame 1
_root.quit = false;
Symbol 410 MovieClip Frame 100
_root.gotoAndStop(2);
Symbol 1175 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1176 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.35");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static function addLinkEvent(url, burl, btn, onClick) {
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
var _local3;
var _local2 = new LoadVars();
var timeout = 1500;
var t0 = getTimer();
var ping = this.createEmptyMovieClip("ping", 777);
this.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
delete this.ping;
getURL (url + s, "_blank");
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
delete this.ping;
getURL (burl, "_blank");
}
};
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
if (onClick != undefined) {
onClick();
}
};
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 1177 MovieClip [__Packages.Particle] Frame 0
class Particle extends MovieClip
{
var gravity, resistance, vy, vx, len, dx, dy, speed, fade, _alpha, _y, _x;
function Particle () {
super();
}
function init(grav, resist, bspeed, aimy, aimx, spread, fadeRate) {
gravity = grav;
resistance = resist;
vy = ((aimy * 10) - (spread * 10)) + Math.floor(Math.random() * (spread * 20));
vx = ((aimx * 10) - (spread * 10)) + Math.floor(Math.random() * (spread * 20));
len = Math.sqrt((vx * vx) + (vy * vy));
dx = vx / len;
dy = vy / len;
speed = bspeed;
fade = fadeRate;
}
function fire() {
_alpha = _alpha - fade;
_y = _y + (dy * speed);
_x = _x + (dx * speed);
dx = dx * resistance;
dy = dy + gravity;
}
}
Symbol 1178 MovieClip [__Packages.Arrow] Frame 0
class Arrow extends MovieClip
{
var gravity, resistance, vx, vy, len, dx, dy, speed, _rotation, _y, _x;
function Arrow () {
super();
}
function init(grav, resist, bspeed, aimy, aimx) {
gravity = grav;
resistance = resist;
vx = aimx - _root.world.cannon._x;
vy = aimy - _root.world.cannon._y;
len = Math.sqrt((vx * vx) + (vy * vy));
dx = vx / len;
dy = vy / len;
speed = bspeed;
}
function fire() {
var _local2 = Math.atan2(dy, dx);
_rotation = (_local2 * 180) / Math.PI;
_y = _y + (dy * speed);
_x = _x + (dx * speed);
dx = dx * resistance;
dy = dy + gravity;
}
}
Symbol 1179 MovieClip [__Packages.mx.data.binding.DataAccessor] Frame 0
class mx.data.binding.DataAccessor
{
var dataAccessor, component, property, location, type;
function DataAccessor () {
}
function getAnyTypedValue(suggestedTypes) {
var _local3 = 0;
while (_local3 < suggestedTypes.length) {
var _local5 = getTypedValue(suggestedTypes[_local3]);
if (_local5 != null) {
return(_local5);
}
_local3++;
}
var _local5 = getTypedValue();
_local3 = 0;
while (_local3 < suggestedTypes.length) {
var _local2 = suggestedTypes[_local3];
if (_local2 == "String") {
return(new mx.data.binding.TypedValue(String(_local5.value), _local2));
}
if (_local2 == "Number") {
return(new mx.data.binding.TypedValue(Number(_local5.value), _local2));
}
if (_local2 == "Boolean") {
return(new mx.data.binding.TypedValue(Boolean(_local5.value), _local2));
}
_local3++;
}
return(_local5);
}
function setAnyTypedValue(newValue) {
var _local7 = getSettableTypes();
if ((_local7 == null) || (-1 != findString(newValue.typeName, _local7))) {
return(setTypedValue(newValue));
}
var _local3 = 0;
while (_local3 < _local7.length) {
var _local2 = _local7[_local3];
if (_local2 == "String") {
return(setTypedValue(new mx.data.binding.TypedValue(String(newValue.value), _local2)));
}
if (_local2 == "Number") {
var _local5 = Number(newValue.value);
var _local6 = setTypedValue(new mx.data.binding.TypedValue(_local5, _local2));
if (_local5.toString() == "NaN") {
return([("Failed to convert '" + newValue.value) + "' to a number"]);
}
return(_local6);
}
if (_local2 == "Boolean") {
return(setTypedValue(new mx.data.binding.TypedValue(Boolean(newValue.value), _local2)));
}
_local3++;
}
return(dataAccessor.setTypedValue(newValue));
}
function getTypedValue(requestedType) {
var _local2 = dataAccessor.getTypedValue(requestedType);
return(_local2);
}
function getGettableTypes() {
return(null);
}
function setTypedValue(newValue) {
return(dataAccessor.setTypedValue(newValue));
}
function getSettableTypes() {
return(null);
}
function findLastAccessor() {
return(((dataAccessor == null) ? this : (dataAccessor.findLastAccessor())));
}
function setupDataAccessor(component, property, location) {
this.component = component;
this.property = property;
this.location = location;
type = component.findSchema(property, location);
}
static function findString(str, arr) {
var _local3 = str.toLowerCase();
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1].toLowerCase() == _local3) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function conversionFailed(newValue, target) {
return(((("Failed to convert to " + target) + ": '") + newValue.value) + "'");
}
}
Symbol 1180 MovieClip [__Packages.mx.data.binding.TypedValue] Frame 0
class mx.data.binding.TypedValue
{
var value, typeName, type;
function TypedValue (value, typeName, type) {
this.value = value;
this.typeName = typeName;
this.type = type;
}
}
Symbol 1181 MovieClip [__Packages.mx.accessibility.AccImpl] Frame 0
class mx.accessibility.AccImpl extends Object
{
var master, stub, ROLE;
function AccImpl (m) {
super();
master = m;
stub = false;
}
function get_accRole(childId) {
return(ROLE);
}
var STATE_SYSTEM_NORMAL = 0;
}
Symbol 1182 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 1183 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 1184 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 1185 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 1186 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 1187 MovieClip [__Packages.mx.controls.Label] Frame 0
class mx.controls.Label extends mx.core.UIObject
{
var _xscale, _yscale, labelField, tabEnabled, tabChildren, useHandCursor, _color, initText, __autoSize, _getTextFormat, __width, setSize, _x, __height, getStyle;
function Label () {
super();
}
function init(Void) {
super.init();
_xscale = (_yscale = 100);
labelField.selectable = false;
labelField.styleName = this;
tabEnabled = false;
tabChildren = false;
useHandCursor = false;
_color = mx.core.UIObject.textColorList;
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(labelField.html);
}
function setHtml(value) {
if (value != labelField.html) {
labelField.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
var _local2 = labelField;
if (_local2.html == true) {
return(_local2.htmlText);
}
return(_local2.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = labelField;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
adjustForAutoSize();
}
}
function get autoSize() {
return(__autoSize);
}
function set autoSize(v) {
if (_global.isLivePreview == true) {
v = "none";
}
__autoSize = v;
if (!initializing) {
draw();
}
//return(autoSize);
}
function draw(Void) {
var _local2 = labelField;
if (initializing) {
var _local4 = text;
initializing = false;
setText(_local4);
delete initText;
}
if (_local2.html) {
var _local4 = _local2.htmlText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
if (_local2.html) {
_local2.htmlText = _local4;
}
adjustForAutoSize();
}
function adjustForAutoSize() {
var _local2 = labelField;
var _local3 = __autoSize;
if ((_local3 != undefined) && (_local3 != "none")) {
_local2._height = _local2.textHeight + 3;
var _local4 = __width;
setSize(_local2.textWidth + 4, _local2._height);
if (_local3 == "right") {
_x = _x + (_local4 - __width);
} else if (_local3 == "center") {
_x = _x + ((_local4 - __width) / 2);
} else if (_local3 == "left") {
_x = _x + 0;
}
} else {
_local2._x = 0;
_local2._width = __width;
_local2._height = __height;
}
}
function size(Void) {
var _local2 = labelField;
_local2._width = __width;
_local2._height = __height;
}
function setEnabled(enable) {
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
labelField.textColor = col;
}
function get styleSheet() {
return(labelField.styleSheet);
}
function set styleSheet(v) {
labelField.styleSheet = v;
//return(styleSheet);
}
static var symbolName = "Label";
static var symbolOwner = Object(mx.controls.Label);
var className = "Label";
static var version = "2.0.2.126";
var initializing = true;
var clipParameters = {text:1, html:1, autoSize:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Label.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 471 MovieClip [dust_mc] Frame 1
#initclip 19
Object.registerClass("dust_mc", Particle);
#endinitclip
Symbol 491 MovieClip [orgember_mc] Frame 1
#initclip 14
Object.registerClass("orgember_mc", Particle);
#endinitclip
Symbol 495 MovieClip [ruin_mc] Frame 1
#initclip 15
Object.registerClass("ruin_mc", Particle);
#endinitclip
Symbol 497 MovieClip [snow_mc] Frame 1
#initclip 16
Object.registerClass("snow_mc", Particle);
#endinitclip
Symbol 499 MovieClip [spark_mc] Frame 1
#initclip 17
Object.registerClass("spark_mc", Particle);
#endinitclip
Symbol 508 MovieClip [brick_mc] Frame 1
stop();
Symbol 508 MovieClip [brick_mc] Frame 2
stop();
Symbol 508 MovieClip [brick_mc] Frame 3
stop();
Symbol 508 MovieClip [brick_mc] Frame 4
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 15
stop();
Symbol 623 MovieClip [lblower_mc] Frame 1
stop();
Symbol 623 MovieClip [lblower_mc] Frame 2
stop();
Symbol 679 MovieClip Frame 1
stop();
Symbol 700 MovieClip Frame 20
stop();
Symbol 733 MovieClip Frame 25
this._parent.gotoAndStop(1);
Symbol 743 MovieClip Frame 15
this._parent.gotoAndStop(1);
Symbol 782 MovieClip Frame 5
_root.sound.attachSound(_root.sndSad[Math.round(Math.random() * 2)]);
_root.sound.start();
Symbol 782 MovieClip Frame 85
stop();
Symbol 783 MovieClip [leadElf_mc] Frame 1
stop();
Symbol 783 MovieClip [leadElf_mc] Frame 2
stop();
Symbol 783 MovieClip [leadElf_mc] Frame 3
stop();
Symbol 783 MovieClip [leadElf_mc] Frame 4
stop();
Symbol 783 MovieClip [leadElf_mc] Frame 5
stop();
Symbol 830 MovieClip Frame 1
stop();
Symbol 830 MovieClip Frame 13
_root.sound.attachSound("Metal hit");
_root.sound.start();
Symbol 863 MovieClip Frame 30
stop();
Symbol 864 MovieClip [crewElf_mc] Frame 1
stop();
Symbol 892 MovieClip [cannon_mc] Frame 1
stop();
Symbol 892 MovieClip [cannon_mc] Frame 2
stop();
Symbol 922 MovieClip Frame 46
unloadMovie (this);
Symbol 987 MovieClip Frame 120
this._parent.gotoAndStop(2);
Symbol 1019 MovieClip Frame 12
stop();
Symbol 1023 MovieClip Frame 50
stop();
Symbol 1072 MovieClip Frame 25
stop();
Symbol 1093 MovieClip Frame 80
stop();
Symbol 1099 MovieClip Frame 20
stop();
Symbol 1122 MovieClip Frame 25
stop();
Symbol 1123 MovieClip [arrow_mc] Frame 1
#initclip 18
Object.registerClass("arrow_mc", Arrow);
#endinitclip
stop();
Symbol 1130 MovieClip Frame 34
stop();
Symbol 1148 MovieClip [hpIntro_mc] Frame 1
_root.stop();
Symbol 1148 MovieClip [hpIntro_mc] Frame 159
_root.gotoAndStop(3);
trace("playyyyyyyyyyyyyyyyyyy");
unloadMovie (this);
Symbol 1173 MovieClip Frame 1
stop();