Frame 3
var uniqueURL = random(10000);
loadMovie ("http://www.thekungfustatesmen.com/game/miniclip.swf?" + uniqueURL, _root.offsite);
Instance of Symbol 58 MovieClip in Frame 3
onClipEvent (load) {
this.gotoAndStop(2);
}
Frame 4
stop();
Frame 8
stop();
Instance of Symbol 328 MovieClip in Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.heroName);
}
Frame 49
stop();
Frame 68
stop();
Symbol 5 MovieClip Frame 1
this._visible = false;
Symbol 11 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 16 MovieClip Frame 1
pushSWF1 = "http://www.miniclip.com/swfcontent/push/didyouknow.swf";
totalAds = 1;
gotoAndPlay ("ReadCookie");
Symbol 16 MovieClip Frame 9
so = SharedObject.getLocal("MiniclipLoaderAd");
showThisAd = so.data.showThisAd + 1;
if (showThisAd > totalAds) {
showThisAd = 1;
}
so.data.showThisAd = showThisAd;
gotoAndPlay ("prepareAd");
Symbol 16 MovieClip Frame 20
doReadCookie();
showAd = ((this["pushSWF" + showThisAd] + "?cacheBuster=") + getTimer()) + random(999999);
gotoAndPlay ("loadAd");
Symbol 16 MovieClip Frame 31
if (_url.indexOf(http) > 0) {
mcAd.loadMovie(showAd);
}
mcCookie.doWriteCookie(showThisAd);
Symbol 16 MovieClip Frame 33
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
lastAdShown = showThisAd;
doWriteCookie();
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 16 MovieClip Frame 41
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 100
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 32 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 33 MovieClip Frame 2
_parent.mcAnimation.play();
stop();
Symbol 33 MovieClip Frame 13
_parent.gotoAndPlay("preload");
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 60
Symbol 47 MovieClip Frame 121
_parent.mcBackground.play();
stop();
Symbol 48 MovieClip Frame 1
_root.stop();
play();
Instance of Symbol 5 MovieClip "mcIntro" in Symbol 48 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 48 MovieClip Frame 2
xPos = _x;
yPos = _y;
mcBackground._x = mcBackground._x - xPos;
mcBackground._y = mcBackground._y - yPos;
mcAnimation._x = mcAnimation._x - xPos;
mcAnimation._y = mcAnimation._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = mcAnimation._x + centerStageX;
mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10));
stop();
Instance of Symbol 28 MovieClip "mcLoadingAnimated" in Symbol 48 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 48 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
mcLoadingAnimated._visible = true;
}
Symbol 48 MovieClip Frame 5
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 53 Button
on (release) {
stopAllSounds();
gotoAndStop (3);
_root.playSound = 0;
}
Symbol 57 Button
on (release) {
gotoAndStop (2);
_root.playSound = 1;
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 6
stop();
Symbol 97 MovieClip Frame 10
stop();
Symbol 97 MovieClip Frame 15
stop();
Symbol 97 MovieClip Frame 19
stop();
Symbol 97 MovieClip Frame 24
stop();
Symbol 97 MovieClip Frame 28
stop();
Symbol 98 Button
on (rollOver) {
mcChoose.gotoAndPlay("chooseTony");
}
on (rollOut) {
mcChoose.gotoAndPlay("chooseTonyBack");
}
on (release) {
_root.heroName = "blair";
_parent.play();
}
Symbol 99 Button
on (rollOver) {
mcChoose.gotoAndPlay("chooseDavid");
}
on (rollOut) {
mcChoose.gotoAndPlay("chooseDavidBack");
}
on (release) {
_root.heroName = "blunkett";
_parent.play();
}
Symbol 100 Button
on (rollOver) {
mcChoose.gotoAndPlay("chooseGordon");
}
on (rollOut) {
mcChoose.gotoAndPlay("chooseGordonBack");
}
on (release) {
_root.heroName = "brown";
_parent.play();
}
Symbol 110 Button
on (release) {
getURL ("http://www.kempt.co.uk/redir.php?urlId=8", "_blank");
}
Symbol 112 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 114 MovieClip Frame 91
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 6
stop();
Symbol 143 MovieClip Frame 9
gotoAndPlay (1);
Symbol 151 MovieClip Frame 8
gotoAndPlay (1);
Symbol 156 MovieClip Frame 8
gotoAndPlay (1);
Symbol 161 MovieClip Frame 8
gotoAndPlay (1);
Symbol 167 MovieClip Frame 8
gotoAndPlay (1);
Symbol 173 MovieClip Frame 8
gotoAndPlay (1);
Symbol 178 MovieClip Frame 8
gotoAndPlay (1);
Symbol 183 MovieClip Frame 7
gotoAndPlay (1);
Symbol 191 MovieClip Frame 8
gotoAndPlay (1);
Symbol 194 MovieClip Frame 6
stop();
Symbol 195 MovieClip Frame 10
gotoAndPlay (1);
Symbol 200 MovieClip Frame 8
gotoAndPlay (1);
Symbol 202 MovieClip Frame 1
this._visible = 0;
Symbol 212 MovieClip Frame 39
_parent.resetVars(this);
Symbol 213 MovieClip Frame 1
played = 0;
Symbol 213 MovieClip Frame 9
gotoAndPlay ("waggle");
played++;
if (played == 10) {
_root.gotoAndStop("youwin");
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
stop();
Symbol 214 MovieClip Frame 3
stop();
Instance of Symbol 143 MovieClip "huntman1" in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
movedir = "l";
speed = 4;
msgType = "hunting";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 151 MovieClip "dog1" in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
movedir = "l";
speed = 6;
msgType = "hunting";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 156 MovieClip "batman1" in Symbol 215 MovieClip Frame 2
onClipEvent (load) {
movedir = "l";
speed = 6;
msgType = "fathers";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 161 MovieClip "spiderman1" in Symbol 215 MovieClip Frame 2
onClipEvent (load) {
movedir = "r";
speed = 4;
msgType = "fathers";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 167 MovieClip "protestman1" in Symbol 215 MovieClip Frame 3
onClipEvent (load) {
movedir = "r";
speed = 4;
msgType = "protest";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 173 MovieClip "protestgirl1" in Symbol 215 MovieClip Frame 3
onClipEvent (load) {
movedir = "r";
speed = 4;
msgType = "protest";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 178 MovieClip "dinnerlady1" in Symbol 215 MovieClip Frame 4
onClipEvent (load) {
movedir = "l";
speed = 4;
msgType = "jamie";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 183 MovieClip "foxy2" in Symbol 215 MovieClip Frame 4
onClipEvent (load) {
movedir = "r";
speed = 2;
msgType = "hunting";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 178 MovieClip "dinnerlady2" in Symbol 215 MovieClip Frame 5
onClipEvent (load) {
movedir = "l";
speed = 4;
msgType = "jamie";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 191 MovieClip "jamie1" in Symbol 215 MovieClip Frame 5
onClipEvent (load) {
movedir = "r";
speed = 2;
msgType = "jamie";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 161 MovieClip "spiderman2" in Symbol 215 MovieClip Frame 6
onClipEvent (load) {
movedir = "l";
speed = 5;
msgType = "fathers";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 156 MovieClip "batman2" in Symbol 215 MovieClip Frame 6
onClipEvent (load) {
movedir = "l";
speed = 6;
msgType = "fathers";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 173 MovieClip "protestgirl2" in Symbol 215 MovieClip Frame 6
onClipEvent (load) {
movedir = "r";
speed = 5;
msgType = "protest";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 143 MovieClip in Symbol 215 MovieClip Frame 7
onClipEvent (load) {
movedir = "l";
speed = 5;
msgType = "hunting";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 151 MovieClip "dog2" in Symbol 215 MovieClip Frame 7
onClipEvent (load) {
movedir = "r";
speed = 7;
msgType = "hunting";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 167 MovieClip "protestman2" in Symbol 215 MovieClip Frame 7
onClipEvent (load) {
movedir = "r";
speed = 6;
msgType = "protest";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 191 MovieClip in Symbol 215 MovieClip Frame 8
onClipEvent (load) {
movedir = "l";
speed = 7;
msgType = "jamie";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 195 MovieClip in Symbol 215 MovieClip Frame 8
onClipEvent (load) {
movedir = "d";
speed = 6;
msgType = "fathers";
offset = 37;
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 200 MovieClip in Symbol 215 MovieClip Frame 8
onClipEvent (load) {
movedir = "u";
speed = 6;
msgType = "fathers";
offset = 37;
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 156 MovieClip in Symbol 215 MovieClip Frame 9
onClipEvent (load) {
movedir = "l";
speed = 4;
msgType = "fathers";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 178 MovieClip in Symbol 215 MovieClip Frame 9
onClipEvent (load) {
movedir = "l";
speed = 8;
msgType = "jamie";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 183 MovieClip "foxy1" in Symbol 215 MovieClip Frame 9
onClipEvent (load) {
movedir = "l";
speed = 8;
msgType = "hunting";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 167 MovieClip in Symbol 215 MovieClip Frame 10
onClipEvent (load) {
movedir = "r";
speed = 6;
msgType = "protest";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 161 MovieClip in Symbol 215 MovieClip Frame 10
onClipEvent (load) {
movedir = "l";
speed = 4;
msgType = "fathers";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 173 MovieClip in Symbol 215 MovieClip Frame 10
onClipEvent (load) {
movedir = "l";
speed = 5;
msgType = "protest";
}
onClipEvent (enterFrame) {
_parent.moveme(this);
}
Instance of Symbol 214 MovieClip in Symbol 215 MovieClip Frame 11
onClipEvent (load) {
function resetVars(t) {
speed = (Math.random() * 5) + 5;
this.stunned = 0;
this.gotoAndStop("walk");
}
movedir = "l";
speed = 5;
msgType = "boris";
bossLives = 5;
}
onClipEvent (enterFrame) {
_parent.bossMove(this);
}
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 22
_parent.attacking = 0;
Symbol 235 MovieClip Frame 11
stop();
Symbol 235 MovieClip Frame 18
stop();
Symbol 236 MovieClip Frame 11
stop();
Symbol 236 MovieClip Frame 18
stop();
Symbol 239 MovieClip Frame 10
_parent._parent.showMsg(_parent);
stop();
Symbol 241 MovieClip Frame 15
_parent.dying = 0;
_parent.dead = 0;
Symbol 242 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 22
_parent.attacking = 0;
Symbol 258 MovieClip Frame 5
stop();
Symbol 258 MovieClip Frame 12
stop();
Symbol 259 MovieClip Frame 10
_parent._parent.showMsg(_parent);
stop();
Symbol 260 MovieClip Frame 15
_parent.dying = 0;
_parent.dead = 0;
Symbol 261 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 22
_parent.attacking = 0;
Symbol 272 MovieClip Frame 5
stop();
Symbol 272 MovieClip Frame 12
stop();
Symbol 273 MovieClip Frame 10
_parent._parent.showMsg(_parent);
stop();
Symbol 274 MovieClip Frame 15
_parent.dying = 0;
_parent.dead = 0;
Symbol 275 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 7
this._visible = 0;
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
id = 3;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
id = 2;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
id = 1;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 2
onClipEvent (load) {
id = 5;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 2
onClipEvent (load) {
id = 4;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 2
onClipEvent (load) {
id = 6;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 3
onClipEvent (load) {
id = 7;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 3
onClipEvent (load) {
id = 8;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 4
onClipEvent (load) {
id = 9;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 4
onClipEvent (load) {
id = 10;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 5
onClipEvent (load) {
id = 11;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 5
onClipEvent (load) {
id = 12;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 6
onClipEvent (load) {
id = 13;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 6
onClipEvent (load) {
id = 14;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 7
onClipEvent (load) {
id = 15;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 7
onClipEvent (load) {
id = 16;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 8
onClipEvent (load) {
id = 18;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 8
onClipEvent (load) {
id = 17;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 9
onClipEvent (load) {
id = 19;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 9
onClipEvent (load) {
id = 21;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 9
onClipEvent (load) {
id = 20;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 10
onClipEvent (load) {
id = 22;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 10
onClipEvent (load) {
id = 27;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 10
onClipEvent (load) {
id = 26;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 10
onClipEvent (load) {
id = 23;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 10
onClipEvent (load) {
id = 24;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 10
onClipEvent (load) {
id = 25;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Instance of Symbol 280 MovieClip in Symbol 281 MovieClip Frame 11
onClipEvent (load) {
id = 28;
if (_parent.itemlist[id] == 0) {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if (_parent.itemlist[id] != 0) {
_parent.checkitem(this);
}
}
Symbol 283 MovieClip Frame 1
this._visible = 0;
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 2
stop();
Symbol 297 MovieClip Frame 3
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Instance of Symbol 297 MovieClip in Symbol 316 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.heroName);
}
Symbol 316 MovieClip Frame 3
stop();
Symbol 316 MovieClip Frame 4
stop();
Symbol 316 MovieClip Frame 5
stop();
Symbol 316 MovieClip Frame 6
stop();
Symbol 316 MovieClip Frame 7
stop();
Symbol 318 MovieClip Frame 1
stop();
Instance of Symbol 316 MovieClip in Symbol 318 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_parent.msgType);
}
Instance of Symbol 316 MovieClip in Symbol 318 MovieClip Frame 49
onClipEvent (load) {
this.gotoAndStop(_parent.msgType);
}
Symbol 318 MovieClip Frame 54
_parent.onDeath(_parent.hero);
Symbol 327 MovieClip Frame 1
function pcSetVars(t) {
var _local1 = t;
for (var _local2 in pcVars) {
_local1[_local2] = pcVars[_local2];
}
_local1.leftKey = 37;
_local1.rightKey = 39;
_local1.jumpKey = 38;
_local1.attackKey = 32;
}
function resetVars(t) {
var _local1 = t;
_local1.dead = 1;
_local1.attackclip.gotoAndStop(1);
_local1.attacking = 0;
_local1.jumping = 0;
_local1.yVel = 0;
}
function removeHero(t) {
var _local3 = t;
var _local2 = 0;
var _local1 = 1000;
while (_local2 != 1) {
if (!getInstanceAtDepth(1000)) {
_local3.swapDepths(_local1);
_local2 = 1;
_local3.removeMovieClip();
}
_local1++;
}
}
function createHero(t) {
var _local1 = t;
_local1.duplicateMovieClip("hero", _local1.getNextHighestDepth());
_local1._parent.hero.swapDepths(_local1);
moveToStart(_local1._parent.hero);
removeHero(_local1);
}
stop();
scrLeft = scrLeft._x;
scrRight = scrRight._x;
scrBottom = scrBottom._y;
theFloor = theFloor._y;
ceiling = ceiling._y;
grav = 1;
numRooms = 11;
totalitems = 28;
itemlist = new Array();
starttime = getTimer();
bgs = 11;
pcVars = new Object();
pcVars.currRoom = 1;
pcVars.score = 0;
pcVars.issues = 0;
pcVars.lives = 5;
pcVars.dead = 0;
pcVars.speed = 7;
pcVars.yOffset = 28;
pcVars.xOffset = 16;
pcVars.yVel = 0;
pcVars.tVel = 11;
pcVars.jumping = 0;
pcVars.dir = 0;
pcVars.jumpSpeed = 12;
function setroom(room) {
var _local1 = room;
backgrounds.gotoAndStop(_local1);
floors.gotoAndStop(_local1);
enemies.gotoAndStop(_local1);
walls.gotoAndStop(_local1);
pickup.gotoAndStop(_local1);
bgs.gotoAndStop(_local1);
startpoints.gotoAndStop(_local1);
}
function change_room(t) {
var _local1 = t;
if (_local1.dir > 0) {
newXpos = scrLeft + 10;
} else {
newXpos = scrRight - 10;
}
_local1.currRoom = _local1.currRoom + _local1.dir;
setroom(_local1.currRoom);
return(newXpos);
}
function showMsg(t) {
messages.play();
}
function saveScores(t) {
var _local1 = t;
var _local2 = _root;
_local2.lives = _local1.lives;
_local2.score = _local1.score;
_local2.issues = _local1.issues;
}
function pcCode(t) {
var _local1 = t;
if (_local1.dead && (!_local1.dying)) {
_local1.gotoAndStop("death");
_local1.dying = 1;
} else if ((!_local1.dead) && (!_local1.paused)) {
checkKeys(_local1);
var _local3 = _local1._x + (_local1.dir * _local1.speed);
var _local2 = _local1._y + _local1.yVel;
if (_local1.yVel < _local1.tVel) {
_local1.yVel = _local1.yVel + grav;
}
if (_local1.yVel > 0) {
_local2 = checkFloors(_local1, _local2);
}
_local3 = checkWalls(_local1, _local3, _local2);
if (_local1.dir != 0) {
_local1._x = _local3;
_local1._xscale = 100 * _local1.dir;
}
_local1._y = _local2;
if (_local1.attacking) {
_local1.attackclip.play();
} else if ((_local1.dir != 0) && (!_local1.jumping)) {
_local1.gotoAndStop("walk");
} else if (_local1.jumping) {
_local1.gotoAndStop("jump");
} else {
_local1.gotoAndStop("stand");
}
if (_local1._y > (scrBottom + _local1.yOffset)) {
_local1.dead = 1;
messages.msgType = "fallout";
}
}
}
function onDeath(t) {
var _local1 = t;
_local1.lives = _local1.lives - 1;
if (_local1.lives == 0) {
saveScores(_local1);
_parent.gotoAndPlay("gameover");
} else {
if (_local1.currRoom > 1) {
_local1.currRoom = _local1.currRoom - 1;
setroom(_local1.currRoom);
}
moveToStart(_local1);
}
}
function moveToStart(t) {
var _local1 = t;
_local1.gotoAndStop("rebirth");
_local1._x = startpoints.start._x;
_local1._y = startpoints.start._y;
}
function checkWalls(t, newXpos, newYpos) {
var _local1 = newXpos;
var _local2 = t;
var _local3 = newYpos;
if ((_local2.currRoom == 1) && (_local1 <= scrLeft)) {
_local1 = scrLeft;
} else if ((_local2._x <= scrLeft) && (_local2.dir < 0)) {
_local1 = change_room(_local2, _local1);
}
if ((_local2.currRoom == numRooms) && (_local1 >= scrRight)) {
_local1 = scrRight;
} else if ((_local1 >= scrRight) && (_local2.dir > 0)) {
_local1 = change_room(_local2, _local1);
}
if (walls.hitTest(_local1 - _local2.xOffset, _local3 + (_local2.yOffset - 5), true)) {
var i = 0;
while (walls.hitTest(_local1 - _local2.xOffset, _local3 + (_local2.yOffset - 5), true)) {
_local1 = _local1 + 1;
}
}
if (walls.hitTest(_local1 + _local2.xOffset, _local3 + (_local2.yOffset - 5), true)) {
var i = 0;
while (walls.hitTest(_local1 + _local2.xOffset, _local3 + (_local2.yOffset - 5), true)) {
_local1 = _local1 - 1;
}
}
return(_local1);
}
function checkFloors(t, newYpos) {
var _local1 = t;
var _local2 = newYpos;
if (floors.hitTest(_local1._x, _local2 + _local1.yOffset, true)) {
_local2 = _local1._y - _local1.tVel;
var _local3 = 0;
while (!floors.hitTest(_local1._x, _local2 + _local1.yOffset, true)) {
_local2 = _local2 + 1;
}
_local2 = _local2 - 1;
_local1.yVel = 0;
_local1.jumping = 0;
}
return(_local2);
}
function checkKeys(t) {
var _local1 = t;
if (Key.isDown(_local1.rightKey) || (Key.isDown(_local1.leftKey))) {
_local1.dir = Key.isDown(_local1.rightKey) - Key.isDown(_local1.leftKey);
} else {
_local1.dir = 0;
}
if (((!_local1.jumping) && (_local1.yVel == 0)) && (Key.isDown(_local1.jumpKey))) {
_local1.jumping = 1;
_local1.yVel = -_local1.jumpSpeed;
}
if ((!_local1.attacking) && (Key.isDown(_local1.attackKey))) {
_local1.attacking = 1;
}
}
Instance of Symbol 215 MovieClip "enemies" in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
function moveme(t) {
var _local1 = t;
var _local2 = _parent;
if (!_local1.dead) {
if (_local1.hitTest(_local2.hero.attackclip.hitarea)) {
_local1.gotoAndStop("die");
_local1.dead = 1;
_local2.hero.issues = _local2.hero.issues + 1;
} else if (_local1.hitTest(_local2.hero.hitarea)) {
_local2.resetVars(_local2.hero);
_local2.messages.msgType = _local1.msgType;
}
moveCalc(_local1);
} else {
_local1.gotoAndStop("die");
}
}
function bossMove(t) {
var _local1 = t;
var _local2 = _parent;
if ((_local1.bossLives > 0) && (!_local1.stunned)) {
if (_local1.hitTest(_local2.hero.attackclip.hitarea)) {
_local1.gotoAndStop("scratch");
_local1.bossLives = _local1.bossLives - 1;
_local1.speed = 0;
_local1.stunned = 1;
_local2.hero.issues = _local2.hero.issues + 1;
} else if (_local1.hitarea.hitTest(_local2.hero.hitarea)) {
_local2.resetVars(_local2.hero);
_local2.messages.msgType = _local1.msgType;
}
moveCalc(_local1);
} else if (_local1.bossLives < 1) {
_local1.gotoAndStop("die");
_root.bonus = 100;
_local2.saveScores(_local2.hero);
_local2.hero.paused = 1;
} else {
_local1.gotoAndStop("scratch");
}
}
function moveCalc(t) {
var _local1 = t;
var _local2 = _parent;
if (_local1.movedir == "l") {
_local1._x = _local1._x - _local1.speed;
_local1._xscale = 100;
if (_local1._x < (_local2.scrLeft + 20)) {
_local1.movedir = "r";
}
}
if (_local1.movedir == "r") {
_local1._x = _local1._x + _local1.speed;
_local1._xscale = -100;
if (_local1._x > (_local2.scrRight - 20)) {
_local1.movedir = "l";
}
}
if (_local1.movedir == "u") {
_local1._y = _local1._y - _local1.speed;
if ((_local1._y - _local1.offset) < _local2.ceiling) {
_local1.movedir = "d";
}
}
if (_local1.movedir == "d") {
_local1._y = _local1._y + _local1.speed;
if ((_local1._y + _local1.offset) > _local2.theFloor) {
_local1.movedir = "u";
}
}
}
this.stop();
}
Instance of Symbol 242 MovieClip "blunkers" in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
if (_root.heroName != "blunkett") {
_parent.removeHero(this);
} else if (this._name != "hero") {
_parent.createHero(this);
}
id = 1;
_parent.pcSetVars(this);
}
onClipEvent (enterFrame) {
_parent.pcCode(this);
}
Instance of Symbol 261 MovieClip "blair" in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
if (_root.heroName != "blair") {
_parent.removeHero(this);
} else if (this._name != "hero") {
_parent.createHero(this);
}
id = 2;
_parent.pcSetVars(this);
}
onClipEvent (enterFrame) {
_parent.pcCode(this);
}
Instance of Symbol 275 MovieClip "brown" in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
if (_root.heroName != "brown") {
_parent.removeHero(this);
} else if (this._name != "hero") {
_parent.createHero(this);
}
id = 3;
_parent.pcSetVars(this);
}
onClipEvent (enterFrame) {
_parent.pcCode(this);
}
Instance of Symbol 281 MovieClip "pickup" in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
function checkitem(t) {
var _local1 = t;
if (_local1.hitTest(_parent.hero.hitarea)) {
_local1.play();
_parent.hero.score = _parent.hero.score + 1;
itemlist[_local1.id] = 0;
}
}
function checksunny(t) {
var _local1 = _parent;
if (t.hitTest(_local1.hero)) {
if (_local1.hero.score == _local1.totalitems) {
_local1.gotoAndPlay("youwin");
} else {
t.gotoAndStop(2);
}
}
}
itemlist = _parent.itemlist;
this.stop();
}
Instance of Symbol 283 MovieClip "ceiling" in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 284 MovieClip "startpoints" in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 320 MovieClip in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
text1 = " OF ";
text2 = " PAGES RECOVERED";
currentscore = -1;
}
onClipEvent (enterFrame) {
if (currentscore != _parent.hero.score) {
this.score = ((_parent.hero.score + text1) + _parent.totalitems) + text2;
}
}
Instance of Symbol 322 MovieClip in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
text1 = " SECS";
starttime = _parent.starttime;
}
onClipEvent (enterFrame) {
var currenttime = Math.floor((getTimer() - starttime) / 1000);
if (_root.gameTime != currenttime) {
this.gameTime = currenttime + text1;
_root.gameTime = currenttime;
}
}
Instance of Symbol 324 MovieClip in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
text1 = " SWING SEATS REMAINING";
}
onClipEvent (enterFrame) {
if (currentLives != _parent.hero.lives) {
currentLives = _parent.hero.lives;
this.lives = currentLives + text1;
}
}
Instance of Symbol 326 MovieClip in Symbol 327 MovieClip Frame 1
onClipEvent (load) {
text1 = " ISSUES BURIED";
}
onClipEvent (enterFrame) {
if (currIssues != _parent.hero.issues) {
currIssues = _parent.hero.issues;
this.issues = currIssues + text1;
}
}
Symbol 333 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 2
stop();
Symbol 333 MovieClip Frame 3
stop();
Symbol 340 MovieClip Frame 1
function fillVals() {
var _local1 = this;
var _local2 = _root;
_local1.gameTime = _local1.gameTime + _local2.gameTime;
_local1.score = _local1.score + _local2.score;
_local1.issues = _local1.issues + _local2.issues;
if (_local2.bonus) {
_local1.bonus = _local1.bonus + _local2.bonus;
} else {
_local1.bonus = "";
_local2.bonus = 0;
}
_local1.buildScore();
_local1.finalscore = _local1.finalscore + _local2.a;
}
function buildScore() {
var _local1 = _root;
var _local2 = ((1 / Math.sqrt(_local1.gameTime)) * _local1.score) * 1000;
_local1.a = (Math.round(_local2) + (_local1.issues * 10)) + _local1.bonus;
_local1.b = Math.floor(Math.pow(Math.log(Math.atan2(19.81, _local1.a)), 8));
}
fillVals();
Symbol 344 Button
on (release) {
_root.gotoAndStop("scoreboard");
}
Symbol 346 Button
on (release) {
_root.gotoAndPlay("startpage");
}
Instance of Symbol 333 MovieClip in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.heroName);
}
Symbol 347 MovieClip Frame 37
stop();
Instance of Symbol 333 MovieClip in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.heroName);
}
Symbol 355 MovieClip Frame 38
stop();
Symbol 361 MovieClip Frame 1
this._visible = false;
Symbol 377 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Instance of Symbol 361 MovieClip "mcHighscores" in Symbol 383 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 383 MovieClip Frame 2
if (_url.indexOf("miniclip.com") == -1) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?" + noCache);
stop();
}
Symbol 383 MovieClip Frame 3
stop();
Instance of Symbol 333 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.heroName);
}
Instance of Symbol 383 MovieClip "comHighscores" in Symbol 384 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
scoreLocation = "_root.a";
gamename = "kungfu";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 384 MovieClip Frame 32
stop();