Frame 1
stop();
if (!_global.heavenspot) {
_global.heavenspot = new Object();
}
if (!_global.heavenspot.boxingGame) {
_global.heavenspot.boxingGame = new BoxingGame(this);
}
this.start_mc.onPress = function () {
this._parent.gotoAndPlay("ready");
};
Frame 19
stop();
_global.heavenspot.boxingGame.init();
Symbol 7 MovieClip [nextRoundHolder] Frame 1
stop();
this.playAgain_mc.onPress = function () {
_global.heavenspot.boxingGame.nextRound();
this._parent.removeMovieClip();
};
Symbol 11 MovieClip [playAgainHolder] Frame 1
stop();
this.playAgain_mc.onPress = function () {
_global.heavenspot.boxingGame.playAgain();
this._parent.removeMovieClip();
};
Symbol 134 MovieClip [__Packages.BoxingGame] Frame 0
class BoxingGame
{
var _lokiClip, _okHeroMove, _tl;
function BoxingGame (timeline) {
var _local1 = this;
_local1._tl = timeline;
_global.intervals = new Object();
Key.addListener(_local1);
_local1._bell_sound = new Sound();
_local1._bell_sound.attachSound("bell");
_local1._ko_sound = new Sound();
_local1._ko_sound.attachSound("knockout");
}
function init() {
var _local1 = this;
_local1._lokiClip = _local1._tl.loki_mc;
_local1._heroClip = _local1._tl.hero_mc;
var clip = _local1._tl;
Key.addListener(_local1._heroClip);
_local1._lokiKnockedOut = false;
_local1._heroKnockedOut = false;
_local1._okForHeroPunch = true;
_local1._okHeroMove = true;
_local1._tl.statbar_mc.heroPoints_txt.text = _local1._heroPoints;
_local1._tl.statbar_mc.lokiPoints_txt.text = _local1._lokiPoints;
_local1._roundTime = 60;
_local1._tl.statbar_mc.roundNum_txt.text = _local1._roundNumber;
_local1._tl.statbar_mc.timer_txt.text = _local1._roundTime;
_local1.startLoki();
_local1.startHero();
_local1._bell_sound.start(0, 1);
_global.intervals.timerInt = setInterval(_local1, "roundtimer", 1000);
}
function roundTimer() {
var _local1 = this;
_local1._roundTime--;
_local1._tl.statbar_mc.timer_txt.text = _local1._roundTime;
if (_local1._roundTime == 0) {
_local1.endRound();
_local1.clearTimer();
_local1.stopLokiTween();
}
}
function clearTimer() {
clearInterval(_global.intervals.timerInt);
delete _global.intervals.timerInt;
}
function startLoki() {
var _local1 = this;
_local1._lokiClip.gotoAndStop("GUARD UP");
_local1._lokiWillBlock = null;
if ((_local1._lokiKnockedOut != true) && (_local1._heroKnockedOut != true)) {
trace("starting loki");
_local1.moveCharacter();
_global.intervals.lokiPunchInt = setInterval(_local1, "lokiThrowPunch", random(500) + 500);
}
}
function resetLoki() {
var _local1 = this;
_local1.stopLokiTween();
if (_local1._heroKnockedOut) {
_local1._lokiClip.gotoAndStop("GUARD UP");
} else {
_local1._lokiClip._x = random(600);
if (_local1._lokiKnockedOut != true) {
_local1.startLoki();
}
}
}
function startHero() {
var _local1 = this;
var bg = _local1;
_local1._heroClip.gotoAndStop("GUARD UP");
_local1._heroBlocking = false;
if (_local1._lokiKnockedOut != true) {
_local1._heroClip.onEnterFrame = function () {
bg.moveHero(this);
};
_local1._heroClip.onKeyDown = function () {
bg.onKeyPressDown();
};
_local1._heroClip.onKeyUp = function () {
bg.onKeyPressUp();
};
}
}
function resetHero() {
var _local1 = this;
if (_local1._lokiKnockedOut) {
_local1._heroClip.gotoAndStop("GUARD UP");
} else {
_local1.startHero();
}
_local1._heroBlocking = false;
}
function moveCharacter() {
var bg = this;
var newX = random(500);
var _local1 = 1;
var propbegin = _lokiClip._x;
var _local2 = newX;
var _local3 = com.robertpenner.easing.Back.easeOut;
_global.lokiTween = new mx.transitions.Tween(_lokiClip, "_x", _local3, propbegin, _local2, _local1, true);
_global.lokiTween.onMotionFinished = function () {
if (bg._heroKnockedOut != true) {
bg.moveCharacter();
}
};
}
function lokiThrowPunch() {
stopLokiTween();
var _local1 = ["PUNCH LEFT", "PUNCH RIGHT"];
_lokiClip.gotoAndPlay(_local1[random(2)]);
}
function stopLokiTween() {
var _local1 = _global;
_local1.lokiTween.stop();
clearInterval(_local1.intervals.lokiPunchInt);
delete _local1.intervals.lokiPunchInt;
}
function lokiPunchCheck(hand) {
var _local1 = this;
if (hand.hitTest(_local1._heroClip.hitArea_mc) && (_local1._heroBlocking != true)) {
delete _local1._heroClip.onEnterFrame;
_local1._tl.punchSound_mc.gotoAndPlay(2);
_local1._heroClip.gotoAndPlay("HIT");
_local1._heroPower = _local1._heroPower - _local1._lokiPunchPower;
_local1._lokiPoints = _local1._lokiPoints + (_local1._punchPoints * 3);
_local1._tl.statbar_mc.lokiPoints_txt.text = _local1._lokiPoints;
_local1.adjustPowerMeter("hero");
}
}
function moveHero(clip) {
var _local1 = clip;
if (_okHeroMove) {
if (Key.isDown(39)) {
if (_local1._x < 600) {
_local1._x = _local1._x + 10;
}
}
if (Key.isDown(37)) {
if (_local1._x > 0) {
_local1._x = _local1._x - 10;
}
}
}
}
function heroPunchCheck(hand) {
var _local1 = this;
_local1._okForHeroPunch = false;
if (hand.hitTest(_local1._lokiClip.hitArea_mc) && (_local1._lokiWillBlock != true)) {
_local1.stopLokiTween();
if (hand._name == "leftHand_mc") {
_local1._lokiClip.gotoAndPlay("HIT LEFT");
} else {
_local1._lokiClip.gotoAndPlay("HIT RIGHT");
}
_local1._lokiPower = _local1._lokiPower - _local1._heroPunchPower;
_local1._tl.punchSound_mc.gotoAndPlay(2);
_local1._heroPoints = _local1._heroPoints + _local1._punchPoints;
_local1._tl.statbar_mc.heroPoints_txt.text = _local1._heroPoints;
_local1.adjustPowerMeter("loki");
}
}
function lokiBlockCheck() {
var _local1 = this;
var _local2 = random(2);
if (_local2 == 0) {
_local1._lokiWillBlock = false;
} else {
_local1._lokiWillBlock = true;
_local1._lokiClip.gotoAndPlay("BLOCK");
_local1.stopLokiTween();
}
}
function onKeyPressDown() {
var _local1 = this;
if (Key.getCode() == 90) {
if (_local1._okForHeroPunch && (_local1._heroKnockedOut != true)) {
_local1.lokiBlockCheck();
_local1._heroClip.gotoAndPlay("PUNCH LEFT");
_local1._okHeroMove = false;
}
}
if ((Key.getCode() == 67) && (_local1._heroKnockedOut != true)) {
if (_local1._okForHeroPunch) {
_local1.lokiBlockCheck();
_local1._heroClip.gotoAndPlay("PUNCH RIGHT");
_local1._okHeroMove = false;
}
}
if ((Key.getCode() == 32) && (_local1._heroKnockedOut != true)) {
if (_local1._okForHeroPunch) {
_local1._heroClip.gotoAndStop("BLOCK");
_local1._okHeroMove = false;
_local1._heroBlocking = true;
}
}
}
function onKeyPressUp() {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1._heroKnockedOut != true)) {
_local1._okHeroMove = true;
_local1._okForHeroPunch = true;
_local1.startHero();
}
if ((Key.getCode() == 90) || (Key.getCode() == 67)) {
if (_local1._heroKnockedOut != true) {
if (_local1._lokiKnockedOut != true) {
_local1._okForHeroPunch = true;
_local1._okHeroMove = true;
}
_local1.startHero();
}
}
}
function adjustPowerMeter(char) {
var _local1 = this;
var _local2 = char;
var _local3 = _local1;
if (_local2 == "loki") {
var meter = _local1._tl.statbar_mc.lokiMeter_mc;
var power = _local1._lokiPower;
} else {
var meter = _local1._tl.statbar_mc.heroMeter_mc;
var power = _local1._heroPower;
trace("hero power = " + power);
}
if (power <= 0) {
_local1.knockOutChar(_local2);
if (_local2 == "loki") {
_local3._lokiKnockedOut = true;
} else {
_local3._heroKnockedOut = true;
}
}
meter.onEnterFrame = function () {
var _local1 = this;
_local1.bar_mc._xscale = _local1.bar_mc._xscale + ((power - _local1.bar_mc._xscale) * 0.2);
if (Math.abs(power - _local1.bar_mc._xscale) < 1) {
if (power <= 0) {
_local1.bar_mc._xscale = 0;
}
delete _local1.onEnterFrame;
}
};
}
function knockOutChar(char) {
var _local1 = this;
_local1._ko_sound.start(0, 1);
trace("knocked out : " + char);
if (char == "loki") {
var _local2 = _local1._lokiClip;
_local1._heroPoints = _local1._heroPoints + 100;
_local1._tl.statbar_mc.heroPoints_txt.text = _local1._heroPoints;
} else {
var _local2 = _local1._heroClip;
_local1._lokiPoints = _local1._lokiPoints + 100;
_local1._tl.statbar_mc.lokiPoints_txt.text = _local1._lokiPoints;
}
_local1.stopLokiTween();
delete _local1._heroClip.onEnterFrame;
_local1._okForHeroPunch = false;
_local2.gotoAndPlay("KNOCK OUT");
}
function initFromKnockOut() {
var _local1 = this;
_local1._heroPower = 100;
_local1._lokiPower = 100;
_local1._lokiClip._x = random(600);
_local1._heroClip._x = random(600);
_local1._tl.statbar_mc.heroMeter_mc.bar_mc._xscale = 100;
_local1._tl.statbar_mc.lokiMeter_mc.bar_mc._xscale = 100;
}
function playAgain() {
var _local1 = this;
_local1.initFromKnockOut();
_local1._roundNumber = 1;
_local1._lokiPoints = 0;
_local1._heroPoints = 0;
_local1._tl.gotoAndPlay("ready");
}
function showPlayAgainButton() {
var bg = this;
var _local1 = _tl.attachMovie("playAgainHolder", "play_mc", 159999);
_local1._x = 240;
_local1._y = 200;
}
function nextRound() {
var _local1 = this;
_local1.initFromKnockOut();
_local1._roundNumber++;
_local1._tl.gotoAndPlay("ready");
}
function showNextRoundButton() {
var bg = this;
var _local1 = _tl.attachMovie("nextRoundHolder", "next_mc", 159999);
_local1._x = 240;
_local1._y = 200;
}
function endRound() {
var _local1 = this;
_local1.stopLokiTween();
_local1.clearTimer();
if (_local1._roundNumber == _local1._totalRounds) {
_local1.endGame();
} else {
_local1.showNextRoundButton();
}
}
function endGame() {
var _local1 = this;
if (_local1._lokiPoints > _local1._heroPoints) {
_local1._tl.gotoAndStop("end");
} else {
_local1._tl.gotoAndStop("win");
}
}
function sendToFriend() {
_tl.gotoAndStop("sendToFriend");
}
function filterData(words) {
trace("filtering words...");
var _local2 = new Array("ass", "asshol", "asshole", "asswipe", "biatch", "bich", "bitch", "bizzatch", "boob", "boobies", "boobes", "boobs", "bub", "bube", "bubes", "bubbies", "bubies", "bunghole", "butfuc", "butfuck", "butfucker", "butfuk", "butfuker", "butfuq", "butfuqer", "butt", "buttfuc", "buttfuck", "buttfucker", "buttfuk", "buttfuker", "buttfuq", "buttfuqer", "camel jockey", "chink", "chinc", "chinq", "clit", "coc", "cock", "cocksucker", "cocsucker", "cocsuker", "cocsukker", "cok", "coksucker", "coksuker", "coksukker", "coon", "coq", "coqsucker", "coqsuker", "coqsukker", "crap", "cum", "cumm", "cunt", "dago", "darkie", "dick", "dik", "diq", "dyke", "f u c", "f u c k ", "f u k", "f u q", "fag", "faggot", "krap", "fuck", "fucked", "fucking", "fuct", "fudgepacker", "fudgepackr", "fugepacker", "fugepackr", "fuk", "fuq", "jungle bunny", "K K K ", "K\\ K\\ K\\ ", "K\\K\\K\\", "KKK", "Kkk", "klit", "koc", "kocsucker", "kocsuker", "kocsukker", "kok", "koksucker", "koksuker", "koksukker", "koq", "koqsucker", "koqsuker", "koqsukker", "Ku Klux Klan", "kum", "kumm", "kunt", "kyke", "motherfucker", "mothrfuckr", "muthafucka", "mutherfucker", "mutherfuckr", "muthrfuckr", "niger", "nigga", "niggaz", "nigger", "penis", "prostitute", "pussy", "pusy", "rump roaster", "sand nigger", "shit", "shite", "shittie", "shitty", "slanteye", "slant eye", "slut", "son of a bitch", "spic", "tit", "tits", "vagina", "wetback", "whore", "delete", "javascript", "href", "a s s", "arse", "basterd", "bloodsak", "bullshit", "bunghole", "carpet muncher", "cunts", "dipshit", "fuckin", "faget", "fucked", "fucker", "fuckers", "fuckyou", "gash", "hair pie", "mo fo", "mofo", "muff diver", "pissed", "poontang", "prick", "pussie", "pusy", "sheisen", "shit", "shitting", "snatch", "son of a bitch", "son of a biatch", "spooge", "spooze", "suck", "sux", "twat", "u suck", "you suck", "arse", "azz", "beotch", "bytch", "biaotch", "beyotch", "be-yotch", "dildo", "feck", "fecking", "ho hoe", "shitstick", "shyt", "skank", "skanky", "skanc", "tatas", "turd", "terd");
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
if (words.indexOf(_local2[_local1], 0) != -1) {
return(true);
}
_local1++;
}
return(undefined);
}
function validateData(clip) {
var _local1 = clip;
trace("validating data...");
var yourName = _local1.yourName_txt.text;
var _local2 = _local1.yourEmail_txt.text;
var friendsName = _local1.friendsName_txt.text;
var _local3 = _local1.friendsEmail_txt.text;
var message = _local1.message_txt.text;
if (yourName == "") {
_local1.error_txt.text = "Please enter your name";
return(false);
}
if (filterData(yourName)) {
_local1.error_txt.text = "That text not allowed";
return(false);
}
if (((_local2 == "") || (_local2.indexOf("@", 0) == -1)) || (_local2.indexOf(".", _local2.indexOf("@")) == -1)) {
_local1.error_txt.text = "Please enter your valid email.";
return(false);
}
if (filterData(_local2)) {
_local1.error_txt.text = "That text not allowed";
return(false);
}
if (friendsName == "") {
_local1.error_txt.text = "Please enter your friends name";
return(false);
}
if (filterData(friendsName)) {
_local1.error_txt.text = "That text not allowed";
return(false);
}
if (((_local3 == "") || (_local3.indexOf("@", 0) == -1)) || (_local3.indexOf(".", _local3.indexOf("@")) == -1)) {
_local1.error_txt.text = "Please enter a valid email address for your friend.";
return(false);
}
if (filterData(_local3)) {
_local1.error_txt.text = "That text not allowed";
return(false);
}
if (message == "") {
_local1.error_txt.text = "Please enter a message";
return(false);
}
if (filterData(message)) {
_local1.error_txt.text = "That text not allowed";
return(false);
}
return(true);
}
function submitSendToFriend(clip) {
var _local1 = this;
var _local2 = clip;
trace("send to friend called");
var bg = _local1;
if (_local1.validateData(_local2)) {
_local1.stfData_lv = new LoadVars();
_local1.stfData_lv.onLoad = function () {
var _local1 = this;
if (_local1.result == "ok") {
bg._tl.gotoAndStop("sendMailSuccess");
trace(_local1);
} else {
trace("error");
trace(_local1);
}
};
_local1.stfData_lv.fromName = _local2.yourName_txt.text;
_local1.stfData_lv.fromEmail = _local2.yourEmailtxt.text;
_local1.stfData_lv.toName = _local2.friendsName_txt.text;
_local1.stfData_lv.toEmail = _local2.friendsEmail_txt.text;
_local1.stfData_lv.message = _local2.message_txt.text;
for (var _local3 in _local1.stfData_lv) {
trace((_local3 + " = ") + _local1.stfData_lv[_local3]);
}
trace("sending data");
_local1.stfData_lv.sendAndLoad("http://www.sonofmask.com/send_to_friend.php", _local1.stfData_lv, "POST");
}
}
var _lokiPower = 100;
var _heroPower = 100;
var _lokiPunchPower = 15;
var _heroPunchPower = 3;
var _roundNumber = 1;
var _totalRounds = 1;
var _punchPoints = 10;
var _knockoutPoints = 100;
var _lokiPoints = 0;
var _heroPoints = 0;
}
Symbol 135 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
var _local1 = s;
var _local2 = t;
if (_local1 == undefined) {
_local1 = 1.70158;
}
_local2 = _local2 / d;
return((((c * _local2) * _local2) * (((_local1 + 1) * _local2) - _local1)) + b);
}
static function easeOut(t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local2 = _local2 * 1.525;
return(((c / 2) * ((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2))) + b);
}
_local1 = _local1 - 2;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 2)) + b);
}
}
Symbol 136 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local2 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local2);
var _local1 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local1.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
}
Symbol 137 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
var _local1 = o;
if (_local1.broadcastMessage != undefined) {
delete _local1.broadcastMessage;
}
_local1.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
_local1.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
_local1._listeners = new Array();
}
}
function addListener(o) {
var _local1 = this;
_local1.removeListener(o);
if (_local1.broadcastMessage == undefined) {
_local1.broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_local1._listeners.push(o));
}
function removeListener(o) {
var _local3 = this;
var _local1 = _local3._listeners;
var _local2 = _local1.length;
while (_local2--) {
if (_local1[_local2] == o) {
_local1.splice(_local2, 1);
if (!_local1.length) {
_local3.broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local3 = String(arguments.shift());
var _local2 = _listeners.concat();
var l = _local2.length;
var _local1 = 0;
while (_local1 < l) {
_local2[_local1][_local3].apply(_local2[_local1], arguments);
_local1++;
}
}
}
Symbol 138 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var _time, _duration, _fps, change, begin;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
var _local1 = this;
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
} else {
_local1.obj = obj;
_local1.prop = prop;
_local1.begin = begin;
_local1.__set__position(begin);
_local1.__set__duration(duration);
_local1.useSeconds = useSeconds;
if (func) {
_local1.func = func;
}
_local1.__set__finish(finish);
_local1._listeners = [];
_local1.addListener(_local1);
_local1.start();
}
}
function set time(t) {
var _local1 = this;
var _local2 = t;
_local1.prevTime = _local1._time;
if (_local2 > _local1.__get__duration()) {
if (_local1.looping) {
_local1.rewind(_local2 - _local1._duration);
_local1.update();
_local1.broadcastMessage("onMotionLooped", _local1);
} else {
if (_local1.useSeconds) {
_local1._time = _local1._duration;
_local1.update();
}
_local1.stop();
_local1.broadcastMessage("onMotionFinished", _local1);
}
} else if (_local2 < 0) {
_local1.rewind();
_local1.update();
} else {
_local1._time = _local2;
_local1.update();
}
//return(_local1.__get__time());
}
function get time() {
return(_time);
}
function set duration(d) {
var _local1 = d;
_duration = (((_local1 == null) || (_local1 <= 0)) ? (_global.Infinity) : (_local1));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local1 = this;
var _local2 = _local1.isPlaying;
_local1.stopEnterFrame();
_local1._fps = fps;
if (_local2) {
_local1.startEnterFrame();
}
//return(_local1.__get__FPS());
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
var _local1 = this;
_local1.prevPos = _local1._pos;
_local1.obj[_local1.prop] = (_local1._pos = p);
_local1.broadcastMessage("onMotionChanged", _local1, _local1._pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
var _local1 = this;
var _local2 = t;
if (_local2 == undefined) {
_local2 = _local1._time;
}
return(_local1.func(_local2, _local1.begin, _local1.change, _local1._duration));
}
function set finish(f) {
var _local1 = this;
_local1.change = f - _local1.begin;
//return(_local1.__get__finish());
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
var _local1 = this;
_local1.begin = _local1.position;
_local1.__set__finish(finish);
if (duration != undefined) {
_local1.__set__duration(duration);
}
_local1.start();
}
function yoyo() {
var _local1 = this;
_local1.continueTo(_local1.begin, _local1.__get__time());
}
function startEnterFrame() {
var _local1 = this;
if (_local1._fps == undefined) {
_global.MovieClip.addListener(_local1);
} else {
_local1._intervalID = setInterval(_local1, "onEnterFrame", 1000 / _local1._fps);
}
_local1.isPlaying = true;
}
function stopEnterFrame() {
var _local1 = this;
if (_local1._fps == undefined) {
_global.MovieClip.removeListener(_local1);
} else {
clearInterval(_local1._intervalID);
}
_local1.isPlaying = false;
}
function start() {
var _local1 = this;
_local1.rewind();
_local1.startEnterFrame();
_local1.broadcastMessage("onMotionStarted", _local1);
}
function stop() {
var _local1 = this;
_local1.stopEnterFrame();
_local1.broadcastMessage("onMotionStopped", _local1);
}
function resume() {
var _local1 = this;
_local1.fixTime();
_local1.startEnterFrame();
_local1.broadcastMessage("onMotionResumed", _local1);
}
function rewind(t) {
var _local1 = this;
_local1._time = ((t == undefined) ? 0 : (t));
_local1.fixTime();
_local1.update();
}
function fforward() {
var _local1 = this;
_local1.__set__time(_local1._duration);
_local1.fixTime();
}
function nextFrame() {
var _local1 = this;
if (_local1.useSeconds) {
_local1.__set__time((getTimer() - _local1._startTime) / 1000);
} else {
_local1.__set__time(_local1._time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
var _local1 = this;
if (!_local1.useSeconds) {
_local1.__set__time(_local1._time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
var _local1 = this;
if (_local1.useSeconds) {
_local1._startTime = getTimer() - (_local1._time * 1000);
}
}
function update() {
var _local1 = this;
_local1.__set__position(_local1.getPosition(_local1._time));
}
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 64 MovieClip Frame 15
_global.heavenspot.boxingGame.lokiPunchCheck(this.lokiArmLeft_mc);
Symbol 64 MovieClip Frame 20
_global.heavenspot.boxingGame.startLoki();
Symbol 64 MovieClip Frame 30
_global.heavenspot.boxingGame.lokiPunchCheck(this.lokiArmRight_mc);
Symbol 64 MovieClip Frame 35
_global.heavenspot.boxingGame.startLoki();
Symbol 64 MovieClip Frame 50
_global.heavenspot.boxingGame.startLoki();
Symbol 64 MovieClip Frame 65
_global.heavenspot.boxingGame.resetLoki();
Symbol 64 MovieClip Frame 80
_global.heavenspot.boxingGame.resetLoki();
Symbol 64 MovieClip Frame 139
stop();
_global.heavenspot.boxingGame.endRound();
Symbol 77 MovieClip Frame 15
_global.heavenspot.boxingGame.heroPunchCheck(this.leftHand_mc);
Symbol 77 MovieClip Frame 20
_global.heavenspot.boxingGame.resetHero();
Symbol 77 MovieClip Frame 30
_global.heavenspot.boxingGame.heroPunchCheck(this.rightHand_mc);
Symbol 77 MovieClip Frame 35
_global.heavenspot.boxingGame.resetHero();
Symbol 77 MovieClip Frame 101
_global.heavenspot.boxingGame._okForHeroPunch = false;
Symbol 77 MovieClip Frame 106
_global.heavenspot.boxingGame.resetHero();
Symbol 77 MovieClip Frame 145
stop();
_global.heavenspot.boxingGame.endRound();
Symbol 97 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
this.sendToFriend_mc.onPress = function () {
_global.heavenspot.boxingGame.sendToFriend();
this._parent.removeMovieClip();
};
Symbol 115 MovieClip Frame 1
this.score_txt.text = _global.heavenspot.boxingGame._heroPoints;
this.submit_btn.onPress = function () {
_global.heavenspot.boxingGame.submitHighScore(this._parent.name_txt.text);
};
Symbol 123 MovieClip Frame 1
stop();
this.sendToFriend_mc.onPress = function () {
_global.heavenspot.boxingGame.sendToFriend();
this._parent.removeMovieClip();
};
Symbol 131 MovieClip Frame 1
this.submit_mc.onPress = function () {
_global.heavenspot.boxingGame.submitSendToFriend(this._parent);
};
this.message_txt.onSetFocus = (this.yourName_txt.onSetFocus = (this.yourEmail_txt.onSetFocus = (this.friendsName_txt.onSetFocus = (this.friendsEmail_txt.onSetFocus = function () {
this._parent.error_txt.text = "";
}))));
this.yourName_txt.restrict = (this.friendsName_txt.restrict = "a-zA-Z,\\.");
this.yourEmail_txt.restrict = (this.friendsEmail_txt.restrict = "a-zA-Z0-9\\-.@_");