Section 1
//achtersteGebouwen_63 (derMenschEnglish_fla.achtersteGebouwen_63)
package derMenschEnglish_fla {
import flash.display.*;
public dynamic class achtersteGebouwen_63 extends MovieClip {
public function achtersteGebouwen_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package derMenschEnglish_fla
Section 2
//flatearth_62 (derMenschEnglish_fla.flatearth_62)
package derMenschEnglish_fla {
import flash.display.*;
public dynamic class flatearth_62 extends MovieClip {
public var voorsteBouw:MovieClip;
public var achtersteBouw:MovieClip;
}
}//package derMenschEnglish_fla
Section 3
//flatearthempty_1 (derMenschEnglish_fla.flatearthempty_1)
package derMenschEnglish_fla {
import flash.display.*;
public dynamic class flatearthempty_1 extends MovieClip {
public function flatearthempty_1(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package derMenschEnglish_fla
Section 4
//MainTimeline (derMenschEnglish_fla.MainTimeline)
package derMenschEnglish_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var teller:uint;
public var aardeClip:MovieClip;
public var maxBevolking:uint;
public var gold:uint;
public var menuBtn:MovieClip;
public var playBtn:MovieClip;
public var container:MovieClip;
public var secondenTeller:uint;
public var instructieBtn:MovieClip;
public var xSpeed:uint;
public var pauze:Boolean;
public var spawnPoint:spawnClip;
public var aardeBtn:MovieClip;
public var gaNaar:String;
public var light:lightClip;
public var loadBar:MovieClip;
public var dragging:MovieClip;
public var timer:Timer;
public var menu:menuClip;
public var muted:Boolean;
public var bouw:bouwClip;
public var subMenu:MovieClip;
public var goldClip:GoldClip;
public var filosofieBtn:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 19, frame20, 37, frame38, 39, frame40, 58, frame59);
}
public function gameOverToMenu(_arg1:MouseEvent):void{
gotoAndPlay("hoofdMenu", "pre");
removeChild(_arg1.target.parent);
_arg1.target.removeEventListener(MouseEvent.CLICK, gotoMenu);
}
public function bevolkingHandler(_arg1:Event):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
if (_local2.y <= 23){
_local2.y = (_local2.y + 2);
};
_local2.fillBar.scaleX = (container.numChildren / maxBevolking);
_local2.procentField.text = (Math.floor(((container.numChildren / maxBevolking) * 100)) + "%");
}
public function hoofdMenuHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
if (_local2.parent == subMenu){
_local2.btnBg.alpha = 1;
_local2.addEventListener(MouseEvent.MOUSE_OUT, removeBgHandler);
switch (_local2){
case subMenu.pauze:
_local2.addEventListener(MouseEvent.CLICK, pauzeHandler);
break;
case subMenu.muteClip:
_local2.addEventListener(MouseEvent.CLICK, muteHandler);
break;
case subMenu.quit:
_local2.addEventListener(MouseEvent.CLICK, quitHandler);
break;
};
};
}
public function quitHandler(_arg1:MouseEvent):void{
var _local2:uint;
var _local3:MovieClip;
_local2 = 0;
while (_local2 < container.numChildren) {
_local3 = MovieClip(container.getChildAt(_local2));
if (_local3.y != 375){
_local3.addEventListener(Event.ENTER_FRAME, afgrondHandler);
} else {
sterf(_local3);
};
_local2++;
};
}
public function adamEnEva():void{
var _local1:uint;
var _local2:MovieClip;
_local1 = 0;
while (_local1 < container.numChildren) {
_local2 = MovieClip(container.getChildAt(0));
_local2.stop();
_local2.removeEventListener(Event.ENTER_FRAME, wandelHandler);
_local2.removeEventListener(Event.ENTER_FRAME, botsHandler);
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, mensDragHandler);
container.removeChild(_local2);
};
addMens("man", 100, 100, (stage.stageWidth / 2));
addMens("vrouw", (stage.stageWidth - 100), 100, (stage.stageWidth / 2));
}
public function botsHandler(_arg1:Event):void{
var _local2:MovieClip;
var _local3:uint;
var _local4:MovieClip;
var _local5:Number;
var _local6:String;
if (pauze == false){
_local2 = MovieClip(_arg1.target);
_local3 = 0;
while (_local3 < _local2.parent.numChildren) {
_local4 = MovieClip(_local2.parent.getChildAt(_local3));
if (((!((_local2 == _local4))) && (_local2.hitTestObject(_local4)))){
if (((((!((_local2.geslacht == _local4.geslacht))) && ((_local2.zwangerSchapsDelay == 0)))) && ((_local4.zwangerSchapsDelay == 0)))){
_local5 = (Math.random() * 2);
if (_local5 < 1){
_local6 = "vrouw";
} else {
_local6 = "man";
};
_local2.zwangerSchapsDelay = (stage.frameRate * 3);
_local4.zwangerSchapsDelay = (stage.frameRate * 3);
_local2.addEventListener(Event.ENTER_FRAME, zwangerSchapsHandler);
_local4.addEventListener(Event.ENTER_FRAME, zwangerSchapsHandler);
addMens(_local6, spawnPoint.x, spawnPoint.y, (Math.random() * 800));
};
changeDirection(_local2);
changeDirection(_local4);
};
_local3++;
};
};
}
public function mensValHandler(_arg1:Event):void{
teller++;
if (teller >= 45){
mensVal();
gotoAndPlay("zakken");
bouw.addEventListener(Event.ENTER_FRAME, tweenDownHandler);
stage.removeEventListener(Event.ENTER_FRAME, mensValHandler);
};
}
public function welkeValHandler(_arg1:MovieClip):void{
_arg1.ySpeed = 1;
if ((((((_arg1.x > 50)) && ((_arg1.x < (stage.stageWidth - 50))))) && ((_arg1.y < 375)))){
_arg1.addEventListener(Event.ENTER_FRAME, valHandler);
} else {
_arg1.addEventListener(Event.ENTER_FRAME, afgrondHandler);
};
}
public function timerHandler(_arg1:TimerEvent):void{
secondenTeller++;
}
public function einde():void{
var _local1:gameOverClip;
stop();
spawnPoint.removeEventListener(MouseEvent.MOUSE_DOWN, dragSpawnPoint);
removeChild(spawnPoint);
_local1 = new gameOverClip();
_local1.x = (stage.stageWidth / 2);
_local1.y = (stage.stageHeight / 2);
_local1.goldField.text = String(gold);
_local1.secondenField.text = (String(secondenTeller) + "sec");
_local1.uitlegField.text = (("Apparently, human race isn't ment to last longer then " + String(secondenTeller)) + "seconds :p.");
_local1.menuBtn.buttonMode = true;
_local1.menuBtn.addEventListener(MouseEvent.CLICK, gameOverToMenu);
addChild(_local1);
}
public function progressHandler(_arg1:ProgressEvent):void{
loadBar.scaleX = (_arg1.bytesLoaded / _arg1.bytesTotal);
}
public function manageMenu():void{
var _local1:uint;
var _local2:MovieClip;
addChild(menu);
_local1 = 1;
while (_local1 < menu.numChildren) {
_local2 = MovieClip(menu.getChildAt(_local1));
_local2.buttonMode = true;
_local2.mouseChildren = false;
_local1++;
};
menu.addEventListener(MouseEvent.CLICK, menuHandler);
}
function frame1(){
loadIt();
}
public function womenSprayer(_arg1:MouseEvent):void{
spray("vrouw");
removeChild(getChildAt((numChildren - 1)));
stage.removeEventListener(MouseEvent.MOUSE_UP, womenSprayer);
}
function frame20(){
startMenu();
}
public function instructieHandler(_arg1:MouseEvent):void{
play();
gaNaar = "instructie";
_arg1.target.removeEventListener(MouseEvent.CLICK, instructieHandler);
removeChild(playBtn);
removeChild(filosofieBtn);
}
public function startHandler(_arg1:MouseEvent):void{
gotoAndPlay("begin");
}
public function minHandler(_arg1:uint, _arg2:uint, _arg3:int, _arg4:uint):void{
var _local5:minEenClip;
_local5 = new minEenClip();
refreshGoldField(-(_arg4));
_local5.x = _arg1;
_local5.y = _arg2;
_local5.ySpeed = _arg3;
_local5.aantalField.text = String(-(_arg4));
addChild(_local5);
_local5.addEventListener(Event.ENTER_FRAME, tweenMinHandler);
}
function frame38(){
instructie();
}
public function mouseOutHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
getChildAt((numChildren - 2)).removeEventListener(Event.ENTER_FRAME, widthTweenHandler);
getChildAt((numChildren - 2)).addEventListener(Event.ENTER_FRAME, negativeWidthTweenHandler);
_local2 = MovieClip(_arg1.target);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
}
public function wandelHandler(_arg1:Event):void{
var _local2:MovieClip;
if (pauze == false){
_local2 = MovieClip(_arg1.target);
if (Math.abs((_local2.doel - _local2.x)) > xSpeed){
if ((_local2.doel - _local2.x) < 0){
_local2.x = (_local2.x - xSpeed);
} else {
_local2.x = (_local2.x + xSpeed);
};
} else {
_local2.doel = Math.round((Math.random() * 800));
};
if ((((_local2.x < 50)) || ((_local2.x > (stage.stageWidth - 50))))){
_local2.addEventListener(Event.ENTER_FRAME, afgrondHandler);
_local2.removeEventListener(Event.ENTER_FRAME, wandelHandler);
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, mensDragHandler);
_local2.removeEventListener(Event.ENTER_FRAME, botsHandler);
_local2.ySpeed = 1;
_local2.gotoAndPlay("falling");
};
_local2.leeftijd++;
if ((_local2.leeftijd % 30) == 0){
refreshGoldField(1);
};
if (_local2.leeftijd >= _local2.levensVerwachting){
sterf(_local2);
};
};
}
function frame40(){
xSpeed = 1;
menu = new menuClip();
container = new MovieClip();
spawnPoint = new spawnClip();
maxBevolking = 100;
gold = 0;
goldClip = new GoldClip();
teller = 0;
muted = false;
pauze = false;
secondenTeller = 0;
init();
}
public function spray(_arg1:String):void{
var _local2:uint;
_local2 = 0;
while (_local2 < 5) {
addMens(_arg1, (mouseX + (Math.random() * 10)), (mouseY + (Math.random() * 10)), (Math.random() * 800));
_local2++;
};
}
public function loadIt():void{
stop();
NewgroundsAPI.linkAPI(this);
NewgroundsAPI.connectMovie(5086);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
loaderInfo.addEventListener(Event.COMPLETE, completeHandler);
}
public function bouwHandler(_arg1:Event):void{
if (container.numChildren >= maxBevolking){
aardeClip.voorsteBouw.nextFrame();
aardeClip.achtersteBouw.nextFrame();
if ((((aardeClip.voorsteBouw.currentFrame >= aardeClip.voorsteBouw.totalFrames)) && ((aardeClip.achtersteBouw.currentFrame >= aardeClip.achtersteBouw.totalFrames)))){
gameOverHandler("bebouwing");
};
} else {
if (container.numChildren == 0){
gameOverHandler("uitgeroeid");
};
};
}
public function gameOverHandler(_arg1:String):void{
var _local2:uint;
var _local3:MovieClip;
stage.removeEventListener(Event.ENTER_FRAME, bouwHandler);
stage.removeEventListener(MouseEvent.CLICK, menuHandler);
removeChild(menu);
removeChild(goldClip);
switch (_arg1){
case "bebouwing":
_local2 = 0;
while (_local2 < container.numChildren) {
_local3 = MovieClip(container.getChildAt(_local2));
_local3.removeEventListener(Event.ENTER_FRAME, wandelHandler);
_local3.removeEventListener(Event.ENTER_FRAME, botsHandler);
_local3.removeEventListener(MouseEvent.MOUSE_DOWN, mensDragHandler);
_local3.removeEventListener(MouseEvent.MOUSE_UP, stopMensDragHandler);
sterf(_local3);
_local3.gotoAndStop("walking");
if (_local3.y < 375){
_local3.addEventListener(Event.ENTER_FRAME, afgrondHandler);
};
_local2++;
};
bouw = new bouwClip();
bouw.x = (stage.stageWidth / 2);
bouw.y = 366;
bouw.ySpeed = 1;
addChild(bouw);
setChildIndex(container, (numChildren - 1));
stage.addEventListener(Event.ENTER_FRAME, mensValHandler);
break;
case "uitgeroeid":
einde();
break;
};
}
public function mirakelMenuHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:uint;
var _local4:MovieClip;
var _local5:uint;
var _local6:String;
_local2 = MovieClip(_arg1.target);
if (gold > 100){
switch (_local2){
case subMenu.sprayWomen:
stage.addEventListener(MouseEvent.MOUSE_UP, womenSprayer);
minHandler(mouseX, mouseY, 10, 100);
mirakelDragHandler(_local2);
break;
case subMenu.sprayMen:
stage.addEventListener(MouseEvent.MOUSE_UP, menSprayer);
minHandler(mouseX, mouseY, 10, 100);
mirakelDragHandler(_local2);
break;
};
};
if (gold > 400){
switch (_local2){
case subMenu.sprayBoth:
stage.addEventListener(MouseEvent.MOUSE_UP, bothSprayer);
minHandler(mouseX, mouseY, 10, 400);
mirakelDragHandler(_local2);
break;
};
};
if (gold > 800){
switch (_local2){
case subMenu.evenwichtClip:
_local3 = 0;
while (_local3 < container.numChildren) {
_local4 = MovieClip(container.getChildAt(0));
_local4.stop();
_local4.removeEventListener(Event.ENTER_FRAME, wandelHandler);
_local4.removeEventListener(Event.ENTER_FRAME, botsHandler);
_local4.removeEventListener(MouseEvent.MOUSE_DOWN, mensDragHandler);
container.removeChild(_local4);
};
_local5 = 0;
while (_local3 < 50) {
if (_local3 < 25){
_local6 = "vrouw";
} else {
_local6 = "man";
};
addMens(_local6, (100 + ((600 / 50) * _local3)), 200, (Math.random() * 800));
_local3++;
};
minHandler(mouseX, mouseY, 10, 800);
break;
};
};
if (gold > 1500){
switch (_local2){
case subMenu.adamEvaClip:
adamEnEva();
minHandler(mouseX, mouseY, 10, 1500);
break;
};
};
}
public function filosofieHandler(_arg1:MouseEvent):void{
play();
gaNaar = "filosofie";
_arg1.target.removeEventListener(MouseEvent.CLICK, instructieHandler);
removeChild(playBtn);
removeChild(instructieBtn);
}
function frame59(){
einde();
}
public function addGoldField():void{
goldClip.x = (stage.stageWidth - 5);
goldClip.y = 0;
addChild(goldClip);
}
public function tweenDownHandler(_arg1:Event):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
_local2.y = (_local2.y + _local2.ySpeed);
_local2.ySpeed = (_local2.ySpeed * 1.2);
if ((_local2.y + _local2.height) == stage.stageHeight){
_local2.removeEventListener(Event.ENTER_FRAME, tweenDownHandler);
removeChild(_local2);
};
}
public function addContainer():void{
container.x = 0;
container.y = 0;
addChild(container);
spawnPoint.x = (stage.stageWidth / 2);
spawnPoint.y = 100;
spawnPoint.buttonMode = true;
spawnPoint.mouseChildren = false;
addChild(spawnPoint);
spawnPoint.addEventListener(MouseEvent.MOUSE_DOWN, dragSpawnPoint);
}
public function startMenu():void{
var _local1:uint;
var _local2:MovieClip;
stop();
_local1 = 1;
while (_local1 <= 3) {
_local2 = MovieClip(getChildAt((numChildren - _local1)));
_local2.buttonMode = true;
_local2.mouseChildren = false;
_local2.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
_local2.addEventListener(MouseEvent.CLICK, removeLightHandler);
_local1++;
};
playBtn.addEventListener(MouseEvent.CLICK, playHandler);
instructieBtn.addEventListener(MouseEvent.CLICK, instructieHandler);
filosofieBtn.addEventListener(MouseEvent.CLICK, filosofieHandler);
}
public function mensVal():void{
var _local1:uint;
var _local2:MovieClip;
_local1 = 0;
while (_local1 < container.numChildren) {
_local2 = MovieClip(container.getChildAt(_local1));
_local2.gotoAndPlay("falling");
_local2.ySpeed = 1;
_local2.y = (_local2.y - 10);
_local2.addEventListener(Event.ENTER_FRAME, afgrondHandler);
_local1++;
};
}
public function valHandler(_arg1:Event):void{
var _local2:MovieClip;
if (pauze == false){
_local2 = MovieClip(_arg1.target);
_local2.y = (_local2.y + _local2.ySpeed);
if (_local2.y >= 375){
_local2.removeEventListener(Event.ENTER_FRAME, valHandler);
_local2.y = 375;
_local2.gotoAndPlay("walking");
_local2.addEventListener(Event.ENTER_FRAME, wandelHandler);
_local2.addEventListener(Event.ENTER_FRAME, botsHandler);
_local2.addEventListener(MouseEvent.MOUSE_DOWN, mensDragHandler);
};
_local2.ySpeed = (_local2.ySpeed * 1.2);
};
}
public function menuHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:uint;
var _local4:mirakelMenuClip;
var _local5:hoofdMenuClip;
_local2 = MovieClip(_arg1.target);
if (_local2 != menu.menuBg){
if (menu.getChildAt(0) != menu.menuBg){
menu.removeChild(menu.getChildAt(0));
};
menu.btnBgClip.x = _local2.x;
menu.btnBgClip.width = _local2.width;
switch (_local2){
case menu.bevolkingBtn:
addProgressBar().addEventListener(Event.ENTER_FRAME, bevolkingHandler);
break;
case menu.mirakelBtn:
_local4 = new mirakelMenuClip();
subMenu = _local4;
addSubMenu("mirakel");
break;
case menu.hoofdBtn:
_local5 = new hoofdMenuClip();
subMenu = _local5;
addSubMenu("hoofd");
break;
};
_local3 = 2;
while (_local3 < menu.numChildren) {
if ((((menu.btnBgClip.x == menu.getChildAt(_local3).x)) && (!((menu.btnBgClip == menu.getChildAt(_local3)))))){
break;
} else {
if (((!((menu.btnBgClip.x == menu.getChildAt(_local3).x))) && ((_local3 == (menu.numChildren - 1))))){
menu.btnBgClip.x = -(menu.btnBgClip.width);
};
};
_local3++;
};
};
}
public function muteHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:SoundTransform;
_local2 = MovieClip(_arg1.target);
if (muted){
_local3 = new SoundTransform(1);
SoundMixer.soundTransform = _local3;
_local2.gotoAndStop("On");
muted = false;
} else {
_local3 = new SoundTransform(0);
SoundMixer.soundTransform = _local3;
_local2.gotoAndStop("Mute");
muted = true;
};
}
public function afgrondHandler(_arg1:Event):void{
var _local2:MovieClip;
if (pauze == false){
_local2 = MovieClip(_arg1.target);
if (_local2.y >= stage.stageHeight){
_local2.removeEventListener(Event.ENTER_FRAME, afgrondHandler);
container.removeChild(_local2);
minHandler(_local2.x, (stage.stageHeight + (stage.stageHeight - _local2.y)), -10, 10);
};
_local2.y = (_local2.y + _local2.ySpeed);
_local2.ySpeed = (_local2.ySpeed * 1.2);
};
}
public function init():void{
stop();
addContainer();
adamEnEva();
manageMenu();
addGoldField();
refreshGoldField(100);
stage.addEventListener(Event.ENTER_FRAME, bouwHandler);
timer = new Timer(1000, 0);
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.start();
}
public function dragSpawnPoint(_arg1:MouseEvent):void{
spawnPoint.startDrag();
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragSpawnPoint);
}
public function removeBgHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
_local2.btnBg.alpha = 0;
switch (_local2){
case subMenu.pauze:
_local2.removeEventListener(MouseEvent.CLICK, pauzeHandler);
break;
case subMenu.muteClip:
_local2.removeEventListener(MouseEvent.CLICK, muteHandler);
break;
case subMenu.quit:
_local2.removeEventListener(MouseEvent.CLICK, quitHandler);
break;
};
}
public function widthTweenHandler(_arg1:Event):void{
if (light.scaleX > 0.99){
light.scaleX = 1;
light.removeEventListener(Event.ENTER_FRAME, widthTweenHandler);
} else {
light.scaleX = (light.scaleX + ((1 - light.scaleX) / 6));
};
}
public function mirakelDragHandler(_arg1:MovieClip):void{
addChild(_arg1);
_arg1.alpha = 0.5;
_arg1.startDrag();
}
public function sterf(_arg1:MovieClip):void{
_arg1.removeEventListener(Event.ENTER_FRAME, wandelHandler);
_arg1.removeEventListener(Event.ENTER_FRAME, botsHandler);
_arg1.removeEventListener(MouseEvent.MOUSE_DOWN, mensDragHandler);
_arg1.zwangerSchapsDelay = 1000;
_arg1.gotoAndPlay("sterf");
}
public function addProgressBar():MovieClip{
var _local1:progressClip;
_local1 = new progressClip();
_local1.x = 0;
_local1.y = (menu.height - _local1.height);
menu.addChildAt(_local1, 0);
return (_local1);
}
public function gotoMenu(_arg1:MouseEvent):void{
gotoAndPlay("hoofdMenu", "pre");
_arg1.target.removeEventListener(MouseEvent.CLICK, gotoMenu);
}
public function tweenMinHandler(_arg1:Event):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
_local2.y = (_local2.y + _local2.ySpeed);
if (Math.abs(_local2.ySpeed) < 0.5){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, tweenMinHandler);
};
_local2.ySpeed = (_local2.ySpeed / 1.2);
}
public function menSprayer(_arg1:MouseEvent):void{
spray("man");
removeChild(getChildAt((numChildren - 1)));
stage.removeEventListener(MouseEvent.MOUSE_UP, menSprayer);
}
public function bothSprayer(_arg1:MouseEvent):void{
spray("man");
spray("vrouw");
removeChild(getChildAt((numChildren - 1)));
stage.removeEventListener(MouseEvent.MOUSE_UP, bothSprayer);
}
public function playHandler(_arg1:MouseEvent):void{
gotoAndStop("game", "game");
_arg1.target.removeEventListener(MouseEvent.CLICK, playHandler);
}
public function stopMensDragHandler(_arg1:MouseEvent):void{
dragging.stopDrag();
welkeValHandler(dragging);
stage.removeEventListener(MouseEvent.MOUSE_UP, stopMensDragHandler);
}
public function pauzeHandler(_arg1:MouseEvent):void{
var _local2:uint;
var _local3:MovieClip;
var _local4:uint;
var _local5:MovieClip;
if (pauze){
pauze = false;
_local2 = 0;
while (_local2 < container.numChildren) {
_local3 = MovieClip(container.getChildAt(_local2));
_local3.play();
timer.start();
_local2++;
};
} else {
pauze = true;
_local4 = 0;
while (_local4 < container.numChildren) {
_local5 = MovieClip(container.getChildAt(_local4));
_local5.stop();
timer.stop();
_local4++;
};
};
}
public function tweenMenuHandler(_arg1:Event):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
if (_local2.y < 20){
_local2.y = (_local2.y + (_local2.height / 10));
} else {
_local2.y = 20;
_local2.removeEventListener(Event.ENTER_FRAME, tweenMenuHandler);
};
}
public function negativeWidthTweenHandler(_arg1:Event):void{
if (light.scaleX < 0.1){
light.removeEventListener(Event.ENTER_FRAME, negativeWidthTweenHandler);
removeChild(light);
} else {
light.scaleX = (light.scaleX - (light.scaleX / 6));
};
}
public function addMens(_arg1:String, _arg2:uint, _arg3:uint, _arg4:uint):void{
var _local5:MovieClip;
switch (_arg1){
case "man":
_local5 = new manClip();
break;
case "vrouw":
_local5 = new vrouwClip();
break;
};
if (Math.random() < 0.5){
_local5.scaleX = -1;
} else {
_local5.scaleX = 1;
};
_local5.x = _arg2;
_local5.y = _arg3;
_local5.buttonMode = true;
_local5.mouseChildren = false;
_local5.zwangerSchapsDelay = 0;
_local5.levensVerwachting = Math.round((stage.frameRate * ((Math.random() * 2) + 18)));
_local5.leeftijd = 0;
_local5.geslacht = _arg1;
_local5.doel = _arg4;
_local5.ySpeed = 1;
container.addChild(_local5);
welkeValHandler(_local5);
}
public function changeDirection(_arg1:MovieClip):void{
if ((_arg1.doel - _arg1.x) < 0){
_arg1.doel = Math.round(((Math.random() * (stage.stageWidth - _arg1.x)) + _arg1.x));
} else {
_arg1.doel = Math.round((Math.random() * _arg1.x));
};
}
public function completeHandler(_arg1:Event):void{
aardeBtn.gotoAndStop(2);
aardeBtn.buttonMode = true;
aardeBtn.mouseChildren = false;
aardeBtn.addEventListener(MouseEvent.CLICK, startHandler);
}
public function stopDragSpawnPoint(_arg1:MouseEvent):void{
spawnPoint.stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragSpawnPoint);
if (spawnPoint.y < 25){
spawnPoint.y = 50;
};
}
public function zwangerSchapsHandler(_arg1:Event):void{
var _local2:MovieClip;
if (pauze == false){
_local2 = MovieClip(_arg1.target);
if (_local2.zwangerSchapsDelay == 0){
} else {
_local2.zwangerSchapsDelay = (_local2.zwangerSchapsDelay - 1);
};
};
}
public function instructie():void{
stop();
playBtn.buttonMode = true;
menuBtn.buttonMode = true;
playBtn.addEventListener(MouseEvent.CLICK, playHandler);
menuBtn.addEventListener(MouseEvent.CLICK, gotoMenu);
gotoAndStop(gaNaar);
}
public function mensDragHandler(_arg1:MouseEvent):void{
if (pauze == false){
dragging = MovieClip(_arg1.target);
dragging.startDrag();
dragging.gotoAndPlay("falling");
dragging.removeEventListener(Event.ENTER_FRAME, wandelHandler);
dragging.removeEventListener(Event.ENTER_FRAME, botsHandler);
dragging.removeEventListener(Event.ENTER_FRAME, valHandler);
dragging.removeEventListener(Event.ENTER_FRAME, afgrondHandler);
stage.addEventListener(MouseEvent.MOUSE_UP, stopMensDragHandler);
};
}
public function addSubMenu(_arg1:String):void{
var _local2:uint;
var _local3:MovieClip;
subMenu.x = 0;
subMenu.y = -(subMenu.height);
menu.addChildAt(subMenu, 0);
_local2 = 1;
while (_local2 < subMenu.numChildren) {
_local3 = MovieClip(subMenu.getChildAt(_local2));
_local3.buttonMode = true;
_local3.mouseChildren = false;
_local2++;
};
if (_arg1 == "hoofd"){
subMenu.addEventListener(MouseEvent.MOUSE_OVER, hoofdMenuHandler);
if (muted){
subMenu.muteClip.gotoAndStop("Mute");
};
} else {
if (_arg1 == "mirakel"){
subMenu.addEventListener(MouseEvent.CLICK, mirakelMenuHandler);
};
};
subMenu.addEventListener(Event.ENTER_FRAME, tweenMenuHandler);
}
public function refreshGoldField(_arg1:int):void{
var _local2:Sound;
if ((gold + _arg1) < 0){
gold = 0;
} else {
gold = (gold + _arg1);
};
if (Math.abs(_arg1) > 10){
if (Math.random() < 0.5){
_local2 = new coinSound1();
} else {
_local2 = new coinSound2();
};
_local2.play();
};
goldClip.goldField.text = String(gold);
}
public function mouseOverHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
if (getChildAt((numChildren - 2)) == light){
light.removeEventListener(Event.ENTER_FRAME, negativeWidthTweenHandler);
removeChild(light);
};
_local2 = MovieClip(_arg1.target);
light = new lightClip();
light.x = _local2.x;
light.y = (_local2.y + 5);
light.scaleX = 0.1;
addChild(light);
setChildIndex(_local2, (numChildren - 1));
light.addEventListener(Event.ENTER_FRAME, widthTweenHandler);
_local2.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
}
public function removeLightHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
light.removeEventListener(Event.ENTER_FRAME, negativeWidthTweenHandler);
_local2.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
removeChild(light);
removeChild(_local2);
}
}
}//package derMenschEnglish_fla
Section 5
//NG_AD_OBJECT_7 (derMenschEnglish_fla.NG_AD_OBJECT_7)
package derMenschEnglish_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class NG_AD_OBJECT_7 extends MovieClip {
public var ng_ad:MovieClip;
public var NG_Button:SimpleButton;
public function NG_AD_OBJECT_7(){
addFrameScript(0, frame1);
}
public function loadNGSite(_arg1:Event){
NewgroundsAPI.loadNewgrounds();
}
public function startAd(_arg1){
var _local2:URLLoader;
_local2 = new URLLoader(new URLRequest(_arg1));
_local2.addEventListener(Event.COMPLETE, ad_Loaded);
}
function frame1(){
Security.allowDomain("70.87.128.99");
Security.allowInsecureDomain("70.87.128.99");
Security.allowDomain("ads.shizmoo.com");
Security.allowInsecureDomain("ads.shizmoo.com");
Security.allowDomain("www.cpmstar.com");
Security.allowInsecureDomain("www.cpmstar.com");
Security.allowDomain("server.cpmstar.com");
Security.allowInsecureDomain("server.cpmstar.com");
if (NewgroundsAPI.getAdURL()){
startAd(NewgroundsAPI.getAdURL());
};
NewgroundsAPI.addEventListener(NewgroundsAPI.ADS_APPROVED, startAd);
NG_Button.addEventListener(MouseEvent.CLICK, loadNGSite);
stop();
}
public function ad_Loaded(_arg1:Event){
var _local2:*;
var _local3:Loader;
_local2 = String(_arg1.target.data);
_local3 = new Loader();
_local3.load(new URLRequest(_local2));
ng_ad.addChild(_local3);
}
}
}//package derMenschEnglish_fla
Section 6
//NG_TANK_9 (derMenschEnglish_fla.NG_TANK_9)
package derMenschEnglish_fla {
import flash.events.*;
import flash.display.*;
public dynamic class NG_TANK_9 extends MovieClip {
public var NG_Logo:SimpleButton;
public function NG_TANK_9(){
addFrameScript(0, frame1);
}
public function loadNGSite(_arg1:Event){
NewgroundsAPI.loadNewgrounds();
}
function frame1(){
NG_Logo.addEventListener(MouseEvent.CLICK, loadNGSite);
}
}
}//package derMenschEnglish_fla
Section 7
//soundjes_47 (derMenschEnglish_fla.soundjes_47)
package derMenschEnglish_fla {
import flash.display.*;
public dynamic class soundjes_47 extends MovieClip {
public function soundjes_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package derMenschEnglish_fla
Section 8
//specular_5 (derMenschEnglish_fla.specular_5)
package derMenschEnglish_fla {
import flash.display.*;
public dynamic class specular_5 extends MovieClip {
public function specular_5(){
addFrameScript(29, frame30);
}
function frame30(){
this.gotoAndPlay(Math.round((Math.random() * 30)));
}
}
}//package derMenschEnglish_fla
Section 9
//spelPauzeren_37 (derMenschEnglish_fla.spelPauzeren_37)
package derMenschEnglish_fla {
import flash.display.*;
public dynamic class spelPauzeren_37 extends MovieClip {
public var btnBg:MovieClip;
}
}//package derMenschEnglish_fla
Section 10
//spelStoppen_36 (derMenschEnglish_fla.spelStoppen_36)
package derMenschEnglish_fla {
import flash.display.*;
public dynamic class spelStoppen_36 extends MovieClip {
public var btnBg:MovieClip;
}
}//package derMenschEnglish_fla
Section 11
//willekeurigehoogte_3 (derMenschEnglish_fla.willekeurigehoogte_3)
package derMenschEnglish_fla {
import flash.events.*;
import flash.display.*;
public dynamic class willekeurigehoogte_3 extends MovieClip {
public var difference:int;
public var maxHoogte:uint;
public var hoogte:uint;
public function willekeurigehoogte_3(){
addFrameScript(0, frame1);
}
function frame1(){
hoogte = this.height;
maxHoogte = (this.height * 2);
difference = (Math.random() * 5);
stroom();
}
public function stroom():void{
this.stop();
this.addEventListener(Event.ENTER_FRAME, stroomHandler);
}
public function stroomHandler(_arg1:Event):void{
if ((((this.height >= maxHoogte)) || ((this.height <= hoogte)))){
difference = (difference * -1);
};
this.height = (this.height + difference);
}
}
}//package derMenschEnglish_fla
Section 12
//volumeSlider_38 (derMenschEnglish_fla.volumeSlider_38)
package derMenschEnglish_fla {
import flash.display.*;
public dynamic class volumeSlider_38 extends MovieClip {
public var btnBg:MovieClip;
public function volumeSlider_38(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package derMenschEnglish_fla
Section 13
//voorsteGebouwen_65 (derMenschEnglish_fla.voorsteGebouwen_65)
package derMenschEnglish_fla {
import flash.display.*;
public dynamic class voorsteGebouwen_65 extends MovieClip {
public function voorsteGebouwen_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package derMenschEnglish_fla
Section 14
//bouwClip (bouwClip)
package {
import flash.display.*;
public dynamic class bouwClip extends MovieClip {
public function bouwClip(){
addFrameScript(61, frame62);
}
function frame62(){
stop();
}
}
}//package
Section 15
//coinSound1 (coinSound1)
package {
import flash.media.*;
public dynamic class coinSound1 extends Sound {
}
}//package
Section 16
//coinSound2 (coinSound2)
package {
import flash.media.*;
public dynamic class coinSound2 extends Sound {
}
}//package
Section 17
//gameOverClip (gameOverClip)
package {
import flash.display.*;
import flash.text.*;
public dynamic class gameOverClip extends MovieClip {
public var uitlegField:TextField;
public var menuBtn:MovieClip;
public var goldField:TextField;
public var secondenField:TextField;
}
}//package
Section 18
//GoldClip (GoldClip)
package {
import flash.display.*;
import flash.text.*;
public dynamic class GoldClip extends MovieClip {
public var goldField:TextField;
}
}//package
Section 19
//hoofdMenuClip (hoofdMenuClip)
package {
import flash.display.*;
public dynamic class hoofdMenuClip extends MovieClip {
public var muteClip:MovieClip;
public var quit:MovieClip;
public var pauze:MovieClip;
}
}//package
Section 20
//lightClip (lightClip)
package {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class lightClip extends MovieClip {
public var dikkeSliert:MovieClip;
public var dunneSliert:MovieClip;
public function lightClip(){
addFrameScript(0, frame1);
}
public function licht():void{
dunneSliert.doel = ((Math.random() * 100) - 50);
dunneSliert.speed = (Math.random() + 0.5);
dikkeSliert.doel = ((Math.random() * 100) - 50);
dikkeSliert.speed = (Math.random() + 0.5);
dunneSliert.addEventListener(Event.ENTER_FRAME, heenEnWeerHandler);
dikkeSliert.addEventListener(Event.ENTER_FRAME, heenEnWeerHandler);
}
function frame1(){
licht();
}
public function heenEnWeerHandler(_arg1:Event):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
if (Math.abs((_local2.x - _local2.doel)) < _local2.speed){
_local2.doel = ((Math.random() * 100) - 50);
_local2.speed = (Math.random() + 0.5);
} else {
if (_local2.x < _local2.doel){
_local2.x = (_local2.x + _local2.speed);
} else {
_local2.x = (_local2.x - _local2.speed);
};
};
_local2.width = (50 - Math.abs(_local2.x));
}
}
}//package
Section 21
//manClip (manClip)
package {
import flash.display.*;
public dynamic class manClip extends MovieClip {
public function manClip(){
addFrameScript(5, frame6, 14, frame15, 54, frame55);
}
function frame6(){
this.gotoAndPlay("falling");
}
function frame15(){
this.gotoAndPlay("walking");
}
function frame55(){
this.parent.removeChild(this);
}
}
}//package
Section 22
//menuClip (menuClip)
package {
import flash.display.*;
public dynamic class menuClip extends MovieClip {
public var menuBg:MovieClip;
public var mirakelBtn:MovieClip;
public var hoofdBtn:MovieClip;
public var bevolkingBtn:MovieClip;
public var btnBgClip:MovieClip;
}
}//package
Section 23
//minEenClip (minEenClip)
package {
import flash.display.*;
import flash.text.*;
public dynamic class minEenClip extends MovieClip {
public var aantalField:TextField;
}
}//package
Section 24
//mirakelMenuClip (mirakelMenuClip)
package {
import flash.display.*;
public dynamic class mirakelMenuClip extends MovieClip {
public var sprayWomen:MovieClip;
public var adamEvaClip:MovieClip;
public var evenwichtClip:MovieClip;
public var sprayBoth:MovieClip;
public var sprayMen:MovieClip;
}
}//package
Section 25
//NewgroundsAPI (NewgroundsAPI)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class NewgroundsAPI {
public static const ADS_APPROVED:Number = 3;
public static const bridge:Sprite = new Sprite();
private static const STAT_NEW_VERSION:Number = 4;
private static const STAT_AUTHOR_SITE:Number = 2;
private static const GATEWAY_URL:String = "http://www.ngads.com/gateway.php";
private static const NEWGROUNDS_URL:String = "http://www.newgrounds.com";
private static const STAT_CUSTOM_STATS:Number = 50;
private static const STAT_MOVIE_VIEWS:Number = 1;
private static const STAT_NEWGROUNDS:Number = 3;
public static const NEW_VERSION:Number = 2;
public static const DENY_HOST:Number = 1;
private static var tracker_id:Number;
private static var movie_options:Object = new Object();
private static var connected:Boolean;
private static var custom_events:Object = new Object();
private static var host:String;
private static var linked:Boolean;
private static var events:Object = new Object();
private static var debug:Boolean;
private static var version:String;
private static var custom_links:Object = new Object();
public static function getNewVersionURL(){
return (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + STAT_NEW_VERSION));
}
private static function ReadGatewayData(_arg1:Object){
var _local2:*;
var _local3:String;
var _local4:*;
var _local5:URLLoader;
for (_local2 in _arg1) {
_arg1[_local2] = unescape(_arg1[_local2]);
movie_options[_local2] = _arg1[_local2];
};
if (_arg1["settings_loaded"]){
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage((("Movie Identified as '" + movie_options["movie_name"]) + "'"));
if (movie_options["message"]){
SendMessage(movie_options["message"]);
};
if (movie_options["ad_url"]){
SendMessage("Your movie has been approved to run Flash Ads");
if (events[ADS_APPROVED]){
var _local6 = events;
_local6[ADS_APPROVED](movie_options["ad_url"]);
} else {
onAdsApproved(movie_options["ad_url"]);
};
};
if (((movie_options["movie_version"]) && (!((String(movie_options["movie_version"]) == String(version)))))){
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
if (events[NEW_VERSION]){
_local6 = events;
_local6[NEW_VERSION]({version:movie_options["movie_version"], real_url:getMovieURL(), redirect_url:getNewVersionURL()});
} else {
onNewVersionAvailable(movie_options["movie_version"], getMovieURL(), getNewVersionURL());
};
};
if (movie_options["deny_host"]){
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
if (events[DENY_HOST]){
_local6 = events;
_local6[DENY_HOST]({host:host, real_url:getMovieURL(), redirect_url:getNewVersionURL()});
} else {
onDenyHost(host, getMovieURL(), getNewVersionURL());
};
};
if (movie_options["request_portal_url"]){
_local3 = bridge.root.loaderInfo.url;
_local4 = ((((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_local3));
_local5 = new URLLoader(new URLRequest(_local4));
};
if (events[69]){
_local6 = events;
_local6[69]();
};
} else {
if (!movie_options["settings_loaded"]){
SendError("Could not establish connection to the API gateway.");
};
};
}
public static function setMovieVersion(_arg1){
if (!_arg1){
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = String(_arg1);
};
}
public static function loadCustomLink(_arg1:String){
if (!_arg1){
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else {
if (!custom_links[_arg1]){
SendError(("Attempted to open undefined custom link: " + _arg1));
} else {
SendLink(custom_links[_arg1]);
};
};
}
public static function addCustomLink(_arg1:Number, _arg2:String){
if (!_arg1){
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
if (!_arg2){
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[_arg2] = (STAT_CUSTOM_STATS + _arg1);
SendMessage(((("Created custom link " + _arg1) + ": ") + _arg2));
};
};
}
public static function getMovieURL(){
if (movie_options["movie_url"]){
return (movie_options["movie_url"]);
};
return ("Newgrounds.com");
}
public static function debugMode(){
debug = true;
}
public static function getAdURL(){
return (movie_options["ad_url"]);
}
private static function SendStat(_arg1:Number, _arg2:Boolean, _arg3=null){
var target_url:*;
var XML_Loaded:Function;
var x:*;
var request:URLRequest;
var gateway_loader:URLLoader;
var stat_id = _arg1;
var open_in_browser = _arg2;
var extra = _arg3;
if (!tracker_id){
SendError("You must call NewgroundsAPI.connectMovie() with a valid movie id before using API features!");
} else {
XML_Loaded = function (_arg1:Event){
var _local2:XML;
var _local3:Object;
var _local4:XMLList;
var _local5:XML;
var _local6:*;
var _local7:*;
XML.ignoreWhitespace = true;
_local2 = XML(_arg1.target.data);
_local3 = new Object();
_local4 = _local2.children();
for each (_local5 in _local4) {
_local6 = _local5.localName();
_local7 = _local5.attribute("value");
if (_local7 == Number(_local7)){
_local7 = Number(_local7);
};
_local3[_local6] = _local7;
};
ReadGatewayData(_local3);
};
target_url = (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id) + addSeed());
if (extra){
for (x in extra) {
target_url = (target_url + ((("&" + escape(x)) + "=") + escape(extra[x])));
};
};
if (debug){
target_url = (target_url + "&debug=1");
};
if (open_in_browser){
request = new URLRequest((target_url + addSeed()));
navigateToURL(request, "_blank");
} else {
gateway_loader = new URLLoader(new URLRequest((target_url + addSeed())));
gateway_loader.addEventListener(Event.COMPLETE, XML_Loaded);
};
};
}
public static function onAdsApproved(_arg1:String){
}
public static function loadMySite(_arg1:Event=null){
SendLink(STAT_AUTHOR_SITE);
}
private static function SendMessage(_arg1:String){
trace(("[NEWGROUNDS API] :: " + _arg1));
}
public static function linkAPI(_arg1){
_arg1.addChild(bridge);
linked = true;
}
public static function loadNewgrounds(_arg1:Event=null, _arg2:String=null){
var _local3:URLRequest;
var _local4:*;
if (!tracker_id){
_local3 = new URLRequest(((NEWGROUNDS_URL + "/") + _arg2));
navigateToURL(_local3, "_blank");
} else {
_local4 = null;
if (_arg2){
_local4 = new Object();
_local4.page = _arg2;
};
SendLink(STAT_NEWGROUNDS, _local4);
};
}
private static function SendLink(_arg1, _arg2=null){
SendStat(_arg1, true, _arg2);
}
public static function logCustomEvent(_arg1:String){
if (!_arg1){
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else {
if (!custom_events[_arg1]){
SendError(("Attempted to log undefined custom event: " + _arg1));
} else {
SendEvent(custom_events[_arg1]);
};
};
}
private static function SendError(_arg1:String){
trace(("[NEWGROUNDS API ERROR] :: " + _arg1));
}
public static function addCustomEvent(_arg1:Number, _arg2:String){
if (!_arg1){
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
if (!_arg2){
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[_arg2] = (STAT_CUSTOM_STATS + _arg1);
SendMessage(("Created custom event: " + _arg2));
};
};
}
private static function addSeed(){
return (("&seed=" + Math.random()));
}
public static function addEventListener(_arg1:Number, _arg2:Function){
events[_arg1] = _arg2;
}
private static function SendEvent(_arg1){
SendStat(_arg1, false);
}
public static function onNewVersionAvailable(_arg1:String, _arg2:String, _arg3:String){
var sw:*;
var sh:*;
var tw:*;
var th:*;
var mg:*;
var _root:*;
var overlay:MovieClip;
var overlay_x:*;
var overlay_y:*;
var close_x:*;
var blankarea:TextField;
var header:TextField;
var header_format:TextFormat;
var msgtext:TextField;
var msgtext_format:TextFormat;
var msgtext_link:TextFormat;
var version = _arg1;
var movie_url = _arg2;
var redirect_url = _arg3;
sw = bridge.stage.stageWidth;
sh = bridge.stage.stageHeight;
tw = 350;
th = 160;
mg = 20;
_root = bridge.root;
overlay = new MovieClip();
overlay.graphics.beginFill(0, 0.6);
overlay.graphics.lineStyle(0, 0);
overlay.graphics.drawRect(0, 0, sw, sh);
overlay.graphics.endFill();
overlay_x = Math.round(((sw - tw) / 2));
overlay_y = Math.round(((sh - th) / 2));
overlay.graphics.beginFill(102);
overlay.graphics.lineStyle(10, 0);
overlay.graphics.drawRect((overlay_x - mg), (overlay_y - mg), (tw + mg), (th + mg));
overlay.graphics.endFill();
overlay.close = function (_arg1:Event){
_root.removeChild(overlay);
};
close_x = new MovieClip();
close_x.graphics.beginFill(0, 0.1);
close_x.graphics.lineStyle(3, 22015);
close_x.graphics.drawRect(0, 0, 16, 16);
close_x.graphics.endFill();
close_x.graphics.moveTo(4, 4);
close_x.graphics.lineTo(13, 13);
close_x.graphics.moveTo(13, 4);
close_x.graphics.lineTo(4, 13);
close_x.x = ((overlay_x + tw) - 26);
close_x.y = (overlay_y - 10);
close_x.addEventListener(MouseEvent.CLICK, overlay.close);
blankarea = new TextField();
blankarea.x = (overlay_x - mg);
blankarea.y = (overlay_y - mg);
blankarea.width = (tw + mg);
blankarea.height = (th + mg);
blankarea.selectable = false;
header = new TextField();
header.width = tw;
header.x = overlay_x;
header.y = overlay_y;
header.height = 100;
header.selectable = false;
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.color = 0xFFFFFF;
header_format.size = 20;
header.defaultTextFormat = header_format;
header.text = "New Version Available!";
msgtext = new TextField();
msgtext.x = overlay_x;
msgtext.y = (overlay_y + 70);
msgtext.width = tw;
msgtext.height = 60;
msgtext.selectable = false;
msgtext_format = new TextFormat();
msgtext_format.font = "Arial";
msgtext_format.color = 0xFFFFFF;
msgtext_format.size = 12;
msgtext_format.bold = true;
msgtext_link = new TextFormat();
msgtext_link.font = "Arial";
msgtext_link.color = 0xFFFF00;
msgtext_link.size = 12;
msgtext_link.bold = true;
msgtext_link.url = redirect_url;
msgtext_link.target = "_blank";
if (version){
version = ("Version " + version);
} else {
version = "A new version";
};
msgtext.defaultTextFormat = msgtext_format;
msgtext.appendText((version + " is now available"));
if (movie_url){
msgtext.appendText(" at:\n");
msgtext.defaultTextFormat = msgtext_link;
msgtext.appendText(movie_url);
} else {
msgtext.appendText("!");
};
_root.addChild(overlay);
overlay.addChild(blankarea);
overlay.addChild(header);
overlay.addChild(msgtext);
overlay.addChild(close_x);
}
public static function onDenyHost(_arg1:String, _arg2:String, _arg3:String){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:MovieClip;
var _local10:TextField;
var _local11:TextField;
var _local12:TextFormat;
var _local13:TextField;
var _local14:TextFormat;
var _local15:TextFormat;
_local4 = bridge.stage.stageWidth;
_local5 = bridge.stage.stageHeight;
_local6 = 350;
_local7 = 160;
_local8 = bridge.root;
_local9 = new MovieClip();
_local9.graphics.beginFill(0x660000);
_local9.graphics.lineStyle(20, 0);
_local9.graphics.drawRect(0, 0, _local4, _local5);
_local9.graphics.endFill();
_local10 = new TextField();
_local10.x = 0;
_local10.y = 0;
_local10.width = _local4;
_local10.height = _local5;
_local10.selectable = false;
_local11 = new TextField();
_local11.x = Math.round(((_local4 - _local6) / 2));
_local11.y = Math.round(((_local5 - _local7) / 2.5));
_local11.width = _local6;
_local11.height = 100;
_local11.selectable = false;
_local12 = new TextFormat();
_local12.font = "Arial Black";
_local12.color = 0xFF0000;
_local12.size = 38;
_local11.defaultTextFormat = _local12;
_local11.text = "ERROR!";
_local13 = new TextField();
_local13.x = Math.round(((_local4 - _local6) / 2));
_local13.y = (Math.round(((_local5 - _local7) / 2.5)) + 80);
_local13.width = _local6;
_local13.height = 80;
_local13.selectable = false;
_local14 = new TextFormat();
_local14.font = "Arial";
_local14.color = 0xFFFFFF;
_local14.size = 12;
_local14.bold = true;
_local15 = new TextFormat();
_local15.font = "Arial";
_local15.color = 0xFFFF00;
_local15.size = 12;
_local15.bold = true;
_local15.url = _arg3;
_local15.target = "_blank";
_local13.defaultTextFormat = _local14;
_local13.appendText((("This movie has not been approved for use on " + _arg1) + "\n"));
_local13.appendText("For an approved copy, please visit:\n");
_local13.defaultTextFormat = _local15;
_local13.appendText(_arg2);
_local8.addChild(_local9);
_local9.addChild(_local10);
_local9.addChild(_local11);
_local9.addChild(_local13);
}
public static function connectMovie(_arg1:Number){
var _local2:String;
var _local3:*;
if (!_arg1){
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else {
if (!linked){
SendError("Attempted to call MewgroundsAPI.connectMovie() without first calling NewgroundsAPI.linkAPI(this)");
} else {
if (!tracker_id){
SendMessage("Connecting to API gateway...");
tracker_id = _arg1;
_local2 = bridge.root.loaderInfo.url;
host = _local2.split("/")[2].toLowerCase();
if (host.length < 1){
host = "localhost";
};
_local3 = new Object();
SendEvent(STAT_MOVIE_VIEWS);
};
};
};
}
public static function isInstalled(){
return (true);
}
}
}//package
Section 26
//progressClip (progressClip)
package {
import flash.display.*;
import flash.text.*;
public dynamic class progressClip extends MovieClip {
public var procentField:TextField;
public var fillBar:MovieClip;
}
}//package
Section 27
//spawnClip (spawnClip)
package {
import flash.display.*;
public dynamic class spawnClip extends MovieClip {
}
}//package
Section 28
//vrouwClip (vrouwClip)
package {
import flash.display.*;
public dynamic class vrouwClip extends MovieClip {
public function vrouwClip(){
addFrameScript(5, frame6, 14, frame15, 54, frame55);
}
function frame6(){
this.gotoAndPlay("falling");
}
function frame15(){
this.gotoAndPlay("walking");
}
function frame55(){
this.parent.removeChild(this);
}
}
}//package