Frame 1
stop();
this.flashBtn._visible = false;
var st = System.capabilities.version;
var ver = st.substring(st.indexOf(" "), st.indexOf(","));
if (ver < 8) {
trace("VER " + ver);
this.flashBtn._visible = true;
preloader.unloadMovie();
gotoAndStop (1);
}
_root.attachMovie("musicClass", "musics", _root.getNextHighestDepth());
_root.attachMovie("soundClass", "sounds", _root.getNextHighestDepth());
_global.musicValue = 60;
_global.effectValue = 40;
_root.musics.setValume(_global.musicValue);
_root.musics.addMusic(["track1"]);
_root.sounds.setValume(_global.effectValue);
_root.musicFlag = true;
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local2 = "";
var _local6 = _local4.lastIndexOf("\\") + 1;
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local3 = _local6;
var _local7 = String(_local4).length;
while (_local3 < String(_local4).length) {
_local2 = _local4.charAt(_local3);
if (_local2 == ".") {
break;
}
_local5 = _local5 + _local2;
_local3++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 2
stop();
if (!mouseListener) {
this.mouseListener = {onMouseDown:function () {
human.fire();
}};
Mouse.addListener(mouseListener);
}
btn1.onPress = function () {
_root.gotoAndPlay(3);
};
btn2.onPress = function () {
getURL ("");
};
btn3.onPress = function () {
getURL ("");
};
Frame 3
_root.musics.playMusic(1);
m._visible = false;
if (this.sm == undefined) {
this.attachMovie("man", "sm", this.getNextHighestDepth());
}
var human = new Human(sm);
human.trans(new Vec(0, 200));
human.draw();
var line = ((-human.pts[0].x) + (Stage.width / 2));
var depth = this.getNextHighestDepth();
this.attachMovie("Field", "field", depth);
var depth = this.getNextHighestDepth();
this.attachMovie("View", "view", depth);
var count = 0;
var level = 1;
var prev_level = 1;
this.onEnterFrame = function () {
this.clear();
human.hitTest(field);
human.hitTest(field2);
human.update();
human.draw();
var _local4 = -(line - (Stage.width / 2));
if ((field._x + field._width) < (_local4 + 600)) {
if (!field2) {
if (count < 11) {
depth = this.getNextHighestDepth();
this.attachMovie("Field" + count, "field" + depth, depth);
} else {
depth = this.getNextHighestDepth();
this.attachMovie("Field" + Math.floor(Math.random() * 11), "field" + depth, depth);
}
count++;
field2 = this["field" + depth];
depth++;
field2._x = field._x + field._width;
}
depth = this.getNextHighestDepth();
view.swapDepths(depth);
}
if (field2) {
if ((field._x + field._width) < (_local4 - 600)) {
field.removeMovieClip();
field = field2;
delete field2;
prev_level++;
}
}
if (prev_level == level) {
if (field2._x < human.pts[0].x) {
level++;
}
}
if (line > ((100 - human.pts[0].x) + (Stage.width / 2))) {
line = (line * 0.8) + (((100 - human.pts[0].x) + (Stage.width / 2)) * 0.2);
}
line = line - (1 - Math.floor(line / 50000));
_root._x = line;
bg._x = -line;
view._x = -line;
view.level = "level " + level;
var _local3 = "" + (-int(line - (Stage.width / 2)));
if (_local3.length == 1) {
_local3 = "0" + _local3;
}
if (_local3.length == 2) {
_local3 = "0" + _local3;
}
view.m = Math.abs(Math.round(Number(line) - 550));
if ((human.pts[0].x < (_local4 - 400)) || (human.pts[0].y > 1000)) {
gotoAndPlay (4);
}
};
stop();
Frame 4
_root.scr = Math.abs(Math.round(Number(line) - 550));
if (_root.scr < 0) {
_root.scr = 0;
}
trace((">>>>>>>>>" + _root.scr) + "<<<<");
field.removeMovieClip();
field0.removeMovieClip();
field1.removeMovieClip();
field2.removeMovieClip();
field3.removeMovieClip();
field4.removeMovieClip();
field5.removeMovieClip();
field6.removeMovieClip();
field7.removeMovieClip();
field8.removeMovieClip();
field9.removeMovieClip();
field10.removeMovieClip();
field11.removeMovieClip();
field12.removeMovieClip();
view.removeMovieClip();
delete human;
delete field;
delete field2;
delete view;
this.sm.removeMovieClip();
var str = ("" + (-int(line - (Stage.width / 2))));
if (str.length == 1) {
str = "0" + str;
}
if (str.length == 2) {
str = "0" + str;
}
_root._x = 0;
trace(_root._x);
delete this.onEnterFrame;
stop();
_root.musics.stopMusic();
Symbol 43 MovieClip Frame 1
stop();
b.onPress = function () {
getURL ("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash?Lang=English&P5_Language=English", "_blank");
gotoAndStop (2);
};
Symbol 43 MovieClip Frame 2
b.onPress = function () {
};
Symbol 58 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 35
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
stop();
step = -10;
this.onEnterFrame = function () {
this._alpha = this._alpha + step;
if (this._alpha <= 0) {
this._parent.loaded();
}
};
}
g0toBtn.onRelease = function () {
};
Symbol 59 MovieClip Frame 36
pr._alpha = 0;
step = 10;
this.onEnterFrame = function () {
pr.gotoAndStop(Math.round((100 * _root.getBytesLoaded()) / _root.getBytesTotal()));
pr._alpha = pr._alpha + step;
if (pr._alpha > 100) {
pr._alpha = 100;
step = 0;
}
if (step < 0) {
this._alpha = this._alpha + step;
}
if (this._alpha <= 0) {
this._parent.loaded();
}
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
step = -10;
}
};
stop();
Symbol 61 MovieClip Frame 1
this._parent.stop();
bg._x = 0;
bg._y = 0;
this._x = 0;
this._y = 0;
bg._width = Stage.width;
bg._height = Stage.height;
bg.swapDepths(10);
intro._xscale = 100;
intro._yscale = 100;
intro.swapDepths(11);
intro._x = Math.round((Stage.width - intro._width) / 2);
intro._y = Math.round((Stage.height - intro._height) / 2);
loaded = function () {
this._parent.gotoAndStop(2);
};
function () {
};
gamezheroMenu = new ContextMenu();
gamezheroMenu.builtInItems.forward_back = false;
gamezheroMenu.builtInItems.loop = false;
gamezheroMenu.builtInItems.play = false;
gamezheroMenu.builtInItems.print = false;
gamezheroMenu.builtInItems.rewind = false;
gamezheroMenu.builtInItems.zoom = false;
gamezheroMenu.builtInItems.save = false;
gamezheroMenu.customItems.push(new ContextMenuItem("More Free Games - gamezhero.com", gotoGamezhero));
_root.menu = gamezheroMenu;
Symbol 73 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 2 MovieClip [soundClass] Frame 1
#initclip 9
Object.registerClass("soundClass", FSound);
#endinitclip
Symbol 3 MovieClip [musicClass] Frame 1
#initclip 7
Object.registerClass("musicClass", FMusic);
#endinitclip
Symbol 35 MovieClip Frame 1
stop();
Symbol 36 MovieClip [View] Frame 1
music.gotoAndStop(((_root.musicFlag == 1) ? 1 : 2));
music.onPress = function () {
_root.musicFlag = !_root.musicFlag;
music.gotoAndStop(((_root.musicFlag == 1) ? 1 : 2));
if (_root.musicFlag) {
_root.musics.setValume(_global.musicValue);
_root.sounds.setValume(_global.effectValue);
} else {
_root.musics.setValume(0);
_root.sounds.setValume(0);
}
};
Symbol 38 MovieClip [Fmd5] Frame 1
#initclip 8
function Fmd5Class() {
this.count0 = 0;
this.count1 = 0;
this.state = new Array(4);
this.buffer = new Array(64);
this.transformBuffer = new Array(16);
this.digestBits = new Array(16);
}
Fmd5Class.prototype = new MovieClip();
Fmd5Class.prototype.rol = function (a, n) {
return((a << n) | (a >>> (32 - n)));
};
Fmd5Class.prototype.FF = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + ((b & c) | ((~b) & d))) + x) + ac, s) + b);
};
Fmd5Class.prototype.GG = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + ((b & d) | (c & (~d)))) + x) + ac, s) + b);
};
Fmd5Class.prototype.HH = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + ((b ^ c) ^ d)) + x) + ac, s) + b);
};
Fmd5Class.prototype.II = function (a, b, c, d, x, s, ac) {
return(this.rol(((a + (c ^ (b | (~d)))) + x) + ac, s) + b);
};
Fmd5Class.prototype.transformMD5 = function (buf, offset) {
var _local6;
var _local5;
var _local4;
var _local3;
var _local2 = this.transformBuffer;
_local6 = this.state[0];
_local5 = this.state[1];
_local4 = this.state[2];
_local3 = this.state[3];
i = 0;
while (i < 16) {
_local2[i] = buf[(i * 4) + offset] & 255;
j = 1;
while (j < 4) {
_local2[i] = _local2[i] | ((buf[((i * 4) + j) + offset] & 255) << (j * 8));
j++;
}
i++;
}
_local6 = this.FF(_local6, _local5, _local4, _local3, _local2[0], 7, 3614090360);
_local3 = this.FF(_local3, _local6, _local5, _local4, _local2[1], 12, 3905402710);
_local4 = this.FF(_local4, _local3, _local6, _local5, _local2[2], 17, 606105819);
_local5 = this.FF(_local5, _local4, _local3, _local6, _local2[3], 22, 3250441966);
_local6 = this.FF(_local6, _local5, _local4, _local3, _local2[4], 7, 4118548399);
_local3 = this.FF(_local3, _local6, _local5, _local4, _local2[5], 12, 1200080426);
_local4 = this.FF(_local4, _local3, _local6, _local5, _local2[6], 17, 2821735955);
_local5 = this.FF(_local5, _local4, _local3, _local6, _local2[7], 22, 4249261313);
_local6 = this.FF(_local6, _local5, _local4, _local3, _local2[8], 7, 1770035416);
_local3 = this.FF(_local3, _local6, _local5, _local4, _local2[9], 12, 2336552879);
_local4 = this.FF(_local4, _local3, _local6, _local5, _local2[10], 17, 4294925233);
_local5 = this.FF(_local5, _local4, _local3, _local6, _local2[11], 22, 2304563134);
_local6 = this.FF(_local6, _local5, _local4, _local3, _local2[12], 7, 1804603682);
_local3 = this.FF(_local3, _local6, _local5, _local4, _local2[13], 12, 4254626195);
_local4 = this.FF(_local4, _local3, _local6, _local5, _local2[14], 17, 2792965006);
_local5 = this.FF(_local5, _local4, _local3, _local6, _local2[15], 22, 1236535329);
_local6 = this.GG(_local6, _local5, _local4, _local3, _local2[1], 5, 4129170786);
_local3 = this.GG(_local3, _local6, _local5, _local4, _local2[6], 9, 3225465664);
_local4 = this.GG(_local4, _local3, _local6, _local5, _local2[11], 14, 643717713);
_local5 = this.GG(_local5, _local4, _local3, _local6, _local2[0], 20, 3921069994);
_local6 = this.GG(_local6, _local5, _local4, _local3, _local2[5], 5, 3593408605);
_local3 = this.GG(_local3, _local6, _local5, _local4, _local2[10], 9, 38016083);
_local4 = this.GG(_local4, _local3, _local6, _local5, _local2[15], 14, 3634488961);
_local5 = this.GG(_local5, _local4, _local3, _local6, _local2[4], 20, 3889429448);
_local6 = this.GG(_local6, _local5, _local4, _local3, _local2[9], 5, 568446438);
_local3 = this.GG(_local3, _local6, _local5, _local4, _local2[14], 9, 3275163606);
_local4 = this.GG(_local4, _local3, _local6, _local5, _local2[3], 14, 4107603335);
_local5 = this.GG(_local5, _local4, _local3, _local6, _local2[8], 20, 1163531501);
_local6 = this.GG(_local6, _local5, _local4, _local3, _local2[13], 5, 2850285829);
_local3 = this.GG(_local3, _local6, _local5, _local4, _local2[2], 9, 4243563512);
_local4 = this.GG(_local4, _local3, _local6, _local5, _local2[7], 14, 1735328473);
_local5 = this.GG(_local5, _local4, _local3, _local6, _local2[12], 20, 2368359562);
_local6 = this.HH(_local6, _local5, _local4, _local3, _local2[5], 4, 4294588738);
_local3 = this.HH(_local3, _local6, _local5, _local4, _local2[8], 11, 2272392833);
_local4 = this.HH(_local4, _local3, _local6, _local5, _local2[11], 16, 1839030562);
_local5 = this.HH(_local5, _local4, _local3, _local6, _local2[14], 23, 4259657740);
_local6 = this.HH(_local6, _local5, _local4, _local3, _local2[1], 4, 2763975236);
_local3 = this.HH(_local3, _local6, _local5, _local4, _local2[4], 11, 1272893353);
_local4 = this.HH(_local4, _local3, _local6, _local5, _local2[7], 16, 4139469664);
_local5 = this.HH(_local5, _local4, _local3, _local6, _local2[10], 23, 3200236656);
_local6 = this.HH(_local6, _local5, _local4, _local3, _local2[13], 4, 681279174);
_local3 = this.HH(_local3, _local6, _local5, _local4, _local2[0], 11, 3936430074);
_local4 = this.HH(_local4, _local3, _local6, _local5, _local2[3], 16, 3572445317);
_local5 = this.HH(_local5, _local4, _local3, _local6, _local2[6], 23, 76029189);
_local6 = this.HH(_local6, _local5, _local4, _local3, _local2[9], 4, 3654602809);
_local3 = this.HH(_local3, _local6, _local5, _local4, _local2[12], 11, 3873151461);
_local4 = this.HH(_local4, _local3, _local6, _local5, _local2[15], 16, 530742520);
_local5 = this.HH(_local5, _local4, _local3, _local6, _local2[2], 23, 3299628645);
_local6 = this.II(_local6, _local5, _local4, _local3, _local2[0], 6, 4096336452);
_local3 = this.II(_local3, _local6, _local5, _local4, _local2[7], 10, 1126891415);
_local4 = this.II(_local4, _local3, _local6, _local5, _local2[14], 15, 2878612391);
_local5 = this.II(_local5, _local4, _local3, _local6, _local2[5], 21, 4237533241);
_local6 = this.II(_local6, _local5, _local4, _local3, _local2[12], 6, 1700485571);
_local3 = this.II(_local3, _local6, _local5, _local4, _local2[3], 10, 2399980690);
_local4 = this.II(_local4, _local3, _local6, _local5, _local2[10], 15, 4293915773);
_local5 = this.II(_local5, _local4, _local3, _local6, _local2[1], 21, 2240044497);
_local6 = this.II(_local6, _local5, _local4, _local3, _local2[8], 6, 1873313359);
_local3 = this.II(_local3, _local6, _local5, _local4, _local2[15], 10, 4264355552);
_local4 = this.II(_local4, _local3, _local6, _local5, _local2[6], 15, 2734768916);
_local5 = this.II(_local5, _local4, _local3, _local6, _local2[13], 21, 1309151649);
_local6 = this.II(_local6, _local5, _local4, _local3, _local2[4], 6, 4149444226);
_local3 = this.II(_local3, _local6, _local5, _local4, _local2[11], 10, 3174756917);
_local4 = this.II(_local4, _local3, _local6, _local5, _local2[2], 15, 718787259);
_local5 = this.II(_local5, _local4, _local3, _local6, _local2[9], 21, 3951481745);
this.state[0] = this.state[0] + _local6;
this.state[1] = this.state[1] + _local5;
this.state[2] = this.state[2] + _local4;
this.state[3] = this.state[3] + _local3;
};
Fmd5Class.prototype.MD5Init = function () {
this.count0 = (this.count1 = 0);
this.state[0] = 1732584193 /* 0x67452301 */;
this.state[1] = 4023233417;
this.state[2] = 2562383102;
this.state[3] = 271733878 /* 0x10325476 */;
i = 0;
while (i < this.digestBits.length) {
this.digestBits[i] = 0;
i++;
}
};
Fmd5Class.prototype.MD5Update = function (b) {
var _local2 = (this.count0 >>> 3) & 63;
if (4294967288 <= this.count0) {
this.count1++;
this.count0 = this.count0 - 4294967296;
}
this.count0 = this.count0 + 8;
this.buffer[_local2] = b & 255;
trace(_local2);
if (_local2 >= 63) {
this.transformMD5(this.buffer, 0);
}
};
Fmd5Class.prototype.MD5Final = function () {
var _local4 = new Array(8);
var _local2;
var _local3;
_local2 = 0;
while (_local2 < 4) {
_local4[_local2] = (this.count0 >>> (_local2 * 8)) & 255;
_local4[_local2 + 4] = (this.count1 >>> (_local2 * 8)) & 255;
_local2++;
}
var _local6 = (this.count0 >>> 3) & 63;
var _local5 = ((_local6 < 56) ? (56 - _local6) : (120 - _local6));
this.MD5Update(128);
_local2 = 1;
while (_local2 < _local5) {
this.MD5Update(0);
_local2++;
}
_local2 = 0;
while (_local2 < 8) {
this.MD5Update(_local4[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < 4) {
_local3 = 0;
while (_local3 < 4) {
this.digestBits[(_local2 * 4) + _local3] = (this.state[_local2] >>> (_local3 * 8)) & 255;
_local3++;
}
_local2++;
}
};
Fmd5Class.prototype.byteToStr = function (bt) {
var _local1 = "0123456789abcdef";
var _local2 = _local1.charAt(bt >> 4) + _local1.charAt(bt & 15);
return(_local2);
};
Fmd5Class.prototype.md5 = function (m) {
var _local4 = "";
this.MD5Init();
var _local2 = 0;
while (_local2 < m.length) {
this.MD5Update(m.charCodeAt(_local2));
_local2++;
}
this.MD5Final();
_local2 = 0;
while (_local2 < 16) {
_local4 = _local4 + this.byteToStr(this.digestBits[_local2]);
_local2++;
}
return(_local4);
};
Fmd5Class.prototype.verifytext = function (d, m) {
return(this.md5(m) == d);
};
Fmd5Class.prototype.makeSig = function (input) {
return(this.md5(input));
};
Object.registerClass("Fmd5", Fmd5Class);
#endinitclip
Symbol 111 MovieClip [__Packages.FMusic] Frame 0
class FMusic extends MovieClip
{
var music_arr, activeMusic, valume, countLoop, indexSound, getNextHighestDepth, createEmptyMovieClip, currentLoop, lastMusic, onEnterFrame, v0;
function FMusic () {
super();
music_arr = new Array();
activeMusic = null;
valume = 50;
countLoop = 1000000 /* 0x0F4240 */;
indexSound = 0;
}
function setLoop(loop) {
countLoop = loop;
}
function addMusic(links) {
for (var _local5 in links) {
var _local2 = getNextHighestDepth();
createEmptyMovieClip("mc" + _local2, _local2);
var _local3 = new Sound(this["mc" + _local2]);
_local3.attachSound(links[_local5]);
music_arr.push(_local3);
}
}
function setValume(val) {
valume = val;
for (var _local3 in music_arr) {
music_arr[_local3].setVolume(val);
}
}
function playMusic(index) {
if (activeMusic != index) {
if (((index >= music_arr.length) || (index < 0)) || (index == undefined)) {
index = 0;
}
currentLoop = countLoop;
lastMusic = activeMusic;
activeMusic = index;
var v0 = valume;
onEnterFrame = function () {
v0--;
if (v0 <= 0) {
v0 = 0;
this.onEnterFrame = function () {
v0++;
if (v0 >= this.valume) {
v0 = this.valume;
this.onEnterFrame = null;
}
this.music_arr[this.activeMusic].setVolume(v0);
};
this.music_arr[this.lastMusic].stop();
}
this.music_arr[this.lastMusic].setVolume(v0);
};
music_arr[activeMusic].setVolume(0);
music_arr[activeMusic].start(0, currentLoop);
music_arr[activeMusic]._parent = this;
music_arr[activeMusic].onSoundComplete = function () {
this=this._parent;//parameter overwritten
this._parent;
this.music_arr[this.activeMusic].start();
v0 = this.valume;
this.onEnterFrame = function () {
v0--;
this.music_arr[this.activeMusic].setVolume(v0);
if (v0 <= 0) {
this.music_arr[this.activeMusic].stop();
this.onEnterFrame = null;
this.playMusic(this.activeMusic + 1);
}
};
this.music_arr[this.activeMusic].onSoundComplete = null;
};
}
}
function stopMusic() {
v0 = valume;
onEnterFrame = function () {
this.v0 = this.v0 - 5;
this.music_arr[this.activeMusic].setVolume(this.v0);
if (this.v0 <= 0) {
this.music_arr[this.activeMusic].stop();
this.activeMusic = null;
this.onEnterFrame = null;
}
};
}
function pauseMusic(how) {
if (how) {
v0 = valume;
onEnterFrame = function () {
this.v0 = this.v0 - 5;
this.music_arr[this.activeMusic].setVolume(this.v0);
if (this.v0 <= 0) {
this.music_arr[this.activeMusic].stop();
this.onEnterFrame = null;
}
};
} else {
playMusic(activeMusic);
}
}
function destroy() {
for (var _local2 in this) {
this[_local2].removeMovieClip();
}
}
}
Symbol 112 MovieClip [__Packages.FSound] Frame 0
class FSound extends MovieClip
{
var valume, indexSound, createEmptyMovieClip, getNextHighestDepth;
function FSound () {
super();
valume = 50;
indexSound = 0;
}
function setValume(val) {
valume = val;
for (var _local3 in this) {
this[_local3].sn.setVolume(val);
}
}
function stopAllSound() {
for (var _local2 in this) {
trace(_local2 + " >>> deleted");
this[_local2].sn.stop();
this[_local2].removeMovieClip();
}
}
function playSound(sound, pan, loop) {
pan = ((pan == undefined) ? 50 : (pan));
if (valume > 0) {
indexSound++;
var mc = createEmptyMovieClip("mc" + indexSound, getNextHighestDepth());
mc.sn = new Sound(mc);
mc.sn.attachSound(sound);
mc.sn.setVolume(valume);
mc.sn.setPan(pan);
mc.sn._parent = this;
mc.sn._parent2 = mc;
mc.loop = loop;
mc.sn.mc = mc;
mc.sn.indexSound = indexSound;
if (loop == true) {
mc.sn.start(0, 1000000);
} else {
mc.sn.onSoundComplete = function () {
this.mc.removeMovieClip();
};
mc.sn.start();
}
if (this["mc" + (indexSound - 100)].loop != true) {
delete this["mc" + (indexSound - 100)].sn;
this["mc" + (indexSound - 100)].removeMovieClip();
}
return(mc.sn);
}
}
}
Symbol 113 MovieClip [__Packages.FSequence] Frame 0
class FSequence
{
var actions_arr, mc, value, startInterval, nextAction;
function FSequence (goal) {
actions_arr = new Array();
if (goal != undefined) {
mc = goal.createEmptyMovieClip("sequence" + new Date().getTime(), goal.getNextHighestDepth());
mc.obj = this;
}
}
function addAction(goal, action, delay, param, typeAction) {
var _local2 = new Object();
_local2.type = ((typeAction == undefined) ? 0 : (typeAction));
_local2.goal = goal;
_local2.action = action;
_local2.delay = delay;
_local2.param = new Array();
_local2.param = param;
actions_arr.push(_local2);
if (actions_arr.length == 1) {
startActions();
}
}
function addPause(delay) {
var _local2 = new Object();
_local2.delay = delay;
actions_arr.push(_local2);
if (actions_arr.length == 1) {
startActions();
}
}
function setValue(val) {
value = val;
}
function getValue() {
return(actions_arr.length);
}
function pauseSequence(how) {
if (how) {
clearInterval(startInterval);
delete startInterval;
} else {
startActions();
}
}
function clearSequence() {
clearInterval(startInterval);
delete startInterval;
while (actions_arr.length > 0) {
actions_arr.shift();
}
}
function deleteItem(who) {
this = who;
eval ((actions_arr[0].goal + ".") + actions_arr[0].action).apply(actions_arr[0].goal, actions_arr[0].param);
actions_arr.shift();
startActions();
}
function startActions() {
clearInterval(startInterval);
delete startInterval;
delete mc.onEnterFrame;
if (actions_arr.length != 0) {
if (actions_arr[0].type == 0) {
if (startInterval == undefined) {
clearInterval(startInterval);
startInterval = setInterval(deleteItem, Number(actions_arr[0].delay), this);
}
} else {
nextAction = Number(actions_arr[0].delay);
mc.onEnterFrame = function () {
this.obj.nextAction = this.obj.nextAction - 1;
if (this.obj.nextAction <= 0) {
delete this.mc.onEnterFrame;
this.obj.deleteItem(this.obj);
}
};
}
}
}
}
Symbol 114 MovieClip [__Packages.Human] Frame 0
class Human
{
var mc, pts, size, left_wire, right_wire, walk_state, on_the_ground, use_left;
function Human (nmc) {
mc = nmc;
pts = new Array(11);
size = 3;
var _local4 = 4;
var _local3 = 6;
var _local2 = 4;
pts[0] = new Vec(0, (-size) * 2.5);
pts[1] = new Vec(0, -size);
pts[2] = new Vec(0, _local2 * size);
pts[3] = new Vec((-_local4) * size, 0);
pts[4] = new Vec(_local4 * size, 0);
pts[5] = new Vec(-size, (_local2 * size) + (_local3 * size));
pts[6] = new Vec(size, (_local2 * size) + (_local3 * size));
pts[7] = new Vec(((-_local4) * 2) * size, 0);
pts[8] = new Vec((_local4 * 2) * size, 0);
pts[9] = new Vec(-size, (_local2 * size) + ((_local3 * 2) * size));
pts[10] = new Vec(size, (_local2 * size) + ((_local3 * 2) * size));
pts[0].addLink(pts[1]);
pts[1].addLink(pts[2]);
pts[1].addLink(pts[3]);
pts[1].addLink(pts[4]);
pts[2].addLink(pts[5]);
pts[2].addLink(pts[6]);
pts[3].addLink(pts[7]);
pts[4].addLink(pts[8]);
pts[5].addLink(pts[9]);
pts[6].addLink(pts[10]);
left_wire = new Wire(mc, left_hand());
right_wire = new Wire(mc, right_hand());
left_wire.trans(left_hand());
right_wire.trans(right_hand());
walk_state = 0;
on_the_ground = 0;
use_left = true;
}
function left_hand() {
return(pts[8]);
}
function right_hand() {
return(pts[7]);
}
function trans(v) {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].x = pts[_local2].x + v.x;
pts[_local2].y = pts[_local2].y + v.y;
pts[_local2].px = pts[_local2].px + v.x;
pts[_local2].py = pts[_local2].py + v.y;
_local2++;
}
left_wire.trans(v);
right_wire.trans(v);
}
function addForce(v) {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].x = pts[_local2].x + v.x;
pts[_local2].y = pts[_local2].y + v.y;
_local2++;
}
}
function draw() {
var _local2 = pts[0].x - pts[1].x;
var _local3 = pts[0].y - pts[1].y;
var _local4 = Math.sqrt((_local2 * _local2) + (_local3 * _local3));
_local2 = _local2 / _local4;
_local3 = _local3 / _local4;
mc.clear();
mc.lineStyle(size * 4, 16711680, 50);
mc.moveTo(pts[0].x, pts[0].y);
mc.lineTo(pts[1].x, pts[1].y);
mc.lineStyle(size, 0, 50);
mc.moveTo(pts[0].x, pts[0].y);
mc.lineTo(pts[0].x + _local2, pts[0].y + _local3);
mc.head._x = pts[0].x;
mc.head._y = pts[0].y;
mc.head._rotation = (Math.atan2(_local3, _local2) * 180) / Math.PI;
mc.lineStyle(size * 2, 16711680, 50);
mc.moveTo(pts[1].x, pts[1].y);
mc.lineTo(pts[3].x, pts[3].y);
mc.lineTo(pts[7].x, pts[7].y);
mc.ruk1_1._x = pts[1].x;
mc.ruk1_1._y = pts[1].y;
mc.ruk1_1._rotation = (Math.atan2(pts[3].y - pts[1].y, pts[3].x - pts[1].x) * 180) / Math.PI;
mc.ruk1_2._x = pts[3].x;
mc.ruk1_2._y = pts[3].y;
mc.ruk1_2._rotation = (Math.atan2(pts[7].y - pts[3].y, pts[7].x - pts[3].x) * 180) / Math.PI;
mc.moveTo(pts[1].x, pts[1].y);
mc.lineTo(pts[4].x, pts[4].y);
mc.lineTo(pts[8].x, pts[8].y);
mc.ruk2_1._x = pts[1].x;
mc.ruk2_1._y = pts[1].y;
mc.ruk2_1._rotation = (Math.atan2(pts[4].y - pts[1].y, pts[4].x - pts[1].x) * 180) / Math.PI;
mc.ruk2_2._x = pts[4].x;
mc.ruk2_2._y = pts[4].y;
mc.ruk2_2._rotation = (Math.atan2(pts[8].y - pts[4].y, pts[8].x - pts[4].x) * 180) / Math.PI;
mc.lineStyle(size * 2, 3342489, 50);
mc.moveTo(pts[2].x, pts[2].y);
mc.lineTo(pts[5].x, pts[5].y);
mc.lineTo(pts[9].x, pts[9].y);
mc.nog1_1._x = pts[2].x;
mc.nog1_1._y = pts[2].y;
mc.nog1_1._rotation = (Math.atan2(pts[5].y - pts[2].y, pts[5].x - pts[2].x) * 180) / Math.PI;
mc.nog1_2._x = pts[5].x;
mc.nog1_2._y = pts[5].y;
mc.nog1_2._rotation = (Math.atan2(pts[9].y - pts[5].y, pts[9].x - pts[5].x) * 180) / Math.PI;
mc.moveTo(pts[2].x, pts[2].y);
mc.lineTo(pts[6].x, pts[6].y);
mc.lineTo(pts[10].x, pts[10].y);
mc.nog2_1._x = pts[2].x;
mc.nog2_1._y = pts[2].y;
mc.nog2_1._rotation = (Math.atan2(pts[6].y - pts[2].y, pts[6].x - pts[2].x) * 180) / Math.PI;
mc.nog2_2._x = pts[6].x;
mc.nog2_2._y = pts[6].y;
mc.nog2_2._rotation = (Math.atan2(pts[10].y - pts[6].y, pts[10].x - pts[6].x) * 180) / Math.PI;
mc.lineStyle(size * 3, 16711680, 50);
mc.moveTo(pts[1].x, pts[1].y);
mc.lineTo(pts[2].x, pts[2].y);
mc.tul._x = pts[1].x;
mc.tul._y = pts[1].y;
mc.tul._rotation = (Math.atan2(pts[2].y - pts[1].y, pts[2].x - pts[1].x) * 180) / Math.PI;
left_wire.draw();
right_wire.draw();
}
function update() {
adjust();
left_wire.update();
right_wire.update();
var _local7 = false;
if (on_the_ground > 0) {
_local7 = true;
on_the_ground--;
}
var _local2 = 10 * size;
var _local8 = 20;
pts[7].x = pts[7].x + (pts[7].vx * 0.1);
pts[8].y = pts[8].y + (pts[8].vy * 0.1);
if (_local7) {
var _local9 = -0.8;
if (walk_state < _local8) {
pts[6].y = pts[6].y + (0.02 * _local2);
pts[10].y = pts[10].y + (0.05 * _local2);
pts[5].y = pts[5].y - (0.015 * _local2);
pts[9].y = pts[9].y - (0.01 * _local2);
pts[5].x = pts[5].x - ((0.02 * _local2) * _local9);
pts[1].y = pts[1].y - (0.02 * _local2);
pts[2].y = pts[2].y + (0.02 * _local2);
} else if (walk_state < (_local8 * 2)) {
pts[5].y = pts[5].y + (0.02 * _local2);
pts[9].y = pts[9].y + (0.05 * _local2);
pts[6].y = pts[6].y - (0.015 * _local2);
pts[10].y = pts[10].y - (0.01 * _local2);
pts[6].x = pts[6].x - ((0.02 * _local2) * _local9);
pts[1].y = pts[1].y - (0.02 * _local2);
pts[2].y = pts[2].y + (0.02 * _local2);
} else {
walk_state = 0;
}
walk_state++;
}
if (_local7) {
pts[0].y = pts[0].y - (0.01 * _local2);
pts[1].y = pts[1].y - (0.001 * _local2);
pts[5].x = pts[5].x - (0.001 * _local2);
pts[6].x = pts[6].x + (0.001 * _local2);
pts[9].y = pts[9].y + (0.02 * _local2);
pts[10].y = pts[10].y + (0.02 * _local2);
pts[3].y = pts[3].y + (0.001 * _local2);
pts[4].y = pts[4].y + (0.001 * _local2);
pts[3].x = pts[3].x - (0.0001 * _local2);
pts[4].x = pts[4].x + (0.0001 * _local2);
pts[7].y = pts[7].y - (0.001 * _local2);
pts[8].y = pts[8].y - (0.001 * _local2);
var _local4 = pts[6].x - pts[5].x;
var _local5 = pts[6].y - pts[5].y;
var _local6 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
_local4 = _local4 / _local6;
_local5 = _local5 / _local6;
pts[6].y = pts[6].y + ((_local5 * 0.001) * _local2);
pts[6].x = pts[6].x + ((_local4 * 0.001) * _local2);
pts[5].y = pts[5].y - ((_local5 * 0.001) * _local2);
pts[5].x = pts[5].x - ((_local4 * 0.001) * _local2);
pts[9].y = pts[9].y - ((_local5 * 0.001) * _local2);
pts[9].x = pts[9].x - ((_local4 * 0.001) * _local2);
pts[10].y = pts[10].y + ((_local5 * 0.001) * _local2);
pts[10].x = pts[10].x + ((_local4 * 0.001) * _local2);
} else {
var _local3 = 0;
while (_local3 < pts.length) {
pts[_local3].y = pts[_local3].y + (0.01 * _local2);
_local3++;
}
pts[0].y = pts[0].y - (0.01 * _local2);
pts[1].y = pts[1].y - (0.001 * _local2);
var _local4 = pts[6].x - pts[5].x;
var _local5 = pts[6].y - pts[5].y;
var _local6 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
_local4 = _local4 / _local6;
_local5 = _local5 / _local6;
pts[6].y = pts[6].y - ((_local5 * 0.001) * _local2);
pts[6].x = pts[6].x - ((_local4 * 0.001) * _local2);
pts[5].y = pts[5].y + ((_local5 * 0.001) * _local2);
pts[5].x = pts[5].x + ((_local4 * 0.001) * _local2);
pts[9].y = pts[9].y + ((_local5 * 0.001) * _local2);
pts[9].x = pts[9].x + ((_local4 * 0.001) * _local2);
pts[10].y = pts[10].y - ((_local5 * 0.001) * _local2);
pts[10].x = pts[10].x - ((_local4 * 0.001) * _local2);
}
var _local4 = ((pts[2].x - pts[5].x) + pts[2].x) - pts[6].x;
var _local5 = ((pts[2].y - pts[5].y) + pts[2].y) - pts[6].y;
var _local6 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
_local4 = _local4 / _local6;
_local5 = _local5 / _local6;
pts[1].y = pts[1].y + ((_local5 * 0.005) * _local2);
pts[1].x = pts[1].x + ((_local4 * 0.005) * _local2);
var _local3 = 0;
while (_local3 < pts.length) {
pts[_local3].update(0.995);
_local3++;
}
adjust();
}
function fire() {
if (use_left) {
left_wire.fire();
} else {
right_wire.fire();
}
use_left = !use_left;
}
function adjust() {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].adjustLinks();
_local2++;
}
}
function hitTest(field) {
left_wire.hitTest(field);
right_wire.hitTest(field);
var _local2 = 0;
while (_local2 < pts.length) {
var _local5 = 0;
if (field.hitTest(pts[_local2].x, pts[_local2].y, true)) {
on_the_ground = 10;
pts[_local2].x = pts[_local2].x - pts[_local2].vx;
pts[_local2].y = pts[_local2].y - pts[_local2].vy;
do {
if (!field.hitTest(pts[_local2].x, pts[_local2].y, true)) {
break;
}
var _local3 = pts[_local2].vx * 0.1;
var _local4 = pts[_local2].vy * 0.1;
if (_local5 > 5) {
_local3 = _local3 - ((pts[2].x - pts[_local2].x) * 0.1);
_local4 = _local4 - ((pts[2].y - pts[_local2].y) * 0.1);
}
pts[_local2].x = pts[_local2].x - _local3;
pts[_local2].y = pts[_local2].y - _local4;
pts[_local2].px = pts[_local2].px - _local3;
pts[_local2].py = pts[_local2].py - _local4;
_local5++;
} while (_local5 <= 10);
}
_local2++;
}
}
}
Symbol 115 MovieClip [__Packages.Vec] Frame 0
class Vec
{
var x, y, px, py, vx, vy, links, distances;
function Vec (xx, yy) {
x = xx;
y = yy;
px = xx;
py = yy;
vx = 0;
vy = 0;
links = [];
distances = [];
}
function addLink(other) {
if (Math.random() < 0.5) {
links.push(other);
distances.push(distance(other));
} else {
links.unshift(other);
distances.unshift(distance(other));
}
}
function clearLinks() {
links = [];
distances = [];
}
function update(o) {
vx = x - px;
vy = y - py;
px = x;
py = y;
vx = vx * o;
vy = vy * o;
x = x + vx;
y = y + vy;
}
function distance(other) {
var _local2 = x - other.x;
var _local3 = y - other.y;
return(Math.sqrt((_local2 * _local2) + (_local3 * _local3)));
}
function adjustUnit(other, distance) {
var _local3 = other.x - x;
var _local2 = other.y - y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local6 = distance - _local5;
if (_local5 == 0) {
return(undefined);
}
_local3 = (_local3 / _local5) * (_local6 * 0.5);
_local2 = (_local2 / _local5) * (_local6 * 0.5);
x = x - _local3;
y = y - _local2;
other.x = other.x + _local3;
other.y = other.y + _local2;
}
function adjustUnitRate(other, distance, alpha) {
var _local3 = other.x - x;
var _local2 = other.y - y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local6 = distance - _local5;
if (_local5 == 0) {
return(undefined);
}
_local3 = _local3 / _local5;
_local2 = _local2 / _local5;
x = x - (_local3 * (_local6 * alpha));
y = y - (_local2 * (_local6 * alpha));
other.x = other.x + (_local3 * (_local6 * (1 - alpha)));
other.y = other.y + (_local2 * (_local6 * (1 - alpha)));
}
function adjustLinks() {
var _local2 = 0;
while (_local2 < links.length) {
adjustUnit(links[_local2], distances[_local2]);
_local2++;
}
}
function adjustLinks2(scale) {
var _local2 = 0;
while (_local2 < links.length) {
adjustUnit(links[_local2], distances[_local2] * scale);
_local2++;
}
}
}
Symbol 116 MovieClip [__Packages.Wire] Frame 0
class Wire
{
var mc, pts, hand, size, xtarget, ytarget, hit, fired, maxsize;
function Wire (nmc, nhand) {
mc = nmc;
pts = [];
var _local2 = 0;
while (_local2 < 10) {
pts.push(new Vec(0, _local2));
_local2++;
}
_local2 = 0;
while (_local2 < (pts.length - 1)) {
pts[_local2].addLink(pts[_local2 + 1]);
_local2++;
}
hand = nhand;
size = 0.1;
xtarget = 0;
ytarget = 0;
hit = 0;
fired = 0;
maxsize = 0.1;
}
function handpos() {
return(pts[0]);
}
function top() {
return(pts[pts.length - 1]);
}
function fire() {
if (fired > 0) {
return(undefined);
}
var _local3 = _xmouse - pts[pts.length - 1].x;
var _local4 = _ymouse - pts[pts.length - 1].y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
_local3 = _local3 / _local5;
_local4 = _local4 / _local5;
xtarget = _local3 * 18;
ytarget = _local4 * 18;
size = 1;
fired = 15;
hit = 0;
_root.sounds.playSound("go", 0);
}
function update() {
if (size <= 0) {
size = 0.0001;
}
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].update(0.9);
_local2++;
}
var _local5 = pts[pts.length - 1].x;
var _local4 = pts[pts.length - 1].y;
_local2 = 0;
while (_local2 < pts.length) {
pts[_local2].adjustLinks2(size);
_local2++;
}
pts[pts.length - 1].x = _local5;
pts[pts.length - 1].y = _local4;
var _local3 = true;
if (fired > 0) {
fired--;
if (hit > 0) {
pts[pts.length - 1].x = xtarget;
pts[pts.length - 1].y = ytarget;
size = maxsize * 0.5;
hit--;
if (hit == 0) {
fired = 0;
}
hand.adjustUnit(pts[0], 0.1);
hand.x = pts[0].x;
hand.y = pts[0].y;
_local3 = false;
} else {
size = size + 1;
if (size > 10) {
size = 10;
}
pts[pts.length - 1].x = pts[pts.length - 1].x + xtarget;
pts[pts.length - 1].y = pts[pts.length - 1].y + ytarget;
pts[pts.length - 1].px = pts[pts.length - 1].x;
pts[pts.length - 1].py = pts[pts.length - 1].y;
}
} else {
size = 0.01;
pts[pts.length - 1].x = (pts[pts.length - 1].x * 0.95) + (pts[0].x * 0.05);
pts[pts.length - 1].y = (pts[pts.length - 1].y * 0.95) + (pts[0].y * 0.05);
}
if (_local3) {
pts[0].x = hand.x;
pts[0].y = hand.y;
}
hand.adjustUnitRate(handpos(), 0.1, 0.51);
}
function draw() {
mc.lineStyle(1, 16777215, 100);
mc.moveTo(hand.x, hand.y);
var _local2 = 0;
while (_local2 < pts.length) {
mc.lineTo(pts[_local2].x, pts[_local2].y);
_local2++;
}
}
function hitTest(field) {
if (((hit > 0) || (fired == 0)) || (fired > 14)) {
return(undefined);
}
var _local2 = pts.length - 1;
if (field.hitTest(pts[_local2].x, pts[_local2].y, true)) {
hit = 30;
fired = 999;
xtarget = pts[_local2].x;
ytarget = pts[_local2].y;
maxsize = size;
}
}
function trans(v) {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].x = pts[_local2].x + v.x;
pts[_local2].y = pts[_local2].y + v.y;
pts[_local2].px = pts[_local2].px + v.x;
pts[_local2].py = pts[_local2].py + v.y;
_local2++;
}
}
function addForce(v) {
var _local2 = 0;
while (_local2 < pts.length) {
pts[_local2].x = pts[_local2].x + v.x;
pts[_local2].y = pts[_local2].y + v.y;
_local2++;
}
}
}
Symbol 102 Button
on (release) {
_root.gox();
}
Symbol 107 MovieClip Frame 1
System.security;
System.security.allowInsecureDomain("*");
score.loadMovie("arcade/gamedata/spidermancityv32Th/score.swf");
continueBtn.onPress = function () {
Key.removeListener(score.obj);
_root.gotoAndStop(2);
};
Instance of Symbol 38 MovieClip [Fmd5] "md_" in Symbol 107 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
securetyURL = "";
}