Section 1
//Tracker (com.memecounter.Tracker)
package com.memecounter {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class Tracker {
private static var ori_dom:String;
private static var lurl:String;
private static var _isReady:Boolean = false;
public static var a:uint = 0;
public static var root:DisplayObject;
public static var c:uint;
public static var d:String = "";
private static var _isInited:Boolean = false;
public static var fpv:String = "";
private static var l:Loader;
private static var tracker:MovieClip;
public static var da:Array = ["distralytics.com", "distralytics.co.uk"];
private static function loadError(_arg1:Event):void{
a++;
lc();
}
public static function init(_arg1:uint, _arg2:DisplayObject):void{
var _local3:uint;
if (!_isInited){
_isInited = true;
c = _arg1;
root = _arg2;
_local3 = 0;
while (_local3 < da.length) {
Security.allowDomain(da[_local3], ((c + ".c.") + da[_local3]), ("*." + da[_local3]));
_local3++;
};
ori_dom = (root.loaderInfo.parameters.hasOwnProperty("ori_dom")) ? root.loaderInfo.parameters.ori_dom : "";
d = ((ori_dom)!="") ? ori_dom : ((root.loaderInfo.loaderURL.split("/")[0].indexOf("http"))==-1) ? "Local" : root.loaderInfo.loaderURL.split("/")[2].split("?")[0];
fpv = Capabilities.version.split(" ")[1].split(",")[0];
lurl = ((((((((("/control/tracking/trackerAS3.swf" + "?c=") + c) + "&r=") + Math.floor((Math.random() * 10000000000))) + "&d=") + d) + "&p=") + fpv) + "&as=3");
l = new Loader();
l.contentLoaderInfo.addEventListener(Event.INIT, loadComplete);
l.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
lc();
};
}
public static function get isReady():Boolean{
return (_isReady);
}
public static function kvClick(_arg1:uint):void{
if (_isReady){
tracker.kvClick(_arg1);
};
}
public static function kvCountry():String{
if (_isReady){
return (tracker.kvCountry());
};
return ("");
}
public static function kvEvent(_arg1:uint):void{
if (_isReady){
tracker.kvEvent(_arg1);
};
}
private static function lc():void{
var _local1:String;
_local1 = (((("http://" + c) + ".c.") + da[(a % da.length)]) + lurl);
Security.allowDomain(_local1);
l.load(new URLRequest(_local1));
}
private static function loadComplete(_arg1:Event):void{
tracker = _arg1.target.content;
tracker.init(getDefinitionByName("com.memecounter.Tracker"), root);
_isReady = true;
}
}
}//package com.memecounter
Section 2
//alt_lilly_hit_27 (escape_the_fear_16_12_2008_J_fla.alt_lilly_hit_27)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class alt_lilly_hit_27 extends MovieClip {
public function alt_lilly_hit_27(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 3
//ALT_lilly_jump_25 (escape_the_fear_16_12_2008_J_fla.ALT_lilly_jump_25)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ALT_lilly_jump_25 extends MovieClip {
public function ALT_lilly_jump_25(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 4
//ALT_lilly_jumpdrugged_35 (escape_the_fear_16_12_2008_J_fla.ALT_lilly_jumpdrugged_35)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ALT_lilly_jumpdrugged_35 extends MovieClip {
public function ALT_lilly_jumpdrugged_35(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 5
//ALT_lilly_jumpdrunk_34 (escape_the_fear_16_12_2008_J_fla.ALT_lilly_jumpdrunk_34)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ALT_lilly_jumpdrunk_34 extends MovieClip {
public function ALT_lilly_jumpdrunk_34(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 6
//alt_lily_die_29 (escape_the_fear_16_12_2008_J_fla.alt_lily_die_29)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class alt_lily_die_29 extends MovieClip {
public function alt_lily_die_29(){
addFrameScript(0, frame1, 32, frame33);
}
function frame1(){
play();
}
function frame33(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 7
//alt_lily_ending_30 (escape_the_fear_16_12_2008_J_fla.alt_lily_ending_30)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class alt_lily_ending_30 extends MovieClip {
public function alt_lily_ending_30(){
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
play();
}
function frame45(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 8
//ALT_lily_run_24 (escape_the_fear_16_12_2008_J_fla.ALT_lily_run_24)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ALT_lily_run_24 extends MovieClip {
public function ALT_lily_run_24(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 9
//ALT_lily_rundrugged_37 (escape_the_fear_16_12_2008_J_fla.ALT_lily_rundrugged_37)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ALT_lily_rundrugged_37 extends MovieClip {
public function ALT_lily_rundrugged_37(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 10
//alt_lily_stand_23 (escape_the_fear_16_12_2008_J_fla.alt_lily_stand_23)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class alt_lily_stand_23 extends MovieClip {
public function alt_lily_stand_23(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 11
//ALT_lily_standdrugged_36 (escape_the_fear_16_12_2008_J_fla.ALT_lily_standdrugged_36)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ALT_lily_standdrugged_36 extends MovieClip {
public function ALT_lily_standdrugged_36(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 12
//ALT_lily_standdrunk_32 (escape_the_fear_16_12_2008_J_fla.ALT_lily_standdrunk_32)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ALT_lily_standdrunk_32 extends MovieClip {
public function ALT_lily_standdrunk_32(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 13
//bigBossPunch_64 (escape_the_fear_16_12_2008_J_fla.bigBossPunch_64)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class bigBossPunch_64 extends MovieClip {
public var hitterArea:MovieClip;
public function bigBossPunch_64(){
addFrameScript(24, frame25, 30, frame31, 101, frame102);
}
function frame102(){
MovieClip(parent).play();
}
function frame25(){
}
function frame31(){
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 14
//cameraFlash_103 (escape_the_fear_16_12_2008_J_fla.cameraFlash_103)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class cameraFlash_103 extends MovieClip {
public function cameraFlash_103(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 15
//characterButton1_91 (escape_the_fear_16_12_2008_J_fla.characterButton1_91)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class characterButton1_91 extends MovieClip {
public function characterButton1_91(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
buttonMode = true;
mouseChildren = false;
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 16
//characterButton2_92 (escape_the_fear_16_12_2008_J_fla.characterButton2_92)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class characterButton2_92 extends MovieClip {
public function characterButton2_92(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
buttonMode = true;
mouseChildren = false;
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 17
//faderMC_110 (escape_the_fear_16_12_2008_J_fla.faderMC_110)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class faderMC_110 extends MovieClip {
public function faderMC_110(){
addFrameScript(29, frame30, 70, frame71);
}
function frame71(){
stop();
}
function frame30(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 18
//fearHandMC_74 (escape_the_fear_16_12_2008_J_fla.fearHandMC_74)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class fearHandMC_74 extends MovieClip {
public function fearHandMC_74(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 19
//heartStatusMC_116 (escape_the_fear_16_12_2008_J_fla.heartStatusMC_116)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class heartStatusMC_116 extends MovieClip {
public function heartStatusMC_116(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 20
//individualplatformMC_72 (escape_the_fear_16_12_2008_J_fla.individualplatformMC_72)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class individualplatformMC_72 extends MovieClip {
public function individualplatformMC_72(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).levelNum);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 21
//intro_matmiTITLEAppear_107 (escape_the_fear_16_12_2008_J_fla.intro_matmiTITLEAppear_107)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class intro_matmiTITLEAppear_107 extends MovieClip {
public function intro_matmiTITLEAppear_107(){
addFrameScript(31, frame32);
}
function frame32(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 22
//ladder1_MC_39 (escape_the_fear_16_12_2008_J_fla.ladder1_MC_39)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ladder1_MC_39 extends MovieClip {
public function ladder1_MC_39(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).levelNum);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 23
//ladder2_MC_40 (escape_the_fear_16_12_2008_J_fla.ladder2_MC_40)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ladder2_MC_40 extends MovieClip {
public function ladder2_MC_40(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).levelNum);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 24
//ladder3_MC_41 (escape_the_fear_16_12_2008_J_fla.ladder3_MC_41)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class ladder3_MC_41 extends MovieClip {
public function ladder3_MC_41(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).levelNum);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 25
//letter_L2_100 (escape_the_fear_16_12_2008_J_fla.letter_L2_100)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class letter_L2_100 extends MovieClip {
public function letter_L2_100(){
addFrameScript(12, frame13);
}
function frame13(){
gotoAndPlay(1);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 26
//level_1_platform_1MC_67 (escape_the_fear_16_12_2008_J_fla.level_1_platform_1MC_67)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class level_1_platform_1MC_67 extends MovieClip {
public function level_1_platform_1MC_67(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).levelNum);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 27
//level_1_platform_2MC_68 (escape_the_fear_16_12_2008_J_fla.level_1_platform_2MC_68)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class level_1_platform_2MC_68 extends MovieClip {
public function level_1_platform_2MC_68(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).levelNum);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 28
//level_1_platform_3MC_69 (escape_the_fear_16_12_2008_J_fla.level_1_platform_3MC_69)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class level_1_platform_3MC_69 extends MovieClip {
public function level_1_platform_3MC_69(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).levelNum);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 29
//level_1_platform_4MC_70 (escape_the_fear_16_12_2008_J_fla.level_1_platform_4MC_70)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class level_1_platform_4MC_70 extends MovieClip {
public function level_1_platform_4MC_70(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).levelNum);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 30
//levelNumMC_115 (escape_the_fear_16_12_2008_J_fla.levelNumMC_115)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class levelNumMC_115 extends MovieClip {
public function levelNumMC_115(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 31
//lilly_hit_10 (escape_the_fear_16_12_2008_J_fla.lilly_hit_10)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lilly_hit_10 extends MovieClip {
public function lilly_hit_10(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 32
//lilly_hitbig_17 (escape_the_fear_16_12_2008_J_fla.lilly_hitbig_17)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lilly_hitbig_17 extends MovieClip {
public function lilly_hitbig_17(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 33
//lilly_jump_8 (escape_the_fear_16_12_2008_J_fla.lilly_jump_8)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lilly_jump_8 extends MovieClip {
public function lilly_jump_8(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 34
//lilly_jumpdrugged_MC_19 (escape_the_fear_16_12_2008_J_fla.lilly_jumpdrugged_MC_19)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lilly_jumpdrugged_MC_19 extends MovieClip {
public function lilly_jumpdrugged_MC_19(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 35
//lilly_jumpdrunk_MC_18 (escape_the_fear_16_12_2008_J_fla.lilly_jumpdrunk_MC_18)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lilly_jumpdrunk_MC_18 extends MovieClip {
public function lilly_jumpdrunk_MC_18(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 36
//lily_die_12 (escape_the_fear_16_12_2008_J_fla.lily_die_12)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lily_die_12 extends MovieClip {
public function lily_die_12(){
addFrameScript(0, frame1, 32, frame33);
}
function frame1(){
play();
}
function frame33(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 37
//lily_ending_13 (escape_the_fear_16_12_2008_J_fla.lily_ending_13)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lily_ending_13 extends MovieClip {
public function lily_ending_13(){
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
play();
}
function frame45(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 38
//lily_run_7 (escape_the_fear_16_12_2008_J_fla.lily_run_7)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lily_run_7 extends MovieClip {
public function lily_run_7(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 39
//lily_rundrugged_21 (escape_the_fear_16_12_2008_J_fla.lily_rundrugged_21)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lily_rundrugged_21 extends MovieClip {
public function lily_rundrugged_21(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 40
//lily_stand_6 (escape_the_fear_16_12_2008_J_fla.lily_stand_6)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lily_stand_6 extends MovieClip {
public function lily_stand_6(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 41
//lily_standdrugged_20 (escape_the_fear_16_12_2008_J_fla.lily_standdrugged_20)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lily_standdrugged_20 extends MovieClip {
public function lily_standdrugged_20(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 42
//lily_standdrunk_15 (escape_the_fear_16_12_2008_J_fla.lily_standdrunk_15)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lily_standdrunk_15 extends MovieClip {
public function lily_standdrunk_15(){
addFrameScript(0, frame1);
}
function frame1(){
play();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 43
//miniiMC_120 (escape_the_fear_16_12_2008_J_fla.miniiMC_120)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class miniiMC_120 extends MovieClip {
public function miniiMC_120(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 44
//minil2MC_121 (escape_the_fear_16_12_2008_J_fla.minil2MC_121)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class minil2MC_121 extends MovieClip {
public function minil2MC_121(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 45
//miniLMC_119 (escape_the_fear_16_12_2008_J_fla.miniLMC_119)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class miniLMC_119 extends MovieClip {
public function miniLMC_119(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 46
//miniyMC_118 (escape_the_fear_16_12_2008_J_fla.miniyMC_118)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class miniyMC_118 extends MovieClip {
public function miniyMC_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 47
//nowPlayingMC_117 (escape_the_fear_16_12_2008_J_fla.nowPlayingMC_117)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class nowPlayingMC_117 extends MovieClip {
public function nowPlayingMC_117(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 48
//oneMorethingMC_132 (escape_the_fear_16_12_2008_J_fla.oneMorethingMC_132)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class oneMorethingMC_132 extends MovieClip {
public var continueBut:SimpleButton;
public var mailerMC:MovieClip;
public var privacyBut:SimpleButton;
public function oneMorethingMC_132(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 49
//scoreAreaMC_114 (escape_the_fear_16_12_2008_J_fla.scoreAreaMC_114)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
public dynamic class scoreAreaMC_114 extends MovieClip {
public var miniiMC:MovieClip;
public var nowPlayingMC:MovieClip;
public var miniLMC:MovieClip;
public var miniyMC:MovieClip;
public var minilMC:MovieClip;
public var levelNumMC:MovieClip;
public var heartStatusMC1:MovieClip;
public var heartStatusMC2:MovieClip;
public var heartStatusMC5:MovieClip;
public var heartStatusMC4:MovieClip;
public var heartStatusMC3:MovieClip;
}
}//package escape_the_fear_16_12_2008_J_fla
Section 50
//showLilyResultMC_96 (escape_the_fear_16_12_2008_J_fla.showLilyResultMC_96)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
public dynamic class showLilyResultMC_96 extends MovieClip {
public var iShow:MovieClip;
public var yShow:MovieClip;
public var LShow:MovieClip;
public var lShow:MovieClip;
}
}//package escape_the_fear_16_12_2008_J_fla
Section 51
//spritecontainer_4 (escape_the_fear_16_12_2008_J_fla.spritecontainer_4)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class spritecontainer_4 extends MovieClip {
public function spritecontainer_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 52
//stageClearTitleMC_95 (escape_the_fear_16_12_2008_J_fla.stageClearTitleMC_95)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class stageClearTitleMC_95 extends MovieClip {
public function stageClearTitleMC_95(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(MovieClip(root).levelNum);
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 53
//tickBox_131 (escape_the_fear_16_12_2008_J_fla.tickBox_131)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class tickBox_131 extends MovieClip {
public function tickBox_131(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 54
//videoBorder_109 (escape_the_fear_16_12_2008_J_fla.videoBorder_109)
package escape_the_fear_16_12_2008_J_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class videoBorder_109 extends MovieClip {
public function videoBorder_109(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package escape_the_fear_16_12_2008_J_fla
Section 55
//balloonman (balloonman)
package {
import flash.media.*;
public dynamic class balloonman extends Sound {
}
}//package
Section 56
//balloonMC (balloonMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class balloonMC extends MovieClip {
private var Ob:Object;
public var hitterArea:MovieClip;
private var tim:Timer;
public function balloonMC(){
Ob = MovieClip(root).gameMC;
super();
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
public function enterframe(_arg1:Event):void{
if (((((((((Ob.getChildByName("lilly")) && (!(MovieClip(parent.parent).hiding)))) && (!(Ob.hitting)))) && (!(Ob.getChildByName("lilly").invincible)))) && (this.hitterArea.hitTestObject(Ob.getChildByName("lilly"))))){
if (Ob.dir == "Left"){
Ob.removeHealth("Right");
} else {
Ob.removeHealth("Left");
};
Ob.soundEffects.balloonSound();
};
}
}
}//package
Section 57
//bankerLeftMC (bankerLeftMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class bankerLeftMC extends MovieClip {
var Ob:Object;
var counter:Number;// = 0
public function bankerLeftMC(){
Ob = MovieClip(root).gameMC;
counter = 0;
super();
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
public function enterframe(_arg1:Event):void{
if ((((currentLabel == "repeater")) && ((counter <= 5)))){
gotoAndPlay(1);
counter++;
} else {
if ((((currentLabel == "repeater")) && ((counter > 5)))){
counter = 0;
play();
};
};
if (currentLabel == "throw"){
Ob.createCard(MovieClip(parent.parent).startX, MovieClip(parent.parent).startY, "Left");
};
}
}
}//package
Section 58
//bankerRightMC (bankerRightMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class bankerRightMC extends MovieClip {
var Ob:Object;
var counter:Number;// = 0
public function bankerRightMC(){
Ob = MovieClip(root).gameMC;
counter = 0;
super();
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
public function enterframe(_arg1:Event):void{
if ((((currentLabel == "repeater")) && ((counter <= 5)))){
gotoAndPlay(1);
counter++;
} else {
if ((((currentLabel == "repeater")) && ((counter > 5)))){
counter = 0;
play();
};
};
if (currentLabel == "throw"){
Ob.createCard(MovieClip(parent.parent).startX, MovieClip(parent.parent).startY, "Right");
};
}
}
}//package
Section 59
//bigBossSound (bigBossSound)
package {
import flash.media.*;
public dynamic class bigBossSound extends Sound {
}
}//package
Section 60
//bonusCollectsMC (bonusCollectsMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class bonusCollectsMC extends MovieClip {
private var Ob:Object;
public function bonusCollectsMC(){
Ob = MovieClip(root).gameMC;
super();
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
public function enterframe(_arg1:Event):void{
var _local2:String;
if ((((((((currentFrame < 15)) && (Ob.getChildByName("lilly")))) && (!(MovieClip(parent.parent).hiding)))) && (this.hitTestObject(Ob.getChildByName("lilly"))))){
gotoAndPlay(15);
_local2 = "";
if (MovieClip(parent.parent).frameNum == 9){
_local2 = "L";
Ob.soundEffects.LilyLSound();
} else {
if (MovieClip(parent.parent).frameNum == 10){
_local2 = "i";
Ob.soundEffects.LilyiSound();
} else {
if (MovieClip(parent.parent).frameNum == 11){
_local2 = "l";
Ob.soundEffects.LilylSound();
} else {
if (MovieClip(parent.parent).frameNum == 12){
_local2 = "y";
Ob.soundEffects.LilyySound();
};
};
};
};
MovieClip(parent.parent).frameNum = 0;
Ob.gotBonus(_local2);
};
}
}
}//package
Section 61
//bossMC (bossMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class bossMC extends MovieClip {
private var Ob:Object;
public var hitterArea:MovieClip;
public var MC:MovieClip;
private var dir:String;// = "Left"
private var theMC:Object;
public function bossMC(){
dir = "Left";
Ob = MovieClip(root).gameMC;
super();
addFrameScript(31, frame32, 91, frame92);
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
function frame92(){
stop();
}
public function enterframe(_arg1:Event):void{
theMC = MC;
if ((((((((((((((((currentLabel == "punchLeft")) || ((currentLabel == "punchRight")))) && (Ob.getChildByName("lilly")))) && (!(MovieClip(parent.parent).hiding)))) && (!(Ob.hitting)))) && (!(Ob.getChildByName("lilly").invincible)))) && (theMC))) && (theMC.hitterArea.hitTestObject(Ob.getChildByName("lilly"))))){
if (currentLabel == "punchLeft"){
Ob.removeHealth("Left", "boss");
Ob.soundEffects.playBigBossSound();
} else {
if (currentLabel == "punchRight"){
Ob.removeHealth("Right", "boss");
Ob.soundEffects.playBigBossSound();
};
};
} else {
if (((((((((Ob.getChildByName("lilly")) && (!(MovieClip(parent.parent).hiding)))) && (!(Ob.hitting)))) && (!(Ob.getChildByName("lilly").invincible)))) && (this.hitterArea.hitTestObject(Ob.getChildByName("lilly"))))){
Ob.removeHealth(Ob.dir);
};
};
}
function frame32(){
stop();
}
}
}//package
Section 62
//buttonSounder (buttonSounder)
package {
import flash.media.*;
public dynamic class buttonSounder extends Sound {
}
}//package
Section 63
//CameraSound (CameraSound)
package {
import flash.media.*;
public dynamic class CameraSound extends Sound {
}
}//package
Section 64
//cardMC (cardMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class cardMC extends MovieClip {
private var tim:Timer;
private var dirr:String;
public function cardMC(_arg1:String){
dirr = _arg1;
tim = new Timer(15, 75);
tim.addEventListener(TimerEvent.TIMER_COMPLETE, killGraphicTimer);
tim.addEventListener(TimerEvent.TIMER, enterframe);
tim.start();
}
private function enterframe(_arg1:TimerEvent):void{
if (((((((!(this)) || (!(dirr)))) || ((MovieClip(root).gameMC == null)))) || (!(MovieClip(root).gameMC.startGame)))){
killGraphic();
} else {
if (MovieClip(root).gameMC.checkCardCollision(this, x, y, dirr) == true){
killGraphic();
} else {
if (dirr == "Left"){
this.x = (this.x - 10);
if (this.x < -10){
killGraphic();
};
} else {
if (dirr == "Right"){
this.x = (this.x + 10);
if (this.x > 580){
killGraphic();
};
};
};
};
};
}
public function killGraphic():void{
if (tim){
tim.stop();
tim.removeEventListener(TimerEvent.TIMER_COMPLETE, killGraphicTimer);
tim.removeEventListener(TimerEvent.TIMER, enterframe);
};
MovieClip(root).gameMC.getChildByName("level_container").removeChild(this);
}
private function killGraphicTimer(_arg1:TimerEvent):void{
killGraphic();
}
}
}//package
Section 65
//deathFearSound (deathFearSound)
package {
import flash.media.*;
public dynamic class deathFearSound extends Sound {
}
}//package
Section 66
//deathSound (deathSound)
package {
import flash.media.*;
public dynamic class deathSound extends Sound {
}
}//package
Section 67
//displace (displace)
package {
import flash.display.*;
public dynamic class displace extends MovieClip {
}
}//package
Section 68
//DistortBg (DistortBg)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.geom.*;
import flash.filters.*;
public class DistortBg extends MovieClip {
private var dispY:Number;// = 25
private var timer:Timer;
public var amount:Number;// = 0
private var displaceMap:Bitmap;
private var point:Point;
private var target:MovieClip;
public var fadein:Boolean;// = true
private var displaceMapData:BitmapData;
private var dispX:Number;// = 0
public function DistortBg(){
dispX = 0;
dispY = 25;
amount = 0;
fadein = true;
super();
addFrameScript(0, frame1);
}
private function moveDisp(_arg1:TimerEvent):void{
var _local2:DisplacementMapFilter;
var _local3:Array;
if (((fadein) && ((amount < 30)))){
amount++;
} else {
if (_arg1.target.currentCount == 85){
fadein = false;
} else {
if (((!(fadein)) && ((amount > 0)))){
amount--;
};
};
};
if (dispY < -100){
dispY = 25;
} else {
dispY = (dispY - 2);
};
point = new Point(dispX, dispY);
_local2 = new DisplacementMapFilter(displaceMapData, point, 1, 1, amount, 1, "wrap");
_local3 = [];
_local3.push(_local2);
target.filters = _local3;
}
public function endDisp(_arg1:TimerEvent):void{
if (timer){
amount = 0;
fadein = true;
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, moveDisp);
target.filters = null;
};
}
function frame1(){
stop();
}
public function startEffectWavy(_arg1:String, _arg2:Number):void{
if (_arg1 == "drugged"){
displaceMapData = new horriblewavy(0, 0);
displaceMap = new Bitmap(displaceMapData);
displaceMapData.draw(displaceMap);
target = this;
if (timer){
timer.removeEventListener(TimerEvent.TIMER, moveDisp);
timer.removeEventListener(TimerEvent.TIMER_COMPLETE, endDisp);
timer.stop();
timer = null;
};
timer = new Timer(50, (20 * _arg2));
timer.start();
timer.addEventListener(TimerEvent.TIMER, moveDisp);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, endDisp);
};
}
}
}//package
Section 69
//documentClass (documentClass)
package {
import flash.display.*;
import flash.events.*;
import com.memecounter.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
public class documentClass extends MovieClip {
private var vid:Video;
public var scoreAreaMC:MovieClip;
public var totalBonusesCollected:Number;// = 0
public var musiclink5But:SimpleButton;
public var border:MovieClip;
public var bonusDone:TextField;
public var whereToGo:String;// = ""
public var mainMenuMC:mainMenu;
public var vidd:Video;
public var timeLeft:TextField;
public var videoBorder:MovieClip;
public var preloaderMC:preloader;
public var score:Number;// = 0
public var fpButton:SimpleButton;
public var musiclink1But:SimpleButton;
public var totalTimeRemaining:Number;// = 0
public var EndScreenMC:endScreen;
public var soundEffects;
public var gameMC:game;
public var musiclink2But:SimpleButton;
private var VideoUrl;
public var sound:Boolean;// = true
public var levelDone:TextField;
public var lives:Number;// = 5
public var levelNum:Number;// = 1
var endLevel:endLevelMC;
public var spritecontainer:MovieClip;
public var musiclink3But:SimpleButton;
public var faderAmount:Number;// = 0.4
private var muteMC;
public var tcBut:SimpleButton;
public var faderMC:MovieClip;
public var quitBut:SimpleButton;
public var totalScore:TextField;
private var nc:NetConnection;
private var ns:NetStream;
public var lilyversion:Number;// = 1
public var privacyBut:SimpleButton;
public var matmiBut:SimpleButton;
public var maxLevels:Number;// = 10
public function documentClass(){
var _local1:URLRequest;
score = 0;
levelNum = 1;
lives = 5;
totalBonusesCollected = 0;
totalTimeRemaining = 0;
maxLevels = 10;
lilyversion = 1;
whereToGo = "";
sound = true;
faderAmount = 0.4;
super();
addFrameScript(0, frame1, 253, frame254, 278, frame279, 279, frame280, 280, frame281);
Tracker.init(0x0202, MovieClip(root));
_local1 = new URLRequest("http://www.viralchart.com/tracker.php?media=871&f=F");
_local1.method = URLRequestMethod.GET;
sendToURL(_local1);
stage.quality = StageQuality.HIGH;
stage.scaleMode = "noScale";
stage.showDefaultContextMenu = false;
stage.align = "TL";
addEventListener(MouseEvent.CLICK, buttonClick);
levelNum = 1;
soundEffects = new gameSounds();
addChild(soundEffects);
}
function frame279(){
stop();
MovieClip(root).getDynamicLinks();
createMute();
}
function frame280(){
MovieClip(root).showScore();
MovieClip(root).getDynamicLinks();
faderMC.gotoAndStop("fadedIn");
createMute();
stage.quality = StageQuality.HIGH;
}
function frame281(){
MovieClip(root).showScore();
MovieClip(root).getDynamicLinks();
faderMC.gotoAndStop("fadedIn");
createMute();
stage.quality = StageQuality.HIGH;
}
public function changeDynamicFrame(_arg1:Number):void{
var _local2:MovieClip;
if (dynamicloader.content != null){
_local2 = MovieClip(dynamicloader.content);
_local2.gotoAndStop(_arg1);
};
}
function hideVideo():void{
if (mainMenuMC.currentLabel == "showVid"){
ns.close();
vidd.visible = false;
videoBorder.visible = false;
};
}
function onVideoStatusEvent(_arg1:Object):void{
}
public function nextLevel():void{
scoreAreaMC.miniLMC.gotoAndStop(1);
scoreAreaMC.miniiMC.gotoAndStop(1);
scoreAreaMC.minilMC.gotoAndStop(1);
scoreAreaMC.miniyMC.gotoAndStop(1);
stage.quality = StageQuality.LOW;
if (getChildByName("endLevel")){
removeChild(endLevel);
};
if ((levelNum + 1) <= maxLevels){
levelNum++;
gameMC.nextLevel();
faderMC.gotoAndPlay("fadeIn");
} else {
gameMC.fadeMusic(null);
endGameWaiterCapture(null);
};
scoreAreaMC.levelNumMC.gotoAndStop(levelNum);
}
function frame1(){
stop();
}
public function tallyScore():void{
if (lives < 0){
levelNum--;
};
score = (((levelNum * 100) + (totalBonusesCollected * 100)) + (totalTimeRemaining * 10));
if (levelNum == maxLevels){
score = (score + 5000);
};
}
public function loadSubmitScore():void{
var _local1:scoreSubmit;
_local1 = new scoreSubmit(score);
_local1.name = "sub";
addChild(_local1);
setChildIndex(EndScreenMC, getChildIndex(_local1));
setChildIndex(faderMC, getChildIndex(EndScreenMC));
}
public function externalLink(_arg1:String, _arg2:Number=0):void{
var req:URLRequest;
var url = _arg1;
var code = _arg2;
req = new URLRequest(url);
try {
navigateToURL(req, "lily_link");
if (code > 0){
Tracker.kvClick(code);
};
} catch(e:Error) {
};
}
public function showDynamicCountry():void{
var _local1:MovieClip;
if (dynamicloader.content != null){
_local1 = MovieClip(dynamicloader.content);
_local1.flags.visible = true;
} else {
externalLink("http://links.emi.com/lily/preorder");
};
}
function onConnectStatusEvent(_arg1:Object):void{
var meta:Object;
var stat = _arg1;
if (stat.info.code == "NetConnection.Connect.Success"){
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, onVideoStatusEvent);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
meta = new Object();
meta.onMetaData = function (_arg1:Object){
};
ns.client = meta;
vidd.attachNetStream(ns);
vidd.visible = true;
videoBorder.visible = true;
ns.play(VideoUrl);
};
}
function asyncErrorHandler(_arg1:AsyncErrorEvent):void{
}
public function getVideo(_arg1:String):void{
VideoUrl = _arg1;
nc = new NetConnection();
nc.connect("rtmp://fl.interoute.com/streamrt/_definst_");
nc.addEventListener(NetStatusEvent.NET_STATUS, onConnectStatusEvent);
nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
}
private function quitGame():void{
gameMC.stopSound();
gameMC.removeObjects();
if (EndScreenMC){
removeChild(EndScreenMC);
};
gotoAndStop("menu", "menu");
stage.quality = StageQuality.HIGH;
}
public function trackLevel(_arg1:Number):void{
switch (_arg1){
case 1:
Tracker.kvEvent(1432);
break;
case 2:
Tracker.kvEvent(1433);
break;
case 3:
Tracker.kvEvent(1434);
break;
case 4:
Tracker.kvEvent(1435);
break;
case 5:
Tracker.kvEvent(1436);
break;
case 6:
Tracker.kvEvent(1437);
break;
case 7:
Tracker.kvEvent(1438);
break;
case 8:
Tracker.kvEvent(1439);
break;
case 9:
Tracker.kvEvent(1440);
break;
case 10:
Tracker.kvEvent(1441);
break;
};
}
public function createMute():void{
muteMC = new muter();
muteMC.name = "muteMC";
muteMC.x = 526;
muteMC.y = 81;
addChild(muteMC);
}
private function getDynamicLinks():void{
if (!getChildByName("loader")){
dynamicloader = new Loader();
dynamicloader.y = 437;
dynamicloader.x = 0;
dynamicloader.name = "dynamicloader";
addChild(dynamicloader);
dynamicloader.load(new URLRequest("http://dnl.interoute.com/{a5719c13-f5ff-4522-af41-a4991dabe120}/{8568de06-a1e2-4210-8822-af38f2c48f85}/dynamic_bottom_link.swf"));
};
setChildIndex(dynamicloader, (numChildren - 1));
}
public function changeEndofLevelDepth():void{
setChildIndex(endLevel, getChildIndex(border));
}
public function removeDynamicLinks():void{
removeChild(dynamicloader);
}
private function buttonClick(_arg1:Event):void{
if (_arg1.target.name == "backtoMainMenuBut"){
whereToGo = "mainmenu";
soundEffects.playbuttonSound();
MovieClip(root).faderMC.gotoAndPlay("fadeOut");
addEventListener(Event.ENTER_FRAME, waitForFade);
} else {
if (_arg1.target.name == "playAgainBut"){
soundEffects.playbuttonSound();
whereToGo = "again";
MovieClip(root).faderMC.gotoAndPlay("fadeOut");
addEventListener(Event.ENTER_FRAME, waitForFade);
} else {
if (_arg1.target.name == "quitBut"){
quitGame();
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "musiclink1But"){
externalLink("http://www.lilyallenmusic.com", 840);
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "musiclink2But"){
externalLink("http://www.myspace.com/lilymusic", 841);
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "musiclink3But"){
externalLink("http://www.clearspring.com/widgets/49302c83a69bc346", 842);
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "fpButton"){
externalLink("http://www.adobe.com/go/getflashplayer");
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "musiclink5But"){
externalLink("http://www.lilyallenmusic.com", 840);
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "matmiBut"){
externalLink("http://www.matmi.com/?ref=lily");
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "tcBut"){
externalLink("http://www.parlophone.co.uk/lily/terms.html");
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "privacyBut"){
externalLink("http://www.emimusic.co.uk/privacypolicy.html");
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "buyAlbumBut"){
showDynamicCountry();
soundEffects.playbuttonSound();
} else {
if (_arg1.target.name == "muteMC"){
if (sound){
sound = false;
muteMC.gotoAndStop("mute");
soundEffects.playbuttonSound();
if (gameMC){
gameMC.musicgame.muteSound();
};
if (mainMenuMC){
mainMenuMC.music.muteSound();
};
} else {
sound = true;
soundEffects.playbuttonSound();
muteMC.gotoAndStop("sound");
if (gameMC){
gameMC.musicgame.unmuteSound();
};
if (mainMenuMC){
mainMenuMC.music.unmuteSound();
};
};
} else {
if (_arg1.target.name == "startGameBut"){
mainMenuMC.ChooseCharacter();
} else {
if (_arg1.target.name == "instructionsBut"){
mainMenuMC.startInstructions();
} else {
if (_arg1.target.name == "backToMainMenuBut"){
mainMenuMC.backToMainMenu();
} else {
if (_arg1.target.name == "scoresBut"){
mainMenuMC.startHighscores();
} else {
if (_arg1.target.name == "videoBut"){
mainMenuMC.startVideo();
} else {
if (_arg1.target.name == "char1But"){
mainMenuMC.chosenOne();
} else {
if (_arg1.target.name == "char2But"){
mainMenuMC.chosenTwo();
} else {
if (_arg1.target.name == "winStuffBut"){
soundEffects.playbuttonSound();
externalLink("http://links.emi.com/lily/win", 846);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function createLevelMC(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false, _arg6:Boolean=false, _arg7:Boolean=false):void{
endLevel = new endLevelMC(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
endLevel.name = "endLevel";
endLevel.y = 60;
endLevel.x = 13;
addChild(endLevel);
stage.quality = StageQuality.HIGH;
setChildIndex(endLevel, getChildIndex(border));
}
public function showScore():void{
levelDone.text = String((levelNum * 100));
bonusDone.text = String((totalBonusesCollected * 100));
timeLeft.text = String((totalTimeRemaining * 10));
totalScore.text = String(score);
loadSubmitScore();
}
private function endGameWaiterCapture(_arg1:TimerEvent):void{
var _local2:Timer;
if (gameMC.faderAmount > 0){
_local2 = new Timer(100, 1);
_local2.addEventListener(TimerEvent.TIMER_COMPLETE, endGameWaiterCapture);
_local2.start();
} else {
gameMC.removeObjects();
tallyScore();
stage.quality = StageQuality.HIGH;
MovieClip(root).gotoAndStop("gameComplete", "end");
};
}
public function waitForFade(_arg1:Event):void{
if (faderMC.currentLabel == "fadedOut"){
removeChild(getChildByName("sub"));
removeChild(getChildByName("faderMC"));
removeEventListener(Event.ENTER_FRAME, waitForFade);
if (whereToGo == "mainmenu"){
gotoAndStop("menu", "menu");
removeChild(EndScreenMC);
} else {
if (whereToGo == "again"){
MovieClip(root).levelNum = 1;
MovieClip(root).score = 0;
MovieClip(root).lives = 5;
MovieClip(root).totalTimeRemaining = 0;
MovieClip(root).totalBonusesCollected = 0;
MovieClip(root).gotoAndStop("game", "game");
removeChild(EndScreenMC);
};
};
};
}
function frame254(){
createMute();
stop();
MovieClip(root).getDynamicLinks();
}
Security.allowDomain("http://www.matmi.com");
Security.allowDomain("http://www.lilyallenmusic.com");
Security.allowDomain("http://dnl.interoute.com");
Security.loadPolicyFile("http://www.matmi.com/crossdomain.xml");
Security.loadPolicyFile("http://www.lilyallenmusic.com/crossdomain.xml");
}
}//package
Section 70
//dogchomp (dogchomp)
package {
import flash.media.*;
public dynamic class dogchomp extends Sound {
}
}//package
Section 71
//dogMC (dogMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class dogMC extends MovieClip {
private var Ob:Object;
public var hitterArea:MovieClip;
private var dir:String;// = "Left"
public function dogMC(){
dir = "Left";
Ob = MovieClip(root).gameMC;
super();
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
public function enterframe(_arg1:Event):void{
if (currentLabel == "dogjump"){
dir = "Left";
} else {
if (currentLabel == "dogjump3"){
dir = "Right";
} else {
if ((((currentLabel == "chomp")) || ((currentLabel == "chomp2")))){
Ob.soundEffects.chomp();
};
};
};
if (((((((((((Ob.getChildByName("lilly")) && (!(MovieClip(parent.parent).hiding)))) && (!(Ob.hitting)))) && (!(Ob.getChildByName("lilly").invincible)))) && (this.hitterArea))) && (this.hitterArea.hitTestObject(Ob.getChildByName("lilly"))))){
Ob.removeHealth(dir);
};
}
}
}//package
Section 72
//drinkMC (drinkMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class drinkMC extends MovieClip {
private var Ob:Object;
public function drinkMC(){
Ob = MovieClip(root).gameMC;
super();
addFrameScript(36, frame37);
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
function frame37(){
gotoAndPlay(1);
}
public function enterframe(_arg1:Event):void{
if (((((((!((currentLabel == "stopbottle"))) && (Ob.getChildByName("lilly")))) && (!(MovieClip(parent.parent).hiding)))) && (this.hitTestObject(Ob.getChildByName("lilly"))))){
gotoAndStop("stopbottle");
MovieClip(parent.parent).frameNum = 0;
Ob.gotDrink();
};
}
}
}//package
Section 73
//drugMC (drugMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class drugMC extends MovieClip {
private var Ob:Object;
public function drugMC(){
Ob = MovieClip(root).gameMC;
super();
addFrameScript(27, frame28, 28, frame29);
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
function frame29(){
stop();
}
public function enterframe(_arg1:Event):void{
if (((((((!((currentLabel == "stopdrug"))) && (Ob.getChildByName("lilly")))) && (!(MovieClip(parent.parent).hiding)))) && (this.hitTestObject(Ob.getChildByName("lilly"))))){
gotoAndStop("stopdrug");
MovieClip(parent.parent).frameNum = 0;
Ob.gotDrugs();
};
}
function frame28(){
gotoAndPlay(1);
}
}
}//package
Section 74
//DrugSound (DrugSound)
package {
import flash.media.*;
public dynamic class DrugSound extends Sound {
}
}//package
Section 75
//DrunkSound (DrunkSound)
package {
import flash.media.*;
public dynamic class DrunkSound extends Sound {
}
}//package
Section 76
//endLevelMC (endLevelMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public class endLevelMC extends MovieClip {
public var showLilyResultMC:MovieClip;
public var letterl:Boolean;
public var letteri:Boolean;
public var lettery:Boolean;
public var continueBut:SimpleButton;
public var timeText:TextField;
public var stageClearTitle:MovieClip;
public var letterL:Boolean;
public function endLevelMC(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false, _arg6:Boolean=false, _arg7:Boolean=false){
addFrameScript(19, frame20);
timeText.visible = false;
timeText.text = (String(_arg3) + " secs");
letterL = _arg4;
letteri = _arg5;
letterl = _arg6;
lettery = _arg7;
addEventListener(Event.ENTER_FRAME, enterframe);
continueBut.addEventListener(MouseEvent.CLICK, clicked);
}
private function clicked(_arg1:MouseEvent):void{
MovieClip(root).changeEndofLevelDepth();
MovieClip(root).nextLevel();
continueBut.removeEventListener(MouseEvent.CLICK, clicked);
}
function frame20(){
stop();
}
private function enterframe(_arg1:Event):void{
if (showLilyResultMC){
if (letterL){
showLilyResultMC.LShow.visible = true;
} else {
showLilyResultMC.LShow.visible = false;
};
if (letteri){
showLilyResultMC.iShow.visible = true;
} else {
showLilyResultMC.iShow.visible = false;
};
if (letterl){
showLilyResultMC.lShow.visible = true;
} else {
showLilyResultMC.lShow.visible = false;
};
if (lettery){
showLilyResultMC.yShow.visible = true;
} else {
showLilyResultMC.yShow.visible = false;
};
};
if (currentLabel == "done"){
timeText.visible = true;
MovieClip(root).changeEndofLevelDepth();
removeEventListener(Event.ENTER_FRAME, enterframe);
};
}
}
}//package
Section 77
//endScreen (endScreen)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class endScreen extends MovieClip {
public var sound:Boolean;
public var music;
public var buyAlbumBut:SimpleButton;
public var playAgainBut:SimpleButton;
private var faderAmount:Number;// = 0.4
private var fader:Timer;
public var backtoMainMenuBut:SimpleButton;
public function endScreen(){
faderAmount = 0.4;
super();
stage.quality = StageQuality.HIGH;
addEventListener(MouseEvent.CLICK, buttonClick);
makeSound();
}
private function fadeMusicIn(_arg1:TimerEvent):void{
if (faderAmount != 0.4){
music.unpauseSound();
faderAmount = (faderAmount + 0.1);
music.changeVolume(faderAmount);
fader = new Timer(25, 1);
fader.addEventListener(TimerEvent.TIMER_COMPLETE, fadeMusicIn);
fader.start();
};
}
private function fadeMusic(_arg1:TimerEvent):void{
if ((((faderAmount > 0)) && (music))){
faderAmount = (faderAmount - 0.1);
music.changeVolume(faderAmount);
fader = new Timer(100, 1);
fader.addEventListener(TimerEvent.TIMER_COMPLETE, fadeMusic);
fader.start();
} else {
if (music){
faderAmount = 0.4;
music.stopSound();
removeChild(music);
music = null;
};
};
}
public function endSound():void{
removeChild(music);
makeSound();
}
private function buttonClick(_arg1:MouseEvent):void{
if (_arg1.target.name == "backtoMainMenuBut"){
MovieClip(root).whereToGo = "mainmenu";
MovieClip(root).faderMC.gotoAndPlay("fadeOut");
fadeMusicOut(null);
MovieClip(root).addEventListener(Event.ENTER_FRAME, MovieClip(root).waitForFade);
} else {
if (_arg1.target.name == "playAgainBut"){
fadeMusicOut(null);
MovieClip(root).whereToGo = "again";
MovieClip(root).faderMC.gotoAndPlay("fadeOut");
MovieClip(root).addEventListener(Event.ENTER_FRAME, MovieClip(root).waitForFade);
} else {
if (_arg1.target.name == "buyAlbumBut"){
MovieClip(root).showDynamicCountry();
};
};
};
removeEventListener(MouseEvent.CLICK, buttonClick);
}
private function fadeMusicOut(_arg1:TimerEvent):void{
if (faderAmount > 0){
faderAmount = (faderAmount - 0.1);
music.changeVolume(faderAmount);
fader = new Timer(25, 1);
fader.addEventListener(TimerEvent.TIMER_COMPLETE, fadeMusicOut);
fader.start();
} else {
faderAmount = 0;
music.changeVolume(0);
music.pauseSound();
};
}
private function makeSound():void{
music = new streamSound("mp3:{a5719c13-f5ff-4522-af41-a4991dabe120}/{8568de06-a1e2-4210-8822-af38f2c48f85}/The Fear (Instrumental).mp3");
addChild(music);
if (!MovieClip(root).sound){
music.muteSound();
};
}
}
}//package
Section 78
//exitMC (exitMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class exitMC extends MovieClip {
private var ob:Object;
public function exitMC(){
ob = MovieClip(root).gameMC;
super();
addFrameScript(0, frame1, 60, frame61);
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
function frame1(){
stop();
}
public function playIt():void{
gotoAndPlay(2);
ob.soundEffects.playExitSound();
}
public function enterframe(_arg1:Event):void{
if (currentLabel == "ending"){
MovieClip(root).gameMC.lillyExit();
};
}
function frame61(){
stop();
}
}
}//package
Section 79
//exitSound (exitSound)
package {
import flash.media.*;
public dynamic class exitSound extends Sound {
}
}//package
Section 80
//fearTile (fearTile)
package {
import flash.display.*;
public dynamic class fearTile extends BitmapData {
public function fearTile(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 81
//game (game)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.geom.*;
public class game extends MovieClip {
public var levelMapArray:Array;
private var diff:Number;
private var wantsToClimbUp:Boolean;// = false
private var press_up:Boolean;// = false
private var timeAllowed:int;// = 0
private var lastDir:String;// = ""
private var timeUsed:int;// = 0
private var drugsTimer:Timer;
var Lilly:Object;
private var hasReset_press_up:Boolean;// = true
var level_height:Number;
private var fear_container:Sprite;
private var actualTimer:Timer;
private var wantsToClimbDown:Boolean;// = false
private var gravity:Number;// = 0.5
private var speed:Number;// = 3
private var allowRight:Boolean;// = true
private var health:int;// = 3
private var movingRight:Boolean;// = false
public var isJumping:Boolean;// = false
private var press_left:Boolean;// = false
private var falling:Boolean;// = false
public var dir:String;// = "Right"
private var maxFallSpeed:Number;// = -20
private var isDrunk:Boolean;// = false
private var fearMaskHeight:Number;// = 0
public var cameraFlashMC:MovieClip;
public var currentYtile:int;
private var bonusesCollected:int;// = 0
private var timeTakenData:Number;// = 0
private var startClimbDown:Boolean;// = false
public var maxNulls;// = 21
private var levelTimeTaken:Number;// = 0
private var hasReset_press_down:Boolean;// = true
public var platformBottomType:String;// = "solid"
private var letterL:Boolean;// = false
public var isWalking:Boolean;// = false
private var allowLeft:Boolean;// = true
private var tile_size:Number;// = 32
public var hitting:Boolean;// = false
private var playerstartYtile:int;
public var soundEffects;
private var lives:int;// = 5
private var letteri:Boolean;// = false
private var letterl:Boolean;// = false
var isDrugged:Boolean;// = false
private var press_down:Boolean;// = false
private var press_right:Boolean;// = false
private var lettery:Boolean;// = false
private var isDieing:Boolean;// = false
public var currentXtile:int;
public var sound;
private var standableTiles:Array;
private var maskforFear:Sprite;
public var backgroundMC:DistortBg;
private var timer:Timer;
var level_width:Number;
public var isClimbingUp:Boolean;// = false
private var startClimbUp:Boolean;// = false
private var faderTimer:Timer;
private var fearGrowthSpeed:Number;// = 0
private var movingLeft:Boolean;// = false
private var fader:Timer;
private var jumpPower:Number;
public var startGame:Boolean;// = false
public var faderAmount:Number;// = 0.4
private var level:Number;// = 1
private var playerstartXtile:int;
private var level_container:Sprite;
public var isClimbingDown:Boolean;// = false
private var fallSpeed:Number;// = 0
public var musicgame;
private var numCards:Number;// = 0
private var bottomYOffset:Number;// = 160
private var initialJumpSpeed:Number;// = 11
private var currentTime:Number;// = 120
private var topOfFearMC:topOfFear;
public var Ob:Object;
var allow_jump_during_transition:Boolean;// = false
private var isFalling:Boolean;// = false
private var drunkenTimer:Timer;
public function game(){
currentTime = 120;
tile_size = 32;
levelTimeTaken = 0;
levelMapArray = new Array();
level_container = new Sprite();
standableTiles = new Array(1);
speed = 3;
movingLeft = false;
movingRight = false;
isWalking = false;
isJumping = false;
isFalling = false;
isDrunk = false;
initialJumpSpeed = 11;
maxFallSpeed = -20;
fallSpeed = 0;
gravity = 0.5;
press_up = false;
press_left = false;
press_right = false;
press_down = false;
startGame = false;
platformBottomType = "solid";
dir = "Right";
allow_jump_during_transition = false;
maxNulls = 21;
isClimbingUp = false;
isClimbingDown = false;
wantsToClimbUp = false;
wantsToClimbDown = false;
level = 1;
lives = 5;
health = 3;
timeUsed = 0;
timeAllowed = 0;
bonusesCollected = 0;
letterL = false;
letteri = false;
letterl = false;
lettery = false;
hitting = false;
bottomYOffset = 160;
timeTakenData = 0;
maskforFear = new Sprite();
fear_container = new Sprite();
fearGrowthSpeed = 0;
fearMaskHeight = 0;
hasReset_press_up = true;
hasReset_press_down = true;
startClimbUp = false;
startClimbDown = false;
lastDir = "";
isDrugged = false;
allowRight = true;
allowLeft = true;
falling = false;
faderAmount = 0.4;
sound = MovieClip(root).sound;
isDieing = false;
numCards = 0;
super();
stage.stageFocusRect = false;
setUpLevel();
makeSound("mp3:{a5719c13-f5ff-4522-af41-a4991dabe120}/{8568de06-a1e2-4210-8822-af38f2c48f85}/The Fear (Clean Version).mp3");
soundEffects = new gameSounds();
addChild(soundEffects);
health = 3;
}
public function removeHealth(_arg1:String, _arg2:String=""):void{
if (!isDieing){
health--;
isWalking = false;
isJumping = false;
backgroundMC.filters = null;
press_left = false;
press_right = false;
press_up = false;
press_down = false;
updateHealthStatus();
if (health > 0){
if (_arg2 == "boss"){
lillyHitBig(_arg1);
} else {
lillyHit(_arg1);
};
} else {
lillyDies();
};
};
}
private function checkLeftandRightSystem():void{
if (((((((!(hitting)) && (movingRight))) && ((currentXtile <= (level_width - 1))))) && (((Math.floor(this.getChildByName("lilly").x) + speed) <= (level_container.x + (tile_size * currentXtile)))))){
this.getChildByName("lilly").x = (this.getChildByName("lilly").x + speed);
if (((((!(isJumping)) && ((fallSpeed == 0)))) && (!(hitting)))){
animate(getChildByName("lilly"), "running");
};
if ((((((((levelMapArray[(currentYtile - 1)][currentXtile] <= maxNulls)) && ((levelMapArray[currentYtile][(currentXtile - 1)] > maxNulls)))) && (!(isJumping)))) && ((fallSpeed <= 3.5)))){
allow_jump_during_transition = true;
} else {
allow_jump_during_transition = false;
};
} else {
if (((((((!(hitting)) && (movingRight))) && ((currentXtile <= (level_width - 1))))) && (((Math.floor(this.getChildByName("lilly").x) + speed) > (level_container.x + (tile_size * currentXtile)))))){
this.getChildByName("lilly").x = (level_container.x + (tile_size * currentXtile));
movingRight = false;
isWalking = false;
if (!isItALadder(levelMapArray[currentYtile][currentXtile])){
isClimbingUp = false;
isClimbingDown = false;
};
} else {
if (((((((!(hitting)) && (movingLeft))) && ((currentXtile >= 0)))) && (((Math.floor(this.getChildByName("lilly").x) - speed) >= (level_container.x + (tile_size * currentXtile)))))){
this.getChildByName("lilly").x = (this.getChildByName("lilly").x - speed);
if (((((!(isJumping)) && ((fallSpeed == 0)))) && (!(hitting)))){
animate(getChildByName("lilly"), "running");
};
if ((((((((levelMapArray[(currentYtile - 1)][currentXtile] <= maxNulls)) && ((levelMapArray[currentYtile][(currentXtile + 1)] > maxNulls)))) && (!(isJumping)))) && ((fallSpeed <= 3.5)))){
allow_jump_during_transition = true;
} else {
allow_jump_during_transition = false;
};
} else {
if (((((((!(hitting)) && (movingLeft))) && ((currentXtile >= 0)))) && (((Math.floor(this.getChildByName("lilly").x) - speed) < (level_container.x + (tile_size * currentXtile)))))){
this.getChildByName("lilly").x = (level_container.x + (tile_size * currentXtile));
movingLeft = false;
isWalking = false;
if (!isItALadder(levelMapArray[currentYtile][currentXtile])){
isClimbingUp = false;
isClimbingDown = false;
};
};
};
};
};
}
private function addPlayerToStage(_arg1:int, _arg2:int):void{
var _local3:*;
if ((((playerstartYtile == _arg1)) && ((playerstartXtile == _arg2)))){
if (MovieClip(root).lilyversion == 1){
_local3 = new playerMC1();
} else {
_local3 = new playerMC2();
};
_local3.x = (level_container.x + (_arg2 * tile_size));
_local3.y = (level_container.y + (_arg1 * tile_size));
currentXtile = playerstartXtile;
currentYtile = playerstartYtile;
_local3.name = "lilly";
addChild(_local3);
Ob = _local3;
};
}
public function gotHealth():void{
if (MovieClip(root).lives <= 4){
MovieClip(root).scoreAreaMC.getChildByName(("heartStatusMC" + lives)).gotoAndStop(1);
lives++;
MovieClip(root).lives++;
updateHealthStatus();
} else {
if (MovieClip(root).lives == 5){
health = 3;
MovieClip(root).scoreAreaMC.getChildByName(("heartStatusMC" + lives)).gotoAndStop(1);
};
};
}
public function removeObjects():void{
var _local1:*;
var _local2:int;
var _local3:Object;
var _local4:Object;
startGame = false;
movingLeft = false;
isWalking = false;
movingRight = false;
isClimbingUp = false;
isClimbingDown = false;
isJumping = false;
isDrunk = false;
isDrugged = false;
isDieing = false;
numCards = 0;
if (timer){
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, updateTimer);
timer.removeEventListener(TimerEvent.TIMER_COMPLETE, endTimer);
timer = null;
};
if (actualTimer){
actualTimer.stop();
actualTimer.removeEventListener(TimerEvent.TIMER, updateactualTimer);
actualTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, endTimer);
actualTimer = null;
};
backgroundMC.amount = 0;
backgroundMC.fadein = true;
soundEffects.stopBigSounds();
if (drunkenTimer){
drunkenTimer.stop();
drunkenTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, notDrink);
backgroundMC.endDisp(null);
};
if (drugsTimer){
drugsTimer.stop();
drugsTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, notDrugs);
backgroundMC.endDisp(null);
};
removeEventListener(Event.ENTER_FRAME, EnterFrame);
if (faderTimer){
faderTimer.removeEventListener(TimerEvent.TIMER, waitToFadeOutDie);
faderTimer.removeEventListener(TimerEvent.TIMER, waitToFadeOutAndComeBack);
faderTimer.removeEventListener(TimerEvent.TIMER, waitToFadeOutLevelComplete);
faderTimer = null;
};
stage.removeEventListener(KeyboardEvent.KEY_DOWN, key_down);
stage.removeEventListener(KeyboardEvent.KEY_UP, key_up);
if (MovieClip(root).getChildByName("endLevel")){
MovieClip(root).removeChild(MovieClip(root).endLevel);
MovieClip(root).changeDynamicFrame(1);
};
_local2 = 0;
while (_local2 <= (level_container.numChildren - 1)) {
_local1 = level_container.getChildAt(_local2);
_local1.killGraphic();
_local1 = null;
_local2++;
};
numCards = 0;
levelMapArray = new Array();
maskforFear.graphics.clear();
_local3 = getChildByName("lilly");
_local3.removeTimers();
_local4 = getChildByName("topOfFearMC");
_local4.killGraphic();
removeChild(getChildByName("topOfFearMC"));
removeChild(getChildByName("lilly"));
removeChild(level_container);
level_container = null;
removeChild(maskforFear);
removeChild(fear_container);
}
private function fearMovement():void{
fearMaskHeight = (fearMaskHeight + fearGrowthSpeed);
maskforFear.graphics.clear();
maskforFear.graphics.beginFill(0xFFFFFF);
maskforFear.graphics.drawRect(0, (((level_height * tile_size) - fearMaskHeight) + 10), 544, 360);
getChildByName("topOfFearMC").y = ((((level_height * tile_size) - fearMaskHeight) + level_container.y) + 6);
maskforFear.graphics.endFill();
if ((((((level_height * tile_size) - fearMaskHeight) + level_container.y) + (Ob.height / 2)) + 9) <= Ob.y){
isJumping = false;
fallSpeed = 0;
};
if (((((((startGame) && (!(isDieing)))) && (!((Ob.y == -600))))) && (((((((level_height * tile_size) - fearMaskHeight) + level_container.y) + (Ob.height / 2)) + 10) <= Ob.y)))){
fearGetsLilly();
};
}
private function checkJumpingSystem():void{
if (((isJumping) && (!(isClimbingUp)))){
isClimbingUp = false;
isClimbingDown = false;
allow_jump_during_transition = false;
if (((!(hitting)) && (!(isClimbingUp)))){
animate(getChildByName("lilly"), "jumping");
};
jumpPower = (jumpPower - gravity);
level_container.y = (level_container.y + jumpPower);
moveGrounds(jumpPower, true);
if (jumpPower > 0){
if (((level_container.y + (tile_size * currentYtile)) + jumpPower) > this.getChildByName("lilly").y){
if ((((((jumpPower > 0)) && (((currentYtile - 2) > 0)))) && ((levelMapArray[(currentYtile - 2)][currentXtile] <= maxNulls)))){
currentYtile = (currentYtile - 1);
allowRight = true;
allowLeft = true;
} else {
if ((((((jumpPower > 0)) && (((currentYtile - 2) > 0)))) && ((levelMapArray[(currentYtile - 2)][currentXtile] > maxNulls)))){
if ((((platformBottomType == "solid")) && (!(allow_jump_during_transition)))){
diff = (this.getChildByName("lilly").y - (level_container.y + (tile_size * currentYtile)));
if ((((jumpPower >= diff)) && ((diff > 0)))){
jumpPower = diff;
fallSpeed = 0;
};
};
};
};
};
} else {
falling = true;
isJumping = false;
fallSpeed = 0;
if (!hitting){
animate(getChildByName("lilly"), "falling");
};
};
};
if (isJumping){
isClimbingUp = false;
isClimbingDown = false;
wantsToClimbUp = false;
falling = false;
};
}
public function createCard(_arg1:Number, _arg2:Number, _arg3:String):void{
var _local4:cardMC;
soundEffects.thrower();
_local4 = new cardMC(_arg3);
_local4.name = ("card" + numCards);
_local4.y = ((tile_size * _arg2) - 40);
if (_arg3 == "Left"){
_local4.x = (tile_size * (_arg1 - 1));
} else {
_local4.x = (tile_size * (_arg1 + 1));
};
level_container.addChild(_local4);
numCards++;
}
public function stopSound():void{
sound = MovieClip(root).sound;
musicgame.stopSound();
removeChild(musicgame);
}
private function startTimer():void{
timeTakenData = 0;
if (timer){
timer = null;
};
timer = new Timer(10, (timeAllowed * 100));
actualTimer = new Timer(1000, timeAllowed);
timer.start();
actualTimer.start();
timer.addEventListener(TimerEvent.TIMER, updateTimer);
actualTimer.addEventListener(TimerEvent.TIMER_COMPLETE, endTimer);
actualTimer.addEventListener(TimerEvent.TIMER, updateactualTimer);
}
private function levelMaps(_arg1:Number):void{
var _local2:Number;
if (_arg1 == 1){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 0, 0, 0, 0, 12, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[3] = [0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 24, 25, 0, 0, 0];
levelMapArray[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0];
levelMapArray[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0];
levelMapArray[6] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0];
levelMapArray[7] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0];
levelMapArray[8] = [0, 0, 11, 0, 0, 0, 22, 23, 24, 25, 0, 0, 0, 22, 23, 24, 25];
levelMapArray[9] = [22, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0];
levelMapArray[11] = [0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 24, 23, 25, 0, 0, 0];
levelMapArray[12] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0];
levelMapArray[13] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0];
levelMapArray[14] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0];
levelMapArray[15] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 10];
levelMapArray[16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 25];
levelMapArray[17] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[18] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[19] = [0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[20] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[21] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 25];
levelMapArray[22] = [22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[23] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[24] = [0, 0, 0, 0, 22, 23, 24, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[25] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[26] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0];
levelMapArray[27] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 9;
playerstartYtile = 26;
timeAllowed = 50;
} else {
if (_arg1 == 2){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 4, 0, 0];
levelMapArray[3] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 25, 0];
levelMapArray[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0];
levelMapArray[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0];
levelMapArray[6] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[7] = [0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 1, 0];
levelMapArray[8] = [0, 0, 0, 0, 27, 0, 0, 0, 22, 25, 0, 0, 22, 23, 24, 25, 0];
levelMapArray[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[11] = [22, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[12] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[13] = [0, 0, 0, 22, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[14] = [0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[15] = [0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[16] = [0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[17] = [0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[18] = [0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[19] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0];
levelMapArray[20] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0];
levelMapArray[21] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0];
levelMapArray[22] = [0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 25, 0, 0, 0, 0];
levelMapArray[23] = [0, 0, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[24] = [0, 0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[25] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[26] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0];
levelMapArray[27] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 9;
playerstartYtile = 26;
timeAllowed = 45;
} else {
if (_arg1 == 3){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 12, 5, 6, 7, 0, 0, 0, 8, 0, 0, 0, 0, 4, 0, 0, 0];
levelMapArray[3] = [22, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 25, 0, 0];
levelMapArray[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0];
levelMapArray[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0];
levelMapArray[6] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0];
levelMapArray[7] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0];
levelMapArray[8] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0];
levelMapArray[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 25, 0];
levelMapArray[10] = [0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[11] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[12] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[13] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[14] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[15] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 26, 0, 0, 0, 0, 0];
levelMapArray[16] = [0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[17] = [0, 0, 0, 0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[18] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[19] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0];
levelMapArray[20] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 25, 0, 0, 0];
levelMapArray[21] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[22] = [0, 0, 0, 0, 5, 6, 7, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[23] = [0, 0, 0, 22, 23, 24, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[24] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[25] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[26] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 25];
levelMapArray[27] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[28] = [26, 22, 23, 24, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[29] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[30] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[31] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 1;
playerstartYtile = 30;
timeAllowed = 40;
} else {
if (_arg1 == 4){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[3] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 12];
levelMapArray[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 25];
levelMapArray[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[6] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 25, 0, 0, 0, 0, 0];
levelMapArray[7] = [11, 0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[8] = [0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[9] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[10] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[11] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[12] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[13] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[14] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[15] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[16] = [0, 0, 22, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[17] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[18] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[19] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[20] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[21] = [26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[22] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[23] = [0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[24] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[25] = [0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[26] = [0, 0, 0, 0, 22, 23, 24, 25, 0, 22, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[27] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[28] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 24, 25];
levelMapArray[29] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[30] = [0, 22, 25, 0, 0, 0, 22, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[31] = [10, 0, 0, 0, 22, 23, 25, 0, 0, 22, 23, 25, 0, 0, 0, 0, 0];
levelMapArray[32] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0];
levelMapArray[33] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 25];
levelMapArray[34] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3];
levelMapArray[35] = [0, 5, 7, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[36] = [22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[37] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[38] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[39] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[40] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
levelMapArray[41] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 24, 25];
levelMapArray[42] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[43] = [0, 0, 0, 0, 0, 4, 0, 0, 9, 5, 6, 7, 0, 0, 0, 0, 0];
levelMapArray[44] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 1;
playerstartYtile = 43;
timeAllowed = 70;
} else {
if (_arg1 == 5){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[3] = [0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 8, 0, 0, 0, 0, 0, 0];
levelMapArray[4] = [0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 24, 25, 0, 0, 0, 0, 0];
levelMapArray[5] = [0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[6] = [22, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[7] = [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[8] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[9] = [1, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 22, 23, 24, 23, 24, 25];
levelMapArray[10] = [22, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3];
levelMapArray[11] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[12] = [0, 0, 0, 0, 0, 26, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[13] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[14] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[15] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
levelMapArray[16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27];
levelMapArray[17] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0];
levelMapArray[18] = [22, 23, 24, 25, 0, 0, 22, 23, 24, 23, 24, 23, 25, 0, 0, 0, 11];
levelMapArray[19] = [0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27];
levelMapArray[20] = [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[21] = [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[22] = [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[23] = [17, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0];
levelMapArray[24] = [22, 23, 24, 25, 0, 0, 22, 25, 0, 0, 22, 23, 24, 23, 24, 25, 0];
levelMapArray[25] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[26] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 7, 0];
levelMapArray[27] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 25];
levelMapArray[28] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0];
levelMapArray[29] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 2, 0, 0, 0, 0];
levelMapArray[30] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 2, 0, 0, 0, 0];
levelMapArray[31] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0];
levelMapArray[32] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0];
levelMapArray[33] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0];
levelMapArray[34] = [17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0];
levelMapArray[35] = [22, 25, 0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 24, 23, 25, 0];
levelMapArray[36] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[37] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[38] = [0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[39] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[40] = [17, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[41] = [22, 23, 24, 23, 24, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[42] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[43] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[44] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 22, 23, 24, 23, 24, 25, 0];
levelMapArray[45] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0];
levelMapArray[46] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[47] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[48] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[49] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[50] = [0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 1, 0];
levelMapArray[51] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 7;
playerstartYtile = 50;
timeAllowed = 70;
} else {
if (_arg1 == 6){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[3] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[4] = [0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 25, 0, 0, 0, 0, 0];
levelMapArray[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0];
levelMapArray[6] = [0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0];
levelMapArray[7] = [0, 5, 6, 7, 0, 0, 14, 5, 7, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[8] = [0, 22, 23, 25, 0, 0, 22, 24, 25, 0, 0, 0, 0, 0, 0, 0, 27];
levelMapArray[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[11] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0];
levelMapArray[12] = [0, 0, 0, 0, 0, 0, 0, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[13] = [0, 0, 0, 0, 0, 0, 22, 23, 24, 25, 11, 0, 0, 0, 0, 0, 0];
levelMapArray[14] = [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[15] = [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[16] = [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[17] = [0, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[18] = [0, 0, 0, 22, 23, 24, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[19] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0];
levelMapArray[20] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[21] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[22] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[23] = [0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0];
levelMapArray[24] = [0, 22, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[25] = [0, 0, 0, 0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[26] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 25, 0, 0];
levelMapArray[27] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[28] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[29] = [0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 25, 0, 0, 0, 0, 0];
levelMapArray[30] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0];
levelMapArray[31] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0];
levelMapArray[32] = [0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0];
levelMapArray[33] = [0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0];
levelMapArray[34] = [22, 23, 25, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0];
levelMapArray[35] = [0, 0, 0, 0, 5, 6, 7, 13, 0, 0, 1, 5, 6, 6, 7, 0, 0];
levelMapArray[36] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 9;
playerstartYtile = 35;
timeAllowed = 90;
} else {
if (_arg1 == 7){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[3] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 5, 7, 0, 0];
levelMapArray[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 25, 0];
levelMapArray[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0];
levelMapArray[6] = [0, 15, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[7] = [22, 23, 24, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[8] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 5, 7, 2, 0];
levelMapArray[9] = [0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 22, 23, 23, 24, 23, 24, 25];
levelMapArray[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0];
levelMapArray[11] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[12] = [0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[13] = [0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 12];
levelMapArray[14] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 25];
levelMapArray[15] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[16] = [0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16];
levelMapArray[17] = [0, 0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 25];
levelMapArray[18] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0];
levelMapArray[19] = [0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[20] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[21] = [0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[22] = [0, 0, 0, 0, 0, 0, 0, 26, 27, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[23] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[24] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[25] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[26] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[27] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16];
levelMapArray[28] = [0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 25];
levelMapArray[29] = [0, 0, 0, 0, 0, 0, 0, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[30] = [0, 0, 0, 0, 0, 0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[31] = [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[32] = [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[33] = [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[34] = [0, 0, 0, 0, 0, 17, 1, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[35] = [0, 0, 0, 22, 23, 24, 23, 24, 25, 0, 0, 0, 0, 10, 0, 0, 0];
levelMapArray[36] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[37] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[38] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[39] = [9, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[40] = [22, 24, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[41] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0];
levelMapArray[42] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 24, 25];
levelMapArray[43] = [0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[44] = [0, 0, 0, 0, 0, 0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[45] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0];
levelMapArray[46] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[47] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 6, 7];
levelMapArray[48] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 25];
levelMapArray[49] = [0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[50] = [0, 0, 0, 0, 0, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[51] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[52] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[53] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 6;
playerstartYtile = 52;
timeAllowed = 120;
} else {
if (_arg1 == 8){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[3] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[5] = [17, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[6] = [22, 23, 24, 23, 25, 0, 0, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[7] = [0, 0, 0, 0, 0, 0, 0, 22, 23, 25, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[8] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 24, 25, 0, 0, 0];
levelMapArray[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0];
levelMapArray[11] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0];
levelMapArray[12] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0];
levelMapArray[13] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 4, 12];
levelMapArray[14] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 25];
levelMapArray[15] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[16] = [0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 11, 0];
levelMapArray[17] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[18] = [0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[19] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0];
levelMapArray[20] = [27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27];
levelMapArray[21] = [0, 17, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[22] = [0, 22, 24, 23, 25, 0, 0, 0, 22, 23, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[23] = [0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16];
levelMapArray[24] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 25];
levelMapArray[25] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[26] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[27] = [0, 18, 0, 1, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[28] = [22, 23, 24, 23, 24, 25, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[29] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[30] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 13, 0, 0, 0, 0];
levelMapArray[31] = [0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[32] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[33] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[34] = [17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[35] = [22, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0];
levelMapArray[36] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[37] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[38] = [0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[39] = [0, 0, 0, 22, 23, 25, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 21];
levelMapArray[40] = [0, 0, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 22, 23, 24, 25];
levelMapArray[41] = [0, 0, 0, 0, 0, 0, 22, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[42] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[43] = [0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[44] = [0, 0, 0, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[45] = [0, 0, 0, 22, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[46] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[47] = [0, 0, 0, 0, 0, 0, 0, 22, 23, 25, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[48] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 9, 16];
levelMapArray[49] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 24, 23, 24, 25];
levelMapArray[50] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[51] = [17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[52] = [22, 23, 24, 23, 25, 0, 0, 0, 0, 22, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[53] = [0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[54] = [0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0];
levelMapArray[55] = [0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 22, 24, 25, 0, 0, 0];
levelMapArray[56] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[57] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[58] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 1;
playerstartYtile = 57;
timeAllowed = 140;
} else {
if (_arg1 == 9){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[3] = [17, 0, 0, 0, 0, 5, 6, 7, 0, 0, 0, 19, 0, 0, 5, 7, 0];
levelMapArray[4] = [27, 0, 0, 0, 22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
levelMapArray[5] = [0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3];
levelMapArray[6] = [0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 12, 0, 0, 0, 0, 0, 2];
levelMapArray[7] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 17, 0, 8, 0, 1];
levelMapArray[8] = [0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 25];
levelMapArray[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[10] = [27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[11] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[12] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[13] = [22, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[14] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[15] = [11, 0, 0, 18, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[16] = [22, 24, 23, 24, 23, 24, 23, 24, 23, 24, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[17] = [0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[18] = [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[19] = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[20] = [0, 0, 0, 22, 23, 24, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[21] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 25];
levelMapArray[22] = [0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 3];
levelMapArray[23] = [21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[24] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 25, 0, 0, 0, 0, 0, 2];
levelMapArray[25] = [0, 0, 0, 0, 0, 0, 0, 18, 27, 0, 0, 5, 7, 17, 0, 0, 2];
levelMapArray[26] = [26, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 22, 23, 25, 0, 0, 2];
levelMapArray[27] = [0, 0, 0, 0, 0, 18, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[28] = [0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[29] = [0, 0, 0, 0, 27, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[30] = [22, 23, 24, 23, 24, 23, 24, 23, 25, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[31] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[32] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[33] = [0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[34] = [0, 0, 22, 23, 24, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[35] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 1];
levelMapArray[36] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 24, 25];
levelMapArray[37] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[38] = [26, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[39] = [0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[40] = [0, 0, 22, 23, 25, 0, 0, 0, 22, 24, 25, 0, 22, 24, 25, 0, 0];
levelMapArray[41] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0];
levelMapArray[42] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0];
levelMapArray[43] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0];
levelMapArray[44] = [0, 0, 0, 0, 13, 0, 18, 0, 0, 0, 5, 6, 7, 0, 1, 0, 18];
levelMapArray[45] = [0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 25];
levelMapArray[46] = [10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[47] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[48] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[49] = [0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[50] = [17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[51] = [27, 0, 0, 22, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[52] = [0, 0, 0, 0, 0, 0, 0, 5, 7, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[53] = [0, 0, 0, 0, 0, 0, 0, 22, 23, 25, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[54] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0];
levelMapArray[55] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 24, 25, 0, 0];
levelMapArray[56] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[57] = [0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0];
levelMapArray[58] = [0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[59] = [0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[60] = [0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[61] = [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[62] = [0, 0, 0, 0, 0, 0, 0, 22, 23, 25, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[63] = [0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 16];
levelMapArray[64] = [0, 0, 27, 0, 0, 27, 0, 0, 0, 0, 0, 27, 0, 0, 22, 24, 25];
levelMapArray[65] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[66] = [0, 0, 5, 7, 18, 16, 0, 0, 0, 0, 0, 17, 18, 5, 7, 0, 0];
levelMapArray[67] = [0, 22, 23, 24, 23, 24, 25, 0, 0, 0, 22, 23, 24, 23, 24, 25, 0];
levelMapArray[68] = [0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0];
levelMapArray[69] = [0, 2, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 0, 2, 0];
levelMapArray[70] = [0, 1, 0, 0, 0, 0, 1, 0, 21, 0, 1, 0, 0, 0, 0, 1, 0];
levelMapArray[71] = [22, 25, 0, 0, 0, 0, 22, 23, 24, 23, 25, 0, 0, 0, 0, 22, 25];
levelMapArray[72] = [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3];
levelMapArray[73] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[74] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[75] = [1, 17, 0, 0, 0, 0, 0, 13, 0, 14, 0, 0, 0, 0, 0, 16, 1];
levelMapArray[76] = [22, 25, 0, 0, 0, 0, 22, 23, 24, 23, 25, 0, 0, 0, 0, 22, 25];
levelMapArray[77] = [0, 3, 0, 0, 0, 0, 3, 27, 3, 27, 3, 0, 0, 0, 0, 3, 0];
levelMapArray[78] = [0, 2, 0, 0, 0, 0, 2, 27, 2, 27, 2, 0, 0, 0, 0, 2, 0];
levelMapArray[79] = [0, 1, 0, 0, 4, 18, 1, 27, 2, 27, 1, 18, 0, 0, 4, 1, 0];
levelMapArray[80] = [22, 23, 24, 23, 24, 23, 25, 0, 2, 0, 22, 24, 23, 24, 23, 24, 25];
levelMapArray[81] = [0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[82] = [0, 0, 0, 0, 0, 0, 0, 18, 1, 18, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[83] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 1;
playerstartYtile = 82;
timeAllowed = 170;
} else {
if (_arg1 == 10){
levelMapArray[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[3] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[6] = [0, 5, 7, 0, 0, 19, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 16];
levelMapArray[7] = [22, 23, 24, 23, 24, 23, 24, 25, 0, 22, 24, 25, 0, 0, 0, 0, 27];
levelMapArray[8] = [3, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[9] = [2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[10] = [2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[11] = [2, 12, 0, 0, 0, 0, 0, 1, 8, 0, 18, 0, 0, 0, 0, 0, 0];
levelMapArray[12] = [1, 5, 7, 0, 0, 0, 22, 23, 24, 23, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[13] = [22, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 25, 0, 0, 0];
levelMapArray[14] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[15] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 7];
levelMapArray[16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 25];
levelMapArray[17] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0];
levelMapArray[18] = [0, 0, 0, 22, 23, 24, 25, 0, 22, 23, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[19] = [0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0];
levelMapArray[20] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[21] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[22] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[23] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16];
levelMapArray[24] = [0, 15, 0, 1, 0, 0, 0, 22, 23, 25, 0, 22, 24, 25, 0, 0, 27];
levelMapArray[25] = [22, 24, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[26] = [0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21];
levelMapArray[27] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0];
levelMapArray[28] = [21, 0, 0, 0, 19, 0, 0, 22, 23, 24, 23, 24, 23, 24, 25, 26, 27];
levelMapArray[29] = [22, 23, 24, 23, 24, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[30] = [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[31] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0];
levelMapArray[32] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[33] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[34] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 5, 7, 0, 5, 7, 0, 0, 4];
levelMapArray[35] = [1, 0, 0, 0, 0, 27, 0, 0, 0, 22, 23, 24, 23, 24, 23, 24, 25];
levelMapArray[36] = [22, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3];
levelMapArray[37] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[38] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[39] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2];
levelMapArray[40] = [0, 0, 0, 0, 13, 15, 0, 0, 14, 0, 0, 0, 4, 0, 0, 16, 1];
levelMapArray[41] = [0, 0, 0, 22, 23, 24, 25, 0, 0, 0, 22, 23, 25, 0, 0, 22, 25];
levelMapArray[42] = [0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[43] = [0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[44] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[45] = [22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[46] = [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[47] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[48] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16];
levelMapArray[49] = [22, 23, 24, 25, 0, 0, 0, 27, 0, 0, 0, 21, 0, 0, 0, 0, 27];
levelMapArray[50] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[51] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[52] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[53] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[54] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[55] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0];
levelMapArray[56] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16];
levelMapArray[57] = [0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 22, 25];
levelMapArray[58] = [0, 0, 0, 0, 0, 0, 0, 22, 25, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[59] = [0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[60] = [0, 22, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[61] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[62] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0];
levelMapArray[63] = [0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 16];
levelMapArray[64] = [17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 25];
levelMapArray[65] = [22, 25, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[66] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 7, 0, 0, 16, 0];
levelMapArray[67] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 24, 23, 24, 25, 0];
levelMapArray[68] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[69] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[70] = [0, 0, 0, 0, 27, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[71] = [27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[72] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[73] = [10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[74] = [0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[75] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[76] = [0, 0, 4, 0, 0, 0, 19, 0, 0, 0, 0, 4, 0, 0, 0, 0, 16];
levelMapArray[77] = [22, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25, 0, 0, 0, 0, 27];
levelMapArray[78] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 25, 0, 0, 0];
levelMapArray[79] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21];
levelMapArray[80] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[81] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 27, 0];
levelMapArray[82] = [0, 0, 0, 27, 0, 0, 0, 14, 0, 27, 0, 26, 0, 15, 0, 3, 0];
levelMapArray[83] = [0, 0, 0, 3, 0, 0, 0, 0, 0, 3, 0, 22, 23, 24, 25, 2, 0];
levelMapArray[84] = [0, 0, 0, 2, 0, 0, 0, 26, 0, 2, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[85] = [0, 0, 0, 1, 0, 0, 0, 27, 0, 1, 13, 0, 0, 0, 0, 1, 0];
levelMapArray[86] = [0, 0, 0, 22, 23, 25, 21, 27, 0, 22, 24, 25, 0, 22, 23, 25, 0];
levelMapArray[87] = [26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[88] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[89] = [0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0];
levelMapArray[90] = [0, 0, 22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 25, 0, 0, 0];
levelMapArray[91] = [17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0];
levelMapArray[92] = [27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0];
levelMapArray[93] = [0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 1, 0, 0, 0];
levelMapArray[94] = [17, 0, 0, 0, 0, 22, 24, 23, 24, 23, 24, 23, 24, 25, 0, 0, 0];
levelMapArray[95] = [27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[96] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[97] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[98] = [0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[99] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0];
levelMapArray[100] = [0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0];
levelMapArray[101] = [0, 0, 0, 0, 0, 0, 27, 0, 0, 26, 0, 27, 0, 26, 0, 0, 0];
levelMapArray[102] = [22, 23, 25, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0];
levelMapArray[103] = [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[104] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[105] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[106] = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[107] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[108] = [22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0];
levelMapArray[109] = [0, 0, 0, 0, 0, 0, 0, 18, 0, 0, 4, 0, 0, 0, 0, 0, 0];
levelMapArray[110] = [0, 0, 0, 0, 0, 0, 22, 23, 24, 23, 25, 0, 0, 0, 0, 0, 0];
levelMapArray[111] = [17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[112] = [22, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26];
levelMapArray[113] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[114] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0];
levelMapArray[115] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[116] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0];
levelMapArray[117] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[118] = [0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 27];
levelMapArray[119] = [0, 0, 0, 0, 0, 22, 23, 24, 23, 24, 23, 25, 0, 0, 0, 0, 0];
levelMapArray[120] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[121] = [22, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[122] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[123] = [0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
levelMapArray[124] = [22, 24, 25, 0, 0, 0, 0, 5, 6, 7, 0, 0, 0, 0, 0, 26, 0];
levelMapArray[125] = [0, 0, 0, 0, 9, 0, 0, 22, 23, 24, 23, 25, 0, 0, 0, 0, 0];
levelMapArray[126] = [0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5];
levelMapArray[127] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 25];
levelMapArray[128] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0];
levelMapArray[129] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[130] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0];
levelMapArray[131] = [17, 0, 0, 0, 5, 7, 0, 5, 7, 0, 18, 0, 0, 0, 4, 1, 16];
levelMapArray[132] = [22, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 25];
playerstartXtile = 3;
playerstartYtile = 131;
timeAllowed = 360;
};
};
};
};
};
};
};
};
};
};
createLevel(levelMapArray);
_local2 = ((-(level_height) * tile_size) + 350);
level_container.y = _local2;
addPlayerToStage(playerstartYtile, playerstartXtile);
backgroundMC.gotoAndStop(level);
backgroundMC.y = ((0 - backgroundMC.height) + 360);
this.addEventListener(Event.ENTER_FRAME, EnterFrame);
}
public function gotSmallHealth():void{
health++;
if (health > 3){
MovieClip(root).scoreAreaMC.getChildByName(("heartStatusMC" + lives)).gotoAndStop(1);
health = 1;
lives++;
if (lives > 5){
lives = 5;
health = 3;
};
updateHealthStatus();
MovieClip(root).lives = lives;
} else {
updateHealthStatus();
};
}
private function isItALadder(_arg1:Number):Boolean{
if ((((((_arg1 == 1)) || ((_arg1 == 2)))) || ((_arg1 == 3)))){
return (true);
};
return (false);
}
private function createFear():void{
var _local1:topOfFear;
fear_container.name = "fear_container";
fear_container.y = ((-(level_height) * tile_size) + 350);
fear_container.graphics.beginBitmapFill(new fearTile(218, 122));
fear_container.graphics.drawRect(0, 0, 544, ((level_height * tile_size) + 10));
fear_container.graphics.endFill();
fear_container.mask = maskforFear;
addChild(fear_container);
maskforFear.y = ((-(level_height) * tile_size) + 350);
maskforFear.name = "maskforFear";
addChild(maskforFear);
fearGrowthSpeed = ((((level_height + 3) * tile_size) / timeAllowed) / 100);
fearMaskHeight = 0;
_local1 = new topOfFear();
_local1.name = "topOfFearMC";
addChild(_local1);
}
public function nextLevel():void{
removeObjects();
setUpLevel();
sound = MovieClip(root).sound;
faderAmount = 0.4;
fadeMusicInFromQuiet(null);
stage.focus = this;
}
private function checkExit(_arg1:Number, _arg2:Number):void{
var _local3:Object;
if (isItAExit(_arg1, _arg2)){
hitting = true;
_local3 = level_container.getChildByName(((("t" + _arg1) + "_") + _arg2));
_local3.startEnding();
};
}
private function lostLife(_arg1:TimerEvent):void{
if (lives < 1){
level--;
MovieClip(root).levelNum--;
faderTimer = null;
faderTimer = new Timer(0, 200);
faderTimer.addEventListener(TimerEvent.TIMER_COMPLETE, waitToFadeOutDie);
faderTimer.start();
} else {
faderTimer = null;
faderTimer = new Timer(0, 200);
faderTimer.addEventListener(TimerEvent.TIMER, waitToFadeOutAndComeBack);
faderTimer.start();
};
}
private function lillyDies(_arg1:Boolean=false):void{
var _local2:Timer;
var _local3:*;
movingLeft = false;
movingRight = false;
isClimbingUp = false;
isClimbingDown = false;
health = 3;
hitting = true;
MovieClip(root).scoreAreaMC.getChildByName(("heartStatusMC" + lives)).gotoAndStop(4);
lives--;
MovieClip(root).lives--;
isDieing = true;
if (_arg1){
soundEffects.playDeathFearSound();
if (MovieClip(root).lilyversion == 1){
_local3 = new lilysinkMC1();
} else {
_local3 = new lilysinkMC2();
};
_local3.name = "sink";
_local3.scaleX = getChildByName("lilly").scaleX;
_local3.x = (getChildByName("lilly").x - 8);
_local3.y = (getChildByName("lilly").y - 75);
addChild(_local3);
getChildByName("lilly").y = -600;
animate(this.getChildByName("lilly"), "stand");
getChildByName("lilly").x = 600;
} else {
soundEffects.playDeathSound();
animate(this.getChildByName("lilly"), "dead");
};
_local2 = new Timer(1200, 1);
_local2.addEventListener(TimerEvent.TIMER_COMPLETE, lostLife);
_local2.start();
MovieClip(root).faderMC.gotoAndPlay("fadeOutGame");
}
private function isItAExit(_arg1:Number, _arg2:Number):Boolean{
var _local3:*;
_local3 = levelMapArray[_arg1][_arg2];
if (_local3 == 8){
return (true);
};
return (false);
}
private function fadeMusicInFromQuiet(_arg1:TimerEvent):void{
if (faderAmount < 0.4){
faderAmount = (faderAmount + 0.05);
sound = MovieClip(root).sound;
musicgame.changeVolume(faderAmount);
fader = new Timer(100, 1);
fader.addEventListener(TimerEvent.TIMER_COMPLETE, fadeMusicInFromQuiet);
fader.start();
} else {
faderAmount = 0.4;
sound = MovieClip(root).sound;
musicgame.changeVolume(faderAmount);
};
}
private function checkClimbingDown():void{
if ((level_container.y + (tile_size * currentYtile)) == this.getChildByName("lilly").y){
fallSpeed = 0;
if (!hitting){
animate(getChildByName("lilly"), "climbing");
};
if (((((((((currentYtile + 2) < level_height)) && (press_down))) && (wantsToClimbDown))) && (((hangingFromLadder(currentYtile, currentXtile)) || (hangingFromLadder((currentYtile + 2), currentXtile)))))){
wantsToClimbDown = true;
currentYtile++;
} else {
if (((!(hangingFromLadder(currentYtile, currentXtile))) && ((levelMapArray[currentYtile][currentXtile] == 0)))){
isClimbingUp = false;
isClimbingDown = false;
} else {
if (((((hangingFromLadder(currentYtile, currentXtile)) || ((levelMapArray[currentYtile][currentXtile] > maxNulls)))) || ((levelMapArray[(currentYtile + 1)][currentXtile] > maxNulls)))){
if (!hitting){
animate(getChildByName("lilly"), "climbstand");
};
};
};
wantsToClimbDown = false;
};
} else {
if ((level_container.y + (tile_size * currentYtile)) != this.getChildByName("lilly").y){
fallSpeed = 0;
if (!hitting){
animate(getChildByName("lilly"), "climbing");
};
diff = ((level_container.y + (tile_size * currentYtile)) - this.getChildByName("lilly").y);
if ((((speed >= diff)) && ((diff > 0)))){
level_container.y = (level_container.y - diff);
moveGrounds(diff, false);
} else {
level_container.y = (level_container.y - speed);
moveGrounds(speed, false);
};
};
};
}
public function key_up(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 37:
if (!isDrugged){
press_left = false;
} else {
press_right = false;
};
break;
case 38:
press_up = false;
hasReset_press_up = true;
startClimbUp = false;
break;
case 39:
if (!isDrugged){
press_right = false;
} else {
press_left = false;
};
break;
case 40:
press_down = false;
hasReset_press_down = true;
startClimbDown = false;
break;
default:
press_right = false;
press_left = false;
break;
};
}
public function springDown(_arg1:Number, _arg2:Number, _arg3:Number):void{
if (levelMapArray[_arg1][_arg2] != _arg3){
levelMapArray[_arg1][_arg2] = _arg3;
};
}
public function callCameraFlash():void{
var hitTimer:Timer;
cameraFlashMC.play();
isClimbingUp = false;
isClimbingDown = false;
hitting = true;
press_up = false;
press_left = false;
press_right = false;
isJumping = false;
hitTimer = new Timer(2000, 1);
hitTimer.addEventListener(TimerEvent.TIMER_COMPLETE, function ():void{
var _local1:*;
hitting = false;
});
hitTimer.start();
animate(getChildByName("lilly"), "dazed");
soundEffects.playFlashSound();
}
private function isItASpike(_arg1:Number, _arg2:Number):Boolean{
var _local3:*;
var _local4:Object;
var _local5:Object;
_local3 = levelMapArray[_arg1][_arg2];
if ((((((_local3 == 5)) || ((_local3 == 6)))) || ((_local3 == 7)))){
_local4 = level_container.getChildByName(((("t" + _arg1) + "_") + _arg2));
_local5 = getChildByName("lilly");
if ((((_local4.customMessage == "spiking")) && (!(_local5.invincible)))){
return (true);
};
return (false);
//unresolved jump
};
return (false);
}
public function key_down(_arg1:KeyboardEvent):void{
var _local2:*;
if (!hitting){
switch (_arg1.keyCode){
case 37:
if (!isDrugged){
press_left = true;
dir = "Left";
} else {
press_right = true;
dir = "Right";
};
break;
case 38:
if (((hasReset_press_up) && (((isItALadder(levelMapArray[currentYtile][currentXtile])) || (((isItALadder(levelMapArray[(currentYtile + 1)][currentXtile])) && ((levelMapArray[currentYtile][currentXtile] > maxNulls)))))))){
startClimbUp = true;
isJumping = false;
} else {
if ((((((((((((((fallSpeed >= 0)) && (!(isClimbingUp)))) && (!(isClimbingDown)))) && (!(isJumping)))) && (!(press_up)))) && ((((levelMapArray[(currentYtile + 1)][currentXtile] > maxNulls)) || (allow_jump_during_transition))))) && ((((platformBottomType == "liquid")) || ((((platformBottomType == "solid")) && ((levelMapArray[(currentYtile - 2)][currentXtile] <= maxNulls)))))))){
if (allow_jump_during_transition){
if (this.getChildByName("lilly").y != (level_container.y + (tile_size * (currentYtile - 1)))){
_local2 = -(((level_container.y + (tile_size * (currentYtile - 1))) - this.getChildByName("lilly").y));
if (_local2 > 0){
level_container.y = (level_container.y + _local2);
moveGrounds(_local2, true);
};
};
currentYtile--;
};
allow_jump_during_transition = false;
isJumping = true;
soundEffects.jump();
currentYtile = (currentYtile - 1);
jumpPower = initialJumpSpeed;
press_up = true;
};
};
break;
case 39:
if (!isDrugged){
press_right = true;
dir = "Right";
} else {
press_left = true;
dir = "Left";
};
break;
case 40:
if (((((hasReset_press_down) && (!(press_down)))) && (((((isItALadder(levelMapArray[currentYtile][currentXtile])) && ((levelMapArray[(currentYtile + 1)][currentXtile] <= maxNulls)))) || (isItALadder(levelMapArray[(currentYtile + 2)][currentXtile])))))){
startClimbDown = true;
};
break;
default:
break;
};
};
}
private function isItADog(_arg1:Number):Boolean{
if (_arg1 == 4){
return (true);
};
return (false);
}
private function moveGrounds(_arg1:Number, _arg2:Boolean):void{
if (_arg2){
this.getChildByName("backgroundMC").y = (this.getChildByName("backgroundMC").y + (_arg1 / 10));
this.getChildByName("fear_container").y = (this.getChildByName("fear_container").y + _arg1);
this.getChildByName("maskforFear").y = (this.getChildByName("maskforFear").y + _arg1);
this.getChildByName("topOfFearMC").y = (this.getChildByName("topOfFearMC").y + _arg1);
} else {
this.getChildByName("backgroundMC").y = (this.getChildByName("backgroundMC").y - (_arg1 / 10));
this.getChildByName("fear_container").y = (this.getChildByName("fear_container").y - _arg1);
this.getChildByName("maskforFear").y = (this.getChildByName("maskforFear").y - _arg1);
this.getChildByName("topOfFearMC").y = (this.getChildByName("topOfFearMC").y - _arg1);
};
}
private function checkStartClimber():void{
if (((((startClimbUp) && (((level_container.y + (tile_size * currentYtile)) == this.getChildByName("lilly").y)))) && (!(hitting)))){
wantsToClimbUp = true;
hasReset_press_up = false;
press_up = true;
isClimbingUp = true;
startClimbUp = false;
} else {
if (((((startClimbDown) && (((level_container.y + (tile_size * currentYtile)) == this.getChildByName("lilly").y)))) && (!(hitting)))){
isClimbingDown = true;
wantsToClimbDown = true;
press_down = true;
hasReset_press_down = false;
startClimbDown = false;
};
};
}
public function springLilly():void{
if (((!(hitting)) && (!(isDieing)))){
animate(getChildByName("lilly"), "falling");
};
allow_jump_during_transition = false;
soundEffects.jackInTheBoxSound();
fallSpeed = 0;
jumpPower = 15;
currentYtile = (currentYtile - 1);
press_up = false;
isJumping = true;
}
private function hangingFromLadder(_arg1:Number, _arg2:Number):Boolean{
var _local3:*;
_local3 = levelMapArray[_arg1][_arg2];
if ((((((((_local3 == 1)) || ((_local3 == 2)))) || ((_local3 == 3)))) && ((levelMapArray[(_arg1 + 1)][_arg2] <= maxNulls)))){
return (true);
};
return (false);
}
private function animate(_arg1:Object, _arg2:String):void{
if (((!(isDieing)) || ((_arg2 == "dead")))){
if (_arg1 == getChildByName("lilly")){
if (((isDrunk) && ((_arg2 == "running")))){
_arg2 = "runningdrunk";
};
if (((isDrunk) && ((_arg2 == "stand")))){
_arg2 = "standdrunk";
};
if (((isDrunk) && ((_arg2 == "jumping")))){
_arg2 = "jumpingdrunk";
};
if (((isDrugged) && ((_arg2 == "running")))){
_arg2 = "runningdrugged";
};
if (((isDrugged) && ((_arg2 == "stand")))){
_arg2 = "standdrugged";
};
if (((isDrugged) && ((_arg2 == "jumping")))){
_arg2 = "jumpingdrugged";
};
if (((isDrugged) && ((_arg2 == "falling")))){
_arg2 = "fallingdrugged";
};
if (((isDrunk) && ((_arg2 == "falling")))){
_arg2 = "fallingdrunk";
};
};
if ((((_arg1 == getChildByName("lilly"))) && (!((_arg1.currentLabel == (_arg2 + dir)))))){
if (_arg2 == "stand"){
checkExit(currentYtile, currentXtile);
};
_arg1.gotoAndStop((_arg2 + dir));
} else {
if (_arg1 != getChildByName("lilly")){
_arg1.gotoAndStop(_arg2);
};
};
};
}
private function waitToFadeOutDie(_arg1:TimerEvent):void{
fadeMusic(null);
stage.quality = StageQuality.HIGH;
if (MovieClip(root).faderMC.currentLabel == "fadedOut"){
if (getChildByName("sink")){
removeChild(getChildByName("sink"));
};
faderTimer.removeEventListener(TimerEvent.TIMER, waitToFadeOutDie);
removeObjects();
MovieClip(root).tallyScore();
MovieClip(root).gotoAndStop("gameOver", "end");
};
}
private function setUpLevel(){
if (faderTimer){
faderTimer = null;
};
stage.quality = StageQuality.LOW;
level_container = new Sprite();
stage.addEventListener(KeyboardEvent.KEY_DOWN, key_down);
stage.addEventListener(KeyboardEvent.KEY_UP, key_up);
level = MovieClip(root).levelNum;
lives = MovieClip(root).lives;
levelMaps(level);
startGame = true;
hitting = false;
bonusesCollected = 0;
speed = 3;
initialJumpSpeed = 11;
isDrunk = false;
isDrugged = false;
backgroundMC.filters = null;
Lilly = getChildByName("lilly");
createFear();
startTimer();
letterL = false;
letteri = false;
letterl = false;
lettery = false;
}
private function updateHealthStatus():void{
if (health >= 0){
MovieClip(root).scoreAreaMC.getChildByName(("heartStatusMC" + lives)).gotoAndStop((4 - health));
};
}
private function checkStartWalker():void{
if (((((((((((((((((allowRight) && (!(hitting)))) && (!(isWalking)))) && (!(movingRight)))) && (press_right))) && (((currentXtile + 1) <= (level_width - 1))))) && ((levelMapArray[(currentYtile - 1)][(currentXtile + 1)] <= maxNulls)))) && ((levelMapArray[currentYtile][(currentXtile + 1)] <= maxNulls)))) && (!(isItASpike(currentYtile, (currentXtile + 1)))))){
if (((((!(isJumping)) && (!(falling)))) || (((((((isJumping) || (falling))) && ((((levelMapArray[currentYtile][(currentXtile + 1)] == null)) || ((levelMapArray[currentYtile][(currentXtile + 1)] <= maxNulls)))))) && ((((levelMapArray[(currentYtile + 1)][(currentXtile + 1)] == null)) || ((levelMapArray[(currentYtile + 1)][(currentXtile + 1)] <= maxNulls)))))))){
movingRight = true;
dir = "Right";
currentXtile++;
isWalking = true;
} else {
allowRight = false;
};
} else {
if (((((((((((((((!(hitting)) && (!(isWalking)))) && (!(movingLeft)))) && (press_left))) && (((currentXtile - 1) >= 0)))) && ((levelMapArray[(currentYtile - 1)][(currentXtile - 1)] <= maxNulls)))) && ((levelMapArray[currentYtile][(currentXtile - 1)] <= maxNulls)))) && (!(isItASpike(currentYtile, (currentXtile - 1)))))){
if (((((!(isJumping)) && (!(falling)))) || (((((((isJumping) || (falling))) && ((((levelMapArray[currentYtile][(currentXtile - 1)] == null)) || ((levelMapArray[currentYtile][(currentXtile - 1)] <= maxNulls)))))) && ((((levelMapArray[(currentYtile + 1)][(currentXtile - 1)] == null)) || ((levelMapArray[(currentYtile + 1)][(currentXtile - 1)] <= maxNulls)))))))){
movingLeft = true;
isWalking = true;
dir = "Left";
currentXtile = (currentXtile - 1);
} else {
allowLeft = false;
};
};
};
}
private function endTimer(_arg1:TimerEvent):void{
timer.removeEventListener(TimerEvent.TIMER, updateTimer);
timer.stop();
timer = null;
actualTimer.removeEventListener(TimerEvent.TIMER, updateactualTimer);
actualTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, endTimer);
actualTimer.stop();
actualTimer = null;
}
public function fadeMusic(_arg1:TimerEvent):void{
if ((((faderAmount > 0)) && (musicgame))){
faderAmount = (faderAmount - 0.1);
sound = MovieClip(root).sound;
musicgame.changeVolume(faderAmount);
fader = new Timer(150, 1);
fader.addEventListener(TimerEvent.TIMER_COMPLETE, fadeMusic);
fader.start();
} else {
if (musicgame){
faderAmount = 1;
sound = MovieClip(root).sound;
musicgame.stopSound();
removeChild(musicgame);
};
};
}
private function fearGetsLilly():void{
if (!isDieing){
fallSpeed = 0;
isWalking = false;
isJumping = false;
movingLeft = false;
movingRight = false;
isClimbingUp = false;
isClimbingDown = false;
press_up = false;
press_down = false;
press_left = false;
press_right = false;
updateHealthStatus();
health = 0;
lillyDies(true);
};
}
public function gotBonus(_arg1:String):void{
bonusesCollected++;
if (_arg1 == "L"){
letterL = true;
MovieClip(root).scoreAreaMC.miniLMC.gotoAndStop(2);
} else {
if (_arg1 == "i"){
letteri = true;
MovieClip(root).scoreAreaMC.miniiMC.gotoAndStop(2);
} else {
if (_arg1 == "l"){
letterl = true;
MovieClip(root).scoreAreaMC.minilMC.gotoAndStop(2);
} else {
if (_arg1 == "y"){
lettery = true;
MovieClip(root).scoreAreaMC.miniyMC.gotoAndStop(2);
};
};
};
};
}
public function endSound():void{
removeChild(musicgame);
makeSound("mp3:{a5719c13-f5ff-4522-af41-a4991dabe120}/{8568de06-a1e2-4210-8822-af38f2c48f85}/The Fear (Instrumental).mp3");
MovieClip(root).scoreAreaMC.nowPlayingMC.gotoAndStop("instrumental");
}
private function fadeMusicOutToQuiet(_arg1:TimerEvent):void{
if (faderAmount > 0.15){
faderAmount = (faderAmount - 0.05);
sound = MovieClip(root).sound;
musicgame.changeVolume(faderAmount);
fader = new Timer(100, 1);
fader.addEventListener(TimerEvent.TIMER_COMPLETE, fadeMusicOutToQuiet);
fader.start();
} else {
faderAmount = 0.15;
sound = MovieClip(root).sound;
musicgame.changeVolume(faderAmount);
};
}
public function gotDrink():void{
isDrunk = true;
speed = 1.5;
soundEffects.playDrunkSound();
initialJumpSpeed = 9;
drunkenTimer = new Timer(50, (20 * 6));
drunkenTimer.addEventListener(TimerEvent.TIMER_COMPLETE, notDrink);
drunkenTimer.start();
}
private function checkErrorCollisions():void{
if (((((((!(isClimbingUp)) && (!(isClimbingDown)))) && (!(isItALadder(levelMapArray[(currentYtile + 1)][currentXtile]))))) && ((levelMapArray[currentYtile][currentXtile] > maxNulls)))){
movingLeft = false;
movingRight = false;
isWalking = false;
isClimbingUp = false;
isClimbingDown = false;
wantsToClimbUp = false;
wantsToClimbDown = false;
press_up = false;
press_down = false;
isJumping = false;
fallSpeed = 0;
};
}
public function lillyExit():void{
hitting = true;
animate(this.getChildByName("lilly"), "ending");
faderTimer = new Timer(1000, 1);
faderTimer.addEventListener(TimerEvent.TIMER, waitToFadeOutLevelComplete);
faderTimer.start();
MovieClip(root).faderMC.gotoAndPlay("fadeOut");
endTimer(null);
}
private function EnterFrame(_arg1:Event):void{
if (((startGame) && (!(isDieing)))){
checkErrorCollisions();
checkStartClimber();
checkStartWalker();
if (wantsToClimbUp){
falling = false;
checkClimbingUp();
} else {
if (wantsToClimbDown){
falling = false;
checkClimbingDown();
} else {
if (((((((((((!(isClimbingUp)) && (!(isClimbingDown)))) && (!((getChildByName("lilly").x == 600))))) && (!(isJumping)))) && (((!((this.getChildByName("lilly").y == (level_container.y + (tile_size * currentYtile))))) || ((levelMapArray[(currentYtile + 1)][currentXtile] <= maxNulls)))))) && ((levelMapArray[currentYtile][currentXtile] <= maxNulls)))){
falling = true;
if (!hitting){
animate(getChildByName("lilly"), "falling");
};
performGravity();
} else {
falling = false;
fallSpeed = 0;
if (((((((((((((!(isClimbingUp)) && (!(isClimbingDown)))) && (!(isWalking)))) && (!(press_right)))) && (!(press_left)))) && (!(isJumping)))) && (!(hitting)))){
animate(getChildByName("lilly"), "stand");
};
};
};
};
checkLeftandRightSystem();
checkJumpingSystem();
};
}
private function notDrink(_arg1:TimerEvent):void{
isDrunk = false;
speed = 3;
initialJumpSpeed = 11;
}
public function springUp(_arg1:Number, _arg2:Number):void{
levelMapArray[_arg1][_arg2] = (Number(maxNulls) + 1);
if ((((currentXtile == _arg2)) && ((currentYtile == _arg1)))){
springLilly();
};
}
private function lillyHit(_arg1:String):void{
var hitTimer:Timer;
var hitterDir = _arg1;
if (!isDieing){
hitting = true;
if (((((((movingRight) || (movingLeft))) || (isClimbingUp))) || (isClimbingDown))){
dir = hitterDir;
} else {
hitterDir = dir;
};
movingLeft = false;
movingRight = false;
isClimbingUp = false;
isClimbingDown = false;
soundEffects.lilyBeenHit();
if ((((((hitterDir == "Left")) && ((currentXtile <= level_width)))) && ((levelMapArray[currentYtile][(currentXtile + 1)] <= maxNulls)))){
currentXtile++;
animate(this.getChildByName("lilly"), "hit");
Lilly.x = (level_container.x + (tile_size * currentXtile));
} else {
if ((((((hitterDir == "Right")) && ((currentXtile > 0)))) && ((levelMapArray[currentYtile][(currentXtile - 1)] <= maxNulls)))){
currentXtile--;
animate(this.getChildByName("lilly"), "hit");
Lilly.x = (level_container.x + (tile_size * currentXtile));
};
};
hitTimer = new Timer(500, 1);
hitTimer.addEventListener(TimerEvent.TIMER_COMPLETE, function ():void{
var _local1:*;
hitting = false;
});
hitTimer.start();
Lilly.startTimer();
};
}
public function gotDrugs():void{
soundEffects.playDrugSound();
if (press_left){
press_right = true;
press_left = false;
} else {
if (press_right){
press_left = true;
press_right = false;
};
};
if (drugsTimer){
drugsTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, notDrugs);
drugsTimer.stop();
drugsTimer = null;
};
drugsTimer = new Timer(250, 30);
drugsTimer.addEventListener(TimerEvent.TIMER_COMPLETE, notDrugs);
drugsTimer.start();
backgroundMC.startEffectWavy("drugged", 6);
isDrugged = true;
}
private function performGravity():void{
allowRight = true;
allowLeft = true;
if ((((levelMapArray[(currentYtile + 1)][currentXtile] > maxNulls)) && ((levelMapArray[currentYtile][currentXtile] <= maxNulls)))){
if (!hitting){
animate(getChildByName("lilly"), "falling");
};
falling = false;
fallSpeed = (fallSpeed + gravity);
if (fallSpeed > 20){
fallSpeed = 20;
};
diff = ((level_container.y + (tile_size * currentYtile)) - this.getChildByName("lilly").y);
if ((((diff > 0)) && ((diff < fallSpeed)))){
fallSpeed = diff;
};
if ((((Number(((level_container.y + Number((tile_size * currentYtile))) - fallSpeed)) >= this.getChildByName("lilly").y)) && ((levelMapArray[currentYtile][currentXtile] <= maxNulls)))){
level_container.y = (level_container.y - fallSpeed);
moveGrounds(fallSpeed, false);
};
} else {
if ((((levelMapArray[(currentYtile + 1)][currentXtile] <= maxNulls)) && ((levelMapArray[currentYtile][currentXtile] <= maxNulls)))){
falling = false;
fallSpeed = (fallSpeed + gravity);
if (fallSpeed > 20){
fallSpeed = 20;
};
if ((((Number(((level_container.y + Number((tile_size * (currentYtile + 1)))) - fallSpeed)) >= this.getChildByName("lilly").y)) && ((levelMapArray[(currentYtile + 1)][currentXtile] <= maxNulls)))){
level_container.y = (level_container.y - fallSpeed);
moveGrounds(fallSpeed, false);
};
if (this.getChildByName("lilly").y > (level_container.y + (tile_size * currentYtile))){
currentYtile++;
};
};
};
}
private function waitToFadeOutAndComeBack(_arg1:TimerEvent):void{
if (MovieClip(root).faderMC.currentLabel == "fadedOut"){
if (getChildByName("sink")){
removeChild(getChildByName("sink"));
};
faderTimer.removeEventListener(TimerEvent.TIMER, waitToFadeOutAndComeBack);
MovieClip(root).levelNum--;
MovieClip(root).nextLevel();
};
}
private function checkClimbingUp():void{
if ((level_container.y + (tile_size * currentYtile)) == this.getChildByName("lilly").y){
if (((press_up) && (((isItALadder(levelMapArray[currentYtile][currentXtile])) || (((isItALadder(levelMapArray[(currentYtile + 1)][currentXtile])) && ((levelMapArray[currentYtile][currentXtile] > maxNulls)))))))){
wantsToClimbUp = true;
currentYtile--;
} else {
if (((!(hangingFromLadder(currentYtile, currentXtile))) && ((levelMapArray[currentYtile][currentXtile] == 0)))){
isClimbingUp = false;
isClimbingDown = false;
} else {
if (((((hangingFromLadder(currentYtile, currentXtile)) || ((levelMapArray[currentYtile][currentXtile] > maxNulls)))) || ((levelMapArray[(currentYtile + 1)][currentXtile] > maxNulls)))){
if (((((!(hitting)) && (!(press_left)))) && (!(press_right)))){
animate(getChildByName("lilly"), "climbstand");
};
};
};
wantsToClimbUp = false;
};
} else {
if ((level_container.y + (tile_size * currentYtile)) != this.getChildByName("lilly").y){
fallSpeed = 0;
if (!hitting){
animate(getChildByName("lilly"), "climbing");
};
diff = (this.getChildByName("lilly").y - (level_container.y + (tile_size * currentYtile)));
if ((((speed >= diff)) && ((diff > 0)))){
level_container.y = (level_container.y + diff);
moveGrounds(diff, true);
} else {
level_container.y = (level_container.y + speed);
moveGrounds(speed, true);
};
};
};
}
private function waitToFadeOutLevelComplete(_arg1:TimerEvent):void{
if (bonusesCollected == 4){
MovieClip(root).totalBonusesCollected++;
};
MovieClip(root).totalTimeRemaining = (MovieClip(root).totalTimeRemaining + (timeAllowed - timeTakenData));
if (MovieClip(root).faderMC.currentLabel == "fadedOut"){
faderTimer.removeEventListener(TimerEvent.TIMER, waitToFadeOutLevelComplete);
};
stage.removeEventListener(KeyboardEvent.KEY_DOWN, key_down);
stage.removeEventListener(KeyboardEvent.KEY_UP, key_up);
MovieClip(root).createLevelMC(level, bonusesCollected, timeTakenData, letterL, letteri, letterl, lettery);
MovieClip(root).trackLevel(level);
sound = MovieClip(root).sound;
faderAmount = 0.25;
fadeMusicOutToQuiet(null);
}
public function notDrugs(_arg1:TimerEvent):void{
if (press_right){
press_right = false;
press_left = true;
} else {
if (press_left){
press_left = false;
press_right = true;
};
};
isDrugged = false;
}
private function makeSound(_arg1:String):void{
musicgame = new streamSound(_arg1);
musicgame.name = "musicgame";
addChild(musicgame);
sound = MovieClip(root).sound;
if (!sound){
musicgame.muteSound();
};
}
public function checkCardCollision(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:String):Boolean{
if ((((((((_arg2 < (Number(Lilly.x) + 10))) && ((_arg2 > (Number(Lilly.x) - 10))))) && ((_arg3 < Number((-(level_container.y) + Lilly.y)))))) && ((_arg3 > (Number((-(level_container.y) + Lilly.y)) - 50))))){
if (((((!(hitting)) && (!(Lilly.invincible)))) && (!(isDieing)))){
if (_arg4 == "Left"){
dir = "Right";
} else {
dir = "Left";
};
removeHealth(_arg4);
};
return (true);
//unresolved jump
};
return (false);
}
public function createLevel(_arg1:Array):void{
var _local2:Number;
var _local3:Number;
var _local4:tile;
level_height = _arg1.length;
level_width = _arg1[0].length;
addChild(level_container);
level_container.name = "level_container";
_local2 = (level_height - 1);
while (_local2 >= 0) {
_local3 = level_width;
while (_local3 >= 0) {
_local4 = new tile((_local3 * tile_size), (_local2 * tile_size), _arg1[_local2][_local3], _local3, _local2);
_local4.name = ((("t" + _local2) + "_") + _local3);
level_container.addChild(_local4);
_local3--;
};
_local2--;
};
}
private function lillyHitBig(_arg1:String):void{
var hitTimer:Timer;
var hitterDir = _arg1;
if (!isDieing){
hitting = true;
hitterDir = dir;
movingLeft = false;
movingRight = false;
isClimbingUp = false;
isClimbingDown = false;
soundEffects.lilyBeenHit();
if ((((((hitterDir == "Left")) && ((currentXtile < level_width)))) && ((levelMapArray[currentYtile][(currentXtile + 2)] <= maxNulls)))){
currentXtile = (currentXtile + 2);
animate(this.getChildByName("lilly"), "hitbig");
Lilly.x = (level_container.x + (tile_size * currentXtile));
} else {
if ((((((hitterDir == "Left")) && ((currentXtile < level_width)))) && ((levelMapArray[currentYtile][(currentXtile + 1)] <= maxNulls)))){
currentXtile = (currentXtile + 1);
animate(this.getChildByName("lilly"), "hit");
Lilly.x = (level_container.x + (tile_size * currentXtile));
} else {
if ((((((hitterDir == "Right")) && ((currentXtile > 0)))) && ((levelMapArray[currentYtile][(currentXtile - 2)] <= maxNulls)))){
currentXtile = (currentXtile - 2);
animate(this.getChildByName("lilly"), "hitbig");
Lilly.x = (level_container.x + (tile_size * currentXtile));
} else {
if ((((((hitterDir == "Right")) && ((currentXtile > 0)))) && ((levelMapArray[currentYtile][(currentXtile - 1)] <= maxNulls)))){
currentXtile--;
animate(this.getChildByName("lilly"), "hit");
Lilly.x = (level_container.x + (tile_size * currentXtile));
};
};
};
};
hitTimer = new Timer(500, 1);
hitTimer.addEventListener(TimerEvent.TIMER_COMPLETE, function ():void{
var _local1:*;
hitting = false;
});
hitTimer.start();
Lilly.startTimer();
};
}
private function updateactualTimer(_arg1:TimerEvent):void{
if (MovieClip(root).faderMC.currentFrame > 25){
timeTakenData++;
};
}
private function updateTimer(_arg1:TimerEvent):void{
fearMovement();
}
}
}//package
Section 82
//gameSounds (gameSounds)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class gameSounds extends MovieClip {
var _jumpSound:Sound;
var soundchannel:SoundChannel;
var _li:Sound;
var _JackInTheBox:Sound;
var _ll:Sound;
var _lilyHit:Sound;
var _ly:Sound;
var soundtransform:SoundTransform;
var _deathFear:Sound;
var _bigBoss:Sound;
var _balloonman:Sound;
var _buttonSounder:Sound;
var _death:Sound;
var _throwSound:Sound;
var _drunk:Sound;
var _healthPickup:Sound;
var _drugs:Sound;
var _chompSound:Sound;
var _flash:Sound;
var _exit:Sound;
var _lL:Sound;
public function gameSounds(){
_jumpSound = new jumpingSound();
_chompSound = new dogchomp();
_throwSound = new throwSound();
_lilyHit = new lilyHit();
_healthPickup = new HealthPickup();
_JackInTheBox = new JackInTheBox();
_balloonman = new balloonman();
_lL = new LetterL();
_li = new LetterI();
_ll = new LetterL2();
_ly = new LetterY();
_buttonSounder = new buttonSounder();
_flash = new CameraSound();
_deathFear = new deathFearSound();
_death = new deathSound();
_drunk = new DrunkSound();
_bigBoss = new bigBossSound();
_exit = new exitSound();
_drugs = new DrugSound();
soundchannel = new SoundChannel();
soundtransform = new SoundTransform();
soundtransform.volume = 1;
soundchannel.soundTransform = soundtransform;
}
function playDeathFearSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _deathFear.play();
};
}
function thrower():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _throwSound.play();
};
}
function jump():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _jumpSound.play();
};
}
function playDrunkSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _drunk.play();
};
}
function playbuttonSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _buttonSounder.play();
};
}
function balloonSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _balloonman.play();
};
}
function LilylSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _ll.play();
};
}
function playDeathSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _death.play();
};
}
function playDrugSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _drugs.play();
};
}
function pickup_health():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _healthPickup.play();
};
}
function LilyiSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _li.play();
};
}
function jackInTheBoxSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _JackInTheBox.play();
};
}
function LilyySound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _ly.play();
};
}
function playFlashSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _flash.play();
};
}
function stopBigSounds():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel.stop();
};
}
function LilyLSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _lL.play();
};
}
function playExitSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _exit.play();
};
}
function lilyBeenHit():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _lilyHit.play();
};
}
function chomp():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _chompSound.play();
};
}
function playBigBossSound():void{
if (((MovieClip(root).sound) && ((MovieClip(parent).faderAmount > 0.25)))){
soundchannel = _bigBoss.play();
};
}
}
}//package
Section 83
//healthMC (healthMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class healthMC extends MovieClip {
private var Ob:Object;
public function healthMC(){
Ob = MovieClip(root).gameMC;
super();
addFrameScript(21, frame22, 22, frame23);
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
function frame22(){
gotoAndPlay(1);
}
function frame23(){
stop();
}
public function enterframe(_arg1:Event):void{
if (((((((!((currentFrame == 23))) && (Ob.getChildByName("lilly")))) && (!(MovieClip(parent.parent).hiding)))) && (this.hitTestObject(Ob.getChildByName("lilly"))))){
gotoAndPlay(23);
MovieClip(parent.parent).frameNum = 0;
Ob.gotHealth();
Ob.soundEffects.pickup_health();
};
}
}
}//package
Section 84
//HealthPickup (HealthPickup)
package {
import flash.media.*;
public dynamic class HealthPickup extends Sound {
}
}//package
Section 85
//horriblewavy (horriblewavy)
package {
import flash.display.*;
public dynamic class horriblewavy extends BitmapData {
public function horriblewavy(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 86
//I_MC (I_MC)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class I_MC extends bonusCollectsMC {
public function I_MC(){
addFrameScript(12, frame13, 27, frame28);
}
function frame13(){
gotoAndPlay(1);
}
function frame28(){
stop();
}
}
}//package
Section 87
//JackInTheBox (JackInTheBox)
package {
import flash.media.*;
public dynamic class JackInTheBox extends Sound {
}
}//package
Section 88
//jackMC (jackMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class jackMC extends MovieClip {
var Ob:Object;
public function jackMC(){
Ob = MovieClip(root).gameMC;
super();
MovieClip(root).gameMC.springDown(Number((MovieClip(parent.parent).startY - 1)), MovieClip(parent.parent).startX, 0);
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
public function enterframe(_arg1:Event):void{
if (currentLabel == "aboutToSpringUp"){
if (((((!((Ob.currentXtile == MovieClip(parent.parent).startX))) || (!((Ob.currentYtile == (MovieClip(parent.parent).startY - 1)))))) || ((((((((((Ob.currentXtile == MovieClip(parent.parent).startX)) && ((Ob.currentYtile == (MovieClip(parent.parent).startY - 1))))) && (!(Ob.hitting)))) && (!(Ob.isJumping)))) && ((((Ob.levelMapArray[(MovieClip(parent.parent).startY - 3)][MovieClip(parent.parent).startX] <= Ob.maxNulls)) || ((Ob.platformBottomType == "liquid")))))))){
play();
} else {
gotoAndPlay(1);
};
} else {
if (currentLabel == "springUp"){
Ob.springUp(Number((MovieClip(parent.parent).startY - 1)), MovieClip(parent.parent).startX);
} else {
if (currentLabel == "springDown"){
MovieClip(root).gameMC.springDown(Number((MovieClip(parent.parent).startY - 1)), MovieClip(parent.parent).startX, 0);
};
};
};
}
}
}//package
Section 89
//jumpingSound (jumpingSound)
package {
import flash.media.*;
public dynamic class jumpingSound extends Sound {
}
}//package
Section 90
//L_MC (L_MC)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class L_MC extends bonusCollectsMC {
public function L_MC(){
addFrameScript(12, frame13, 27, frame28);
}
function frame13(){
gotoAndPlay(1);
}
function frame28(){
stop();
}
}
}//package
Section 91
//LetterI (LetterI)
package {
import flash.media.*;
public dynamic class LetterI extends Sound {
}
}//package
Section 92
//LetterL (LetterL)
package {
import flash.media.*;
public dynamic class LetterL extends Sound {
}
}//package
Section 93
//LetterL2 (LetterL2)
package {
import flash.media.*;
public dynamic class LetterL2 extends Sound {
}
}//package
Section 94
//LetterY (LetterY)
package {
import flash.media.*;
public dynamic class LetterY extends Sound {
}
}//package
Section 95
//lilyHit (lilyHit)
package {
import flash.media.*;
public dynamic class lilyHit extends Sound {
}
}//package
Section 96
//lilysinkMC1 (lilysinkMC1)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lilysinkMC1 extends MovieClip {
public function lilysinkMC1(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package
Section 97
//lilysinkMC2 (lilysinkMC2)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lilysinkMC2 extends MovieClip {
public function lilysinkMC2(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package
Section 98
//lsmall_MC (lsmall_MC)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class lsmall_MC extends bonusCollectsMC {
public function lsmall_MC(){
addFrameScript(12, frame13, 27, frame28);
}
function frame13(){
gotoAndPlay(1);
}
function frame28(){
stop();
}
}
}//package
Section 99
//mainMenu (mainMenu)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class mainMenu extends MovieClip {
public var videoBut:SimpleButton;
public var sound:Boolean;
public var music;
public var loadingaudioMC:MovieClip;
public var char2But:MovieClip;
public var startGameBut:SimpleButton;
private var faderAmount:Number;// = 0.4
private var fader:Timer;
public var scrBoardHolderMC:MovieClip;
public var backToMainMenuBut:SimpleButton;
public var scoresBut:SimpleButton;
public var SentToAFriend:SendToAFriend;
public var instructionsBut:SimpleButton;
public var titleRings:titleRinger;
public var char1But:MovieClip;
public var winStuffBut:SimpleButton;
public function mainMenu(){
faderAmount = 0.4;
super();
addFrameScript(0, frame1, 12, frame13, 22, frame23, 34, frame35, 43, frame44, 55, frame56, 65, frame66, 77, frame78, 87, frame88);
stage.quality = StageQuality.HIGH;
makeSound();
}
private function fadeMusic(_arg1:TimerEvent):void{
if ((((faderAmount > 0)) && (music))){
faderAmount = (faderAmount - 0.1);
music.changeVolume(faderAmount);
fader = new Timer(100, 1);
fader.addEventListener(TimerEvent.TIMER_COMPLETE, fadeMusic);
fader.start();
} else {
if (music){
faderAmount = 0.4;
music.stopSound();
removeChild(music);
music = null;
};
};
}
public function startInstructions():void{
MovieClip(root).soundEffects.playbuttonSound();
backToMainMenuBut.visible = true;
MovieClip(root).mainMenuMC.SentToAFriend.visible = false;
gotoAndPlay("instructions");
}
private function fadeMusicIn(_arg1:TimerEvent):void{
if (faderAmount != 0.4){
music.unpauseSound();
faderAmount = (faderAmount + 0.1);
music.changeVolume(faderAmount);
fader = new Timer(25, 1);
fader.addEventListener(TimerEvent.TIMER_COMPLETE, fadeMusicIn);
fader.start();
};
}
function frame88(){
gotoAndStop("main");
}
public function endSound():void{
removeChild(music);
makeSound();
}
public function startHighscores():void{
var _local1:scoreboard;
MovieClip(root).soundEffects.playbuttonSound();
backToMainMenuBut.visible = true;
MovieClip(root).mainMenuMC.SentToAFriend.visible = false;
gotoAndPlay("highscores");
titleRings.xPos = 120;
_local1 = new scoreboard();
_local1.name = "scrboard";
_local1.y = 0;
_local1.x = 0;
scrBoardHolderMC.addChild(_local1);
}
public function startVideo():void{
MovieClip(root).soundEffects.playbuttonSound();
backToMainMenuBut.visible = true;
sound = MovieClip(root).sound;
fadeMusicOut(null);
MovieClip(root).mainMenuMC.SentToAFriend.visible = false;
gotoAndPlay("video");
}
function frame1(){
stop();
backToMainMenuBut.visible = false;
}
function frame13(){
stop();
}
public function startGame():void{
MovieClip(root).soundEffects.playbuttonSound();
MovieClip(root).levelNum = 1;
MovieClip(root).score = 0;
MovieClip(root).lives = 5;
MovieClip(root).totalTimeRemaining = 0;
MovieClip(root).totalBonusesCollected = 0;
MovieClip(root).gotoAndPlay("fadeToGame");
sound = MovieClip(root).sound;
fadeMusic(null);
}
function frame23(){
gotoAndStop("main");
}
public function backToMainMenu():void{
MovieClip(root).soundEffects.playbuttonSound();
MovieClip(root).hideVideo();
sound = MovieClip(root).sound;
faderAmount = 0;
music.unpauseSound();
fadeMusicIn(null);
MovieClip(root).mainMenuMC.SentToAFriend.visible = true;
backToMainMenuBut.visible = false;
if (getChildByName("scrboard")){
removeChild(getChildByName("scrboard"));
};
titleRings.xPos = 0;
play();
}
public function chosenOne():void{
MovieClip(root).soundEffects.playbuttonSound();
char1But.gotoAndStop(2);
char2But.gotoAndStop(1);
MovieClip(root).lilyversion = 1;
startGame();
}
function frame44(){
gotoAndStop("main");
}
function frame35(){
stop();
}
function frame78(){
stop();
}
private function makeSound():void{
music = new streamSound("mp3:{a5719c13-f5ff-4522-af41-a4991dabe120}/{8568de06-a1e2-4210-8822-af38f2c48f85}/The Fear (Instrumental).mp3");
addChild(music);
if (!MovieClip(root).sound){
music.muteSound();
};
}
public function ChooseCharacter():void{
MovieClip(root).soundEffects.playbuttonSound();
backToMainMenuBut.visible = true;
MovieClip(root).mainMenuMC.SentToAFriend.visible = false;
gotoAndPlay("chooseCharacter");
}
public function chosenTwo():void{
MovieClip(root).soundEffects.playbuttonSound();
char1But.gotoAndStop(1);
char2But.gotoAndStop(2);
MovieClip(root).lilyversion = 2;
startGame();
}
function frame56(){
stop();
MovieClip(root).getVideo("{a5719c13-f5ff-4522-af41-a4991dabe120}/{8568de06-a1e2-4210-8822-af38f2c48f85}/thefear_hi.flv");
}
private function fadeMusicOut(_arg1:TimerEvent):void{
if (faderAmount > 0){
faderAmount = (faderAmount - 0.1);
music.changeVolume(faderAmount);
fader = new Timer(25, 1);
fader.addEventListener(TimerEvent.TIMER_COMPLETE, fadeMusicOut);
fader.start();
} else {
faderAmount = 0;
music.changeVolume(0);
music.pauseSound();
};
}
function frame66(){
gotoAndStop("main");
}
}
}//package
Section 100
//muter (muter)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class muter extends MovieClip {
public function muter(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
buttonMode = true;
mouseChildren = false;
x = 526;
y = 81;
}
function frame3(){
stop();
}
function frame1(){
if (MovieClip(root).sound){
gotoAndStop("sound");
} else {
gotoAndStop("mute");
};
}
function frame2(){
stop();
}
}
}//package
Section 101
//papMC (papMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class papMC extends MovieClip {
var Ob:Object;
var counter:Number;// = 0
var spotted:Boolean;// = false
public function papMC(){
Ob = MovieClip(root).gameMC;
counter = 0;
spotted = false;
super();
addFrameScript(71, frame72);
addEventListener(Event.ENTER_FRAME, enterframe);
}
function frame72(){
gotoAndPlay(1);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
public function enterframe(_arg1:Event):void{
if ((((((currentLabel == "almostSnapping")) && ((counter > 2)))) && (!(spotted)))){
gotoAndPlay("asleep");
counter = -1;
} else {
if ((((currentLabel == "almostSnapping")) && ((counter <= 2)))){
gotoAndPlay(1);
counter++;
} else {
if (currentLabel == "awake"){
counter = 0;
} else {
if (currentLabel == "snapped"){
gotoAndPlay(1);
counter = 0;
};
};
};
};
if (((((((((((((!(Ob.isWalking)) && ((counter >= 0)))) && (!(spotted)))) && (!(MovieClip(parent.parent).hiding)))) && ((MovieClip(parent.parent).startY == Ob.currentYtile)))) && ((MovieClip(parent.parent).startX > (Ob.currentXtile - 5))))) && ((MovieClip(parent.parent).startX < (Ob.currentXtile + 5))))){
spotted = true;
counter = 0;
gotoAndPlay("snapping");
Ob.callCameraFlash();
} else {
if (((spotted) && (((((!((MovieClip(parent.parent).startY == Ob.currentYtile))) || ((MovieClip(parent.parent).startX <= (Ob.currentXtile - 5))))) || ((MovieClip(parent.parent).startX >= (Ob.currentXtile + 5))))))){
spotted = false;
};
};
}
}
}//package
Section 102
//playerMC (playerMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class playerMC extends MovieClip {
public var invincible:Boolean;// = false
public var hitbigLeft:MovieClip;
private var fadeout:Boolean;// = true
private var tim:Timer;
public var MC:MovieClip;
public var hitbigRight:MovieClip;
public function playerMC(){
fadeout = true;
invincible = false;
super();
}
public function startTimer():void{
invincible = true;
tim = new Timer(25, 0);
tim.addEventListener(TimerEvent.TIMER, flashing);
tim.start();
}
public function removeTimers():void{
if (tim){
tim.removeEventListener(TimerEvent.TIMER, flasher);
tim.removeEventListener(TimerEvent.TIMER_COMPLETE, flashingEnd);
tim.removeEventListener(TimerEvent.TIMER, flashing);
};
}
private function flashingEnd(_arg1:TimerEvent):void{
alpha = 1;
fadeout = true;
invincible = false;
tim = null;
}
private function flasher(_arg1:TimerEvent):void{
if (((fadeout) && ((alpha > 0.1)))){
alpha = (alpha - 0.2);
} else {
if (((fadeout) && ((alpha <= 0.1)))){
alpha = (alpha + 0.2);
fadeout = false;
} else {
if (((!(fadeout)) && ((alpha < 1)))){
alpha = (alpha + 0.2);
} else {
if (((!(fadeout)) && ((alpha >= 0.1)))){
alpha = (alpha - 0.2);
fadeout = true;
};
};
};
};
}
private function flashing(_arg1:TimerEvent):void{
flasher(null);
if (!MovieClip(root).gameMC.hitting){
tim.stop();
tim.removeEventListener(TimerEvent.TIMER, flashing);
tim = new Timer(25, 50);
tim.addEventListener(TimerEvent.TIMER, flasher);
tim.addEventListener(TimerEvent.TIMER_COMPLETE, flashingEnd);
tim.start();
};
}
}
}//package
Section 103
//playerMC1 (playerMC1)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class playerMC1 extends playerMC {
public function playerMC1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 104
//playerMC2 (playerMC2)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class playerMC2 extends playerMC {
public function playerMC2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 105
//preloader (preloader)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class preloader extends MovieClip {
var sound:Boolean;// = true
public var lbar:MovieClip;
var initX:Number;// = 0
public var lpc:TextField;
var inGame:Boolean;// = false
public function preloader(){
inGame = false;
sound = true;
initX = 0;
super();
addEventListener(Event.ENTER_FRAME, handleProgress);
}
public function UpdateProgress(_arg1:Number):void{
if (_arg1 <= 1){
lbar.scaleX = _arg1;
};
lpc.text = String((Math.floor((_arg1 * 100)) + "%"));
}
public function handleProgress(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = stage.loaderInfo.bytesLoaded;
_local3 = stage.loaderInfo.bytesTotal;
_local4 = 0;
_local4 = (_local2 / _local3);
UpdateProgress(_local4);
if (_local2 >= _local3){
removeEventListener(Event.ENTER_FRAME, handleProgress);
MovieClip(root).play();
};
}
}
}//package
Section 106
//scoreboard (scoreboard)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
public class scoreboard extends MovieClip {
public var s28:TextField;
public var s23:TextField;
public var s30:TextField;
public var s32:TextField;
public var s33:TextField;
public var s31:TextField;
public var s4:TextField;
public var s6:TextField;
public var s1:TextField;
public var s3:TextField;
public var s2:TextField;
public var s5:TextField;
public var s7:TextField;
public var s8:TextField;
public var s9:TextField;
public var n10:TextField;
public var n11:TextField;
public var n13:TextField;
public var n16:TextField;
public var n18:TextField;
public var n15:TextField;
public var n17:TextField;
public var n12:TextField;
public var n14:TextField;
public var n20:TextField;
public var n21:TextField;
public var n22:TextField;
public var n23:TextField;
public var n24:TextField;
public var n25:TextField;
public var n26:TextField;
public var n27:TextField;
public var n29:TextField;
public var n19:TextField;
public var n28:TextField;
public var n31:TextField;
public var n32:TextField;
public var n33:TextField;
public var n30:TextField;
var variables:URLVariables;
public var n1:TextField;
public var n2:TextField;
public var n3:TextField;
public var n5:TextField;
public var n7:TextField;
public var n8:TextField;
public var n9:TextField;
public var n6:TextField;
public var n4:TextField;
public var s10:TextField;
public var s11:TextField;
public var s12:TextField;
public var s13:TextField;
public var s14:TextField;
public var s15:TextField;
public var s17:TextField;
public var s18:TextField;
public var s19:TextField;
public var s16:TextField;
public var s20:TextField;
public var s22:TextField;
public var s26:TextField;
public var s27:TextField;
public var s21:TextField;
public var s29:TextField;
public var s24:TextField;
public var s25:TextField;
public function scoreboard(){
var _local1:URLRequest;
var _local2:URLLoader;
variables = new URLVariables();
super();
Security.allowDomain("http://www.matmi.com");
Security.loadPolicyFile("http://www.matmi.com/crossdomain.xml");
_local1 = new URLRequest(("http://www.matmi.com/games/LilyAllenInEscapeTheFear/get_scr.php?rnd=" + String((Math.random() * 7.4553))));
_local2 = new URLLoader();
_local2.dataFormat = URLLoaderDataFormat.VARIABLES;
_local1.method = URLRequestMethod.POST;
_local2.addEventListener(Event.COMPLETE, handleComplete);
_local2.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
_local2.load(_local1);
}
private function handleComplete(_arg1:Event):void{
var _local2:URLLoader;
var _local3:int;
_local2 = URLLoader(_arg1.target);
_local3 = 1;
while (_local2.data[("n" + _local3)]) {
this[("n" + _local3)].text = _local2.data[("n" + _local3)];
this[("s" + _local3)].text = _local2.data[("s" + _local3)];
_local3++;
};
}
private function onIOError(_arg1:IOErrorEvent):void{
}
}
}//package
Section 107
//scoreSubmit (scoreSubmit)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
public class scoreSubmit extends MovieClip {
private var ticked:Boolean;// = false
public var include_mailer:Number;// = 1
var wefesd:String;
public var subBut:SimpleButton;
public var oblique:Number;
public var tickerMC:MovieClip;
public var alias:TextField;
var redrum:String;
public var hackCheck:String;
var aka:String;
public var err:TextField;
var tif:String;
public var country:TextField;
var undefawg:String;
var gameid:Number;// = 0
var variables:URLVariables;
var actualScore:String;// = ""
var actualEmail:String;
var anom_rnd_pnt:String;
public var email:TextField;
public var oneMorethingMC:MovieClip;
var gif:String;
var sefty:String;
public function scoreSubmit(_arg1){
actualScore = "";
gameid = 0;
variables = new URLVariables();
ticked = false;
include_mailer = 1;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
actualScore = String(_arg1);
subBut.addEventListener(MouseEvent.CLICK, oneMoreThing);
stop();
tickerMC.addEventListener(MouseEvent.CLICK, changeTick);
}
private function submit(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:Number;
var _local5:URLRequest;
var _local6:URLLoader;
oneMorethingMC.visible = false;
err.text = "";
if (((!((alias.text == ""))) && (!((email.text == ""))))){
gameid = 109;
aka = alias.text;
actualEmail = email.text;
_local2 = country.text;
_local3 = MovieClip(root).lilyversion;
_local4 = Math.round((Math.random() * 4));
switch (_local4){
case 0:
anom_rnd_pnt = stringToAscii(aka, 2);
redrum = stringToAscii(actualScore, 14);
undefawg = stringToAscii(actualEmail, 90);
wefesd = stringToAscii(_local2, 22);
sefty = stringToAscii(_local3, 24);
break;
case 1:
anom_rnd_pnt = stringToAscii(aka, 4);
redrum = stringToAscii(actualScore, 54);
undefawg = stringToAscii(actualEmail, 90);
wefesd = stringToAscii(_local2, 45);
sefty = stringToAscii(_local3, 44);
break;
case 2:
anom_rnd_pnt = stringToAscii(aka, 54);
redrum = stringToAscii(actualScore, 17);
undefawg = stringToAscii(actualEmail, 23);
wefesd = stringToAscii(_local2, 12);
sefty = stringToAscii(_local3, 87);
break;
case 3:
anom_rnd_pnt = stringToAscii(aka, 34);
redrum = stringToAscii(actualScore, 67);
undefawg = stringToAscii(actualEmail, 29);
wefesd = stringToAscii(_local2, 24);
sefty = stringToAscii(_local3, 83);
break;
case 4:
anom_rnd_pnt = stringToAscii(aka, 31);
redrum = stringToAscii(actualScore, 20);
undefawg = stringToAscii(actualEmail, 84);
wefesd = stringToAscii(_local2, 83);
sefty = stringToAscii(_local3, 81);
break;
default:
break;
};
_local5 = new URLRequest("http://www.matmi.com/games/LilyAllenInEscapeTheFear/str_scr.php");
_local6 = new URLLoader();
_local6.dataFormat = URLLoaderDataFormat.VARIABLES;
variables.tapy_cd_ps = gameid;
variables.anom_rnd_pnt = anom_rnd_pnt;
variables.redrum = redrum;
variables.undefawg = undefawg;
variables.wefesd = wefesd;
variables.sefty = sefty;
variables.usr_scr_pss = _local4;
variables.includer = ticked;
variables.mailerInclude = include_mailer;
_local5.data = variables;
_local5.method = URLRequestMethod.POST;
_local6.addEventListener(Event.COMPLETE, handleComplete);
_local6.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
_local6.load(_local5);
subBut.removeEventListener(MouseEvent.CLICK, submit);
gotoAndStop(2);
} else {
err.text = "missing fields";
};
}
private function stringToAscii(_arg1:String, _arg2:Number):String{
var _local3:*;
var _local4:String;
var _local5:Number;
_local3 = _arg1.split("");
_local4 = "";
_local5 = 0;
while (_local3[_local5] != null) {
_local4 = (_local4 + ((_local3[_local5].charCodeAt(0) + _arg2) + "||"));
_local5++;
};
return (_local4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function changeTick(_arg1:MouseEvent):void{
if (tickerMC.currentFrame == 1){
tickerMC.gotoAndStop(2);
ticked = true;
} else {
tickerMC.gotoAndStop(1);
ticked = false;
};
}
private function handleComplete(_arg1:Event):void{
var _local2:URLLoader;
_local2 = URLLoader(_arg1.target);
if (_local2.data.err == "false"){
gotoAndStop(3);
} else {
gotoAndStop(1);
err.text = _local2.data.err;
subBut.addEventListener(MouseEvent.CLICK, submit);
};
}
private function changeMailer(_arg1:MouseEvent):void{
if (oneMorethingMC.mailerMC.currentFrame == 1){
include_mailer = 0;
oneMorethingMC.mailerMC.gotoAndStop(2);
} else {
include_mailer = 1;
oneMorethingMC.mailerMC.gotoAndStop(1);
};
}
private function onIOError(_arg1:IOErrorEvent):void{
gotoAndStop(1);
err.text = "Error submitting";
}
private function oneMoreThing(_arg1:MouseEvent):void{
oneMorethingMC.visible = true;
oneMorethingMC.continueBut.addEventListener(MouseEvent.CLICK, submit);
oneMorethingMC.mailerMC.addEventListener(MouseEvent.CLICK, changeMailer);
}
function frame2(){
stop();
}
Security.allowDomain("http://www.matmi.com");
Security.loadPolicyFile("http://www.matmi.com/crossdomain.xml");
}
}//package
Section 108
//SendToAFriend (SendToAFriend)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
public class SendToAFriend extends MovieClip {
public var errorShow:Timer;
public var subBut:SimpleButton;
public var yourname:TextField;
public var youremail:TextField;
var variables:URLVariables;
public var err:TextField;
var done:Boolean;// = false
public var email:TextField;
public function SendToAFriend(){
variables = new URLVariables();
done = false;
super();
addFrameScript(0, frame1, 1, frame2);
addEventListener(Event.ENTER_FRAME, checkReady);
}
private function clearItemail(_arg1:Event):void{
err.text = "";
if (email.text == "FRIEND'S EMAIL"){
email.text = "";
};
email.removeEventListener(MouseEvent.MOUSE_DOWN, clearItemail);
email.removeEventListener(KeyboardEvent.KEY_DOWN, clearItemail);
}
private function submit(_arg1:MouseEvent):void{
var _local2:URLRequest;
var _local3:URLLoader;
if (((((((((((!((email.text == ""))) && (!((youremail.text == ""))))) && (!((yourname.text == ""))))) && (!((email.text == "friends email"))))) && (!((youremail.text == "your email"))))) && (!((yourname.text == "your name"))))){
removeEventListener(Event.ENTER_FRAME, checkReady);
_local2 = new URLRequest("http://www.matmi.com/games/LilyAllenInEscapeTheFear/sendtoafriend.php");
_local3 = new URLLoader();
_local3.dataFormat = URLLoaderDataFormat.VARIABLES;
variables.youremail = youremail.text;
variables.email = email.text;
variables.yourname = yourname.text;
nextFrame();
_local2.data = variables;
_local2.method = URLRequestMethod.POST;
_local3.addEventListener(Event.COMPLETE, handleComplete);
_local3.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
_local3.load(_local2);
} else {
err.text = "Please fill in all requested fields";
errorShow = new Timer(4000, 1);
errorShow.addEventListener(TimerEvent.TIMER_COMPLETE, clearError);
errorShow.start();
};
}
function frame1(){
stop();
}
public function checkReady(_arg1:Event):void{
if (((((subBut) && ((currentLabel == "sender")))) && ((done == false)))){
subBut.addEventListener(MouseEvent.MOUSE_DOWN, submit);
email.addEventListener(MouseEvent.MOUSE_DOWN, clearItemail);
youremail.addEventListener(MouseEvent.MOUSE_DOWN, clearItyouremail);
yourname.addEventListener(MouseEvent.MOUSE_DOWN, clearItyourname);
email.addEventListener(KeyboardEvent.KEY_DOWN, clearItemail);
youremail.addEventListener(KeyboardEvent.KEY_DOWN, clearItyouremail);
yourname.addEventListener(KeyboardEvent.KEY_DOWN, clearItyourname);
done = true;
};
}
private function handleComplete(_arg1:Event):void{
var _local2:URLLoader;
_local2 = URLLoader(_arg1.target);
if (_local2.data.err == "false"){
play();
done = false;
} else {
done = false;
gotoAndStop(1);
addEventListener(Event.ENTER_FRAME, checkReady);
err.text = _local2.data.err;
errorShow = new Timer(4000, 1);
errorShow.addEventListener(TimerEvent.TIMER_COMPLETE, clearError);
errorShow.start();
};
}
private function clearItyourname(_arg1:Event):void{
err.text = "";
if (yourname.text == "YOUR NAME"){
yourname.text = "";
};
yourname.removeEventListener(MouseEvent.MOUSE_DOWN, clearItyourname);
yourname.removeEventListener(KeyboardEvent.KEY_DOWN, clearItyourname);
}
function frame2(){
stop();
}
public function clearError(_arg1:TimerEvent):void{
err.text = "";
errorShow.stop();
}
private function onIOError(_arg1:IOErrorEvent):void{
err.text = "Error loading URL";
errorShow = new Timer(4000, 1);
errorShow.addEventListener(TimerEvent.TIMER_COMPLETE, clearError);
errorShow.start();
}
private function clearItyouremail(_arg1:Event):void{
err.text = "";
if (youremail.text == "YOUR EMAIL"){
youremail.text = "";
};
youremail.removeEventListener(MouseEvent.MOUSE_DOWN, clearItyouremail);
youremail.removeEventListener(KeyboardEvent.KEY_DOWN, clearItyouremail);
}
Security.allowDomain("http://www.matmi.com");
Security.loadPolicyFile("http://www.matmi.com/crossdomain.xml");
}
}//package
Section 109
//smallhealthMC (smallhealthMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class smallhealthMC extends MovieClip {
private var Ob:Object;
public function smallhealthMC(){
Ob = MovieClip(root).gameMC;
super();
addFrameScript(0, frame1, 1, frame2);
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
public function enterframe(_arg1:Event):void{
if (((((((!((currentFrame == 2))) && (Ob.getChildByName("lilly")))) && (!(MovieClip(parent.parent).hiding)))) && (this.hitTestObject(Ob.getChildByName("lilly"))))){
gotoAndStop(2);
MovieClip(parent.parent).frameNum = 0;
Ob.gotSmallHealth();
Ob.soundEffects.pickup_health();
};
}
}
}//package
Section 110
//spikesaMC (spikesaMC)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class spikesaMC extends MovieClip {
private var Ob:Object;
private var spiking:Boolean;// = false
public var hitterArea:MovieClip;
public function spikesaMC(){
Ob = MovieClip(root).gameMC;
spiking = false;
super();
addEventListener(Event.ENTER_FRAME, enterframe);
}
public function removetheListener():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
public function enterframe(_arg1:Event):void{
if (currentLabel == "spikeUp"){
spiking = true;
MovieClip(parent.parent).customMessage = "spiking";
} else {
if (currentLabel == "spikeDown"){
spiking = false;
MovieClip(parent.parent).customMessage = "";
};
};
if (((((((((((spiking) && (!(MovieClip(parent.parent).hiding)))) && (!(Ob.hitting)))) && (!(Ob.getChildByName("lilly").invincible)))) && (this.hitterArea))) && (this.hitterArea.hitTestObject(Ob.getChildByName("lilly"))))){
if (Ob.dir == "Left"){
Ob.removeHealth("Right");
} else {
Ob.removeHealth("Left");
};
};
}
}
}//package
Section 111
//spikesaMCAuo (spikesaMCAuo)
package {
public dynamic class spikesaMCAuo extends spikesaMC {
}
}//package
Section 112
//spikesbMCAuto (spikesbMCAuto)
package {
public dynamic class spikesbMCAuto extends spikesaMC {
}
}//package
Section 113
//spikescMCAuto (spikescMCAuto)
package {
public dynamic class spikescMCAuto extends spikesaMC {
}
}//package
Section 114
//streamSound (streamSound)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
public class streamSound extends MovieClip {
private var unmutensTimer;
private var sndTransform:SoundTransform;
public var sound:Boolean;// = true
private var theUrl;
private var mutensTimer;
private var storeSoundVolume:Number;// = 0.5
private var soundVideo:Video;
private var nc:NetConnection;
private var flushed:Boolean;// = false
private var ns:NetStream;
public function streamSound(_arg1:String){
sound = true;
sndTransform = new SoundTransform();
storeSoundVolume = 0.5;
flushed = false;
super();
theUrl = _arg1;
soundVideo = new Video(1, 1);
nc = new NetConnection();
nc.connect("rtmp://fl.interoute.com/streamrt/_definst_");
nc.addEventListener(NetStatusEvent.NET_STATUS, onConnectStatusEvent);
nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
nc.addEventListener(IOErrorEvent.IO_ERROR, onSoundIOError, false, 0, true);
}
public function stopSound():void{
ns.close();
}
private function onSoundIOError(_arg1:IOErrorEvent){
}
private function unmuteSoundTimer(_arg1:TimerEvent):void{
unmuteSound();
}
private function onVideoStatusEvent(_arg1:Object):void{
if (_arg1.info.code == "NetStream.Buffer.Flush"){
flushed = true;
};
if ((((_arg1.info.code == "NetStream.Buffer.Empty")) && (flushed))){
flushed = false;
onSComplete();
};
}
public function unpauseSound():void{
flushed = false;
ns.togglePause();
}
public function muteSound():void{
var _local1:*;
if (ns){
sndTransform.volume = 0;
ns.soundTransform = sndTransform;
} else {
_local1 = new Timer(50, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, muteSoundTimer);
_local1.start();
};
}
private function muteSoundTimer(_arg1:TimerEvent):void{
muteSound();
}
private function onSComplete():void{
if (MovieClip(parent)){
MovieClip(parent).endSound();
};
}
public function pauseSound():void{
flushed = false;
ns.togglePause();
}
private function onConnectStatusEvent(_arg1:NetStatusEvent):void{
var meta:Object;
var e = _arg1;
if (e.info.code == "NetConnection.Connect.Success"){
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, onVideoStatusEvent);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns.addEventListener(IOErrorEvent.IO_ERROR, onSoundIOError, false, 0, true);
meta = new Object();
meta.onMetaData = function (_arg1:Object){
};
ns.client = meta;
soundVideo.attachNetStream(ns);
ns.play(theUrl);
sndTransform.volume = 0.5;
ns.soundTransform = sndTransform;
};
}
private function asyncErrorHandler(_arg1:AsyncErrorEvent):void{
}
public function changeVolume(_arg1:Number):void{
storeSoundVolume = _arg1;
if (MovieClip(parent).sound){
sndTransform.volume = _arg1;
ns.soundTransform = sndTransform;
};
}
public function unmuteSound():void{
var _local1:*;
if (ns){
sndTransform.volume = storeSoundVolume;
ns.soundTransform = sndTransform;
} else {
_local1 = new Timer(50, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, unmuteSoundTimer);
_local1.start();
};
}
}
}//package
Section 115
//throwSound (throwSound)
package {
import flash.media.*;
public dynamic class throwSound extends Sound {
}
}//package
Section 116
//tile (tile)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class tile extends MovieClip {
var xpos:Number;
var startX:Number;
var ypos:Number;
var startY:Number;
public var customMessage:String;// = ""
var hiding:Boolean;// = true
var thisTile:tileMC;
var tim:Timer;
var frameNum:Number;
public function tile(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
hiding = true;
customMessage = "";
super();
xpos = _arg1;
ypos = _arg2;
startX = _arg4;
startY = _arg5;
frameNum = _arg3;
tim = new Timer(220, 0);
tim.addEventListener(TimerEvent.TIMER, showOrHideTiles);
tim.start();
}
public function startEnding():void{
if (frameNum == 8){
thisTile.exitTile.playIt();
};
}
private function showGraphic():void{
if (frameNum > 0){
thisTile = new tileMC();
thisTile.x = xpos;
thisTile.y = ypos;
thisTile.gotoAndStop((1 + frameNum));
thisTile.name = "tileMC";
addChild(thisTile);
};
hiding = false;
}
private function showOrHideTiles(_arg1:TimerEvent):void{
if (((((hiding) && (((parent.y + this.ypos) > -40)))) && (((parent.y + this.ypos) < 480)))){
showGraphic();
} else {
if (((!(hiding)) && (((((parent.y + this.ypos) < -40)) || (((parent.y + this.ypos) > 480)))))){
hideGraphic();
};
};
}
private function hideGraphic():void{
if (((thisTile) && ((frameNum > 0)))){
customMessage = "";
if (frameNum == 4){
thisTile.dogMCTile.removetheListener();
} else {
if (frameNum == 26){
thisTile.jackMCTile.removetheListener();
} else {
if (frameNum == 5){
thisTile.spikeaMCTile.removetheListener();
} else {
if (frameNum == 6){
thisTile.spikebMCTile.removetheListener();
} else {
if (frameNum == 7){
thisTile.spikecMCTile.removetheListener();
} else {
if (frameNum == 8){
thisTile.exitTile.removetheListener();
} else {
if (frameNum == 9){
thisTile.letterL.removetheListener();
} else {
if (frameNum == 10){
thisTile.letteri.removetheListener();
} else {
if (frameNum == 11){
thisTile.letterl.removetheListener();
} else {
if (frameNum == 12){
thisTile.letterY.removetheListener();
} else {
if (frameNum == 13){
thisTile.drinkTile.removetheListener();
} else {
if (frameNum == 14){
thisTile.drugTile.removetheListener();
} else {
if (frameNum == 15){
thisTile.papTile.removetheListener();
} else {
if (frameNum == 16){
thisTile.bankerLeftTile.removetheListener();
} else {
if (frameNum == 17){
thisTile.bankerRightTile.removetheListener();
} else {
if (frameNum == 18){
thisTile.balloonTile.removetheListener();
} else {
if (frameNum == 19){
thisTile.bossTile.removetheListener();
} else {
if (frameNum == 20){
thisTile.healthTile.removetheListener();
} else {
if (frameNum == 21){
thisTile.smallhealthTile.removetheListener();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
removeChild(thisTile);
thisTile = null;
};
hiding = true;
}
public function killGraphic():void{
tim.stop();
tim.removeEventListener(TimerEvent.TIMER, showOrHideTiles);
tim = null;
hideGraphic();
}
}
}//package
Section 117
//tileMC (tileMC)
package {
import flash.display.*;
public dynamic class tileMC extends MovieClip {
public var bankerRightTile:bankerRightMC;
public var exitTile:exitMC;
public var letterL:L_MC;
public var letterY:Y_MC;
public var jackMCTile:jackMC;
public var letteri:I_MC;
public var letterl:lsmall_MC;
public var level_1_platform_1MC:MovieClip;
public var healthTile:healthMC;
public var spikeaMCTile:spikesaMCAuo;
public var drinkTile:drinkMC;
public var bankerLeftTile:bankerLeftMC;
public var smallhealthTile:smallhealthMC;
public var drugTile:drugMC;
public var level_1_platform_4MC:MovieClip;
public var level_1_platform_5MC:MovieClip;
public var balloonTile:balloonMC;
public var spikebMCTile:spikesbMCAuto;
public var level_1_platform_3MC:MovieClip;
public var dogMCTile:dogMC;
public var bossTile:bossMC;
public var spikecMCTile:spikescMCAuto;
public var level_1_platform_2MC:MovieClip;
public var papTile:papMC;
}
}//package
Section 118
//titleRinger (titleRinger)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class titleRinger extends MovieClip {
private var ringAngle:Number;
public var xPos:Number;// = 0
public function titleRinger(){
xPos = 0;
super();
ringAngle = 0;
addEventListener(Event.ENTER_FRAME, enterframe);
}
private function enterframe(_arg1:Event):void{
ringAngle = (ringAngle + 0.05);
this.x = (xPos + int((Math.sin(ringAngle) * 100)));
this.y = int((Math.cos(ringAngle) * 60));
}
public function killGraphic():void{
removeEventListener(Event.ENTER_FRAME, enterframe);
}
}
}//package
Section 119
//topOfFear (topOfFear)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class topOfFear extends MovieClip {
public var handMC:MovieClip;
private var tim:Timer;
public function topOfFear(){
tim = new Timer(250, 0);
tim.addEventListener(TimerEvent.TIMER, showOrHideTiles);
tim.start();
}
private function showOrHideTiles(_arg1:TimerEvent):void{
if (y <= (MovieClip(root).gameMC.getChildByName("lilly").y + 25)){
handMC.play();
handMC.x = (MovieClip(root).gameMC.getChildByName("lilly").x - 16);
};
if ((parent.y + this.y) > 460){
stop();
} else {
play();
};
}
public function killGraphic():void{
tim.stop();
tim.removeEventListener(TimerEvent.TIMER, showOrHideTiles);
}
}
}//package
Section 120
//Y_MC (Y_MC)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.ui.*;
public dynamic class Y_MC extends bonusCollectsMC {
public function Y_MC(){
addFrameScript(12, frame13, 27, frame28);
}
function frame13(){
gotoAndPlay(1);
}
function frame28(){
stop();
}
}
}//package