Section 1
//baloonbriana_248 (Lunix1_fla.baloonbriana_248)
package Lunix1_fla {
import flash.display.*;
public dynamic class baloonbriana_248 extends MovieClip {
public var ab:MovieClip;
}
}//package Lunix1_fla
Section 2
//BARmeter_133 (Lunix1_fla.BARmeter_133)
package Lunix1_fla {
import flash.display.*;
public dynamic class BARmeter_133 extends MovieClip {
public var bar:MovieClip;
}
}//package Lunix1_fla
Section 3
//credit_482 (Lunix1_fla.credit_482)
package Lunix1_fla {
import flash.display.*;
public dynamic class credit_482 extends MovieClip {
public var btnback:SimpleButton;
public var mctxtcredit:MovieClip;
}
}//package Lunix1_fla
Section 4
//damnrocketlauncher_212 (Lunix1_fla.damnrocketlauncher_212)
package Lunix1_fla {
import flash.display.*;
public dynamic class damnrocketlauncher_212 extends MovieClip {
public var mcsold:MovieClip;
public function damnrocketlauncher_212(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 5
//explosiongrenade_549 (Lunix1_fla.explosiongrenade_549)
package Lunix1_fla {
import flash.display.*;
public dynamic class explosiongrenade_549 extends MovieClip {
public function explosiongrenade_549(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package Lunix1_fla
Section 6
//explosiongrenadeanimate_548 (Lunix1_fla.explosiongrenadeanimate_548)
package Lunix1_fla {
import flash.display.*;
public dynamic class explosiongrenadeanimate_548 extends MovieClip {
public var mc1:MovieClip;
public function explosiongrenadeanimate_548(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package Lunix1_fla
Section 7
//explosionlarge_270 (Lunix1_fla.explosionlarge_270)
package Lunix1_fla {
import flash.display.*;
public dynamic class explosionlarge_270 extends MovieClip {
public function explosionlarge_270(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Lunix1_fla
Section 8
//explosionsmall_259 (Lunix1_fla.explosionsmall_259)
package Lunix1_fla {
import flash.display.*;
public dynamic class explosionsmall_259 extends MovieClip {
public function explosionsmall_259(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package Lunix1_fla
Section 9
//freestlyetxt_265 (Lunix1_fla.freestlyetxt_265)
package Lunix1_fla {
import flash.display.*;
public dynamic class freestlyetxt_265 extends MovieClip {
public var txt1:MovieClip;
public function freestlyetxt_265(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Lunix1_fla
Section 10
//funkybunny_247 (Lunix1_fla.funkybunny_247)
package Lunix1_fla {
import flash.display.*;
public dynamic class funkybunny_247 extends MovieClip {
public var mcsold:MovieClip;
public function funkybunny_247(){
addFrameScript(0, frame1, 1, frame2, 15, frame16, 16, frame17);
}
function frame1(){
stop();
}
function frame17(){
stop();
}
function frame16(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 11
//g9678g96g9_245 (Lunix1_fla.g9678g96g9_245)
package Lunix1_fla {
import flash.display.*;
public dynamic class g9678g96g9_245 extends MovieClip {
public function g9678g96g9_245(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package Lunix1_fla
Section 12
//gamesfre_pre_dragon_animation_29 (Lunix1_fla.gamesfre_pre_dragon_animation_29)
package Lunix1_fla {
import flash.display.*;
public dynamic class gamesfre_pre_dragon_animation_29 extends MovieClip {
public function gamesfre_pre_dragon_animation_29(){
addFrameScript(86, frame87);
}
function frame87(){
stop();
}
}
}//package Lunix1_fla
Section 13
//gamesfre_pre_mendengus_37 (Lunix1_fla.gamesfre_pre_mendengus_37)
package Lunix1_fla {
import flash.display.*;
public dynamic class gamesfre_pre_mendengus_37 extends MovieClip {
public function gamesfre_pre_mendengus_37(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package Lunix1_fla
Section 14
//gamesfre_pre_preloader_gamesfree_28 (Lunix1_fla.gamesfre_pre_preloader_gamesfree_28)
package Lunix1_fla {
import flash.display.*;
public dynamic class gamesfre_pre_preloader_gamesfree_28 extends MovieClip {
public var ab:MovieClip;
}
}//package Lunix1_fla
Section 15
//instruction1_530 (Lunix1_fla.instruction1_530)
package Lunix1_fla {
import flash.display.*;
public dynamic class instruction1_530 extends MovieClip {
public var btncontinue:SimpleButton;
public var btnplay:SimpleButton;
public function instruction1_530(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package Lunix1_fla
Section 16
//iwakbaling2muter_79 (Lunix1_fla.iwakbaling2muter_79)
package Lunix1_fla {
import flash.display.*;
public dynamic class iwakbaling2muter_79 extends MovieClip {
public function iwakbaling2muter_79(){
addFrameScript(42, frame43);
}
function frame43(){
gotoAndPlay("turn");
}
}
}//package Lunix1_fla
Section 17
//jamurdurimocrot_185 (Lunix1_fla.jamurdurimocrot_185)
package Lunix1_fla {
import flash.display.*;
public dynamic class jamurdurimocrot_185 extends MovieClip {
public function jamurdurimocrot_185(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
stop();
}
function frame23(){
stop();
}
}
}//package Lunix1_fla
Section 18
//jatuhke3_99 (Lunix1_fla.jatuhke3_99)
package Lunix1_fla {
import flash.display.*;
public dynamic class jatuhke3_99 extends MovieClip {
public function jatuhke3_99(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package Lunix1_fla
Section 19
//kalenderupdate_317 (Lunix1_fla.kalenderupdate_317)
package Lunix1_fla {
import flash.display.*;
public dynamic class kalenderupdate_317 extends MovieClip {
public function kalenderupdate_317(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package Lunix1_fla
Section 20
//kickassfly_246 (Lunix1_fla.kickassfly_246)
package Lunix1_fla {
import flash.display.*;
public dynamic class kickassfly_246 extends MovieClip {
public var mcsold:MovieClip;
public function kickassfly_246(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 15, frame16, 16, frame17);
}
function frame3(){
trace("Aye");
stop();
}
function frame1(){
stop();
}
function frame17(){
stop();
}
function frame16(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 21
//lengket2_182 (Lunix1_fla.lengket2_182)
package Lunix1_fla {
import flash.display.*;
public dynamic class lengket2_182 extends MovieClip {
public function lengket2_182(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 22
//loadinghuruf_2 (Lunix1_fla.loadinghuruf_2)
package Lunix1_fla {
import flash.display.*;
public dynamic class loadinghuruf_2 extends MovieClip {
public function loadinghuruf_2(){
addFrameScript(31, frame32);
}
function frame32(){
stop();
}
}
}//package Lunix1_fla
Section 23
//loadingscreen_1 (Lunix1_fla.loadingscreen_1)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class loadingscreen_1 extends MovieClip {
public var mcloading2:MovieClip;
public var lunix:MovieClip;
public var txtload:TextField;
public var btnplay:SimpleButton;
public var txtload2:TextField;
public var mcloading:MovieClip;
}
}//package Lunix1_fla
Section 24
//lvl1_58 (Lunix1_fla.lvl1_58)
package Lunix1_fla {
import flash.display.*;
public dynamic class lvl1_58 extends MovieClip {
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc2:MovieClip;
public var mc4:MovieClip;
public var mc7:MovieClip;
public var mc6:MovieClip;
}
}//package Lunix1_fla
Section 25
//mainmenu_506 (Lunix1_fla.mainmenu_506)
package Lunix1_fla {
import flash.display.*;
public dynamic class mainmenu_506 extends MovieClip {
public var btncontinue:SimpleButton;
public var btnshop:SimpleButton;
public var btngallery:SimpleButton;
public var btnstart:SimpleButton;
public var btnoption:SimpleButton;
public var btnLG:SimpleButton;
public function mainmenu_506(){
addFrameScript(8, frame9, 19, frame20);
}
function frame20(){
stop();
}
function frame9(){
}
}
}//package Lunix1_fla
Section 26
//MainTimeline (Lunix1_fla.MainTimeline)
package Lunix1_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.filters.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var putey;
public var comboindex;
public var meteor1:MovieClip;
public var meteor2:MovieClip;
public var meteor3:MovieClip;
public var meteor4:MovieClip;
public var loader;
public var stepawalbool;
public var jarakpotonganimasi;
public var lagiwarp;
public var follower:int;
public var btnGF:SimpleButton;
public var requestku;
public var soundspike:spikesound;
public var judgetahap;
public var penguingetslippedbool;
public var i;
public var j;
public var soundpelican:pelicansound;
public var randomtext;
public var temptahapbg;
public var dahseratus;
public var comboimage:Array;
public var Tseasoneffect:Timer;
public var mcblar:bonuslevelswapmc;
public var tipeufo;
public var indexbg;
public var penguinspeed;
public var sounddead4:dead4sound;
public var soundmainmenu:Sound;
public var hargalauncher1;
public var hargalauncher2;
public var hargalauncher3;
public var gs2;
public var UItemp2;
public var spawntime;
public var tipelauncher;
public var mcUIimage:Array;
public var suaraSFX;
public var Tfreestyle:Timer;
public var mainmenuCG:MovieClip;
public var soundbutton:buttonsound;
public var penguinrangey;
public var soundearthquake:Sound;
public var combomax;
public var shadow:BlurFilter;
public var lokasitaruh2:Array;
public var guc;
public var framecomparison;
public var suaraBGM;
public var gul;
public var tempUItemp;
public var penguinchildtemp;
public var ufoshootbool;
public var diamond:Array;
public var Tblowfish:Timer;
public var steplist:Array;
public var bonusbgbg1:Array;
public var Tcamerabg2:Timer;
public var hittrampolinbool;
public var rank1:TextField;
public var rank2:TextField;
public var rank3:TextField;
public var rank4:TextField;
public var rank5:TextField;
public var am2;
public var levelspawntimeindex;
public var stepindex;
public var soundwind:windsound;
public var naek;
public var variables2:URLVariables;
public var cpl;
public var stopperkali;
public var inputkeyboard;
public var freestyleimage:Array;
public var coloring:BlurFilter;
public var pfstep;
public var soundfoodworld:Sound;
public var arraytrophy:Array;
public var stoptime;
public var fallingsoundbool;
public var soundchannelopening:SoundChannel;
public var comboshock;
public var Tpenguintwist:Timer;
public var posisimouse;
public var levelspawntime:Array;
public var launchermax;
public var Tpenguinmovepointer:Timer;
public var Tufomove:Timer;
public var soundchanneldizzy:SoundChannel;
public var soundexplosion1:explosion1sound;
public var randomstep;
public var soundjump1:jump1sound;
public var soundjump2:jump2sound;
public var Tpenguingetslipped:Timer;
public var endbonusgame;
public var faceeffectbool;
public var snowterakhir;
public var lokasi;
public var steparrowindex;
public var warpdoor:Array;
public var lagumaenmenu;
public var heighty2;
public var soundufobullet:ufobulletsound;
public var canmaxbackup;
public var hstime;
public var indexwarp;
public var bglist:Array;
public var hargagul2;
public var Tpenguinmovetime:Timer;
public var loader2:URLLoader;
public var terpilih;
public var launcherbool;
public var mcthropy:MovieClip;
public var Tufospawn:Timer;
public var soundfreestyle:freestylesound;
public var soundfalling:Sound;
public var Tdiamond:Timer;
public var mcoptionimage:Array;
public var dust:Array;
public var ufobullet:Array;
public var begginingrecharge;
public var Tstepanimation:Timer;
public var tahapbg;
public var soundpop:popsound;
public var Tpenguinfalling2:Timer;
public var sounddizzy:Sound;
public var tempbawah;
public var Tmainmenu:Timer;
public var penguinbaju;
public var Trecharge:Timer;
public var canindex;
public var cplprice;
public var btnquality:SimpleButton;
public var bestheighton;
public var hargagul;
public var penguin:Array;
public var boleending;
public var Tpenguinfalling:Timer;
public var Tufoshoot:Timer;
public var galleryCG:MovieClip;
public var Tjudge:Timer;
public var maxgamesheight;
public var freestylebool;
public var launchershakebool;
public var comboke;
public var Talienmove2:Timer;
public var stepposisi;
public var customContextMenu:ContextMenu;
public var mcannouncebonus:MovieClip;
public var level;
public var penguinstat;
public var maxheight:Number;
public var contextmenu;
public var canmax;
public var frametes;
public var Tlaunchershake:Timer;
public var ufoindex;
public var shakeybool;
public var cantemp;
public var stepspasi;
public var Tfalling:Timer;
public var naekint;
public var okspike;
public var stepawal;
public var txt1:TextField;
public var Tresultscore:Timer;
public var trampoindex;
public var lsk;
public var lokasiQuality;
public var comborandom;
public var temp;
public var lokasiSFX;
public var maxgames;
public var Tflying:Timer;
public var randombonusworld;
public var soundwee:weesound;
public var ufo:Array;
public var mcannounce:MovieClip;
public var Tswappenguinlauncher:Timer;
public var explosiongrenademc:MovieClip;
public var bestheight:MovieClip;
public var diamondindex;
public var lokasiada:Array;
public var mcannounce2:MovieClip;
public var soundwarp:warpsound;
public var lokasiBGM;
public var se2;
public var ac;
public var am;
public var lokasitaruh:Array;
public var heighty;
public var soundchannelanehaneh:SoundChannel;
public var medalindex;
public var tutorialCG:MovieClip;
public var bf;
public var bg:Array;
public var btncredit:SimpleButton;
public var cb;
public var medalannounce:Array;
public var soundlauncher0:launcher0sound;
public var soundlauncher3:launcher3sound;
public var UItemp;
public var cl;
public var jumpingindex;
public var cs;
public var cu;
public var tempcameramoveint;
public var preloader:MovieClip;
public var Tpenguinmovetime2:Timer;
public var cameramove;
public var die;
public var btnSFX:SimpleButton;
public var soundshop:Sound;
public var bonusworldtype;
public var faceindex;
public var mouse:MovieClip;
public var Thitspike:Timer;
public var steparrow:MovieClip;
public var Tpenguinmovepointer2:Timer;
public var testes;
public var btnBGM:SimpleButton;
public var Tswappenguinlauncher2:Timer;
public var generateufobool;
public var mcbonusbox:MovieClip;
public var gc;
public var maxsnow;
public var gs;
public var Tfollow:Timer;
public var hs;
public var shockdeath;
public var tipemati;
public var extended;
public var launcherplus;
public var btnback:SimpleButton;
public var Talienmove:Timer;
public var grenade:Array;
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mc3:MovieClip;
public var mc4:MovieClip;
public var mc5:MovieClip;
public var stopok;
public var soundgrenade:grenadesound;
public var soundopening:Sound;
public var canindex2;
public var combobool;
public var indexshakey;
public var ls;
public var point;
public var alien2movebool;
public var Tpenguinjumping:Timer;
public var guc2;
public var targetbg;
public var thropytext:Array;
public var spl;
public var Tdiamond2:Timer;
public var pftime;
public var trampobackupmode;
public var shopCG:MovieClip;
public var judgescore;
public var donebonus;
public var pausebool;
public var sounddead:deadsound;
public var pg;
public var pm;
public var soundslide:slidesound;
public var ps;
public var Twaitbonus:Timer;
public var soundfailed:failedsound;
public var sackmovementindex;
public var soundnorthpole:Sound;
public var beggining;
public var oktramp;
public var Tcamerashake:Timer;
public var ra;
public var seasoneffect:Array;
public var cloud:Array;
public var trophy:Array;
public var soundpause:pausesound;
public var sa;
public var rs;
public var ufobulletindex;
public var soundboo:boosound;
public var se;
public var so:SharedObject;
public var combotemp;
public var judgetime;
public var faceeffecttype;
public var stepterakhir;
public var saljugerak;
public var soundtank:tanksound;
public var Tcamerabg:Timer;
public var ub;
public var canstart;
public var um;
public var hargapenguin;
public var Thitrampolin:Timer;
public var lokasigame;
public var btnarrow2:SimpleButton;
public var score:Array;
public var gul2;
public var dahnyampe;
public var step:Array;
public var posmouse;
public var temp2;
public var gca;
public var newgameimage:Array;
public var trampolinbackup:Array;
public var tempa;
public var cameramoveinttemp;
public var shake;
public var soundpurchase:purchasesound;
public var soundalien:aliensound;
public var judge:Array;
public var preloaderlogo:MovieClip;
public var dilauncher;
public var btnarrow:SimpleButton;
public var bolepause;
public var soundelectric:electricsound;
public var sack:Array;
public var lose;
public var mcpauseimage:Array;
public var donedown;
public var bonusstep:Array;
public var soundrubber:rubbersound;
public var barujalan;
public var request2:URLRequest;
public var ubur1:MovieClip;
public var penguinrotate;
public var ubur2:MovieClip;
public var btnbacktomainmenu:SimpleButton;
public var optionCG:optionmenumc;
public var bonusworldannouncement:Array;
public var freestyletimes;
public var soundsardines:sardinessound;
public var Tcalendar:Timer;
public var launcher:Array;
public var gamestart;
public var soundchannelmainmenu:SoundChannel;
public var cameramoveint:Number;
public var openingCG:MovieClip;
public var jarakanimasi;
public var canmovementindex;
public var can:Array;
public var soundfish:fishflysound;
public var faceeffectimage:Array;
public var alienarray:Array;
public var mcinput:MovieClip;
public var randomalienmix;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13);
}
public function openingCGT(_arg1:Event):void{
if (openingCG.currentFrame == openingCG.totalFrames){
soundchannelopening.stop();
this.removeEventListener(Event.ENTER_FRAME, openingCGT);
openingCG.stop();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, anykey);
loadsave();
gotoAndStop("main menu");
};
}
public function generatelauncher(){
var _local1:*;
if (so.data.costumeselect == 3){
penguin[0] = new (penguinsupermc);
penguinbaju = 3;
so.data.speed = 10;
} else {
if (so.data.costumeselect == 2){
penguin[0] = new (penguinflymc);
penguinbaju = 2;
so.data.speed = 8;
} else {
if (so.data.costumeselect == 1){
penguin[0] = new (penguinbunnymc);
penguinbaju = 1;
so.data.speed = 7;
} else {
if (so.data.costumeselect == 0){
penguin[0] = new (penguinmc);
penguinbaju = 0;
so.data.speed = 5;
};
};
};
};
addChildAt(penguin[0], (getChildIndex(mcUIimage[0]) - 1));
penguin[0].cacheAsBitmap = true;
penguin[0].foot.visible = false;
penguin[0].visible = true;
penguin[0].x = 224;
penguin[0].y = 436;
penguin[0].gotoAndStop("stand");
if (so.data.launcherselect == 3){
tipelauncher = 4;
_local1 = [0, 80, 90];
launcherplus = _local1[so.data.launcher3];
launcher[0] = new (launcher4mc);
addChildAt(launcher[0], (getChildIndex(penguin[0]) + 1));
launcher[0].x = 25;
launcher[0].y = 384;
} else {
if (so.data.launcherselect == 2){
tipelauncher = 3;
_local1 = [0, 40, 50];
launcherplus = _local1[so.data.launcher2];
launcher[0] = new (launcher3mc);
addChildAt(launcher[0], (getChildIndex(penguin[0]) - 1));
launcher[0].x = 25;
launcher[0].y = 384;
} else {
if (so.data.launcherselect == 1){
tipelauncher = 2;
_local1 = [0, 20, 30];
launcherplus = _local1[so.data.launcher1];
launcher[0] = new (launcher2mc);
addChildAt(launcher[0], (getChildIndex(penguin[0]) - 1));
launcher[0].x = 25;
launcher[0].y = 384;
} else {
if (so.data.launcherselect == 0){
tipelauncher = 1;
launcherplus = 0;
launcher[0] = new (launcher1mc);
addChildAt(launcher[0], (getChildIndex(penguin[0]) - 1));
launcher[0].x = 25;
launcher[0].y = 384;
};
};
};
};
launcher[0].cacheAsBitmap = true;
if ((((((so.data.costumeselect == 3)) && (!((tipelauncher == 1))))) && (!((tipelauncher == 4))))){
launcher[0].mchead.gotoAndStop(4);
} else {
if ((((((so.data.costumeselect == 2)) && (!((tipelauncher == 1))))) && (!((tipelauncher == 4))))){
launcher[0].mchead.gotoAndStop(3);
} else {
if ((((((so.data.costumeselect == 1)) && (!((tipelauncher == 1))))) && (!((tipelauncher == 4))))){
launcher[0].mchead.gotoAndStop(2);
} else {
if ((((((so.data.costumeselect == 0)) && (!((tipelauncher == 1))))) && (!((tipelauncher == 4))))){
launcher[0].mchead.gotoAndStop(1);
};
};
};
};
generaterecharge();
}
public function loadingsoundpop(_arg1:Event):void{
if (mainmenuCG.currentLabel == "pop"){
soundpop.play(0, 1, new SoundTransform(suaraSFX));
};
if (mainmenuCG.currentFrame == mainmenuCG.totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, loadingsoundpop);
};
}
public function removesnow(){
rs = 0;
while (rs < maxsnow) {
if (seasoneffect[rs] != null){
removeChild(seasoneffect[rs]);
seasoneffect[rs] = null;
};
rs++;
};
}
public function penguintwistT(_arg1:TimerEvent):void{
penguin[0].x = step[indexwarp].x;
penguin[0].rotation = (penguin[0].rotation + 8);
penguin[0].width--;
penguin[0].height--;
if ((((penguin[0].width < 1)) && ((stopok == 0)))){
stoptime = (stoptime - 10);
if (stoptime <= 0){
stopok = 1;
};
} else {
if (stopok == 1){
temptahapbg = tahapbg;
tempUItemp = UItemp;
stopok = 2;
randombonusworld = (Math.random() * 100);
if (randombonusworld < 30){
bonusworldtype = "doom";
} else {
bonusworldtype = "happy";
};
bonusworldtype = "happy";
soundwarp.play(0, 1, new SoundTransform(suaraSFX));
warpdoor[indexwarp].mc1.gotoAndPlay(2);
} else {
if (stopok == 2){
if (warpdoor[indexwarp].mc1.currentLabel == "stop"){
bonusworldannouncement[1] = new (bonuslevelswapmc);
addChildAt(bonusworldannouncement[1], (getChildIndex(mouse) - 1));
bonusworldannouncement[1].cacheAsBitmap = true;
bonusworldannouncement[1].x = 250;
bonusworldannouncement[1].y = 250;
bonusworldannouncement[1].gotoAndPlay((bonusworldtype + "start"));
soundpause.play(0, 1, new SoundTransform(suaraSFX));
stopok = 3;
stoptime = 1000;
};
} else {
if (stopok == 3){
stoptime = (stoptime - 10);
if (stoptime <= 0){
stopok = 4;
};
} else {
if (stopok == 4){
if (bonusworldannouncement[1].currentLabel == "stop"){
combotemp = comboke;
cantemp = UItemp2;
Tpenguintwist.stop();
stopgame();
Tseasoneffect.stop();
cleanup();
soundchannelmainmenu.stop();
gotoAndStop("bonus game");
};
};
};
};
};
};
}
function frame10(){
stop();
lokasigame = "SG";
posisimouse = getChildIndex(steparrow);
changecursor();
UItemp = 0;
mcUIimage = new Array();
mcUIimage[0] = new (mcUI);
addChildAt(mcUIimage[0], (posisimouse - 1));
mcUIimage[0].cacheAsBitmap = true;
mcUIimage[0].x = -12.4;
mcUIimage[0].y = -5;
mcUIimage[0].visible = true;
mcUIimage[0].txt1.text = "";
mcUIimage[0].txt2.text = "";
mcUIimage[0].txt3.text = "";
mcUIimage[0].txt4.text = "";
mcUIimage[0].txt5.text = "";
if (temptahapbg == 0){
mcUIimage[0].txt1.text = "0 ft";
} else {
mcUIimage[0].txt1.text = (tempUItemp + " ft");
UItemp = tempUItemp;
};
mcUIimage[0].txt2.text = ("x " + so.data.can);
mcUIimage[0].txt3.text = ("Cash: " + so.data.money);
mcUIimage[0].txt4.text = so.data.daye;
if (mcUIimage[0].txt4.text == "999"){
mcUIimage[0].txt4.text = "0";
so.data.daye = 0;
};
mcUIimage[0].txt5.text = ("x " + so.data.tramp);
mcUIimage[0].trampie.visible = false;
mcUIimage[0].txt5.visible = false;
mcUIimage[0].mcpower.visible = false;
bestheight.visible = false;
cl = 0;
Tcalendar = new Timer(36);
Tcalendar.addEventListener(TimerEvent.TIMER, calendarT);
if (temptahapbg == 0){
Tcalendar.start();
};
mcUIimage[0].btnGF.addEventListener(MouseEvent.CLICK, conGF4);
mcpauseimage = new Array();
mcoptionimage = new Array();
Tdiamond = new Timer(10);
Tdiamond.addEventListener(TimerEvent.TIMER, diamondT);
Tdiamond.start();
cameramove = "down";
cameramoveint = 0;
tahapbg = 0;
level = 1;
bg = new Array();
step = new Array();
temp2 = 0;
Tpenguinfalling = new Timer(10);
Tpenguinfalling.addEventListener(TimerEvent.TIMER, penguinfallingT);
stopperkali = 5;
maxheight = 0;
heighty = 0;
maxheight = 0;
maxgames = 3;
maxgamesheight = 0;
framecomparison = 4;
dahnyampe = false;
tempbawah = 0;
indexbg = 0;
cb = 0;
launcherbool = false;
oktramp = 0;
okspike = 0;
snowterakhir = 0;
steparrowindex = 0;
sack = new Array();
grenade = new Array();
warpdoor = new Array();
Tcamerabg = new Timer(10);
Tcamerabg.addEventListener(TimerEvent.TIMER, camerabgT);
ra = 0;
alienarray = new Array();
canstart = false;
canindex = 0;
canindex2 = 0;
canmax = 1;
canmaxbackup = 0;
gca = 0;
can = new Array();
so.data.money = Number(so.data.money);
ac = 0;
UItemp2 = 0;
spawntime = 0;
levelspawntime = new Array();
levelspawntime = [0, 30, 30, 30, 30];
levelspawntimeindex = 0;
Tufospawn = new Timer(1000);
Tufospawn.addEventListener(TimerEvent.TIMER, ufospawn);
randomalienmix = 0;
tipeufo = "";
generateufobool = false;
ufo = new Array();
ufoindex = 0;
bf = 0;
Tblowfish = new Timer(10);
Tblowfish.addEventListener(TimerEvent.TIMER, blowfish);
am = 0;
Talienmove = new Timer(10);
Talienmove.addEventListener(TimerEvent.TIMER, alienmove);
alien2movebool = false;
am2 = 0;
Talienmove2 = new Timer(10);
Talienmove2.addEventListener(TimerEvent.TIMER, alienmove2);
um = 0;
ufobullet = new Array();
ufobulletindex = 0;
Tufomove = new Timer(36);
Tufomove.addEventListener(TimerEvent.TIMER, ufomove);
ufoshootbool = false;
ub = 0;
die = false;
Tufoshoot = new Timer(10);
Tufoshoot.addEventListener(TimerEvent.TIMER, ufoshoot);
tipelauncher = 0;
launcherplus = 0;
launcher = new Array();
saljugerak = false;
donedown = false;
dilauncher = false;
cameramoveinttemp = 0;
gamestart = false;
penguinrangey = 0;
begginingrecharge = true;
Trecharge = new Timer(10);
heighty = 0;
heighty2 = 0;
bestheighton = false;
gc = 0;
cloud = new Array();
lsk = 3;
launchershakebool = false;
Tlaunchershake = new Timer(10);
Tlaunchershake.addEventListener(TimerEvent.TIMER, launchershake);
shadow = new BlurFilter();
shadow.blurX = 5;
shadow.blurY = 5;
penguin = new Array();
penguinbaju = 0;
Tswappenguinlauncher = new Timer(36);
Tswappenguinlauncher.addEventListener(TimerEvent.TIMER, swappenguinlauncher);
penguinchildtemp = 0;
jarakanimasi = 0;
jarakpotonganimasi = 0;
spl = 0;
Tswappenguinlauncher2 = new Timer(100);
Tswappenguinlauncher2.addEventListener(TimerEvent.TIMER, swappenguinlauncher2);
penguinspeed = 5;
ps = 1;
penguingetslippedbool = false;
Tpenguingetslipped = new Timer(2000);
Tpenguingetslipped.addEventListener(TimerEvent.TIMER, penguingetslipped);
stoptime = 1500;
stopok = 0;
indexwarp = 0;
bonusworldannouncement = new Array();
randombonusworld = 0;
Tpenguintwist = new Timer(10);
Tpenguintwist.addEventListener(TimerEvent.TIMER, penguintwistT);
stepindex = 0;
penguinstat = "";
pm = 0;
trampolinbackup = new Array();
Tpenguinmovepointer = new Timer(1);
Tpenguinmovepointer.addEventListener(TimerEvent.TIMER, penguinmovepointer);
combomax = 0;
comboimage = new Array();
comboindex = 0;
comborandom = 0;
combobool = false;
hs = 0;
hstime = 25;
Thitspike = new Timer(10);
Thitspike.addEventListener(TimerEvent.TIMER, hitspike);
trampoindex = 0;
hittrampolinbool = false;
Thitrampolin = new Timer(36);
Thitrampolin.addEventListener(TimerEvent.TIMER, hitrampolin);
lagiwarp = false;
fallingsoundbool = false;
trampobackupmode = false;
putey = 1;
barujalan = true;
tipemati = 1;
shockdeath = false;
penguinrotate = 5;
lose = false;
frametes = 0.35;
Tpenguinmovetime = new Timer(100);
Tpenguinmovetime.addEventListener(TimerEvent.TIMER, penguinmovetime);
testes = 3;
freestyletimes = 0;
freestylebool = false;
freestyleimage = new Array();
inputkeyboard = "";
Tfreestyle = new Timer(1000);
Tfreestyle.addEventListener(TimerEvent.TIMER, freestyleT);
shake = 0;
Tcamerashake = new Timer(100);
Tcamerashake.addEventListener(TimerEvent.TIMER, camerashake);
naekint = 3;
naek = true;
launchermax = false;
lokasitaruh = new Array();
lokasitaruh2 = new Array();
lokasiada = new Array();
lokasiada = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
stepspasi = 190;
lokasitaruh = [-10, -210, -410, -610, -810, -1010];
lokasitaruh2 = [50, 100, 150, 200, 250, 300];
maxsnow = 49;
seasoneffect = new Array();
se = 0;
se2 = 0;
rs = 0;
tempcameramoveint = 0;
Tseasoneffect = new Timer(36);
Tseasoneffect.addEventListener(TimerEvent.TIMER, seasoneffectT);
stepterakhir = 0;
beggining = true;
steplist = new Array();
steplist = [lvl1step3mc, lvl2step1mc, lvl3step1mc, lvl4step1mc];
bglist = new Array();
bglist = ["empty", lvl11mc, lvl12mc, lvl13mc, lvl14mc, lvl15mc, lvl16mc, lvl17mc, lvl18mc, lvl21mc, lvl22mc, lvl23mc, lvl24mc, lvl25mc, lvl26mc, lvl27mc, lvl28mc, lvl31mc, lvl32mc, lvl33mc, lvl34mc, lvl35mc, lvl36mc, lvl36mc, lvl36mc, lvl36mc, lvl36mc, lvl37mc, lvl38mc, lvl41mc, lvl42mc, lvl43mc, lvl44mc, lvl44mc, lvl44mc, lvl44mc, lvl44mc, lvl44mc, lvl44mc, lvl46mc, lvl42mc, lvl48mc, lvl51mc];
generateopening();
stepawal = 0;
stepawalbool = false;
gs2 = 0;
randomstep = 0;
stepposisi = 1;
sa = 0;
Tstepanimation = new Timer(10);
Tstepanimation.addEventListener(TimerEvent.TIMER, stepanimation);
Tstepanimation.start();
pg = 0;
boleending = false;
pausebool = false;
bolepause = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, pausegame);
judgetime = 0;
judgetahap = 0;
judgescore = 0;
Tjudge = new Timer(36);
Tjudge.addEventListener(TimerEvent.TIMER, judgeT);
judge = new Array();
score = new Array();
Tresultscore = new Timer(4000);
Tresultscore.addEventListener(TimerEvent.TIMER, resultscore);
cu = 0;
shakeybool = false;
indexshakey = 0;
dust = new Array();
canmovementindex = 0;
sackmovementindex = 0;
randomtext = ["OMG!!", "LOL!!", "NUTS!!", "3/5", "0/5", "AWW!!!", "Yippiii!!", "NUTS!!", "COOL!!", "SUPERB!!", "Lame!!", "Awesome!!", "Nice!!", "Epic!!", "Insane!!"];
faceeffectimage = new Array();
faceindex = ["", "one", "two", "three"];
comboshock = 0;
extended = 125;
faceeffectbool = false;
}
public function traceScore(){
var _local1:*;
var _local2:*;
writerank();
_local1 = 1;
while (_local1 <= 5) {
trace(loader.data);
trace(("KE" + _local1));
trace(loader.data[("name" + _local1)]);
_local2 = getChildByName(("mc" + _local1));
if (loader.data[("name" + _local1)] != null){
_local2.visible = true;
trace("sek");
_local2.txt1.text = loader.data[("name" + _local1)];
} else {
trace("sekNULL");
_local2.txt1.text = "No hunter yet";
};
if (loader.data[("level" + _local1)] != null){
trace("sek");
_local2.txt2.text = loader.data[("level" + _local1)];
} else {
trace("sekNULL");
_local2.txt2.text = "Dunno!";
};
if (loader.data[("score" + _local1)] != null){
trace("sek");
_local2.txt3.text = loader.data[("score" + _local1)];
} else {
trace("sekNULL");
_local2.txt3.text = "Dunno!";
};
_local1++;
};
}
public function generatepenguin(){
if (so.data.costumeselect == 3){
penguin[0] = new (penguinsupermc);
penguinbaju = 3;
so.data.speed = 10;
} else {
if (so.data.costumeselect == 2){
penguin[0] = new (penguinflymc);
penguinbaju = 2;
so.data.speed = 8;
} else {
if (so.data.costumeselect == 1){
penguin[0] = new (penguinbunnymc);
penguinbaju = 1;
so.data.speed = 7;
} else {
if (so.data.costumeselect == 0){
penguin[0] = new (penguinmc);
penguinbaju = 0;
so.data.speed = 5;
};
};
};
};
addChildAt(penguin[0], (getChildIndex(mcUIimage[0]) - 1));
penguin[0].cacheAsBitmap = true;
penguin[0].foot.visible = false;
penguin[0].visible = true;
penguin[0].x = 224;
penguin[0].y = 436;
penguin[0].gotoAndStop("stand");
}
public function arrowup2(_arg1:MouseEvent):void{
Tflying.stop();
}
public function hitspike(_arg1:TimerEvent):void{
bolepause = false;
if (hs == 0){
hstime--;
penguin[0].y = (penguin[0].y - 8);
if (hstime <= 0){
hs = 1;
};
} else {
if (hs == 1){
penguin[0].rotation = (penguin[0].rotation + 10);
penguin[0].y = (penguin[0].y + 10);
if (penguin[0].y >= 662){
Tresultscore.start();
bolepause = false;
Thitspike.stop();
};
};
};
}
function frame11(){
stop();
gotoAndStop("start game");
}
function frame12(){
stop();
canmaxbackup = 0;
bestheight.visible = false;
lokasigame = "BG";
posisimouse = getChildIndex(mouse);
changecursor();
steparrow.visible = false;
level = 1;
comboke = 0;
stepspasi = 190;
mcUIimage[0] = new (mcUI);
trace(("sene" + getChildIndex(mcbonusbox)));
addChildAt(mcUIimage[0], (getChildIndex(mcbonusbox) - 1));
trace("sene2343");
mcUIimage[0].cacheAsBitmap = true;
mcUIimage[0].x = -12.4;
mcUIimage[0].y = -5;
mcUIimage[0].visible = true;
mcUIimage[0].trampie.visible = false;
mcUIimage[0].txt5.visible = false;
mcUIimage[0].mcpower.visible = false;
soundchannelmainmenu = soundfoodworld.play(0, 999, new SoundTransform(suaraBGM));
bolepause = false;
pausebool = false;
UItemp = 0;
UItemp2 = 0;
freestyletimes = 0;
combomax = 0;
coloring = new BlurFilter();
shadow.blurX = 5;
shadow.blurY = 5;
mcUIimage[0].txt1.text = "0 ft";
mcUIimage[0].txt2.text = (("x " + so.data.can) + " (100 can left)");
mcUIimage[0].txt3.text = ("Cash: " + so.data.money);
mcUIimage[0].txt4.text = so.data.daye;
if (mcUIimage[0].txt4.text == "999"){
mcUIimage[0].txt4.text = "0";
so.data.daye = 0;
};
mcUIimage[0].txt5.text = ("x " + so.data.tramp);
generatepenguin();
bonusbgbg1 = new Array();
if (bonusworldtype == "happy"){
bg[0] = new (lvlbonus11mc);
trace("123");
addChildAt(bg[0], (getChildIndex(penguin[0]) - 1));
trace("3546");
bg[0].cacheAsBitmap = true;
bg[0].x = 0;
bg[0].y = 0;
bg[0].land = 0;
bg[1] = new (lvlbonus12mc);
bg[1].mca.visible = false;
bg[1].mcb.visible = false;
addChildAt(bg[1], (getChildIndex(penguin[0]) - 1));
bg[1].cacheAsBitmap = true;
bg[1].x = 0;
bg[1].y = -550;
};
bonusworldtype = "happy";
mcblar.x = 250;
mcblar.y = 250;
mcblar.gotoAndPlay((bonusworldtype + "end"));
mcbonusbox.btnplay.addEventListener(MouseEvent.MOUSE_DOWN, firstjumphold);
Twaitbonus = new Timer(36);
Twaitbonus.addEventListener(TimerEvent.TIMER, waitbonus);
tahapbg = 2;
bonusstep = new Array();
heighty = 0;
maxheight = 0;
donebonus = "";
canstart = false;
canindex = 0;
endbonusgame = false;
Tcamerabg2 = new Timer(10);
Tcamerabg2.addEventListener(TimerEvent.TIMER, camerabg2T);
stoptime = 2000;
jumpingindex = 0;
targetbg = 0;
Tpenguinjumping = new Timer(10);
Tpenguinjumping.addEventListener(TimerEvent.TIMER, penguinjumpingT);
Tpenguinmovepointer2 = new Timer(1);
Tpenguinmovepointer2.addEventListener(TimerEvent.TIMER, penguinmovepointer2);
dahseratus = false;
barujalan = true;
fallingsoundbool = false;
putey = 1;
Tpenguinmovetime2 = new Timer(100);
Tpenguinmovetime2.addEventListener(TimerEvent.TIMER, penguinmovetime2);
frametes = 0.35;
testes = 3;
pftime = 2000;
pfstep = 0;
Tpenguinfalling2 = new Timer(10);
Tpenguinfalling2.addEventListener(TimerEvent.TIMER, penguinfalling2T);
stage.addEventListener(KeyboardEvent.KEY_DOWN, pausebonusgame);
Tdiamond2 = new Timer(10);
Tdiamond2.addEventListener(TimerEvent.TIMER, diamond2T);
Tdiamond2.start();
}
function frame13(){
stop();
mcinput.visible = true;
mcinput.x = 303;
mcinput.y = 254;
txt1.visible = true;
txt1.x = 137;
txt1.y = 270;
txt1.text = "";
stage.focus = txt1;
mcinput.btnyes.addEventListener(MouseEvent.CLICK, yeshighscore);
btnback.addEventListener(MouseEvent.CLICK, backtomainmenuhighscore);
requestku = new URLRequest();
loader = new URLLoader();
}
public function option(_arg1:Event):void{
var backtomainmenu:Function;
var defaultgame:Function;
var SFX:Function;
var SFXup:Function;
var BGM:Function;
var BGMup:Function;
var quality:Function;
var qualityup:Function;
var credit:Function;
var creditback:Function;
var e = _arg1;
if (optionCG.currentFrame == optionCG.totalFrames){
backtomainmenu = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tfollow.stop();
trace("asdihafjd");
stop();
lokasiSFX = btnSFX.x;
lokasiBGM = btnBGM.x;
lokasiQuality = btnquality.x;
gotoAndStop("main menu");
};
defaultgame = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tfollow.stop();
btnSFX.x = 205;
btnBGM.x = 205;
btnquality.x = 205;
stage.quality = "high";
suaraSFX = 1;
suaraBGM = 1;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
};
SFX = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
follower = 1;
Tfollow.start();
};
SFXup = function (_arg1:MouseEvent):void{
Tfollow.stop();
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
};
BGM = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
follower = 2;
Tfollow.start();
};
BGMup = function (_arg1:MouseEvent):void{
Tfollow.stop();
};
quality = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
follower = 3;
Tfollow.start();
};
qualityup = function (_arg1:MouseEvent):void{
Tfollow.stop();
if (btnquality.x < 110){
stage.quality = "low";
} else {
if (btnquality.x < 150){
stage.quality = "medium";
} else {
if (btnquality.x < 205){
stage.quality = "high";
};
};
};
};
credit = function (_arg1:MouseEvent):void{
medalindex = 8;
generatemedal();
btnBGM.visible = false;
btnSFX.visible = false;
btnquality.visible = false;
btncredit.visible = false;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
optionCG.mccredit.visible = true;
optionCG.mccredit.x = -21.3;
optionCG.mccredit.y = 4.1;
optionCG.mccredit.mctxtcredit.gotoAndPlay(1);
};
creditback = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
btnBGM.visible = true;
btnSFX.visible = true;
btnquality.visible = true;
btncredit.visible = true;
optionCG.mccredit.visible = false;
};
optionCG.btnback.visible = false;
btnBGM.visible = true;
btnSFX.visible = true;
btnquality.visible = true;
this.removeEventListener(Event.ENTER_FRAME, option);
Tfollow.stop();
optionCG.stop();
optionCG.btnbacktomainmenu.addEventListener(MouseEvent.CLICK, backtomainmenu);
optionCG.btndefault.addEventListener(MouseEvent.CLICK, defaultgame);
btnSFX.addEventListener(MouseEvent.MOUSE_DOWN, SFX);
btnSFX.addEventListener(MouseEvent.MOUSE_UP, SFXup);
btnBGM.addEventListener(MouseEvent.MOUSE_DOWN, BGM);
btnBGM.addEventListener(MouseEvent.MOUSE_UP, BGMup);
btnquality.addEventListener(MouseEvent.MOUSE_DOWN, quality);
btnquality.addEventListener(MouseEvent.MOUSE_UP, qualityup);
btncredit.addEventListener(MouseEvent.CLICK, credit);
optionCG.mccredit.btnback.addEventListener(MouseEvent.CLICK, creditback);
};
}
public function canmovement(){
var canmovementremover:Function;
canmovementremover = function (_arg1:Event):void{
var _local2:*;
_arg1.target.targetx = penguin[0].x;
_arg1.target.targety = penguin[0].y;
_arg1.target.x = (_arg1.target.x - ((_arg1.target.posisix - _arg1.target.targetx) / 5));
_arg1.target.y = (_arg1.target.y - ((_arg1.target.posisiy - _arg1.target.targety) / 5));
if (_arg1.target.hitTestObject(penguin[0]) == true){
soundsardines.play(0, 1, new SoundTransform(suaraSFX));
_local2 = _arg1.target;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, canmovementremover);
can[_local2.indexke] = null;
_local2 = null;
canmaxbackup--;
UItemp2++;
mcUIimage[0].txt2.text = ("x " + UItemp2);
};
};
can[canmovementindex].posisix = can[canmovementindex].x;
can[canmovementindex].posisiy = can[canmovementindex].y;
can[canmovementindex].targetx = penguin[0].x;
can[canmovementindex].targety = penguin[0].y;
can[canmovementindex].indexke = canmovementindex;
can[canmovementindex].gotoAndPlay("rotate");
can[canmovementindex].ok = 1;
can[canmovementindex].addEventListener(Event.ENTER_FRAME, canmovementremover);
}
public function resultscore(_arg1:TimerEvent):void{
createjudge();
bonusworldtype = "";
temptahapbg = 0;
tempUItemp = 0;
mouse.visible = true;
judge[0].visible = true;
judge[0].gotoAndPlay(2);
Tjudge.start();
Tresultscore.stop();
}
public function itungscore(){
var _local1:*;
so.data.score = ((((Number((so.data.best + so.data.money)) + Number((so.data.daye * 10))) + Number(so.data.magnet)) + Number((so.data.percentagesack * 100))) + Number((so.data.percentagegrenade * 100)));
trace(("SCORE 1: " + so.data.score));
so.data.score = (so.data.score + ((Number((so.data.costume1 * 1000)) + Number((so.data.costume2 * 1000))) + Number((so.data.costume3 * 1000))));
trace(("SCORE 2: " + so.data.score));
so.data.score = (so.data.score + ((Number((so.data.launcher1 * 1000)) + Number((so.data.launcher2 * 1000))) + Number((so.data.launcher3 * 1000))));
trace(("SCORE 3: " + so.data.score));
_local1 = 0;
_local1 = 1;
while (_local1 <= 30) {
if (so.data.thropy[_local1] == 1){
so.data.score = Number((so.data.score + 1000));
};
_local1++;
};
trace(("SCORE 4: " + so.data.score));
}
public function seasoneffectT(_arg1:TimerEvent):void{
se = 0;
while (se < maxsnow) {
if (seasoneffect[se] != null){
seasoneffect[se].x = (seasoneffect[se].x + randRange(-0.5, 0.5));
seasoneffect[se].y = (seasoneffect[se].y + 2);
if (seasoneffect[se].hit == "false"){
if (seasoneffect[se].hitTestObject(penguin[0]) == true){
seasoneffect[se].hit = "true";
seasoneffect[se].gotoAndPlay(2);
} else {
if (seasoneffect[se].y > 490){
seasoneffect[se].hit = "true";
seasoneffect[se].gotoAndPlay(2);
};
};
} else {
if (seasoneffect[se].hit == "true"){
if (seasoneffect[se].currentFrame == seasoneffect[se].totalFrames){
seasoneffect[se].hit = "false";
seasoneffect[se].gotoAndStop(1);
seasoneffect[se].y = (seasoneffect[snowterakhir].y - 10);
snowterakhir = se;
};
};
};
};
se++;
};
}
public function ufomove(_arg1:TimerEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
um = 0;
while (um < ufoindex) {
if (ufo[um] != null){
if (ufo[um].tipe == "ufo"){
ufo[um].x = (ufo[um].x + ufo[0].speed);
if (ufo[um].attack == 0){
ufo[um].mctarget.x = (penguin[0].x - ufo[um].x);
ufo[um].mctarget.y = (penguin[0].y - ufo[um].y);
} else {
ufo[um].mctarget.x = (ufo[um].mctarget.x - ufo[0].speed);
};
if ((((ufo[um].currentLabel == "attack")) && ((ufo[um].attack == 0)))){
soundufobullet.play(0, 1, new SoundTransform(suaraSFX));
ufo[um].mctarget.gotoAndStop(2);
ufo[um].mctarget.visible = false;
ufo[um].attack = 1;
ufobullet[ufobulletindex] = new (ufobulletmc);
addChildAt(ufobullet[ufobulletindex], (getChildIndex(ufo[um]) - 1));
ufobullet[ufobulletindex].cacheAsBitmap = true;
ufobullet[ufobulletindex].x = ufo[um].x;
ufobullet[ufobulletindex].y = (ufo[um].y + 20);
ufobullet[ufobulletindex].posisix = ufobullet[ufobulletindex].x;
ufobullet[ufobulletindex].posisiy = ufobullet[ufobulletindex].y;
ufobullet[ufobulletindex].targetx = (ufo[um].mctarget.x + ufo[um].x);
ufobullet[ufobulletindex].targety = (ufo[um].mctarget.y + ufo[um].y);
_local2 = (ufobullet[ufobulletindex].x - penguin[0].x);
_local3 = (ufobullet[ufobulletindex].x - penguin[0].y);
_local4 = Math.atan2(_local3, _local2);
_local5 = ((_local4 * 180) / Math.PI);
ufobullet[ufobulletindex].rotation = _local5;
ufobulletindex++;
if (ufoshootbool == false){
ufoshootbool = true;
Tufoshoot.start();
};
};
if ((((((ufo[um].x > 600)) || ((ufo[um].x < -100)))) || ((ufo[um].y > 579)))){
removeChild(ufo[um]);
ufo[um] = null;
ufo.splice(um, 1);
ufoindex--;
};
};
};
um++;
};
}
public function changeheight(){
}
public function resumeingame(){
stage.focus = stage;
stage.removeEventListener(Event.ENTER_FRAME, loadingsoundpop3);
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
penguin[0].visible = true;
bestheight.visible = true;
steparrow.visible = true;
medalindex = 7;
generatemedal();
removeChild(mcpauseimage[0]);
mcpauseimage[0] = null;
penguin[0].play();
pausebool = false;
stage.addEventListener(Event.ENTER_FRAME, Ttes2);
if (penguingetslippedbool == true){
Tpenguingetslipped.start();
};
stage.addEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
stage.addEventListener(Event.ENTER_FRAME, Ttes);
Tstepanimation.start();
if (hittrampolinbool == true){
Thitrampolin.start();
};
if (generateufobool == true){
if (tipeufo == "ufo"){
Tufomove.start();
Tufoshoot.start();
} else {
if (tipeufo == "alien"){
Tblowfish.start();
} else {
if (tipeufo == "alien2"){
Talienmove.start();
Talienmove2.start();
};
};
};
Tufospawn.start();
};
if (launchershakebool == true){
Tlaunchershake.start();
};
if (freestylebool == true){
Tfreestyle.start();
};
}
public function continuetutorial(_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
trace(("DAYE : " + so.data.daye));
if (point == 0){
tutorialCG.gotoAndPlay("one");
point++;
} else {
if (point == 1){
tutorialCG.gotoAndPlay("two");
};
};
}
public function penguinjumpingT(_arg1:TimerEvent):void{
var _local2:*;
var _local3:*;
if (jumpingindex == 0){
penguin[0].targetx = 250;
penguin[0].x = (penguin[0].x - ((penguin[0].x - penguin[0].targetx) / 20));
penguin[0].y = (penguin[0].y - ((penguin[0].y - penguin[0].targety) / 20));
if (penguin[0].y <= penguin[0].targety){
penguin[0].gotoAndPlay("flydown");
soundwarp.play(0, 1, new SoundTransform(suaraSFX));
jumpingindex = 1;
};
} else {
if (jumpingindex == 1){
penguin[0].rotation = (penguin[0].rotation + 8);
penguin[0].width--;
penguin[0].height--;
if (penguin[0].width < 1){
stoptime = (stoptime - 10);
if ((((stoptime <= 0)) && ((UItemp2 < 100)))){
jumpingindex = 2;
soundboo.play(0, 1, new SoundTransform(suaraSFX));
mcannounce2.mc1.txt1.text = "Objective Failed";
mcannounce2.gotoAndPlay(2);
} else {
if ((((stoptime <= 0)) && ((UItemp2 >= 100)))){
so.data.bonusgame--;
jumpingindex = 4;
soundfreestyle.play(0, 1, new SoundTransform(suaraSFX));
mcannounce2.mc1.txt1.text = "Objective Reached!!";
mcannounce2.gotoAndPlay(2);
};
};
};
} else {
if (jumpingindex == 2){
if (mcannounce2.currentFrame == mcannounce2.totalFrames){
_local2 = (UItemp2 * 10);
_local3 = 0;
randomstep = 1;
while (randomstep <= combomax) {
_local3 = (_local3 + int((randomstep * 0.1)));
randomstep++;
};
_local2 = (_local2 + _local3);
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
mcannounce2.mc1.txt1.text = ("Bonus Cash + $" + _local2);
mcannounce2.gotoAndPlay(2);
so.data.money = (so.data.money + _local2);
moneycheck();
mcUIimage[0].txt3.text = ("Cash: " + so.data.money);
jumpingindex = 3;
};
} else {
if (jumpingindex == 3){
if (mcannounce2.currentFrame == mcannounce2.totalFrames){
Tpenguinjumping.stop();
stopgame2();
cleanup2();
gotoAndPlay("start game");
};
} else {
if (jumpingindex == 4){
if (mcannounce2.currentFrame == mcannounce2.totalFrames){
_local2 = (UItemp2 * 10);
_local3 = 0;
randomstep = 1;
while (randomstep <= combomax) {
_local3 = (_local3 + int((randomstep * 0.1)));
randomstep++;
};
_local2 = (_local2 + _local3);
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
mcannounce2.mc1.txt1.text = ("Bonus Cash + $" + _local2);
mcannounce2.gotoAndPlay(2);
so.data.money = (so.data.money + _local2);
moneycheck();
mcUIimage[0].txt3.text = ("Cash: " + so.data.money);
jumpingindex = 5;
};
} else {
if (jumpingindex == 5){
if (mcannounce2.currentFrame == mcannounce2.totalFrames){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
mcannounce2.mc1.txt1.text = ("Bonus Objective + $" + 5000);
mcannounce2.gotoAndPlay(2);
so.data.money = (Number(so.data.money) + 5000);
mcUIimage[0].txt3.text = ("Cash: " + so.data.money);
moneycheck();
jumpingindex = 6;
};
} else {
if (jumpingindex == 6){
if (mcannounce2.currentFrame == mcannounce2.totalFrames){
soundchannelmainmenu.stop();
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tpenguinjumping.stop();
stopgame2();
cleanup2();
gotoAndPlay("start game");
};
};
};
};
};
};
};
};
}
public function generateupcostume(){
var _local1:*;
_local1 = shopCG.getChildByName(("costume" + guc));
trace(_local1);
if (_local1 != null){
if (so.data.money >= Number((hargapenguin[guc] * 1000))){
trace(("bisadibeli ke" + guc));
_local1.mcsold.visible = false;
_local1.gotoAndStop("open-exp");
_local1 = shopCG.getChildByName(("buy" + guc));
_local1.visible = true;
} else {
trace("gbisadibeli");
_local1.mcsold.visible = false;
_local1 = shopCG.getChildByName(("buy" + guc));
_local1.visible = false;
};
};
}
public function fungsioption(){
var follower:int;
var Toption:Timer;
var option2:Function;
var Tfollow2:Timer;
var follow2:Function;
option2 = function (_arg1:TimerEvent):void{
var backtomainmenu:Function;
var defaultgame:Function;
var SFX2:Function;
var SFXup2:Function;
var BGM:Function;
var BGMup:Function;
var quality:Function;
var qualityup:Function;
var credit:Function;
var creditback:Function;
var event = _arg1;
if (mcoptionimage[0].currentFrame == mcoptionimage[0].totalFrames){
backtomainmenu = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
mcUIimage[0].visible = true;
Tfollow2.stop();
lokasiSFX = (mcoptionimage[0].btnSFX.x + 242);
lokasiBGM = (mcoptionimage[0].btnBGM.x + 242);
lokasiQuality = (mcoptionimage[0].btnquality.x + 242);
removeChild(mcoptionimage[0]);
mcoptionimage[0] = null;
mcpauseimage[0].visible = true;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
};
defaultgame = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tfollow2.stop();
mcoptionimage[0].btnSFX.x = (205 - 242);
mcoptionimage[0].btnBGM.x = (205 - 242);
mcoptionimage[0].btnquality.x = (205 - 242);
stage.quality = "high";
suaraSFX = 1;
suaraBGM = 1;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
};
SFX2 = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
follower = 1;
Tfollow2.start();
};
SFXup2 = function (_arg1:MouseEvent):void{
Tfollow2.stop();
};
BGM = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
follower = 2;
Tfollow2.start();
};
BGMup = function (_arg1:MouseEvent):void{
Tfollow2.stop();
};
quality = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
follower = 3;
Tfollow2.start();
};
qualityup = function (_arg1:MouseEvent):void{
Tfollow2.stop();
if (mcoptionimage[0].btnquality.x < (110 - 242)){
stage.quality = "low";
} else {
if (mcoptionimage[0].btnquality.x < (150 - 242)){
stage.quality = "medium";
} else {
if (mcoptionimage[0].btnquality.x < (205 - 242)){
stage.quality = "high";
};
};
};
};
credit = function (_arg1:MouseEvent):void{
medalindex = 8;
generatemedal();
mcoptionimage[0].btnBGM.visible = false;
mcoptionimage[0].btnSFX.visible = false;
mcoptionimage[0].btnquality.visible = false;
mcoptionimage[0].btncredit.visible = false;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
mcoptionimage[0].mccredit.visible = true;
mcoptionimage[0].mccredit.x = -21.3;
mcoptionimage[0].mccredit.y = 4.1;
};
creditback = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
mcoptionimage[0].btnBGM.visible = true;
mcoptionimage[0].btnSFX.visible = true;
mcoptionimage[0].btnquality.visible = true;
mcoptionimage[0].btncredit.visible = true;
mcoptionimage[0].mccredit.visible = false;
};
mcoptionimage[0].btnbacktomainmenu.visible = false;
mcoptionimage[0].btnBGM.visible = true;
mcoptionimage[0].btnSFX.visible = true;
mcoptionimage[0].btnquality.visible = true;
Toption.stop();
Toption.removeEventListener(TimerEvent.TIMER, option);
Tfollow2.stop();
mcoptionimage[0].stop();
mcoptionimage[0].btnback.addEventListener(MouseEvent.CLICK, backtomainmenu);
mcoptionimage[0].btndefault.addEventListener(MouseEvent.CLICK, defaultgame);
mcoptionimage[0].btnSFX.addEventListener(MouseEvent.MOUSE_DOWN, SFX2);
mcoptionimage[0].btnSFX.addEventListener(MouseEvent.MOUSE_UP, SFXup2);
mcoptionimage[0].btnBGM.addEventListener(MouseEvent.MOUSE_DOWN, BGM);
mcoptionimage[0].btnBGM.addEventListener(MouseEvent.MOUSE_UP, BGMup);
mcoptionimage[0].btnquality.addEventListener(MouseEvent.MOUSE_DOWN, quality);
mcoptionimage[0].btnquality.addEventListener(MouseEvent.MOUSE_UP, qualityup);
mcoptionimage[0].btncredit.addEventListener(MouseEvent.CLICK, credit);
mcoptionimage[0].mccredit.btnback.addEventListener(MouseEvent.CLICK, creditback);
};
};
follow2 = function (_arg1:TimerEvent):void{
if (follower == 1){
if ((((mcoptionimage[0].btnSFX.x < (205 - 242))) && ((mcoptionimage[0].btnSFX.x > (63 - 242))))){
mcoptionimage[0].btnSFX.x = (mouseX - 242);
if (mcoptionimage[0].btnSFX.x < (91 - 242)){
suaraSFX = 0;
} else {
if (mcoptionimage[0].btnSFX.x < (119 - 242)){
suaraSFX = 0.2;
} else {
if (mcoptionimage[0].btnSFX.x < (147 - 242)){
suaraSFX = 0.4;
} else {
if (mcoptionimage[0].btnSFX.x < (175 - 242)){
suaraSFX = 0.5;
} else {
if (mcoptionimage[0].btnSFX.x >= (175 - 242)){
suaraSFX = 1;
};
};
};
};
};
} else {
if (mcoptionimage[0].btnSFX.x >= (205 - 242)){
trace("max");
mcoptionimage[0].btnSFX.x = (195 - 242);
suaraSFX = 1;
Tfollow2.stop();
} else {
if (mcoptionimage[0].btnSFX.x <= (63 - 242)){
trace("min");
suaraSFX = 0;
mcoptionimage[0].btnSFX.x = (73 - 242);
Tfollow2.stop();
};
};
};
} else {
if (follower == 2){
if ((((mcoptionimage[0].btnBGM.x < (205 - 242))) && ((mcoptionimage[0].btnBGM.x > (63 - 242))))){
mcoptionimage[0].btnBGM.x = (mouseX - 242);
if (mcoptionimage[0].btnBGM.x < (91 - 242)){
suaraBGM = 0;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
} else {
if (mcoptionimage[0].btnBGM.x < (119 - 242)){
suaraBGM = 0.2;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
} else {
if (mcoptionimage[0].btnBGM.x < (147 - 242)){
suaraBGM = 0.4;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
} else {
if (mcoptionimage[0].btnBGM.x < (175 - 242)){
suaraBGM = 0.6;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
} else {
if (mcoptionimage[0].btnBGM.x >= (175 - 242)){
suaraBGM = 1;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
};
};
};
};
};
} else {
if (mcoptionimage[0].btnBGM.x >= (205 - 242)){
mcoptionimage[0].btnBGM.x = (195 - 242);
suaraBGM = 1;
Tfollow2.stop();
} else {
if (mcoptionimage[0].btnBGM.x <= (63 - 242)){
mcoptionimage[0].btnBGM.x = (73 - 242);
suaraBGM = 0;
Tfollow2.stop();
};
};
};
} else {
if (follower == 3){
if ((((mcoptionimage[0].btnquality.x < (205 - 242))) && ((mcoptionimage[0].btnquality.x > (63 - 242))))){
mcoptionimage[0].btnquality.x = (mouseX - 242);
} else {
if (mcoptionimage[0].btnquality.x >= (205 - 242)){
stage.quality = "high";
mcoptionimage[0].btnquality.x = (195 - 242);
Tfollow2.stop();
} else {
if (mcoptionimage[0].btnquality.x <= (63 - 242)){
stage.quality = "low";
mcoptionimage[0].btnquality.x = (73 - 242);
Tfollow2.stop();
};
};
};
};
};
};
};
mcoptionimage[0].btnbacktomainmenu.visible = false;
follower = 0;
Toption = new Timer(36);
Toption.addEventListener(TimerEvent.TIMER, option2);
Toption.start();
Tfollow2 = new Timer(10);
Tfollow2.addEventListener(TimerEvent.TIMER, follow2);
}
public function cekstephealth(){
if (step[stepindex].nostep >= 14){
step[stepindex].health--;
if (step[stepindex].health <= 0){
step[stepindex].gotoAndPlay("destroy");
soundexplosion1.play(0, 1, new SoundTransform(suaraSFX));
};
};
}
public function nogame(_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
newgameimage[0].x = -222;
newgameimage[0].y = -666;
}
public function createpauseimage2(){
var temppospause:*;
var resumegame:Function;
var btnoption:Function;
var btnexit:Function;
resumegame = function (_arg1:MouseEvent):void{
resumeingame2();
};
btnoption = function (_arg1:MouseEvent):void{
mcUIimage[0].visible = false;
createoptionimage();
mcoptionimage[0].gotoAndPlay(2);
fungsioption();
mcUIimage[0].visible = false;
generatebuttonformat2();
mcoptionimage[0].x = 251.3;
mcoptionimage[0].y = 270.9;
mcpauseimage[0].visible = false;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
};
btnexit = function (_arg1:MouseEvent):void{
soundchannelmainmenu.stop();
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
stopgame2();
cleanup2();
gotoAndStop("main menu");
};
mcpauseimage[0] = new (pausemc);
temppospause = getChildIndex(mouse);
addChildAt(mcpauseimage[0], (getChildIndex(mouse) - 1));
mcpauseimage[0].cacheAsBitmap = true;
mcpauseimage[0].x = 971;
mcpauseimage[0].y = 416;
mcpauseimage[0].btnresume.addEventListener(MouseEvent.MOUSE_DOWN, resumegame);
mcpauseimage[0].btnoption.addEventListener(MouseEvent.MOUSE_DOWN, btnoption);
mcpauseimage[0].btnexit.addEventListener(MouseEvent.MOUSE_DOWN, btnexit);
}
public function loading(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
preloader.btnplay.visible = false;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
_local4 = ((_local3 / _local2) * 100);
preloader.txtload.text = (int(_local4) + "%");
preloader.txtload2.text = (int(_local4) + "%");
if (_local3 == _local2){
gotoAndPlay("splash");
this.removeEventListener(Event.ENTER_FRAME, loading);
};
}
public function generateupcostume2(){
var _local1:*;
_local1 = score[0].shopCG.getChildByName(("costume" + guc2));
trace(_local1);
if (_local1 != null){
if (so.data.money >= Number((hargapenguin[guc2] * 1000))){
trace(("bisadibeli ke" + guc2));
_local1.mcsold.visible = false;
_local1.gotoAndStop("open-exp");
_local1 = score[0].shopCG.getChildByName(("buy" + guc2));
_local1.visible = true;
} else {
trace("gbisadibeli");
_local1.mcsold.visible = false;
_local1 = score[0].shopCG.getChildByName(("buy" + guc2));
_local1.visible = false;
};
};
}
public function loadshope2shope2(){
var _local1:*;
var _local2:*;
var _local3:*;
if (so.data.launcherselect == 0){
_local1 = 1;
while (_local1 <= 3) {
_local2 = score[0].shopCG.getChildByName(("launcher" + _local1));
_local2.mcsold.visible = false;
_local2 = score[0].shopCG.getChildByName(("buy" + Number((_local1 + 3))));
_local2.visible = false;
_local1++;
};
_local2 = score[0].shopCG.getChildByName(("launcher" + 1));
if (so.data.money >= Number(20000)){
trace(("bisadibeli ke" + _local1));
_local2.mcsold.visible = false;
_local2.gotoAndStop("open");
_local2 = score[0].shopCG.getChildByName(("buy" + 4));
_local2.visible = true;
} else {
trace("gbisadibeli");
_local2.mcsold.visible = false;
_local2 = score[0].shopCG.getChildByName(("buy" + 4));
_local2.visible = false;
};
} else {
trace("asdas");
_local1 = (so.data.launcherselect - 1);
while (_local1 >= 1) {
trace(_local1);
trace(_local2);
_local2 = score[0].shopCG.getChildByName(("launcher" + _local1));
_local2.gotoAndStop("open");
_local2.mcsold.gotoAndStop(1);
_local2 = score[0].shopCG.getChildByName(("buy" + Number((_local1 + 3))));
_local2.visible = false;
trace(temp2);
_local2 = score[0].shopCG.mcitem.getChildByName(("launcherbar" + Number(_local1)));
_local2.gotoAndStop(3);
_local2 = score[0].shopCG.getChildByName(("mc" + Number((_local1 + 3))));
_local2.txt1.visible = false;
_local1--;
};
_local1 = (so.data.launcherselect + 1);
while (_local1 <= 3) {
_local2 = score[0].shopCG.getChildByName(("launcher" + _local1));
_local2.mcsold.visible = false;
_local2 = score[0].shopCG.getChildByName(("buy" + Number((_local1 + 3))));
_local2.visible = false;
_local2 = score[0].shopCG.mcitem.getChildByName(("launcherbar" + Number(_local1)));
_local2.gotoAndStop(1);
_local1++;
};
_local2 = score[0].shopCG.mcitem.getChildByName(("launcherbar" + Number(so.data.launcherselect)));
if (so.data.launcherselect == 1){
_local2.gotoAndStop((so.data.launcher1 + 1));
_local3 = so.data.launcher1;
} else {
if (so.data.launcherselect == 2){
_local2.gotoAndStop((so.data.launcher2 + 1));
_local3 = so.data.launcher2;
} else {
if (so.data.launcherselect == 3){
_local2.gotoAndStop((so.data.launcher3 + 1));
_local3 = so.data.launcher3;
};
};
};
if (_local3 == 2){
trace(_local2);
_local2 = score[0].shopCG.getChildByName(("launcher" + so.data.launcherselect));
_local2.gotoAndStop("open");
_local2.mcsold.gotoAndStop(2);
_local2 = score[0].shopCG.getChildByName(("buy" + Number((so.data.launcherselect + 3))));
_local2.visible = false;
trace(temp2);
_local2 = score[0].shopCG.mcitem.getChildByName(("launcherbar" + Number(so.data.launcherselect)));
_local2.gotoAndStop(3);
_local2 = score[0].shopCG.getChildByName(("mc" + Number(so.data.launcherselect)));
_local2.txt1.visible = false;
_local2 = score[0].shopCG.getChildByName(("launcher" + Number((so.data.launcherselect + 1))));
if (_local2 != null){
cpl = (so.data.launcherselect + 1);
cekpricelauncher();
if (so.data.money >= Number(cplprice)){
_local2.mcsold.visible = false;
_local2.gotoAndStop("open");
_local2 = score[0].shopCG.getChildByName(("buy" + Number(((so.data.launcherselect + 3) + 1))));
_local2.visible = true;
_local2 = score[0].shopCG.getChildByName(("mc" + Number(((so.data.launcherselect + 3) + 1))));
trace(("yayaya" + cplprice));
_local2.txt1.text = (cplprice + "$");
} else {
trace("gbisadibeli");
_local2.mcsold.visible = false;
_local2 = score[0].shopCG.getChildByName(("buy" + Number(((so.data.launcherselect + 3) + 1))));
_local2.visible = false;
_local2 = score[0].shopCG.getChildByName(("mc" + Number(((so.data.launcherselect + 3) + 1))));
_local2.txt1.text = (cplprice + "$");
};
};
} else {
_local2 = score[0].shopCG.getChildByName(("launcher" + Number(so.data.launcherselect)));
cpl = so.data.launcherselect;
cekpricelauncher();
if (so.data.money >= Number(cplprice)){
_local2.mcsold.gotoAndStop(2);
_local2.gotoAndStop("open");
_local2 = score[0].shopCG.getChildByName(("buy" + Number((so.data.launcherselect + 3))));
_local2.visible = true;
_local2 = score[0].shopCG.getChildByName(("mc" + Number((so.data.launcherselect + 3))));
trace(("yayaya" + cplprice));
_local2.txt1.text = (cplprice + "$");
} else {
trace("gbisadibeli");
_local2.mcsold.visible = false;
_local2 = score[0].shopCG.getChildByName(("buy" + Number((so.data.launcherselect + 3))));
_local2.visible = false;
_local2 = score[0].shopCG.getChildByName(("mc" + Number((so.data.launcherselect + 3))));
_local2.txt1.text = (cplprice + "$");
};
};
};
}
public function arrowdown2(_arg1:MouseEvent):void{
trace("turun stop");
Tfalling.stop();
}
public function penguinfalling2T(_arg1:TimerEvent):void{
var temppospause:*;
var scoretemp:*;
var playagaingame:Function;
var event = _arg1;
if (pfstep == 0){
trace("1");
penguin[0].y = (penguin[0].y + temp2);
if (penguin[0].y > 456){
trace("2");
if (soundchannelanehaneh != null){
soundchannelanehaneh.stop();
};
pfstep = 1;
penguin[0].rotation = 0;
penguin[0].y = 429;
penguin[0].filters = null;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe2);
stage.removeEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
Tpenguinmovetime2.stop();
sounddead.play(0, 1, new SoundTransform(suaraSFX));
penguin[0].gotoAndStop("push");
};
} else {
if (pfstep == 1){
pftime = (pftime - 10);
if (pftime <= 0){
pfstep = 2;
};
} else {
if (pfstep == 2){
playagaingame = function (_arg1:MouseEvent):void{
soundchannelmainmenu.stop();
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tpenguinjumping.stop();
stopgame2();
cleanup2();
mcannouncebonus.x = 923;
mcannouncebonus.y = 217;
gotoAndPlay("start game");
};
soundboo.play(0, 1, new SoundTransform(suaraSFX));
temppospause = getChildIndex(mouse);
Tpenguinfalling2.stop();
mcannouncebonus.x = 285;
mcannouncebonus.y = 217;
scoretemp = ((int((UItemp / 2)) + (freestyletimes * 50)) + (UItemp2 * 10));
randomstep = 1;
while (randomstep <= combomax) {
scoretemp = (int(scoretemp) + int((randomstep * 0.1)));
randomstep++;
};
so.data.money = (scoretemp + so.data.money);
mcannouncebonus.txt1.text = ("$" + scoretemp);
stopgame2();
mcannouncebonus.btnplay.addEventListener(MouseEvent.CLICK, playagaingame);
};
};
};
}
public function camerabgframe(_arg1:Event):void{
var ground:*;
var tempsek:*;
var i:*;
var tempcameramoveint:*;
var tempcamera:*;
var ab:Function;
var maxrandom:*;
var minrandom:*;
var randomsack:*;
var e = _arg1;
if (cameramove == "up"){
if (cameramoveint < 0){
tempcameramoveint = Number((cameramoveint * -1));
} else {
tempcameramoveint = cameramoveint;
};
heighty = (heighty + tempcameramoveint);
if (maxheight <= heighty){
maxheight = (maxheight + tempcameramoveint);
UItemp = (UItemp + (cameramoveint / 4));
mcUIimage[0].txt1.text = ((int((UItemp.toFixed(2) * 3)) * 4) + " ft");
};
} else {
if (cameramove == "down"){
if (barujalan == false){
tempcamera = 0;
if (cameramoveint < 0){
tempcamera = (cameramoveint * -1);
};
heighty = (heighty - tempcamera);
};
};
};
if (dust[0] != null){
dust[0].y = (dust[0].y + (int((cameramoveint * 2)) * 4));
};
cb = 0;
while (cb < 2) {
if (bg[cb] != null){
bg[cb].y = (bg[cb].y + (int(cameramoveint) * 4));
};
cb++;
};
ground = 0;
if (cameramove == "down"){
cb = 0;
while (cb < 2) {
if (bg[cb] != null){
if (bg[cb].land == 0){
trace("land 0");
if (bg[cb].y <= 0){
trace("y 0");
trace("lose tru");
if (cameramoveint < 0){
temp2 = (cameramoveint * -1);
} else {
temp2 = cameramoveint;
};
bolepause = false;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
Tpenguinmovetime2.stop();
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe2);
Tpenguinfalling2.start();
if (bg[0] != null){
bg[0].y = 0;
};
trace("lageee");
removeChild(bg[1]);
bg[1] = null;
stage.removeEventListener(Event.ENTER_FRAME, camerabgframe);
Tcamerabg2.stop();
cb = 2;
bolepause = false;
};
} else {
if (bg[cb].y <= -550){
tahapbg--;
removeChild(bg[cb]);
bg[cb] = null;
if (tahapbg > 2){
bg[cb] = new (lvlbonus12mc);
bg[cb].mca.visible = false;
bg[cb].mcb.visible = false;
} else {
if (tahapbg == 2){
bg[cb] = new (lvlbonus11mc);
bg[cb].land = 0;
};
};
if (tahapbg != 1){
ab = function (_arg1:MouseEvent):void{
trace(_arg1.target);
trace(_arg1.target.indexke);
};
trace("bg1");
trace("yayay");
addChildAt(bg[cb], (getChildIndex(step[stepterakhir]) - 1));
bg[cb].cacheAsBitmap = true;
bg[cb].indexke = cb;
bg[cb].addEventListener(MouseEvent.CLICK, ab);
bg[cb].x = 0;
if (cb == 0){
bg[cb].y = 550;
if (bg[1] != null){
bg[1].y = 0;
};
} else {
bg[cb].y = 550;
if (bg[0] != null){
bg[0].y = 0;
};
};
};
};
};
};
cb++;
};
} else {
if (cameramove == "up"){
cb = 0;
while (cb < 2) {
if (bg[cb] != null){
if (bg[cb].akhir == 1){
if (bg[cb].y >= -277){
stage.removeEventListener(Event.ENTER_FRAME, camerabgframe);
Tcamerabg2.stop();
stage.removeEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
Tpenguinmovetime2.stop();
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe2);
penguin[0].targety = ((bg[cb].y + bg[cb].mca.y) - (bg[cb].mca.width / 2));
bolepause = false;
Tpenguinjumping.start();
soundwee.play(0, 1, new SoundTransform(suaraSFX));
};
} else {
if (bg[cb].y >= 550){
tahapbg++;
removeChild(bg[cb]);
bg[cb] = null;
if ((((tahapbg > 12)) && ((level == 1)))){
bg[cb] = new (lvlbonus12mc);
bg[cb].akhir = 1;
targetbg = cb;
} else {
if ((((tahapbg >= 2)) && ((level == 1)))){
medalindex = 10;
generatemedal();
bg[cb] = new (lvlbonus12mc);
bg[cb].mca.visible = false;
bg[cb].mcb.visible = false;
} else {
if ((((tahapbg == 1)) && ((level == 1)))){
bg[cb] = new (lvlbonus11mc);
};
};
};
if (tahapbg != 1){
trace("bg2");
addChildAt(bg[cb], (getChildIndex(step[stepterakhir]) - 1));
bg[cb].cacheAsBitmap = true;
bg[cb].x = 0;
if (cb == 0){
bg[cb].y = -550;
if (bg[1] != null){
bg[1].y = 0;
};
} else {
bg[cb].y = -550;
if (bg[0] != null){
bg[0].y = 0;
};
};
};
};
};
};
cb++;
};
};
};
cb = 0;
while (cb <= canmax) {
if (can[cb] != null){
if (can[cb].ok == 0){
can[cb].y = (can[cb].y + (int((cameramoveint * 2)) * 4));
if (can[cb].y > 720){
removeChild(can[cb]);
can[cb] = null;
canmaxbackup--;
};
};
};
cb++;
};
if (cameramove == "down"){
cb = 0;
while (cb < 6) {
if (step[cb] != null){
step[cb].y = (step[cb].y + (int((cameramoveint * 2)) * 4));
if (sack[cb] != null){
if (sack[cb].ok == 0){
sack[cb].y = (sack[cb].y + (int((cameramoveint * 2)) * 4));
};
};
if ((((lose == true)) && ((step[cb].y <= -250)))){
removeChild(step[cb]);
step[cb] = null;
if ((((((level == 1)) && ((tahapbg > 1)))) && ((lose == true)))){
if (tahapbg < 4){
randomstep = 0;
} else {
if ((((tahapbg > 4)) && ((tahapbg < 6)))){
randomstep = 1;
} else {
if ((((tahapbg > 6)) && ((tahapbg < 13)))){
randomstep = 2;
};
};
};
if (randomstep == 0){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 2){
step[cb] = new (lvlbonus1step1mc);
step[cb].colorvalue = "0xF4E3B3";
} else {
if (randomstep == 1){
step[cb] = new (lvlbonus1step2mc);
step[cb].colorvalue = "0xF4E3B3";
};
};
step[cb].step.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 1;
} else {
if (randomstep == 1){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 1){
step[cb] = new (lvlbonus1step4mc);
step[cb].colorvalue = "0xDB0808";
} else {
if (randomstep == 2){
step[cb] = new (lvlbonus1step5mc);
step[cb].colorvalue = "0x9923D6";
};
};
step[cb].step.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 1;
} else {
if (randomstep == 2){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 2){
step[cb] = new (lvlbonus1step6mc);
step[cb].colorvalue = "0XB88E22";
} else {
if (randomstep == 1){
step[cb] = new (lvlbonus1step3mc);
step[cb].colorvalue = "0XF2B6B0";
};
};
step[cb].step.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 1;
};
};
};
addChildAt(step[cb], (getChildIndex(penguin[0]) - 1));
step[cb].cacheAsBitmap = true;
step[cb].posisi = 0;
step[cb].x = randRange((100 + (step[cb].width / 2)), (450 - (step[cb].width / 2)));
if (stepawalbool == false){
stepawalbool = true;
step[cb].y = 550;
trace(("bwat d : " + step[cb].y));
stepawal = cb;
} else {
if (stepawalbool == true){
step[cb].y = (step[stepawal].y + stepspasi);
trace(("bwat d : " + step[cb].y));
stepawal = cb;
};
};
};
};
};
cb++;
};
} else {
if (cameramove == "up"){
cb = 0;
while (cb < 6) {
if (step[cb] != null){
step[cb].y = (step[cb].y + (int((cameramoveint * 2)) * 4));
if (sack[cb] != null){
if (sack[cb].ok == 0){
sack[cb].y = (sack[cb].y + (int((cameramoveint * 2)) * 4));
};
};
if (step[cb].y > 550){
steparrowindex = cb;
};
if ((((step[cb].y >= 750)) && ((step[cb].posisi == 0)))){
step[cb].posisi = 1;
};
if (step[cb].posisi == 1){
removeChild(step[cb]);
step[cb] = null;
if (sack[cb] != null){
if (sack[cb].ok == 0){
removeChild(sack[cb]);
sack[cb] = null;
};
};
if ((((level == 1)) && ((tahapbg < 13)))){
maxrandom = 0;
minrandom = 0;
if (tahapbg < 4){
randomstep = 0;
} else {
if ((((tahapbg > 4)) && ((tahapbg < 6)))){
randomstep = 1;
} else {
if ((((tahapbg > 6)) && ((tahapbg < 13)))){
randomstep = 2;
};
};
};
if (randomstep == 0){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 2){
step[cb] = new (lvlbonus1step1mc);
step[cb].colorvalue = "0xF4E3B3";
} else {
if (randomstep == 1){
step[cb] = new (lvlbonus1step2mc);
step[cb].colorvalue = "0xF4E3B3";
};
};
step[cb].step.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 1;
} else {
if (randomstep == 1){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 1){
step[cb] = new (lvlbonus1step4mc);
step[cb].colorvalue = "0xDB0808";
} else {
if (randomstep == 2){
step[cb] = new (lvlbonus1step5mc);
step[cb].colorvalue = "0x9923D6";
};
};
step[cb].step.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 1;
} else {
if (randomstep == 2){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 2){
step[cb] = new (lvlbonus1step6mc);
step[cb].colorvalue = "0XB88E22";
} else {
if (randomstep == 1){
step[cb] = new (lvlbonus1step3mc);
step[cb].colorvalue = "0XF2B6B0";
};
};
step[cb].step.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 1;
};
};
};
addChildAt(step[cb], (getChildIndex(penguin[0]) - 1));
step[cb].cacheAsBitmap = true;
step[cb].health;
step[cb].posisi = 0;
step[cb].x = randRange((100 + (step[cb].width / 2)), (450 - (step[cb].width / 2)));
step[cb].y = (step[stepterakhir].y - stepspasi);
step[cb].hit = 0;
stepterakhir = cb;
if (canstart == false){
canstart = true;
generatecan2();
} else {
if (canstart == true){
if (canmaxbackup < 0){
canindex = cb;
generatecan2();
};
};
};
if (tahapbg > 2){
randomsack = (Math.random() * 100);
if (randomsack < 50){
if (sack[cb] == null){
sack[cb] = new (moneysackmc);
addChildAt(sack[cb], (getChildIndex(penguin[0]) + 1));
sack[cb].cacheAsBitmap = true;
sack[cb].x = step[cb].x;
sack[cb].y = step[cb].y;
sack[cb].ok = 0;
};
};
};
};
};
};
cb++;
};
};
};
tempsek = 0;
i = 0;
while (i < 6) {
if (step[i] != null){
if (step[i].y > 550){
if (step[i].y < step[tempsek].y){
tempsek = i;
};
};
};
i = (i + 1);
};
if (step[tempsek] != null){
if (step[tempsek].y > 550){
steparrowindex = tempsek;
};
};
if (cameramove == "up"){
if (step[steparrowindex] != null){
if (step[steparrowindex].y > 550){
steparrow.visible = true;
steparrow.y = 550;
steparrow.x = step[steparrowindex].x;
};
} else {
if (step[steparrowindex] == null){
steparrow.visible = false;
};
};
} else {
if (cameramove == "down"){
if (step[steparrowindex] != null){
steparrow.x = step[steparrowindex].x;
if (step[steparrowindex].lokasiy < 550){
steparrow.visible = false;
};
};
if (lose == true){
steparrow.visible = false;
};
};
};
}
public function diamondT(_arg1:TimerEvent):void{
var _local2:*;
var _local3:Number;
_local2 = 0;
while (_local2 < diamondindex) {
if (diamond[_local2] != null){
if (diamond[_local2].currentFrame == diamond[_local2].totalFrames){
diamond[_local2].x = (diamond[_local2].x - ((diamond[_local2].x - mcUIimage[0].cangoal.x) / 50));
diamond[_local2].y = (diamond[_local2].y - ((diamond[_local2].y - mcUIimage[0].cangoal.y) / 50));
if (diamond[_local2].hitTestObject(mcUIimage[0].cangoal) == true){
soundsardines.play(0, 1, new SoundTransform(suaraSFX));
removeChild(diamond[_local2]);
diamond[_local2] = null;
_local3 = 0;
_local3 = (Number(so.data.money) + 200);
so.data.money = _local3;
mcUIimage[0].txt3.text = ("Cash: " + _local3);
moneycheck();
};
};
};
_local2++;
};
}
public function click10(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(3);
shopCG.mc10.gotoAndStop(2);
}
public function freestylekeyboard(_arg1:KeyboardEvent):void{
inputkeyboard = String.fromCharCode(_arg1.charCode);
inputkeyboard = inputkeyboard.toUpperCase();
if (inputkeyboard == freestyleimage[0].txt1.text){
soundwee.play(0, 1, new SoundTransform(suaraSFX));
soundfreestyle.play(0, 1, new SoundTransform(suaraSFX));
medalindex = 9;
generatemedal();
Tfreestyle.stop();
freestyleimage[0].txt1.visible = false;
freestyletimes++;
randomstep = randRange(1, 2);
if (randomstep == 1){
medalindex = 18;
generatemedal();
penguin[0].gotoAndPlay("dance1");
} else {
penguin[0].gotoAndPlay("dance2");
};
freestyleimage[0].gotoAndStop("success");
stage.removeEventListener(KeyboardEvent.KEY_DOWN, freestylekeyboard);
Tfreestyle.start();
} else {
if (inputkeyboard != freestyleimage[0].txt1.text){
soundboo.play(0, 1, new SoundTransform(suaraSFX));
Tfreestyle.stop();
freestyleimage[0].txt1.visible = false;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, freestylekeyboard);
Tfreestyle.start();
};
};
}
public function generatestep(){
var _local1:*;
if (level == 1){
gs = 0;
while (gs < 6) {
_local1 = 0;
if (tahapbg > 8){
_local1 = 8;
} else {
_local1 = tahapbg;
};
randomstep = randRange(0, _local1);
if (randomstep == 0){
step[gs] = new (lvl1step1mc);
step[gs].tipe = "solid";
step[gs].effect = 1;
step[gs].tesla.visible = false;
step[gs].step.visible = false;
} else {
if (randomstep == 1){
step[gs] = new (lvl1step2mc);
step[gs].tipe = "solid";
step[gs].effect = 1;
step[gs].tesla.visible = false;
step[gs].step.visible = false;
} else {
if (randomstep == 2){
step[gs] = new (lvl1step3mc);
step[gs].tipe = "solid";
step[gs].effect = 1;
step[gs].step.visible = false;
} else {
if (randomstep == 3){
step[gs] = new (lvl1step4mc);
step[gs].tipe = "solid";
step[gs].effect = 1;
step[gs].step.visible = false;
} else {
if (randomstep == 4){
step[gs] = new (lvl1step5mc);
step[gs].tipe = "breakable";
step[gs].effect = 1;
step[gs].step.visible = false;
} else {
if (randomstep == 5){
randomstep = Math.ceil((Math.random() * 3));
if (randomstep == 0){
step[gs] = new (lvl1step1mc);
step[gs].tipe = "solid";
step[gs].tesla.visible = false;
step[gs].step.visible = false;
} else {
if (randomstep == 1){
step[gs] = new (lvl1step2mc);
step[gs].tipe = "solid";
step[gs].tesla.visible = false;
step[gs].step.visible = false;
} else {
if (randomstep == 2){
step[gs] = new (lvl1step3mc);
step[gs].tipe = "solid";
step[gs].step.visible = false;
} else {
if (randomstep == 3){
step[gs] = new (lvl1step4mc);
step[gs].tipe = "solid";
step[gs].step.visible = false;
};
};
};
};
step[gs].tipe = "solid";
step[gs].effect = 2;
step[gs].arah = 1;
} else {
if (randomstep == 6){
step[gs] = new (lvl1step6mc);
step[gs].tipe = "solid";
step[gs].effect = 3;
step[gs].step.visible = false;
} else {
if (randomstep == 7){
randomstep = Math.ceil((Math.random() * 1));
if (randomstep == 0){
step[gs] = new (lvl1step1mc);
} else {
if (randomstep == 1){
step[gs] = new (lvl1step2mc);
};
};
step[gs].tesla.visible = false;
step[gs].step.visible = false;
step[gs].gotoAndStop("tesla");
step[gs].tipe = "tesla";
step[gs].effect = 1;
} else {
if (randomstep == 8){
step[gs] = new (lvl1step7mc);
step[gs].tipe = "solid";
step[gs].effect = 2;
step[gs].step.visible = false;
};
};
};
};
};
};
};
};
};
if (beggining == true){
addChildAt(step[gs], (getChildIndex(penguin[0]) - 1));
} else {
if (beggining == false){
addChildAt(step[gs], (getChildIndex(penguin[0]) - 1));
};
};
step[gs].cacheAsBitmap = true;
step[gs].posisi = 0;
step[gs].x = randRange((0 + (step[gs].width / 2)), (500 - (step[gs].width / 2)));
step[gs].hit = 0;
step[gs].y = lokasitaruh[gs];
stepterakhir = gs;
gs++;
};
};
if (beggining == true){
beggining = false;
};
}
public function generatecloud(){
gc = 0;
while (gc < 2) {
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 0){
cloud[gc] = new (cloud1mc);
} else {
if (randomstep == 1){
cloud[gc] = new (cloud2mc);
} else {
if (randomstep == 2){
cloud[gc] = new (cloud3mc);
};
};
};
addChildAt(cloud[gc], (getChildIndex(penguin[0]) + 1));
cloud[gc].cacheAsBitmap = true;
cloud[gc].posisi = 0;
cloud[gc].x = randRange((0 + (cloud[gc].width / 2)), (500 - (cloud[gc].width / 2)));
cloud[gc].y = randRange(0, -550);
gc++;
};
}
public function sackmovement(){
var sackmovementremover:Function;
sackmovementremover = function (_arg1:Event):void{
var _local2:*;
var _local3:Number;
_arg1.target.x = (_arg1.target.x - ((_arg1.target.posisix - _arg1.target.targetx) / 10));
_arg1.target.y = (_arg1.target.y - ((_arg1.target.posisiy - _arg1.target.targety) / 10));
if (_arg1.target.hitTestObject(mcUIimage[0].cangoal) == true){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
_local2 = _arg1.target;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, sackmovementremover);
sack[_local2.indexke] = null;
_local2 = null;
_local3 = 0;
_local3 = (so.data.money + 100);
so.data.money = _local3;
mcUIimage[0].txt3.text = ("Cash: " + _local3);
moneycheck();
};
};
sack[sackmovementindex].posisix = sack[sackmovementindex].x;
sack[sackmovementindex].posisiy = sack[sackmovementindex].y;
sack[sackmovementindex].targetx = 64;
sack[sackmovementindex].targety = 552;
sack[sackmovementindex].gotoAndPlay("rotate");
sack[sackmovementindex].indexke = sackmovementindex;
sack[sackmovementindex].ok = 1;
sack[sackmovementindex].addEventListener(Event.ENTER_FRAME, sackmovementremover);
}
public function out10(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = false;
shopCG.mc10.gotoAndStop(1);
}
public function btnlauncher(_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
if (shopCG.currentLabel == "costume"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
shopCG.gotoAndPlay("tolauncher");
} else {
if (shopCG.currentLabel == "item"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
shopCG.gotoAndPlay("tolauncher2");
};
};
}
public function backtomainmenu(_arg1:MouseEvent):void{
lagumaenmenu = false;
soundchannelmainmenu.stop();
soundslide.play(0, 1, new SoundTransform(suaraSFX));
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
if ((((((shopCG.currentLabel == "launcher")) || ((shopCG.currentLabel == "costume")))) || ((shopCG.currentLabel == "item")))){
gotoAndStop("main menu");
};
}
public function generatecan(){
var _local1:*;
_local1 = 0;
canmax = randRange(1, 6);
canmaxbackup = canmax;
gca = 0;
while (gca <= canmax) {
can[gca] = new (canmc);
addChildAt(can[gca], (getChildIndex(penguin[0]) + 1));
can[gca].cacheAsBitmap = true;
if (gca == 0){
can[gca].x = randRange(29, 473);
can[gca].y = 0;
can[gca].step.visible = false;
can[gca].ok = 0;
_local1 = gca;
} else {
can[gca].x = randRange((can[_local1].x - 50), (can[_local1].x + 50));
if (can[gca].x < 29){
can[gca].x = 29;
} else {
if (can[gca].x > 473){
can[gca].x = 473;
};
};
can[gca].y = (can[_local1].y - 50);
can[gca].step.visible = false;
can[gca].ok = 0;
_local1 = gca;
};
gca++;
};
}
public function generateopening(){
if (temptahapbg == 0){
comboke = 0;
soundchannelmainmenu.stop();
soundchannelmainmenu = soundnorthpole.play(0, 999, new SoundTransform(suaraBGM));
bg[0] = new (lvl11mc);
addChildAt(bg[0], (getChildIndex(mcUIimage[0]) - 1));
bg[0].cacheAsBitmap = true;
bg[0].x = 0;
bg[0].y = 0;
bg[0].land = 0;
indexshakey = 0;
shakeybool = false;
baseground();
bg[1] = new (lvl12mc);
addChildAt(bg[1], (getChildIndex(mcUIimage[0]) - 1));
bg[1].cacheAsBitmap = true;
bg[1].x = 0;
bg[1].y = 550;
cameramove = "down";
cameramoveint = -10000;
stage.addEventListener(Event.ENTER_FRAME, Ttes2);
mcannounce2.mc1.txt1.text = "North Pole";
mcannounce2.gotoAndPlay(2);
} else {
comboke = combotemp;
trace(("COMBO KE : " + comboke));
soundchannelmainmenu.stop();
soundchannelmainmenu = soundnorthpole.play(0, 999, new SoundTransform(suaraBGM));
if (so.data.bonusgame <= 0){
medalindex = 11;
generatemedal();
};
cameramove = "up";
saljugerak = true;
stage.addEventListener(Event.ENTER_FRAME, Ttes2);
mcUIimage[0].txt1.text = (tempUItemp * 3);
tahapbg = temptahapbg;
mcUIimage[0].txt2.text = ("x " + cantemp);
UItemp2 = cantemp;
bg[0] = new (bglist[temptahapbg]);
addChildAt(bg[0], (getChildIndex(mcUIimage[0]) - 1));
bg[0].cacheAsBitmap = true;
bg[0].x = 0;
bg[0].y = 0;
if ((((((bg[0] == "[object lvl43mc]")) || ((bg[0] == "[object lvl44mc]")))) || ((bg[0] == "[object lvl46mc]")))){
indexbg = 0;
randomalien();
};
bg[1] = new (bglist[(temptahapbg - 1)]);
addChildAt(bg[1], (getChildIndex(mcUIimage[0]) - 1));
bg[1].cacheAsBitmap = true;
bg[1].x = 0;
bg[1].y = 550;
if (so.data.costumeselect == 3){
penguin[0] = new (penguinsupermc);
penguinbaju = 3;
so.data.speed = 10;
} else {
if (so.data.costumeselect == 2){
penguin[0] = new (penguinflymc);
penguinbaju = 2;
so.data.speed = 8;
} else {
if (so.data.costumeselect == 1){
penguin[0] = new (penguinbunnymc);
penguinbaju = 1;
so.data.speed = 7;
} else {
if (so.data.costumeselect == 0){
penguin[0] = new (penguinmc);
penguinbaju = 0;
so.data.speed = 5;
};
};
};
};
addChildAt(penguin[0], (getChildIndex(mcUIimage[0]) - 1));
penguin[0].cacheAsBitmap = true;
penguin[0].foot.visible = false;
penguin[0].visible = true;
penguin[0].gotoAndStop("stand");
if ((((((bg[1] == "[object lvl43mc]")) || ((bg[1] == "[object lvl44mc]")))) || ((bg[1] == "[object lvl46mc]")))){
indexbg = 1;
randomalien();
};
generateopeningspecial();
};
}
public function loadshope2(){
var _local1:*;
var _local2:*;
var _local3:*;
shopCG.mcitem.number1.text = ("Qty." + so.data.tramp);
shopCG.mcitem.level1.gotoAndStop(int((so.data.percentagegrenade / 5)));
shopCG.mcitem.level2.gotoAndStop(int((so.data.percentagesack / 5)));
shopCG.mcitem.level3.gotoAndStop(int((so.data.magnet / 75)));
if (so.data.percentagegrenade >= 20){
shopCG.mcitem.mcsold1.visible = true;
} else {
shopCG.mcitem.mcsold1.visible = false;
};
if (so.data.percentagesack >= 20){
shopCG.mcitem.mcsold2.visible = true;
} else {
shopCG.mcitem.mcsold2.visible = false;
};
if (so.data.magnet >= 300){
shopCG.mcitem.mcsold3.visible = true;
} else {
shopCG.mcitem.mcsold3.visible = false;
};
if (so.data.percentagegrenade >= 20){
shopCG.buy8.visible = false;
};
if (so.data.percentagesack >= 20){
shopCG.buy9.visible = false;
};
if (so.data.magnet >= 300){
shopCG.buy10.visible = false;
};
if (so.data.launcherselect == 0){
_local1 = 1;
while (_local1 <= 3) {
_local2 = shopCG.getChildByName(("launcher" + _local1));
_local2.mcsold.visible = false;
_local2 = shopCG.getChildByName(("buy" + Number((_local1 + 3))));
_local2.visible = false;
_local1++;
};
_local2 = shopCG.getChildByName(("launcher" + 1));
if (so.data.money >= Number(20000)){
trace(("bisadibeli ke" + _local1));
_local2.mcsold.visible = false;
_local2.gotoAndStop("open");
_local2 = shopCG.getChildByName(("buy" + 4));
_local2.visible = true;
} else {
trace("gbisadibeli");
_local2.mcsold.visible = false;
_local2 = shopCG.getChildByName(("buy" + 4));
_local2.visible = false;
};
} else {
_local1 = (so.data.launcherselect - 1);
while (_local1 >= 1) {
trace(_local2);
_local2 = shopCG.getChildByName(("launcher" + _local1));
_local2.gotoAndStop("open");
_local2.mcsold.gotoAndStop(1);
_local2 = shopCG.getChildByName(("buy" + Number((_local1 + 3))));
_local2.visible = false;
trace(temp2);
_local2 = shopCG.mcitem.getChildByName(("launcherbar" + Number(_local1)));
_local2.gotoAndStop(3);
_local2 = shopCG.getChildByName(("mc" + Number((_local1 + 3))));
_local2.txt1.visible = false;
_local1--;
};
_local1 = (so.data.launcherselect + 1);
while (_local1 <= 3) {
_local2 = shopCG.getChildByName(("launcher" + _local1));
_local2.mcsold.visible = false;
_local2 = shopCG.getChildByName(("buy" + Number((_local1 + 3))));
_local2.visible = false;
_local2 = shopCG.mcitem.getChildByName(("launcherbar" + Number(_local1)));
_local2.gotoAndStop(1);
_local1++;
};
_local2 = shopCG.mcitem.getChildByName(("launcherbar" + Number(so.data.launcherselect)));
if (so.data.launcherselect == 1){
_local2.gotoAndStop((so.data.launcher1 + 1));
_local3 = so.data.launcher1;
} else {
if (so.data.launcherselect == 2){
_local2.gotoAndStop((so.data.launcher2 + 1));
_local3 = so.data.launcher2;
} else {
if (so.data.launcherselect == 3){
_local2.gotoAndStop((so.data.launcher3 + 1));
_local3 = so.data.launcher3;
};
};
};
if (_local3 == 2){
trace(_local2);
_local2 = shopCG.getChildByName(("launcher" + so.data.launcherselect));
_local2.gotoAndStop("open");
_local2.mcsold.gotoAndStop(2);
_local2 = shopCG.getChildByName(("buy" + Number((so.data.launcherselect + 3))));
_local2.visible = false;
trace(temp2);
_local2 = shopCG.mcitem.getChildByName(("launcherbar" + Number(so.data.launcherselect)));
_local2.gotoAndStop(3);
_local2 = shopCG.getChildByName(("mc" + Number((so.data.launcherselect + 3))));
_local2.txt1.visible = false;
_local2 = shopCG.getChildByName(("launcher" + Number((so.data.launcherselect + 1))));
if (_local2 != null){
cpl = (so.data.launcherselect + 1);
cekpricelauncher();
if (so.data.money >= Number(cplprice)){
_local2.mcsold.visible = false;
_local2.gotoAndStop("open");
_local2 = shopCG.getChildByName(("buy" + Number(((so.data.launcherselect + 3) + 1))));
_local2.visible = true;
_local2 = shopCG.getChildByName(("mc" + Number(((so.data.launcherselect + 3) + 1))));
trace(("yayaya" + cplprice));
_local2.txt1.text = (("$" + cplprice) + "K");
} else {
trace("gbisadibeli");
_local2.mcsold.visible = false;
_local2 = shopCG.getChildByName(("buy" + Number(((so.data.launcherselect + 3) + 1))));
_local2.visible = false;
_local2 = shopCG.getChildByName(("mc" + Number(((so.data.launcherselect + 3) + 1))));
_local2.txt1.text = (("$" + cplprice) + "K");
};
};
} else {
_local2 = shopCG.getChildByName(("launcher" + Number(so.data.launcherselect)));
cpl = so.data.launcherselect;
cekpricelauncher();
if (so.data.money >= Number(cplprice)){
_local2.mcsold.gotoAndStop(2);
_local2.gotoAndStop("open");
_local2 = shopCG.getChildByName(("buy" + Number((so.data.launcherselect + 3))));
_local2.visible = true;
_local2 = shopCG.getChildByName(("mc" + Number((so.data.launcherselect + 3))));
trace(("yayaya" + cplprice));
_local2.txt1.text = (("$" + cplprice) + "K");
} else {
trace("gbisadibeli");
_local2.mcsold.visible = false;
_local2 = shopCG.getChildByName(("buy" + Number((so.data.launcherselect + 3))));
_local2.visible = false;
_local2 = shopCG.getChildByName(("mc" + Number((so.data.launcherselect + 3))));
_local2.txt1.text = (("$" + cplprice) + "K");
};
};
};
}
public function stepanimation(_arg1:TimerEvent):void{
sa = 0;
while (sa < 6) {
if (step[sa] != null){
if (step[sa].effect == 2){
if (step[sa].arah == 1){
step[sa].x = (step[sa].x + step[sa].speed);
if (step[sa].x >= 500){
step[sa].arah = 0;
};
if (grenade[sa] != null){
grenade[sa].x = (grenade[sa].x + step[sa].speed);
};
if (sack[sa] != null){
if (sack[sa].ok == 0){
sack[sa].x = (sack[sa].x + step[sa].speed);
};
};
if (warpdoor[sa] != null){
warpdoor[sa].x = (warpdoor[sa].x + step[sa].speed);
};
} else {
if (step[sa].arah == 0){
step[sa].x = (step[sa].x - step[sa].speed);
if (step[sa].x <= 0){
step[sa].arah = 1;
};
if (grenade[sa] != null){
grenade[sa].x = (grenade[sa].x - step[sa].speed);
};
if (sack[sa] != null){
if (sack[sa].ok == 0){
sack[sa].x = (sack[sa].x - step[sa].speed);
};
};
if (warpdoor[sa] != null){
warpdoor[sa].x = (warpdoor[sa].x - step[sa].speed);
};
};
};
};
};
sa++;
};
if (step[98] != null){
if (step[98].stat == "fly"){
if (step[98].effect == 2){
if (step[98].arah == 1){
step[98].x = (step[98].x + step[98].speed);
if (step[98].x >= 500){
step[98].arah = 0;
step[98].gotoAndPlay("left");
};
} else {
if (step[98].arah == 0){
step[98].x = (step[98].x - step[98].speed);
if (step[98].x <= 0){
step[98].arah = 1;
step[98].gotoAndPlay("right");
};
};
};
};
};
};
}
public function buy1(_arg1:MouseEvent):void{
if ((((so.data.money >= 10000)) && ((so.data.costume1 == 0)))){
medalindex = 4;
generatemedal();
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.speed = 7;
so.data.costumeselect = 1;
so.data.money = (so.data.money - 10000);
shopCG.txt1.text = so.data.money;
shopCG.costume1.mcsold.gotoAndStop(2);
shopCG.costume1.mcsold.visible = true;
so.data.costumeselect = 1;
shopCG.buy1.visible = false;
trace("error");
shopCG.mc1.txt1.visible = false;
trace("error2");
guc = 2;
generateupcostume();
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function buy3(_arg1:MouseEvent):void{
if ((((so.data.money >= 70000)) && ((so.data.costume3 == 0)))){
medalindex = 6;
generatemedal();
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.speed = 10;
so.data.costume3 = 1;
so.data.money = (so.data.money - 70000);
shopCG.txt1.text = so.data.money;
shopCG.costume3.mcsold.gotoAndStop(2);
shopCG.costume3.mcsold.visible = true;
so.data.costumeselect = 3;
shopCG.buy3.visible = false;
shopCG.mc3.txt1.visible = false;
shopCG.costume1.mcsold.gotoAndStop(1);
shopCG.costume2.mcsold.gotoAndStop(1);
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function buy4(_arg1:MouseEvent):void{
if (so.data.launcher1 < 2){
if (so.data.launcher1 == 0){
if (so.data.money >= 20000){
medalindex = 26;
generatemedal();
so.data.money = (so.data.money - 20000);
shopCG.mc4.txt1.text = "$15K";
so.data.launcher1++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
shopCG.txt1.text = so.data.money;
shopCG.mcitem.launcherbar1.gotoAndStop((so.data.launcher1 + 1));
shopCG.launcher1.mcsold.gotoAndStop(2);
shopCG.launcher1.mcsold.visible = true;
so.data.launcherselect = 1;
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
} else {
if (so.data.launcher1 == 1){
if (so.data.money >= 15000){
so.data.money = (so.data.money - 15000);
shopCG.launcher1.mcsold.visible = true;
shopCG.launcher1.mcsold.gotoAndStop(2);
shopCG.buy4.visible = false;
so.data.launcher1++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
shopCG.txt1.text = so.data.money;
shopCG.mcitem.launcherbar1.gotoAndStop((so.data.launcher1 + 1));
shopCG.launcher1.mcsold.gotoAndStop(2);
shopCG.launcher1.mcsold.visible = true;
shopCG.mc4.txt1.visible = false;
so.data.launcherselect = 1;
gul = 2;
hargagul = 40;
generateuplauncher();
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function buy5(_arg1:MouseEvent):void{
if (so.data.launcher2 < 2){
if (so.data.launcher2 == 0){
if (so.data.money >= 40000){
shopCG.launcher1.mcsold.gotoAndStop(1);
medalindex = 27;
generatemedal();
so.data.money = (so.data.money - 40000);
shopCG.mc5.txt1.text = "$30K";
so.data.launcher2++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
shopCG.txt1.text = so.data.money;
shopCG.mcitem.launcherbar2.gotoAndStop((so.data.launcher2 + 1));
shopCG.launcher2.mcsold.gotoAndStop(2);
shopCG.launcher2.mcsold.visible = true;
so.data.launcherselect = 2;
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
} else {
if (so.data.launcher2 == 1){
if (so.data.money >= 30000){
so.data.money = (so.data.money - 30000);
shopCG.launcher2.mcsold.visible = true;
shopCG.launcher2.mcsold.gotoAndStop(2);
shopCG.buy5.visible = false;
so.data.launcher2++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
shopCG.txt1.text = so.data.money;
shopCG.mcitem.launcherbar2.gotoAndStop((so.data.launcher2 + 1));
shopCG.launcher2.mcsold.gotoAndStop(2);
shopCG.launcher2.mcsold.visible = true;
shopCG.mc5.txt1.visible = false;
so.data.launcherselect = 2;
gul = 3;
hargagul = 85;
generateuplauncher();
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function generateuplauncher(){
var _local1:*;
_local1 = shopCG.getChildByName(("launcher" + gul));
trace(_local1);
if (_local1 != null){
if (so.data.money >= Number((hargagul * 1000))){
_local1.mcsold.visible = false;
_local1.gotoAndStop("open");
_local1 = shopCG.getChildByName(("buy" + Number((gul + 3))));
_local1.visible = true;
} else {
trace("gbisadibeli");
_local1.mcsold.visible = false;
_local1 = shopCG.getChildByName(("buy" + i));
_local1.visible = false;
};
};
}
public function conGF2(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesfree.com");
navigateToURL(_local2);
}
public function buy8(_arg1:MouseEvent):void{
if ((((so.data.money >= 5000)) && ((so.data.percentagegrenade < 20)))){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.percentagegrenade = (so.data.percentagegrenade + 5);
so.data.money = (so.data.money - 5000);
shopCG.txt1.text = so.data.money;
shopCG.mcitem.level1.nextFrame();
if (so.data.percentagegrenade >= 20){
shopCG.mcitem.mcsold1.visible = true;
shopCG.buy8.visible = false;
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function buy9(_arg1:MouseEvent):void{
if ((((so.data.money >= 7000)) && ((so.data.percentagesack < 20)))){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.percentagesack = (so.data.percentagesack + 5);
so.data.money = (so.data.money - 7000);
shopCG.txt1.text = so.data.money;
shopCG.mcitem.level2.nextFrame();
if (so.data.percentagesack >= 20){
shopCG.mcitem.mcsold2.visible = true;
shopCG.buy9.visible = false;
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function buy6(_arg1:MouseEvent):void{
if (so.data.launcher3 < 2){
if (so.data.launcher3 == 0){
if (so.data.money >= 85000){
shopCG.launcher1.mcsold.gotoAndStop(1);
shopCG.launcher2.mcsold.gotoAndStop(1);
medalindex = 28;
generatemedal();
so.data.money = (so.data.money - 85000);
shopCG.mc6.txt1.text = "$80K";
so.data.launcher3++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
shopCG.txt1.text = so.data.money;
shopCG.mcitem.launcherbar3.gotoAndStop((so.data.launcher3 + 1));
shopCG.launcher3.mcsold.gotoAndStop(2);
shopCG.launcher3.mcsold.visible = true;
so.data.launcherselect = 3;
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
} else {
if (so.data.launcher3 == 1){
if (so.data.money >= 80000){
so.data.money = (so.data.money - 80000);
shopCG.launcher3.mcsold.visible = true;
shopCG.launcher3.mcsold.gotoAndStop(2);
shopCG.buy6.visible = false;
so.data.launcher3++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
shopCG.txt1.text = so.data.money;
shopCG.mcitem.launcherbar3.gotoAndStop((so.data.launcher3 + 1));
shopCG.launcher3.mcsold.gotoAndStop(2);
shopCG.launcher3.mcsold.visible = true;
shopCG.mc6.txt1.visible = true;
so.data.launcherselect = 3;
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function conGF4(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesfree.com");
navigateToURL(_local2);
}
public function buy2(_arg1:MouseEvent):void{
if ((((so.data.money >= 30000)) && ((so.data.costume2 == 0)))){
medalindex = 5;
generatemedal();
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.speed = 8;
so.data.costume2 = 1;
so.data.money = (so.data.money - 30000);
shopCG.txt1.text = so.data.money;
shopCG.costume2.mcsold.gotoAndStop(2);
shopCG.costume2.mcsold.visible = true;
so.data.costumeselect = 2;
shopCG.buy2.visible = false;
shopCG.mc2.txt1.visible = false;
guc = 3;
generateupcostume();
shopCG.costume1.mcsold.gotoAndStop(1);
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function penguinmovetimeframe(_arg1:Event):void{
penguinblur();
if (cameramove == "up"){
if (cameramoveint >= 0){
cameramoveint = (cameramoveint - frametes);
} else {
if (cameramoveint < 0){
penguinstat = "flydown";
penguin[0].gotoAndPlay("flydown");
penguin[0].rotation = 0;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
Tpenguinmovetime2.stop();
Tpenguinmovetime2.reset();
stage.addEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
cameramove = "down";
};
};
} else {
if (cameramove == "down"){
trace(penguinrangey);
if (barujalan == true){
barujalan = false;
penguinrangey = 5;
};
if (penguinrangey >= 0){
penguinrangey = (penguinrangey - frametes);
cameramoveint = (cameramoveint - frametes);
} else {
if (penguinrangey < 0){
if (fallingsoundbool == false){
fallingsoundbool = true;
if (soundchannelanehaneh != null){
soundchannelanehaneh.stop();
};
bolepause = false;
soundchannelanehaneh = soundfalling.play(0, 1, new SoundTransform(suaraSFX));
};
bolepause = false;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
Tpenguinmovetime2.stop();
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe2);
cameramoveint = (cameramoveint - 2);
if (cameramoveint < -100){
cameramoveint = -100;
};
penguin[0].rotation = (penguin[0].rotation + (putey * frametes));
if (putey < 100){
putey = (putey + (4 * frametes));
};
lose = true;
trace("LOSE");
cameramove = "down";
};
};
};
};
}
public function falling(_arg1:TimerEvent):void{
if (galleryCG.gallerybg.y > -345){
btnarrow2.visible = true;
galleryCG.gallerybg.y = (galleryCG.gallerybg.y - 3);
i = 1;
while (i <= 30) {
trophy[i].y = (trophy[i].y - 3);
i++;
};
} else {
if (galleryCG.gallerybg.y < -344){
Tfalling.stop();
btnarrow2.visible = true;
btnarrow.visible = false;
};
};
}
public function buy7(_arg1:MouseEvent):void{
if (so.data.money >= 5000){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.tramp = (so.data.tramp + 1);
so.data.money = (so.data.money - 5000);
shopCG.txt1.text = so.data.money;
shopCG.mcitem.number1.text = ("Qty." + so.data.tramp);
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function flying(_arg1:TimerEvent):void{
if (galleryCG.gallerybg.y < 0){
btnarrow.visible = true;
galleryCG.gallerybg.y = (galleryCG.gallerybg.y + 3);
i = 1;
while (i <= 30) {
trophy[i].y = (trophy[i].y + 3);
i++;
};
} else {
if (galleryCG.gallerybg.y >= 0){
Tflying.stop();
btnarrow2.visible = false;
btnarrow.visible = true;
};
};
}
public function playtutorial(_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
soundchannelmainmenu.stop();
gotoAndStop("start game");
}
public function generatemedal(){
var _local1:*;
var _local2:*;
var _local3:Number;
if (so.data.thropy[medalindex] == 0){
mcannounce.mc1.mc1.visible = true;
mcannounce.mc1.thropy1.visible = true;
mcannounce.mc1.thropy1.gotoAndStop(medalindex);
soundfreestyle.play(0, 1, new SoundTransform(suaraSFX));
mcannounce.mc1.txt1.text = (medalannounce[medalindex] + " thropy gained!");
mcannounce.gotoAndPlay(2);
so.data.thropy[medalindex] = 1;
if ((((lokasigame == "SG")) || ((lokasigame == "BG")))){
generatediamond();
} else {
trace("g mngkg");
_local3 = 0;
_local3 = (Number(so.data.money) + 200);
so.data.money = _local3;
if (so.data.money > 10000){
medalindex = 19;
generatemedal();
} else {
if (so.data.money > 50000){
medalindex = 20;
generatemedal();
} else {
if (so.data.money > 100000){
medalindex = 21;
generatemedal();
} else {
if (so.data.money > 150000){
medalindex = 22;
generatemedal();
};
};
};
};
};
_local1 = 0;
_local2 = 0;
_local1 = 1;
while (_local1 <= 30) {
if (so.data.thropy[_local1] == 1){
_local2++;
};
_local1++;
};
if (_local2 == 29){
medalindex = 30;
generatemedal();
};
};
}
public function out1(_arg1:MouseEvent):void{
trace("ILANG");
shopCG.mcbaloon.visible = false;
shopCG.mc1.gotoAndStop(1);
}
public function out2(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = false;
shopCG.mc2.gotoAndStop(1);
}
public function out3(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = false;
shopCG.mc3.gotoAndStop(1);
}
public function out4(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = false;
shopCG.mc4.gotoAndStop(1);
}
public function out5(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = false;
shopCG.mc5.gotoAndStop(1);
}
public function out7(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = false;
shopCG.mc7.gotoAndStop(1);
}
public function out8(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = false;
shopCG.mc8.gotoAndStop(1);
}
public function out9(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = false;
shopCG.mc9.gotoAndStop(1);
}
public function out6(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = false;
shopCG.mc6.gotoAndStop(1);
}
public function Ttes2(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
if (cameramove == "up"){
if (cameramoveint < 0){
_local3 = Number((cameramoveint * -1));
} else {
_local3 = cameramoveint;
};
heighty = (heighty + _local3);
if ((((tahapbg > 43)) && ((maxgamesheight == 0)))){
maxgamesheight = UItemp;
} else {
if ((((tahapbg > 43)) && (!((maxgamesheight == 0))))){
if (UItemp > (maxgamesheight + 5000)){
maxgamesheight = UItemp;
maxgames = (maxgames + 1);
trace("tambah stngh");
};
};
};
if (maxheight <= heighty){
maxheight = (maxheight + _local3);
UItemp = (UItemp + ((cameramoveint / 4) * framecomparison));
if (UItemp < 0){
UItemp = 0;
};
mcUIimage[0].txt1.text = (int((UItemp.toFixed(2) * 3)) + " ft");
};
if ((((((((UItemp > so.data.best)) && ((bestheighton == false)))) && ((temptahapbg == 0)))) && ((so.data.daye >= 2)))){
so.data.best = UItemp;
bestheighton = true;
bestheight.visible = true;
bestheight.x = 222;
bestheight.y = -20;
};
} else {
if (cameramove == "down"){
if (barujalan == false){
_local4 = 0;
if (cameramoveint < 0){
_local4 = (cameramoveint * -1);
};
heighty = (heighty - _local4);
};
};
};
if ((((bestheighton == true)) && ((bestheight.y < 600)))){
bestheight.y = (bestheight.y + ((cameramoveint * 2) * framecomparison));
if (bestheight.y > 550){
bestheight.visible = false;
};
};
if (step[99] != null){
if (cameramove == "up"){
step[99].y = (step[99].y + ((cameramoveint * 2) * framecomparison));
if (trampolinbackup[0] != null){
trampolinbackup[0].y = step[trampoindex].y;
};
if (step[99].y >= 550){
step[99].stop();
removeChild(step[99]);
step[99] = null;
};
};
};
if (step[98] != null){
step[98].y = (step[98].y + ((cameramoveint * 2) * framecomparison));
if (step[98].y >= 778){
step[98].stop();
removeChild(step[98]);
step[98] = null;
};
};
if (dust[0] != null){
dust[0].y = (dust[0].y + ((cameramoveint * 2) * framecomparison));
};
cb = 0;
while (cb < ufoindex) {
if (ufo[cb] != null){
if ((((cameramoveint > ufo[cb].chasespeed)) || ((lose == true)))){
ufo[cb].y = (ufo[cb].y + ((cameramoveint / 2) * framecomparison));
};
};
if (ufobullet[cb] != null){
ufobullet[cb].y = (ufobullet[cb].y + ((cameramoveint * 2) * framecomparison));
};
cb++;
};
if (launcher[0] != null){
if (tipelauncher != 4){
if (tahapbg < 9){
launcher[0].y = (launcher[0].y + ((cameramoveint / 2) * framecomparison));
} else {
launcher[0].y = (launcher[0].y + ((cameramoveint / 4) * framecomparison));
};
};
};
if ((((((tahapbg > 2)) && ((level == 1)))) && (!((launcher[0] == null))))){
if (tipelauncher != 4){
dilauncher = false;
bolepause = true;
Tswappenguinlauncher.stop();
stage.addEventListener(Event.ENTER_FRAME, Ttes);
stage.addEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
penguin[0].visible = true;
removeChild(launcher[0]);
launcher[0] = null;
};
};
cb = 0;
while (cb < 2) {
if (bg[cb] != null){
if (tahapbg < 9){
bg[cb].y = (bg[cb].y + ((cameramoveint / 2) * framecomparison));
if (bg[0].y > bg[1].y){
bg[1].y = (bg[0].y - 549);
} else {
if (bg[1].y > bg[0].y){
bg[0].y = (bg[1].y - 549);
};
};
} else {
bg[cb].y = (bg[cb].y + ((cameramoveint / 4) * framecomparison));
if (bg[0].y > bg[1].y){
bg[1].y = (bg[0].y - 549);
} else {
if (bg[1].y > bg[0].y){
bg[0].y = (bg[1].y - 549);
};
};
};
};
cb++;
};
if (saljugerak == true){
se = 0;
while (se < maxsnow) {
if (seasoneffect[se] != null){
if (seasoneffect[se].hit == "false"){
seasoneffect[se].x = (seasoneffect[se].x + (randRange(-0.5, 0.5) * framecomparison));
seasoneffect[se].y = (seasoneffect[se].y + (2 * framecomparison));
seasoneffect[se].y = (seasoneffect[se].y + (int((cameramoveint * 2)) * framecomparison));
};
};
se++;
};
cb = 0;
while (cb < maxsnow) {
if (seasoneffect[cb] != null){
if (seasoneffect[cb].hit == "false"){
seasoneffect[cb].y = (seasoneffect[cb].y + (2 * framecomparison));
};
};
cb++;
};
};
if ((((((cameramove == "down")) && ((lose == true)))) && ((saljugerak == true)))){
cb = 0;
while (cb < maxsnow) {
if (seasoneffect[cb] != null){
if (seasoneffect[cb].hit == "false"){
if (seasoneffect[cb].hitTestObject(penguin[0]) == true){
seasoneffect[cb].hit = "true";
seasoneffect[cb].gotoAndPlay(2);
} else {
if (seasoneffect[cb].y < 0){
seasoneffect[cb].hit = "false";
seasoneffect[cb].gotoAndStop(1);
seasoneffect[cb].y = randRange(550, 1100);
};
};
} else {
if (seasoneffect[cb].hit == "true"){
if (seasoneffect[cb].currentFrame == seasoneffect[cb].totalFrames){
seasoneffect[cb].hit = "false";
seasoneffect[cb].gotoAndStop(1);
seasoneffect[cb].y = randRange(550, 1100);
};
};
};
} else {
if ((((seasoneffect[cb] == null)) && ((lose == true)))){
if ((((((tahapbg < 10)) && ((begginingrecharge == false)))) && ((launcher[0] == null)))){
seasoneffect[cb] = new (snowmc);
addChildAt(seasoneffect[cb], (getChildIndex(penguin[0]) + 1));
seasoneffect[cb].hit = "false";
seasoneffect[cb].x = (Math.random() * 500);
seasoneffect[cb].y = (cb * 13);
seasoneffect[cb].width = randRange(5, 11);
seasoneffect[cb].height = seasoneffect[cb].width;
};
};
};
cb++;
};
} else {
if ((((cameramove == "up")) && ((saljugerak == true)))){
cb = 0;
while (cb < maxsnow) {
if (seasoneffect[cb] != null){
if (seasoneffect[cb].hit == "false"){
if (seasoneffect[cb].hitTestObject(penguin[0]) == true){
seasoneffect[cb].hit = "true";
seasoneffect[cb].gotoAndPlay(2);
} else {
if (seasoneffect[cb].y > 550){
if (tahapbg < 9){
seasoneffect[cb].hit = "false";
seasoneffect[cb].gotoAndStop(1);
seasoneffect[cb].y = (seasoneffect[snowterakhir].y - 13);
snowterakhir = cb;
} else {
removeChild(seasoneffect[cb]);
seasoneffect[cb] = null;
};
};
};
} else {
if (seasoneffect[cb].hit == "true"){
if (seasoneffect[cb].currentFrame == seasoneffect[cb].totalFrames){
if (tahapbg < 9){
seasoneffect[cb].hit = "false";
seasoneffect[cb].gotoAndStop(1);
seasoneffect[cb].y = (seasoneffect[snowterakhir].y - 13);
snowterakhir = cb;
} else {
removeChild(seasoneffect[cb]);
seasoneffect[cb] = null;
};
};
};
};
};
cb++;
};
};
};
if ((((((((tahapbg < 9)) && ((tahapbg > 2)))) && ((launcherbool == false)))) && ((begginingrecharge == false)))){
launcherbool = true;
generatecloud();
};
if (cameramove == "down"){
cb = 0;
while (cb < 2) {
if (cloud[cb] != null){
cloud[cb].y = (cloud[cb].y + (int((cameramoveint * 2)) * framecomparison));
if ((((cloud[cb].y <= (-100 - cloud[cb].height))) && ((cloud[cb].posisi == 0)))){
cloud[cb].posisi = 1;
};
if (cloud[cb].posisi == 1){
removeChild(cloud[cb]);
cloud[cb] = null;
randomstep = Math.ceil((Math.random() * 2));
if (tahapbg > 2){
if (randomstep == 0){
cloud[cb] = new (cloud1mc);
} else {
if (randomstep == 1){
cloud[cb] = new (cloud2mc);
} else {
if (randomstep == 2){
cloud[cb] = new (cloud3mc);
};
};
};
addChildAt(cloud[cb], (getChildIndex(penguin[0]) + 1));
cloud[cb].cacheAsBitmap = true;
cloud[cb].posisi = 0;
cloud[cb].x = randRange(0, 500);
cloud[cb].y = randRange(550, 1100);
};
};
} else {
if ((((cloud[cb] == null)) && ((lose == true)))){
if ((((((((tahapbg < 9)) && ((tahapbg > 2)))) && ((begginingrecharge == false)))) && ((launcher[0] == null)))){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 0){
cloud[cb] = new (cloud1mc);
} else {
if (randomstep == 1){
cloud[cb] = new (cloud2mc);
} else {
if (randomstep == 2){
cloud[cb] = new (cloud3mc);
};
};
};
addChildAt(cloud[cb], (getChildIndex(penguin[0]) + 1));
cloud[cb].cacheAsBitmap = true;
cloud[cb].posisi = 0;
cloud[cb].x = randRange(0, 500);
cloud[cb].y = randRange(550, 1100);
};
};
};
cb++;
};
} else {
if (cameramove == "up"){
cb = 0;
while (cb < 2) {
if (cloud[cb] != null){
cloud[cb].y = (cloud[cb].y + (int((cameramoveint * 2)) * framecomparison));
if ((((cloud[cb].y >= (650 + cloud[cb].height))) && ((cloud[cb].posisi == 0)))){
cloud[cb].posisi = 1;
};
if (cloud[cb].posisi == 1){
removeChild(cloud[cb]);
cloud[cb] = null;
randomstep = Math.ceil((Math.random() * 2));
if (tahapbg < 11){
if (randomstep == 0){
cloud[cb] = new (cloud1mc);
} else {
if (randomstep == 1){
cloud[cb] = new (cloud2mc);
} else {
if (randomstep == 2){
cloud[cb] = new (cloud3mc);
};
};
};
addChildAt(cloud[cb], (getChildIndex(penguin[0]) + 1));
cloud[cb].cacheAsBitmap = true;
cloud[cb].posisi = 0;
cloud[cb].x = randRange(0, 500);
cloud[cb].y = 0;
};
};
};
cb++;
};
};
};
_local2 = 0;
if (cameramove == "down"){
cb = 0;
while (cb < 2) {
if (bg[cb] != null){
if (bg[cb].land == 0){
if ((((bg[cb].y <= 0)) && ((begginingrecharge == true)))){
bg[cb].y = 0;
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
cb = 2;
cameramoveint = 0;
generatelauncher();
} else {
if ((((bg[cb].y <= 0)) && ((begginingrecharge == false)))){
temp2 = 100;
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
bolepause = false;
trace("REMOVE");
trace(bg[0]);
trace(bg[1]);
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
Tpenguinfalling.start();
if (bg[0] != null){
if (bg[0].land == 0){
bg[0].y = 0;
if (bg[1] != null){
bg[1].visible = false;
};
};
};
if (bg[1] != null){
if (bg[1].land == 0){
bg[1].y = 0;
if (bg[0] != null){
bg[0].visible = false;
};
};
};
if (freestyleimage[0] != null){
removeChild(freestyleimage[0]);
freestyleimage[0] = null;
};
stage.removeEventListener(KeyboardEvent.KEY_DOWN, freestylekeyboard);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
Tseasoneffect.start();
cb = 2;
Tresultscore.start();
bolepause = false;
};
};
} else {
if (bg[cb].y <= -550){
tahapbg--;
removeChild(bg[cb]);
bg[cb] = null;
if ((((tahapbg >= 44)) && ((level == 1)))){
bg[cb] = new (lvl51mc);
} else {
if ((((tahapbg == 43)) && ((level == 1)))){
stepspasi = 650;
bg[cb] = new (lvl51mc);
} else {
if ((((tahapbg == 42)) && ((level == 1)))){
bg[cb] = new (lvl48mc);
} else {
if ((((tahapbg == 41)) && ((level == 1)))){
bg[cb] = new (lvl42mc);
} else {
if ((((tahapbg == 40)) && ((level == 1)))){
bg[cb] = new (lvl46mc);
indexbg = cb;
randomalien();
} else {
if ((((((tahapbg >= 34)) && ((tahapbg <= 39)))) && ((level == 1)))){
bg[cb] = new (lvl44mc);
indexbg = cb;
randomalien();
} else {
if ((((tahapbg == 33)) && ((level == 1)))){
bg[cb] = new (lvl44mc);
indexbg = cb;
randomalien();
} else {
if ((((tahapbg == 32)) && ((level == 1)))){
bg[cb] = new (lvl43mc);
indexbg = cb;
randomalien();
} else {
if ((((tahapbg == 31)) && ((level == 1)))){
bg[cb] = new (lvl42mc);
} else {
if ((((tahapbg == 30)) && ((level == 1)))){
bg[cb] = new (lvl41mc);
} else {
if ((((tahapbg == 29)) && ((level == 1)))){
stepspasi = 380;
bg[cb] = new (lvl38mc);
} else {
if ((((tahapbg == 28)) && ((level == 1)))){
bg[cb] = new (lvl37mc);
} else {
if ((((tahapbg >= 23)) && ((level == 1)))){
bg[cb] = new (lvl36mc);
} else {
if ((((tahapbg == 22)) && ((level == 1)))){
bg[cb] = new (lvl35mc);
} else {
if ((((tahapbg == 21)) && ((level == 1)))){
bg[cb] = new (lvl34mc);
} else {
if ((((tahapbg == 20)) && ((level == 1)))){
bg[cb] = new (lvl33mc);
} else {
if ((((tahapbg == 19)) && ((level == 1)))){
bg[cb] = new (lvl32mc);
} else {
if ((((tahapbg == 18)) && ((level == 1)))){
bg[cb] = new (lvl31mc);
} else {
if ((((tahapbg == 17)) && ((level == 1)))){
stepspasi = 200;
bg[cb] = new (lvl28mc);
} else {
if ((((tahapbg == 16)) && ((level == 1)))){
bg[cb] = new (lvl27mc);
} else {
if ((((tahapbg == 15)) && ((level == 1)))){
bg[cb] = new (lvl26mc);
} else {
if ((((tahapbg == 14)) && ((level == 1)))){
bg[cb] = new (lvl25mc);
} else {
if ((((tahapbg == 13)) && ((level == 1)))){
bg[cb] = new (lvl24mc);
} else {
if ((((tahapbg == 12)) && ((level == 1)))){
bg[cb] = new (lvl23mc);
} else {
if ((((tahapbg == 11)) && ((level == 1)))){
bg[cb] = new (lvl22mc);
} else {
if ((((tahapbg == 10)) && ((level == 1)))){
bg[cb] = new (lvl21mc);
} else {
if ((((tahapbg == 9)) && ((level == 1)))){
bg[cb] = new (lvl18mc);
stepspasi = 190;
} else {
if ((((tahapbg == 8)) && ((level == 1)))){
bg[cb] = new (lvl17mc);
} else {
if ((((tahapbg == 7)) && ((level == 1)))){
bg[cb] = new (lvl16mc);
} else {
if ((((tahapbg == 6)) && ((level == 1)))){
bg[cb] = new (lvl15mc);
} else {
if ((((tahapbg == 5)) && ((level == 1)))){
bg[cb] = new (lvl14mc);
} else {
if ((((tahapbg == 4)) && ((level == 1)))){
bg[cb] = new (lvl13mc);
} else {
if ((((tahapbg == 3)) && ((level == 1)))){
bg[cb] = new (lvl12mc);
} else {
if ((((tahapbg == 2)) && ((level == 1)))){
bg[cb] = new (lvl11mc);
bg[cb].land = 0;
indexshakey = cb;
shakeybool = false;
baseground();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (tahapbg != 1){
addChildAt(bg[cb], (stepposisi - 1));
bg[cb].cacheAsBitmap = true;
bg[cb].indexke = cb;
bg[cb].x = 0;
if (cb == 0){
bg[cb].y = 550;
bg[1].y = 0;
} else {
bg[cb].y = 550;
bg[0].y = 0;
};
};
};
};
};
cb++;
};
} else {
if (cameramove == "up"){
cb = 0;
while (cb < 2) {
if (bg[cb] != null){
if (bg[cb].y >= 550){
tahapbg++;
if ((((tahapbg > 12)) && ((tahapbg < 16)))){
if (dilauncher == false){
levelspawntimeindex = 1;
tipeufo = "ufo";
if (generateufobool == false){
generateufobool = true;
Tufospawn.start();
};
};
} else {
if ((((tahapbg > 19)) && ((tahapbg < 27)))){
if (dilauncher == false){
levelspawntimeindex = 2;
tipeufo = "alien";
if (generateufobool == false){
generateufobool = true;
Tufospawn.start();
};
};
} else {
if ((((tahapbg > 30)) && ((tahapbg < 41)))){
if (dilauncher == false){
levelspawntimeindex = 3;
tipeufo = "alienmix";
if (generateufobool == false){
generateufobool = true;
Tufospawn.start();
};
};
} else {
if (tahapbg > 42){
if (dilauncher == false){
levelspawntimeindex = 4;
tipeufo = "alienmix";
if (generateufobool == false){
generateufobool = true;
Tufospawn.start();
};
};
};
};
};
};
if (tahapbg > 1){
generatemonster();
};
removeChild(bg[cb]);
bg[cb] = null;
if ((((tahapbg >= 43)) && ((level == 1)))){
medalindex = 23;
generatemedal();
bg[cb] = new (lvl51mc);
} else {
if ((((tahapbg == 42)) && ((level == 1)))){
stepspasi = 650;
bg[cb] = new (lvl51mc);
mcannounce2.mc1.txt1.text = "Black Hole Reached";
mcannounce2.gotoAndPlay(2);
} else {
if ((((tahapbg == 41)) && ((level == 1)))){
medalindex = 14;
generatemedal();
generateufobool = false;
Tufospawn.stop();
bg[cb] = new (lvl48mc);
} else {
if ((((tahapbg == 40)) && ((level == 1)))){
bg[cb] = new (lvl42mc);
} else {
if ((((tahapbg == 39)) && ((level == 1)))){
bg[cb] = new (lvl46mc);
indexbg = cb;
randomalien();
} else {
if ((((((tahapbg >= 33)) && ((tahapbg <= 38)))) && ((level == 1)))){
bg[cb] = new (lvl44mc);
indexbg = cb;
randomalien();
} else {
if ((((tahapbg == 32)) && ((level == 1)))){
bg[cb] = new (lvl44mc);
indexbg = cb;
randomalien();
} else {
if ((((tahapbg == 31)) && ((level == 1)))){
medalindex = 12;
generatemedal();
bg[cb] = new (lvl43mc);
indexbg = cb;
randomalien();
} else {
if ((((tahapbg == 30)) && ((level == 1)))){
tipemati = 3;
bg[cb] = new (lvl42mc);
mcannounce2.mc1.txt1.text = "U.F.O. HQ Reached";
mcannounce2.gotoAndPlay(2);
} else {
if ((((tahapbg == 29)) && ((level == 1)))){
stepspasi = 570;
bg[cb] = new (lvl41mc);
} else {
if ((((tahapbg == 28)) && ((level == 1)))){
bg[cb] = new (lvl38mc);
} else {
if ((((tahapbg == 27)) && ((level == 1)))){
generateufobool = false;
Tufospawn.stop();
bg[cb] = new (lvl37mc);
} else {
if ((((((tahapbg >= 22)) && ((tahapbg <= 26)))) && ((level == 1)))){
bg[cb] = new (lvl36mc);
} else {
if ((((tahapbg == 21)) && ((level == 1)))){
bg[cb] = new (lvl35mc);
} else {
if ((((tahapbg == 20)) && ((level == 1)))){
bg[cb] = new (lvl34mc);
} else {
if ((((tahapbg == 19)) && ((level == 1)))){
medalindex = 13;
generatemedal();
bg[cb] = new (lvl33mc);
} else {
if ((((tahapbg == 18)) && ((level == 1)))){
bg[cb] = new (lvl32mc);
mcannounce2.mc1.txt1.text = "Planet-One Reached";
mcannounce2.gotoAndPlay(2);
} else {
if ((((tahapbg == 17)) && ((level == 1)))){
medalindex = 17;
generatemedal();
tipemati = 2;
stepspasi = 380;
bg[cb] = new (lvl31mc);
} else {
if ((((tahapbg == 16)) && ((level == 1)))){
bg[cb] = new (lvl28mc);
} else {
if ((((tahapbg == 15)) && ((level == 1)))){
generateufobool = false;
Tufospawn.stop();
bg[cb] = new (lvl27mc);
} else {
if ((((tahapbg == 14)) && ((level == 1)))){
bg[cb] = new (lvl26mc);
medalindex = 16;
generatemedal();
} else {
if ((((tahapbg == 13)) && ((level == 1)))){
bg[cb] = new (lvl25mc);
mcannounce2.mc1.txt1.text = "Space Reached";
mcannounce2.gotoAndPlay(2);
} else {
if ((((tahapbg == 12)) && ((level == 1)))){
bg[cb] = new (lvl24mc);
} else {
if ((((tahapbg == 11)) && ((level == 1)))){
bg[cb] = new (lvl23mc);
} else {
if ((((tahapbg == 10)) && ((level == 1)))){
bg[cb] = new (lvl22mc);
} else {
if ((((tahapbg == 9)) && ((level == 1)))){
stepspasi = 200;
bg[cb] = new (lvl21mc);
} else {
if ((((tahapbg == 8)) && ((level == 1)))){
bg[cb] = new (lvl18mc);
} else {
if ((((tahapbg == 7)) && ((level == 1)))){
bg[cb] = new (lvl17mc);
} else {
if ((((tahapbg == 6)) && ((level == 1)))){
bg[cb] = new (lvl16mc);
} else {
if ((((tahapbg == 5)) && ((level == 1)))){
bg[cb] = new (lvl15mc);
} else {
if ((((tahapbg == 4)) && ((level == 1)))){
bg[cb] = new (lvl14mc);
} else {
if ((((tahapbg == 3)) && ((level == 1)))){
bg[cb] = new (lvl13mc);
} else {
if ((((tahapbg == 2)) && ((level == 1)))){
bg[cb] = new (lvl12mc);
} else {
if ((((tahapbg == 1)) && ((level == 1)))){
bg[cb] = new (lvl11mc);
indexshakey = cb;
shakeybool = false;
baseground();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
_local5 = Math.ceil((Math.random() * 100));
if ((((_local5 < 3)) && ((step[98] == null)))){
step[98] = new (pelicanmc);
addChildAt(step[98], (getChildIndex(penguin[0]) - 1));
step[98].cacheAsBitmap = true;
step[98].x = -66;
step[98].y = -150;
step[98].step.visible = false;
step[98].effect = 2;
step[98].stat = "fly";
randomstep = randRange(0, 1);
if (randomstep == 0){
step[98].arah = 1;
} else {
if (randomstep == 1){
step[98].arah = 0;
};
};
step[98].speed = 2;
};
if (tahapbg != 1){
addChildAt(bg[cb], (stepposisi - 1));
bg[cb].cacheAsBitmap = true;
bg[cb].x = 0;
if (cb == 0){
bg[cb].y = -550;
bg[1].y = 0;
} else {
bg[cb].y = -550;
bg[0].y = 0;
};
};
};
};
cb++;
};
};
};
cb = 0;
while (cb <= canmax) {
if (can[cb] != null){
if (can[cb].ok == 0){
can[cb].y = (can[cb].y + ((cameramoveint * 2) * framecomparison));
if (can[cb].y > 720){
removeChild(can[cb]);
can[cb] = null;
canmaxbackup--;
};
};
};
cb++;
};
if (cameramove == "down"){
cb = 0;
while (cb < 6) {
if (step[cb] != null){
step[cb].y = (step[cb].y + ((cameramoveint * 2) * framecomparison));
if (grenade[cb] != null){
grenade[cb].y = step[cb].y;
};
if (sack[cb] != null){
if (sack[cb].ok == 0){
sack[cb].y = step[cb].y;
};
};
if (warpdoor[cb] != null){
warpdoor[cb].y = step[cb].y;
};
if ((((lose == true)) && ((step[cb].y <= -250)))){
if (step[cb].tipe == "tesla"){
step[cb].mctesla.stop();
};
step[cb].stop();
removeChild(step[cb]);
step[cb] = null;
if (grenade[cb] != null){
removeChild(grenade[cb]);
grenade[cb] = null;
};
if (sack[cb] != null){
removeChild(sack[cb]);
sack[cb] = null;
};
if (warpdoor[cb] != null){
removeChild(warpdoor[cb]);
warpdoor[cb] = null;
};
if ((((((level == 1)) && ((tahapbg > 2)))) && ((lose == true)))){
_local6 = 0;
if ((((tahapbg < 13)) && ((tahapbg > 2)))){
step[cb] = new (lvl1step3mc);
step[cb].step.visible = false;
} else {
if (tahapbg < 18){
step[cb] = new (lvl2step2mc);
step[cb].step.visible = false;
} else {
if (tahapbg < 28){
step[cb] = new (lvl3step1mc);
step[cb].step.visible = false;
} else {
if (tahapbg < 41){
step[cb] = new (lvl4step2mc);
step[cb].step.visible = false;
} else {
if (tahapbg >= 36){
step[cb] = new (lvl2step5mc);
step[cb].step.visible = false;
};
};
};
};
};
addChildAt(step[cb], (stepposisi + 1));
step[cb].cacheAsBitmap = true;
step[cb].posisi = 0;
step[cb].x = randRange((0 + (step[cb].width / 2)), (500 - (step[cb].width / 2)));
if (stepawalbool == false){
stepawalbool = true;
step[cb].y = 550;
stepawal = cb;
} else {
if (stepawalbool == true){
step[cb].y = (step[stepawal].y + stepspasi);
stepawal = cb;
};
};
};
};
};
cb++;
};
} else {
if (cameramove == "up"){
cb = 0;
while (cb < 6) {
if (step[cb] != null){
step[cb].y = (step[cb].y + ((cameramoveint * 2) * framecomparison));
if (grenade[cb] != null){
grenade[cb].y = step[cb].y;
};
if (sack[cb] != null){
if (sack[cb].ok == 0){
sack[cb].y = step[cb].y;
};
};
if (warpdoor[cb] != null){
warpdoor[cb].y = step[cb].y;
};
if (step[cb].y > 550){
steparrowindex = cb;
};
if ((((step[cb].y >= (800 + stepspasi))) && ((step[cb].posisi == 0)))){
step[cb].posisi = 1;
};
if (step[cb].posisi == 1){
step[cb].stop();
if (step[cb].tipe == "tesla"){
step[cb].mctesla.stop();
};
removeChild(step[cb]);
step[cb] = null;
if (grenade[cb] != null){
removeChild(grenade[cb]);
grenade[cb] = null;
};
if (sack[cb] != null){
if (sack[cb].ok == 0){
removeChild(sack[cb]);
sack[cb] = null;
};
};
if (warpdoor[cb] != null){
removeChild(warpdoor[cb]);
warpdoor[cb] = null;
};
if (level == 1){
_local6 = 0;
_local7 = 0;
if (tahapbg >= 43){
_local6 = 23;
};
if (tahapbg < 1){
_local7 = 0;
_local6 = 0;
} else {
if (tahapbg < 7){
_local7 = 1;
_local6 = 3;
} else {
if (tahapbg < 9){
_local7 = 4;
_local6 = 4;
} else {
if (tahapbg < 11){
_local7 = 5;
_local6 = 5;
} else {
if (tahapbg < 12){
_local7 = 7;
_local6 = 8;
} else {
if (tahapbg < 14){
_local7 = 9;
_local6 = 9;
} else {
if (tahapbg < 15){
_local7 = 10;
_local6 = 11;
} else {
if (tahapbg < 17){
_local7 = 12;
_local6 = 13;
} else {
if (tahapbg < 18){
_local7 = 14;
_local6 = 14;
} else {
if (tahapbg < 19){
_local7 = 15;
_local6 = 15;
} else {
if (tahapbg < 20){
_local7 = 15;
_local6 = 16;
} else {
if (tahapbg < 22){
_local7 = 16;
_local6 = 17;
} else {
if (tahapbg < 29){
_local7 = 18;
_local6 = 20;
} else {
if (tahapbg < 35){
_local7 = 21;
_local6 = 21;
} else {
if (tahapbg < 43){
_local7 = 22;
_local6 = 22;
} else {
if (tahapbg >= 43){
_local7 = 23;
_local6 = 23;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
randomstep = randRange(_local7, _local6);
if (randomstep == 0){
step[cb] = new (lvl1step1mc);
step[cb].tesla.visible = false;
step[cb].step.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 1;
} else {
if (randomstep == 1){
step[cb] = new (lvl1step2mc);
step[cb].tesla.visible = false;
step[cb].step.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 1;
} else {
if (randomstep == 2){
step[cb] = new (lvl1step3mc);
step[cb].tipe = "solid";
step[cb].effect = 1;
step[cb].step.visible = false;
} else {
if (randomstep == 3){
step[cb] = new (lvl1step2mc);
step[cb].tesla.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 1;
step[cb].step.visible = false;
} else {
if (randomstep == 4){
step[cb] = new (lvl1step5mc);
step[cb].tipe = "breakable";
step[cb].effect = 1;
step[cb].step.visible = false;
} else {
if (randomstep == 5){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 1){
step[cb] = new (lvl1step2mc);
step[cb].tesla.visible = false;
step[cb].step.visible = false;
step[cb].tipe = "solid";
} else {
if (randomstep == 2){
step[cb] = new (lvl1step3mc);
step[cb].step.visible = false;
step[cb].tipe = "solid";
};
};
step[cb].tipe = "solid";
step[cb].effect = 2;
randomstep = randRange(0, 1);
if (randomstep == 0){
step[cb].arah = 1;
} else {
if (randomstep == 1){
step[cb].arah = 0;
};
};
step[cb].speed = 1;
} else {
if (randomstep == 6){
step[cb] = new (lvl1step6mc);
step[cb].step.visible = false;
step[cb].tipe = "solid";
step[cb].effect = 3;
} else {
if (randomstep == 7){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 1){
step[cb] = new (lvl1step1mc);
} else {
if (randomstep == 2){
step[cb] = new (lvl1step2mc);
};
};
step[cb].step.visible = false;
step[cb].tesla.visible = false;
step[cb].gotoAndStop("tesla");
step[cb].tipe = "tesla";
step[cb].effect = 4;
} else {
if (randomstep == 8){
if (oktramp == 0){
oktramp = 1;
step[cb] = new (lvl1step7mc);
step[cb].tipe = "solid";
step[cb].effect = 2;
step[cb].step.visible = false;
} else {
if (oktramp == 1){
oktramp = 0;
step[cb] = new (lvl1step4mc);
step[cb].tipe = "solid";
step[cb].effect = 1;
step[cb].step.visible = false;
};
};
} else {
if (randomstep == 9){
randomstep = Math.ceil((Math.random() * 1));
if (randomstep == 0){
step[cb] = new (lvl2step1mc);
} else {
if (randomstep == 1){
step[cb] = new (lvl2step2mc);
};
};
step[cb].tipe = "solid";
step[cb].effect = 1;
step[cb].step.visible = false;
} else {
if ((((randomstep == 10)) || ((randomstep == 11)))){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 0){
step[cb] = new (lvl2step3mc);
} else {
if (randomstep == 1){
step[cb] = new (lvl2step4mc);
} else {
if (randomstep == 2){
step[cb] = new (lvl2step5mc);
};
};
};
step[cb].tipe = "solid";
step[cb].effect = 1;
step[cb].step.visible = false;
} else {
if ((((randomstep == 12)) || ((randomstep == 13)))){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 0){
step[cb] = new (lvl2step3mc);
} else {
if (randomstep == 1){
step[cb] = new (lvl2step4mc);
} else {
if (randomstep == 2){
step[cb] = new (lvl2step5mc);
};
};
};
step[cb].tipe = "solid";
step[cb].effect = 2;
_local9 = randRange(0, 1);
step[cb].arah = _local9;
_local9 = randRange(1, 2);
step[cb].speed = _local9;
step[cb].step.visible = false;
} else {
if (randomstep == 14){
step[cb] = new (lvl3step1mc);
step[cb].nostep = randomstep;
step[cb].health = 3;
step[cb].tipe = "solid";
step[cb].effect = 6;
step[cb].step.visible = false;
} else {
if (randomstep == 15){
step[cb] = new (lvl3step2mc);
step[cb].nostep = randomstep;
step[cb].health = 3;
step[cb].tipe = "solid";
step[cb].effect = 1;
step[cb].step.visible = false;
} else {
if (randomstep == 16){
step[cb] = new (lvl3step3mc);
step[cb].nostep = randomstep;
step[cb].spike.visible = false;
step[cb].step.visible = false;
step[cb].tipe = "spike";
step[cb].effect = 4;
step[cb].mcblood.visible = false;
} else {
if (randomstep == 17){
if (oktramp == 0){
oktramp = 1;
step[cb] = new (lvl3step4mc);
step[cb].tipe = "solid";
step[cb].effect = 5;
step[cb].step.visible = false;
} else {
step[cb] = new (lvl3step2mc);
step[cb].tipe = "solid";
step[cb].effect = 1;
step[cb].step.visible = false;
};
step[cb].nostep = randomstep;
step[cb].health = 3;
} else {
if (randomstep == 18){
step[cb] = new (lvl3step5mc);
step[cb].nostep = randomstep;
step[cb].tipe = "solid";
step[cb].effect = 2;
_local9 = randRange(0, 1);
step[cb].arah = _local9;
_local9 = randRange(1, 3);
step[cb].speed = _local9;
step[cb].step.visible = false;
step[cb].glue.visible = false;
} else {
if (randomstep == 19){
step[cb] = new (lvl3step5mc);
step[cb].nostep = randomstep;
step[cb].health = 3;
step[cb].tipe = "solid";
step[cb].gotoAndStop("glue");
step[cb].effect = 4;
step[cb].step.visible = false;
step[cb].glue.visible = false;
} else {
if (randomstep == 20){
_local10 = Math.ceil((Math.random() * 100));
if (_local10 < 2){
step[cb] = new (lvl3step6mc);
step[cb].tipe = "solid";
step[cb].effect = 7;
step[cb].step.visible = false;
} else {
step[cb] = new (lvl3step2mc);
step[cb].tipe = "solid";
step[cb].effect = 1;
step[cb].step.visible = false;
};
step[cb].nostep = randomstep;
step[cb].health = 3;
} else {
if (randomstep == 21){
_local10 = randRange(0, 1);
if (_local10 == 0){
step[cb] = new (lvl4step1mc);
} else {
step[cb] = new (lvl4step2mc);
};
step[cb].tipe = "solid";
step[cb].effect = 2;
step[cb].nostep = randomstep;
step[cb].health = 3;
step[cb].arah = 0;
_local9 = randRange(2, 3);
step[cb].speed = _local9;
step[cb].step.visible = false;
} else {
if (randomstep == 22){
_local10 = randRange(0, 1);
if (_local10 == 0){
step[cb] = new (lvl4step3mc);
} else {
step[cb] = new (lvl4step4mc);
};
step[cb].nostep = randomstep;
step[cb].health = 3;
step[cb].tipe = "solid";
step[cb].effect = 2;
step[cb].arah = 0;
_local9 = randRange(3, 4);
step[cb].speed = _local9;
step[cb].step.visible = false;
} else {
if (randomstep == 23){
randomstep = Math.ceil((Math.random() * 2));
if (randomstep == 0){
step[cb] = new (lvl2step3mc);
} else {
if (randomstep == 1){
step[cb] = new (lvl2step4mc);
} else {
if (randomstep == 2){
step[cb] = new (lvl2step5mc);
};
};
};
step[cb].tipe = "solid";
step[cb].effect = 2;
_local9 = randRange(0, 1);
step[cb].arah = _local9;
step[cb].speed = maxgames;
step[cb].step.visible = false;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
addChildAt(step[cb], (getChildIndex(penguin[0]) - 1));
step[cb].cacheAsBitmap = true;
step[cb].health;
step[cb].posisi = 0;
step[cb].x = randRange((50 + (step[cb].width / 2)), (450 - (step[cb].width / 2)));
step[cb].y = (step[stepterakhir].y - stepspasi);
step[cb].hit = 0;
if (randomstep == 16){
if (step[cb].y >= 250){
step[cb].gotoAndStop(2);
};
};
stepterakhir = cb;
if (canstart == false){
canstart = true;
generatecan();
} else {
if (canstart == true){
if (canmaxbackup < 0){
canindex = cb;
generatecan();
};
};
};
if (step[cb].effect != 7){
_local11 = (Math.random() * 100);
if (_local11 < so.data.percentagegrenade){
if (grenade[cb] == null){
grenade[cb] = new (grenademc);
addChildAt(grenade[cb], (getChildIndex(penguin[0]) + 1));
grenade[cb].cacheAsBitmap = true;
grenade[cb].x = step[cb].x;
grenade[cb].y = step[cb].y;
grenade[cb].tipe = 0;
};
};
};
if (tahapbg > 2){
_local12 = (Math.random() * 100);
if (_local12 < so.data.percentagesack){
if (grenade[cb] == null){
if (sack[cb] == null){
sack[cb] = new (moneysackmc);
addChildAt(sack[cb], (getChildIndex(penguin[0]) + 1));
sack[cb].cacheAsBitmap = true;
sack[cb].x = step[cb].x;
sack[cb].y = step[cb].y;
sack[cb].ok = 0;
};
};
};
};
_local8 = Math.ceil((Math.random() * 500));
if (barujalan == false){
if (tahapbg < 40){
if (_local8 < (tahapbg / 2)){
if (grenade[cb] == null){
if (sack[cb] == null){
_local8 = int(randRange(0, 1));
if (_local8 == 1){
warpdoor[cb] = new (warpdoormc);
warpdoor[cb].mc1.gotoAndStop(1);
addChildAt(warpdoor[cb], (getChildIndex(penguin[0]) - 1));
warpdoor[cb].cacheAsBitmap = true;
warpdoor[cb].step.visible = false;
warpdoor[cb].x = step[cb].x;
warpdoor[cb].y = step[cb].y;
};
};
};
};
};
};
if (step[cb].effect != 7){
_local13 = (Math.random() * 100);
if (_local13 < 2){
if (grenade[cb] == null){
if (sack[cb] == null){
if (warpdoor[cb] == null){
grenade[cb] = new (fishmc);
addChildAt(grenade[cb], (getChildIndex(penguin[0]) + 1));
grenade[cb].cacheAsBitmap = true;
grenade[cb].x = step[cb].x;
grenade[cb].y = step[cb].y;
grenade[cb].tipe = 1;
};
};
};
};
};
};
};
};
cb++;
};
};
};
if (cameramove == "up"){
_local14 = 0;
_local15 = 0;
while (_local15 < 6) {
if (step[_local15] != null){
if (step[_local15].y > 550){
if (step[_local15].y < step[_local14].y){
_local14 = _local15;
};
};
};
_local15++;
};
if (step[_local14] != null){
if (step[_local14].y > 550){
steparrowindex = _local14;
};
};
};
if (cameramove == "up"){
if (step[steparrowindex] != null){
if (step[steparrowindex].y > 550){
steparrow.visible = true;
steparrow.y = 550;
steparrow.x = step[steparrowindex].x;
};
} else {
if (step[steparrowindex] == null){
steparrow.visible = false;
};
};
} else {
if (cameramove == "down"){
if (step[steparrowindex] != null){
steparrow.x = step[steparrowindex].x;
if (step[steparrowindex].y < 550){
steparrow.visible = false;
};
};
if (lose == true){
steparrow.visible = false;
};
};
};
}
public function diamond2T(_arg1:TimerEvent):void{
var _local2:*;
var _local3:Number;
_local2 = 0;
while (_local2 < diamondindex) {
if (diamond[_local2] != null){
if (diamond[_local2].currentFrame == diamond[_local2].totalFrames){
diamond[_local2].x = (diamond[_local2].x - ((diamond[_local2].x - mcUIimage[0].cangoal.x) / 50));
diamond[_local2].y = (diamond[_local2].y - ((diamond[_local2].y - mcUIimage[0].cangoal.y) / 50));
if (diamond[_local2].hitTestObject(mcUIimage[0].cangoal) == true){
soundsardines.play(0, 1, new SoundTransform(suaraSFX));
removeChild(diamond[_local2]);
diamond[_local2] = null;
diamond.splice(_local2, 1);
diamondindex--;
_local3 = 0;
_local3 = (Number(so.data.money) + 200);
so.data.money = _local3;
mcUIimage[0].txt3.text = ("Cash: " + _local3);
moneycheck();
};
};
};
_local2++;
};
}
public function loadshopeshope(){
var _local1:*;
var _local2:*;
var _local3:*;
score[0].shopCG.mcitem.number1.text = ("Qty." + so.data.tramp);
score[0].shopCG.mcitem.level1.gotoAndStop(int((so.data.percentagegrenade / 5)));
score[0].shopCG.mcitem.level2.gotoAndStop(int((so.data.percentagesack / 5)));
score[0].shopCG.mcitem.level3.gotoAndStop(int((so.data.magnet / 75)));
if (so.data.percentagegrenade >= 20){
score[0].shopCG.mcitem.mcsold1.visible = true;
} else {
score[0].shopCG.mcitem.mcsold1.visible = false;
};
if (so.data.percentagesack >= 20){
score[0].shopCG.mcitem.mcsold2.visible = true;
} else {
score[0].shopCG.mcitem.mcsold2.visible = false;
};
if (so.data.magnet >= 300){
score[0].shopCG.mcitem.mcsold3.visible = true;
} else {
score[0].shopCG.mcitem.mcsold3.visible = false;
};
if (so.data.percentagegrenade >= 20){
score[0].shopCG.buy8.visible = false;
};
if (so.data.percentagesack >= 20){
score[0].shopCG.buy9.visible = false;
};
if (so.data.magnet >= 300){
score[0].shopCG.buy10.visible = false;
};
trace(("COST SELECT : " + so.data.costumeselect));
if (so.data.costumeselect != 0){
_local3 = score[0].shopCG.getChildByName(("costume" + so.data.costumeselect));
_local3.mcsold.gotoAndStop(2);
_local3 = score[0].shopCG.getChildByName(("mc" + so.data.costumeselect));
_local3.txt1.visible = false;
_local3 = score[0].shopCG.getChildByName(("buy" + so.data.costumeselect));
_local3.visible = false;
};
trace("kiop");
trace(score[0].shopCG);
_local1 = Number((so.data.costumeselect + 5));
while (_local1 >= 1) {
trace(("asdjas" + _local1));
_local1--;
};
trace(Number((so.data.costumeselect - 1)));
_local1 = (so.data.costumeselect - 1);
while (_local1 >= 1) {
trace("k");
trace(("i" + _local1));
trace(score[0].shopCG);
_local3 = score[0].shopCG.getChildByName(("costume" + _local1));
trace(("ini alahkdjf" + _local3));
_local3.mcsold.gotoAndStop(1);
_local3 = score[0].shopCG.getChildByName(("mc" + _local1));
_local3.txt1.visible = false;
_local3 = score[0].shopCG.getChildByName(("buy" + _local1));
_local3.visible = false;
_local1--;
};
trace(("GF" + so.data.costumeselect));
_local2 = so.data.costumeselect;
trace(_local2);
if (_local2 != 0){
trace("GF2");
_local1 = (so.data.costumeselect + 1);
while (_local1 <= 3) {
trace(("a" + _local1));
_local3 = score[0].shopCG.getChildByName(("costume" + _local1));
trace(_local3);
trace("gbisadibeli");
_local3.mcsold.visible = false;
_local3 = score[0].shopCG.getChildByName(("buy" + _local1));
_local3.visible = false;
trace("oo");
_local1++;
};
_local3 = score[0].shopCG.getChildByName(("costume" + Number((so.data.costumeselect + 1))));
trace(_local3);
if (_local3 != null){
if (so.data.money >= Number((so.data.costumeselect + (1 * 1000)))){
_local3.mcsold.visible = false;
_local3.gotoAndStop("open-exp");
_local3 = score[0].shopCG.getChildByName(("buy" + Number((so.data.costumeselect + 1))));
_local3.visible = true;
} else {
_local3.mcsold.visible = false;
_local3 = score[0].shopCG.getChildByName(("buy" + Number((so.data.costumeselect + 1))));
_local3.visible = false;
};
};
} else {
_local3 = score[0].shopCG.getChildByName(("costume" + 1));
trace(_local3);
if (so.data.money >= Number((hargapenguin[1] * 1000))){
_local3.mcsold.visible = false;
_local3.gotoAndStop("open-exp");
} else {
trace("gbisadibeli");
_local3.mcsold.visible = false;
_local3 = score[0].shopCG.getChildByName(("buy" + 1));
_local3.visible = false;
};
_local1 = 2;
while (_local1 <= 3) {
trace(_local1);
_local3 = score[0].shopCG.getChildByName(("costume" + _local1));
_local3.mcsold.visible = false;
_local3 = score[0].shopCG.getChildByName(("buy" + _local1));
_local3.visible = false;
_local1++;
};
};
}
public function freestyle(){
if (freestyleimage[0] != null){
freestyleimage[0].txt1.visible = true;
freestyleimage[0].gotoAndPlay(1);
freestyleimage[0].txt1.textColor = (Math.random() * 0xFFFFFF);
generateRandomString();
Tfreestyle.start();
stage.addEventListener(KeyboardEvent.KEY_DOWN, freestylekeyboard);
};
}
public function sackmovement2(){
var sackmovementremover:Function;
sackmovementremover = function (_arg1:Event):void{
var _local2:*;
var _local3:Number;
_arg1.target.x = (_arg1.target.x - ((_arg1.target.posisix - _arg1.target.targetx) / 10));
_arg1.target.y = (_arg1.target.y - ((_arg1.target.posisiy - _arg1.target.targety) / 10));
if (_arg1.target.hitTestObject(mcUIimage[0].cangoal) == true){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
_local2 = _arg1.target;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, sackmovementremover);
sack[_local2.indexke] = null;
_local2 = null;
_local3 = 0;
_local3 = (so.data.money + 100);
so.data.money = _local3;
mcUIimage[0].txt3.text = ("Cash: " + _local3);
moneycheck();
};
};
sack[sackmovementindex].posisix = sack[sackmovementindex].x;
sack[sackmovementindex].posisiy = sack[sackmovementindex].y;
sack[sackmovementindex].targetx = 64;
sack[sackmovementindex].targety = 552;
sack[sackmovementindex].gotoAndPlay("rotate");
sack[sackmovementindex].indexke = sackmovementindex;
sack[sackmovementindex].ok = 1;
sack[sackmovementindex].addEventListener(Event.ENTER_FRAME, sackmovementremover);
}
public function stopgame(){
var _local1:*;
var _local2:Number;
stage.removeEventListener(Event.ENTER_FRAME, shockeffectextended);
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
stage.removeEventListener(Event.ENTER_FRAME, shockeffectstopper);
stage.removeEventListener(Event.ENTER_FRAME, loadingsoundpop3);
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
Tcalendar.stop();
penguin[0].stop();
pg = 0;
while (pg < 6) {
if (step[pg] != null){
step[pg].stop();
};
pg++;
};
pausebool = true;
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
Tcamerashake.stop();
Tpenguingetslipped.stop();
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tstepanimation.stop();
Thitrampolin.stop();
if (generateufobool == true){
Tufomove.stop();
Tufoshoot.stop();
Tufospawn.stop();
Talienmove.stop();
Talienmove2.stop();
Tblowfish.stop();
};
Tlaunchershake.stop();
Tfreestyle.stop();
Tseasoneffect.stop();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, freestylekeyboard);
Tdiamond.stop();
_local1 = 0;
while (_local1 < diamondindex) {
trace(((("diamond: " + _local1) + " max : ") + diamondindex));
if (diamond[_local1] != null){
trace(("diamond remove: " + _local1));
removeChild(diamond[_local1]);
diamond[_local1] = null;
_local2 = 0;
_local2 = (Number(so.data.money) + 200);
so.data.money = _local2;
mcUIimage[0].txt3.text = ("Cash: " + _local2);
moneycheck();
};
_local1++;
};
}
public function camerashake(_arg1:TimerEvent):void{
if (shake == 0){
cs = 0;
while (cs < 6) {
if (step[cs] != null){
step[cs].x = (step[cs].x + 10);
};
cs++;
};
if (bg[0] != null){
bg[0].x = (bg[0].x + 10);
};
if (bg[1] != null){
bg[1].x = (bg[1].x + 10);
};
penguin[0].x = (penguin[0].x + 10);
shake = 1;
} else {
if (shake == 1){
cs = 0;
while (cs < 6) {
if (step[cs] != null){
step[cs].x = (step[cs].x - 10);
};
cs++;
};
if (bg[0] != null){
bg[0].x = (bg[0].x - 10);
};
if (bg[1] != null){
bg[1].x = (bg[1].x - 10);
};
penguin[0].x = (penguin[0].x - 10);
shake = 1;
shake = 0;
Tcamerashake.stop();
};
};
}
public function changecursor(){
var redrawcursor:Function;
redrawcursor = function (_arg1:MouseEvent):void{
mouse.x = mouseX;
mouse.y = mouseY;
};
stage.removeEventListener(MouseEvent.MOUSE_MOVE, redrawcursor);
stage.addEventListener(MouseEvent.MOUSE_MOVE, redrawcursor);
Mouse.hide();
Mouse.hide();
Mouse.hide();
}
public function item(_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
if (shopCG.currentLabel == "costume"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
shopCG.gotoAndPlay("toitem");
} else {
if (shopCG.currentLabel == "launcher"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
shopCG.gotoAndPlay("toitem2");
};
};
}
public function penguinmovepointerframe2(_arg1:Event):void{
penguin[0].y = 438;
if (penguingetslippedbool == false){
if (penguin[0].x < (mouse.x - 6)){
if ((((cameramove == "up")) && (((!((penguinstat == "flyup"))) && (!((penguinstat == "bomb"))))))){
penguinstat = "flyup";
penguin[0].gotoAndPlay("flyup");
} else {
if ((((cameramove == "down")) && (((!((penguinstat == "flydown"))) && (!((penguinstat == "bomb"))))))){
penguinstat = "flydown";
penguin[0].gotoAndPlay("flydown");
};
};
penguin[0].rotation = (penguin[0].rotation + (0.3 * 4));
penguin[0].x = (penguin[0].x + (penguinspeed * 4));
if (penguin[0].x > (mouse.x - 6)){
penguin[0].x = (mouse.x - 6);
};
} else {
if (penguin[0].x > (mouse.x + 6)){
if ((((cameramove == "up")) && (((!((penguinstat == "flyup2"))) && (!((penguinstat == "bomb"))))))){
penguinstat = "flyup2";
penguin[0].gotoAndPlay("flyup2");
} else {
if ((((cameramove == "down")) && (((!((penguinstat == "flydown2"))) && (!((penguinstat == "bomb"))))))){
penguinstat = "flydown2";
penguin[0].gotoAndPlay("flydown2");
};
};
penguin[0].rotation = (penguin[0].rotation - (0.3 * 4));
penguin[0].x = (penguin[0].x - (penguinspeed * 4));
if (penguin[0].x < (mouse.x + 6)){
penguin[0].x = (mouse.x + 6);
};
};
};
};
pm = 0;
while (pm <= canmax) {
if (can[pm] != null){
if (can[pm].ok == 0){
if ((((((can[pm].y > (penguin[0].y - so.data.magnet))) && ((can[pm].y < penguin[0].y)))) || ((((can[pm].y < (penguin[0].y + so.data.magnet))) && ((can[pm].y > penguin[0].y)))))){
if ((((can[pm].x < (penguin[0].x + so.data.magnet))) && ((can[pm].x > penguin[0].x)))){
canmovementindex = pm;
canmovement2();
} else {
if ((((can[pm].x > (penguin[0].x - so.data.magnet))) && ((can[pm].x < penguin[0].x)))){
canmovementindex = pm;
canmovement2();
};
};
};
};
};
pm++;
};
if (cameramove == "down"){
pm = 0;
while (pm < 6) {
if (step[pm] != null){
if (sack[pm] != null){
if (sack[pm].ok == 0){
if (penguin[0].hitTestObject(sack[pm]) == true){
sackmovementindex = pm;
sackmovement2();
pm = 6;
};
};
};
};
pm++;
};
pm = 0;
while (pm < 6) {
if (step[pm] != null){
if (step[pm].currentLabel == "solid"){
if (penguin[0].foot.hitTestObject(step[pm].step) == true){
generatesoundjump();
generatedust();
if (step[pm].hit == 0){
step[pm].hit = 1;
generatecomboimage();
} else {
comboke = 0;
};
penguin[0].gotoAndPlay("landing");
if (step[pm].effect == 3){
if (penguingetslippedbool == false){
};
} else {
if (step[pm].tipe == "breakable"){
step[pm].gotoAndPlay("break");
} else {
if (step[pm].effect == 6){
step[pm].gotoAndPlay(2);
} else {
if (step[pm].effect == 7){
step[pm].gotoAndPlay(2);
};
};
};
};
stage.removeEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
Tpenguinmovetime2.stop();
Tpenguinmovetime2.reset();
stage.addEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
penguin[0].rotation = 0;
cameramoveint = so.data.speed;
tempcameramoveint = cameramoveint;
penguinrangey = (cameramoveint + 1);
cameramove = "up";
stepindex = pm;
pm = 12;
};
};
};
pm++;
};
};
}
public function followmouse2(_arg1:Event):void{
mcthropy.x = (mouseX - 50);
mcthropy.y = (mouseY + 5);
}
public function createpauseimage(){
var resumegame:Function;
var btnoption:Function;
var btnexit:Function;
resumegame = function (_arg1:MouseEvent):void{
resumeingame();
};
btnoption = function (_arg1:MouseEvent):void{
steparrow.visible = false;
createoptionimage();
mcoptionimage[0].gotoAndPlay(2);
fungsioption();
mcUIimage[0].visible = false;
generatebuttonformat2();
mcoptionimage[0].x = 251.3;
mcoptionimage[0].y = 270.9;
mcpauseimage[0].visible = false;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
};
btnexit = function (_arg1:MouseEvent):void{
steparrow.visible = false;
lagumaenmenu = false;
soundchannelmainmenu.stop();
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
stopgame();
cleanup();
gotoAndStop("main menu");
};
mcpauseimage[0] = new (pausemc);
addChildAt(mcpauseimage[0], (getChildIndex(mcannounce) - 1));
mcpauseimage[0].cacheAsBitmap = true;
mcpauseimage[0].x = 971;
mcpauseimage[0].y = 416;
mcpauseimage[0].btnresume.addEventListener(MouseEvent.MOUSE_DOWN, resumegame);
mcpauseimage[0].btnoption.addEventListener(MouseEvent.MOUSE_DOWN, btnoption);
mcpauseimage[0].btnexit.addEventListener(MouseEvent.MOUSE_DOWN, btnexit);
}
public function buy10(_arg1:MouseEvent):void{
if ((((so.data.money >= 6000)) && ((so.data.magnet <= 300)))){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.magnet = (so.data.magnet + 75);
so.data.money = (so.data.money - 6000);
shopCG.txt1.text = so.data.money;
shopCG.mcitem.level3.nextFrame();
if (so.data.magnet >= 300){
shopCG.mcitem.mcsold3.visible = true;
shopCG.buy10.visible = false;
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
}
public function yesgame(_arg1:MouseEvent):void{
var _local2:*;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
so.data.best = 0;
so.data.score = 0;
so.data.speed = 5;
so.data.can = 0;
so.data.money = 0;
so.data.daye = 0;
so.data.tramp = 0;
so.data.magnet = 75;
so.data.percentagesack = 5;
so.data.percentagegrenade = 5;
so.data.costume0 = 1;
so.data.costume1 = 0;
so.data.costume2 = 0;
so.data.costume3 = 0;
so.data.costumeselect = 0;
so.data.launcher0 = 1;
so.data.launcher1 = 0;
so.data.launcher2 = 0;
so.data.launcher3 = 0;
so.data.launcherselect = 0;
so.data.thropy = new Array();
_local2 = 0;
_local2 = 1;
while (_local2 <= 30) {
so.data.thropy[_local2] = 0;
_local2++;
};
so.data.bonusgame = 5;
removeChild(newgameimage[0]);
newgameimage[0] = null;
gotoAndStop("tutorial");
}
public function pausebonusgame(_arg1:KeyboardEvent):void{
var _local2:*;
if (bolepause == true){
if ((((((_arg1.keyCode == 112)) || ((_arg1.keyCode == 80)))) && ((pausebool == false)))){
stage.addEventListener(Event.ENTER_FRAME, loadingsoundpop3);
soundpause.play(0, 1, new SoundTransform(suaraSFX));
pausebool = true;
mouse.visible = true;
createpauseimage2();
_local2 = getChildIndex(mouse);
mcpauseimage[0].gotoAndPlay(2);
mcpauseimage[0].x = 178;
mcpauseimage[0].y = 280;
penguin[0].stop();
stage.removeEventListener(Event.ENTER_FRAME, camerabgframe);
Tcamerabg2.stop();
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe2);
stage.removeEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
Tpenguinmovetime2.stop();
Tpenguinjumping.stop();
Tpenguinfalling2.stop();
} else {
if ((((((_arg1.keyCode == 112)) || ((_arg1.keyCode == 80)))) && ((pausebool == true)))){
resumeingame2();
};
};
};
}
public function loadsave(){
var _local1:*;
if (so.size == 0){
trace("empty");
so.data.best = 0;
so.data.score = 0;
so.data.speed = 5;
so.data.can = 0;
so.data.money = 0;
so.data.daye = 0;
so.data.tramp = 0;
so.data.magnet = 75;
so.data.percentagesack = 5;
so.data.percentagegrenade = 5;
so.data.costume0 = 1;
so.data.costume1 = 0;
so.data.costume2 = 0;
so.data.costume3 = 0;
so.data.costumeselect = 0;
so.data.launcher0 = 1;
so.data.launcher1 = 0;
so.data.launcher2 = 0;
so.data.launcher3 = 0;
so.data.launcherselect = 0;
so.data.thropy = new Array();
_local1 = 0;
_local1 = 1;
while (_local1 <= 30) {
so.data.thropy[_local1] = 0;
_local1++;
};
so.data.bonusgame = 5;
} else {
trace("nah");
};
}
public function launchershake(_arg1:TimerEvent):void{
if (launcher[0] != null){
launcher[0].x = (launcher[0].x + lsk);
lsk = (lsk * -1);
} else {
if (launcher[0] == null){
launchershakebool = false;
Tlaunchershake.stop();
};
};
}
public function hitrampolin(_arg1:TimerEvent):void{
if (trampolinbackup[0] != null){
trampolinbackup[0].y = step[trampoindex].y;
};
bolepause = false;
penguin[0].y = (penguin[0].y + 2.5);
penguin[0].rotation = 0;
if (step[trampoindex].currentLabel == "hit"){
comboshock++;
if (comboshock == 1){
faceeffectbool = true;
stage.addEventListener(Event.ENTER_FRAME, shockeffectextended);
} else {
if (comboshock > 1){
if (faceeffectbool == true){
stage.removeEventListener(Event.ENTER_FRAME, shockeffectextended);
faceeffect();
};
};
};
soundwee.play(0, 1, new SoundTransform(suaraSFX));
penguin[0].visible = true;
if (trampoindex == 98){
soundtank.play(0, 1, new SoundTransform(suaraSFX));
} else {
soundlauncher0.play(0, 1, new SoundTransform(suaraSFX));
};
penguin[0].gotoAndPlay("flyup");
if (trampoindex == 98){
cameramoveint = (so.data.speed * 4);
} else {
cameramoveint = (so.data.speed * 2);
};
penguinrangey = cameramoveint;
cameramove = "up";
stage.addEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
stage.addEventListener(Event.ENTER_FRAME, Ttes);
stage.addEventListener(Event.ENTER_FRAME, Ttes2);
Thitrampolin.stop();
if (trampolinbackup[0] != null){
removeChild(trampolinbackup[0]);
trampolinbackup[0] = null;
};
hittrampolinbool = false;
bolepause = true;
lose = false;
Thitrampolin.stop();
};
}
public function camerabgT(_arg1:TimerEvent):void{
}
public function createoptionimage(){
mcoptionimage[0] = new (optionmenumc2);
addChildAt(mcoptionimage[0], (getChildIndex(mcpauseimage[0]) + 1));
mcoptionimage[0].cacheAsBitmap = true;
mcoptionimage[0].x = 859;
mcoptionimage[0].y = 697;
}
public function createjudge(){
judge[0] = new (judgemc);
addChildAt(judge[0], (getChildIndex(mouse) - 1));
judge[0].x = 261;
judge[0].y = 498;
}
public function click1(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(1);
shopCG.mc1.gotoAndStop(2);
}
public function click2(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(1);
shopCG.mc2.gotoAndStop(2);
}
public function click4(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(2);
shopCG.mc4.gotoAndStop(2);
}
public function click5(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(2);
shopCG.mc5.gotoAndStop(2);
}
public function click7(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(3);
shopCG.mc7.gotoAndStop(2);
}
public function click8(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(3);
shopCG.mc8.gotoAndStop(2);
}
public function click9(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(3);
shopCG.mc9.gotoAndStop(2);
}
public function click3(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(1);
shopCG.mc3.gotoAndStop(2);
}
public function click6(_arg1:MouseEvent):void{
shopCG.mcbaloon.visible = true;
shopCG.mcbaloon.ab.gotoAndStop(2);
shopCG.mc6.gotoAndStop(2);
}
public function stopgame2(){
var _local1:*;
var _local2:Number;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe2);
stage.removeEventListener(Event.ENTER_FRAME, loadingsoundpop3);
stage.removeEventListener(Event.ENTER_FRAME, camerabgframe);
Tcamerabg2.stop();
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe2);
stage.removeEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
Tpenguinmovetime2.stop();
Tpenguinjumping.stop();
Tpenguinfalling2.stop();
Tdiamond2.stop();
_local1 = 0;
while (_local1 < diamondindex) {
if (diamond[_local1] != null){
removeChild(diamond[_local1]);
diamond[_local1] = null;
diamond.splice(_local1, 1);
diamondindex--;
_local2 = 0;
_local2 = (Number(so.data.money) + 200);
so.data.money = _local2;
};
_local1++;
};
}
public function follow(_arg1:TimerEvent):void{
if (follower == 1){
if ((((btnSFX.x < 205)) && ((btnSFX.x > 63)))){
btnSFX.x = mouseX;
if (btnSFX.x < 91){
suaraSFX = 0;
} else {
if (btnSFX.x < 119){
suaraSFX = 0.2;
} else {
if (btnSFX.x < 147){
suaraSFX = 0.4;
} else {
if (btnSFX.x < 175){
suaraSFX = 0.6;
} else {
if (btnSFX.x >= 175){
suaraSFX = 1;
};
};
};
};
};
} else {
if (btnSFX.x >= 205){
btnSFX.x = 195;
suaraSFX = 1;
Tfollow.stop();
} else {
if (btnSFX.x <= 63){
suaraSFX = 0;
btnSFX.x = 73;
Tfollow.stop();
};
};
};
} else {
if (follower == 2){
if ((((btnBGM.x < 205)) && ((btnBGM.x > 63)))){
btnBGM.x = mouseX;
if (btnBGM.x < 91){
suaraBGM = 0;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
} else {
if (btnBGM.x < 119){
suaraBGM = 0.2;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
} else {
if (btnBGM.x < 147){
suaraBGM = 0.4;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
} else {
if (btnBGM.x < 175){
suaraBGM = 0.6;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
} else {
if (btnBGM.x >= 175){
suaraBGM = 1;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
};
};
};
};
};
} else {
if (btnBGM.x >= 205){
btnBGM.x = 195;
suaraBGM = 1;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
Tfollow.stop();
} else {
if (btnBGM.x <= 63){
btnBGM.x = 73;
suaraBGM = 0;
soundchannelmainmenu.soundTransform = new SoundTransform(suaraBGM);
Tfollow.stop();
};
};
};
} else {
if (follower == 3){
if ((((btnquality.x < 205)) && ((btnquality.x > 63)))){
btnquality.x = mouseX;
} else {
if (btnquality.x >= 205){
stage.quality = "high";
btnquality.x = 195;
Tfollow.stop();
} else {
if (btnquality.x <= 63){
stage.quality = "low";
btnquality.x = 73;
Tfollow.stop();
};
};
};
};
};
};
}
public function generateuplauncher2(){
var _local1:*;
_local1 = score[0].shopCG.getChildByName(("launcher" + gul2));
trace(_local1);
if (_local1 != null){
if (so.data.money >= Number((hargagul2 * 1000))){
_local1.mcsold.visible = false;
_local1.gotoAndStop("open");
_local1 = score[0].shopCG.getChildByName(("buy" + Number((gul2 + 3))));
_local1.visible = true;
} else {
trace("gbisadibeli");
_local1.mcsold.visible = false;
_local1 = score[0].shopCG.getChildByName(("buy" + Number((gul2 + 3))));
_local1.visible = false;
};
};
}
public function loadgallery(){
var indexke:*;
var overthropy:Function;
var outthropy:Function;
indexke = 1;
i = 0;
while (i < 5) {
j = 0;
while (j < 6) {
overthropy = function (_arg1:MouseEvent):void{
trace("1");
if ((((((((((((((((((((_arg1.target.indexke == 6)) || ((_arg1.target.indexke == 12)))) || ((_arg1.target.indexke == 18)))) || ((_arg1.target.indexke == 24)))) || ((_arg1.target.indexke == 30)))) || ((_arg1.target.indexke == 5)))) || ((_arg1.target.indexke == 11)))) || ((_arg1.target.indexke == 17)))) || ((_arg1.target.indexke == 23)))) || ((_arg1.target.indexke == 29)))){
trace("2");
mcthropy.gotoAndStop(2);
trace("3");
mcthropy.txt1.visible = false;
trace("4");
mcthropy.txt2.visible = true;
trace("5");
trace(("mpe sn : " + thropytext[_arg1.target.indexke]));
mcthropy.txt2.text = thropytext[_arg1.target.indexke];
stage.addEventListener(Event.ENTER_FRAME, followmouse2);
} else {
mcthropy.gotoAndStop(1);
mcthropy.txt2.visible = false;
mcthropy.txt1.visible = true;
mcthropy.txt1.text = thropytext[_arg1.target.indexke];
stage.addEventListener(Event.ENTER_FRAME, followmouse);
};
mcthropy.visible = true;
};
outthropy = function (_arg1:MouseEvent):void{
stage.removeEventListener(Event.ENTER_FRAME, followmouse);
stage.removeEventListener(Event.ENTER_FRAME, followmouse2);
mcthropy.visible = false;
};
trophy[indexke] = new (arraytrophy[indexke]);
addChildAt(trophy[indexke], (getChildIndex(galleryCG) + 1));
trophy[indexke].x = (63 + (j * 75));
trophy[indexke].y = (173 + (i * 137));
trophy[indexke].indexke = indexke;
trophy[indexke].addEventListener(MouseEvent.MOUSE_OVER, overthropy);
trophy[indexke].addEventListener(MouseEvent.MOUSE_OUT, outthropy);
trace(indexke);
indexke = (indexke + 1);
j++;
};
i++;
};
i = 1;
while (i <= 30) {
trophy[i].gotoAndStop((so.data.thropy[i] + 1));
i++;
};
}
public function stoppershakey(_arg1:Event):void{
if (bg[indexshakey].mc1.mc1.currentFrame == bg[indexshakey].mc1.mc1.totalFrames){
stopperkali--;
if (stopperkali <= 0){
stage.removeEventListener(Event.ENTER_FRAME, stoppershakey);
shakeybool = false;
baseground();
};
};
}
public function loadingsoundpop3(_arg1:Event):void{
if (mcpauseimage[0].currentLabel == "pop"){
soundpop.play(0, 1, new SoundTransform(suaraSFX));
};
if (mcpauseimage[0].currentLabel == "pop2"){
soundrubber.play(0, 1, new SoundTransform(suaraSFX));
};
if (mcpauseimage[0].currentFrame == mcpauseimage[0].totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, loadingsoundpop3);
};
}
public function loadingsoundpop2(_arg1:Event):void{
if (optionCG.currentLabel == "pop"){
soundpop.play(0, 1, new SoundTransform(suaraSFX));
};
if (optionCG.currentFrame == optionCG.totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, loadingsoundpop2);
};
}
public function completeHandler(_arg1:Event):void{
traceScore();
}
public function randomalien(){
ra = 1;
while (ra < 6) {
alienarray[ra] = randRange(0, 1);
ra++;
};
if (alienarray[1] == 0){
bg[indexbg].alien1.visible = false;
};
if (alienarray[2] == 0){
bg[indexbg].alien2.visible = false;
};
if (alienarray[3] == 0){
bg[indexbg].alien3.visible = false;
};
if (alienarray[4] == 0){
bg[indexbg].alien4.visible = false;
};
if (alienarray[5] == 0){
bg[indexbg].alien5.visible = false;
};
bg[indexbg].alien1.gotoAndStop(randRange(1, 5));
bg[indexbg].alien2.gotoAndStop(randRange(1, 5));
bg[indexbg].alien3.gotoAndStop(randRange(1, 5));
bg[indexbg].alien4.gotoAndStop(randRange(1, 5));
bg[indexbg].alien5.gotoAndStop(randRange(1, 5));
}
public function generatesoundjump(){
var _local1:*;
_local1 = randRange(1, 2);
if (_local1 == 1){
soundjump1.play(0, 1, new SoundTransform(suaraSFX));
} else {
if (_local1 == 2){
soundjump2.play(0, 1, new SoundTransform(suaraSFX));
};
};
}
public function btnbacktogame(_arg1:MouseEvent):void{
if ((((((shopCG.currentLabel == "launcher")) || ((shopCG.currentLabel == "costume")))) || ((shopCG.currentLabel == "item")))){
gotoAndStop("main menu");
};
}
public function alienmove2(_arg1:TimerEvent):void{
am2 = 0;
while (am2 < ufoindex) {
if (ufo[am2] != null){
if (ufo[am2].tipe == "alien2"){
if (ufo[am2].serang == "ok"){
ufo[am2].x = (ufo[am2].x - ((ufo[am2].posisix - ufo[am2].targetx) / 100));
ufo[am2].y = (ufo[am2].y - ((ufo[am2].posisiy - ufo[am2].targety) / 100));
if ((((ufo[am2].mouth.hitTestObject(penguin[0].foot) == true)) && ((lagiwarp == false)))){
medalindex = 1;
generatemedal();
soundalien.play(0, 1, new SoundTransform(suaraSFX));
stage.removeEventListener(MouseEvent.MOUSE_DOWN, firstjumphold);
Tresultscore.start();
bolepause = false;
Tufospawn.stop();
Talienmove2.stop();
if (ufo[am2].currentLabel == "left"){
ufo[am2].gotoAndPlay("biteleft");
penguin[0].x = (ufo[am2].x - 150);
penguin[0].gotoAndPlay("bitenleft");
} else {
if (ufo[am2].currentLabel == "right"){
ufo[am2].gotoAndPlay("biteright");
penguin[0].x = (ufo[am2].x + 124);
penguin[0].gotoAndPlay("bitenright");
};
};
Tcamerashake.start();
penguin[0].y = (ufo[0].y + 13);
die = true;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
Thitrampolin.stop();
};
if (ufo[am2].y < -147){
medalindex = 25;
generatemedal();
removeChild(ufo[am2]);
ufo[am2] = null;
ufo.splice(am2, 1);
ufoindex--;
};
if (ufo[am2].y > 719){
medalindex = 25;
generatemedal();
removeChild(ufo[am2]);
ufo[am2] = null;
ufo.splice(am2, 1);
ufoindex--;
};
};
};
};
am2++;
};
}
public function judgeT(_arg1:TimerEvent):void{
var temp:*;
var submitgame:Function;
var backtomainmenugame:Function;
var playagaingame:Function;
var shopgame:Function;
var conGF3:Function;
var event = _arg1;
if ((((judge[0].currentLabel == "nilai")) && ((judgetahap == 0)))){
judgetahap = 1;
judge[0].txt1.visible = true;
judge[0].txt2.visible = true;
judge[0].txt3.visible = true;
judgescore = freestyletimes;
judge[0].txt1.text = int(judgescore);
judgescore = (UItemp / 3000);
judge[0].txt2.text = int(judgescore);
judgescore = ((Number(judge[0].txt1.text) + Number(judge[0].txt2.text)) / 2);
judge[0].txt3.text = int(judgescore);
if (Number(judge[0].txt1.text) > 10){
judge[0].txt1.textColor = 0xFF00;
judge[0].txt1.text = ":]";
};
if (Number(judge[0].txt2.text) > 10){
judge[0].txt2.textColor = 0xFF00;
judge[0].txt2.text = "XD";
};
if (Number(judge[0].txt3.text) > 10){
judge[0].txt3.textColor = 0xFF00;
soundfreestyle.play(0, 1, new SoundTransform(suaraSFX));
judge[0].txt3.text = ":p";
};
if (judge[0].txt1.text < 3){
judge[0].txt1.textColor = 0xFF0000;
} else {
if (judge[0].txt1.text < 7){
judge[0].txt1.textColor = 0xFFFF00;
} else {
if (judge[0].txt1.text > 7){
judge[0].txt1.textColor = 0xFF00;
};
};
};
if (judge[0].txt2.text < 3){
judge[0].txt2.textColor = 0xFF0000;
} else {
if (judge[0].txt2.text < 7){
judge[0].txt2.textColor = 0xFFFF00;
} else {
if (judge[0].txt2.text > 7){
judge[0].txt2.textColor = 0xFF00;
};
};
};
if (judge[0].txt3.text < 3){
soundboo.play(0, 1, new SoundTransform(suaraSFX));
judge[0].txt3.textColor = 0xFF0000;
} else {
if (judge[0].txt3.text < 7){
soundboo.play(0, 1, new SoundTransform(suaraSFX));
judge[0].txt3.textColor = 0xFFFF00;
} else {
if (judge[0].txt3.text > 7){
soundfreestyle.play(0, 1, new SoundTransform(suaraSFX));
judge[0].txt3.textColor = 0xFF00;
};
};
};
} else {
if (judgetahap == 1){
judgetime = (judgetime + 10);
if (judgetime >= 1000){
judgetahap = 2;
};
} else {
if (judgetahap == 2){
submitgame = function (_arg1:MouseEvent):void{
soundchannelmainmenu.stop();
lagumaenmenu = false;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tseasoneffect.stop();
cleanup();
gotoAndStop("submit score");
};
backtomainmenugame = function (_arg1:MouseEvent):void{
soundchannelmainmenu.stop();
lagumaenmenu = false;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tseasoneffect.stop();
cleanup();
gotoAndStop("main menu");
};
playagaingame = function (_arg1:MouseEvent):void{
soundchannelmainmenu.stop();
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tseasoneffect.stop();
cleanup();
gotoAndStop("skipper");
};
shopgame = function (_arg1:MouseEvent):void{
steparrow.visible = false;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.visible = true;
};
conGF3 = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
_local2 = new URLRequest("http://www.gamesfree.com");
navigateToURL(_local2);
};
steparrow.visible = false;
judge[0].txt1.visible = false;
judge[0].txt2.visible = false;
judge[0].txt3.visible = false;
judge[0].gotoAndPlay("down");
Tjudge.stop();
score[0] = new (resultmc);
temp = getChildIndex(mcUIimage[0]);
addChildAt(score[0], (getChildIndex(mcUIimage[0]) + 1));
score[0].cacheAsBitmap = true;
score[0].x = 49;
score[0].y = 35;
score[0].txtday.text = ("day " + mcUIimage[0].txt4.text);
score[0].txt1.text = int(UItemp);
score[0].txt2.text = ((freestyletimes + " x 50 = ") + (freestyletimes * 50));
score[0].txt3.text = ((UItemp2 + " x 10 = ") + (UItemp2 * 10));
score[0].txt4.text = 0;
randomstep = 1;
while (randomstep <= combomax) {
score[0].txt4.text = (int(score[0].txt4.text) + int((randomstep * 0.1)));
randomstep++;
};
score[0].txt5.text = (int(((int((UItemp / 2)) + (freestyletimes * 50)) + (UItemp2 * 10))) + int(score[0].txt4.text));
score[0].txt6.text = (int(so.data.money) + int(score[0].txt5.text));
so.data.money = score[0].txt6.text;
if (UItemp > so.data.best){
so.data.best = UItemp;
trace(("TERTINGGI:" + so.data.best));
};
mcUIimage[0].txt3.text = ("Cash: " + so.data.money);
moneycheck();
stopgame();
score[0].shopCG.visible = false;
score[0].shopCG.gotoAndStop(1);
loadshop2();
score[0].btnsubmit.addEventListener(MouseEvent.CLICK, submitgame);
score[0].btnback.addEventListener(MouseEvent.CLICK, backtomainmenugame);
score[0].btnplay.addEventListener(MouseEvent.CLICK, playagaingame);
score[0].btnshop.addEventListener(MouseEvent.CLICK, shopgame);
score[0].btnplaymoregames.addEventListener(MouseEvent.CLICK, conGF3);
loadshopeshope();
loadshope2shope2();
};
};
};
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function arrowdown(_arg1:MouseEvent):void{
trace("turun");
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tfalling.start();
Tflying.stop();
}
public function penguinmovetime2(_arg1:TimerEvent):void{
}
public function moneycheck(){
if (so.data.money > 10000){
medalindex = 19;
generatemedal();
};
if (so.data.money > 50000){
medalindex = 20;
generatemedal();
};
if (so.data.money > 100000){
medalindex = 21;
generatemedal();
};
if (so.data.money > 150000){
medalindex = 22;
generatemedal();
};
}
public function generatebuttonformat2(){
if (lokasiSFX != 0){
mcoptionimage[0].btnSFX.x = (lokasiSFX - 242);
} else {
if (suaraSFX == 0){
mcoptionimage[0].btnSFX.x = (119 - 242);
} else {
if (suaraSFX == 0.2){
mcoptionimage[0].btnSFX.x = (147 - 242);
} else {
if (suaraSFX == 0.4){
mcoptionimage[0].btnSFX.x = (160 - 242);
} else {
if (suaraSFX == 0.6){
mcoptionimage[0].btnSFX.x = (175 - 242);
} else {
if (suaraSFX == 1){
mcoptionimage[0].btnSFX.x = (195 - 242);
trace(mcoptionimage[0].btnSFX.x);
trace("ini");
};
};
};
};
};
};
if (lokasiBGM != 0){
mcoptionimage[0].btnBGM.x = (lokasiBGM - 242);
} else {
if (suaraBGM == 0){
mcoptionimage[0].btnBGM.x = (119 - 242);
} else {
if (suaraBGM == 0.2){
mcoptionimage[0].btnBGM.x = (147 - 242);
} else {
if (suaraBGM == 0.4){
mcoptionimage[0].btnBGM.x = (160 - 242);
} else {
if (suaraBGM == 0.6){
mcoptionimage[0].btnBGM.x = (175 - 242);
} else {
if (suaraBGM == 1){
mcoptionimage[0].btnBGM.x = (195 - 242);
};
};
};
};
};
};
if (lokasiQuality != 0){
mcoptionimage[0].btnquality.x = (lokasiQuality - 242);
} else {
if (stage.quality == "LOW"){
mcoptionimage[0].btnquality.x = (110 - 242);
} else {
if (stage.quality == "MEDIUM"){
mcoptionimage[0].btnquality.x = (150 - 242);
} else {
if (stage.quality == "HIGH"){
mcoptionimage[0].btnquality.x = (195 - 242);
};
};
};
};
}
public function arrowup(_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tflying.start();
Tfalling.stop();
}
function frame4(){
stop();
lokasiSFX = 0;
lokasiBGM = 0;
lokasiQuality = 150;
suaraSFX = 1;
suaraBGM = 1;
lokasigame = "";
lagumaenmenu = false;
soundopening = new openingsound();
soundchannelopening = soundopening.play(0, 0);
stage.scaleMode = StageScaleMode.NO_SCALE;
so = SharedObject.getLocal("Lunixgame");
posmouse = getChildIndex(mouse);
changecursor();
this.addEventListener(Event.ENTER_FRAME, openingCGT);
stage.addEventListener(KeyboardEvent.KEY_DOWN, anykey);
ls = 0;
}
function frame1(){
stop();
stage.quality = "MEDIUM";
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
contextmenu = new ContextMenuItem("Little Giant World");
contextmenu.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, clikLG);
customContextMenu.customItems.push(contextmenu);
contextMenu = customContextMenu;
this.addEventListener(Event.ENTER_FRAME, loading);
if (loaderInfo.url.substring(0, 4) != "file"){
Security.allowDomain("*");
Security.loadPolicyFile("http://track.g-bot.net/crossdomain.xml");
variables2 = new URLVariables();
variables2.id = "lunix";
variables2.ui = loaderInfo.url;
request2 = new URLRequest("http://track.g-bot.net/track.php");
request2.method = "POST";
request2.data = variables2;
loader2 = new URLLoader();
loader2.load(request2);
};
}
function frame5(){
stop();
lokasigame = "MM";
btnGF.addEventListener(MouseEvent.CLICK, conGF2);
hargapenguin = [0, 10, 30, 70];
hargalauncher1 = [20, 15];
hargalauncher2 = [40, 30];
hargalauncher3 = [85, 80];
trace(("posisi mouse : " + getChildIndex(mouse)));
txt1.text = String(getChildIndex(mouse));
newgameimage = new Array();
newgameimage[0] = new (newgamemc);
trace("1");
if (mouse != null){
trace(("adad" + mouse));
};
temp = getChildIndex(mouse);
addChildAt(newgameimage[0], (getChildIndex(mainmenuCG) + 1));
trace("2");
newgameimage[0].x = 670;
newgameimage[0].y = 353;
soundmainmenu = new mainmenusound();
soundshop = new shopsound();
soundnorthpole = new northpolesound();
soundearthquake = new earthquakesound();
soundfalling = new fallingsound();
soundfoodworld = new foodworldsound();
sounddizzy = new dizzysound();
if (lagumaenmenu == false){
lagumaenmenu = true;
soundchannelmainmenu = soundmainmenu.play(0, 999, new SoundTransform(suaraBGM));
};
soundfailed = new failedsound();
soundpurchase = new purchasesound();
soundbutton = new buttonsound();
soundslide = new slidesound();
soundjump1 = new jump1sound();
soundjump2 = new jump2sound();
soundlauncher0 = new launcher0sound();
soundlauncher3 = new launcher3sound();
soundsardines = new sardinessound();
sounddead = new deadsound();
soundufobullet = new ufobulletsound();
soundgrenade = new grenadesound();
soundfreestyle = new freestylesound();
soundwarp = new warpsound();
soundwind = new windsound();
soundalien = new aliensound();
soundboo = new boosound();
soundspike = new spikesound();
soundwee = new weesound();
soundpop = new popsound();
soundpelican = new pelicansound();
soundexplosion1 = new explosion1sound();
soundelectric = new electricsound();
soundrubber = new rubbersound();
soundtank = new tanksound();
soundpause = new pausesound();
soundfish = new fishflysound();
sounddead4 = new dead4sound();
stage.addEventListener(Event.ENTER_FRAME, loadingsoundpop);
medalindex = 0;
medalannounce = new Array();
medalannounce = ["", "1st death medal", "Headplant", "Twinkle little stars", "Bouncy rabbit", "Kickass fly", "Super penguin", "1st pause", "1st credit", "Freestyler", "Cake lover", "Spawnguin", "Jedi knight", "Skycrawler", "Super skycrawler", "Yoda headhunter", "Astronaut", "Planet founder", "Ballerina", "Almost millionaire", "Rookie millionaire", "Master millionaire", "The majesty", "Dissapeared", "Fish beater", "Alien beater", "Napoleon award", "Hitler award", "Armstrong award", "Down to Earth", "Universe bounty hunter"];
diamond = new Array();
diamondindex = 0;
bonusworldtype = "";
temptahapbg = 0;
tempUItemp = 0;
cantemp = 0;
combotemp = 0;
newgameimage[0].mcwarning.btnyes.addEventListener(MouseEvent.CLICK, yesgame);
newgameimage[0].mcwarning.btnno.addEventListener(MouseEvent.CLICK, nogame);
Tmainmenu = new Timer(10);
Tmainmenu.addEventListener(TimerEvent.TIMER, mainmenuT);
Tmainmenu.start();
}
function frame6(){
stop();
lokasigame = "S";
shopCG.txt1.text = so.data.money;
shopCG.mcbaloon.visible = false;
loadshope();
terpilih = 0;
lokasi = "costume";
loadshope2();
shopCG.btnlauncher.addEventListener(MouseEvent.CLICK, btnlauncher);
shopCG.btncostume.addEventListener(MouseEvent.CLICK, costume);
shopCG.btnitem.addEventListener(MouseEvent.CLICK, item);
shopCG.btnbacktomainmenu.addEventListener(MouseEvent.CLICK, backtomainmenu);
shopCG.btnbacktogame.visible = false;
shopCG.btnbacktogame.addEventListener(MouseEvent.CLICK, btnbacktogame);
shopCG.buy1.addEventListener(MouseEvent.MOUSE_OVER, click1);
shopCG.buy1.addEventListener(MouseEvent.MOUSE_OUT, out1);
shopCG.buy1.addEventListener(MouseEvent.MOUSE_UP, buy1);
shopCG.buy2.addEventListener(MouseEvent.MOUSE_OVER, click2);
shopCG.buy2.addEventListener(MouseEvent.MOUSE_OUT, out2);
shopCG.buy2.addEventListener(MouseEvent.MOUSE_DOWN, buy2);
shopCG.buy3.addEventListener(MouseEvent.MOUSE_OVER, click3);
shopCG.buy3.addEventListener(MouseEvent.MOUSE_OUT, out3);
shopCG.buy3.addEventListener(MouseEvent.MOUSE_DOWN, buy3);
shopCG.buy4.addEventListener(MouseEvent.MOUSE_OVER, click4);
shopCG.buy4.addEventListener(MouseEvent.MOUSE_OUT, out4);
shopCG.buy4.addEventListener(MouseEvent.MOUSE_DOWN, buy4);
shopCG.buy5.addEventListener(MouseEvent.MOUSE_OVER, click5);
shopCG.buy5.addEventListener(MouseEvent.MOUSE_OUT, out5);
shopCG.buy5.addEventListener(MouseEvent.MOUSE_DOWN, buy5);
shopCG.buy6.addEventListener(MouseEvent.MOUSE_OVER, click6);
shopCG.buy6.addEventListener(MouseEvent.MOUSE_OUT, out6);
shopCG.buy6.addEventListener(MouseEvent.MOUSE_DOWN, buy6);
shopCG.buy7.addEventListener(MouseEvent.MOUSE_OVER, click7);
shopCG.buy7.addEventListener(MouseEvent.MOUSE_OUT, out7);
shopCG.buy7.addEventListener(MouseEvent.MOUSE_DOWN, buy7);
shopCG.buy8.addEventListener(MouseEvent.MOUSE_OVER, click8);
shopCG.buy8.addEventListener(MouseEvent.MOUSE_OUT, out8);
shopCG.buy8.addEventListener(MouseEvent.MOUSE_DOWN, buy8);
shopCG.buy9.addEventListener(MouseEvent.MOUSE_OVER, click9);
shopCG.buy9.addEventListener(MouseEvent.MOUSE_OUT, out9);
shopCG.buy9.addEventListener(MouseEvent.MOUSE_DOWN, buy9);
shopCG.buy10.addEventListener(MouseEvent.MOUSE_OVER, click10);
shopCG.buy10.addEventListener(MouseEvent.MOUSE_OUT, out10);
shopCG.buy10.addEventListener(MouseEvent.MOUSE_DOWN, buy10);
}
function frame7(){
stop();
lokasigame = "O";
stage.addEventListener(Event.ENTER_FRAME, loadingsoundpop2);
optionCG.gotoAndPlay(2);
optionCG.btnback.visible = false;
generatebuttonformat();
btnBGM.visible = false;
btnSFX.visible = false;
btnquality.visible = false;
follower = 0;
this.addEventListener(Event.ENTER_FRAME, option);
Tfollow = new Timer(10);
Tfollow.addEventListener(TimerEvent.TIMER, follow);
}
function frame9(){
stop();
changecursor();
point = 0;
comboke = 0;
tutorialCG.btncontinue.addEventListener(MouseEvent.MOUSE_DOWN, continuetutorial);
tutorialCG.btnplay.addEventListener(MouseEvent.MOUSE_DOWN, playtutorial);
}
function frame8(){
stop();
lokasigame = "G";
btnarrow2.visible = false;
mcthropy.visible = false;
btnbacktomainmenu.visible = true;
arraytrophy = new Array();
arraytrophy = [undefined, trophy1, trophy2, trophy3, trophy4, trophy5, trophy6, trophy7, trophy8, trophy9, trophy10, trophy11, trophy12, trophy13, trophy14, trophy15, trophy16, trophy17, trophy18, trophy19, trophy20, trophy21, trophy22, trophy23, trophy24, trophy25, trophy26, trophy27, trophy28, trophy29, trophy30];
trophy = new Array();
i = 0;
j = 0;
thropytext = new Array();
thropytext = ["", "Lunnix's first death", "Headplant-death-mode", "Twinkle little stars-death-mode", "Purchase bunny costume", "Purchase fly costume", "Purchase Super costume", "Pause the game", "Watch the credits", "Lunnix's first freestyle", "Reach bonus world", "Complete bonus world 5 times", "Reach U.F.O. HQ", "Reach far-away distance", "Reach far-far-away distances", "Hit the Yoda's head", "Bye-bye Earth", "Reach Planet One", "Ballerina freestyle", "Collecting more than $10000", "Collecting more than $50000", "Collecting more than $100000", "Collecting more than $150000", "Reach Black Hole", "Dodging those blowfish!!", "Dodging those Alien!!", "Purchase Medieval cannon", "Purchase Tank cannon", "Purchase N.A.S.A. rocket launcher", "Down to Earth-death-mode", "Collect all thropy"];
loadgallery();
tempa = getChildIndex(mouse);
btnarrow.addEventListener(MouseEvent.MOUSE_DOWN, arrowdown);
btnarrow.addEventListener(MouseEvent.MOUSE_UP, arrowdown2);
btnarrow2.addEventListener(MouseEvent.MOUSE_DOWN, arrowup);
btnarrow2.addEventListener(MouseEvent.MOUSE_UP, arrowup2);
Tfalling = new Timer(10);
Tfalling.addEventListener(TimerEvent.TIMER, falling);
Tflying = new Timer(10);
Tflying.addEventListener(TimerEvent.TIMER, flying);
btnbacktomainmenu.addEventListener(MouseEvent.CLICK, backtomainmenugallery);
}
public function writerank(){
rank1.text = ("#" + String((Number(loader.data["rank"]) - 3)));
rank2.text = ("#" + String((Number(loader.data["rank"]) - 2)));
rank3.text = ("#" + String((Number(loader.data["rank"]) - 1)));
rank4.text = ("#" + String(Number(loader.data["rank"])));
rank5.text = ("#" + String((Number(loader.data["rank"]) + 1)));
}
function frame2(){
stop();
this.addEventListener(Event.ENTER_FRAME, loadingsplash);
}
public function generateseason(){
se = 0;
while (se < maxsnow) {
seasoneffect[se] = new (snowmc);
addChildAt(seasoneffect[se], (getChildIndex(penguin[0]) + 1));
seasoneffect[se].hit = "false";
seasoneffect[se].x = (Math.random() * 500);
seasoneffect[se].y = (se * 13);
seasoneffect[se].width = randRange(5, 11);
seasoneffect[se].height = seasoneffect[se].width;
snowterakhir = se;
se++;
};
if (temptahapbg == 0){
Tseasoneffect.start();
};
}
public function firstjumphold(_arg1:MouseEvent):void{
mcbonusbox.gotoAndPlay(2);
Twaitbonus.start();
}
public function mainmenuT(_arg1:TimerEvent):void{
var conLG2:Function;
var startgame:Function;
var continuegame:Function;
var shopgame:Function;
var gallerygame:Function;
var optiongame:Function;
var event = _arg1;
if (mainmenuCG.currentFrame == mainmenuCG.totalFrames){
conLG2 = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
};
startgame = function (_arg1:MouseEvent):void{
var _local2:*;
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
if (so.size == 0){
so.data.best = 0;
so.data.score = 0;
so.data.speed = 5;
so.data.can = 0;
so.data.money = 0;
so.data.daye = 0;
so.data.tramp = 0;
so.data.magnet = 75;
so.data.percentagesack = 5;
so.data.percentagegrenade = 5;
so.data.costume0 = 1;
so.data.costume1 = 0;
so.data.costume2 = 0;
so.data.costume3 = 0;
so.data.costumeselect = 0;
so.data.launcher0 = 1;
so.data.launcher1 = 0;
so.data.launcher2 = 0;
so.data.launcher3 = 0;
so.data.launcherselect = 0;
so.data.thropy = new Array();
_local2 = 0;
_local2 = 1;
while (_local2 <= 30) {
so.data.thropy[_local2] = 0;
_local2++;
};
so.data.bonusgame = 5;
removeChild(newgameimage[0]);
newgameimage[0] = null;
gotoAndStop("tutorial");
} else {
if (so.size != 0){
trace("NULL");
trace("NULL2");
newgameimage[0].x = 0;
newgameimage[0].y = 0;
trace("NULL3");
};
};
};
continuegame = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
trace(so.size);
if (so.size != 0){
removeChild(newgameimage[0]);
newgameimage[0] = null;
gotoAndPlay("tutorial");
} else {
if (so.size == 0){
};
};
};
shopgame = function (_arg1:MouseEvent):void{
soundchannelmainmenu.stop();
soundchannelmainmenu = soundshop.play(0, 999, new SoundTransform(suaraBGM));
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
gotoAndStop("shop game");
removeChild(newgameimage[0]);
newgameimage[0] = null;
};
gallerygame = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
gotoAndStop("gallery game");
removeChild(newgameimage[0]);
newgameimage[0] = null;
};
optiongame = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
gotoAndStop("option game");
removeChild(newgameimage[0]);
newgameimage[0] = null;
};
Tmainmenu.stop();
mainmenuCG.stop();
mainmenuCG.btnLG.addEventListener(MouseEvent.CLICK, conLG2);
mainmenuCG.btnstart.addEventListener(MouseEvent.CLICK, startgame);
mainmenuCG.btncontinue.addEventListener(MouseEvent.CLICK, continuegame);
mainmenuCG.btnshop.addEventListener(MouseEvent.CLICK, shopgame);
mainmenuCG.btngallery.addEventListener(MouseEvent.CLICK, gallerygame);
mainmenuCG.btnoption.addEventListener(MouseEvent.CLICK, optiongame);
};
}
public function generatemonster(){
se = randRange(0, 1);
if ((((tahapbg > 17)) && ((tahapbg < 28)))){
if (se == 0){
ubur1.gotoAndPlay(2);
} else {
ubur1.gotoAndPlay(1);
};
} else {
if (tahapbg > 11){
if (se == 0){
meteor1.width = randRange(60, 111);
meteor1.height = meteor1.width;
meteor1.gotoAndPlay(2);
meteor2.width = randRange(60, 111);
meteor2.height = meteor2.width;
meteor2.gotoAndPlay(2);
} else {
meteor3.width = randRange(60, 111);
meteor3.height = meteor3.width;
meteor3.gotoAndPlay(2);
meteor4.width = randRange(60, 111);
meteor4.height = meteor4.width;
meteor4.gotoAndPlay(2);
};
};
};
}
public function generateRandomString(){
var _local1:String;
var _local2:Array;
var _local3:String;
var _local4:Number;
_local1 = "QWERTY";
_local2 = _local1.split("");
_local3 = "";
_local4 = 0;
while (_local4 < 1) {
_local3 = (_local3 + _local2[Math.floor((Math.random() * _local2.length))]);
_local4++;
};
freestyleimage[0].txt1.text = _local3;
}
public function calendarT(_arg1:TimerEvent):void{
if ((((mcUIimage[0].calendar.currentLabel == "remove")) && ((cl == 0)))){
cl = 1;
} else {
if ((((mcUIimage[0].calendar.currentLabel == "change")) && ((cl == 1)))){
cl = 2;
so.data.daye = (so.data.daye + 1);
mcUIimage[0].txt4.text = so.data.daye;
Tcalendar.stop();
};
};
}
public function swappenguinlauncher(_arg1:TimerEvent):void{
soundwind.play(0, 1, new SoundTransform(suaraSFX));
if (penguin[0].y >= 438){
penguin[0].y--;
};
if (launcher[0] != null){
if (launcher[0].currentFrame == launcher[0].totalFrames){
dilauncher = false;
bolepause = true;
Tswappenguinlauncher.stop();
penguin[0].y = 438;
stage.addEventListener(Event.ENTER_FRAME, Ttes);
stage.addEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
penguin[0].visible = true;
};
};
}
public function loadshop(){
if (so.data.costumeselect == 0){
so.data.costumeselect = 1;
shopCG.costume1.mcsold.gotoAndStop(2);
} else {
if (so.data.costumeselect == 1){
so.data.costumeselect = 1;
shopCG.costume1.mcsold.gotoAndStop(2);
} else {
if (so.data.costumeselect == 2){
so.data.costumeselect = 2;
shopCG.costume2.mcsold.gotoAndStop(2);
} else {
if (so.data.costumeselect == 3){
so.data.costumeselect = 3;
shopCG.costume3.mcsold.gotoAndStop(2);
};
};
};
};
if (so.data.launcherselect == 1){
so.data.launcherselect = 1;
shopCG.launcher1.mcsold.gotoAndStop(2);
shopCG.launcher1.mcsold.visible = true;
} else {
if (so.data.launcherselect == 2){
so.data.launcherselect = 2;
shopCG.launcher2.mcsold.gotoAndStop(2);
shopCG.launcher2.mcsold.visible = true;
} else {
if (so.data.launcherselect == 3){
so.data.launcherselect = 3;
shopCG.launcher3.mcsold.gotoAndStop(2);
shopCG.launcher3.mcsold.visible = true;
};
};
};
shopCG.mcitem.number1.text = ("Qty." + so.data.tramp);
shopCG.mcitem.level1.gotoAndStop(int((so.data.percentagegrenade / 5)));
shopCG.mcitem.level2.gotoAndStop(int((so.data.percentagesack / 5)));
shopCG.mcitem.level3.gotoAndStop(int((so.data.magnet / 75)));
shopCG.mcitem.launcherbar1.gotoAndStop(int((so.data.launcher1 + 1)));
shopCG.mcitem.launcherbar2.gotoAndStop(int((so.data.launcher2 + 1)));
shopCG.mcitem.launcherbar3.gotoAndStop(int((so.data.launcher3 + 1)));
if (so.data.costume1 == 1){
shopCG.costume1.gotoAndStop("open-exp");
shopCG.buy1.visible = false;
shopCG.costume1.mcsold.visible = true;
shopCG.buy1.visible = false;
shopCG.mc1.txt1.visible = false;
} else {
shopCG.costume1.mcsold.visible = false;
};
if (so.data.costume2 == 1){
shopCG.costume2.gotoAndStop("open-exp");
shopCG.buy2.visible = false;
shopCG.costume2.mcsold.visible = true;
shopCG.buy2.visible = false;
shopCG.mc2.txt1.visible = false;
} else {
shopCG.costume2.mcsold.visible = false;
};
if (so.data.costume3 == 1){
shopCG.costume3.gotoAndStop("open-exp");
shopCG.buy3.visible = false;
shopCG.costume3.mcsold.visible = true;
shopCG.buy3.visible = false;
shopCG.mc3.txt1.visible = false;
} else {
shopCG.costume3.mcsold.visible = false;
};
if (so.data.launcher1 == 2){
shopCG.buy4.visible = false;
shopCG.launcher1.mcsold.visible = true;
shopCG.buy4.visible = false;
} else {
if (so.data.launcher1 == 0){
shopCG.launcher1.mcsold.visible = false;
};
};
if (so.data.launcher1 == 1){
shopCG.mc4.txt1.text = "$15K";
};
if (so.data.launcher2 == 2){
shopCG.buy5.visible = false;
shopCG.launcher2.mcsold.visible = true;
shopCG.buy5.visible = false;
} else {
if (so.data.launcher2 == 0){
shopCG.launcher2.mcsold.visible = false;
};
};
if (so.data.launcher2 == 1){
shopCG.mc5.txt1.text = "$30K";
};
if (so.data.launcher3 == 2){
shopCG.buy6.visible = false;
shopCG.launcher3.mcsold.visible = true;
shopCG.buy6.visible = false;
} else {
if (so.data.launcher3 == 0){
shopCG.launcher3.mcsold.visible = false;
};
};
if (so.data.launcher3 == 1){
shopCG.mc6.txt1.text = "$80K";
};
if ((((so.data.costume1 == 0)) && ((so.data.money >= 10000)))){
shopCG.costume1.gotoAndStop("open");
shopCG.costume1.mcsold.visible = false;
};
if ((((so.data.costume2 == 0)) && ((so.data.money >= 30000)))){
shopCG.costume2.gotoAndPlay("open");
shopCG.costume2.mcsold.visible = false;
};
if ((((so.data.costume3 == 0)) && ((so.data.money >= 70000)))){
shopCG.costume3.gotoAndPlay("open");
shopCG.costume3.mcsold.visible = false;
};
if (so.data.money >= 20000){
shopCG.launcher1.gotoAndPlay("open");
};
if (so.data.money >= 40000){
shopCG.launcher2.gotoAndPlay("open");
};
if (so.data.money >= 85000){
shopCG.launcher3.gotoAndPlay("open");
};
if (so.data.percentagegrenade >= 20){
shopCG.mcitem.mcsold1.visible = true;
} else {
shopCG.mcitem.mcsold1.visible = false;
};
if (so.data.percentagesack >= 20){
shopCG.mcitem.mcsold2.visible = true;
} else {
shopCG.mcitem.mcsold2.visible = false;
};
if (so.data.magnet >= 300){
shopCG.mcitem.mcsold3.visible = true;
} else {
shopCG.mcitem.mcsold3.visible = false;
};
}
public function anykey(_arg1:KeyboardEvent):void{
soundchannelopening.stop();
this.removeEventListener(Event.ENTER_FRAME, openingCGT);
openingCG.stop();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, anykey);
loadsave();
gotoAndStop("main menu");
}
public function blowfish(_arg1:TimerEvent):void{
bf = ufoindex;
while (bf >= 0) {
if (ufo[bf] != null){
if ((((ufo[bf].tipe == "alien")) && ((lose == false)))){
if (ufo[bf].stat == "wander"){
ufo[bf].wandertime = (ufo[bf].wandertime - 10);
if (ufo[bf].wandertime <= 0){
ufo[bf].attacktime = 1500;
ufo[bf].stat = "attack";
};
if ((((ufo[bf].x < penguin[0].x)) && (!((ufo[bf].currentLabel == "right"))))){
ufo[bf].gotoAndPlay("right");
};
if (ufo[bf].x < penguin[0].x){
ufo[bf].x = (ufo[bf].x + ufo[bf].speed);
} else {
if ((((ufo[bf].x > penguin[0].x)) && (!((ufo[bf].currentLabel == "left"))))){
ufo[bf].gotoAndPlay("left");
};
};
if (ufo[bf].x > penguin[0].x){
ufo[bf].x = (ufo[bf].x - ufo[bf].speed);
};
} else {
if (ufo[bf].stat == "attack"){
ufo[bf].attacktime = (ufo[bf].attacktime - 10);
if (ufo[bf].attacktime <= 0){
ufo[bf].stat = "flyaway";
ufo[bf].gotoAndPlay("left");
};
if ((((ufo[bf].x < penguin[0].x)) && (!((ufo[bf].currentLabel == "biteright"))))){
ufo[bf].gotoAndPlay("biteright");
};
if (ufo[bf].x < penguin[0].x){
ufo[bf].x = (ufo[bf].x + ufo[bf].speed);
} else {
if ((((ufo[bf].x > penguin[0].x)) && (!((ufo[bf].currentLabel == "biteleft"))))){
ufo[bf].gotoAndPlay("biteleft");
};
};
if (ufo[bf].x > penguin[0].x){
ufo[bf].x = (ufo[bf].x - ufo[bf].speed);
};
if (ufo[bf].y > (penguin[0].y - 100)){
ufo[bf].y = (ufo[bf].y - ufo[bf].speed);
};
if ((((ufo[bf].mouth.hitTestObject(penguin[0].foot) == true)) && ((lagiwarp == false)))){
medalindex = 1;
generatemedal();
penguin[0].rotation = 0;
soundalien.play(0, 1, new SoundTransform(suaraSFX));
stage.removeEventListener(MouseEvent.MOUSE_DOWN, firstjumphold);
Tresultscore.start();
bolepause = false;
Tufospawn.stop();
Tblowfish.stop();
if (ufo[bf].currentLabel == "biteleft"){
penguin[0].x = (ufo[bf].x - 100);
penguin[0].gotoAndPlay("bitenleft");
} else {
if (ufo[0].currentLabel == "biteright"){
penguin[0].x = (ufo[bf].x + 85);
penguin[0].gotoAndPlay("bitenright");
};
};
Tcamerashake.start();
penguin[0].y = (ufo[bf].y + 55);
die = true;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
Thitrampolin.stop();
};
} else {
if (ufo[bf].stat == "flyaway"){
if (ufo[bf].y < 550){
ufo[bf].x++;
ufo[bf].y++;
} else {
medalindex = 24;
generatemedal();
removeChild(ufo[bf]);
ufo[bf] = null;
ufo.splice(bf, 1);
ufoindex--;
};
};
};
};
if (ufo[bf] != null){
if (ufo[bf].y > 651){
medalindex = 24;
generatemedal();
removeChild(ufo[bf]);
ufo[bf] = null;
ufo.splice(bf, 1);
ufoindex--;
};
};
};
};
bf--;
};
}
public function shockeffectextended(_arg1:Event):void{
extended--;
if (extended <= 0){
trace("woke bisa lagi");
extended = 125;
comboshock = 0;
faceeffectbool = false;
stage.removeEventListener(Event.ENTER_FRAME, shockeffectextended);
};
}
public function generateopeningspecial(){
var stepindex2:*;
var firstjumphold:Function;
firstjumphold = function (_arg1:MouseEvent):void{
var firstjumprelease:Function;
var event = _arg1;
if (die == false){
firstjumprelease = function (_arg1:MouseEvent):void{
generatesoundjump();
mcUIimage[0].calendar.visible = false;
mcUIimage[0].txt4.visible = false;
if (so.data.tramp > 0){
mcUIimage[0].trampie.visible = true;
mcUIimage[0].txt5.visible = true;
};
saljugerak = true;
bolepause = true;
cameramoveint = so.data.speed;
penguinrangey = cameramoveint;
cameramove = "up";
penguin[0].gotoAndPlay("flyup");
gamestart = true;
dilauncher = false;
begginingrecharge = false;
penguin[0].y = 438;
stage.addEventListener(Event.ENTER_FRAME, Ttes);
stage.addEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, firstjumphold);
stage.removeEventListener(MouseEvent.MOUSE_UP, firstjumprelease);
};
penguin[0].gotoAndStop("push");
stage.addEventListener(MouseEvent.MOUSE_UP, firstjumprelease);
};
};
stepindex2 = 0;
if (temptahapbg < 14){
tipemati = 1;
mcannounce2.mc1.txt1.text = "North Pole";
mcannounce2.gotoAndPlay(2);
generateseason();
stepspasi = 190;
stepindex2 = 0;
} else {
if (temptahapbg < 18){
tipemati = 2;
mcannounce2.mc1.txt1.text = "Space Reached";
mcannounce2.gotoAndPlay(2);
tipemati = 2;
stepspasi = 200;
stepindex2 = 1;
} else {
if (temptahapbg < 29){
tipemati = 3;
mcannounce2.mc1.txt1.text = "Planet-One Reached";
mcannounce2.gotoAndPlay(2);
stepspasi = 380;
stepindex2 = 2;
} else {
if (temptahapbg < 41){
tipemati = 3;
mcannounce2.mc1.txt1.text = "U.F.O. HQ Reached";
mcannounce2.gotoAndPlay(2);
stepspasi = 570;
stepindex2 = 3;
};
};
};
};
gs = 0;
while (gs < 6) {
step[gs] = new (steplist[stepindex2]);
addChildAt(step[gs], (getChildIndex(bg[0]) + 1));
step[gs].cacheAsBitmap = true;
step[gs].step.visible = false;
step[gs].health;
step[gs].hit = 0;
step[gs].posisi = 0;
step[gs].x = randRange((50 + (step[gs].width / 2)), (450 - (step[gs].width / 2)));
if (gs == 0){
step[gs].y = 500;
} else {
step[gs].y = (step[stepterakhir].y - stepspasi);
};
step[gs].tipe = "solid";
step[gs].effect = 1;
stepterakhir = gs;
gs++;
};
penguin[0].x = step[0].x;
penguin[0].y = step[0].y;
stage.addEventListener(MouseEvent.MOUSE_DOWN, firstjumphold);
}
public function backtomainmenuhighscore(_arg1:MouseEvent):void{
gotoAndStop("main menu");
}
public function penguinmovetime(_arg1:TimerEvent):void{
Tpenguinmovetime.stop();
}
public function generatecan2(){
var _local1:*;
_local1 = 0;
canmax = randRange(7, 12);
canmaxbackup = canmax;
gca = 0;
while (gca <= canmax) {
can[gca] = new (canmc);
addChildAt(can[gca], (getChildIndex(penguin[0]) + 1));
can[gca].cacheAsBitmap = true;
if (gca == 0){
can[gca].x = randRange(29, 473);
can[gca].y = 0;
can[gca].step.visible = false;
can[gca].ok = 0;
_local1 = gca;
} else {
can[gca].x = randRange((can[_local1].x - 50), (can[_local1].x + 50));
if (can[gca].x < 29){
can[gca].x = 29;
} else {
if (can[gca].x > 473){
can[gca].x = 473;
};
};
can[gca].y = (can[_local1].y - 50);
can[gca].step.visible = false;
can[gca].ok = 0;
_local1 = gca;
};
gca++;
};
}
public function submitScore(){
var variables:URLVariables;
variables = new URLVariables();
variables.kode_game = "LU";
variables.flash = 1;
variables.name = txt1.text;
variables.level = so.data.daye;
itungscore();
variables.score = so.data.score;
trace(((((variables.name + "-") + variables.score) + "-") + variables.level));
requestku = new URLRequest();
requestku.url = "http://www.littlegiantworld.com/highscore/new_score.php";
requestku.method = URLRequestMethod.POST;
requestku.data = variables;
try {
txt1.text = "success";
URLRequestMethodExample();
} catch(e:Error) {
};
}
public function penguinmovepointer2(_arg1:TimerEvent):void{
}
public function penguinblur(){
if (cameramove == "up"){
if (cameramoveint < 10){
shadow.blurX = 0;
shadow.blurY = 0;
} else {
if (cameramoveint < 20){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 1;
shadow.blurY = 1;
} else {
if (cameramoveint < 40){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 2;
shadow.blurY = 2;
} else {
if (cameramoveint < 60){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 3;
shadow.blurY = 3;
} else {
if (cameramoveint < 80){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 4;
shadow.blurY = 4;
} else {
if ((((cameramoveint < 100)) || ((cameramoveint >= 100)))){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 5;
shadow.blurY = 5;
};
};
};
};
};
};
} else {
if (cameramove == "down"){
if (cameramoveint > -10){
shadow.blurX = 0;
shadow.blurY = 0;
} else {
if (cameramoveint > -20){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 1;
shadow.blurY = 1;
} else {
if (cameramoveint > -40){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 2;
shadow.blurY = 2;
} else {
if (cameramoveint > -60){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 3;
shadow.blurY = 3;
} else {
if (cameramoveint > -80){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 4;
shadow.blurY = 4;
} else {
if (cameramoveint > -100){
soundwind.play(0, 1, new SoundTransform(suaraSFX));
shadow.blurX = 5;
shadow.blurY = 5;
};
};
};
};
};
};
};
};
penguin[0].filters = [shadow];
}
public function generatebonusstep(){
if (bonusworldtype == "happy"){
gs = 0;
while (gs < 6) {
randomstep = randRange(1, 2);
if (randomstep == 1){
step[gs] = new (lvlbonus1step1mc);
} else {
if (randomstep == 2){
step[gs] = new (lvlbonus1step2mc);
};
};
addChildAt(step[gs], (getChildIndex(penguin[0]) - 1));
step[gs].cacheAsBitmap = true;
step[gs].x = randRange((100 + (step[gs].width / 2)), (450 - (step[gs].width / 2)));
step[gs].y = (200 - (gs * 200));
step[gs].step.visible = false;
step[gs].posisi = 0;
step[gs].hit = 0;
stepterakhir = gs;
gs++;
};
};
}
public function generatedust(){
var dustremover:Function;
dustremover = function (_arg1:Event):void{
var _local2:*;
_local2 = _arg1.target;
if (_local2.currentFrame == _local2.totalFrames){
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, dustremover);
dust[0] = null;
};
};
dust[0] = new (dustmc);
addChildAt(dust[0], (getChildIndex(penguin[0]) + 1));
dust[0].x = penguin[0].x;
dust[0].y = (penguin[0].y - 10);
dust[0].gotoAndPlay(1);
dust[0].addEventListener(Event.ENTER_FRAME, dustremover);
}
public function penguinfallingT(_arg1:TimerEvent):void{
if (launcher[0] != null){
launcher[0].y = 384;
};
penguin[0].y = (penguin[0].y + temp2);
if (penguin[0].y > 500){
if (soundchannelanehaneh != null){
soundchannelanehaneh.stop();
};
Tpenguinfalling.stop();
penguin[0].rotation = 0;
penguin[0].y = 526;
penguin[0].filters = null;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tfreestyle.stop();
if (tipemati == 1){
soundchanneldizzy = sounddizzy.play(0, 999, new SoundTransform(suaraSFX));
medalindex = 3;
generatemedal();
penguin[0].gotoAndPlay("dead2");
sounddead.play(0, 1, new SoundTransform(suaraSFX));
} else {
if (tipemati == 2){
medalindex = 2;
generatemedal();
penguin[0].gotoAndPlay("dead1");
sounddead.play(0, 1, new SoundTransform(suaraSFX));
} else {
if (tipemati == 3){
medalindex = 29;
generatemedal();
penguin[0].gotoAndPlay("dead4");
sounddead4.play(0, 1, new SoundTransform(suaraSFX));
};
};
};
medalindex = 1;
generatemedal();
Tcamerashake.start();
shakeybool = true;
if (bg[0] != null){
if (bg[0].land == 0){
indexshakey = 0;
};
};
if (bg[1] != null){
if (bg[1].land == 0){
indexshakey = 1;
};
};
baseground();
stage.addEventListener(Event.ENTER_FRAME, stoppershakey);
};
}
public function costume(_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
if (shopCG.currentLabel == "launcher"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
shopCG.gotoAndPlay("tocostume");
} else {
if (shopCG.currentLabel == "item"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
shopCG.gotoAndPlay("tocostume2");
};
};
}
public function clikLG(_arg1:ContextMenuEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
}
public function cleanup2(){
trace("1");
cu = 0;
while (cu < 2) {
if (bg[cu] != null){
trace(("remove bg ke : " + cu));
removeChild(bg[cu]);
bg[cu] = null;
};
cu++;
};
trace("2");
cu = 0;
while (cu < 6) {
if (step[cu] != null){
removeChild(step[cu]);
step[cu] = null;
};
if (sack[cu] != null){
removeChild(sack[cu]);
sack[cu] = null;
};
cu++;
};
trace("3");
cu = 0;
while (cu <= canmax) {
if (can[cu] != null){
removeChild(can[cu]);
can[cu] = null;
canmaxbackup--;
};
cu++;
};
trace("4");
if (score[0] != null){
removeChild(score[0]);
score[0] = null;
};
trace("5");
if (penguin[0] != null){
removeChild(penguin[0]);
penguin[0] = null;
};
trace("6");
if (mcUIimage[0] != null){
removeChild(mcUIimage[0]);
mcUIimage[0] = null;
};
trace("7");
if (mcpauseimage[0] != null){
removeChild(mcpauseimage[0]);
mcpauseimage[0] = null;
};
trace("8");
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pausebonusgame);
trace("9");
}
public function camerabg2T(_arg1:TimerEvent):void{
}
public function freestyleT(_arg1:TimerEvent):void{
Tfreestyle.stop();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, freestylekeyboard);
freestyle();
}
public function generatediamond(){
diamond[diamondindex] = new (diamondmc);
addChildAt(diamond[diamondindex], (getChildIndex(mouse) - 1));
diamond[diamondindex].x = (528 + randRange(20, 0));
diamond[diamondindex].y = 46;
diamondindex++;
}
public function cekpricelauncher(){
if (cpl == 1){
cplprice = hargalauncher1[so.data.launcher1];
} else {
if (cpl == 2){
cplprice = hargalauncher2[so.data.launcher2];
} else {
if (cpl == 3){
cplprice = hargalauncher3[so.data.launcher3];
};
};
};
}
public function ufospawn(_arg1:TimerEvent):void{
spawntime++;
if (spawntime >= levelspawntime[levelspawntimeindex]){
generateufo();
spawntime = 0;
};
}
public function faceeffect(){
if (faceeffectimage[0] != null){
stage.removeEventListener(Event.ENTER_FRAME, shockeffectstopper);
removeChild(faceeffectimage[0]);
faceeffectimage[0] = null;
};
faceeffecttype = randRange(1, 3);
faceeffectimage[0] = new (shockpenguinmc);
addChildAt(faceeffectimage[0], (getChildIndex(mouse) - 1));
faceeffectimage[0].cacheAsBitmap = true;
faceeffectimage[0].x = 133;
faceeffectimage[0].y = 422;
trace(("RANDOMNYA: " + faceeffecttype));
faceeffectimage[0].ab.gotoAndPlay(faceindex[faceeffecttype]);
faceeffecttype = randRange(0, (randomtext.length - 1));
faceeffectimage[0].txt1.text = randomtext[faceeffecttype];
stage.addEventListener(Event.ENTER_FRAME, shockeffectstopper);
}
public function generateufo(){
var _local1:*;
if (tipeufo == "ufo"){
ufo[ufoindex] = new (UFOmc);
ufo[ufoindex].tipe = "ufo";
ufo[ufoindex].attack = 0;
} else {
if (tipeufo == "alien"){
ufo[ufoindex] = new (evilblowfishmc);
ufo[ufoindex].mouth.visible = false;
ufo[ufoindex].tipe = "alien";
} else {
if (tipeufo == "alien2"){
ufo[ufoindex] = new (alienfishmc);
ufo[ufoindex].mouth.visible = false;
ufo[ufoindex].tipe = "alien2";
ufo[ufoindex].serang = "no";
ufo[ufoindex].arah = 0;
} else {
if (tipeufo == "alienmix"){
randomalienmix = randRange(0, 1);
if (randomalienmix == 0){
ufo[ufoindex] = new (UFOmc);
ufo[ufoindex].tipe = "ufo";
ufo[ufoindex].attack = 0;
} else {
if (randomalienmix == 1){
ufo[ufoindex] = new (alienfishmc);
ufo[ufoindex].mouth.visible = false;
ufo[ufoindex].tipe = "alien2";
ufo[ufoindex].serang = "no";
};
};
};
};
};
};
addChildAt(ufo[ufoindex], (getChildIndex(penguin[0]) - 1));
ufo[ufoindex].cacheAsBitmap = true;
_local1 = randRange(0, 1);
if (_local1 == 0){
ufo[ufoindex].gotoAndPlay("right");
ufo[ufoindex].x = (0 - (ufo[ufoindex].width / 2));
ufo[ufoindex].arah = 1;
ufo[ufoindex].speed = 4;
} else {
if (_local1 == 1){
ufo[ufoindex].gotoAndPlay("left");
ufo[ufoindex].x = (500 - (ufo[ufoindex].width / 2));
ufo[ufoindex].arah = 0;
ufo[ufoindex].speed = -4;
};
};
if (tipeufo == "ufo"){
ufo[ufoindex].y = 60;
ufo[ufoindex].chasespeed = 5;
Tufomove.start();
} else {
if (tipeufo == "alien"){
ufo[ufoindex].y = 572;
ufo[ufoindex].speed = 1;
ufo[ufoindex].wandertime = 4000;
ufo[ufoindex].stat = "wander";
ufo[ufoindex].chasespeed = 7;
Tblowfish.start();
} else {
if (tipeufo == "alien2"){
ufo[ufoindex].y = 652;
ufo[ufoindex].attack = randRange(2, 5);
ufo[ufoindex].chasespeed = 8;
Talienmove.start();
} else {
if (tipeufo == "alienmix"){
if (randomalienmix == 0){
ufo[ufoindex].y = 60;
ufo[ufoindex].chasespeed = 5;
Tufomove.start();
} else {
ufo[ufoindex].y = 652;
ufo[ufoindex].attack = randRange(2, 5);
ufo[ufoindex].chasespeed = 8;
Talienmove.start();
};
};
};
};
};
ufoindex++;
}
public function swappenguinlauncher2(_arg1:TimerEvent):void{
pm = canmax;
while (pm >= 0) {
if (can[pm] != null){
if (can[pm].ok == 0){
if ((((((can[pm].y > (launcher[0].y - so.data.magnet))) && ((can[pm].y < launcher[0].y)))) || ((((can[pm].y < (launcher[0].y + so.data.magnet))) && ((can[pm].y > launcher[0].y)))))){
if ((((can[pm].x < (launcher[0].x + so.data.magnet))) && ((can[pm].x > launcher[0].x)))){
canmovementindex = pm;
canmovement();
} else {
if ((((can[pm].x > (launcher[0].x - so.data.magnet))) && ((can[pm].x < launcher[0].x)))){
canmovementindex = pm;
canmovement();
};
};
};
};
};
pm--;
};
soundwind.play(0, 1, new SoundTransform(suaraSFX));
cameramoveint--;
spl++;
if (launcher[0] != null){
if (spl >= (cameramoveinttemp / 6)){
spl = 0;
if (launcher[0].tahap == 1){
soundexplosion1.play(0, 1, new SoundTransform(suaraSFX));
launcher[0].gotoAndPlay("wing1");
launcher[0].tahap++;
} else {
if (launcher[0].tahap == 2){
soundexplosion1.play(0, 1, new SoundTransform(suaraSFX));
launcher[0].gotoAndPlay("wing2");
launcher[0].tahap++;
} else {
if (launcher[0].tahap == 3){
soundexplosion1.play(0, 1, new SoundTransform(suaraSFX));
launcher[0].gotoAndPlay("head1");
launcher[0].tahap++;
} else {
if (launcher[0].tahap == 4){
soundexplosion1.play(0, 1, new SoundTransform(suaraSFX));
launcher[0].gotoAndPlay("body1");
penguinchildtemp = getChildIndex(penguin[0]);
penguin[0].visible = true;
penguin[0].gotoAndPlay("nasa");
launcher[0].tahap++;
} else {
if (launcher[0].tahap == 5){
soundexplosion1.play(0, 1, new SoundTransform(suaraSFX));
launcher[0].gotoAndPlay("body2");
launcher[0].tahap++;
stage.addEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
} else {
if (launcher[0].tahap == 6){
soundpop.play(0, 1, new SoundTransform(suaraSFX));
dilauncher = false;
removeChild(launcher[0]);
launcher[0] = null;
bolepause = true;
Tswappenguinlauncher2.stop();
penguin[0].y = 438;
stage.addEventListener(Event.ENTER_FRAME, Ttes);
penguin[0].visible = true;
};
};
};
};
};
};
};
};
}
public function loadingsplash(_arg1:Event):void{
var clikGF:Function;
var clikLG:Function;
var e = _arg1;
if (preloaderlogo.currentLabel == "GF"){
clikGF = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesfree.com");
navigateToURL(_local2);
};
preloaderlogo.connectbtn.addEventListener(MouseEvent.CLICK, clikGF);
};
if (preloaderlogo.currentLabel == "LG"){
clikLG = function (_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.littlegiantworld.com");
navigateToURL(_local2);
};
preloaderlogo.connectbtn.addEventListener(MouseEvent.CLICK, clikLG);
};
if (preloaderlogo.currentFrame == preloaderlogo.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, loadingsplash);
gotoAndPlay("preloader2");
};
}
public function cleanup(){
trace("1");
cu = 0;
while (cu < 2) {
if (bg[cu] != null){
removeChild(bg[cu]);
bg[cu] = null;
};
cu++;
};
trace("2");
cu = 0;
while (cu < 6) {
if (step[cu] != null){
if (step[cu].tipe == "tesla"){
step[cu].mctesla.stop();
};
removeChild(step[cu]);
step[cu] = null;
};
cu++;
};
trace("3");
if (launcher[0] != null){
removeChild(launcher[0]);
launcher[0] = null;
};
trace("4");
if (penguin[0] != null){
removeChild(penguin[0]);
penguin[0] = null;
};
trace("5");
cu = 0;
while (cu < 2) {
if (cloud[cu] != null){
removeChild(cloud[cu]);
cloud[cu] = null;
};
cu++;
};
trace("6");
if (trampolinbackup[0] != null){
removeChild(trampolinbackup[0]);
trampolinbackup[0] = null;
};
trace("7");
cu = 0;
while (cu < ufoindex) {
if (ufo[cu] != null){
removeChild(ufo[cu]);
ufo[cu] = null;
};
cu++;
};
trace("8");
cu = 0;
while (cu <= canmax) {
if (can[cu] != null){
removeChild(can[cu]);
can[cu] = null;
canmaxbackup--;
};
cu++;
};
trace("9");
if (score[0] != null){
removeChild(score[0]);
score[0] = null;
};
trace("10");
cu = 0;
while (cu < comboindex) {
if (comboimage[cu] != null){
removeChild(comboimage[cu]);
comboimage[cu] = null;
};
cu++;
};
trace("11");
if (freestyleimage[0] != null){
removeChild(freestyleimage[0]);
freestyleimage[0] = null;
};
trace("12");
trace("13");
trace("14");
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pausegame);
trace("15");
cu = 0;
while (cu < maxsnow) {
if (seasoneffect[cu] != null){
removeChild(seasoneffect[cu]);
seasoneffect[cu] = null;
};
cu++;
};
trace("16");
cu = 0;
while (cu < 6) {
if (grenade[cu] != null){
removeChild(grenade[cu]);
grenade[cu] = null;
};
if (sack[cu] != null){
removeChild(sack[cu]);
sack[cu] = null;
};
if (warpdoor[cu] != null){
removeChild(warpdoor[cu]);
warpdoor[cu] = null;
};
cu++;
};
trace("17");
if (bonusworldannouncement[0] != null){
removeChild(bonusworldannouncement[0]);
bonusworldannouncement[0] = null;
};
trace("18");
if (bonusworldannouncement[1] != null){
removeChild(bonusworldannouncement[1]);
bonusworldannouncement[1] = null;
};
trace("19");
if (step[99] != null){
step[99].stop();
removeChild(step[99]);
step[99] = null;
};
trace("20");
if (mcUIimage[0] != null){
removeChild(mcUIimage[0]);
mcUIimage[0] = null;
};
trace("21");
if (mcpauseimage[0] != null){
removeChild(mcpauseimage[0]);
mcpauseimage[0] = null;
};
trace("22");
cu = 0;
while (cu < ufobulletindex) {
if (ufobullet[cu] != null){
removeChild(ufobullet[cu]);
ufobullet[cu] = null;
};
cu++;
};
trace("23");
if (judge[0] != null){
removeChild(judge[0]);
judge[0] = null;
};
trace("23");
if (step[98] != null){
removeChild(step[98]);
step[98] = null;
};
trace("24");
if (faceeffectimage[0] != null){
removeChild(faceeffectimage[0]);
faceeffectimage[0] = null;
};
trace("24");
if (soundchanneldizzy != null){
soundchanneldizzy.stop();
};
}
public function recharge(_arg1:TimerEvent):void{
if (naek == true){
launcher[0].mcrecharge.bar.height = (launcher[0].mcrecharge.bar.height + naekint);
naekint = (naekint + 2);
if (launcher[0].mcrecharge.bar.height >= 220){
launchermax = true;
};
if (launcher[0].mcrecharge.bar.height >= 240){
naek = false;
};
} else {
if (naek == false){
if (launcher[0].mcrecharge.bar.height < 220){
launchermax = false;
};
launcher[0].mcrecharge.bar.height = (launcher[0].mcrecharge.bar.height - naekint);
naekint = (naekint - 2);
if (launcher[0].mcrecharge.bar.height <= 3){
naekint = 3;
naek = true;
};
};
};
}
public function penguinmovepointer(_arg1:TimerEvent):void{
}
public function penguinmovepointerframe(_arg1:Event):void{
penguin[0].y = 438;
if (penguinstat == "bomb"){
penguin[0].rotation = (penguin[0].rotation + (4 * 4));
if (explosiongrenademc.currentFrame == explosiongrenademc.totalFrames){
explosiongrenademc.visible = true;
explosiongrenademc.gotoAndPlay(1);
explosiongrenademc.mc1.gotoAndPlay(1);
explosiongrenademc.x = penguin[0].x;
explosiongrenademc.y = penguin[0].y;
};
};
if (penguingetslippedbool == false){
if (penguin[0].x < (mouse.x - 6)){
if (cameramove == "up"){
if (((((!((penguinstat == "flyup"))) && (!((penguinstat == "bomb"))))) && (!((penguinstat == "fishie"))))){
penguinstat = "flyup";
penguin[0].gotoAndPlay("flyup");
};
} else {
if (cameramove == "down"){
if (((((!((penguinstat == "flydown"))) && (!((penguinstat == "bomb"))))) && (!((penguinstat == "fishie"))))){
penguinstat = "flydown";
penguin[0].gotoAndPlay("flydown");
};
};
};
penguin[0].rotation = (penguin[0].rotation + (0.3 * 4));
penguin[0].x = (penguin[0].x + (penguinspeed * 4));
if (penguin[0].x > (mouse.x - 6)){
penguin[0].x = (mouse.x - 6);
};
} else {
if (penguin[0].x > (mouse.x + 6)){
if (cameramove == "up"){
if (((((!((penguinstat == "flyup2"))) && (!((penguinstat == "bomb"))))) && (!((penguinstat == "fishie"))))){
penguinstat = "flyup2";
penguin[0].gotoAndPlay("flyup2");
};
} else {
if ((((cameramove == "down")) && (((((!((penguinstat == "flydown2"))) && (!((penguinstat == "bomb"))))) && (!((penguinstat == "fishie"))))))){
if (((((!((penguinstat == "flydown2"))) && (!((penguinstat == "bomb"))))) && (!((penguinstat == "fishie"))))){
penguinstat = "flydown2";
penguin[0].gotoAndPlay("flydown2");
};
};
};
penguin[0].rotation = (penguin[0].rotation - (0.3 * 4));
penguin[0].x = (penguin[0].x - (penguinspeed * 4));
if (penguin[0].x < (mouse.x + 6)){
penguin[0].x = (mouse.x + 6);
};
};
};
};
pm = canmax;
while (pm >= 0) {
if (can[pm] != null){
if (can[pm].ok == 0){
if ((((((can[pm].y > (penguin[0].y - so.data.magnet))) && ((can[pm].y < penguin[0].y)))) || ((((can[pm].y < (penguin[0].y + so.data.magnet))) && ((can[pm].y > penguin[0].y)))))){
if ((((can[pm].x < (penguin[0].x + so.data.magnet))) && ((can[pm].x > penguin[0].x)))){
canmovementindex = pm;
canmovement();
} else {
if ((((can[pm].x > (penguin[0].x - so.data.magnet))) && ((can[pm].x < penguin[0].x)))){
canmovementindex = pm;
canmovement();
};
};
};
};
};
pm--;
};
if (cameramove == "down"){
if (step[98] != null){
if (penguin[0].foot.hitTestObject(step[98].step) == true){
soundpelican.play(0, 1, new SoundTransform(suaraSFX));
hittrampolinbool = true;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
trampoindex = 98;
penguin[0].visible = false;
penguin[0].x = step[98].x;
penguin[0].y = step[98].y;
step[98].gotoAndPlay("trampolin");
step[98].stat = "jump";
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Thitrampolin.start();
};
};
pm = 0;
while (pm < 6) {
if (step[pm] != null){
if (warpdoor[pm] != null){
if (penguin[0].hitTestObject(warpdoor[pm].step) == true){
if (lagiwarp == false){
lagiwarp = true;
soundwarp.play(0, 1, new SoundTransform(suaraSFX));
bolepause = false;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
penguin[0].x = warpdoor[pm].x;
penguin[0].y = (warpdoor[pm].y - 80);
penguin[0].gotoAndPlay("flydown");
indexwarp = pm;
bolepause = false;
Tpenguintwist.start();
};
};
};
if (sack[pm] != null){
if (sack[pm].ok == 0){
if (penguin[0].foot.hitTestObject(sack[pm]) == true){
sackmovementindex = pm;
sackmovement();
};
};
};
if (step[pm].currentLabel == "solid"){
if (penguin[0].foot.hitTestObject(step[pm].step) == true){
Tpenguinmovetime.stop();
Tpenguinmovetime.reset();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
testes = 3;
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
Tcamerabg.stop();
Tcamerabg.reset();
generatesoundjump();
generatedust();
if (step[pm].hit == 0){
step[pm].hit = 1;
generatecomboimage();
} else {
comboke = 0;
};
penguin[0].gotoAndPlay("landing");
if (step[pm].effect == 3){
if (penguingetslippedbool == false){
};
} else {
if (step[pm].tipe == "breakable"){
step[pm].gotoAndPlay("break");
step[pm].rusak = 1;
} else {
if (step[pm].effect == 6){
step[pm].gotoAndPlay(2);
} else {
if (step[pm].effect == 7){
medalindex = 15;
generatemedal();
step[pm].gotoAndPlay(2);
};
};
};
};
penguin[0].rotation = 0;
cameramoveint = so.data.speed;
tempcameramoveint = cameramoveint;
penguinrangey = (cameramoveint + 1);
cameramove = "up";
stepindex = pm;
cekstephealth();
stage.addEventListener(Event.ENTER_FRAME, Ttes);
stage.addEventListener(Event.ENTER_FRAME, Ttes2);
pm = 6;
};
} else {
if (step[pm].currentLabel == "tesla"){
if (penguin[0].foot.hitTestObject(step[pm].tesla) == true){
medalindex = 1;
generatemedal();
soundelectric.play(0, 1, new SoundTransform(suaraSFX));
Tresultscore.start();
bolepause = false;
penguin[0].gotoAndPlay("hurt2");
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
pm = 6;
} else {
if (penguin[0].foot.hitTestObject(step[pm].step) == true){
generatesoundjump();
generatedust();
if (step[pm].hit == 0){
step[pm].hit = 1;
generatecomboimage();
} else {
comboke = 0;
};
penguin[0].gotoAndPlay("landing");
penguin[0].rotation = 0;
cameramoveint = so.data.speed;
tempcameramoveint = cameramoveint;
penguinrangey = (cameramoveint + 1);
cameramove = "up";
pm = 6;
};
};
} else {
if (step[pm].currentLabel == "trampolin"){
if (penguin[0].foot.hitTestObject(step[pm].step) == true){
hittrampolinbool = true;
trampolinbackup[0] = new (lvl1step7cutmc);
addChildAt(trampolinbackup[0], (getChildIndex(penguin[0]) + 1));
trampolinbackup[0].cacheAsBitmap = true;
trampolinbackup[0].x = step[pm].x;
trampolinbackup[0].y = step[pm].y;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
trampoindex = pm;
penguin[0].x = step[pm].x;
penguin[0].y = step[pm].y;
step[pm].gotoAndPlay(2);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Thitrampolin.start();
};
} else {
if ((((step[pm].currentLabel == "spike1")) || ((step[pm].currentLabel == "spike2")))){
if (penguin[0].foot.hitTestObject(step[pm].spike) == true){
medalindex = 1;
generatemedal();
soundspike.play(0, 1, new SoundTransform(suaraSFX));
bolepause = false;
step[pm].mcblood.visible = true;
step[pm].mcblood.gotoAndPlay(2);
penguin[0].gotoAndPlay("hurt1");
penguin[0].x = step[pm].x;
penguin[0].y = (step[pm].y - 10);
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
die = true;
Tresultscore.start();
break;
};
if (penguin[0].foot.hitTestObject(step[pm].step) == true){
generatesoundjump();
generatedust();
if (step[pm].hit == 0){
step[pm].hit = 1;
generatecomboimage();
} else {
comboke = 0;
};
penguin[0].gotoAndPlay("landing");
penguin[0].rotation = 0;
cameramoveint = so.data.speed;
tempcameramoveint = cameramoveint;
penguinrangey = (cameramoveint + 1);
cameramove = "up";
pm = 6;
};
} else {
if (step[pm].currentLabel == "trampolin2"){
if (penguin[0].foot.hitTestObject(step[pm].step) == true){
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
trampoindex = pm;
penguin[0].x = step[pm].x;
penguin[0].y = step[pm].y;
step[pm].gotoAndPlay(2);
Thitrampolin.start();
};
} else {
if (step[pm].currentLabel == "glue"){
if (penguin[0].foot.hitTestObject(step[pm].glue) == true){
medalindex = 1;
generatemedal();
Tresultscore.start();
bolepause = false;
step[pm].mclengket.gotoAndPlay(2);
penguin[0].x = step[pm].x;
penguin[0].y = (step[pm].y - 32);
penguin[0].gotoAndPlay("hurt1");
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
pm = 6;
} else {
if (penguin[0].foot.hitTestObject(step[pm].step) == true){
generatesoundjump();
stepindex = pm;
cekstephealth();
generatedust();
if (step[pm].hit == 0){
step[pm].hit = 1;
generatecomboimage();
} else {
comboke = 0;
};
penguin[0].rotation = 0;
penguin[0].gotoAndPlay("landing");
cameramoveint = so.data.speed;
tempcameramoveint = cameramoveint;
penguinrangey = (cameramoveint + 1);
cameramove = "up";
pm = 6;
};
};
};
};
};
};
};
};
if (grenade[pm] != null){
if (penguin[0].hitTestObject(grenade[pm]) == true){
comboshock++;
if (comboshock == 1){
faceeffectbool = true;
stage.addEventListener(Event.ENTER_FRAME, shockeffectextended);
} else {
if (comboshock > 1){
if (faceeffectbool == true){
stage.removeEventListener(Event.ENTER_FRAME, shockeffectextended);
faceeffect();
};
};
};
if (grenade[pm].tipe == 0){
removeChild(grenade[pm]);
grenade[pm] = null;
soundgrenade.play(0, 1, new SoundTransform(suaraSFX));
penguinstat = "bomb";
penguin[0].gotoAndPlay("hurt1");
penguin[0].rotation = 0;
cameramoveint = (so.data.speed * 2);
} else {
if ((((grenade[pm].tipe == 1)) && ((hittrampolinbool == false)))){
soundpause.play(0, 1, new SoundTransform(suaraSFX));
soundwee.play(0, 1, new SoundTransform(suaraSFX));
grenade[pm].visible = false;
penguinstat = "fishie";
penguin[0].gotoAndPlay("balon1");
cameramoveint = so.data.speed;
};
};
tempcameramoveint = cameramoveint;
penguinrangey = cameramoveint;
cameramove = "up";
break;
};
};
};
pm++;
};
};
}
public function loadshop2(){
var btnlauncher2:Function;
var costume2:Function;
var item2:Function;
var backtomainmenu2:Function;
var btnbacktogame2:Function;
var click11:Function;
var out11:Function;
var buy11:Function;
var click22:Function;
var out22:Function;
var buy22:Function;
var click33:Function;
var out33:Function;
var buy33:Function;
var click44:Function;
var out44:Function;
var buy44:Function;
var click55:Function;
var out55:Function;
var buy55:Function;
var click66:Function;
var out66:Function;
var buy66:Function;
var click77:Function;
var out77:Function;
var buy77:Function;
var click88:Function;
var out88:Function;
var buy88:Function;
var click99:Function;
var out99:Function;
var buy99:Function;
var click1010:Function;
var out1010:Function;
var buy1010:Function;
btnlauncher2 = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
if (score[0].shopCG.currentLabel == "costume"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.gotoAndPlay("tolauncher");
} else {
if (score[0].shopCG.currentLabel == "item"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.gotoAndPlay("tolauncher2");
};
};
};
costume2 = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
if (score[0].shopCG.currentLabel == "launcher"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.gotoAndPlay("tocostume");
} else {
if (score[0].shopCG.currentLabel == "item"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.gotoAndPlay("tocostume2");
};
};
};
item2 = function (_arg1:MouseEvent):void{
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
if (score[0].shopCG.currentLabel == "costume"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.gotoAndPlay("toitem");
} else {
if (score[0].shopCG.currentLabel == "launcher"){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.gotoAndPlay("toitem2");
};
};
};
backtomainmenu2 = function (_arg1:MouseEvent):void{
if ((((((score[0].shopCG.currentLabel == "launcher")) || ((score[0].shopCG.currentLabel == "costume")))) || ((score[0].shopCG.currentLabel == "item")))){
gotoAndStop("main menu");
};
};
btnbacktogame2 = function (_arg1:MouseEvent):void{
if ((((((score[0].shopCG.currentLabel == "launcher")) || ((score[0].shopCG.currentLabel == "costume")))) || ((score[0].shopCG.currentLabel == "item")))){
soundslide.play(0, 1, new SoundTransform(suaraSFX));
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.visible = false;
mcUIimage[0].txt3.text = ("Cash: " + so.data.money);
};
};
click11 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(1);
score[0].shopCG.mc1.gotoAndStop(2);
};
out11 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc1.gotoAndStop(1);
};
buy11 = function (_arg1:MouseEvent):void{
if ((((so.data.money >= 10000)) && ((so.data.costume1 == 0)))){
medalindex = 4;
generatemedal();
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.speed = 7;
so.data.costume1 = 1;
so.data.money = (so.data.money - 10000);
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.costume1.mcsold.gotoAndStop(2);
score[0].shopCG.costume1.mcsold.visible = true;
so.data.costumeselect = 1;
score[0].shopCG.buy1.visible = false;
score[0].shopCG.mc1.txt1.visible = false;
trace("error2");
guc2 = 2;
generateupcostume2();
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
click22 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(1);
score[0].shopCG.mc2.gotoAndStop(2);
};
out22 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc2.gotoAndStop(1);
};
buy22 = function (_arg1:MouseEvent):void{
if ((((so.data.money >= 30000)) && ((so.data.costume2 == 0)))){
medalindex = 5;
generatemedal();
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.speed = 8;
so.data.costume2 = 1;
so.data.money = (so.data.money - 30000);
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.costume2.mcsold.gotoAndStop(2);
score[0].shopCG.costume2.mcsold.visible = true;
so.data.costumeselect = 2;
score[0].shopCG.buy2.visible = false;
score[0].shopCG.mc2.txt1.visible = false;
guc2 = 3;
generateupcostume2();
score[0].shopCG.costume1.mcsold.gotoAndStop(1);
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
click33 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(1);
score[0].shopCG.mc3.gotoAndStop(2);
};
out33 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc3.gotoAndStop(1);
};
buy33 = function (_arg1:MouseEvent):void{
if ((((so.data.money >= 70000)) && ((so.data.costume3 == 0)))){
medalindex = 6;
generatemedal();
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.speed = 10;
so.data.costume3 = 1;
so.data.money = (so.data.money - 70000);
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.costume3.mcsold.gotoAndStop(2);
score[0].shopCG.costume3.mcsold.visible = true;
so.data.costumeselect = 3;
score[0].shopCG.buy3.visible = false;
score[0].shopCG.mc3.txt1.visible = false;
score[0].shopCG.costume1.mcsold.gotoAndStop(1);
score[0].shopCG.costume2.mcsold.gotoAndStop(1);
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
click44 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(2);
score[0].shopCG.mc4.gotoAndStop(2);
};
out44 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc4.gotoAndStop(1);
};
buy44 = function (_arg1:MouseEvent):void{
if (so.data.launcher1 < 2){
if (so.data.launcher1 == 0){
if (so.data.money >= 20000){
medalindex = 26;
generatemedal();
so.data.money = (so.data.money - 20000);
score[0].shopCG.mc4.txt1.text = "$15K";
so.data.launcher1++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.launcherbar1.gotoAndStop((so.data.launcher1 + 1));
score[0].shopCG.launcher1.mcsold.gotoAndStop(2);
score[0].shopCG.launcher1.mcsold.visible = true;
so.data.launcherselect = 1;
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
} else {
if (so.data.launcher1 == 1){
if (so.data.money >= 15000){
so.data.money = (so.data.money - 15000);
score[0].shopCG.launcher1.mcsold.visible = true;
score[0].shopCG.buy4.visible = false;
so.data.launcher1++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.launcherbar1.gotoAndStop((so.data.launcher1 + 1));
score[0].shopCG.launcher1.mcsold.gotoAndStop(2);
score[0].shopCG.launcher1.mcsold.visible = true;
score[0].shopCG.mc4.txt1.visible = true;
so.data.launcherselect = 1;
gul2 = 2;
hargagul2 = 40;
generateuplauncher2();
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
click55 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(2);
score[0].shopCG.mc5.gotoAndStop(2);
};
out55 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc5.gotoAndStop(1);
};
buy55 = function (_arg1:MouseEvent):void{
if (so.data.launcher2 < 2){
if (so.data.launcher2 == 0){
if (so.data.money >= 40000){
medalindex = 27;
generatemedal();
so.data.money = (so.data.money - 40000);
score[0].shopCG.mc5.txt1.text = "$30K";
so.data.launcher2++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.launcherbar2.gotoAndStop((so.data.launcher2 + 1));
score[0].shopCG.launcher2.mcsold.gotoAndStop(2);
score[0].shopCG.launcher2.mcsold.visible = true;
so.data.launcherselect = 2;
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
} else {
if (so.data.launcher2 == 1){
if (so.data.money >= 30000){
so.data.money = (so.data.money - 30000);
score[0].shopCG.launcher2.mcsold.visible = true;
score[0].shopCG.buy5.visible = false;
so.data.launcher2++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.launcherbar2.gotoAndStop((so.data.launcher2 + 1));
score[0].shopCG.launcher2.mcsold.gotoAndStop(2);
score[0].shopCG.launcher2.mcsold.visible = true;
score[0].shopCG.mc5.txt1.visible = true;
so.data.launcherselect = 2;
gul2 = 2;
hargagul2 = 85;
generateuplauncher2();
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
click66 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(2);
score[0].shopCG.mc6.gotoAndStop(2);
};
out66 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc6.gotoAndStop(1);
};
buy66 = function (_arg1:MouseEvent):void{
if (so.data.launcher3 < 2){
if (so.data.launcher3 == 0){
if (so.data.money >= 85000){
medalindex = 28;
generatemedal();
so.data.money = (so.data.money - 85000);
score[0].shopCG.mc6.txt1.text = "$80K";
so.data.launcher3++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.launcherbar3.gotoAndStop((so.data.launcher3 + 1));
score[0].shopCG.launcher3.mcsold.gotoAndStop(2);
score[0].shopCG.launcher3.mcsold.visible = true;
so.data.launcherselect = 3;
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
} else {
if (so.data.launcher3 == 1){
if (so.data.money >= 80000){
so.data.money = (so.data.money - 80000);
score[0].shopCG.launcher3.mcsold.visible = true;
score[0].shopCG.buy6.visible = false;
so.data.launcher3++;
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.launcherbar3.gotoAndStop((so.data.launcher3 + 1));
score[0].shopCG.launcher3.mcsold.gotoAndStop(2);
score[0].shopCG.launcher3.mcsold.visible = true;
score[0].shopCG.mc6.txt1.visible = true;
so.data.launcherselect = 3;
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
click77 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(3);
score[0].shopCG.mc7.gotoAndStop(2);
};
out77 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc7.gotoAndStop(1);
};
buy77 = function (_arg1:MouseEvent):void{
if (so.data.money >= 5000){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.tramp = (so.data.tramp + 1);
so.data.money = (so.data.money - 5000);
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.number1.text = ("Qty." + so.data.tramp);
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
click88 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(3);
score[0].shopCG.mc8.gotoAndStop(2);
};
out88 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc8.gotoAndStop(1);
};
buy88 = function (_arg1:MouseEvent):void{
if ((((so.data.money >= 5000)) && ((so.data.percentagegrenade < 20)))){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.percentagegrenade = (so.data.percentagegrenade + 5);
so.data.money = (so.data.money - 5000);
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.level1.nextFrame();
if (so.data.percentagegrenade >= 20){
score[0].shopCG.mcitem.mcsold1.visible = true;
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
click99 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(3);
score[0].shopCG.mc9.gotoAndStop(2);
};
out99 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc9.gotoAndStop(1);
};
buy99 = function (_arg1:MouseEvent):void{
if ((((so.data.money >= 7000)) && ((so.data.percentagesack < 20)))){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.percentagesack = (so.data.percentagesack + 5);
so.data.money = (so.data.money - 7000);
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.level2.nextFrame();
if (so.data.percentagesack >= 20){
score[0].shopCG.mcitem.mcsold2.visible = true;
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
click1010 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = true;
score[0].shopCG.mcbaloon.ab.gotoAndStop(3);
score[0].shopCG.mc10.gotoAndStop(2);
};
out1010 = function (_arg1:MouseEvent):void{
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.mc10.gotoAndStop(1);
};
buy1010 = function (_arg1:MouseEvent):void{
if ((((so.data.money >= 6000)) && ((so.data.magnet <= 300)))){
soundpurchase.play(0, 1, new SoundTransform(suaraSFX));
so.data.magnet = (so.data.magnet + 75);
so.data.money = (so.data.money - 6000);
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcitem.level3.nextFrame();
if (so.data.magnet >= 300){
score[0].shopCG.mcitem.mcsold3.visible = true;
};
} else {
soundfailed.play(0, 1, new SoundTransform(suaraSFX));
};
};
score[0].shopCG.txt1.text = so.data.money;
score[0].shopCG.mcbaloon.visible = false;
score[0].shopCG.btnlauncher.addEventListener(MouseEvent.CLICK, btnlauncher2);
score[0].shopCG.btncostume.addEventListener(MouseEvent.CLICK, costume2);
score[0].shopCG.btnitem.addEventListener(MouseEvent.CLICK, item2);
score[0].shopCG.btnbacktomainmenu.addEventListener(MouseEvent.CLICK, backtomainmenu2);
score[0].shopCG.btnbacktomainmenu.visible = false;
score[0].shopCG.btnbacktogame.addEventListener(MouseEvent.CLICK, btnbacktogame2);
score[0].shopCG.buy1.addEventListener(MouseEvent.MOUSE_OVER, click11);
score[0].shopCG.buy1.addEventListener(MouseEvent.MOUSE_OUT, out11);
score[0].shopCG.buy1.addEventListener(MouseEvent.MOUSE_DOWN, buy11);
score[0].shopCG.buy2.addEventListener(MouseEvent.MOUSE_OVER, click22);
score[0].shopCG.buy2.addEventListener(MouseEvent.MOUSE_OUT, out22);
score[0].shopCG.buy2.addEventListener(MouseEvent.MOUSE_DOWN, buy22);
score[0].shopCG.buy3.addEventListener(MouseEvent.MOUSE_OVER, click33);
score[0].shopCG.buy3.addEventListener(MouseEvent.MOUSE_OUT, out33);
score[0].shopCG.buy3.addEventListener(MouseEvent.MOUSE_DOWN, buy33);
score[0].shopCG.buy4.addEventListener(MouseEvent.MOUSE_OVER, click44);
score[0].shopCG.buy4.addEventListener(MouseEvent.MOUSE_OUT, out44);
score[0].shopCG.buy4.addEventListener(MouseEvent.MOUSE_DOWN, buy44);
score[0].shopCG.buy5.addEventListener(MouseEvent.MOUSE_OVER, click55);
score[0].shopCG.buy5.addEventListener(MouseEvent.MOUSE_OUT, out55);
score[0].shopCG.buy5.addEventListener(MouseEvent.MOUSE_DOWN, buy55);
score[0].shopCG.buy6.addEventListener(MouseEvent.MOUSE_OVER, click66);
score[0].shopCG.buy6.addEventListener(MouseEvent.MOUSE_OUT, out66);
score[0].shopCG.buy6.addEventListener(MouseEvent.MOUSE_DOWN, buy66);
score[0].shopCG.buy7.addEventListener(MouseEvent.MOUSE_OVER, click77);
score[0].shopCG.buy7.addEventListener(MouseEvent.MOUSE_OUT, out77);
score[0].shopCG.buy7.addEventListener(MouseEvent.MOUSE_DOWN, buy77);
score[0].shopCG.buy8.addEventListener(MouseEvent.MOUSE_OVER, click88);
score[0].shopCG.buy8.addEventListener(MouseEvent.MOUSE_OUT, out88);
score[0].shopCG.buy8.addEventListener(MouseEvent.MOUSE_DOWN, buy88);
score[0].shopCG.buy9.addEventListener(MouseEvent.MOUSE_OVER, click99);
score[0].shopCG.buy9.addEventListener(MouseEvent.MOUSE_OUT, out99);
score[0].shopCG.buy9.addEventListener(MouseEvent.MOUSE_DOWN, buy99);
score[0].shopCG.buy10.addEventListener(MouseEvent.MOUSE_OVER, click1010);
score[0].shopCG.buy10.addEventListener(MouseEvent.MOUSE_OUT, out1010);
score[0].shopCG.buy10.addEventListener(MouseEvent.MOUSE_DOWN, buy1010);
}
public function ufoshoot(_arg1:TimerEvent):void{
ub = ufobulletindex;
while (ub >= 0) {
if (ufobullet[ub] != null){
ufobullet[ub].x = (ufobullet[ub].x - ((ufobullet[ub].posisix - ufobullet[ub].targetx) / 50));
ufobullet[ub].y = (ufobullet[ub].y - ((ufobullet[ub].posisiy - ufobullet[ub].targety) / 50));
if ((((((ufobullet[ub].hitTestObject(penguin[0].foot) == true)) && ((die == false)))) && ((lagiwarp == false)))){
medalindex = 1;
generatemedal();
stage.removeEventListener(MouseEvent.MOUSE_DOWN, firstjumphold);
Tresultscore.start();
bolepause = false;
die = true;
penguin[0].gotoAndPlay("hurt2");
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
removeChild(ufobullet[ub]);
ufobullet[ub] = null;
ufobullet.splice(ub, 1);
ufobulletindex--;
Tufoshoot.stop();
Tufospawn.stop();
Thitrampolin.stop();
};
if (ufobullet[ub] != null){
if (ufobullet[ub].y > 587){
removeChild(ufobullet[ub]);
ufobullet[ub] = null;
ufobullet.splice(ub, 1);
ufobulletindex--;
} else {
if (ufobullet[ub].y < -46){
removeChild(ufobullet[ub]);
ufobullet[ub] = null;
ufobullet.splice(ub, 1);
ufobulletindex--;
};
};
};
};
ub--;
};
}
public function pausegame(_arg1:KeyboardEvent):void{
trace(("MOCHI:" + _arg1.keyCode));
if (bolepause == true){
if ((((((_arg1.keyCode == 112)) || ((_arg1.keyCode == 80)))) && ((pausebool == false)))){
stage.addEventListener(Event.ENTER_FRAME, loadingsoundpop3);
soundpause.play(0, 1, new SoundTransform(suaraSFX));
penguin[0].visible = false;
bestheight.visible = false;
steparrow.visible = false;
mouse.visible = true;
createpauseimage();
mcpauseimage[0].gotoAndPlay(2);
mcpauseimage[0].x = 178;
mcpauseimage[0].y = 280;
penguin[0].stop();
pg = 0;
while (pg < 6) {
if (step[pg] != null){
step[pg].stop();
};
pg++;
};
pausebool = true;
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
Tcamerashake.stop();
Tpenguingetslipped.stop();
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
Tstepanimation.stop();
Thitrampolin.stop();
if (generateufobool == true){
Tufomove.stop();
Tufoshoot.stop();
Tufospawn.stop();
Talienmove.stop();
Talienmove2.stop();
Tblowfish.stop();
};
Tlaunchershake.stop();
Tfreestyle.stop();
} else {
if ((((((_arg1.keyCode == 112)) || ((_arg1.keyCode == 80)))) && ((pausebool == true)))){
resumeingame();
};
};
};
}
public function URLRequestMethodExample():void{
var _local1:String;
loader = new URLLoader();
_local1 = URLLoaderDataFormat.VARIABLES;
loader.dataFormat = _local1;
loader.load(requestku);
loader.addEventListener(Event.COMPLETE, completeHandler);
}
public function alienmove(_arg1:TimerEvent):void{
am = 0;
while (am < ufoindex) {
if (ufo[am] != null){
if (ufo[am].tipe == "alien2"){
if (ufo[am].serang == "no"){
if (ufo[am].arah == 1){
ufo[am].x = (ufo[am].x + 3);
if (ufo[am].x > 485){
ufo[am].arah = 0;
ufo[am].gotoAndPlay("left");
ufo[am].attack--;
if (ufo[am].attack <= 0){
ufo[am].posisix = ufo[am].x;
ufo[am].posisiy = ufo[am].y;
ufo[am].targetx = penguin[0].x;
ufo[am].targety = penguin[0].y;
ufo[am].serang = "ok";
if (alien2movebool == false){
alien2movebool = true;
Talienmove2.start();
};
};
};
} else {
if (ufo[am].arah == 0){
ufo[am].x = (ufo[am].x - 3);
if (ufo[am].x < -40){
ufo[am].arah = 1;
ufo[am].gotoAndPlay("right");
ufo[am].attack--;
if (ufo[am].attack <= 0){
ufo[am].posisix = ufo[am].x;
ufo[am].posisiy = ufo[am].y;
ufo[am].targetx = penguin[0].x;
ufo[am].targety = penguin[0].y;
ufo[am].serang = "ok";
if (alien2movebool == false){
alien2movebool = true;
Talienmove2.start();
};
};
};
};
};
};
if (ufo[am].y > 719){
medalindex = 25;
generatemedal();
removeChild(ufo[am2]);
ufo[am2] = null;
ufo.splice(0, 1);
ufoindex--;
};
};
};
am++;
};
}
public function generaterecharge(){
var downrecharge:Function;
downrecharge = function (_arg1:MouseEvent):void{
var uprecharge:Function;
var event = _arg1;
if (donedown == false){
uprecharge = function (_arg1:MouseEvent):void{
if (launchermax == true){
soundgrenade.play(0, 1, new SoundTransform(suaraSFX));
mcUIimage[0].mcpower.gotoAndPlay(2);
mcUIimage[0].mcpower.visible = true;
};
mcUIimage[0].calendar.visible = false;
mcUIimage[0].txt4.visible = false;
if (so.data.tramp > 0){
mcUIimage[0].trampie.visible = true;
mcUIimage[0].txt5.visible = true;
};
if (soundchannelanehaneh != null){
soundchannelanehaneh.stop();
};
if (so.data.launcherselect == 1){
soundtank.play(0, 1, new SoundTransform(suaraSFX));
} else {
if (so.data.launcherselect == 0){
soundlauncher0.play(0, 1, new SoundTransform(suaraSFX));
};
};
dilauncher = true;
launcher[0].mcrecharge.visible = false;
Trecharge.stop();
Trecharge.removeEventListener(TimerEvent.TIMER, recharge);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, downrecharge);
stage.removeEventListener(MouseEvent.MOUSE_UP, uprecharge);
penguin[0].rotation = (penguin[0].rotation - 15);
penguin[0].gotoAndStop("flyup");
launcher[0].gotoAndPlay("fire");
cameramoveint = int((launcher[0].mcrecharge.bar.height / 10));
cameramoveint = (cameramoveint + launcherplus);
cameramoveinttemp = cameramoveint;
jarakanimasi = cameramoveint;
cameramove = "up";
tahapbg = 2;
tempcameramoveint = cameramoveint;
if (cameramoveint > 10){
saljugerak = true;
tempcameramoveint = cameramoveint;
generatestep();
Tseasoneffect.stop();
};
removeChild(bg[1]);
bg[1] = null;
bg[1] = new (lvl12mc);
addChildAt(bg[1], (stepposisi - 1));
bg[1].cacheAsBitmap = true;
bg[1].x = 0;
bg[1].y = -550;
penguinrangey = cameramoveint;
gamestart = true;
stage.addEventListener(Event.ENTER_FRAME, Ttes2);
if (tipelauncher != 4){
Tswappenguinlauncher.start();
} else {
if (tipelauncher == 4){
spl = jarakanimasi;
while (spl > 0) {
jarakpotonganimasi = (jarakpotonganimasi + spl);
spl--;
};
jarakpotonganimasi = int((jarakpotonganimasi / 5));
launcher[0].tahap = 1;
launcher[0].filters = [shadow];
Tswappenguinlauncher2.start();
};
};
};
donedown = true;
stage.addEventListener(MouseEvent.MOUSE_UP, uprecharge);
};
if (tipelauncher > 1){
indexshakey = 0;
shakeybool = true;
baseground();
soundchannelanehaneh = soundearthquake.play(0, 999, new SoundTransform(suaraSFX));
launchershakebool = true;
Tlaunchershake.start();
} else {
if (tipelauncher == 0){
soundrubber.play(0, 1, new SoundTransform(suaraSFX));
};
};
launcher[0].gotoAndPlay("push");
penguin[0].gotoAndStop("push");
penguin[0].y = (penguin[0].y + 10);
penguin[0].rotation = (penguin[0].rotation + 15);
Trecharge = new Timer(Number((30 + ((tipelauncher - 1) * 10))));
Trecharge.addEventListener(TimerEvent.TIMER, recharge);
Trecharge.start();
};
begginingrecharge = false;
generateseason();
cameramoveint = 0;
if (tipelauncher != 1){
penguin[0].visible = false;
};
stage.addEventListener(MouseEvent.MOUSE_DOWN, downrecharge);
}
public function yeshighscore(_arg1:MouseEvent):void{
if (txt1.text != ""){
mcinput.visible = false;
txt1.visible = false;
submitScore();
};
}
public function loadshope(){
var _local1:*;
var _local2:*;
trace(("COST SELECT : " + so.data.costumeselect));
if (so.data.costumeselect != 0){
_local2 = shopCG.getChildByName(("costume" + so.data.costumeselect));
_local2.mcsold.gotoAndStop(2);
_local2 = shopCG.getChildByName(("mc" + so.data.costumeselect));
_local2.txt1.visible = false;
_local2 = shopCG.getChildByName(("buy" + so.data.costumeselect));
_local2.visible = false;
};
_local1 = (so.data.costumeselect - 1);
while (_local1 >= 1) {
_local2 = shopCG.getChildByName(("costume" + _local1));
_local2.mcsold.gotoAndStop(1);
_local2 = shopCG.getChildByName(("mc" + _local1));
_local2.txt1.visible = false;
_local2 = shopCG.getChildByName(("buy" + _local1));
_local2.visible = false;
_local1--;
};
if (so.data.costumeselect != 0){
_local1 = (so.data.costumeselect + 1);
while (_local1 <= 3) {
trace(("a" + _local1));
_local2 = shopCG.getChildByName(("costume" + _local1));
trace(_local2);
trace("gbisadibeli");
_local2.mcsold.visible = false;
_local2 = shopCG.getChildByName(("buy" + _local1));
_local2.visible = false;
trace("oo");
_local1++;
};
_local2 = shopCG.getChildByName(("costume" + Number((so.data.costumeselect + 1))));
trace(_local2);
if (_local2 != null){
if (so.data.money >= Number((so.data.costumeselect + (1 * 1000)))){
_local2.mcsold.visible = false;
_local2.gotoAndStop("open-exp");
_local2 = shopCG.getChildByName(("buy" + Number((so.data.costumeselect + 1))));
_local2.visible = true;
} else {
_local2.mcsold.visible = false;
_local2 = shopCG.getChildByName(("buy" + Number((so.data.costumeselect + 1))));
_local2.visible = false;
};
};
} else {
_local2 = shopCG.getChildByName(("costume" + 1));
if (so.data.money >= Number((hargapenguin[1] * 1000))){
_local2.mcsold.visible = false;
_local2.gotoAndStop("open-exp");
} else {
trace("gbisadibeli");
_local2.mcsold.visible = false;
_local2 = shopCG.getChildByName(("buy" + 1));
_local2.visible = false;
};
_local1 = 2;
while (_local1 <= 3) {
_local2 = shopCG.getChildByName(("costume" + _local1));
_local2.mcsold.visible = false;
_local2 = shopCG.getChildByName(("buy" + _local1));
_local2.visible = false;
_local1++;
};
};
}
public function Ttes(_arg1:Event):void{
var _local2:*;
testes = 3;
if (penguinstat == "fishie"){
soundfish.play(0, 1, new SoundTransform(suaraSFX));
};
penguinblur();
if (cameramove == "up"){
if (cameramoveint >= 0){
if (penguinstat == "fishie"){
cameramoveint = (cameramoveint - (0.1 * frametes));
} else {
cameramoveint = (cameramoveint - frametes);
};
} else {
if (cameramoveint < 0){
explosiongrenademc.visible = false;
penguinstat = "flydown";
penguin[0].gotoAndPlay("flydown");
penguin[0].rotation = 0;
Tpenguinmovetime.stop();
Tpenguinmovetime.reset();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
stage.addEventListener(Event.ENTER_FRAME, Ttes);
Tcamerabg.stop();
Tcamerabg.reset();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
stage.addEventListener(Event.ENTER_FRAME, Ttes2);
cameramove = "down";
penguinrangey = so.data.speed;
};
};
} else {
if (cameramove == "down"){
if (barujalan == true){
barujalan = false;
penguinrangey = 8;
};
if (trampobackupmode == true){
trampobackupmode = false;
penguinrangey = 6;
};
if (penguinrangey >= 0){
_local2 = 1;
if (so.data.costumeselect == 3){
_local2 = 0.4;
};
penguinrangey = (penguinrangey - (_local2 * frametes));
cameramoveint = (cameramoveint - (_local2 * frametes));
};
if ((((penguinrangey < 0)) && ((Number(so.data.tramp) > 0)))){
Tcamerabg.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes2);
Tpenguinmovetime.stop();
stage.removeEventListener(Event.ENTER_FRAME, Ttes);
so.data.tramp = (Number(so.data.tramp) - 1);
mcUIimage[0].txt5.text = ("x " + so.data.tramp);
trampobackupmode = true;
step[99] = new (lvl1step7mc);
addChildAt(step[99], (getChildIndex(penguin[0]) - 1));
step[99].cacheAsBitmap = true;
step[99].x = penguin[0].x;
step[99].y = penguin[0].y;
step[99].width = 200;
step[99].height = 53;
step[99].step.visible = false;
trampoindex = 99;
hittrampolinbool = true;
trampolinbackup[0] = new (lvl1step7cutmc);
addChildAt(trampolinbackup[0], (getChildIndex(penguin[0]) + 1));
trampolinbackup[0].cacheAsBitmap = true;
trampolinbackup[0].x = step[99].x;
trampolinbackup[0].y = step[99].y;
trampolinbackup[0].width = 150;
trampolinbackup[0].height = 25;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
trampoindex = 99;
penguin[0].x = step[99].x;
penguin[0].y = step[99].y;
step[99].gotoAndPlay(2);
step[99].x = penguin[0].x;
step[99].y = penguin[0].y;
trampolinbackup[0].x = step[99].x;
trampolinbackup[0].y = step[99].y;
trace(((penguin[0].y + "-") + step[99].y));
Thitrampolin.start();
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
if (cameramoveint < -100){
cameramoveint = (-100 * frametes);
};
cameramove = "down";
} else {
if ((((penguinrangey < 0)) && ((Number(so.data.tramp) <= 0)))){
medalindex = 1;
generatemedal();
if (fallingsoundbool == false){
fallingsoundbool = true;
if (soundchannelanehaneh != null){
soundchannelanehaneh.stop();
};
soundchannelanehaneh = soundfalling.play(0, 1, new SoundTransform(suaraSFX));
};
bolepause = false;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
Tufomove.stop();
Tufoshoot.stop();
Tufospawn.stop();
Talienmove.stop();
Talienmove2.stop();
Tblowfish.stop();
generateufobool = false;
if ((((((freestylebool == false)) && ((UItemp > 5000)))) && ((die == false)))){
bolepause = false;
freestylebool = true;
stage.removeEventListener(Event.ENTER_FRAME, penguinmovepointerframe);
freestyleimage[0] = new (freestylemc);
addChildAt(freestyleimage[0], (getChildIndex(penguin[0]) + 1));
freestyleimage[0].cacheAsBitmap = true;
freestyleimage[0].x = 200;
freestyleimage[0].y = 80;
freestyle();
};
cameramoveint = (cameramoveint - (2 * frametes));
if (freestylebool == false){
penguin[0].rotation = (penguin[0].rotation + (putey * frametes));
if (putey < 100){
putey = (putey + (4 * frametes));
};
};
if (cameramoveint < -100){
cameramoveint = -100;
};
lose = true;
cameramove = "down";
};
};
};
};
}
public function canmovement2(){
var canmovementremover:Function;
canmovementremover = function (_arg1:Event):void{
var _local2:*;
_arg1.target.targetx = penguin[0].x;
_arg1.target.targety = penguin[0].y;
_arg1.target.x = (_arg1.target.x - ((_arg1.target.posisix - _arg1.target.targetx) / 5));
_arg1.target.y = (_arg1.target.y - ((_arg1.target.posisiy - _arg1.target.targety) / 5));
if (_arg1.target.hitTestObject(penguin[0]) == true){
soundsardines.play(0, 1, new SoundTransform(suaraSFX));
_local2 = _arg1.target;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, canmovementremover);
can[_local2.indexke] = null;
_local2 = null;
canmaxbackup--;
UItemp2++;
mcUIimage[0].txt2.text = ("x " + UItemp2);
if (dahseratus == false){
mcUIimage[0].txt2.text = (((("x " + UItemp2) + " (") + Number((100 - UItemp2))) + " can left)");
};
if ((((UItemp2 >= 100)) && ((dahseratus == false)))){
soundfreestyle.play(0, 1, new SoundTransform(suaraSFX));
dahseratus = true;
mcannounce2.mc1.txt1.text = "100 Can collected";
mcannounce2.gotoAndPlay(2);
mcUIimage[0].txt2.text = ("x " + UItemp2);
};
};
};
can[canmovementindex].posisix = can[canmovementindex].x;
can[canmovementindex].posisiy = can[canmovementindex].y;
can[canmovementindex].targetx = penguin[0].x;
can[canmovementindex].targety = penguin[0].y;
can[canmovementindex].indexke = canmovementindex;
can[canmovementindex].gotoAndPlay("rotate");
can[canmovementindex].ok = 1;
can[canmovementindex].addEventListener(Event.ENTER_FRAME, canmovementremover);
}
public function followmouse(_arg1:Event):void{
mcthropy.x = (mouseX + 100);
mcthropy.y = (mouseY + 35);
}
public function baseground(){
if (shakeybool == true){
bg[indexshakey].mc1.mc1.gotoAndPlay(2);
bg[indexshakey].mc1.mc2.gotoAndPlay(2);
bg[indexshakey].mc1.mc3.gotoAndPlay(2);
bg[indexshakey].mc1.mc4.gotoAndPlay(2);
bg[indexshakey].mc1.mc5.gotoAndPlay(2);
bg[indexshakey].mc1.mc6.gotoAndPlay(2);
bg[indexshakey].mc1.mc7.gotoAndPlay(2);
} else {
if (shakeybool == false){
bg[indexshakey].mc1.mc1.gotoAndStop(1);
bg[indexshakey].mc1.mc2.gotoAndStop(1);
bg[indexshakey].mc1.mc3.gotoAndStop(1);
bg[indexshakey].mc1.mc4.gotoAndStop(1);
bg[indexshakey].mc1.mc5.gotoAndStop(1);
bg[indexshakey].mc1.mc6.gotoAndStop(1);
bg[indexshakey].mc1.mc7.gotoAndStop(1);
};
};
}
public function generatebuttonformat(){
trace("mihuahua");
trace(suaraBGM);
if (lokasiSFX != 0){
btnSFX.x = lokasiSFX;
} else {
if (suaraSFX == 0){
btnSFX.x = 119;
} else {
if (suaraSFX == 0.2){
btnSFX.x = 147;
} else {
if (suaraSFX == 0.4){
btnSFX.x = 160;
} else {
if (suaraSFX == 0.6){
btnSFX.x = 175;
} else {
if (suaraSFX == 1){
btnSFX.x = 195;
};
};
};
};
};
};
if (lokasiBGM != 0){
btnBGM.x = lokasiBGM;
} else {
if (suaraBGM == 0){
btnBGM.x = 119;
} else {
if (suaraBGM == 0.2){
btnBGM.x = 147;
} else {
if (suaraBGM == 0.4){
btnBGM.x = 160;
} else {
if (suaraBGM == 0.6){
btnBGM.x = 175;
} else {
if (suaraBGM == 1){
trace("toto");
btnBGM.x = 195;
};
};
};
};
};
};
if (lokasiQuality != 0){
btnquality.x = lokasiQuality;
} else {
if (stage.quality == "LOW"){
btnquality.x = 110;
trace("HOHO");
} else {
if (stage.quality == "MEDIUM"){
btnquality.x = 150;
} else {
if (stage.quality == "HIGH"){
btnquality.x = 195;
};
};
};
};
}
public function resumeingame2(){
stage.removeEventListener(Event.ENTER_FRAME, loadingsoundpop3);
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
medalindex = 7;
generatemedal();
pausebool = false;
mouse.visible = true;
mcpauseimage[0].x = -386;
mcpauseimage[0].y = 190;
penguin[0].play();
stage.addEventListener(Event.ENTER_FRAME, camerabgframe);
stage.addEventListener(Event.ENTER_FRAME, penguinmovepointerframe2);
stage.addEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
}
public function generatecomboimage(){
var comboimageremover:Function;
comboimageremover = function (_arg1:Event):void{
var _local2:*;
if (_arg1.target.currentFrame == _arg1.target.totalFrames){
_local2 = _arg1.target;
removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, comboimageremover);
comboimage.splice(_local2.indexke, 1);
_local2 = null;
comboindex--;
};
};
comboke++;
if (comboke > combomax){
combomax = comboke;
};
comborandom = randRange(0, 1);
if (comborandom == 1){
comboimage[comboindex] = new (txtcombomc);
} else {
comboimage[comboindex] = new (txtcombo2mc);
};
addChildAt(comboimage[comboindex], (getChildIndex(penguin[0]) + 1));
comboimage[comboindex].cacheAsBitmap = true;
comboimage[comboindex].txt1.txt1.textColor = (Math.random() * 0xFFFFFF);
comboimage[comboindex].txt1.txt1.text = ("COMBO x" + comboke);
comboimage[comboindex].x = penguin[0].x;
comboimage[comboindex].y = penguin[0].y;
comboimage[comboindex].indexke = comboindex;
comboimage[comboindex].addEventListener(Event.ENTER_FRAME, comboimageremover);
comboindex++;
}
public function shockeffectstopper(_arg1:Event):void{
if (faceeffectimage[0] != null){
if (faceeffectimage[0].ab.currentLabel == "yoyo"){
stage.removeEventListener(Event.ENTER_FRAME, shockeffectstopper);
removeChild(faceeffectimage[0]);
faceeffectimage[0] = null;
extended = 125;
faceeffectbool = true;
stage.addEventListener(Event.ENTER_FRAME, shockeffectextended);
};
};
}
public function waitbonus(_arg1:TimerEvent):void{
var firstjumphold:Function;
var event = _arg1;
if (mcbonusbox.currentFrame == mcbonusbox.totalFrames){
firstjumphold = function (_arg1:MouseEvent):void{
var firstjumprelease:Function;
var event = _arg1;
firstjumprelease = function (_arg1:MouseEvent):void{
soundwee.play(0, 1, new SoundTransform(suaraSFX));
generatesoundjump();
bolepause = true;
cameramoveint = so.data.speed;
penguinrangey = cameramoveint;
cameramove = "up";
penguin[0].gotoAndPlay("flyup");
stage.addEventListener(Event.ENTER_FRAME, camerabgframe);
stage.addEventListener(Event.ENTER_FRAME, penguinmovetimeframe);
stage.addEventListener(Event.ENTER_FRAME, penguinmovepointerframe2);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, firstjumphold);
stage.removeEventListener(MouseEvent.MOUSE_UP, firstjumprelease);
};
mcannounce2.mc1.txt1.text = "Food World Reached";
mcannounce2.gotoAndPlay(2);
penguin[0].gotoAndStop("push");
stage.addEventListener(MouseEvent.MOUSE_UP, firstjumprelease);
};
generatebonusstep();
Twaitbonus.stop();
stage.addEventListener(MouseEvent.MOUSE_DOWN, firstjumphold);
};
}
public function backtomainmenugallery(_arg1:MouseEvent):void{
btnbacktomainmenu.removeEventListener(MouseEvent.CLICK, backtomainmenugallery);
btnbacktomainmenu.visible = false;
btnarrow2.visible = false;
btnarrow.visible = false;
i = 1;
while (i <= 30) {
removeChild(trophy[i]);
trophy[i] = null;
i++;
};
soundbutton.play(0, 1, new SoundTransform(suaraSFX));
Tfalling.stop();
Tflying.stop();
gotoAndStop("main menu");
}
public function penguingetslipped(_arg1:TimerEvent):void{
penguingetslippedbool = false;
Tpenguingetslipped.stop();
Tpenguingetslipped.removeEventListener(TimerEvent.TIMER, penguingetslipped);
}
}
}//package Lunix1_fla
Section 27
//mc10_220 (Lunix1_fla.mc10_220)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc10_220 extends MovieClip {
public var txt1:TextField;
public function mc10_220(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 28
//mc7_217 (Lunix1_fla.mc7_217)
package Lunix1_fla {
import flash.display.*;
public dynamic class mc7_217 extends MovieClip {
public function mc7_217(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 29
//mc8_218 (Lunix1_fla.mc8_218)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc8_218 extends MovieClip {
public var txt1:TextField;
public function mc8_218(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 30
//mc9_219 (Lunix1_fla.mc9_219)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mc9_219 extends MovieClip {
public var txt1:TextField;
public function mc9_219(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 31
//mcannouncement_16 (Lunix1_fla.mcannouncement_16)
package Lunix1_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.filters.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class mcannouncement_16 extends MovieClip {
public var mc1:MovieClip;
public function mcannouncement_16(){
addFrameScript(0, frame1, 71, frame72);
}
function frame72(){
stop();
mc1.mc1.visible = false;
mc1.thropy1.visible = false;
}
function frame1(){
stop();
mc1.mc1.visible = false;
mc1.thropy1.visible = false;
}
}
}//package Lunix1_fla
Section 32
//mcannouncementbonus_23 (Lunix1_fla.mcannouncementbonus_23)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mcannouncementbonus_23 extends MovieClip {
public var btnplay:SimpleButton;
public var txt1:TextField;
public var mcblue:MovieClip;
}
}//package Lunix1_fla
Section 33
//mcbonusworldsymbol_312 (Lunix1_fla.mcbonusworldsymbol_312)
package Lunix1_fla {
import flash.display.*;
public dynamic class mcbonusworldsymbol_312 extends MovieClip {
public function mcbonusworldsymbol_312(){
addFrameScript(0, frame1, 66, frame67);
}
function frame1(){
stop();
}
function frame67(){
stop();
}
}
}//package Lunix1_fla
Section 34
//mcgallery_524 (Lunix1_fla.mcgallery_524)
package Lunix1_fla {
import flash.display.*;
public dynamic class mcgallery_524 extends MovieClip {
public var gallerybg:MovieClip;
}
}//package Lunix1_fla
Section 35
//mchighscore_553 (Lunix1_fla.mchighscore_553)
package Lunix1_fla {
import flash.display.*;
public dynamic class mchighscore_553 extends MovieClip {
public var btnyes:SimpleButton;
public var mcblue:MovieClip;
}
}//package Lunix1_fla
Section 36
//mclevel_215 (Lunix1_fla.mclevel_215)
package Lunix1_fla {
import flash.display.*;
public dynamic class mclevel_215 extends MovieClip {
public function mclevel_215(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 37
//mclevel2_216 (Lunix1_fla.mclevel2_216)
package Lunix1_fla {
import flash.display.*;
public dynamic class mclevel2_216 extends MovieClip {
public function mclevel2_216(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 38
//medievalcannon_209 (Lunix1_fla.medievalcannon_209)
package Lunix1_fla {
import flash.display.*;
public dynamic class medievalcannon_209 extends MovieClip {
public var mcsold:MovieClip;
public function medievalcannon_209(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 39
//meteormove_11 (Lunix1_fla.meteormove_11)
package Lunix1_fla {
import flash.display.*;
public dynamic class meteormove_11 extends MovieClip {
public var meteor1:meteormc;
public function meteormove_11(){
addFrameScript(0, frame1, 32, frame33);
}
function frame1(){
stop();
}
function frame33(){
gotoAndStop(1);
}
}
}//package Lunix1_fla
Section 40
//openingmovie_502 (Lunix1_fla.openingmovie_502)
package Lunix1_fla {
import flash.display.*;
public dynamic class openingmovie_502 extends MovieClip {
public function openingmovie_502(){
addFrameScript(620, frame621);
}
function frame621(){
stop();
}
}
}//package Lunix1_fla
Section 41
//penguinlompatfull_5 (Lunix1_fla.penguinlompatfull_5)
package Lunix1_fla {
import flash.display.*;
public dynamic class penguinlompatfull_5 extends MovieClip {
public function penguinlompatfull_5(){
addFrameScript(50, frame51, 68, frame69);
}
function frame51(){
gotoAndPlay(1);
}
function frame69(){
gotoAndPlay("happylunix");
}
}
}//package Lunix1_fla
Section 42
//powermax_320 (Lunix1_fla.powermax_320)
package Lunix1_fla {
import flash.display.*;
public dynamic class powermax_320 extends MovieClip {
public function powermax_320(){
addFrameScript(0, frame1, 25, frame26);
}
function frame1(){
stop();
}
function frame26(){
stop();
}
}
}//package Lunix1_fla
Section 43
//preloaderlogo_26 (Lunix1_fla.preloaderlogo_26)
package Lunix1_fla {
import flash.display.*;
public dynamic class preloaderlogo_26 extends MovieClip {
public var connectbtn:SimpleButton;
public function preloaderlogo_26(){
addFrameScript(249, frame250);
}
function frame250(){
stop();
}
}
}//package Lunix1_fla
Section 44
//soundloader_479 (Lunix1_fla.soundloader_479)
package Lunix1_fla {
import flash.display.*;
public dynamic class soundloader_479 extends MovieClip {
public function soundloader_479(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 45
//Symbol10_262 (Lunix1_fla.Symbol10_262)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol10_262 extends MovieClip {
public var txt1:TextField;
}
}//package Lunix1_fla
Section 46
//Symbol11_266 (Lunix1_fla.Symbol11_266)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol11_266 extends MovieClip {
public var txt1:TextField;
}
}//package Lunix1_fla
Section 47
//Symbol23_213 (Lunix1_fla.Symbol23_213)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol23_213 extends MovieClip {
public var mcsold2:MovieClip;
public var mcsold3:MovieClip;
public var mcsold1:MovieClip;
public var number1:TextField;
public var launcherbar1:MovieClip;
public var level1:MovieClip;
public var level2:MovieClip;
public var level3:MovieClip;
public var launcherbar3:MovieClip;
public var launcherbar2:MovieClip;
}
}//package Lunix1_fla
Section 48
//Symbol24_210 (Lunix1_fla.Symbol24_210)
package Lunix1_fla {
import flash.display.*;
public dynamic class Symbol24_210 extends MovieClip {
public function Symbol24_210(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 49
//Symbol28_17 (Lunix1_fla.Symbol28_17)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol28_17 extends MovieClip {
public var thropy1:MovieClip;
public var mc1:MovieClip;
public var txt1:TextField;
}
}//package Lunix1_fla
Section 50
//Symbol29_201 (Lunix1_fla.Symbol29_201)
package Lunix1_fla {
import flash.display.*;
public dynamic class Symbol29_201 extends MovieClip {
public function Symbol29_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 51
//Symbol35_509 (Lunix1_fla.Symbol35_509)
package Lunix1_fla {
import flash.display.*;
public dynamic class Symbol35_509 extends MovieClip {
public function Symbol35_509(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 52
//Symbol41copy_515 (Lunix1_fla.Symbol41copy_515)
package Lunix1_fla {
import flash.display.*;
public dynamic class Symbol41copy_515 extends MovieClip {
public function Symbol41copy_515(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 53
//Symbol46_4 (Lunix1_fla.Symbol46_4)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol46_4 extends MovieClip {
public var txtload:TextField;
}
}//package Lunix1_fla
Section 54
//Symbol47_21 (Lunix1_fla.Symbol47_21)
package Lunix1_fla {
import flash.display.*;
public dynamic class Symbol47_21 extends MovieClip {
public var mc1:MovieClip;
public function Symbol47_21(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
stop();
}
}
}//package Lunix1_fla
Section 55
//Symbol48_22 (Lunix1_fla.Symbol48_22)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol48_22 extends MovieClip {
public var txt1:TextField;
}
}//package Lunix1_fla
Section 56
//Symbol72_552 (Lunix1_fla.Symbol72_552)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol72_552 extends MovieClip {
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
}
}//package Lunix1_fla
Section 57
//Symbol75_249 (Lunix1_fla.Symbol75_249)
package Lunix1_fla {
import flash.display.*;
public dynamic class Symbol75_249 extends MovieClip {
public function Symbol75_249(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 58
//Symbol79_497 (Lunix1_fla.Symbol79_497)
package Lunix1_fla {
import flash.display.*;
public dynamic class Symbol79_497 extends MovieClip {
public function Symbol79_497(){
addFrameScript(24, frame25, 49, frame50, 74, frame75);
}
function frame75(){
stop();
}
function frame25(){
stop();
}
function frame50(){
stop();
}
}
}//package Lunix1_fla
Section 59
//tankcannon_211 (Lunix1_fla.tankcannon_211)
package Lunix1_fla {
import flash.display.*;
public dynamic class tankcannon_211 extends MovieClip {
public var mcsold:MovieClip;
public function tankcannon_211(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 60
//target_164 (Lunix1_fla.target_164)
package Lunix1_fla {
import flash.display.*;
public dynamic class target_164 extends MovieClip {
public function target_164(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 61
//thesuperhero_243 (Lunix1_fla.thesuperhero_243)
package Lunix1_fla {
import flash.display.*;
public dynamic class thesuperhero_243 extends MovieClip {
public var mcsold:MovieClip;
public function thesuperhero_243(){
addFrameScript(0, frame1, 1, frame2, 16, frame17);
}
function frame1(){
stop();
}
function frame17(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 62
//thropyannounce_526 (Lunix1_fla.thropyannounce_526)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class thropyannounce_526 extends MovieClip {
public var txt1:TextField;
public var txt2:TextField;
public function thropyannounce_526(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 63
//thropyimage_19 (Lunix1_fla.thropyimage_19)
package Lunix1_fla {
import flash.display.*;
public dynamic class thropyimage_19 extends MovieClip {
public function thropyimage_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 64
//title_222 (Lunix1_fla.title_222)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class title_222 extends MovieClip {
public var txt1:TextField;
public function title_222(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 65
//title_223 (Lunix1_fla.title_223)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class title_223 extends MovieClip {
public var txt1:TextField;
public function title_223(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 66
//title_224 (Lunix1_fla.title_224)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class title_224 extends MovieClip {
public var txt1:TextField;
public function title_224(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 67
//title_227 (Lunix1_fla.title_227)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class title_227 extends MovieClip {
public var txt1:TextField;
public function title_227(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 68
//title_228 (Lunix1_fla.title_228)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class title_228 extends MovieClip {
public var txt1:TextField;
public function title_228(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 69
//title_229 (Lunix1_fla.title_229)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class title_229 extends MovieClip {
public var txt1:TextField;
public function title_229(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Lunix1_fla
Section 70
//uburmontana_14 (Lunix1_fla.uburmontana_14)
package Lunix1_fla {
import flash.display.*;
public dynamic class uburmontana_14 extends MovieClip {
public function uburmontana_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 71
//uburmove_13 (Lunix1_fla.uburmove_13)
package Lunix1_fla {
import flash.display.*;
public dynamic class uburmove_13 extends MovieClip {
public function uburmove_13(){
addFrameScript(0, frame1, 49, frame50);
}
function frame1(){
stop();
}
function frame50(){
gotoAndStop(1);
}
}
}//package Lunix1_fla
Section 72
//upgradeshop_207 (Lunix1_fla.upgradeshop_207)
package Lunix1_fla {
import flash.display.*;
import flash.text.*;
public dynamic class upgradeshop_207 extends MovieClip {
public var btncostume:SimpleButton;
public var mc10:MovieClip;
public var costume2:MovieClip;
public var costume1:MovieClip;
public var costume3:MovieClip;
public var buy1:SimpleButton;
public var buy3:SimpleButton;
public var buy4:SimpleButton;
public var buy5:SimpleButton;
public var buy6:SimpleButton;
public var buy7:SimpleButton;
public var buy2:SimpleButton;
public var mcbaloon:MovieClip;
public var buy8:SimpleButton;
public var launcher1:MovieClip;
public var buy9:SimpleButton;
public var launcher2:MovieClip;
public var launcher3:MovieClip;
public var buy10:SimpleButton;
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc8:MovieClip;
public var mc2:MovieClip;
public var mc4:MovieClip;
public var mc9:MovieClip;
public var btnitem:SimpleButton;
public var mc7:MovieClip;
public var mc6:MovieClip;
public var btnbacktomainmenu:SimpleButton;
public var mcitem:MovieClip;
public var txt1:TextField;
public var btnbacktogame:SimpleButton;
public var btnlauncher:SimpleButton;
public function upgradeshop_207(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 50, frame51, 61, frame62);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame40(){
stop();
}
function frame51(){
stop();
}
function frame62(){
stop();
}
}
}//package Lunix1_fla
Section 73
//warning_bonusgame_550 (Lunix1_fla.warning_bonusgame_550)
package Lunix1_fla {
import flash.display.*;
public dynamic class warning_bonusgame_550 extends MovieClip {
public var btnplay:SimpleButton;
public var mcblue:MovieClip;
public function warning_bonusgame_550(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
stop();
}
function frame1(){
stop();
}
}
}//package Lunix1_fla
Section 74
//warning_newgame_470 (Lunix1_fla.warning_newgame_470)
package Lunix1_fla {
import flash.display.*;
public dynamic class warning_newgame_470 extends MovieClip {
public var btnyes:SimpleButton;
public var btnno:SimpleButton;
public function warning_newgame_470(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
stop();
}
}
}//package Lunix1_fla
Section 75
//alienfishmc (alienfishmc)
package {
import flash.display.*;
public dynamic class alienfishmc extends MovieClip {
public var mouth:MovieClip;
public function alienfishmc(){
addFrameScript(9, frame10, 32, frame33, 42, frame43, 56, frame57);
}
function frame10(){
gotoAndPlay("right");
}
function frame43(){
gotoAndPlay("left");
}
function frame33(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 76
//aliensound (aliensound)
package {
import flash.media.*;
public dynamic class aliensound extends Sound {
}
}//package
Section 77
//bonuslevelswapmc (bonuslevelswapmc)
package {
import flash.display.*;
public dynamic class bonuslevelswapmc extends MovieClip {
public function bonuslevelswapmc(){
addFrameScript(12, frame13, 26, frame27, 40, frame41, 55, frame56);
}
function frame13(){
stop();
}
function frame27(){
stop();
}
function frame41(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 78
//boosound (boosound)
package {
import flash.media.*;
public dynamic class boosound extends Sound {
}
}//package
Section 79
//buttonsound (buttonsound)
package {
import flash.media.*;
public dynamic class buttonsound extends Sound {
}
}//package
Section 80
//canmc (canmc)
package {
import flash.display.*;
public dynamic class canmc extends MovieClip {
public var step:MovieClip;
public function canmc(){
addFrameScript(45, frame46, 68, frame69, 91, frame92);
}
function frame92(){
stop();
}
function frame46(){
gotoAndPlay(1);
}
function frame69(){
gotoAndPlay("rotate");
}
}
}//package
Section 81
//cloud1mc (cloud1mc)
package {
import flash.display.*;
public dynamic class cloud1mc extends MovieClip {
}
}//package
Section 82
//cloud2mc (cloud2mc)
package {
import flash.display.*;
public dynamic class cloud2mc extends MovieClip {
}
}//package
Section 83
//cloud3mc (cloud3mc)
package {
import flash.display.*;
public dynamic class cloud3mc extends MovieClip {
}
}//package
Section 84
//dead4sound (dead4sound)
package {
import flash.media.*;
public dynamic class dead4sound extends Sound {
}
}//package
Section 85
//deadsound (deadsound)
package {
import flash.media.*;
public dynamic class deadsound extends Sound {
}
}//package
Section 86
//diamondmc (diamondmc)
package {
import flash.display.*;
public dynamic class diamondmc extends MovieClip {
public function diamondmc(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package
Section 87
//dizzysound (dizzysound)
package {
import flash.media.*;
public dynamic class dizzysound extends Sound {
}
}//package
Section 88
//dustmc (dustmc)
package {
import flash.display.*;
public dynamic class dustmc extends MovieClip {
public function dustmc(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package
Section 89
//earthquakesound (earthquakesound)
package {
import flash.media.*;
public dynamic class earthquakesound extends Sound {
}
}//package
Section 90
//electricsound (electricsound)
package {
import flash.media.*;
public dynamic class electricsound extends Sound {
}
}//package
Section 91
//equipbtn (equipbtn)
package {
import flash.display.*;
public dynamic class equipbtn extends SimpleButton {
}
}//package
Section 92
//evilblowfishmc (evilblowfishmc)
package {
import flash.display.*;
public dynamic class evilblowfishmc extends MovieClip {
public var mouth:MovieClip;
public function evilblowfishmc(){
addFrameScript(5, frame6, 11, frame12, 41, frame42, 71, frame72);
}
function frame72(){
gotoAndPlay("biteleft");
}
function frame12(){
gotoAndPlay("left");
}
function frame6(){
gotoAndPlay("right");
}
function frame42(){
gotoAndPlay("biteright");
}
}
}//package
Section 93
//explosion1sound (explosion1sound)
package {
import flash.media.*;
public dynamic class explosion1sound extends Sound {
}
}//package
Section 94
//failedsound (failedsound)
package {
import flash.media.*;
public dynamic class failedsound extends Sound {
}
}//package
Section 95
//fallingsound (fallingsound)
package {
import flash.media.*;
public dynamic class fallingsound extends Sound {
}
}//package
Section 96
//fishflysound (fishflysound)
package {
import flash.media.*;
public dynamic class fishflysound extends Sound {
}
}//package
Section 97
//fishmc (fishmc)
package {
import flash.display.*;
public dynamic class fishmc extends MovieClip {
}
}//package
Section 98
//foodworldsound (foodworldsound)
package {
import flash.media.*;
public dynamic class foodworldsound extends Sound {
}
}//package
Section 99
//freestylemc (freestylemc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class freestylemc extends MovieClip {
public var mc1:MovieClip;
public var txt1:TextField;
public function freestylemc(){
addFrameScript(4, frame5, 5, frame6);
}
function frame6(){
stop();
}
function frame5(){
gotoAndPlay(1);
}
}
}//package
Section 100
//freestylesound (freestylesound)
package {
import flash.media.*;
public dynamic class freestylesound extends Sound {
}
}//package
Section 101
//grenademc (grenademc)
package {
import flash.display.*;
public dynamic class grenademc extends MovieClip {
public function grenademc(){
addFrameScript(44, frame45, 59, frame60);
}
function frame45(){
gotoAndPlay(1);
}
function frame60(){
stop();
}
}
}//package
Section 102
//grenadesound (grenadesound)
package {
import flash.media.*;
public dynamic class grenadesound extends Sound {
}
}//package
Section 103
//judgemc (judgemc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class judgemc extends MovieClip {
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public function judgemc(){
addFrameScript(0, frame1, 8, frame9, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame9(){
stop();
}
}
}//package
Section 104
//jump1sound (jump1sound)
package {
import flash.media.*;
public dynamic class jump1sound extends Sound {
}
}//package
Section 105
//jump2sound (jump2sound)
package {
import flash.media.*;
public dynamic class jump2sound extends Sound {
}
}//package
Section 106
//launcher0sound (launcher0sound)
package {
import flash.media.*;
public dynamic class launcher0sound extends Sound {
}
}//package
Section 107
//launcher1mc (launcher1mc)
package {
import flash.display.*;
public dynamic class launcher1mc extends MovieClip {
public var rechargebar:MovieClip;
public var mcrecharge:MovieClip;
public function launcher1mc(){
addFrameScript(0, frame1, 2, frame3, 15, frame16);
}
function frame3(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 108
//launcher2mc (launcher2mc)
package {
import flash.display.*;
public dynamic class launcher2mc extends MovieClip {
public var mcrecharge:MovieClip;
public var mchead:MovieClip;
public function launcher2mc(){
addFrameScript(0, frame1, 34, frame35, 52, frame53);
}
function frame1(){
stop();
}
function frame35(){
stop();
}
function frame53(){
stop();
}
}
}//package
Section 109
//launcher3mc (launcher3mc)
package {
import flash.display.*;
public dynamic class launcher3mc extends MovieClip {
public var mcrecharge:MovieClip;
public var mchead:MovieClip;
public function launcher3mc(){
addFrameScript(0, frame1, 14, frame15, 24, frame25);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame25(){
stop();
}
}
}//package
Section 110
//launcher3sound (launcher3sound)
package {
import flash.media.*;
public dynamic class launcher3sound extends Sound {
}
}//package
Section 111
//launcher4mc (launcher4mc)
package {
import flash.display.*;
public dynamic class launcher4mc extends MovieClip {
public var mcrecharge:MovieClip;
public function launcher4mc(){
addFrameScript(0, frame1, 17, frame18, 35, frame36, 78, frame79, 114, frame115, 130, frame131, 146, frame147, 162, frame163);
}
function frame79(){
gotoAndPlay("wing11");
}
function frame163(){
stop();
}
function frame18(){
gotoAndPlay("push");
}
function frame1(){
stop();
}
function frame36(){
gotoAndPlay("fire");
}
function frame115(){
gotoAndPlay("wing22");
}
function frame131(){
stop();
}
function frame147(){
stop();
}
}
}//package
Section 112
//launcherpenguinmc (launcherpenguinmc)
package {
import flash.display.*;
public dynamic class launcherpenguinmc extends MovieClip {
public var penguin1push:MovieClip;
public var penguinsuperstand:MovieClip;
}
}//package
Section 113
//lvl11mc (lvl11mc)
package {
import flash.display.*;
public dynamic class lvl11mc extends MovieClip {
public var mc1:MovieClip;
}
}//package
Section 114
//lvl12mc (lvl12mc)
package {
import flash.display.*;
public dynamic class lvl12mc extends MovieClip {
}
}//package
Section 115
//lvl13mc (lvl13mc)
package {
import flash.display.*;
public dynamic class lvl13mc extends MovieClip {
}
}//package
Section 116
//lvl14mc (lvl14mc)
package {
import flash.display.*;
public dynamic class lvl14mc extends MovieClip {
}
}//package
Section 117
//lvl15mc (lvl15mc)
package {
import flash.display.*;
public dynamic class lvl15mc extends MovieClip {
}
}//package
Section 118
//lvl16mc (lvl16mc)
package {
import flash.display.*;
public dynamic class lvl16mc extends MovieClip {
}
}//package
Section 119
//lvl17mc (lvl17mc)
package {
import flash.display.*;
public dynamic class lvl17mc extends MovieClip {
}
}//package
Section 120
//lvl18mc (lvl18mc)
package {
import flash.display.*;
public dynamic class lvl18mc extends MovieClip {
}
}//package
Section 121
//lvl1step1mc (lvl1step1mc)
package {
import flash.display.*;
public dynamic class lvl1step1mc extends MovieClip {
public var tesla:MovieClip;
public var mctesla:MovieClip;
public var step:MovieClip;
public function lvl1step1mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 122
//lvl1step2mc (lvl1step2mc)
package {
import flash.display.*;
public dynamic class lvl1step2mc extends MovieClip {
public var tesla:MovieClip;
public var mctesla:MovieClip;
public var step:MovieClip;
public function lvl1step2mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 123
//lvl1step3mc (lvl1step3mc)
package {
import flash.display.*;
public dynamic class lvl1step3mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 124
//lvl1step4mc (lvl1step4mc)
package {
import flash.display.*;
public dynamic class lvl1step4mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 125
//lvl1step5mc (lvl1step5mc)
package {
import flash.display.*;
public dynamic class lvl1step5mc extends MovieClip {
public var step:MovieClip;
public function lvl1step5mc(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
stop();
}
}
}//package
Section 126
//lvl1step6mc (lvl1step6mc)
package {
import flash.display.*;
public dynamic class lvl1step6mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 127
//lvl1step7cutmc (lvl1step7cutmc)
package {
import flash.display.*;
public dynamic class lvl1step7cutmc extends MovieClip {
public function lvl1step7cutmc(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 128
//lvl1step7mc (lvl1step7mc)
package {
import flash.display.*;
public dynamic class lvl1step7mc extends MovieClip {
public var step:MovieClip;
public function lvl1step7mc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 129
//lvl21mc (lvl21mc)
package {
import flash.display.*;
public dynamic class lvl21mc extends MovieClip {
}
}//package
Section 130
//lvl22mc (lvl22mc)
package {
import flash.display.*;
public dynamic class lvl22mc extends MovieClip {
}
}//package
Section 131
//lvl23mc (lvl23mc)
package {
import flash.display.*;
public dynamic class lvl23mc extends MovieClip {
}
}//package
Section 132
//lvl24mc (lvl24mc)
package {
import flash.display.*;
public dynamic class lvl24mc extends MovieClip {
}
}//package
Section 133
//lvl25mc (lvl25mc)
package {
import flash.display.*;
public dynamic class lvl25mc extends MovieClip {
}
}//package
Section 134
//lvl26mc (lvl26mc)
package {
import flash.display.*;
public dynamic class lvl26mc extends MovieClip {
}
}//package
Section 135
//lvl27mc (lvl27mc)
package {
import flash.display.*;
public dynamic class lvl27mc extends MovieClip {
}
}//package
Section 136
//lvl28mc (lvl28mc)
package {
import flash.display.*;
public dynamic class lvl28mc extends MovieClip {
}
}//package
Section 137
//lvl2step1mc (lvl2step1mc)
package {
import flash.display.*;
public dynamic class lvl2step1mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 138
//lvl2step2mc (lvl2step2mc)
package {
import flash.display.*;
public dynamic class lvl2step2mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 139
//lvl2step3mc (lvl2step3mc)
package {
import flash.display.*;
public dynamic class lvl2step3mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 140
//lvl2step4mc (lvl2step4mc)
package {
import flash.display.*;
public dynamic class lvl2step4mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 141
//lvl2step5mc (lvl2step5mc)
package {
import flash.display.*;
public dynamic class lvl2step5mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 142
//lvl31mc (lvl31mc)
package {
import flash.display.*;
public dynamic class lvl31mc extends MovieClip {
}
}//package
Section 143
//lvl32mc (lvl32mc)
package {
import flash.display.*;
public dynamic class lvl32mc extends MovieClip {
}
}//package
Section 144
//lvl33mc (lvl33mc)
package {
import flash.display.*;
public dynamic class lvl33mc extends MovieClip {
}
}//package
Section 145
//lvl34mc (lvl34mc)
package {
import flash.display.*;
public dynamic class lvl34mc extends MovieClip {
}
}//package
Section 146
//lvl35mc (lvl35mc)
package {
import flash.display.*;
public dynamic class lvl35mc extends MovieClip {
}
}//package
Section 147
//lvl36mc (lvl36mc)
package {
import flash.display.*;
public dynamic class lvl36mc extends MovieClip {
}
}//package
Section 148
//lvl37mc (lvl37mc)
package {
import flash.display.*;
public dynamic class lvl37mc extends MovieClip {
}
}//package
Section 149
//lvl38mc (lvl38mc)
package {
import flash.display.*;
public dynamic class lvl38mc extends MovieClip {
}
}//package
Section 150
//lvl3step1mc (lvl3step1mc)
package {
import flash.display.*;
public dynamic class lvl3step1mc extends MovieClip {
public var step:MovieClip;
public function lvl3step1mc(){
addFrameScript(0, frame1, 7, frame8, 13, frame14);
}
function frame14(){
stop();
}
function frame1(){
stop();
}
function frame8(){
gotoAndStop(1);
}
}
}//package
Section 151
//lvl3step2mc (lvl3step2mc)
package {
import flash.display.*;
public dynamic class lvl3step2mc extends MovieClip {
public var step:MovieClip;
public function lvl3step2mc(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
stop();
}
}
}//package
Section 152
//lvl3step3mc (lvl3step3mc)
package {
import flash.display.*;
public dynamic class lvl3step3mc extends MovieClip {
public var spike:MovieClip;
public var mcblood:MovieClip;
public var step:MovieClip;
public function lvl3step3mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 153
//lvl3step4mc (lvl3step4mc)
package {
import flash.display.*;
public dynamic class lvl3step4mc extends MovieClip {
public var step:MovieClip;
public function lvl3step4mc(){
addFrameScript(0, frame1, 9, frame10, 17, frame18);
}
function frame10(){
gotoAndStop(1);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 154
//lvl3step5mc (lvl3step5mc)
package {
import flash.display.*;
public dynamic class lvl3step5mc extends MovieClip {
public var glue:MovieClip;
public var step:MovieClip;
public var mclengket:MovieClip;
public function lvl3step5mc(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 155
//lvl3step6mc (lvl3step6mc)
package {
import flash.display.*;
public dynamic class lvl3step6mc extends MovieClip {
public var step:MovieClip;
public function lvl3step6mc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 156
//lvl41mc (lvl41mc)
package {
import flash.display.*;
public dynamic class lvl41mc extends MovieClip {
}
}//package
Section 157
//lvl42mc (lvl42mc)
package {
import flash.display.*;
public dynamic class lvl42mc extends MovieClip {
}
}//package
Section 158
//lvl43mc (lvl43mc)
package {
import flash.display.*;
public dynamic class lvl43mc extends MovieClip {
public var alien3:MovieClip;
public var alien5:MovieClip;
public var alien2:MovieClip;
public var alien1:MovieClip;
public var alien4:MovieClip;
}
}//package
Section 159
//lvl44mc (lvl44mc)
package {
import flash.display.*;
public dynamic class lvl44mc extends MovieClip {
public var alien3:MovieClip;
public var alien5:MovieClip;
public var alien2:MovieClip;
public var alien1:MovieClip;
public var alien4:MovieClip;
}
}//package
Section 160
//lvl46mc (lvl46mc)
package {
import flash.display.*;
public dynamic class lvl46mc extends MovieClip {
public var alien3:MovieClip;
public var alien5:MovieClip;
public var alien2:MovieClip;
public var alien1:MovieClip;
public var alien4:MovieClip;
}
}//package
Section 161
//lvl48mc (lvl48mc)
package {
import flash.display.*;
public dynamic class lvl48mc extends MovieClip {
}
}//package
Section 162
//lvl4step1mc (lvl4step1mc)
package {
import flash.display.*;
public dynamic class lvl4step1mc extends MovieClip {
public var step:MovieClip;
public function lvl4step1mc(){
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
}
}
}//package
Section 163
//lvl4step2mc (lvl4step2mc)
package {
import flash.display.*;
public dynamic class lvl4step2mc extends MovieClip {
public var step:MovieClip;
public function lvl4step2mc(){
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
}
}
}//package
Section 164
//lvl4step3mc (lvl4step3mc)
package {
import flash.display.*;
public dynamic class lvl4step3mc extends MovieClip {
public var step:MovieClip;
public function lvl4step3mc(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 165
//lvl4step4mc (lvl4step4mc)
package {
import flash.display.*;
public dynamic class lvl4step4mc extends MovieClip {
public var step:MovieClip;
public function lvl4step4mc(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 166
//lvl51mc (lvl51mc)
package {
import flash.display.*;
public dynamic class lvl51mc extends MovieClip {
public var mc1:MovieClip;
public function lvl51mc(){
addFrameScript(0, frame1);
}
function frame1(){
mc1.cacheAsBitmap = true;
}
}
}//package
Section 167
//lvlbonus11mc (lvlbonus11mc)
package {
import flash.display.*;
public dynamic class lvlbonus11mc extends MovieClip {
}
}//package
Section 168
//lvlbonus12mc (lvlbonus12mc)
package {
import flash.display.*;
public dynamic class lvlbonus12mc extends MovieClip {
public var mca:MovieClip;
public var mcb:MovieClip;
}
}//package
Section 169
//lvlbonus1step1mc (lvlbonus1step1mc)
package {
import flash.display.*;
public dynamic class lvlbonus1step1mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 170
//lvlbonus1step2mc (lvlbonus1step2mc)
package {
import flash.display.*;
public dynamic class lvlbonus1step2mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 171
//lvlbonus1step3mc (lvlbonus1step3mc)
package {
import flash.display.*;
public dynamic class lvlbonus1step3mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 172
//lvlbonus1step4mc (lvlbonus1step4mc)
package {
import flash.display.*;
public dynamic class lvlbonus1step4mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 173
//lvlbonus1step5mc (lvlbonus1step5mc)
package {
import flash.display.*;
public dynamic class lvlbonus1step5mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 174
//lvlbonus1step6mc (lvlbonus1step6mc)
package {
import flash.display.*;
public dynamic class lvlbonus1step6mc extends MovieClip {
public var step:MovieClip;
}
}//package
Section 175
//mainmenusound (mainmenusound)
package {
import flash.media.*;
public dynamic class mainmenusound extends Sound {
}
}//package
Section 176
//mcUI (mcUI)
package {
import flash.display.*;
import flash.text.*;
public dynamic class mcUI extends MovieClip {
public var cangoal:MovieClip;
public var trampie:MovieClip;
public var mcpower:MovieClip;
public var btnGF:SimpleButton;
public var calendar:MovieClip;
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var txt5:TextField;
public var txt4:TextField;
}
}//package
Section 177
//meteormc (meteormc)
package {
import flash.display.*;
public dynamic class meteormc extends MovieClip {
public function meteormc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 178
//moneysackmc (moneysackmc)
package {
import flash.display.*;
public dynamic class moneysackmc extends MovieClip {
public function moneysackmc(){
addFrameScript(51, frame52, 71, frame72, 102, frame103);
}
function frame72(){
gotoAndPlay("rotate");
}
function frame103(){
stop();
}
function frame52(){
gotoAndPlay(1);
}
}
}//package
Section 179
//mousepointermc (mousepointermc)
package {
import flash.display.*;
public dynamic class mousepointermc extends MovieClip {
public function mousepointermc(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
stop();
}
}
}//package
Section 180
//newgamemc (newgamemc)
package {
import flash.display.*;
public dynamic class newgamemc extends MovieClip {
public var mcwarning:MovieClip;
}
}//package
Section 181
//northpolesound (northpolesound)
package {
import flash.media.*;
public dynamic class northpolesound extends Sound {
}
}//package
Section 182
//openingsound (openingsound)
package {
import flash.media.*;
public dynamic class openingsound extends Sound {
}
}//package
Section 183
//optionmenumc (optionmenumc)
package {
import flash.display.*;
public dynamic class optionmenumc extends MovieClip {
public var mccredit:MovieClip;
public var btnback:SimpleButton;
public var btndefault:SimpleButton;
public var btnbacktomainmenu:SimpleButton;
public function optionmenumc(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 184
//optionmenumc2 (optionmenumc2)
package {
import flash.display.*;
public dynamic class optionmenumc2 extends MovieClip {
public var mccredit:MovieClip;
public var btnquality:SimpleButton;
public var btnback:SimpleButton;
public var btncredit:SimpleButton;
public var btndefault:SimpleButton;
public var btnSFX:SimpleButton;
public var btnbacktomainmenu:SimpleButton;
public var btnBGM:SimpleButton;
public function optionmenumc2(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 185
//pausemc (pausemc)
package {
import flash.display.*;
public dynamic class pausemc extends MovieClip {
public var btnresume:SimpleButton;
public var btnexit:SimpleButton;
public var btnoption:SimpleButton;
public function pausemc(){
addFrameScript(0, frame1, 33, frame34);
}
function frame1(){
trace("STOP D 1");
stop();
}
function frame34(){
stop();
}
}
}//package
Section 186
//pausesound (pausesound)
package {
import flash.media.*;
public dynamic class pausesound extends Sound {
}
}//package
Section 187
//pelicanmc (pelicanmc)
package {
import flash.display.*;
public dynamic class pelicanmc extends MovieClip {
public var step:MovieClip;
public function pelicanmc(){
addFrameScript(20, frame21, 41, frame42, 86, frame87);
}
function frame87(){
stop();
}
function frame21(){
gotoAndPlay("right");
}
function frame42(){
gotoAndPlay("left");
}
}
}//package
Section 188
//pelicansound (pelicansound)
package {
import flash.media.*;
public dynamic class pelicansound extends Sound {
}
}//package
Section 189
//penguinbunnymc (penguinbunnymc)
package {
import flash.display.*;
public dynamic class penguinbunnymc extends MovieClip {
public var dead4:MovieClip;
public var foot:MovieClip;
public var mcfish:MovieClip;
public function penguinbunnymc(){
addFrameScript(2, frame3, 7, frame8, 11, frame12, 25, frame26, 53, frame54, 63, frame64, 83, frame84, 95, frame96, 115, frame116, 126, frame127, 173, frame174, 174, frame175, 177, frame178, 182, frame183, 183, frame184, 193, frame194, 201, frame202, 210, frame211, 211, frame212);
}
function frame64(){
gotoAndStop("hurt1");
}
function frame84(){
stop();
}
function frame202(){
stop();
}
function frame178(){
gotoAndPlay("flyup2");
}
function frame174(){
stop();
gotoAndPlay("dead2cut");
}
function frame211(){
gotoAndPlay("nasa");
}
function frame12(){
gotoAndPlay("flyup");
}
function frame183(){
gotoAndPlay("flydown2");
}
function frame3(){
gotoAndPlay("flyup");
}
function frame8(){
gotoAndPlay("flydown");
}
function frame26(){
gotoAndPlay("balon11");
}
function frame96(){
gotoAndPlay("dance1");
}
function frame175(){
stop();
}
function frame194(){
stop();
}
function frame116(){
gotoAndPlay("dance2");
}
function frame184(){
stop();
}
function frame212(){
stop();
}
function frame127(){
stop();
}
function frame54(){
gotoAndStop("flydown");
}
}
}//package
Section 190
//penguinflymc (penguinflymc)
package {
import flash.display.*;
public dynamic class penguinflymc extends MovieClip {
public var foot:MovieClip;
public var mcfish:MovieClip;
public function penguinflymc(){
addFrameScript(2, frame3, 8, frame9, 12, frame13, 25, frame26, 53, frame54, 64, frame65, 85, frame86, 95, frame96, 107, frame108, 157, frame158, 176, frame177, 177, frame178, 180, frame181, 186, frame187, 198, frame199, 199, frame200, 207, frame208, 216, frame217, 217, frame218);
}
function frame65(){
gotoAndPlay("hurt1");
}
function frame158(){
gotoAndPlay("dead2cut");
}
function frame200(){
stop();
}
function frame86(){
stop();
}
function frame208(){
stop();
}
function frame177(){
gotoAndPlay("dance2");
}
function frame178(){
stop();
}
function frame218(){
stop();
}
function frame181(){
gotoAndPlay("flyup2");
}
function frame187(){
gotoAndPlay("flydown2");
}
function frame3(){
gotoAndPlay("flyup");
}
function frame217(){
gotoAndPlay("nasa");
}
function frame13(){
gotoAndPlay("flyup");
}
function frame96(){
gotoAndPlay("dance1");
}
function frame9(){
gotoAndPlay("flydown");
}
function frame108(){
stop();
}
function frame199(){
stop();
}
function frame26(){
gotoAndPlay("balon11");
}
function frame54(){
gotoAndStop("flydown");
}
}
}//package
Section 191
//penguinmc (penguinmc)
package {
import flash.display.*;
public dynamic class penguinmc extends MovieClip {
public var foot:MovieClip;
public var mcfish:MovieClip;
public function penguinmc(){
addFrameScript(2, frame3, 8, frame9, 12, frame13, 27, frame28, 55, frame56, 65, frame66, 85, frame86, 97, frame98, 113, frame114, 124, frame125, 170, frame171, 171, frame172, 172, frame173, 175, frame176, 181, frame182, 190, frame191, 200, frame201, 209, frame210, 210, frame211);
}
function frame86(){
stop();
}
function frame201(){
stop();
}
function frame171(){
gotoAndPlay("dead2cut");
}
function frame172(){
stop();
}
function frame176(){
gotoAndPlay("flyup2");
}
function frame210(){
gotoAndPlay("nasa");
}
function frame211(){
stop();
}
function frame98(){
gotoAndPlay("dance1");
}
function frame3(){
gotoAndPlay("flyup");
}
function frame173(){
stop();
}
function frame13(){
gotoAndPlay("flyup");
}
function frame182(){
gotoAndPlay("flydown2");
}
function frame9(){
gotoAndPlay("flydown");
}
function frame191(){
stop();
}
function frame114(){
gotoAndPlay("dance2");
}
function frame28(){
gotoAndPlay("balon11");
}
function frame125(){
stop();
}
function frame56(){
gotoAndStop("flydown");
}
function frame66(){
gotoAndStop("hurt1");
}
}
}//package
Section 192
//penguinsupermc (penguinsupermc)
package {
import flash.display.*;
public dynamic class penguinsupermc extends MovieClip {
public var foot:MovieClip;
public var mcfish:MovieClip;
public function penguinsupermc(){
addFrameScript(2, frame3, 8, frame9, 12, frame13, 27, frame28, 55, frame56, 65, frame66, 85, frame86, 97, frame98, 111, frame112, 122, frame123, 169, frame170, 170, frame171, 173, frame174, 179, frame180, 190, frame191, 191, frame192, 199, frame200, 208, frame209, 209, frame210);
}
function frame200(){
stop();
}
function frame86(){
stop();
}
function frame209(){
gotoAndPlay("nasa");
}
function frame171(){
stop();
}
function frame170(){
gotoAndPlay("dead2cut");
}
function frame174(){
gotoAndPlay("flyup2");
}
function frame98(){
gotoAndPlay("dance1");
}
function frame180(){
gotoAndPlay("flydown2");
}
function frame3(){
gotoAndPlay("flyup");
}
function frame13(){
gotoAndPlay("flyup");
}
function frame9(){
gotoAndPlay("flydown");
}
function frame191(){
stop();
}
function frame192(){
stop();
}
function frame210(){
stop();
}
function frame28(){
gotoAndPlay("balon11");
}
function frame112(){
gotoAndPlay("dance2");
}
function frame123(){
stop();
}
function frame56(){
gotoAndStop("flydown");
}
function frame66(){
gotoAndPlay("hurt1");
}
}
}//package
Section 193
//popsound (popsound)
package {
import flash.media.*;
public dynamic class popsound extends Sound {
}
}//package
Section 194
//purchasesound (purchasesound)
package {
import flash.media.*;
public dynamic class purchasesound extends Sound {
}
}//package
Section 195
//resultmc (resultmc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class resultmc extends MovieClip {
public var btnplaymoregames:SimpleButton;
public var txtday:TextField;
public var btnback:SimpleButton;
public var btnshop:SimpleButton;
public var btnsubmit:SimpleButton;
public var btnplay:SimpleButton;
public var txt1:TextField;
public var txt2:TextField;
public var txt3:TextField;
public var txt5:TextField;
public var txt6:TextField;
public var txt4:TextField;
public var shopCG:MovieClip;
}
}//package
Section 196
//rubbersound (rubbersound)
package {
import flash.media.*;
public dynamic class rubbersound extends Sound {
}
}//package
Section 197
//sardinessound (sardinessound)
package {
import flash.media.*;
public dynamic class sardinessound extends Sound {
}
}//package
Section 198
//shockpenguinmc (shockpenguinmc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class shockpenguinmc extends MovieClip {
public var ab:MovieClip;
public var txt1:TextField;
public function shockpenguinmc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 199
//shopsound (shopsound)
package {
import flash.media.*;
public dynamic class shopsound extends Sound {
}
}//package
Section 200
//slidesound (slidesound)
package {
import flash.media.*;
public dynamic class slidesound extends Sound {
}
}//package
Section 201
//snowmc (snowmc)
package {
import flash.display.*;
public dynamic class snowmc extends MovieClip {
public function snowmc(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 202
//spikesound (spikesound)
package {
import flash.media.*;
public dynamic class spikesound extends Sound {
}
}//package
Section 203
//tanksound (tanksound)
package {
import flash.media.*;
public dynamic class tanksound extends Sound {
}
}//package
Section 204
//trophy1 (trophy1)
package {
import flash.display.*;
public dynamic class trophy1 extends MovieClip {
public function trophy1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 205
//trophy10 (trophy10)
package {
import flash.display.*;
public dynamic class trophy10 extends MovieClip {
public function trophy10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 206
//trophy11 (trophy11)
package {
import flash.display.*;
public dynamic class trophy11 extends MovieClip {
public function trophy11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 207
//trophy12 (trophy12)
package {
import flash.display.*;
public dynamic class trophy12 extends MovieClip {
public function trophy12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 208
//trophy13 (trophy13)
package {
import flash.display.*;
public dynamic class trophy13 extends MovieClip {
public function trophy13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 209
//trophy14 (trophy14)
package {
import flash.display.*;
public dynamic class trophy14 extends MovieClip {
public function trophy14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 210
//trophy15 (trophy15)
package {
import flash.display.*;
public dynamic class trophy15 extends MovieClip {
public function trophy15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 211
//trophy16 (trophy16)
package {
import flash.display.*;
public dynamic class trophy16 extends MovieClip {
public function trophy16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 212
//trophy17 (trophy17)
package {
import flash.display.*;
public dynamic class trophy17 extends MovieClip {
public function trophy17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 213
//trophy18 (trophy18)
package {
import flash.display.*;
public dynamic class trophy18 extends MovieClip {
public function trophy18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 214
//trophy19 (trophy19)
package {
import flash.display.*;
public dynamic class trophy19 extends MovieClip {
public function trophy19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 215
//trophy2 (trophy2)
package {
import flash.display.*;
public dynamic class trophy2 extends MovieClip {
public function trophy2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 216
//trophy20 (trophy20)
package {
import flash.display.*;
public dynamic class trophy20 extends MovieClip {
public function trophy20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 217
//trophy21 (trophy21)
package {
import flash.display.*;
public dynamic class trophy21 extends MovieClip {
public function trophy21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 218
//trophy22 (trophy22)
package {
import flash.display.*;
public dynamic class trophy22 extends MovieClip {
public function trophy22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 219
//trophy23 (trophy23)
package {
import flash.display.*;
public dynamic class trophy23 extends MovieClip {
public function trophy23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 220
//trophy24 (trophy24)
package {
import flash.display.*;
public dynamic class trophy24 extends MovieClip {
public function trophy24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 221
//trophy25 (trophy25)
package {
import flash.display.*;
public dynamic class trophy25 extends MovieClip {
public function trophy25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 222
//trophy26 (trophy26)
package {
import flash.display.*;
public dynamic class trophy26 extends MovieClip {
public function trophy26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 223
//trophy27 (trophy27)
package {
import flash.display.*;
public dynamic class trophy27 extends MovieClip {
public function trophy27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 224
//trophy28 (trophy28)
package {
import flash.display.*;
public dynamic class trophy28 extends MovieClip {
public function trophy28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 225
//trophy29 (trophy29)
package {
import flash.display.*;
public dynamic class trophy29 extends MovieClip {
public function trophy29(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 226
//trophy3 (trophy3)
package {
import flash.display.*;
public dynamic class trophy3 extends MovieClip {
public function trophy3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 227
//trophy30 (trophy30)
package {
import flash.display.*;
public dynamic class trophy30 extends MovieClip {
public function trophy30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 228
//trophy4 (trophy4)
package {
import flash.display.*;
public dynamic class trophy4 extends MovieClip {
public function trophy4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 229
//trophy5 (trophy5)
package {
import flash.display.*;
public dynamic class trophy5 extends MovieClip {
public function trophy5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 230
//trophy6 (trophy6)
package {
import flash.display.*;
public dynamic class trophy6 extends MovieClip {
public function trophy6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 231
//trophy7 (trophy7)
package {
import flash.display.*;
public dynamic class trophy7 extends MovieClip {
public function trophy7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 232
//trophy8 (trophy8)
package {
import flash.display.*;
public dynamic class trophy8 extends MovieClip {
public function trophy8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 233
//trophy9 (trophy9)
package {
import flash.display.*;
public dynamic class trophy9 extends MovieClip {
public function trophy9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 234
//txtcombo2mc (txtcombo2mc)
package {
import flash.display.*;
public dynamic class txtcombo2mc extends MovieClip {
public var txt1:MovieClip;
}
}//package
Section 235
//txtcombomc (txtcombomc)
package {
import flash.display.*;
public dynamic class txtcombomc extends MovieClip {
public var txt1:MovieClip;
}
}//package
Section 236
//ufobulletmc (ufobulletmc)
package {
import flash.display.*;
public dynamic class ufobulletmc extends MovieClip {
}
}//package
Section 237
//ufobulletsound (ufobulletsound)
package {
import flash.media.*;
public dynamic class ufobulletsound extends Sound {
}
}//package
Section 238
//UFOmc (UFOmc)
package {
import flash.display.*;
public dynamic class UFOmc extends MovieClip {
public var mctarget:MovieClip;
}
}//package
Section 239
//warpdoormc (warpdoormc)
package {
import flash.display.*;
public dynamic class warpdoormc extends MovieClip {
public var mc1:MovieClip;
public var step:MovieClip;
}
}//package
Section 240
//warpsound (warpsound)
package {
import flash.media.*;
public dynamic class warpsound extends Sound {
}
}//package
Section 241
//weesound (weesound)
package {
import flash.media.*;
public dynamic class weesound extends Sound {
}
}//package
Section 242
//windsound (windsound)
package {
import flash.media.*;
public dynamic class windsound extends Sound {
}
}//package