Frame 1
function timerProtection() {
nowTimer = getTimer();
difTimer = (nowTimer - firstTimer) / 60000;
if (difTimer > 10) {
getURL ("http://www.nastypixel.com/arcade", "_self");
clearInterval(timerProtectionID);
}
}
function advanceLevel() {
_root.nowLevel = _root.nowLevel + 1;
if (_root.nowLevel != 1) {
sound_levelup.start();
}
if (_root.nowLevel == 16) {
gotoAndStop (7);
clearInterval(_root.game_render_int_id);
}
trace("Setting level " + _root.nowLevel);
_root.nowLevelfake = _root.nowLevelfake + 1;
_root.foods = _root.LevelData[_root.nowLevel][0];
_root.monsters = _root.LevelData[_root.nowLevel][1];
_root.bkg_graphics._alpha = 0;
_root.bkg_graphics.nextFrame();
_root.bkg.nextFrame();
_root.platforms._alpha = 0;
_root.platforms.nextFrame();
_root.zifoods._alpha = 0;
_root.zifoods.nextFrame();
_root.levelBackGround = _root.LevelData[_root.nowLevel][3];
_root.levelBackGroundColor = _root.LevelData[_root.nowLevel][4];
_root.ROUND_TIME = _root.LevelData[_root.nowLevel][2];
_root.timer = _root.ROUND_TIME;
trace("------------------------------------");
_root.sendMSG(4);
}
function restartLevel() {
if (_root.nowLevel != 1) {
sound_levelup.start();
}
trace("Restarting level " + _root.nowLevel);
_root.foods = _root.LevelData[_root.nowLevel][0];
_root.monsters = _root.LevelData[_root.nowLevel][1];
_root.levelBackGround = _root.LevelData[_root.nowLevel][3];
_root.ROUND_TIME = _root.LevelData[_root.nowLevel][2];
_root.timer = _root.ROUND_TIME;
}
function startLevel1() {
_root.life = 2;
_root.lifes.gotoAndStop(_root.life + 1);
_root.nowLevel = 0;
TIMER_RENDER_INTERVAL = 1000;
GAME_RENDER_INTERVAL = 20;
ROUND_TIME = 60;
_root.timer_render_int_id = null;
_root.game_render_int_id = null;
_root.advanceLevel();
}
function initGame() {
_root.player.death = false;
_root.score = 0;
_root.my_score = 0;
_root.nowLevelfake = 1;
_root.lifes.gotoAndStop(_root.life + 1);
_root.gravity = 1;
_root.player.gotoAndStop(1);
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.player.jump = true;
_root.player.jumpHeight = 17;
_root.timer = ROUND_TIME;
if (_root.timer_render_int_id != null) {
clearInterval(_root.timer_render_int_id);
_root.timer_render_int_id = null;
}
if (_root.game_render_int_id != null) {
clearInterval(_root.game_render_int_id);
_root.game_render_int_id = null;
}
}
function handleKeys() {
if (_root.player.death != true) {
key_is_down = false;
if (Key.isDown(37)) {
key_is_down = true;
_root.player.graphics.gotoAndStop(2);
_root.player.xspeed = _root.player.xspeed - 6;
}
if (Key.isDown(39)) {
key_is_down = true;
_root.player.graphics.gotoAndStop(3);
_root.player.xspeed = _root.player.xspeed + 6;
}
if (Key.isDown(32) | Key.isDown(38)) {
key_is_down = true;
_root.player.graphics.gotoAndStop(4);
if (_root.player.jump) {
_root.sound_jump.start();
_root.player.yspeed = _root.player.yspeed - _root.player.jumpHeight;
_root.player.jump = false;
}
}
if (!key_is_down) {
_root.player.graphics.gotoAndStop(1);
}
}
}
function renderTimer() {
_root.timer--;
if (_root.timer == 0) {
_root.player.death = true;
_root.deathhere = _root.player._y;
_root.playerDeath();
_root.ROUND_TIME = _root.LevelData[_root.nowLevel][2];
_root.timer = _root.ROUND_TIME;
}
}
function renderGame() {
if (_root.timer > 0) {
handleKeys();
}
_root.player.xspeed = _root.player.xspeed * 0.6;
_root.player.yspeed = _root.player.yspeed + gravity;
x = _root.player._x + _root.player.xspeed;
y = _root.player._y + _root.player.yspeed;
if (_root.bkg.hitTest(x, _root.player._y, true)) {
_root.player._x = x;
} else {
_root.player.xspeed = 0;
}
if (_root.bkg.hitTest(_root.player._x, y, true)) {
_root.player._y = y;
} else {
if (_root.player.yspeed < 0) {
} else {
_root.player.jump = true;
}
_root.player.yspeed = 0;
}
}
function playerDeath() {
_root.endGame();
_root.player.death = true;
_root.sound_dead.start();
trace("DEATH SAID HELLO");
_root.life = _root.life - 1;
_root.lifes.gotoAndStop(_root.life + 1);
if (life == 0) {
gotoAndStop (5);
clearInterval(_root.game_render_int_id);
} else {
var _local2 = new mx.transitions.Tween(_root.player, "_y", mx.transitions.easing.Regular.easeOut, _root.player._y, -10, 1, true);
var _local3 = new mx.transitions.Tween(_root.player, "_rotation", mx.transitions.easing.Regular.easeOut, 0, 360, 1, true);
_local2.onMotionFinished = function () {
_root.resetPlayer();
};
}
}
function resetPlayer() {
_root.player._alpha = 0;
trace("player shound be 50,350");
_root.player._x = 50;
_root.player._y = 340;
_root.player.death = true;
_root.zifoods.tween("_alpha", 100, 2, "Linear", 4);
_root.player.tween("_alpha", 100, 2.8, "Linear", 4, resetPlayerGo);
}
function resetPlayerGo() {
_root.timer_render_int_id = setInterval(renderTimer, TIMER_RENDER_INTERVAL);
_root.player.death = false;
trace("reseting player done");
}
function startGame() {
_root.timer_render_int_id = setInterval(renderTimer, TIMER_RENDER_INTERVAL);
_root.game_render_int_id = setInterval(renderGame, GAME_RENDER_INTERVAL);
}
function endGame() {
clearInterval(_root.timer_render_int_id);
_root.timer_render_int_id = null;
}
function sendMSG(command, msgText) {
if (command == 1) {
_root.sound_startLevel.start();
_root.blackCover._visible = true;
_root.blackCover.msgPlace._y = -300;
_root.blackCover.msgPlace.tween("_y", 80, 1, "easeInQuad", 0.2, MSG_clearAndStartGame);
}
if (command == 2) {
_root.blackCover.msgPlace.tween("_y", -300, 1, "easeInQuad", 1);
}
if (command == 3) {
trace("load an ad");
var _local3 = new mx.transitions.Tween(_root.blackCover, "_y", mx.transitions.easing.Bounce.easeOut, -386, 15, 2, true);
_local3.onMotionFinished = function () {
sendMSG(2, "text");
};
}
if (command == 4) {
_root.player.tween("_alpha", 0, 0.2, "easeOutQuad");
_root.bkg_graphics.tween("_alpha", 0, 2, "easeOutQuad");
_root.platforms.tween("_alpha", 0, 2, "easeOutQuad");
_root.Zimonsters._visible = false;
_root.blackCover._visible = true;
_root.blackCover.msgPlace._y = -200;
_root.blackCover.msgPlace.tween("_y", 80, 2, "easeOutQuad", 0, MSG_clearAndLevel);
_root.endGame();
_root.resetPlayer();
}
}
function MSG_clearAndStartGame() {
_root.blackCover.msgPlace.gotoAndStop(1);
_root.blackCover.msgPlace.tween("_y", 600, 2, "easeInQuad", 0.1);
initGame();
startGame();
}
function MSG_clearAndLevel() {
_root.blackCover.msgPlace.tween("_y", 600, 4, "easeOutQuad", 0.1);
_root.bkg_graphics.tween("_alpha", 100, 2, "easeOutQuad");
_root.platforms.tween("_alpha", 100, 2, "easeOutQuad", 0.5);
_root.levelBackGround.tween("_alpha", 100, 1, "easeOutQuad");
_root.Zimonsters._visible = true;
trace("Show Monsters");
_root.Zimonsters.nextFrame();
}
function changePlatColor(newcolor) {
trace("Changing platform colors to " + newcolor);
newcolor = "0x" + newcolor;
platloop = 1;
while (platloop < 8) {
var _local1 = new Color("_root.platforms.plat" + platloop);
_local1.setRGB(newcolor);
platloop++;
}
}
function givescore(xx, yy, worthPoint) {
_root.sound_eat.start();
_root.attachMovie("foodscore", "foodscore" + _root.foods, this.getNextHighestDepth());
_root.foodscoreB = _root["foodscore" + _root.foods];
foodscoreB._y = yy;
foodscoreB._x = xx;
pointsXfood = 100;
worthPoint = worthPoint + random(100);
foodscoreB.giveXpoint = worthPoint;
_root.score = _root.score + worthPoint;
var _local4 = new mx.transitions.Tween(foodscoreB, "_y", mx.transitions.easing.Regular.easeOut, foodscoreB._y, -140, 1.2, true);
_local4 = new mx.transitions.Tween(foodscoreB, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1.5, true);
_local4.onMotionFinished = function () {
removeMovieClip(this.obj);
};
if (_root.foods == 0) {
trace("Level Done");
advanceLevel();
}
}
function clearFood() {
trace("clearing food");
zloop = 1;
while (zloop < 6) {
tempfoodMC = _root["zifoods.food" + zloop];
delete eval (tempfoodMC.onEnterFrame());
trace(tempfoodMC._name);
zloop++;
}
}
_root.gameVersion = "V 2.16.en";
_global.$createTweenController = function () {
var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local3.$_tweenPropList = new Array();
_local3.$_tTime = getTimer();
_local3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local7 = [prop];
var _local11 = [mtarget[prop]];
var _local9 = [propDest];
} else {
var _local7 = [];
var _local11 = [];
var _local9 = [];
for (var _local32 in prop) {
_local11.push(mtarget[prop[_local32]]);
}
for (var _local32 in prop) {
_local7.push(prop[_local32]);
}
for (var _local32 in propDest) {
_local9.push(propDest[_local32]);
}
}
var _local12 = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local8 = _root.__tweenController__.$_tTime;
for (var _local32 in _local11) {
if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) {
if (mtarget.$_tweenCount > 0) {
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) {
if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) {
_local4.splice(_local3, 1);
_local3--;
mtarget.$_tweenCount--;
}
}
_local3++;
}
}
_local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))});
mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1);
_local12 = true;
}
}
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function () {
var _local8 = (this.$_tTime = getTimer());
var _local6 = 0;
while (_local6 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local6];
if (_local3._targ.toString() == undefined) {
this.$_tweenPropList.splice(_local6, 1);
_local6--;
} else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_frame__") {
_local3._propStart = _local3._targ._currentframe;
} else if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else if (_local3._prop == "__special_bst_t__") {
_local3._propStart = 0;
_local3._extras.__special_bst_ix__ = _local3._targ._x;
_local3._extras.__special_bst_iy__ = _local3._targ._y;
} else if (_local3._prop == "__special_blur_x__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_blur_y__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_color__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].color;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_glow_alpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].alpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_glow_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_distance__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].distance;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_angle__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].angle;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 45;
}
} else if (_local3._prop == "__special_bevel_highlightColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_bevel_highlightAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_shadowColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_shadowAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local10 = _local3._timeDest + (_local3._delay * 1000);
if (_local10 <= _local8) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4));
if (_local3._prop == "__special_mc_frame__") {
_local3._targ.gotoAndStop(Math.round(_local4));
} else if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
} else if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
} else if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
} else if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
} else if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
} else if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
} else if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
} else if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if (_local3._prop == "__special_bst_t__") {
var _local7 = _local3._extras;
var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4);
if (_local3._extras.mustRound) {
_local3._targ._x = Math.round(_local9.x);
_local3._targ._y = Math.round(_local9.y);
} else {
_local3._targ._x = _local9.x;
_local3._targ._y = _local9.y;
}
}
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local3._prop == "__special_blur_x__") {
_global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_blur_y__") {
_global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_color__") {
_global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_glow_alpha__") {
_global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurX__") {
_global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurY__") {
_global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_strength__") {
_global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_distance__") {
_global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_angle__") {
_global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurX__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurY__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_strength__") {
_global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras);
}
if (_local3._targ.onTweenUpdate != undefined) {
_local3._targ.onTweenUpdate(_local3._prop);
}
if (_local10 <= _local8) {
if (_local3._targ.onTweenComplete != undefined) {
_local3._targ.onTweenComplete(_local3._prop);
}
_global.$stopTween(_local3._targ, [_local3._prop], false);
_local6--;
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local11, null);
_local11.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
}
}
_local6++;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local7;
for (var _local9 in _local4) {
_local7 = _local4[_local9]._prop;
var _local5 = 0;
while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) {
if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) {
switch (_local7) {
case "__special_mc_frame__" :
case "__special_mc_ra__" :
case "__special_mc_rb__" :
case "__special_mc_ga__" :
case "__special_mc_gb__" :
case "__special_mc_ba__" :
case "__special_mc_bb__" :
case "__special_mc_aa__" :
case "__special_mc_ab__" :
case "__special_sound_volume__" :
case "__special_bst_t__" :
delete mtarget[_local7];
break;
case "__special_text_b__" :
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
_local4.splice(_local9, 1);
}
_local5++;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var _local9 in _local4) {
if (_local4[_local9]._targ == mtarget) {
mtarget.$_tweenCount++;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (_local4.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var _local1;
var _local7 = false;
var _local3 = [];
_local1 = 0;
while (_local1 < mtarget.filters.length) {
_local3.push(mtarget.filters[_local1]);
_local1++;
}
if (propName.substr(0, 5) == "blur_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BlurFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
_local3[_local1].quality = extras.__special_blur_quality__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local9;
var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__));
if (propName == "blur_blurX") {
_local9 = new flash.filters.BlurFilter(propValue, 0, _local8);
}
if (propName == "blur_blurY") {
_local9 = new flash.filters.BlurFilter(0, propValue, _local8);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 5) == "glow_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.GlowFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
_local3[_local1].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
_local3[_local1].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_glow_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__));
var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__));
var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__));
if (propName == "glow_color") {
var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_alpha") {
var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurX") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurY") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10);
}
if (propName == "glow_strength") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 6) == "bevel_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BevelFilter) {
_local3[_local1][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
_local3[_local1].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
_local3[_local1].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_bevel_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__));
var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__));
var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__));
if (propName == "bevel_distance") {
var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_angle") {
var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurX") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurY") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10);
}
if (propName == "bevel_strength") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10);
}
_local3.push(_local9);
}
} else {
return(undefined);
}
mtarget.filters = _local3;
};
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
}));
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
if (props != undefined) {
var _local4 = 1;
while (_local4 < arguments.length) {
props.push(arguments[_local4]);
_local4++;
}
}
_global.$stopTween(this, props, true);
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local6 = 1;
while (_local6 < Arguments.length) {
props.push(Arguments[_local6]);
_local6++;
}
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local5;
for (var _local7 in _local4) {
if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local6 in props) {
if (props[_local6] == _local4[_local7]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local4[_local7]._isPaused = true;
_local4[_local7]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local7 = 1;
while (_local7 < Arguments.length) {
props.push(Arguments[_local7]);
_local7++;
}
}
var _local3 = _root.__tweenController__.$_tweenPropList;
var _local5;
var _local6;
for (var _local8 in _local3) {
if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local7 in props) {
if (props[_local7] == _local3[_local8]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local3[_local8]._isPaused = false;
_local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused;
_local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6;
_local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6;
_local3[_local8]._timePaused = 0;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0);
ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_local3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var _local3 = propDest_color >> 16;
var _local5 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = propDest_color >> 16;
var _local6 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality});
} else {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]});
}
});
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]});
}
});
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]});
}
});
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var _local8 = objProp._propStart >> 16;
var _local4 = objProp._propDest >> 16;
var _local5 = (objProp._propStart >> 8) & 255;
var _local6 = (objProp._propDest >> 8) & 255;
var _local9 = objProp._propStart & 255;
var _local7 = objProp._propDest & 255;
var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return(((_local12 << 16) + (_local10 << 8)) + _local3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local4 = _propStart;
var _local2 = _propDest - _propStart;
var _local3 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local3) + _local4);
case "easeinquad" :
_local1 = _local1 / _local3;
return(((_local2 * _local1) * _local1) + _local4);
case "easeoutquad" :
_local1 = _local1 / _local3;
return((((-_local2) * _local1) * (_local1 - 2)) + _local4);
case "easeinoutquad" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local4);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4);
case "easeoutinquad" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeincubic" :
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * _local1) + _local4);
case "easeoutcubic" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4);
case "easeinoutcubic" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4);
case "easeoutincubic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquart" :
_local1 = _local1 / _local3;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquart" :
_local1 = (_local1 / _local3) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4);
case "easeinoutquart" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4);
case "easeoutinquart" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquint" :
_local1 = _local1 / _local3;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquint" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4);
case "easeinoutquint" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4);
case "easeoutinquint" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local3) * (Math.PI/2))) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * (Math.PI/2))) + _local4);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4);
case "easeoutinsine" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinexpo" :
return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4)));
case "easeoutexpo" :
return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4);
case "easeoutinexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4);
}
return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4);
case "easeincirc" :
_local1 = _local1 / _local3;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
case "easeoutcirc" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4);
case "easeinoutcirc" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4);
case "easeoutincirc" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 == 2) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4);
case "easeoutinelastic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4);
case "easeoutinback" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4);
case "easeoutbounce" :
_local1 = _local1 / _local3;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local4);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4);
case "easeinoutbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeoutinbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4);
}
trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type.");
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
var sound_intro = new Sound();
sound_intro.attachSound("sound_introWavC");
var sound_coin = new Sound();
sound_coin.attachSound("coinWav");
var sound_startLevel = new Sound();
sound_startLevel.attachSound("startLevelWav");
var sound_jump = new Sound();
sound_jump.attachSound("jumpWav");
var sound_eat = new Sound();
sound_eat.attachSound("eatWav");
var sound_dead = new Sound();
sound_dead.attachSound("deadWav");
var sound_levelup = new Sound();
sound_levelup.attachSound("sound_introWavB");
LevelData = new Array();
LevelData[1] = Array(2, 0, 90, 1, "ff9966");
LevelData[2] = Array(3, 0, 60, 2, "669966");
LevelData[3] = Array(3, 2, 60, 3, "ff9999");
LevelData[4] = Array(4, 2, 60, 4, "335522");
LevelData[5] = Array(5, 3, 60, 5, "9911FF");
LevelData[6] = Array(5, 4, 60, 6, "9911FF");
LevelData[7] = Array(5, 4, 60, 7, "9911FF");
LevelData[8] = Array(1, 5, 60, 7, "9911FF");
LevelData[9] = Array(2, 0, 60, 1, "ff9966");
LevelData[10] = Array(3, 0, 30, 2, "669966");
LevelData[11] = Array(3, 2, 30, 3, "ff9999");
LevelData[12] = Array(4, 2, 30, 4, "335522");
LevelData[13] = Array(5, 3, 30, 5, "9911FF");
LevelData[14] = Array(5, 4, 20, 6, "9911FF");
LevelData[15] = Array(5, 4, 20, 7, "9911FF");
LevelData[16] = Array(1, 5, 20, 7, "9911FF");
_root.nowLevelfake = 0;
checkIt = this._url.substring(0, 33);
if (checkIt != "http://www.nastypixel.com/arcade/") {
checkIt = "lv";
firstTimer = getTimer();
_root.timerProtectionID = setInterval(timerProtection, 1000);
} else {
checkIt = "";
}
MovieClip.prototype.MMleftRight = function (graphics, xLength, xTime, yLength, yTime) {
this.gotoAndStop(graphics);
var mmtween = (new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, this.startX, xLength, xTime, true));
var mmtweenB = (new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, this.startY, yLength, yTime, true));
mmtween.onMotionFinished = function (obj) {
if ((_root._currentframe == 4) && (_root.Zimonsters._visible == true)) {
mmtween.yoyo();
}
};
mmtweenB.onMotionFinished = function (obj) {
if ((_root._currentframe == 4) && (_root.Zimonsters._visible == true)) {
mmtweenB.yoyo();
}
};
};
MovieClip.prototype.playerHiting = function () {
this.onEnterFrame = function () {
if (this.hitTest("_root.player") && (_root.player.death != true)) {
_root.player.death = true;
_root.deathhere = _root.player._y;
_root.playerDeath();
}
};
};
MovieClip.prototype.MainManuAmiation1 = function (xLength, xTime, yLength, yTime) {
var mmtween = (new mx.transitions.Tween(this, "_x", mx.transitions.easing.Regular.easeInOut, this.startX, xLength, xTime, true));
var mmtweenB = (new mx.transitions.Tween(this, "_y", mx.transitions.easing.Regular.easeInOut, this.startY, yLength, yTime, true));
mmtween.onMotionFinished = function (obj) {
if (_root._currentframe == 3) {
mmtween.yoyo();
}
};
mmtweenB.onMotionFinished = function (obj) {
if (_root._currentframe == 3) {
mmtweenB.yoyo();
}
};
};
MovieClip.prototype.iamfood = function () {
this._visible = true;
this.onEnterFrame = function () {
if ((this.hitTest("_root.player") && (this._visible == true)) && (_root.player.death == false)) {
this._visible = false;
delete eval (this.onEnterFrame());
_root.foods = _root.foods - 1;
foodtempxx = this._x;
foodtempyy = this._y;
addrnd = random(100);
_root.givescore(foodtempxx, foodtempyy, 120);
}
};
};
_root.cheat = false;
persLoaded = 0;
_root.gamePlayed = 0;
stop();
this.onEnterFrame = function () {
persLoaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
loaderBar._xscale = persLoaded * 4;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
if (_root.cheat == false) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
delete this.onEnterFrame;
}
};
Instance of Symbol 15 MovieClip "backgroundAnim" in Frame 1
onClipEvent (load) {
_root.tempcolor = 10;
startX = this._x;
startY = this._y;
}
Frame 2
function gotoGame() {
gotoAndStop (3);
}
Mouse.hide();
fscommand ("trapallkeys", true);
adrnd = random(5) + 1;
_root.blackCover.adholder._alpha = 0;
_root.blackCover.msgPlace._visible = false;
_root.Geaa._alpha = 0;
_root.gameName._alpha = 0;
_root.backgroundAnim._alpha = 0;
if (_root.gamePlayed == 0) {
trace("First game");
_root.gamePlayed = _root.gamePlayed + 1;
_root.backgroundAnim.tween("_alpha", 100, 2, "easeOutQuad");
_root.Geaa.tween("_alpha", 100, 4, "easeOutQuad", 1);
_root.gameName._alpha = 100;
_root.Geaa.tween("_y", 550, 1, "easeOutQuad", 4);
_root.gameName.tween("_y", 160, 2, "easeOutBounce", 5);
_root.blackCover.adholder.tween("_alpha", 100, 2, "easeOutQuad", 8);
_root.backgroundAnim.tween("_alpha", 0, 1, "easeOutQuad", 8, gotoGame);
} else {
gotoGame();
}
stop();
sound_intro.start();
Instance of Symbol 15 MovieClip "backgroundAnim" in Frame 2
onClipEvent (load) {
_root.tempcolor = 10;
startX = this._x;
startY = this._y;
}
Frame 3
Mouse.show();
_root.backgroundAnim._alpha = 0;
_root.backgroundAnim.tween("_alpha", 100, 4, "easeOutQuad");
_root.startGameKey.onRelease = function () {
_root.startLevel1();
gotoAndStop (4);
};
_root.howtoKey.onRelease = function () {
gotoAndStop (6);
};
_root.highscoreKey.onRelease = function () {
_root.score = 0;
gotoAndStop (5);
};
_root.moreGames.onRelease = function () {
getURL ("http://www.nastypixel.com/arcade", "_parent");
};
Instance of Symbol 15 MovieClip "backgroundAnim" in Frame 3
onClipEvent (load) {
_root.tempcolor = ff;
startX = this._x;
startY = this._y;
MainManuAmiation1(-90, 4, -80, 1);
}
Frame 4
_root.restartLevel();
sendMSG(1, "START");
Mouse.hide();
Instance of Symbol 113 MovieClip "bkg" in Frame 4
onClipEvent (enterFrame) {
tellTarget (this) {
gotoAndStop(_root.round);
};
}
Instance of Symbol 193 MovieClip in Frame 4
onClipEvent (keyDown) {
_root.handleKeyDown();
}
Frame 5
function gameoverthing() {
if (_root.gameoveractive < 4) {
if (_root.donewithScore == true) {
_root.gameoveractive = _root.gameoveractive + 1;
}
_root.gameoversign.tween("_x", -370, 4, "linear", 0, gameoverthingB);
} else {
gotoAndStop (2);
}
}
function gameoverthingB() {
_root.gameoversign._x = 519.3;
_root.gameoversign._y = random(200) + 100;
gameoverthing();
}
_root.nowLevelfake = 0;
_root.sb_score = _root.score;
Mouse.show();
_root.gameoveractive = 1;
gameoverthing();
Instance of Symbol 15 MovieClip "backgroundAnim" in Frame 5
onClipEvent (load) {
}
Frame 6
_root.howtoKey.onRelease = function () {
gotoAndStop (3);
};
Instance of Symbol 15 MovieClip "backgroundAnim" in Frame 6
onClipEvent (load) {
_root.tempcolor = ff;
startX = this._x;
startY = this._y;
MainManuAmiation1(-90, 4, -80, 1);
}
Frame 7
var my_date = new Date();
codeA = my_date.getTime();
_root.howtoKey.onRelease = function () {
_root.score = int(_root.score * 1.3);
gotoAndStop (5);
};
Symbol 282 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 283 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 284 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 285 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 286 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";
}
Symbol 28 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 3
stop();
Symbol 92 MovieClip Frame 4
stop();
Symbol 92 MovieClip Frame 6
stop();
Symbol 92 MovieClip Frame 8
stop();
Symbol 92 MovieClip Frame 9
stop();
Symbol 92 MovieClip Frame 10
stop();
Symbol 92 MovieClip Frame 11
stop();
Symbol 92 MovieClip Frame 12
stop();
Symbol 92 MovieClip Frame 13
stop();
Symbol 92 MovieClip Frame 15
stop();
Symbol 92 MovieClip Frame 19
stop();
Symbol 92 MovieClip Frame 21
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 3
stop();
Symbol 98 MovieClip Frame 4
stop();
Symbol 102 MovieClip Frame 20
tellTarget ("../") {
gotoAndStop (1);
};
tellTarget ("_root") {
setProperty("_root.player", _x , 360);
setProperty("_root.player", _y , 4);
gotoAndPlay ("roll");
};
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 5
_root.life = _root.life - 1;
tellTarget ("_root.lifes") {
gotoAndStop(_root.life + 1);
};
Symbol 103 MovieClip Frame 26
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 3
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(4, 20, 4, -186, 4);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 4
onClipEvent (load) {
delete this.Tween;
playerHiting();
startX = this._x;
startY = this._y;
this.MMleftRight(1, 130, 4, -150, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 4
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 108, 3, -190, 7);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 5
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(6, 130, 2, 30, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 5
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(6, 108, 7, -140, 1.1);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 6
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(3, 240, 8, 30, 1.5);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 6
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(5, 250, 4, 34, 0.2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 7
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(6, 430, 4, -10, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 7
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(6, 250, 7, -160, 7);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 7
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(4, 240, 4, -60, 6);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 7
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(4, 300, 7, -50, 1);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 8
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 430, 3, -10, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 8
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 250, 3, -140, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 8
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 240, 2, -60, 3);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 8
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 330, 3, -100, 1);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 9
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 250, 2, -140, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 9
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 240, 1, -60, 0.21);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 10
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(3, 280, 1, 30, 0.5);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 10
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(5, 250, 4, 34, 0.3);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 11
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(4, 20, 1, -186, 0.21);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 11
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(4, 300, 1, -50, 1);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 12
onClipEvent (load) {
delete this.Tween;
playerHiting();
startX = this._x;
startY = this._y;
this.MMleftRight(1, 130, 4, -150, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 12
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 108, 3, -190, 7);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 13
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(2, 130, 1, 30, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 13
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(2, 108, 1, -140, 0.8);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 14
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(4, 240, 1, 30, 0.7);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 14
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(4, 250, 1, 34, 0.2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 15
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(6, 430, 2, -10, 1);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 15
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(6, 250, 2, -160, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 15
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(4, 240, 2, -60, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 15
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(4, 300, 2, -50, 1);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 16
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 430, 3, -10, 2);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 16
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 250, 1, -140, 1);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 16
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 240, 2, -60, 3);
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 16
onClipEvent (load) {
playerHiting();
startX = this._x;
startY = this._y;
MMleftRight(1, 330, 3, -100, 1);
}
Symbol 180 MovieClip Frame 1
stop();
gotoAndStop(random(33) + 1);
Symbol 181 MovieClip Frame 1
stop();
Instance of Symbol 180 MovieClip "food1" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food2" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food5" in Symbol 181 MovieClip Frame 2
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food3" in Symbol 181 MovieClip Frame 2
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food4" in Symbol 181 MovieClip Frame 2
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food6" in Symbol 181 MovieClip Frame 3
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food7" in Symbol 181 MovieClip Frame 3
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food8" in Symbol 181 MovieClip Frame 3
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food11" in Symbol 181 MovieClip Frame 4
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food10" in Symbol 181 MovieClip Frame 4
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food12" in Symbol 181 MovieClip Frame 4
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food9" in Symbol 181 MovieClip Frame 4
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food17" in Symbol 181 MovieClip Frame 5
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food14" in Symbol 181 MovieClip Frame 5
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food13" in Symbol 181 MovieClip Frame 5
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food15" in Symbol 181 MovieClip Frame 5
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food16" in Symbol 181 MovieClip Frame 5
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food19" in Symbol 181 MovieClip Frame 6
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food18" in Symbol 181 MovieClip Frame 6
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food20" in Symbol 181 MovieClip Frame 6
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food21" in Symbol 181 MovieClip Frame 6
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food22" in Symbol 181 MovieClip Frame 6
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food26" in Symbol 181 MovieClip Frame 7
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food25" in Symbol 181 MovieClip Frame 7
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food24" in Symbol 181 MovieClip Frame 7
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food23" in Symbol 181 MovieClip Frame 7
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food27" in Symbol 181 MovieClip Frame 7
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food28" in Symbol 181 MovieClip Frame 8
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food1" in Symbol 181 MovieClip Frame 9
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food2" in Symbol 181 MovieClip Frame 9
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food5" in Symbol 181 MovieClip Frame 10
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food3" in Symbol 181 MovieClip Frame 10
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food4" in Symbol 181 MovieClip Frame 10
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food6" in Symbol 181 MovieClip Frame 11
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food7" in Symbol 181 MovieClip Frame 11
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food8" in Symbol 181 MovieClip Frame 11
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food11" in Symbol 181 MovieClip Frame 12
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food10" in Symbol 181 MovieClip Frame 12
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food12" in Symbol 181 MovieClip Frame 12
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food9" in Symbol 181 MovieClip Frame 12
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food17" in Symbol 181 MovieClip Frame 13
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food14" in Symbol 181 MovieClip Frame 13
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food13" in Symbol 181 MovieClip Frame 13
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food15" in Symbol 181 MovieClip Frame 13
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food16" in Symbol 181 MovieClip Frame 13
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food19" in Symbol 181 MovieClip Frame 14
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food18" in Symbol 181 MovieClip Frame 14
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food20" in Symbol 181 MovieClip Frame 14
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food21" in Symbol 181 MovieClip Frame 14
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food22" in Symbol 181 MovieClip Frame 14
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food26" in Symbol 181 MovieClip Frame 15
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food25" in Symbol 181 MovieClip Frame 15
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food24" in Symbol 181 MovieClip Frame 15
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food23" in Symbol 181 MovieClip Frame 15
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food27" in Symbol 181 MovieClip Frame 15
onClipEvent (load) {
this.iamfood();
}
Instance of Symbol 180 MovieClip "food28" in Symbol 181 MovieClip Frame 16
onClipEvent (load) {
this.iamfood();
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
stop();
Symbol 190 MovieClip Frame 3
stop();
Symbol 190 MovieClip Frame 4
stop();
Symbol 190 MovieClip Frame 5
stop();
Symbol 236 Button
on (release, keyPress "<Enter>") {
hsObj.data.player10.name = newname;
hsObj.data.player10.score = newscore;
gogo();
play();
}
Symbol 272 MovieClip Frame 1
maxscore = 100000 /* 0x0186A0 */;
rndnames = new Array("Gemini", "Saturn", "Vampress", "Jane-Doe", "Vantasia", "Loca", "Sunny-D", "Jelli", "Mosquito", "Beanbag", "Havoc", "HellSmurf", "Blue", "DragonLord", "LiquidBlaze", "PurpleHaze", "Vampyre", "Frost", "Letter-X", "Beaner", "ToxicatedOil", "Hydro", "Akeno", "CellFish", "Sharky Acura", "Benjiro", "Chiko", "Dai", "Danno", "Jiro", "Joben", "Jomei", "Juro", "Kaemon", "Kamlyn", "Kane", "Kannon", "Kano", "Kaor", "Keiji", "Keitaro", "ken", "Kenji", "Kenjiro", "Kentaro", "Makoto", "Manzo", "Mareo", "Marise", "Akiko", "Anda", "Aneko", "Chiko", "Chiyo", "Eriko", "Hana", "Hoshi", "Kameko", "Kami", "Kamlyn", "Kammi", "Kammie", "Kaya", "Kumiko", "Kyoko", "Maeko", "Maemi", "Maiya", "Mariko", "Marise", "Matsuko", "Michie", "Michiko", "Midori", "Maro", "Michio", "Miki", "Mikio", "Minoru", "Montaro", "Morio", "Nikki", "Nikko", "Rai", "Rei", "Reizo", "Renjiro", "Renzo", "Rinji", "Roka", "Sachio", "Saniiro", "Seiji", "Shoda", "Suzu", "Tadao", "Taji", "Takeo", "Tanjiro", "Mieko", "Miki", "Mitsu", "Miya", "Nariko", "Nikki", "Noriko", "Suzu", "Taji", "Tamae", "Tami", "Tamika", "Taree", "Taura", "Taya", "Toya", "Yumiko", "Yuriko", "Andre", "Andy", "Angelino", "Angelo", "Artur", "Bernardo", "Cruz", "Eduardo", "Edwardo", "Javier", "Joao", "Jorge", "Jose", "Justino", "Leonardo", "Leopoldo", "Luciano", "Lucio", "Marco", "Marcos", "Marques", "Mateus", "Maureo", "Mauricio", "Miguel", "Catalina", "Caterina", "Catrina", "Izabel", "Vidonia", "Finbar", "Finn", "Fintan", "Flann", "Francis", "Frank", "Frederick", "Garrett", "Geoffrey", "George", "Gerald", "Gilbert", "Gordon", "Gregory", "Harold", "Henry", "Hugh", "Ian", "Isaac", "Luke", "Malcolm", "Mark", "Martin", "Mat", "Matthew", "Maurice", "Michael", "Mickey", "Mike", "Cheerio", "Egghead", "Wishbone", "Vickie", "Santae", "wingnut", "bikini", "chesnut", "Beast", "Saladhed", "Banana", "Ghost", "Loca", "Banana", "Munchkin", "Genius", "Mamas", "Meathed", "Frumpshkin", "Topper", "Pickles", "Dino", "Cloe", "Moon-pie", "Eyeless", "Aries", "MaTriX", "NinjaBoy", "Kathy", "Dave123", "SuperGirl", "Jean", "Gman", "Sweet Girl", "CyberDog", "Tai Fu", "Zipnav", "ZZ9`ZA", "I rule", "Kim", "David", "Peggy", "Jackie Chan", "MadMan", "Vini", "Bridght lin", "Tina", "BigMan", "SuperToy", "Player707", "Kamil", "Kabila", "Doppy", "Rasta", "BangBang", "18f Italy", "SheD", "David", "Jean", "Joe", "Joe3003", "DeltaV", "Fufu", "Lufi san", "S.A", "Y.C is king", "Nasha", "Smooother", "RabbitFeet", "TheDog", "Kamikaze", "Sharon", "Sharon002", "Dan32", "e=MC2", "Joron", "Gorgoron", "Havita", "Kai law", "Hong Fei", "Brazil!", "JojO", "Fishface", "CyberFish", "Karnafish", "Zeta", "Fabi", "CoC", "WestSide", "MaTriX", "RubiTamTam", "AliG", "BigUp", "Kalistro", "Boyakasha", "BBTRR", "Mai", "Wicked", "Ha Ha", "Tomas", "Jamil", "James543", "JJ cool", "Neo", "Giorgio", "Latifa", "Mohamad", "Sade", "Belmer", "Luti", "Luther", "Basta", "Y.C is king");
newscore = _root.sb_score;
Symbol 272 MovieClip Frame 10
function numberSort(first, sec) {
return(sec.score > first.score);
}
function domeize() {
var _local1 = new Array();
i = 0;
loop = 0;
while (loop < 11) {
_local1.push({name:hsObj.data["player" + loop].name, score:Number(hsObj.data["player" + loop].score)});
loop++;
}
_local1.sort();
i = 0;
while (i < 11) {
hsObj.data["player" + i] = _local1[i];
i = i + 1;
}
hsObj.flush();
}
function gogo() {
domeize();
i = 0;
loop = 0;
while (loop < 10) {
donow = ("hsObj.data.player" + loop) + ".name";
donow2 = ("hsObj.data.player" + loop) + ".score";
Set("n" + loop, eval (donow));
Set("s" + loop, eval (donow2));
loop++;
}
}
function createPlayer(name, score) {
hsObj.data.player10.name = name;
hsObj.data.player10.score = score;
gogo();
}
rndl = rndnames.length;
Array.prototype.sort = function () {
var _local2 = 0;
while (_local2 < (this.length - 1)) {
var _local4 = this[_local2];
var _local3 = this[_local2 + 1];
if (numberSort(_local4, _local3)) {
this[_local2 + 1] = _local4;
this[_local2] = _local3;
this.sort();
}
_local2 = _local2 + 1;
}
return(this);
};
player = function (name, score) {
this.name = name;
this.score = score;
};
hsObj = SharedObject.getLocal("hsb");
if (hsObj.data.player0.name == null) {
i = 0;
maxscore2 = maxscore;
while (i < 11) {
defplayer = new player(rndnames[random(rndl)], random(maxscore2) + 10);
maxscore2 = int(maxscore2 * 0.7);
hsObj.data["player" + i] = defplayer;
i = i + 1;
}
hsObj.flush();
}
gogo();
Symbol 272 MovieClip Frame 11
if (newscore >= s9) {
gotoAndStop ("postscore");
} else {
play();
}
Symbol 272 MovieClip Frame 18
stop();
rndmore = random(100) + 1;
if (rndmore > 80) {
hsObj.data.player10.name = rndnames[random(rndl)];
hsObj.data.player10.score = int(s0 * ((random(80) + 15) / 80));
gogo();
}
_root.donewithScore = true;
Symbol 272 MovieClip Frame 19
stop();
_root.donewithScore = false;
Symbol 272 MovieClip Frame 20
stop();
_root.donewithScore = true;