Frame 1
function NegGameover() {
l_oGameHandler.gameOver(_root.iScore, 425, 300);
}
function reset() {
trace("reset");
_root.afzwartbeeld.removeMovieClip();
dood1.gotoAndStop(1);
dood2.gotoAndStop(1);
dood3.gotoAndStop(1);
Speed = 10;
iScore = 0;
af = 0;
attachMovie("kart", "kart", _root.getNextHighestDepth());
kart._xscale = 120;
kart._yscale = 120;
kart._x = 200;
kart._y = 243;
code.ObjectTel = 100;
code.VerschijnTel = 1;
code.Niveau = 8;
code.Verschijn = random(Niveau) + 5;
}
var l_oGameHandler = (new com.neverendinggames.GameHandler(this, sNegPath, iGame));
reset();
stop();
Instance of Symbol 54 MovieClip "schaduw" in Frame 1
onClipEvent (enterFrame) {
_x = _root.kart._x;
_y = _root.kart._y;
_xscale = _root.kart._xscale;
_yscale = _root.kart._yscale;
}
Instance of Symbol 4 MovieClip "code" in Frame 1
onClipEvent (enterFrame) {
if (_root.af < 3) {
VerschijnTel = VerschijnTel + 1;
if (VerschijnTel > Verschijn) {
naam = "object" + (random(3) + 1);
_root.attachMovie(naam, naam + ObjectTel, _root.getNextHighestDepth());
_root[naam + ObjectTel]._x = 210;
_root[naam + ObjectTel]._y = 70;
_root[naam + ObjectTel]._xscale = 5;
_root[naam + ObjectTel]._yscale = 5;
GaFrame = random(5) + 1;
_root[naam + ObjectTel].gotoAndStop(GaFrame);
ObjectTel = ObjectTel + 1;
VerschijnTel = 0;
Verschijn = random(Niveau) + 5;
}
}
}
Instance of Symbol 64 MovieClip "dood1" in Frame 1
onClipEvent (enterFrame) {
if (_root.af == 1) {
gotoAndStop (2);
}
}
Instance of Symbol 64 MovieClip "dood2" in Frame 1
onClipEvent (enterFrame) {
if (_root.af == 2) {
gotoAndStop (2);
}
}
Instance of Symbol 64 MovieClip "dood3" in Frame 1
onClipEvent (enterFrame) {
if (_root.af == 3) {
gotoAndStop (2);
}
}
Symbol 12 MovieClip [object3] Frame 1
stop();
Instance of Symbol 3 MovieClip in Symbol 12 MovieClip [object3] Frame 1
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.kart._visible = false;
_root.attachMovie("kartval", "kartval", _root.getNextHighestDepth());
_root.kartval._x = _root.kart._x;
_root.kartval._y = _root.kart._y;
_root.AfStop = true;
_parent.removeMovieClip();
}
}
Instance of Symbol 4 MovieClip in Symbol 12 MovieClip [object3] Frame 1
onClipEvent (load) {
speed = 4;
}
onClipEvent (enterFrame) {
if (_parent._y > 325) {
_parent.removeMovieClip();
} else {
if (_root.af == 3) {
_parent.removeMovieClip();
}
if (_root.AfStop == true) {
_parent.removeMovieClip();
}
speed = speed + 1;
_parent._y = _parent._y + speed;
if (_parent._xscale < 150) {
_parent._xscale = _parent._xscale + 8;
_parent._yscale = _parent._yscale + 8;
}
}
}
Instance of Symbol 3 MovieClip in Symbol 12 MovieClip [object3] Frame 3
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.iScore = _root.iScore + 10;
_parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 12 MovieClip [object3] Frame 4
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.iScore = _root.iScore + 30;
_parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 12 MovieClip [object3] Frame 5
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.kart._visible = false;
_root.attachMovie("kartval", "kartval", _root.getNextHighestDepth());
_root.kartval._x = _root.kart._x;
_root.kartval._y = _root.kart._y;
_root.AfStop = true;
_parent.removeMovieClip();
}
}
Symbol 13 MovieClip [object2] Frame 1
stop();
Instance of Symbol 3 MovieClip in Symbol 13 MovieClip [object2] Frame 1
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.kart._visible = false;
_root.attachMovie("kartval", "kartval", _root.getNextHighestDepth());
_root.kartval._x = _root.kart._x;
_root.kartval._y = _root.kart._y;
_root.AfStop = true;
_parent.removeMovieClip();
}
}
Instance of Symbol 4 MovieClip in Symbol 13 MovieClip [object2] Frame 1
onClipEvent (load) {
speed = 4;
speedX = 1;
}
onClipEvent (enterFrame) {
if (_parent._x > 410) {
_parent.removeMovieClip();
} else {
if (_root.af == 3) {
_parent.removeMovieClip();
}
if (_root.AfStop == true) {
_parent.removeMovieClip();
}
speed = speed + 1;
speedX = speedX + 1;
_parent._y = _parent._y + speed;
_parent._x = _parent._x + speedX;
if (_parent._xscale < 150) {
_parent._xscale = _parent._xscale + 8;
_parent._yscale = _parent._yscale + 8;
}
}
}
Instance of Symbol 3 MovieClip in Symbol 13 MovieClip [object2] Frame 3
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.iScore = _root.iScore + 10;
_parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 13 MovieClip [object2] Frame 4
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.iScore = _root.iScore + 30;
_parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 13 MovieClip [object2] Frame 5
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.kart._visible = false;
_root.attachMovie("kartval", "kartval", _root.getNextHighestDepth());
_root.kartval._x = _root.kart._x;
_root.kartval._y = _root.kart._y;
_root.AfStop = true;
_parent.removeMovieClip();
}
}
Symbol 14 MovieClip [object1] Frame 1
stop();
Instance of Symbol 3 MovieClip in Symbol 14 MovieClip [object1] Frame 1
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.kart._visible = false;
_root.attachMovie("kartval", "kartval", _root.getNextHighestDepth());
_root.kartval._x = _root.kart._x;
_root.kartval._y = _root.kart._y;
_root.AfStop = true;
_parent.removeMovieClip();
}
}
Instance of Symbol 4 MovieClip in Symbol 14 MovieClip [object1] Frame 1
onClipEvent (load) {
speed = 4;
speedX = 1;
}
onClipEvent (enterFrame) {
if (_parent._x < 0) {
_parent.removeMovieClip();
} else {
if (_root.af == 3) {
_parent.removeMovieClip();
}
if (_root.AfStop == true) {
_parent.removeMovieClip();
}
speed = speed + 1;
speedX = speedX + 1;
_parent._y = _parent._y + speed;
_parent._x = _parent._x - speedX;
if (_parent._xscale < 150) {
_parent._xscale = _parent._xscale + 8;
_parent._yscale = _parent._yscale + 8;
}
}
}
Instance of Symbol 3 MovieClip in Symbol 14 MovieClip [object1] Frame 2
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.kart._visible = false;
_root.attachMovie("kartval", "kartval", _root.getNextHighestDepth());
_root.kartval._x = _root.kart._x;
_root.kartval._y = _root.kart._y;
_root.AfStop = true;
_parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 14 MovieClip [object1] Frame 3
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.iScore = _root.iScore + 10;
_parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 14 MovieClip [object1] Frame 4
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.iScore = _root.iScore + 30;
_parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 14 MovieClip [object1] Frame 5
onClipEvent (enterFrame) {
if (_root.kart.hitTest(this)) {
_root.kart._visible = false;
_root.attachMovie("kartval", "kartval", _root.getNextHighestDepth());
_root.kartval._x = _root.kart._x;
_root.kartval._y = _root.kart._y;
_root.AfStop = true;
_parent.removeMovieClip();
}
}
Instance of Symbol 4 MovieClip in Symbol 29 MovieClip [kart] Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.af == 3) {
_parent.removeMovieClip();
}
if (Key.isDown(37)) {
if (_parent._x > 60) {
_parent._rotation = -10;
_parent._x = _parent._x - 22;
}
} else if (Key.isDown(39)) {
if (_parent._x < 370) {
_parent._rotation = 10;
_parent._x = _parent._x + 22;
}
} else if (Key.isDown(40)) {
if (_parent._xscale < 120) {
_parent._xscale = _parent._xscale + 4;
_parent._yscale = _parent._yscale + 4;
_parent._y = _parent._y + 8;
}
} else if (Key.isDown(38)) {
if (_parent._xscale > 100) {
_parent._xscale = _parent._xscale - 2;
_parent._yscale = _parent._yscale - 2;
_parent._y = _parent._y - 4;
}
} else {
_parent._rotation = 0;
}
}
Symbol 35 MovieClip [afzwart] Frame 1
_root.kart.removeMovieClip();
this._x = 212;
this._y = 168;
this._xscale = 105;
this._yscale = 101;
Symbol 35 MovieClip [afzwart] Frame 20
_root.NegGameover();
stop();
Symbol 43 MovieClip [kartval] Frame 1
_root.schaduw._visible = false;
Symbol 43 MovieClip [kartval] Frame 9
stop();
_root.kart._visible = true;
_root.schaduw._visible = true;
_root.AfStop = false;
_root.af = _root.af + 1;
if (_root.af == 3) {
_root.schaduw._visible = false;
_root.attachMovie("afzwart", "afzwartbeeld", _root.getNextHighestDepth());
trace("_root.getNextHighestDepth: " + _root.getNextHighestDepth());
}
_root.kartval.removeMovieClip();
Symbol 64 MovieClip Frame 1
stop();
Symbol 67 MovieClip [__Packages.com.neverendinggames.QueueLoaderManager] Frame 0
class com.neverendinggames.QueueLoaderManager extends MovieClipLoader
{
static var m_oInstance;
var m_oReference, m_sReference, addListener, loadClip, m_txtLoadText, m_mcProgressBar;
function QueueLoaderManager () {
super();
}
static function getInstance() {
if (m_oInstance == undefined) {
m_oInstance = new com.neverendinggames.QueueLoaderManager();
}
return(m_oInstance);
}
function addLoadQueue(p_sTarget, p_sUrl, p_sMessage) {
var _local2 = new Array();
_local2.target = p_sTarget;
_local2.url = p_sUrl;
_local2.message = p_sMessage;
m_aQueue.push(_local2);
}
function loadQueue(p_oReference, p_sReference) {
m_oReference = p_oReference;
m_sReference = p_sReference;
addListener(this);
loadClip(m_aQueue[m_iCounter].url, m_aQueue[m_iCounter].target);
}
function onLoadStart(p_mcTarget) {
m_txtLoadText.text = m_aQueue[m_iCounter].message;
m_mcProgressBar._xscale = 0;
}
function onLoadProgress(p_mcTarget, p_iBytesLoaded, p_iBytesTotal) {
var _local2 = (p_iBytesLoaded / p_iBytesTotal) * 100;
m_mcProgressBar._xscale = _local2;
}
function onLoadInit(p_mcTarget) {
if ((m_iCounter + 1) < m_aQueue.length) {
m_iCounter++;
loadClip(m_aQueue[m_iCounter].url, m_aQueue[m_iCounter].target);
} else {
m_oReference[m_sReference]();
}
}
var m_aQueue = new Array();
var m_iCounter = 0;
}
Symbol 68 MovieClip [__Packages.com.neverendinggames.GameHandler] Frame 0
class com.neverendinggames.GameHandler
{
var m_mcRoot, m_sPath, m_iGame, m_iScore, m_iWidth, m_iHeight, m_mcHighscoreHandler, m_oHighscoreHandler;
function GameHandler (p_mcRoot, p_sPath, p_iGame) {
m_mcRoot = p_mcRoot;
m_sPath = p_sPath;
m_iGame = p_iGame;
if ((p_sPath == undefined) || (p_sPath == "")) {
m_sPath = "http://localhost/NEG_orders/69_NEGportfolio/website/";
}
if ((p_iGame == undefined) || (p_iGame == "")) {
m_iGame = 12;
}
}
function gameOver(p_iScore, p_iWidth, p_iHeight) {
m_iScore = p_iScore;
m_iWidth = p_iWidth;
m_iHeight = p_iHeight;
m_mcHighscoreHandler = m_mcRoot.createEmptyMovieClip("mcHighscoreHandler", m_mcRoot.getNextHighestDepth());
var _local2 = new com.neverendinggames.QueueLoaderManager();
_local2.addLoadQueue(m_mcHighscoreHandler, (((((m_sPath + "games/HighscoreHandler.swf?l_iScore=") + m_iScore) + "&l_sPath=") + m_sPath) + "&l_iGame=") + m_iGame);
_local2.loadQueue(this, "highscoreHandlerLoaded");
}
function highscoreHandlerLoaded() {
m_mcHighscoreHandler._width = m_iWidth;
m_mcHighscoreHandler._height = m_iHeight;
m_oHighscoreHandler = new com.neverendinggames.HighscoreHandler();
m_oHighscoreHandler.checkTop10(this, "top10Checked", m_sPath, m_iGame, m_iScore);
}
function top10Checked(p_bTop10) {
if (p_bTop10.toString() == "true") {
m_mcHighscoreHandler.mcMenu.gotoAndStop("voegtoe");
} else {
m_mcHighscoreHandler.mcMenu.gotoAndStop("helaas");
}
}
}
Symbol 69 MovieClip [__Packages.com.neverendinggames.HighscoreHandler] Frame 0
class com.neverendinggames.HighscoreHandler extends XML
{
function HighscoreHandler () {
super();
}
function addScore(p_fHandler, p_sPath, p_iGameId, p_sName, p_iScore) {
trace("addScore");
var l_fHandler = p_fHandler;
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
trace("loaded: " + this.error);
l_fHandler(this.error);
};
var _local2 = new LoadVars();
_local2.gameid = p_iGameId;
_local2.name = p_sName;
_local2.score = p_iScore;
var _local4 = new Date();
_local2.hash = com.fear.util.StringUtil.md5((_local4.getFullYear() + p_sName) + p_iScore);
_local2.sendAndLoad(p_sPath + "inc_scripts/addHighscore.php", _local3, "POST");
}
function checkTop10(p_oReference, p_sReference, p_sPath, p_iGameId, p_iScore) {
var l_oReference = p_oReference;
var l_sReference = p_sReference;
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
l_oReference[l_sReference](this.top10);
};
var _local2 = new LoadVars();
_local2.gameid = p_iGameId;
_local2.score = p_iScore;
_local2.sendAndLoad(p_sPath + "inc_scripts/checkTop10.php", _local3, "POST");
}
}
Symbol 70 MovieClip [__Packages.com.fear.util.StringUtil] Frame 0
class com.fear.util.StringUtil
{
function StringUtil () {
}
static function endswith(inString, sChar) {
var _local1 = inString.lastIndexOf(sChar);
var _local3 = inString.length;
var _local2 = sChar.length;
return((_local3 - _local2) == _local1);
}
static function startswith(inString, sChar) {
return(inString.indexOf(sChar) == 0);
}
static function lstrip(inString) {
var _local1 = 0;
while (inString.charCodeAt(_local1) < 33) {
_local1++;
}
return(inString.substr(_local1));
}
static function rstrip(inString) {
var _local1 = inString.length - 1;
while (inString.charCodeAt(_local1) < 33) {
_local1--;
}
return(inString.substr(0, _local1 + 1));
}
static function strip(inString) {
return(rstrip(lstrip(inString)));
}
static function capitalize(inString) {
var _local1 = 0;
var _local2 = inString.split(" ");
_local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1] = _local2[_local1].substring(0, 1).toUpperCase() + _local2[_local1].substring(1, _local2[_local1].length).toLowerCase();
_local1++;
}
return(_local2.join(" "));
}
static function replace(inStr, oldChar, newChar) {
if ((inStr == undefined) or (inStr == null)) {
return(inStr);
}
return(inStr.split(oldChar).join(newChar));
}
static function md5(str) {
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(safe_add(rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn((b ^ c) ^ d, a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function coreMD5(x) {
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return([_local4, _local3, _local2, _local1]);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 32)) {
_local3 = _local3 + _local4.charAt(((binarray[_local1 >> 5] << (_local1 % 32)) & 63) | ((binarray[_local1 >> 6] >> (32 - (_local1 % 32))) & 63));
_local1 = _local1 + 6;
}
return(_local3);
}
function str2binl(str) {
var _local4 = ((str.length + 8) >> 6) + 1;
var _local2 = new Array(_local4 * 16);
var _local1 = 0;
while (_local1 < (_local4 * 16)) {
_local2[_local1] = 0;
_local1++;
}
_local1 = 0;
while (_local1 < str.length) {
_local2[_local1 >> 2] = _local2[_local1 >> 2] | ((str.charCodeAt(_local1) & 255) << ((_local1 % 4) * 8));
_local1++;
}
_local2[_local1 >> 2] = _local2[_local1 >> 2] | (128 << ((_local1 % 4) * 8));
_local2[(_local4 * 16) - 2] = str.length * 8;
return(_local2);
}
function strw2binl(str) {
var _local4 = ((str.length + 4) >> 5) + 1;
var _local2 = new Array(_local4 * 16);
var _local1 = 0;
while (_local1 < (_local4 * 16)) {
_local2[_local1] = 0;
_local1++;
}
_local1 = 0;
while (_local1 < str.length) {
_local2[_local1 >> 1] = _local2[_local1 >> 1] | (str.charCodeAt(_local1) << ((_local1 % 2) * 16));
_local1++;
}
_local2[_local1 >> 1] = _local2[_local1 >> 1] | (128 << ((_local1 % 2) * 16));
_local2[(_local4 * 16) - 2] = str.length * 16;
return(_local2);
}
function hexMD5(str) {
return(binl2hex(coreMD5(str2binl(str))));
}
function hexMD5w(str) {
return(binl2hex(coreMD5(strw2binl(str))));
}
function b64MD5(str) {
return(binl2b64(coreMD5(str2binl(str))));
}
function b64MD5w(str) {
return(binl2b64(coreMD5(strw2binl(str))));
}
function calcMD5(str) {
return(binl2hex(coreMD5(str2binl(str))));
}
return(calcMD5(str));
}
static function dec2bin(num) {
var _local3 = new Array();
var _local1 = num;
var _local2;
do {
_local2 = _local1 % 2;
_local1 = Math.floor(_local1 / 2);
_local3.push(_local2);
} while (_local1 != 0);
_local3.reverse();
return(_local3.join(""));
}
}