Frame 1
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__("d8c04540", this, 10301, true);
Frame 3
if ((this.getBytesLoaded() + 100) < this.getBytesTotal()) {
var perc = Math.ceil((this.getBytesLoaded() * 100) / this.getBytesTotal());
mc_load.gotoAndStop(perc);
trace(perc);
gotoAndPlay (2);
} else {
gotoAndStop ("game");
}
Frame 50
function audio_sound_effect(id) {
if (audio_mc.sfxtime[id] <= 0) {
audio_mc.sfx[id].stop();
audio_mc.sfx[id] = new Sound(this);
audio_mc.sfx[id].attachSound(audio_mc.sfx_array[id]);
audio_mc.sfx[id].start(0, 1);
audio_mc.sfxtime[id] = 10;
}
}
function audio_tick() {
for (sounds in audio_mc.sfxtime) {
audio_mc.sfxtime[sounds] = audio_mc.sfxtime[sounds] + -1;
}
}
function audio_music_play(n) {
musiclist = ["stem_in_game_alt.wav", "stem_menu.wav"];
music_sprite = musiclist[n];
if (audio_mc.isPlaying != true) {
audio_mc.musicSound = new Sound(this.audio_mc);
audio_mc.musicSound.attachSound(music_sprite);
if (audio_mc.music_on == true) {
audio_mc.musicSound.start(0, 999);
}
audio_mc.isPlaying = true;
audio_mc.musicSound.setVolume(60);
}
}
function audio_music_stop() {
audio_mc.musicSound.stop();
audio_mc.isPlaying = false;
}
function audio_music_switch() {
audio_mc.music_on = !audio_mc.music_on;
if (audio_mc.music_on == true) {
audio_mc.musicSound.start(0, 999);
} else {
audio_mc.musicSound.stop();
}
return(audio_mc.music_on);
}
function audio_prep() {
this.createEmptyMovieClip("audio_mc", this.getNextHighestDepth());
audio_mc.isPlaying = false;
audio_mc.sfx = [];
audio_mc.sfxtime = [];
audio_mc.sfx_array = [];
audio_mc.music_on = true;
audio_mc.sfx_array.menu1 = "menu_sfx1.wav";
audio_mc.sfx_array.menu2 = "menu_sfx2.wav";
audio_mc.sfx_array.menu3 = "menu_sfx3.wav";
audio_mc.sfx_array.gameover = "stem_end.wav";
audio_mc.sfx_array.footstep = "stem_sfx_footstep.wav";
audio_mc.sfx_array.launch = "stem_sfx_catapult.wav";
audio_mc.sfx_array.dropbig = "stem_sfx_big_object_drop.wav";
audio_mc.sfx_array.dropsmall = "stem_sfx_small_object_drop.wav";
audio_mc.sfx_array.pickup = "stem_sfx_object_pickup.wav";
audio_mc.sfx_array.cow = "stem_sfx_cow.wav";
audio_mc.sfx_array.sheep = "stem_sfx_sheep.wav";
audio_mc.sfx_array.sun = "stem_sfx_sun_pick-up.wav";
audio_mc.sfx_array.climber = "stem_sfx_climber.wav";
audio_mc.sfx_array.farmer = "stem_sfx_farmer.wav";
audio_mc.sfx_array.daughter = "stem_sfx_farmers_daughter.wav";
audio_mc.sfx_array.goat = "stem_sfx_goat.wav";
audio_mc.sfx_array.horse = "stem_sfx_horse.wav";
}
function game_intro() {
intro_mc._visible = true;
audio_music_stop();
audio_music_play(1);
trace("game_intro: " + intro_mc._visible);
}
function game_start() {
intro_mc._visible = false;
audio_music_stop();
audio_music_play(0);
gamevars.starttime = getTimer();
mcx.onEnterFrame = function () {
game_loop();
};
}
function game_timer() {
game_time = getTimer() - gamevars.starttime;
return(Math.floor(game_time / 10) / 100);
}
function game_setup() {
gamevars.roadheight = 230;
gamevars.gamewidth = 680;
gamevars.gameheight = 400;
gamevars.boyspeed = 5;
gamevars.gravity = 2;
gamevars.cork_slip = 0.01;
gamevars.cork_slip_advance = 1.5E-6;
gamevars.hardmode = 100;
gamevars.extratimebonus = 50;
gamevars.timebonus = 10;
gamevars.bonustarget = 3;
gamevars.pullbackamount = 0.3;
gamevars.flightmode = false;
gamevars.water_max = 40;
gamevars.boymove = 0;
gamevars.finalscore = 0;
gamevars.catpull = 0;
gamevars.cork_value = 0;
gamevars.water_value = 1;
rocks_array = [];
mcx = game_mc;
mcx._x = -gamevars.gamewidth;
if (gamevars.bg1x == null) {
gamevars.bg1x = mcx.bg_mc._x;
} else {
mcx.bg_mc._x = gamevars.bg1x;
}
if (gamevars.bg2x == null) {
gamevars.bg2x = mcx.bg2_mc._x;
} else {
mcx.bg2_mc._x = gamevars.bg2x;
}
if (gamevars.bg3x == null) {
gamevars.bg3x = mcx.bg3_mc._x;
} else {
mcx.bg3_mc._x = gamevars.bg3x;
}
mcx.createEmptyMovieClip("boy_mc", 10);
mcx.createEmptyMovieClip("rocks_mc", 12);
var mc_game_mask = this.createEmptyMovieClip("mc_game_mask", 128);
with (mc_game_mask) {
moveTo(0, 0);
beginFill(16777215, 100);
lineTo(gamevars.gamewidth, 0);
lineTo(gamevars.gamewidth, gamevars.gameheight);
lineTo(0, gamevars.gameheight);
lineTo(0, 0);
endFill();
}
mcx.setMask(mc_game_mask);
game_setup_keys();
game_prep_rocks();
game_prep_catapult();
game_prep_floater();
game_prep_boy();
game_prep_features();
game_prep_intro();
game_prep_gameover();
game_prep_sun_anim();
game_prep_view_highscores();
audio_prep();
game_intro();
}
function game_prep_sun_anim() {
mcx.bg3_mc.sun_anim_mc.gotoAndStop(1);
}
function game_sun_anim() {
mcx.bg3_mc.sun_anim_mc.gotoAndPlay(1);
mcx.bg3_mc.sun_anim_mc.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.gotoAndStop(1);
delete this.onEnterFrame;
}
};
}
function game_prep_intro() {
intro_mc._visible = true;
intro_mc.play_btn.onRelease = function () {
game_start();
audio_sound_effect("menu2");
};
intro_mc.play_btn.onRollOver = function () {
audio_sound_effect("menu1");
};
intro_mc.mc_button_high.onRelease = function () {
game_highscores_view();
intro_mc._visible = false;
audio_sound_effect("menu2");
};
intro_mc.mc_button_high.onRollOver = function () {
audio_sound_effect("menu1");
};
intro_mc.music_btn.onRelease = function () {
if (audio_music_switch()) {
intro_mc.music_txt.text = "MUSIC OFF";
} else {
intro_mc.music_txt.text = "MUSIC ON";
}
};
intro_mc.fullscreen_btn.onRelease = function () {
trace("do want fullscreen");
fscommand ("fullscreen", "true");
};
}
function game_prep_view_highscores() {
highscores_view_mc._visible = false;
highscores_view_mc.menu_btn.onRelease = function () {
highscores_view_mc._visible = false;
intro_mc._visible = true;
audio_sound_effect("menu2");
};
highscores_view_mc.menu_btn.onRollOver = function () {
audio_sound_effect("menu1");
};
}
function game_prep_gameover() {
gameover_mc.highscores_mc.fade_mc._visible = false;
gameover_mc._visible = false;
gameover_mc.menu_btn.onRelease = function () {
game_setup();
audio_sound_effect("menu2");
};
gameover_mc.menu_btn.onRollOver = function () {
audio_sound_effect("menu1");
};
}
function game_highscores_view() {
trace("game_highscores_view");
var _local1 = new LoadVars();
var scoretableview_in = new LoadVars();
scoretableview_in.onLoad = function (success) {
if (success) {
n = 0;
while (n < 10) {
highscores_view_mc.highscore_mc["NAME" + n] = scoretableview_in["NAME" + n];
highscores_view_mc.highscore_mc["SCORE" + n] = scoretableview_in["SCORE" + n];
n++;
}
} else {
mc_end.error_txt.text = "Error connecting to server.";
}
};
_local1.action = "VIEW";
_local1.viewtype = "FLASH";
_local1.sendAndLoad(game_score_script_url, scoretableview_in, "GET");
highscores_view_mc._visible = true;
}
function game_over() {
gamevars.finalscore = game_timer();
trace("cork_slip" + gamevars.cork_slip);
game_highscores(gameover_mc.highscores_mc);
gameover_mc.txt.text = ("You kept the water away for " + gamevars.finalscore) + " seconds";
gameover_mc._visible = true;
audio_music_stop();
audio_sound_effect("gameover");
if (gamevars.flightmode == true) {
game_flight_mode_off();
}
delete mcx.onEnterFrame;
mcx.boy_mc.removeMovieClip();
mcx.rocks_mc.removeMovieClip();
}
function game_catapult_launch() {
cat_mc = mcx.rocks_mc.catapult_mc;
if (cat_mc.sprite_obj != null) {
power = Math.abs(cat_mc.arm_mc._rotation + 45);
cat_mc.arm_mc._rotation = -45;
cat_mc.arm_mc._rotation = 0;
cat_mc.arm_mc._rotation = -45;
if (cat_mc.lev == null) {
cat_mc.lev = mcx.rocks_mc.getNextHighestDepth();
}
projectile_mc = mcx.rocks_mc.attachMovie(cat_mc.sprite_obj.air_sprite, "projectile", cat_mc.lev);
projectile_mc._x = cat_mc._x - 30;
projectile_mc._y = cat_mc._y - 40;
projectile_mc.mass = cat_mc.sprite_obj.mass;
projectile_mc.power = power;
projectile_mc.hit = false;
projectile_mc.rocktype = cat_mc.sprite_obj.sprite_name;
rads = (Math.PI/4);
acceleration = (power * 100) / cat_mc.sprite_obj.mass;
projectile_mc.xspeed = acceleration * Math.sin(rads);
projectile_mc.yspeed = acceleration * Math.cos(rads);
path_mc = mcx.rocks_mc.createEmptyMovieClip("path_mc", mcx.rocks_mc.getNextHighestDepth());
path_mc.lineStyle(5, 16777215, 50);
path_mc.moveTo(cat_mc._x - 30, cat_mc._y - 40);
projectile_mc.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
path_mc.lineTo(this._x, this._y);
this.yspeed = this.yspeed - gamevars.gravity;
if (this._y > gamevars.gameheight) {
if (this.hit != true) {
game_bonus_down(this.rocktype);
}
trace("dead rock:" + this);
game_flight_mode_off();
path_mc.removeMovieClip();
this.unloadMovie();
}
myangle = Math.atan(this.yspeed / this.xspeed);
target_rotation = (-(myangle * 90)) / Math.PI;
this._rotation = this._rotation + ((target_rotation - this._rotation) / 4);
if (mcx.bg_mc.cork_mc.hitbox_mc.hitTest(this) && (this.hit != true)) {
this.hit = true;
game_bonus_up(this.rocktype);
this.power = this.mass * Math.abs(Math.sqrt((this.yspeed * this.yspeed) + (this.xspeed + this.xspeed)));
trace("HIT:" + (this.power / 200));
game_points_up(this.power / 200);
this.xspeed = (-this.xspeed) / 2;
this.yspeed = this.yspeed / 2;
this._x = this._x + this.xspeed;
}
};
game_flight_mode_on();
audio_sound_effect("launch");
cat_mc.arm_mc.rock_carry_mc._visible = false;
cat_mc.sprite_obj = null;
}
}
function game_flight_mode_off() {
trace("game_flight_mode_off");
if (gamevars.flightmode != false) {
trace("SWITCH off");
game_screen_shift(390);
gamevars.flightmode = false;
}
}
function game_flight_mode_on() {
trace("game_flight_mode_on " + mcx.bg_mc._x);
if (gamevars.flightmode != true) {
trace("SWITCH on");
game_screen_shift(-390);
trace(mcx.bg_mc._x);
gamevars.flightmode = true;
game_respawn_rocks();
}
}
function game_prep_floater() {
floater_mc = mcx.rocks_mc.attachMovie("mca_weight_floater", "floater_mc", mcx.rocks_mc.getNextHighestDepth());
floater_mc._visible = false;
}
function game_prep_catapult() {
catapult_mc = mcx.rocks_mc.attachMovie("mca_catapult", "catapult_mc", mcx.rocks_mc.getNextHighestDepth());
r_mc = catapult_mc.arm_mc.createEmptyMovieClip("rock_carry_mc", 2);
r_mc._y = -70;
r_mc._x = 6;
r_mc._rotation = 10;
catapult_mc._y = gamevars.roadheight - 5;
catapult_mc._x = (gamevars.gamewidth * 2) + 50;
catapult_mc.hitbox_mc._visible = false;
catapult_mc.arm_mc._rotation = -45;
}
function game_boy_mode(stopstart) {
mc_list = [mcx.boy_mc.boy, mcx.boy_mc.boy_carry, mcx.boy_mc.boy_run, mcx.boy_mc.boy_run_carry];
if (boyvars.rock != null) {
stopstart = stopstart + 1;
}
n = 0;
while (n < mc_list.length) {
if (n != stopstart) {
mc_list[n]._visible = false;
} else {
mc_list[n]._visible = true;
}
n++;
}
}
function game_prep_boy() {
mcb = mcx.boy_mc.attachMovie("mca_boy", "boy", 1);
mcx.boy_mc._y = (gamevars.roadheight - mcx.boy_mc._height) - 10;
xpos = (-mcb._width) / 4;
mcb._x = xpos;
mcb = mcx.boy_mc.attachMovie("mca_boy_carry", "boy_carry", 2);
mcb._visible = false;
mcb._x = xpos;
mcb = mcx.boy_mc.attachMovie("mca_boy_run", "boy_run", 3);
mcb._visible = false;
mcb._x = xpos;
mcb = mcx.boy_mc.attachMovie("mca_boy_run_carry", "boy_run_carry", 4);
mcb._visible = false;
mcb._x = xpos;
mcb = mcx.boy_mc.attachMovie("mca_boy_hitbox", "hitbox", 6);
mcb._visible = false;
mcb._x = xpos;
mcb = mcx.boy_mc.createEmptyMovieClip("rock_carry_mc", 5);
mcb._x = mcx.boy_mc._width / 2;
mcb._x = mcb._x + xpos;
mcx.boy_mc.boy_sprite_mc._x = mcx.boy_mc._width / 2;
mcx.boy_mc._y = (gamevars.roadheight - mcx.boy_mc._height) + 40;
mcx.boy_mc._x = gamevars.gamewidth * 1.5;
mcx.boy_mc.hpos = mcx.boy_mc._x;
boyvars.catapultnear = false;
boyvars.rock = null;
boyvars.nearestrocknum = -1;
boyvars.carryspeed = 0;
}
function game_prep_features() {
mcx.bg_mc.cork_mc.gotoAndStop(1);
mcx.bg_mc.cork_mc.hitbox_mc._visible = false;
mcx.bg_mc.water_mc.gotoAndStop(1);
overlay_mc.bonus_mc._visible = false;
overlay_mc.angle_mc._visible = false;
}
function game_points_down() {
gamevars.cork_value = gamevars.cork_value + gamevars.cork_slip;
mcx.bg_mc.cork_mc.gotoAndStop(Math.ceil(gamevars.cork_value));
gamevars.water_value = gamevars.water_value + (gamevars.cork_value / 1000);
mcx.bg_mc.water_mc.gotoAndStop(Math.ceil((gamevars.water_value * 40) / gamevars.water_max));
overlay_mc.water_display_mc.gotoAndStop(Math.ceil((gamevars.water_value * 40) / gamevars.water_max));
if (gamevars.water_value > gamevars.water_max) {
trace("[game over]");
game_over();
}
}
function game_points_up(val) {
gamevars.cork_value = gamevars.cork_value - val;
if (gamevars.cork_value < 0) {
gamevars.cork_value = 0;
}
mcx.bg_mc.cork_mc.gotoAndStop(Math.ceil(gamevars.cork_value));
}
function game_hot_sun() {
gamevars.water_value = gamevars.water_value * 0.75;
overlay_mc.water_display_mc.gotoAndStop(Math.ceil((gamevars.water_value * 40) / gamevars.water_max));
trace("gamevars.cork_slip " + gamevars.cork_slip);
gamevars.cork_slip = 0.01 + ((gamevars.cork_slip - 0.01) * 0.65);
trace("gamevars.cork_slip " + gamevars.cork_slip);
game_sun_anim();
}
function game_setup_keys() {
keylistener.onKeyDown = function () {
if (Key.getCode() == 39) {
gamevars.boymove = 1;
}
if (Key.getCode() == 37) {
gamevars.boymove = -1;
}
if (Key.getCode() == 38) {
}
if (Key.getCode() == 40) {
cat_mc = mcx.rocks_mc.catapult_mc;
if (boyvars.catapultnear && (cat_mc.sprite_obj != null)) {
gamevars.catpull = 1;
} else {
gamevars.catpull = 0;
}
}
if (Key.getCode() == 49) {
}
if (Key.getCode() == 50) {
}
};
keylistener.onKeyUp = function () {
if (Key.getCode() == 39) {
if (gamevars.boymove > 0) {
gamevars.boymove = 0;
}
game_boy_mode(0);
}
if (Key.getCode() == 37) {
if (gamevars.boymove < 0) {
gamevars.boymove = 0;
}
game_boy_mode(0);
}
if (Key.getCode() == 40) {
if (boyvars.catapultnear) {
game_catapult_launch();
}
gamevars.catpull = 0;
}
if (Key.getCode() == 32) {
if (boyvars.nearestrocknum != -1) {
game_boy_pickup();
} else if (boyvars.catapultnear) {
game_catapult_load();
} else {
game_boy_drop();
}
game_boy_mode(0);
}
};
Key.addListener(keylistener);
}
function game_boy_pickup() {
trace("pickup:" + boyvars.nearestrocknum);
rock_mc = rocks_array[boyvars.nearestrocknum];
if (rock_mc.sprite_obj.ground_sprite == "mca_lolly") {
audio_sound_effect(rock_mc.sprite_obj.sfx_pickup);
game_hot_sun();
game_rock_despawn(rock_mc);
} else {
boyvars.rock = boyvars.nearestrocknum;
boyvars.nearestrocknum = -1;
clip = mcx.boy_mc.rock_carry_mc.attachMovie(rock_mc.sprite_obj.air_sprite, "clip", 1);
clip._y = -clip._height;
mcx.boy_mc.rock_carry_mc._visible = true;
audio_sound_effect(rock_mc.sprite_obj.sfx_pickup);
rock_mc._visible = false;
if (rocks_array[boyvars.rock].sprite_obj.mass < 101) {
speed = gamevars.boyspeed;
boyvars.carryspeed = Math.round(1000 * ((speed * 0.7) + (0.3 * ((speed * (101 - rocks_array[boyvars.rock].sprite_obj.mass)) / 101)))) / 1000;
} else {
trace("ERROR! - object mass to large");
}
game_show_floater(rock_mc._x, rock_mc.sprite_obj.mass);
}
}
function game_show_floater(xpos, mass) {
trace("game_show_floater " + xpos);
mcp = mcx.rocks_mc.floater_mc;
mcp.txt.text = mass;
mcp._x = xpos;
mcp._y = mcx.boy_mc._y;
mcp.onEnterFrame = function () {
ty = 100;
if (this._y > (ty + 2)) {
this._y = this._y - ((this._y - ty) / 5);
} else {
this._visible = false;
delete this.onEnterFrame;
}
};
mcp._visible = true;
}
function game_catapult_load() {
if (boyvars.rock != null) {
game_flight_mode_on();
trace("game_catapult_load");
rock_mc = rocks_array[boyvars.rock];
mcx.rocks_mc.catapult_mc.arm_mc.rock_carry_mc.attachMovie(rock_mc.sprite_obj.air_sprite, "clip", 1);
mcx.rocks_mc.catapult_mc.arm_mc.rock_carry_mc._visible = true;
mcx.rocks_mc.catapult_mc.sprite_obj = rock_mc.sprite_obj;
mcx.boy_mc.rock_carry_mc._visible = false;
audio_sound_effect(rock_mc.sprite_obj.sfx_drop);
game_rock_despawn(rock_mc);
}
}
function game_boy_drop() {
trace("drop:" + boyvars.rock);
if (boyvars.rock != null) {
rock_mc = rocks_array[boyvars.rock];
rock_mc._x = mcx.boy_mc._x - mcx.rocks_mc._x;
trace(mcx.boy_mc._x);
rock_mc._visible = true;
mcx.boy_mc.rock_carry_mc._visible = false;
audio_sound_effect(rock_mc.sprite_obj.sfx_drop);
boyvars.rock = null;
}
}
function game_boy_move(dir) {
if (isNaN(mcx.boy_mc.hpos)) {
trace((dir + " error:") + mcx.boy_mc.hpos);
mcx.boy_mc.hpos = mcx.boy_mc._x;
}
if (((!((mcx.boy_mc.hpos > 1092) && (dir > 0))) && (!((mcx.boy_mc.hpos < 840) && (dir < 0)))) && (gamevars.flightmode != true)) {
game_boy_mode(2);
speed = gamevars.boyspeed;
if (boyvars.rock != null) {
speed = boyvars.carryspeed;
}
mcx.boy_mc.hpos = mcx.boy_mc.hpos + ((speed / 2) * dir);
mcx.boy_mc._x = Math.round(mcx.boy_mc.hpos);
mcx.boy_mc._xscale = dir * 100;
mcx.bg_mc._x = mcx.bg_mc._x - ((speed * 2) * dir);
mcx.rocks_mc._x = mcx.rocks_mc._x - ((speed * 2) * dir);
mcx.bg2_mc._x = mcx.bg2_mc._x - ((speed * 1.5) * dir);
mcx.bg3_mc._x = mcx.bg3_mc._x - ((speed * 0.5) * dir);
}
}
function game_screen_shift(xval) {
mcx.boy_mc._x = mcx.boy_mc._x + xval;
mcx.bg_mc._x = mcx.bg_mc._x + xval;
mcx.rocks_mc._x = mcx.rocks_mc._x + xval;
}
function game_prep_rocks() {
rock_obj = new Object();
rock_obj.ground_sprite = "mca_daughter";
rock_obj.air_sprite = "mca_daughter_up";
rock_obj.mass = 50;
rock_obj.respawn_delay = 21;
rock_obj.sfx_pickup = "daughter";
rock_obj.sfx_drop = "daughter";
rock_obj.spawn_xmin = 935;
rock_obj.spawn_xmax = 936;
rock_obj.sprite_name = "Farmer's Daughter";
dmc = game_spawn_rock(rock_obj);
dmc._y = dmc._y + 22;
rock_obj = new Object();
rock_obj.ground_sprite = "mca_farmer2";
rock_obj.air_sprite = "mca_farmer_up";
rock_obj.mass = 80;
rock_obj.respawn_delay = 22;
rock_obj.sfx_pickup = "farmer";
rock_obj.sfx_drop = "farmer";
rock_obj.spawn_xmin = 906;
rock_obj.spawn_xmax = 907;
rock_obj.sprite_name = "Farmer";
dmc = game_spawn_rock(rock_obj);
dmc._y = dmc._y + 10;
rock_obj = new Object();
rock_obj.ground_sprite = "mca_pumpkin";
rock_obj.air_sprite = "mca_pumpkin";
rock_obj.mass = 35;
rock_obj.respawn_delay = 12;
rock_obj.sfx_pickup = "pickup";
rock_obj.sfx_drop = "dropbig";
rock_obj.spawn_xmin = 700;
rock_obj.spawn_xmax = 880;
rock_obj.sprite_name = "Pumpkin";
n = 0;
while (n < 3) {
pumpkin = game_spawn_rock(rock_obj);
game_rock_shuffle_flip(pumpkin);
pumpkin._y = pumpkin._y + 10;
n++;
}
rock_obj = new Object();
rock_obj.ground_sprite = "mca_marrow";
rock_obj.air_sprite = "mca_marrow";
rock_obj.mass = 30;
rock_obj.respawn_delay = 25;
rock_obj.sfx_pickup = "pickup";
rock_obj.sfx_drop = "dropbig";
rock_obj.spawn_xmin = 650;
rock_obj.spawn_xmax = 880;
rock_obj.sprite_name = "Marrow";
n = 0;
while (n < 3) {
marrow = game_spawn_rock(rock_obj);
marrow._y = marrow._y + 25;
n++;
}
rock_obj = new Object();
rock_obj.ground_sprite = "mca_boulder";
rock_obj.air_sprite = "mca_boulder";
rock_obj.mass = 100;
rock_obj.respawn_delay = 20;
rock_obj.sfx_pickup = "pickup";
rock_obj.sfx_drop = "dropbig";
rock_obj.spawn_xmin = 100;
rock_obj.spawn_xmax = 250;
rock_obj.sprite_name = "Boulder";
n = 0;
while (n < 4) {
game_rock_shuffle_flip(game_spawn_rock(rock_obj));
n++;
}
rock_obj = new Object();
rock_obj.ground_sprite = "mca_climber";
rock_obj.air_sprite = "mca_climber_up";
rock_obj.mass = 85;
rock_obj.respawn_delay = 20;
rock_obj.sfx_pickup = "climber";
rock_obj.sfx_drop = "climber";
rock_obj.spawn_xmin = 100;
rock_obj.spawn_xmax = 200;
rock_obj.sprite_name = "Mountaineer";
dmc = game_spawn_rock(rock_obj);
dmc._y = dmc._y + 5;
rock_obj = new Object();
rock_obj.ground_sprite = "mca_goat";
rock_obj.air_sprite = "mca_goat_up";
rock_obj.mass = 40;
rock_obj.respawn_delay = 5;
rock_obj.sfx_pickup = "goat";
rock_obj.sfx_drop = "goat";
rock_obj.spawn_xmin = 100;
rock_obj.spawn_xmax = 400;
rock_obj.sprite_name = "Mountain Goat";
n = 0;
while (n < 2) {
game_rock_shuffle_flip(game_spawn_rock(rock_obj));
n++;
}
rock_obj = new Object();
rock_obj.ground_sprite = "mca_sheep";
rock_obj.air_sprite = "mca_sheep_up";
rock_obj.mass = 40;
rock_obj.respawn_delay = 8;
rock_obj.sfx_pickup = "sheep";
rock_obj.sfx_drop = "sheep";
rock_obj.spawn_xmin = 400;
rock_obj.spawn_xmax = 950;
rock_obj.sprite_name = "Sheep";
n = 0;
while (n < 5) {
game_rock_shuffle_flip(game_spawn_rock(rock_obj));
n++;
}
rock_obj = new Object();
rock_obj.ground_sprite = "mca_cow";
rock_obj.air_sprite = "mca_cow_up";
rock_obj.mass = 90;
rock_obj.respawn_delay = 10;
rock_obj.sfx_pickup = "cow";
rock_obj.sfx_drop = "cow";
rock_obj.spawn_xmin = 250;
rock_obj.spawn_xmax = 750;
rock_obj.sprite_name = "Cow";
n = 0;
while (n < 4) {
game_rock_shuffle_flip(game_spawn_rock(rock_obj));
n++;
}
rock_obj = new Object();
rock_obj.ground_sprite = "mca_horse";
rock_obj.air_sprite = "mca_horse_up";
rock_obj.mass = 100;
rock_obj.respawn_delay = 10;
rock_obj.sfx_pickup = "horse";
rock_obj.sfx_drop = "horse";
rock_obj.spawn_xmin = 300;
rock_obj.spawn_xmax = 750;
rock_obj.sprite_name = "Horse";
game_rock_shuffle_flip(game_spawn_rock(rock_obj));
rock_obj = new Object();
rock_obj.ground_sprite = "mca_apple";
rock_obj.air_sprite = "mca_apple";
rock_obj.mass = 18;
rock_obj.respawn_delay = 5;
rock_obj.sfx_pickup = "pickup";
rock_obj.sfx_drop = "dropsmall";
rock_obj.spawn_xmin = 1000;
rock_obj.spawn_xmax = 1300;
rock_obj.sprite_name = "Apple";
n = 0;
while (n < 7) {
dmc = game_spawn_rock(rock_obj);
game_rock_shuffle_flip(dmc);
dmc._y = dmc._y + 4;
n++;
}
rock_obj = new Object();
rock_obj.ground_sprite = "mca_lolly";
rock_obj.respawn_delay = 11;
rock_obj.sfx_pickup = "sun";
rock_obj.spawn_xmin = 100;
rock_obj.spawn_xmax = 900;
lolly = game_spawn_rock(rock_obj);
lolly._visible = false;
lolly.respawn = 15;
lolly._y = lolly._y + 45;
game_rocks_zsort();
}
function game_rocks_zsort() {
sorted = true;
t = 0;
while (t < rocks_array.length) {
n = 0;
while (n < rocks_array.length) {
if (t != n) {
if ((rocks_array[t]._y + rocks_array[t]._height) > (rocks_array[n]._y + rocks_array[n]._height)) {
if (rocks_array[t].getDepth() < rocks_array[n].getDepth()) {
rocks_array[t].swapDepths(rocks_array[n]);
sorted = false;
}
}
}
n++;
}
t++;
}
if (sorted != true) {
game_rocks_zsort();
}
}
function game_rock_shuffle_flip(rmc) {
if (Math.random() > 0.5) {
rmc._xscale = -100;
rmc._x = rmc._x + rmc._width;
}
rmc._y = rmc._y + (Math.round(Math.random() * 14) - 2);
}
function game_update_overlay() {
num = game_timer();
prec = 1;
overlay_mc.txt_time.text = (Math.round(num) + ".") + Math.round(num * Math.pow(10, prec)).toString().substr(-prec);
if (num > gamevars.hardmode) {
gamevars.cork_slip = gamevars.cork_slip + gamevars.cork_slip_advance;
}
}
function game_loop() {
game_loop_check_keys();
game_loop_check_rocks();
game_loop_check_catapult();
game_points_down();
audio_tick();
game_update_overlay();
}
function game_loop_check_keys() {
if ((gamevars.boymove != 0) && (gamevars.flightmode == false)) {
game_boy_move(gamevars.boymove);
}
}
function game_loop_check_catapult() {
if (mcx.boy_mc.hitbox.hitTest(mcx.rocks_mc.catapult_mc.hitbox_mc)) {
boyvars.catapultnear = true;
} else {
boyvars.catapultnear = false;
}
if (gamevars.catpull == 1) {
overlay_mc.angle_mc._visible = true;
if (mcx.rocks_mc.catapult_mc.arm_mc._rotation > -90) {
extrapull = mcx.rocks_mc.catapult_mc.sprite_obj.mass / 200;
mcx.rocks_mc.catapult_mc.arm_mc._rotation = mcx.rocks_mc.catapult_mc.arm_mc._rotation - (gamevars.pullbackamount + extrapull);
}
rot = mcx.rocks_mc.catapult_mc.arm_mc._rotation;
rot = Math.abs(rot + 45);
prec = 1;
overlay_mc.angle_mc.txt.text = (Math.round(rot) + ".") + Math.round(rot * Math.pow(10, prec)).toString().substr(-prec);
} else {
overlay_mc.angle_mc._visible = false;
}
}
function game_loop_check_rocks() {
if (boyvars.rock == null) {
boyvars.nearestrocknum = -1;
n = 0;
while (n < rocks_array.length) {
if (rocks_array[n]._visible != false) {
if (mcx.boy_mc.hitbox.hitTest(rocks_array[n])) {
boyvars.nearestrocknum = n;
}
}
n++;
}
}
}
function game_respawn_rocks() {
n = 0;
while (n < rocks_array.length) {
if (rocks_array[n]._visible != true) {
rocks_array[n].respawn = rocks_array[n].respawn - 1;
if (rocks_array[n].respawn <= 0) {
rocks_array[n]._x = rocks_array[n].sprite_obj.spawn_xmin + (Math.random() * (rocks_array[n].sprite_obj.spawn_xmax - rocks_array[n].sprite_obj.spawn_xmin));
rocks_array[n]._visible = true;
}
}
n++;
}
}
function game_rock_despawn(rock_mc) {
rock_mc._visible = false;
half = rock_mc.sprite_obj.respawn_delay / 2;
rock_mc.respawn = Math.ceil(half + (Math.random() * half));
boyvars.rock = null;
}
function game_spawn_rock(sprite_obj) {
rock_mc = mcx.rocks_mc.attachMovie(sprite_obj.ground_sprite, (("rock_" + rocks_array.length) + "_") + sprite_obj.ground_sprite, mcx.rocks_mc.getNextHighestDepth());
rock_mc._y = gamevars.roadheight - rock_mc._height;
rock_mc._x = sprite_obj.spawn_xmin + (Math.random() * (sprite_obj.spawn_xmax - sprite_obj.spawn_xmin));
rock_mc.sprite_obj = sprite_obj;
rocks_array.push(rock_mc);
game_bonus_down(sprite_obj.sprite_name);
return(rock_mc);
}
function game_extra_bonus(rocktype) {
extrabonus_array[rocktype] = 1;
bcount = 0;
for (d in extrabonus_array) {
bcount = bcount + 1;
}
trace("extra bonus count: " + bcount);
if (bcount >= 10) {
game_bonus_display(("Catapult Master!\n " + gamevars.extratimebonus) + " SECONDS \nTIME BONUS");
extrabonus_array = [];
gamevars.starttime = gamevars.starttime - (gamevars.extratimebonus * 1000);
}
}
function game_bonus_up(rocktype) {
trace("game_bonus_up" + rocktype);
bonuslist_array[rocktype] = bonuslist_array[rocktype] + 1;
if (bonuslist_array[rocktype] >= gamevars.bonustarget) {
game_bonus_display(((rocktype + " Master!\n ") + gamevars.timebonus) + " SECONDS \nTIME BONUS");
bonuslist_array[rocktype] = 0;
gamevars.starttime = gamevars.starttime - (gamevars.timebonus * 1000);
game_extra_bonus(rocktype);
}
}
function game_bonus_down(rocktype) {
bonuslist_array[rocktype] = 0;
}
function game_bonus_display(mess) {
trace("game_bonus_display " + mess);
overlay_mc.bonus_mc.txt.text = mess.toUpperCase();
var _local2 = new mx.transitions.Tween(overlay_mc.bonus_mc, "_alpha", mx.transitions.easing.Regular.easeIn, 0, 100, 1, true);
var _local3 = new mx.transitions.Tween(overlay_mc.bonus_mc, "_xscale", mx.transitions.easing.Regular.easeIn, 50, 200, 1, true);
var _local5 = new mx.transitions.Tween(overlay_mc.bonus_mc, "_yscale", mx.transitions.easing.Regular.easeIn, 50, 200, 1, true);
_local2.onMotionFinished = function () {
var _local2 = new mx.transitions.Tween(overlay_mc.bonus_mc, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 2, true);
var _local3 = new mx.transitions.Tween(overlay_mc.bonus_mc, "_xscale", mx.transitions.easing.Regular.easeOut, 200, 500, 2, true);
var _local1 = new mx.transitions.Tween(overlay_mc.bonus_mc, "_yscale", mx.transitions.easing.Regular.easeOut, 200, 500, 2, true);
_local1.onMotionFinished = function () {
overlay_mc.bonus_mc._visible = false;
};
};
overlay_mc.bonus_mc._visible = true;
audio_sound_effect("sun");
}
function game_highscores(mc_end) {
mc_end.txt_name.text = "enter name";
mc_end.txt_name._visible = true;
mc_end.mc_button_high._visible = true;
mc_end.mc_sub_label._visible = true;
mc_end.mc_button_high.onRollOver = function () {
audio_sound_effect("menu1");
};
mc_end.mc_button_high.onRelease = function () {
audio_sound_effect("menu2");
if (mc_end.txt_name.text != "enter name") {
scoretable_out.action = "INSERT";
scoretable_out.viewtype = "FLASH";
scoretable_out.winname = mc_end.txt_name.text;
scoretable_out.winscore = gamevars.finalscore;
scoretable_out.sendAndLoad(game_score_script_url, scoretable_in, "GET");
trace(game_score_script_url);
mc_end.mc_button_high._visible = false;
mc_end.mc_sub_label._visible = false;
mc_end.txt_name._visible = false;
mc_end.fade_mc._visible = true;
scoretable_in.onLoad = function (success) {
if (success) {
n = 0;
while (n < 10) {
mc_end["NAME" + n] = scoretable_in["NAME" + n];
mc_end["SCORE" + n] = scoretable_in["SCORE" + n];
n++;
}
} else {
mc_end.error_txt.text = "Error connecting to server.";
}
};
}
};
scoretable_out.action = "VIEW";
scoretable_out.viewtype = "FLASH";
scoretable_in.onLoad = function (success) {
if (success) {
n = 0;
while (n < 10) {
mc_end["NAME" + n] = scoretable_in["NAME" + n];
mc_end["SCORE" + n] = scoretable_in["SCORE" + n];
n++;
}
} else {
mc_end.error_txt.text = "Error connecting to server.";
}
};
scoretable_out.sendAndLoad(game_score_script_url, scoretable_in, "GET");
}
var keylistener = new Object();
var gamevars = new Object();
var boyvars = new Object();
var bonuslist_array = [];
var extrabonus_array = [];
var mcx;
var game_score_script_url = "http://www.weebls-stuff.com/testy/damgame/scores.php";
var rocks_array;
game_setup();
var scoretable_out = new LoadVars();
var scoretable_in = new LoadVars();
Symbol 346 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 347 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 348 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 349 MovieClip [__Packages.mx.xpath.NodePathInfo] Frame 0
class mx.xpath.NodePathInfo
{
function NodePathInfo (nodeName, filter) {
__nodeName = nodeName;
__filter = filter;
}
function get nodeName() {
return(__nodeName);
}
function get filter() {
return(__filter);
}
var __nodeName = null;
var __filter = null;
}
Symbol 350 MovieClip [__Packages.mx.xpath.FilterStack] Frame 0
class mx.xpath.FilterStack
{
var __expr, __ops;
function FilterStack (filterVal) {
__expr = new Array();
__ops = new Array();
var _local2 = new mx.utils.StringTokenParser(filterVal);
var _local5 = _local2.nextToken();
var _local4;
var _local3 = _local2.__get__token();
while (_local5 != mx.utils.StringTokenParser.tkEOF) {
if (_local3 == "@") {
_local5 = _local2.nextToken();
_local3 = _local2.token;
_local4 = new mx.xpath.FilterExpr(true, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
} else if ((_local3 == "and") || (_local3 == "or")) {
__ops.splice(0, 0, _local3);
} else if ((_local3 != ")") && (_local3 != "(")) {
_local4 = new mx.xpath.FilterExpr(false, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
}
_local5 = _local2.nextToken();
_local3 = _local2.token;
}
}
function get exprs() {
return(__expr);
}
function get ops() {
return(__ops);
}
}
Symbol 351 MovieClip [__Packages.mx.utils.StringTokenParser] Frame 0
class mx.utils.StringTokenParser
{
var _source, _skipChars;
function StringTokenParser (source, skipChars) {
_source = source;
_skipChars = ((skipChars == undefined) ? null : (skipChars));
}
function get token() {
return(_token);
}
function getPos() {
return(_index);
}
function nextToken() {
var _local4;
var _local2;
var _local3 = _source.length;
skipBlanks();
if (_index >= _local3) {
return(tkEOF);
}
_local2 = _source.charCodeAt(_index);
if (((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) {
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 48) && (_local2 <= 57))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
return(tkSymbol);
}
if ((_local2 == 34) || (_local2 == 39)) {
_index++;
_local4 = _index;
_local2 = _source.charCodeAt(_local4);
while (((_local2 != 34) && (_local2 != 39)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
_index++;
return(tkString);
}
if ((_local2 == 45) || ((_local2 >= 48) && (_local2 <= 57))) {
var _local5 = tkInteger;
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((_local2 >= 48) && (_local2 <= 57)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
if (_index < _local3) {
if (((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) {
_local5 = tkFloat;
}
while ((((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
}
_token = _source.substring(_local4, _index);
return(_local5);
}
_token = _source.charAt(_index);
_index++;
return(tkSymbol);
}
function skipBlanks() {
if (_index < _source.length) {
var _local2 = _source.charAt(_index);
while ((_local2 == " ") || ((_skipChars != null) && (skipChar(_local2)))) {
_index++;
_local2 = _source.charAt(_index);
}
}
}
function skipChar(ch) {
var _local2 = 0;
while (_local2 < _skipChars.length) {
if (ch == _skipChars[_local2]) {
return(true);
}
_local2++;
}
return(false);
}
static var tkEOF = -1;
static var tkSymbol = 0;
static var tkString = 1;
static var tkInteger = 2;
static var tkFloat = 3;
var _index = 0;
var _token = "";
}
Symbol 352 MovieClip [__Packages.mx.xpath.FilterExpr] Frame 0
class mx.xpath.FilterExpr
{
function FilterExpr (attrInit, nameInit, valueInit) {
__attr = attrInit;
__name = nameInit;
__value = valueInit;
}
function get attr() {
return(__attr);
}
function set attr(newVal) {
__attr = newVal;
//return(attr);
}
function get name() {
return(__name);
}
function set name(newVal) {
__name = newVal;
//return(name);
}
function get value() {
return(__value);
}
function set value(newVal) {
__value = newVal;
//return(value);
}
var __attr = false;
var __value = null;
var __name = null;
}
Symbol 353 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Instance of Symbol 185 MovieClip in Symbol 186 MovieClip Frame 1
on (release) {
getURL ("http://adserver1.w00tmedia.net/delivery/ck.php?zoneid=30", "_blank");
}
Symbol 249 Button
on (release) {
getURL ("http://adserver1.w00tmedia.net/delivery/ck.php?zoneid=30", "_blank");
}
Symbol 263 Button
on (release) {
Stage.displayState = "fullScreen";
gotoAndPlay (2);
}
Symbol 267 Button
on (release) {
Stage.displayState = "normal";
gotoAndPlay (1);
}
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 2
stop();