Section 1
//bananaall_527 (achievegame_fla.bananaall_527)
package achievegame_fla {
import flash.display.*;
public dynamic class bananaall_527 extends MovieClip {
public var a:MovieClip;
public function bananaall_527(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 2
//bananasplit_534 (achievegame_fla.bananasplit_534)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class bananasplit_534 extends MovieClip {
public var c:TextField;
}
}//package achievegame_fla
Section 3
//bonus1all_225 (achievegame_fla.bonus1all_225)
package achievegame_fla {
import flash.display.*;
public dynamic class bonus1all_225 extends MovieClip {
public function bonus1all_225(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 4
//bonus1iconsall_56 (achievegame_fla.bonus1iconsall_56)
package achievegame_fla {
import flash.display.*;
public dynamic class bonus1iconsall_56 extends MovieClip {
public function bonus1iconsall_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 5
//bonusall_383 (achievegame_fla.bonusall_383)
package achievegame_fla {
import flash.display.*;
public dynamic class bonusall_383 extends MovieClip {
public var a:MovieClip;
public function bonusall_383(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 6
//brightai_764 (achievegame_fla.brightai_764)
package achievegame_fla {
import flash.display.*;
public dynamic class brightai_764 extends MovieClip {
public function brightai_764(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package achievegame_fla
Section 7
//cart3all_536 (achievegame_fla.cart3all_536)
package achievegame_fla {
import flash.display.*;
public dynamic class cart3all_536 extends MovieClip {
public var a:MovieClip;
public function cart3all_536(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 8
//cartall_247 (achievegame_fla.cartall_247)
package achievegame_fla {
import flash.display.*;
public dynamic class cartall_247 extends MovieClip {
public var a:MovieClip;
public function cartall_247(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 9
//cartani_248 (achievegame_fla.cartani_248)
package achievegame_fla {
import flash.display.*;
public dynamic class cartani_248 extends MovieClip {
public var a:MovieClip;
}
}//package achievegame_fla
Section 10
//cartcrash_289 (achievegame_fla.cartcrash_289)
package achievegame_fla {
import flash.display.*;
public dynamic class cartcrash_289 extends MovieClip {
public function cartcrash_289(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package achievegame_fla
Section 11
//cmordecaicartbump_286 (achievegame_fla.cmordecaicartbump_286)
package achievegame_fla {
import flash.display.*;
public dynamic class cmordecaicartbump_286 extends MovieClip {
public function cmordecaicartbump_286(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package achievegame_fla
Section 12
//cmordecaicartjump_282 (achievegame_fla.cmordecaicartjump_282)
package achievegame_fla {
import flash.display.*;
public dynamic class cmordecaicartjump_282 extends MovieClip {
public function cmordecaicartjump_282(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package achievegame_fla
Section 13
//CNLoadingProgress_2 (achievegame_fla.CNLoadingProgress_2)
package achievegame_fla {
import flash.display.*;
public dynamic class CNLoadingProgress_2 extends MovieClip {
public var ani:MovieClip;
public var fill_mc:MovieClip;
public function CNLoadingProgress_2(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
stop();
}
function frame100(){
stop();
}
}
}//package achievegame_fla
Section 14
//CNPreLoaderOut_6 (achievegame_fla.CNPreLoaderOut_6)
package achievegame_fla {
import flash.display.*;
public dynamic class CNPreLoaderOut_6 extends MovieClip {
public function CNPreLoaderOut_6(){
addFrameScript(41, frame42);
}
function frame42(){
stop();
}
}
}//package achievegame_fla
Section 15
//combohits_243 (achievegame_fla.combohits_243)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class combohits_243 extends MovieClip {
public var c:TextField;
public var b:TextField;
}
}//package achievegame_fla
Section 16
//cpopscartbump_287 (achievegame_fla.cpopscartbump_287)
package achievegame_fla {
import flash.display.*;
public dynamic class cpopscartbump_287 extends MovieClip {
public function cpopscartbump_287(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package achievegame_fla
Section 17
//cpopscartjump_283 (achievegame_fla.cpopscartjump_283)
package achievegame_fla {
import flash.display.*;
public dynamic class cpopscartjump_283 extends MovieClip {
public function cpopscartjump_283(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package achievegame_fla
Section 18
//cskidscartbump_288 (achievegame_fla.cskidscartbump_288)
package achievegame_fla {
import flash.display.*;
public dynamic class cskidscartbump_288 extends MovieClip {
public function cskidscartbump_288(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package achievegame_fla
Section 19
//cskidscartjump_284 (achievegame_fla.cskidscartjump_284)
package achievegame_fla {
import flash.display.*;
public dynamic class cskidscartjump_284 extends MovieClip {
public function cskidscartjump_284(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package achievegame_fla
Section 20
//destroyer2all_556 (achievegame_fla.destroyer2all_556)
package achievegame_fla {
import flash.display.*;
public dynamic class destroyer2all_556 extends MovieClip {
public var a:MovieClip;
public function destroyer2all_556(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 21
//destroyerall_483 (achievegame_fla.destroyerall_483)
package achievegame_fla {
import flash.display.*;
public dynamic class destroyerall_483 extends MovieClip {
public var c:MovieClip;
public var a:MovieClip;
public function destroyerall_483(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 22
//destroyereyesall_486 (achievegame_fla.destroyereyesall_486)
package achievegame_fla {
import flash.display.*;
public dynamic class destroyereyesall_486 extends MovieClip {
public function destroyereyesall_486(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 23
//destroyereyesfire2_488 (achievegame_fla.destroyereyesfire2_488)
package achievegame_fla {
import flash.display.*;
public dynamic class destroyereyesfire2_488 extends MovieClip {
public function destroyereyesfire2_488(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package achievegame_fla
Section 24
//dollall_63 (achievegame_fla.dollall_63)
package achievegame_fla {
import flash.display.*;
public dynamic class dollall_63 extends MovieClip {
public var a:MovieClip;
public function dollall_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 25
//dollhit_72 (achievegame_fla.dollhit_72)
package achievegame_fla {
import flash.display.*;
public dynamic class dollhit_72 extends MovieClip {
public function dollhit_72(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package achievegame_fla
Section 26
//explosionbig_557 (achievegame_fla.explosionbig_557)
package achievegame_fla {
import flash.display.*;
public dynamic class explosionbig_557 extends MovieClip {
public function explosionbig_557(){
addFrameScript(31, frame32);
}
function frame32(){
stop();
}
}
}//package achievegame_fla
Section 27
//explosiond_512 (achievegame_fla.explosiond_512)
package achievegame_fla {
import flash.display.*;
public dynamic class explosiond_512 extends MovieClip {
public function explosiond_512(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package achievegame_fla
Section 28
//finishani3_733 (achievegame_fla.finishani3_733)
package achievegame_fla {
import flash.display.*;
public dynamic class finishani3_733 extends MovieClip {
public var a:MovieClip;
public function finishani3_733(){
addFrameScript(118, frame119);
}
function frame119(){
stop();
}
}
}//package achievegame_fla
Section 29
//fistall_356 (achievegame_fla.fistall_356)
package achievegame_fla {
import flash.display.*;
public dynamic class fistall_356 extends MovieClip {
public var a:MovieClip;
}
}//package achievegame_fla
Section 30
//fistani_360 (achievegame_fla.fistani_360)
package achievegame_fla {
import flash.display.*;
public dynamic class fistani_360 extends MovieClip {
public function fistani_360(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package achievegame_fla
Section 31
//gameover_35 (achievegame_fla.gameover_35)
package achievegame_fla {
import flash.display.*;
public dynamic class gameover_35 extends MovieClip {
public var button2txt:MovieClip;
public var button1:SimpleButton;
public var b:MovieClip;
public var button2:SimpleButton;
public var a:MovieClip;
public var button1txt:MovieClip;
}
}//package achievegame_fla
Section 32
//gameover2_42 (achievegame_fla.gameover2_42)
package achievegame_fla {
import flash.display.*;
public dynamic class gameover2_42 extends MovieClip {
public var button2txt:MovieClip;
public var button1:SimpleButton;
public var b:MovieClip;
public var button2:SimpleButton;
public var a:MovieClip;
public var button1txt:MovieClip;
}
}//package achievegame_fla
Section 33
//gameovertxt_37 (achievegame_fla.gameovertxt_37)
package achievegame_fla {
import flash.display.*;
public dynamic class gameovertxt_37 extends MovieClip {
public function gameovertxt_37(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 34
//giantall_562 (achievegame_fla.giantall_562)
package achievegame_fla {
import flash.display.*;
public dynamic class giantall_562 extends MovieClip {
public var a:MovieClip;
public function giantall_562(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 35
//grenadeall_511 (achievegame_fla.grenadeall_511)
package achievegame_fla {
import flash.display.*;
public dynamic class grenadeall_511 extends MovieClip {
public function grenadeall_511(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 36
//hintall_231 (achievegame_fla.hintall_231)
package achievegame_fla {
import flash.display.*;
public dynamic class hintall_231 extends MovieClip {
public function hintall_231(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 37
//hitstar_500 (achievegame_fla.hitstar_500)
package achievegame_fla {
import flash.display.*;
public dynamic class hitstar_500 extends MovieClip {
public function hitstar_500(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package achievegame_fla
Section 38
//insall_640 (achievegame_fla.insall_640)
package achievegame_fla {
import flash.display.*;
public dynamic class insall_640 extends MovieClip {
public var a:MovieClip;
public var button4txt:MovieClip;
public function insall_640(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 39
//levelinfo_241 (achievegame_fla.levelinfo_241)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class levelinfo_241 extends MovieClip {
public var b:TextField;
}
}//package achievegame_fla
Section 40
//lives_325 (achievegame_fla.lives_325)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class lives_325 extends MovieClip {
public var b:TextField;
}
}//package achievegame_fla
Section 41
//loaderingbar2copy_779 (achievegame_fla.loaderingbar2copy_779)
package achievegame_fla {
import flash.display.*;
public dynamic class loaderingbar2copy_779 extends MovieClip {
public var c:MovieClip;
public var b:MovieClip;
}
}//package achievegame_fla
Section 42
//loading_782 (achievegame_fla.loading_782)
package achievegame_fla {
import flash.display.*;
public dynamic class loading_782 extends MovieClip {
public function loading_782(){
addFrameScript(29, frame30);
}
function frame30(){
gotoAndPlay(1);
}
}
}//package achievegame_fla
Section 43
//m3all_471 (achievegame_fla.m3all_471)
package achievegame_fla {
import flash.display.*;
public dynamic class m3all_471 extends MovieClip {
public var a:MovieClip;
public function m3all_471(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 44
//mall_87 (achievegame_fla.mall_87)
package achievegame_fla {
import flash.display.*;
public dynamic class mall_87 extends MovieClip {
public var a:MovieClip;
public function mall_87(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 45
//mhold_88 (achievegame_fla.mhold_88)
package achievegame_fla {
import flash.display.*;
public dynamic class mhold_88 extends MovieClip {
public function mhold_88(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package achievegame_fla
Section 46
//outoftimecopy_38 (achievegame_fla.outoftimecopy_38)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class outoftimecopy_38 extends MovieClip {
public var b:TextField;
}
}//package achievegame_fla
Section 47
//poof_708 (achievegame_fla.poof_708)
package achievegame_fla {
import flash.display.*;
public dynamic class poof_708 extends MovieClip {
public function poof_708(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package achievegame_fla
Section 48
//poofani_707 (achievegame_fla.poofani_707)
package achievegame_fla {
import flash.display.*;
public dynamic class poofani_707 extends MovieClip {
public var a:MovieClip;
public function poofani_707(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package achievegame_fla
Section 49
//popscore_223 (achievegame_fla.popscore_223)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class popscore_223 extends MovieClip {
public var b:TextField;
}
}//package achievegame_fla
Section 50
//r3all_456 (achievegame_fla.r3all_456)
package achievegame_fla {
import flash.display.*;
public dynamic class r3all_456 extends MovieClip {
public var a:MovieClip;
public function r3all_456(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 51
//rbatting_148 (achievegame_fla.rbatting_148)
package achievegame_fla {
import flash.display.*;
public dynamic class rbatting_148 extends MovieClip {
public var a:MovieClip;
}
}//package achievegame_fla
Section 52
//rboxing_160 (achievegame_fla.rboxing_160)
package achievegame_fla {
import flash.display.*;
public dynamic class rboxing_160 extends MovieClip {
public function rboxing_160(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package achievegame_fla
Section 53
//rigbyall_122 (achievegame_fla.rigbyall_122)
package achievegame_fla {
import flash.display.*;
public dynamic class rigbyall_122 extends MovieClip {
public var a:MovieClip;
public function rigbyall_122(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 54
//rjump_221 (achievegame_fla.rjump_221)
package achievegame_fla {
import flash.display.*;
public dynamic class rjump_221 extends MovieClip {
public function rjump_221(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package achievegame_fla
Section 55
//rockall_343 (achievegame_fla.rockall_343)
package achievegame_fla {
import flash.display.*;
public dynamic class rockall_343 extends MovieClip {
public var a:MovieClip;
}
}//package achievegame_fla
Section 56
//rsplat_196 (achievegame_fla.rsplat_196)
package achievegame_fla {
import flash.display.*;
public dynamic class rsplat_196 extends MovieClip {
public function rsplat_196(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndPlay("l");
}
}
}//package achievegame_fla
Section 57
//rthumping_175 (achievegame_fla.rthumping_175)
package achievegame_fla {
import flash.display.*;
public dynamic class rthumping_175 extends MovieClip {
public var a:MovieClip;
}
}//package achievegame_fla
Section 58
//score_47 (achievegame_fla.score_47)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class score_47 extends MovieClip {
public var b:TextField;
}
}//package achievegame_fla
Section 59
//sign_74 (achievegame_fla.sign_74)
package achievegame_fla {
import flash.display.*;
public dynamic class sign_74 extends MovieClip {
public var a:MovieClip;
}
}//package achievegame_fla
Section 60
//stoneall_498 (achievegame_fla.stoneall_498)
package achievegame_fla {
import flash.display.*;
public dynamic class stoneall_498 extends MovieClip {
public var a:MovieClip;
public function stoneall_498(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 61
//timebox_49 (achievegame_fla.timebox_49)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class timebox_49 extends MovieClip {
public var b:TextField;
}
}//package achievegame_fla
Section 62
//Timeline_28 (achievegame_fla.Timeline_28)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_28 extends MovieClip {
public function Timeline_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 63
//Timeline_316 (achievegame_fla.Timeline_316)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_316 extends MovieClip {
public var tic:MovieClip;
}
}//package achievegame_fla
Section 64
//Timeline_324 (achievegame_fla.Timeline_324)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_324 extends MovieClip {
public var a:MovieClip;
}
}//package achievegame_fla
Section 65
//Timeline_436 (achievegame_fla.Timeline_436)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_436 extends MovieClip {
public var b2:MovieClip;
public var b1:MovieClip;
}
}//package achievegame_fla
Section 66
//Timeline_443 (achievegame_fla.Timeline_443)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_443 extends MovieClip {
public var a:MovieClip;
public var icon:MovieClip;
}
}//package achievegame_fla
Section 67
//Timeline_448 (achievegame_fla.Timeline_448)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_448 extends MovieClip {
public var tic:MovieClip;
}
}//package achievegame_fla
Section 68
//Timeline_46 (achievegame_fla.Timeline_46)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_46 extends MovieClip {
public var a:MovieClip;
}
}//package achievegame_fla
Section 69
//Timeline_48 (achievegame_fla.Timeline_48)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_48 extends MovieClip {
public var a:MovieClip;
}
}//package achievegame_fla
Section 70
//Timeline_52 (achievegame_fla.Timeline_52)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_52 extends MovieClip {
public var b:MovieClip;
}
}//package achievegame_fla
Section 71
//Timeline_546 (achievegame_fla.Timeline_546)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_546 extends MovieClip {
public var b:MovieClip;
}
}//package achievegame_fla
Section 72
//Timeline_61 (achievegame_fla.Timeline_61)
package achievegame_fla {
import flash.display.*;
public dynamic class Timeline_61 extends MovieClip {
public function Timeline_61(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 73
//trampolineall_79 (achievegame_fla.trampolineall_79)
package achievegame_fla {
import flash.display.*;
public dynamic class trampolineall_79 extends MovieClip {
public function trampolineall_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 74
//ufoall_391 (achievegame_fla.ufoall_391)
package achievegame_fla {
import flash.display.*;
public dynamic class ufoall_391 extends MovieClip {
public var a:MovieClip;
public function ufoall_391(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 75
//ufoexplosion2_395 (achievegame_fla.ufoexplosion2_395)
package achievegame_fla {
import flash.display.*;
public dynamic class ufoexplosion2_395 extends MovieClip {
public function ufoexplosion2_395(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package achievegame_fla
Section 76
//weaponcount_444 (achievegame_fla.weaponcount_444)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class weaponcount_444 extends MovieClip {
public var b:TextField;
}
}//package achievegame_fla
Section 77
//weaponfallall_525 (achievegame_fla.weaponfallall_525)
package achievegame_fla {
import flash.display.*;
public dynamic class weaponfallall_525 extends MovieClip {
public function weaponfallall_525(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 78
//weaponiconall_445 (achievegame_fla.weaponiconall_445)
package achievegame_fla {
import flash.display.*;
public dynamic class weaponiconall_445 extends MovieClip {
public function weaponiconall_445(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package achievegame_fla
Section 79
//winani2copy_706 (achievegame_fla.winani2copy_706)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class winani2copy_706 extends MovieClip {
public var c:TextField;
public var b:TextField;
public var d:TextField;
}
}//package achievegame_fla
Section 80
//winani2copy1_705 (achievegame_fla.winani2copy1_705)
package achievegame_fla {
import flash.display.*;
public dynamic class winani2copy1_705 extends MovieClip {
public var button2txt:MovieClip;
public var button1:SimpleButton;
public var button2:SimpleButton;
public var a:MovieClip;
public var button1txt:MovieClip;
}
}//package achievegame_fla
Section 81
//winani2copy2_582 (achievegame_fla.winani2copy2_582)
package achievegame_fla {
import flash.display.*;
public dynamic class winani2copy2_582 extends MovieClip {
public var button2txt:MovieClip;
public var button1:SimpleButton;
public var button2:SimpleButton;
public var a:MovieClip;
public var button1txt:MovieClip;
}
}//package achievegame_fla
Section 82
//winani2copy3_583 (achievegame_fla.winani2copy3_583)
package achievegame_fla {
import flash.display.*;
import flash.text.*;
public dynamic class winani2copy3_583 extends MovieClip {
public var c:TextField;
public var b:TextField;
public var d:TextField;
}
}//package achievegame_fla
Section 83
//AchievementAS3 (com.cartoonnetwork.AchievementSystem.AchievementAS3)
package com.cartoonnetwork.AchievementSystem {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import com.cartoonnetwork.connect.*;
import flash.net.*;
public class AchievementAS3 {
private var _displayConnection:Connection;
private var _moduleConnection:Connection;
public var _status:int;
private var _connectTimer:Timer;
public var _containerLoaded;// = false
private var _connectedToModule:Boolean;
private var _mc:MovieClip;
private var _swfLoader:Loader;
public var _xmlLoaded:Boolean;// = false
public static var STATUS_CONNECTING:int = 0;
public static var STATUS_READY:int = 2;
public static var STATUS_SHOWING_ACHIEVEMENT:int = 1;
public static var _uniqueVal:int = -1;
public static var _achievementNotificationFinished:Boolean;
public function AchievementAS3(_arg1:MovieClip){
_swfLoader = new Loader();
_xmlLoaded = false;
_containerLoaded = false;
_mc = new MovieClip();
super();
_mc = _arg1;
_mc.x = 0;
_mc.y = 0;
_moduleConnection = new Connection("fromAchieveModule", "toAchieveModule", this, true);
}
public function xmlLoaded(){
_xmlLoaded = true;
_swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
_swfLoader.load(new URLRequest("AchieveDisplay.swf"));
_swfLoader.x = 175;
_swfLoader.y = 400;
_mc.addChild(_swfLoader);
}
public function achievementEarned(_arg1:Array){
showAchievement(_arg1[0], _arg1[1]);
}
public function achievementNotificationFinished(){
AchievementAS3._achievementNotificationFinished = true;
}
public function achievementNotificationGameStarted(){
_moduleConnection.send("achievementNotificationGameStarted");
}
public function isAchievmentNotificationFinished(){
var _local1:*;
_local1 = _achievementNotificationFinished;
_achievementNotificationFinished = false;
return (_local1);
}
public function achievementNotificationGameEnded(){
_moduleConnection.send("achievementNotificationGameEnded");
}
private function onCompleteHandler(_arg1:Event){
_containerLoaded = true;
_displayConnection = new Connection("fromDisplayModule", "toDisplayModule", this, false);
}
public function achievementNotificationGameLoaded(){
_moduleConnection.send("achievementNotificationGameLoaded");
}
public function showAchievement(_arg1:String, _arg2:String){
if (!_containerLoaded){
return;
};
_displayConnection.send("displayAchievement", _arg1, _arg2);
}
public function toString():String{
return ("<< AchievementAS3 >>");
}
public function sendStat(_arg1:String, _arg2:int){
_moduleConnection.send("updateStat", _arg1, _arg2);
}
}
}//package com.cartoonnetwork.AchievementSystem
Section 84
//Connection (com.cartoonnetwork.connect.Connection)
package com.cartoonnetwork.connect {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class Connection {
private var _master:Boolean;
public var _connected:Boolean;
private var _connectTimer:Timer;
private var _uniqueClient;
public var _rLC:LocalConnection;
public var _sLC:LocalConnection;
private var _unique;
public var _rConnection:String;
public var _sConnection:String;
public function Connection(_arg1:String, _arg2:String, _arg3, _arg4:Boolean){
_rLC = new LocalConnection();
_sLC = new LocalConnection();
super();
_rConnection = _arg1;
_sConnection = _arg2;
_uniqueClient = _arg3;
_master = _arg4;
if (_master){
_unique = Math.floor((Math.random() * 10000));
_rConnection = (_rConnection + _unique);
initConnection();
_rLC.connect(_rConnection);
_rLC.client = this;
} else {
_rLC.connect(_rConnection);
_rLC.client = this;
};
}
public function slaveReceivedUnique(){
_sLC.removeEventListener(StatusEvent.STATUS, onConnectionStatus);
_sLC.addEventListener(StatusEvent.STATUS, onStatus);
_connected = true;
_sConnection = (_sConnection + _unique);
_connectTimer.stop();
_connectTimer.removeEventListener("timer", AttemptConnection);
_rLC.close();
_rLC.connect(_rConnection);
_rLC.client = _uniqueClient;
}
public function initConnection(){
_connectTimer = new Timer(2000);
_connectTimer.addEventListener("timer", AttemptConnection);
_sLC.addEventListener(StatusEvent.STATUS, onConnectionStatus);
AttemptConnection(null);
_connectTimer.start();
}
public function setUnique(_arg1:int){
_unique = _arg1;
_rConnection = (_rConnection + _unique);
_sConnection = (_sConnection + _unique);
_sLC.send(_sConnection, "slaveReceivedUnique");
_sLC.addEventListener(StatusEvent.STATUS, onStatus);
_rLC.close();
_rLC.connect(_rConnection);
_rLC.client = _uniqueClient;
_connected = true;
}
public function send(_arg1:String, ... _args){
if (_args.length > 0){
_sLC.send(_sConnection, _arg1, _args);
} else {
_sLC.send(_sConnection, _arg1);
};
}
private function onConnectionStatus(_arg1:StatusEvent){
switch (_arg1.level){
case "status":
slaveReceivedUnique();
break;
case "error":
break;
default:
break;
};
}
public function AttemptConnection(_arg1:TimerEvent){
_sLC.send(_sConnection, "setUnique", _unique);
}
private function onStatus(_arg1:StatusEvent){
switch (_arg1.level){
case "status":
break;
case "error":
break;
default:
break;
};
}
}
}//package com.cartoonnetwork.connect
Section 85
//CNpreloader (com.fox.CNpreloader)
package com.fox {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class CNpreloader extends MovieClip {
private var loaded;
private var targetloadinfo:LoaderInfo;
private var anidelay;
private var cf:Number;// = 0
public var a:MovieClip;
public var txt:TextField;
private var xs;
private var convert;
private var accel;
public function CNpreloader(){
cf = 0;
super();
addFrameScript(42, frame43);
xs = 0;
cf = 1;
anidelay = 42;
accel = 0.8;
convert = 0.5;
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
stop();
a.stop();
targetloadinfo = stage.loaderInfo;
removeEventListener(Event.ADDED_TO_STAGE, init);
addEventListener(Event.ENTER_FRAME, loadprogress);
}
private function loadprogress(_arg1:Event):void{
loaded = (targetloadinfo.bytesLoaded / targetloadinfo.bytesTotal);
a.gotoAndStop(Math.max(1, Math.floor((loaded * 100))));
if (a.ani){
a.ani.gotoAndStop(cf);
cf++;
if ((cf > 9)){
cf = 1;
//unresolved jump
};
//unresolved jump
};
if (loaded == 1){
this.gotoAndPlay("fullyloaded");
removeEventListener(Event.ENTER_FRAME, loadprogress);
addEventListener(Event.ENTER_FRAME, wait);
};
}
private function wait(_arg1:Event):void{
anidelay--;
if (!anidelay){
removeEventListener(Event.ENTER_FRAME, wait);
dispatchEvent(new Event(Event.COMPLETE));
};
}
function frame43(){
stop();
}
}
}//package com.fox
Section 86
//EC (com.fox.EC)
package com.fox {
import flash.events.*;
public class EC {
public static const UNCLUSTERED:String = "UNCLUSTERED";
private static var g:LEC;
public static var rem:Function = remove;
public function EC():void{
throw ("do not insantiate the EC");
}
public static function add(_arg1:Object, _arg2:String, _arg3:Function, _arg4=false, _arg5:int=0, _arg6:Boolean=false, _arg7:String="UNCLUSTERED"):Boolean{
return (global.add((_arg1 as IEventDispatcher), _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private static function get global():LEC{
if (!g){
g = LEC.getGlobal();
};
return (g);
}
public static function log(_arg1="clusters"):void{
global.log(_arg1);
}
public static function remove(_arg1, _arg2:String=null, _arg3:Function=null, _arg4:Boolean=false):Array{
return (global.remove(_arg1, _arg2, _arg3, _arg4));
}
public static function plug(_arg1:Class):void{
LEC.plug(_arg1);
}
public static function addGroup(_arg1:Array):void{
global.addGroup(_arg1);
}
}
}//package com.fox
Section 87
//fox (com.fox.fox)
package com.fox {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
import fl.motion.*;
import flash.net.*;
import com.game.*;
import flash.filters.*;
import flash.system.*;
public class fox {
public var box:Sprite;
public static var globalvar:Object = [];
public static function formatnumber(_arg1:int):String{
var _local2:String;
var _local3:*;
var _local4:Array;
var _local5:Number;
var _local6:Number;
if (!_arg1){
return ("0");
};
_arg1 = (Math.round((_arg1 * 100)) / 100);
_local2 = String(_arg1);
_local3 = _local2.split(".");
_local4 = new Array();
_local6 = _local3[0].length;
while (_local6 > 0) {
_local5 = Math.max((_local6 - 3), 0);
_local4.unshift(_local3[0].slice(_local5, _local6));
_local6 = _local5;
};
_local3[0] = _local4.join(",");
return (_local3.join("."));
}
public static function randomSort(_arg1:Object, _arg2:Object):int{
return ((Math.round((Math.random() * 2)) - 1));
}
public static function tint(_arg1:MovieClip, _arg2:Number, _arg3:Number){
var _local4:Color;
_local4 = new Color();
_local4.setTint(_arg2, _arg3);
_arg1.transform.colorTransform = _local4;
}
public static function removechildren(_arg1:MovieClip):void{
while (_arg1.numChildren > 0) {
_arg1.removeChildAt(0);
};
}
public static function shake(_arg1:MovieClip, _arg2:int=5, _arg3:int=10):void{
var t:*;
var loop:Function;
var mc = _arg1;
var xrange = _arg2;
var delay = _arg3;
if (mc.foxshakefx == undefined){
loop = function ():void{
t.flip = !(t.flip);
if (t.flip){
mc.x = (t.xx + t.dx);
} else {
mc.x = (t.xx - t.dx);
};
if (isEven(t.d)){
t.dx = Math.max(2, (t.dx - 1));
//unresolved jump
};
mc.y = ((t.yy - Math.floor((t.dx / 2))) + fox.random(t.dx));
t.d--;
if (!t.d){
EC.remove(t);
mc.x = t.xx;
mc.y = t.yy;
mc.foxshakefx = undefined;
mc.removeChild(t);
//unresolved jump
};
};
t = new MovieClip();
EC.add(t, Event.ENTER_FRAME, loop);
t.xx = mc.x;
t.yy = mc.y;
t.d = delay;
t.flip = true;
t.dx = xrange;
mc.addChild(t);
mc.foxshakefx = t;
};
}
public static function between(_arg1:Number, _arg2:Number, _arg3:Number){
return ((((_arg1 > _arg2)) && ((_arg1 < _arg3))));
}
public static function loadXMLimages(_arg1:String):void{
var b:*;
var XMLloaded:Function;
var filename = _arg1;
XMLloaded = function (_arg1:Event):void{
var _local2:*;
var _local3:int;
_local2 = new XML(_arg1.target.data);
_local3 = 0;
while (_local3 < _local2.*.length()) {
loadimage(("pics/" + _local2.pic[_local3]));
_local3++;
};
};
b = new URLLoader();
b.load(new URLRequest(filename));
b.addEventListener(Event.COMPLETE, XMLloaded);
}
public static function popskor(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:MovieClip=undefined):void{
var _local5:*;
var _local6:*;
_local5 = ((_arg4) || (globalvar.m4));
_local6 = new popscore(_arg1, _arg2, _arg3);
_local5.addChild(_local6);
}
public static function deg(_arg1:Number):Number{
return ((_arg1 * (180 / Math.PI)));
}
public static function localpos(_arg1:MovieClip, _arg2:MovieClip):Point{
return (_arg2.globalToLocal(_arg1.localToGlobal(new Point())));
}
public static function currency(_arg1:Number, _arg2:Number=2, _arg3:String="$"):String{
var _local4:Boolean;
var _local5:String;
var _local6:Array;
var _local7:String;
var _local8:String;
var _local9:String;
var _local10:int;
var _local11:String;
var _local12:int;
var _local13:String;
var _local14:int;
_local4 = (_arg1 < 0);
_arg1 = abs(_arg1);
_local5 = String(_arg1.toFixed(_arg2));
_local6 = _local5.split(".");
_local7 = _local6[0];
_local8 = _local6[1];
_local9 = "";
_local10 = 0;
for (;_local10 < _local7.length;(_local9 = (_local7.substr((-(_local10) - 1), 1) + _local9)), _local10++) {
if ((((_local10 > 0)) && (((_local10 % 3) == 0)))){
_local9 = ("," + _local9);
continue;
};
};
_local11 = String(_local8);
_local12 = (_arg2 - _local11.length);
if (_local11.length < _arg2){
_local14 = 0;
while (_local14 < _local12) {
_local11 = (_local11 + "0");
_local14++;
};
};
_local13 = "";
if (_local4){
_local13 = (("-" + _arg3) + _local9);
} else {
_local13 = (_arg3 + _local9);
};
if ((_arg2 > 0)){
_local13 = (_local13 + ("." + _local11));
//unresolved jump
};
return (_local13);
}
public static function limit360(_arg1:Number):Number{
return ((((_arg1 % 360) + 360) % 360));
}
public static function inityfloat(_arg1:MovieClip, _arg2:Number, _arg3:Number):void{
var _local4:*;
var _local5:int;
_arg1.frange = ((_arg2) || (1.5));
_arg1.fspeed = ((_arg3) || (0.15));
_arg1.fstarty = _arg1.y;
_arg1.fys = _arg1.frange;
_local4 = (1 + random(30));
_local5 = 0;
while (_local5 < _local4) {
yfloating(_arg1);
_local5++;
};
}
public static function rad(_arg1:Number):Number{
return ((_arg1 * (Math.PI / 180)));
}
public static function massStop(_arg1:DisplayObjectContainer, _arg2:Object=1):void{
var _local3:int;
var _local4:int;
var _local5:DisplayObjectContainer;
if ((_arg1 is MovieClip)){
MovieClip(_arg1).gotoAndStop(_arg2);
//unresolved jump
};
_local3 = _arg1.numChildren;
_local4 = 0;
for (;_local4 < _local3;_local4++) {
_local5 = (_arg1.getChildAt(_local4) as DisplayObjectContainer);
if (_local5){
massStop(_local5, _arg2);
continue;
};
};
}
public static function jiggle(_arg1:MovieClip):void{
_arg1.jdx = ((_arg1.jdx * _arg1.jdvstep) + ((_arg1.jska - _arg1.scaleX) * _arg1.jdv));
_arg1.scaleX = Math.max(0.1, (_arg1.scaleX + _arg1.jdx));
_arg1.scaleY = _arg1.scaleX;
}
public static function framescreen(_arg1:int=0, _arg2:Number=0xFFFFFF):void{
var _local3:*;
var _local4:*;
_local3 = MovieClip(globalvar.r);
_local4 = new Sprite();
_local4.graphics.beginFill(_arg2);
_local4.graphics.drawRect(-1000, -1000, (globalvar.screenwid + 2000), (globalvar.screenhei + 2000));
_local4.graphics.drawRect(0, 0, globalvar.screenwid, globalvar.screenhei);
_local4.graphics.endFill();
_local4.x = (_local4.y = 0);
_local4.cacheAsBitmap = true;
if (_arg1){
_local4.alpha = 0.5;
//unresolved jump
};
_local3.all2.addChild(_local4);
}
public static function removeallchildren(_arg1:DisplayObjectContainer):void{
var _local2:int;
_local2 = _arg1.numChildren;
while (_local2--) {
_arg1.removeChildAt(_local2);
};
}
public static function getrandom(_arg1:String){
var _local2:*;
_local2 = globalvar;
if (!_local2.randomlisting){
_local2.randomlisting = [];
//unresolved jump
};
if (!fox.contain(_local2.randomlisting, _arg1)){
_local2.randomlisting.push(_arg1);
//unresolved jump
};
if (!_local2[(_arg1 + "getrandom")]){
_local2[(_arg1 + "getrandom")] = [];
//unresolved jump
};
if (!_local2[(_arg1 + "getrandom")].length){
_local2[(_arg1 + "getrandom")] = [];
_local2[(_arg1 + "getrandom")] = clone(_local2[_arg1]);
randomize(_local2[(_arg1 + "getrandom")]);
if ((((_local2[(_arg1 + "getrandom")].length > 1)) && ((_local2[(_arg1 + "lastpop")] == _local2[(_arg1 + "getrandom")][(_local2[(_arg1 + "getrandom")].length - 1)])))){
_local2[(_arg1 + "getrandom")].pop();
//unresolved jump
};
};
_local2[(_arg1 + "lastpop")] = _local2[(_arg1 + "getrandom")].pop();
return (_local2[(_arg1 + "lastpop")]);
}
public static function savecookie(_arg1:String, _arg2, _arg3:String){
var _local4:SharedObject;
_local4 = SharedObject.getLocal(_arg3, "/");
_local4.data[_arg1] = _arg2;
_local4.flush();
}
public static function initjiggle(_arg1:MovieClip, _arg2:Number, _arg3:Number):void{
_arg1.scaleX = ((_arg2) || (2));
_arg1.scaleY = _arg1.scaleX;
_arg1.jska = ((_arg3) || (1));
_arg1.jdx = 0;
_arg1.jdv = 0.8;
_arg1.jdvstep = 0.6;
}
public static function cekhit(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:DisplayObjectContainer):Boolean{
var _local4:*;
var _local5:Rectangle;
var _local6:Rectangle;
var _local7:Rectangle;
_local4 = false;
_local5 = _arg1.getBounds(_arg3);
_local6 = _arg2.getBounds(_arg3);
_local7 = _local5.intersection(_local6);
if ((_local7.width > 0)){
_local4 = true;
//unresolved jump
};
return (_local4);
}
public static function getbitmapdata(_arg1:String):BitmapData{
var obj:BitmapData;
var cls:Class;
var className = _arg1;
cls = getclass(className);
try {
obj = new cls(0, 0);
} catch(err:Error) {
};
return (obj);
}
public static function sortdep(_arg1:Array):void{
var _local2:*;
var _local3:int;
_arg1.sortOn("dep", Array.NUMERIC);
_local2 = _arg1[0].parent;
_local3 = _arg1.length;
while (_local3--) {
if (_local2.getChildIndex(_arg1[_local3]) != _local3){
_local2.setChildIndex(_arg1[_local3], _local3);
continue;
};
};
}
public static function loadimage(_arg1:String){
var a:*;
var b:*;
var c:*;
var imgloaded:Function;
var path = _arg1;
imgloaded = function (_arg1:Event):void{
c = Bitmap(b.content);
globalvar.XMLimages.push(c);
};
a = new URLRequest(path);
b = new Loader();
b.contentLoaderInfo.addEventListener(Event.COMPLETE, imgloaded);
b.load(a);
c = new Bitmap();
}
public static function randomize(_arg1):void{
_arg1.sort(randomSort);
}
public static function limit(_arg1:Number, _arg2:Number, _arg3:Number){
return (Math.min(_arg3, Math.max(_arg2, _arg1)));
}
public static function random(_arg1:Number):Number{
return (Math.floor((Math.random() * (_arg1 + 1))));
}
public static function snapshot(_arg1:MovieClip, _arg2:MovieClip, _arg3:int=0, _arg4:int=0, _arg5:int=100, _arg6:int=100, _arg7:Number=1, _arg8:Number=0, _arg9:Number=0, _arg10:Boolean=true, _arg11:int=0xFFFFFF){
var _local12:Matrix;
var _local13:*;
var _local14:Bitmap;
_local12 = new Matrix();
_local12.translate(-(_arg3), -(_arg4));
_local12.scale(_arg7, _arg7);
_local13 = new BitmapData(_arg5, _arg6, _arg10, _arg11);
_local13.draw(_arg1, _local12, null, null, new Rectangle(0, 0, _arg5, _arg6), true);
if (((_arg8 + _arg9) > 0)){
_local13.applyFilter(_local13, new Rectangle(0, 0, _arg5, _arg6), new Point(0, 0), new BlurFilter(_arg8, _arg9, 2));
//unresolved jump
};
_local14 = new Bitmap(_local13);
_local14.smoothing = true;
_arg2.addChild(_local14);
}
public static function loadcookie(_arg1:String, _arg2:String){
var _local3:SharedObject;
_local3 = SharedObject.getLocal(_arg2, "/");
if (_local3.data[_arg1] != null){
return (_local3.data[_arg1]);
};
return (false);
}
public static function analyze(_arg1, _arg2:String=""):void{
var item:Object;
var write:Function;
var _obj = _arg1;
var lastItem = _arg2;
write = function (_arg1):void{
};
switch (typeof(_obj)){
case "array":
for (item in _obj) {
analyze(item, item.toString());
};
break;
case "xml":
write("<xml>");
write(_obj);
write("</xml>");
break;
case "object":
for (item in _obj) {
analyze(_obj[item], item.toString());
};
break;
default:
write((((((lastItem + ":") + _obj) + " (") + typeof(_obj)) + ")"));
lastItem = "";
break;
};
}
public static function cekclass(_arg1:String):Boolean{
return (ApplicationDomain.currentDomain.hasDefinition(_arg1));
}
public static function isMultipleOf(_arg1:Number, _arg2:Number){
return (!((_arg1 % _arg2)));
}
public static function resetrandom():void{
var _local1:*;
var _local2:int;
_local1 = globalvar;
if (_local1.randomlisting){
_local2 = 0;
while (_local2 < _local1.randomlisting.length) {
_local1[(_local1.randomlisting[_local2] + "getrandom")] = null;
_local1[(_local1.randomlisting[_local2] + "lastpop")] = null;
_local2++;
};
};
}
public static function contain(_arg1:Array, _arg2):Boolean{
return ((_arg1.indexOf(_arg2) >= 0));
}
public static function tintflash(_arg1:MovieClip, _arg2:Number=10, _arg3:Number=0xFF0000, _arg4:int=7, _arg5:Number=1){
var t:*;
var glo:GlowFilter;
var loop:Function;
var mc = _arg1;
var delay = _arg2;
var colr = _arg3;
var thickness = _arg4;
var strength = _arg5;
if (!mc.adatint){
loop = function ():void{
t.d--;
t.a--;
if (!t.a){
t.a = 2;
t.b = !(t.b);
if (t.b){
mc.transform.colorTransform = t.c1;
} else {
mc.transform.colorTransform = t.c2;
};
} else {
t.c = new Color();
mc.transform.colorTransform = t.c;
};
if (!t.d){
t.c = new Color();
mc.transform.colorTransform = t.c;
mc.filters = null;
EC.remove(t);
mc.removeChild(t);
mc.adatint = 0;
//unresolved jump
};
};
mc.adatint = 1;
t = new MovieClip();
mc.addChild(t);
t.d = delay;
t.c1 = new Color();
t.c1.setTint(colr, strength);
t.c2 = new Color();
t.c2.setTint(0xFFFFFF, strength);
t.a = (t.b = 1);
glo = new GlowFilter();
glo.color = colr;
glo.blurX = (glo.blurY = thickness);
glo.quality = 1;
glo.strength = 6;
mc.filters = [glo];
EC.add(t, Event.ENTER_FRAME, loop);
};
}
public static function duplicateDisplayObject(_arg1:DisplayObject, _arg2:Boolean=false):DisplayObject{
var _local3:Class;
var _local4:DisplayObject;
var _local5:Rectangle;
_local3 = Object(_arg1).constructor;
_local4 = (new (_local3) as DisplayObject);
_local4.transform = _arg1.transform;
_local4.filters = _arg1.filters;
_local4.cacheAsBitmap = _arg1.cacheAsBitmap;
_local4.opaqueBackground = _arg1.opaqueBackground;
if (_arg1.scale9Grid){
_local5 = _arg1.scale9Grid;
if (Capabilities.version.split(" ")[1] == "9,0,16,0"){
_local5.x = (_local5.x / 20);
_local5.y = (_local5.y / 20);
_local5.width = (_local5.width / 20);
_local5.height = (_local5.height / 20);
};
_local4.scale9Grid = _local5;
};
if (((_arg2) && (_arg1.parent))){
_arg1.parent.addChild(_local4);
//unresolved jump
};
return (_local4);
}
public static function massPlay(_arg1:DisplayObjectContainer):void{
var _local2:int;
var _local3:int;
var _local4:DisplayObjectContainer;
if ((_arg1 is MovieClip)){
MovieClip(_arg1).play();
//unresolved jump
};
_local2 = _arg1.numChildren;
_local3 = 0;
for (;_local3 < _local2;_local3++) {
_local4 = (_arg1.getChildAt(_local3) as DisplayObjectContainer);
if (_local4){
massPlay(_local4);
continue;
};
};
}
public static function pophint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=80, _arg5:Number=0, _arg6:MovieClip=undefined):void{
var _local7:*;
var _local8:*;
_local7 = ((_arg6) || (globalvar.stat));
_local8 = new hint(_arg1, _arg2, _arg3, _arg4, _arg5);
_local7.addChild(_local8);
}
public static function blink(_arg1:MovieClip, _arg2:Number=20){
var t:*;
var loop:Function;
var mc = _arg1;
var delay = _arg2;
if (!mc.adablink){
loop = function ():void{
mc.visible = !(mc.visible);
t.d--;
if (!t.d){
EC.remove(t);
mc.removeChild(t);
mc.visible = true;
mc.adablink = 0;
//unresolved jump
};
};
mc.adablink = 1;
t = new MovieClip();
mc.addChild(t);
t.d = delay;
EC.add(t, Event.ENTER_FRAME, loop);
};
}
public static function clone(_arg1:Object){
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeObject(_arg1);
_local2.position = 0;
return (_local2.readObject());
}
public static function getclass(_arg1:String):Class{
return ((getDefinitionByName(_arg1) as Class));
}
public static function isEven(_arg1:Number):Boolean{
return (((_arg1 & 1) == 0));
}
public static function sortdepth(_arg1:Array, _arg2:String):void{
var _local3:int;
_arg1.sortOn(_arg2, Array.NUMERIC);
_local3 = 0;
while (_local3 < _arg1.length) {
_arg1[_local3].parent.addChild(_arg1[_local3]);
_local3++;
};
}
public static function fadescreen(_arg1:Number=0.08):void{
var r:*;
var box:*;
var loop:Function;
var speed = _arg1;
loop = function (_arg1:Event):void{
box.alpha = (box.alpha - speed);
if ((box.alpha <= 0)){
EC.remove(box);
r.all2.removeChild(box);
box = null;
//unresolved jump
};
};
r = MovieClip(globalvar.r);
box = new Sprite();
box.graphics.beginFill(0xFFFFFF);
box.graphics.drawRect(0, 0, globalvar.screenwid, globalvar.screenhei);
box.graphics.endFill();
box.x = (box.y = 0);
box.cacheAsBitmap = true;
EC.add(box, Event.ENTER_FRAME, loop);
r.all2.addChild(box);
}
public static function removevalue(_arg1, _arg2:Array):void{
var _local3:int;
_local3 = 0;
for (;_local3 < _arg2.length;_local3++) {
if ((_arg2[_local3] == _arg1)){
_arg2 = _arg2.splice(_local3, 1);
continue;
};
};
}
public static function shakescreen(_arg1:int=8, _arg2:int=10):void{
var r:*;
var t:*;
var loop:Function;
var xrange = _arg1;
var delay = _arg2;
loop = function ():void{
t.flip = !(t.flip);
if (t.flip){
r.x = t.dx;
} else {
r.x = -(t.dx);
};
if (isEven(t.d)){
t.dx = Math.max(2, (t.dx - 1));
//unresolved jump
};
r.y = (-(Math.floor((t.dx / 2))) + fox.random(t.dx));
t.d--;
if (!t.d){
EC.remove(t);
r.x = (r.y = 0);
r.all2.removeChild(t);
//unresolved jump
};
};
r = MovieClip(globalvar.r);
t = new MovieClip();
EC.add(t, Event.ENTER_FRAME, loop);
t.d = delay;
t.flip = true;
t.dx = xrange;
r.all2.addChild(t);
}
public static function resetcolor(_arg1:MovieClip){
_arg1.transform.colorTransform = new ColorTransform();
}
public static function showact(_arg1:MovieClip):void{
if (_arg1.act != _arg1.actnow){
_arg1.actnow = _arg1.act;
_arg1.a.gotoAndStop(_arg1.act);
//unresolved jump
};
}
public static function abs(_arg1:Number):Number{
return (((_arg1 ^ (_arg1 >> 31)) - (_arg1 >> 31)));
}
public static function initxfloat(_arg1:MovieClip, _arg2:Number, _arg3:Number):void{
var _local4:*;
var _local5:int;
_arg1.frange = ((_arg2) || (1.5));
_arg1.fspeed = ((_arg3) || (0.15));
_arg1.fstartx = _arg1.x;
_arg1.fxs = _arg1.frange;
_local4 = (1 + random(30));
_local5 = 0;
while (_local5 < _local4) {
xfloating(_arg1);
_local5++;
};
}
public static function xfloating(_arg1:MovieClip):void{
_arg1.x = (_arg1.x + _arg1.fxs);
if ((_arg1.y > _arg1.fstartx)){
_arg1.fxs = Math.max((_arg1.fxs - _arg1.fspeed), -(_arg1.frange));
} else {
_arg1.fxs = Math.min((_arg1.fxs + _arg1.fspeed), _arg1.frange);
};
}
public static function yfloating(_arg1:MovieClip):void{
_arg1.y = (_arg1.y + _arg1.fys);
if ((_arg1.y > _arg1.fstarty)){
_arg1.fys = Math.max((_arg1.fys - _arg1.fspeed), -(_arg1.frange));
} else {
_arg1.fys = Math.min((_arg1.fys + _arg1.fspeed), _arg1.frange);
};
}
}
}//package com.fox
Section 88
//LEC (com.fox.LEC)
package com.fox {
import flash.events.*;
import flash.utils.*;
public class LEC {
private var _c:Object;
private var _d:Dictionary;
public var rem:Function;
public static const UNCLUSTERED:String = "UNCLUSTERED";
private static var _p:Object;
private static var global:LEC;
public function LEC(){
rem = remove;
super();
}
public function add(_arg1:IEventDispatcher, _arg2:String, _arg3:Function, _arg4=false, _arg5:int=0, _arg6:Boolean=false, _arg7:String="UNCLUSTERED"):Boolean{
var _local8:Object;
if ((_arg4 is String)){
_arg7 = _arg4;
_arg4 = false;
};
_local8 = getORef(_arg1)[_arg4];
if (!isEventSet(_local8, _arg2, _arg3)){
getORef(_arg1).count++;
_local8[_arg2][_arg3] = {p:_arg5, w:_arg6, c:_arg7};
_arg1.addEventListener(_arg2, _arg3, _arg4, _arg5, _arg6);
if (Boolean(_arg7)){
addToCluster(_arg1, _arg2, _arg3, _arg4, _arg7);
};
return (true);
};
return (false);
}
private function getPlug(_arg1:String):Object{
var id = _arg1;
try {
return (_p[id]);
} catch(err) {
};
return (null);
}
private function getORef(_arg1:IEventDispatcher):Object{
var _local2:Dictionary;
_local2 = getDict();
if (!_local2[_arg1]){
_local2[_arg1] = {};
_local2[_arg1][true] = {};
_local2[_arg1][false] = {};
_local2[_arg1].count = 0;
};
return (_local2[_arg1]);
}
public function remove(_arg1, _arg2:String=null, _arg3:Function=null, _arg4:Boolean=false):Array{
var _local5:Array;
var _local6:IEventDispatcher;
_local5 = [];
if ((_arg1 is IEventDispatcher)){
_local6 = (_arg1 as IEventDispatcher);
if (_arg2){
_local5.push(removeEvent(_local6, _arg2, _arg3, _arg4));
} else {
_local5 = _local5.concat(removeObjEvents(_local6));
};
} else {
_local5 = _local5.concat(removeClusterEvents(_arg1));
};
return (_local5);
}
public function removeObjEvents(_arg1:IEventDispatcher):Array{
var _local2:Array;
var _local3:Object;
var _local4:String;
var _local5:*;
_local2 = [];
_local3 = getORef(_arg1)[false];
for (_local4 in _local3) {
for (_local5 in _local3[_local4]) {
_local2.push(removeEvent(_arg1, _local4, _local5, false));
};
};
_local3 = getORef(_arg1)[true];
for (_local4 in _local3) {
for (_local5 in _local3[_local4]) {
_local2.push(removeEvent(_arg1, _local4, _local5, true));
};
};
uncluster(_arg1);
delete getDict()[_arg1];
return (_local2);
}
private function addToCluster(_arg1:IEventDispatcher, _arg2:String, _arg3:Function, _arg4:Boolean, _arg5:String):void{
var _local6:Object;
_local6 = getClusters();
if (!Boolean(_local6[_arg5])){
_local6[_arg5] = [];
};
_local6[_arg5].push({obj:_arg1, type:_arg2, listener:_arg3, useCapture:_arg4});
}
private function removeIfEmpty(_arg1:IEventDispatcher):void{
var _local2:Dictionary;
var _local3:String;
_local2 = getDict();
if (_local2[_arg1]){
for each (_local3 in _local2[_arg1][false]) {
return;
};
for each (_local3 in _local2[_arg1][true]) {
return;
};
_local2[_arg1] = null;
delete _local2[_arg1];
};
}
private function uncluster(_arg1:IEventDispatcher):void{
var _local2:Object;
var _local3:Object;
var _local4:Array;
var _local5:String;
var _local6:int;
_local2 = getClusters();
_local3 = {};
for (_local5 in _local2) {
_local4 = [];
_local6 = 0;
while (_local6 < _local2[_local5].length) {
if (_local2[_local5][_local6].obj != _arg1){
_local4.push(_local2[_local5][_local6]);
};
_local6++;
};
if (_local4.length){
_local3[_local5] = _local4.concat();
};
};
_c = _local3;
}
public function removeClusterEvents(_arg1):Array{
var _local2:Array;
var _local3:Object;
var _local4:String;
var _local5:Object;
_local2 = [];
_local3 = getClusters();
if ((_arg1 is RegExp)){
for (_local4 in _local3) {
if (_local4.match(_arg1) != null){
_local2.splice(0, 0, removeClusterEvents(_local4));
};
};
} else {
for each (_local5 in _local3[_arg1]) {
_local2.push(removeEvent(_local5.obj, _local5.type, _local5.listener, _local5.useCapture));
};
delete _local3[_arg1];
};
return (_local2);
}
private function isEventSet(_arg1:Object, _arg2:String, _arg3:Function):Boolean{
if (_arg1[_arg2]){
return (Boolean(_arg1[_arg2][_arg3]));
};
_arg1[_arg2] = new Dictionary();
return (false);
}
private function getClusters():Object{
if (!Boolean(_c)){
_c = {};
};
return (_c);
}
private function getDict():Dictionary{
if (!Boolean(_d)){
_d = new Dictionary();
};
return (_d);
}
public function log(_arg1="clusters"):void{
var _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:String;
_local2 = getPlug("log");
if (!_local2){
return;
};
_local3 = getClusters();
_local4 = {};
if ((_arg1 is RegExp)){
for (_local5 in _local3) {
if (_local5.match(_arg1) != null){
_local4[_local5] = _local3[_local5];
};
};
} else {
if ((_arg1 is IEventDispatcher)){
_local2._oLog(_arg1, getORef(_arg1));
return;
};
};
if (_local3[_arg1]){
_local4[_arg1] = _local3[_arg1];
} else {
_local4 = _local3;
};
_local2._log(getDict(), _local4, _arg1);
}
public function removeEvent(_arg1:IEventDispatcher, _arg2:String, _arg3:Function, _arg4:Boolean=false):Object{
var _local5:Object;
var _local6:Object;
var _local7:Boolean;
_local6 = getORef(_arg1)[_arg4];
_local7 = isEventSet(_local6, _arg2, _arg3);
if (_local7){
getORef(_arg1).count--;
_local5 = {obj:_arg1, type:_arg2, listener:_arg3, useCapture:_arg4, p:_local6[_arg2][_arg3].p, w:_local6[_arg2][_arg3].w, c:_local6[_arg2][_arg3].c};
delete _local6[_arg2][_arg3];
_arg1.removeEventListener(_arg2, _arg3, _arg4);
if (!getORef(_arg1).count){
removeObjEvents(_arg1);
};
};
return (_local5);
}
public function addGroup(_arg1:Array):void{
var _local2:Object;
for each (_local2 in _arg1) {
add(_local2.obj, _local2.type, _local2.listener, _local2.useCapture, _local2.p, _local2.useWeakRefrence, _local2.clusterID);
};
}
public static function getGlobal():LEC{
if (!global){
global = new (LEC);
};
return (global);
}
public static function plug(_arg1:Class):void{
var _local2:Object;
if (!_p){
_p = {};
};
_local2 = new (_arg1);
_p[_local2.TYPE] = _local2;
}
}
}//package com.fox
Section 89
//preloader (com.fox.preloader)
package com.fox {
import flash.display.*;
import flash.text.*;
public dynamic class preloader extends MovieClip {
public var txt:TextField;
public var a:MovieClip;
public var parentLoader_mc:MovieClip;
}
}//package com.fox
Section 90
//SoundManager (com.fox.SoundManager)
package com.fox {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import com.greensock.*;
import flash.net.*;
import com.greensock.plugins.*;
public class SoundManager {
private var _soundsDict:Dictionary;
private var _sounds:Array;
public var g;
private static var _instance:SoundManager;
private static var _allowInstance:Boolean;
public function SoundManager(){
g = fox.globalvar;
super();
this._soundsDict = new Dictionary(true);
this._sounds = new Array();
if (!SoundManager._allowInstance){
throw (new Error("Error: Use SoundManager.getInstance() instead of the new keyword."));
};
}
public function unmuteAllSounds():void{
var _local1:int;
var _local2:String;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 1);
_local1++;
};
}
public function get sounds():Array{
return (this._sounds);
}
public function getSoundDuration(_arg1:String):Number{
return (this._soundsDict[_arg1].sound.length);
}
public function getSoundVolume(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.soundTransform.volume);
}
public function addLibrarySound(_arg1, _arg2:String):Boolean{
var _local3:int;
var _local4:Object;
var _local5:Sound;
_local3 = 0;
while (_local3 < this._sounds.length) {
if (this._sounds[_local3].name == _arg2){
return (false);
};
_local3++;
};
_local4 = new Object();
_local5 = new (_arg1);
_local4.name = _arg2;
_local4.sound = _local5;
_local4.channel = new SoundChannel();
_local4.position = 0;
_local4.paused = true;
_local4.volume = 1;
_local4.startTime = 0;
_local4.loops = 0;
_local4.pausedByAll = false;
this._soundsDict[_arg2] = _local4;
this._sounds.push(_local4);
return (true);
}
public function setSoundVolume(_arg1:String, _arg2:Number):void{
var _local3:Object;
var _local4:SoundTransform;
_local3 = this._soundsDict[_arg1];
_local4 = _local3.channel.soundTransform;
_local4.volume = _arg2;
_local3.channel.soundTransform = _local4;
}
public function toString():String{
return (getQualifiedClassName(this));
}
public function updateLoopProgress(_arg1:ProgressEvent){
g.loadingassetsprogress = (_arg1.bytesLoaded / _arg1.bytesTotal);
}
public function stopall():void{
var _local1:int;
var _local2:String;
_local1 = 0;
for (;_local1 < this._sounds.length;_local1++) {
_local2 = this._sounds[_local1].name;
if (_local2 != "zloop"){
this.stopSound(_local2);
continue;
};
};
}
public function removeAllSounds():void{
var _local1:int;
_local1 = 0;
while (_local1 < this._sounds.length) {
this._sounds[_local1] = null;
_local1++;
};
this._sounds = new Array();
this._soundsDict = new Dictionary(true);
}
public function getSoundPosition(_arg1:String):Number{
return (this._soundsDict[_arg1].channel.position);
}
public function stopAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.stopSound(_local3);
};
} else {
this.stopSound(_local3);
};
_local2++;
};
}
public function removeSound(_arg1:String):void{
var _local2:int;
_local2 = 0;
while (_local2 < this._sounds.length) {
if (this._sounds[_local2].name == _arg1){
this._sounds[_local2] = null;
this._sounds.splice(_local2, 1);
};
_local2++;
};
delete this._soundsDict[_arg1];
}
public function muteAllSounds():void{
var _local1:int;
var _local2:String;
_local1 = 0;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 0);
_local1++;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.channel.stop();
_local2.position = _local2.channel.position;
}
public function pauseAllSounds(_arg1:Boolean=true):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.pauseSound(_local3);
};
} else {
this.pauseSound(_local3);
};
_local2++;
};
}
public function playAllSounds(_arg1:Boolean=false):void{
var _local2:int;
var _local3:String;
_local2 = 0;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (this._soundsDict[_local3].pausedByAll){
this._soundsDict[_local3].pausedByAll = false;
this.playSound(_local3);
};
} else {
this.playSound(_local3);
};
_local2++;
};
}
public function addExternalSound(_arg1:String, _arg2:String, _arg3:Number=1000, _arg4:Boolean=false):Boolean{
var _local5:int;
var _local6:Object;
var _local7:Sound;
_local5 = 0;
while (_local5 < this._sounds.length) {
if (this._sounds[_local5].name == _arg2){
return (false);
};
_local5++;
};
_local6 = new Object();
_local7 = new Sound(new URLRequest(_arg1), new SoundLoaderContext(_arg3, _arg4));
_local6.name = _arg2;
_local6.sound = _local7;
_local6.channel = new SoundChannel();
_local6.position = 0;
_local6.paused = true;
_local6.volume = 1;
_local6.startTime = 0;
_local6.loops = 0;
_local6.pausedByAll = false;
if (_arg2.substr(0, 5) == "zloop"){
_local6.sound.addEventListener(ProgressEvent.PROGRESS, updateLoopProgress);
};
this._soundsDict[_arg2] = _local6;
this._sounds.push(_local6);
return (true);
}
public function fadeSound(_arg1:String, _arg2:Number=0, _arg3:Number=1):void{
var _local4:SoundChannel;
_local4 = this._soundsDict[_arg1].channel;
TweenLite.to(_local4, _arg3, {volume:_arg2});
}
public function isSoundPaused(_arg1:String):Boolean{
return (this._soundsDict[_arg1].paused);
}
public function isSoundPausedByAll(_arg1:String):Boolean{
return (this._soundsDict[_arg1].pausedByAll);
}
public function getSoundObject(_arg1:String):Sound{
return (this._soundsDict[_arg1].sound);
}
public function pauseSound(_arg1:String):void{
var _local2:Object;
_local2 = this._soundsDict[_arg1];
_local2.paused = true;
_local2.position = _local2.channel.position;
_local2.channel.stop();
}
public function playSound(_arg1:String, _arg2:Number=1, _arg3:Number=0, _arg4:int=0):Boolean{
var _local5:Object;
_local5 = this._soundsDict[_arg1];
if (_local5){
if (!g.mute){
_local5.volume = _arg2;
} else {
_local5.volume = 0;
};
_local5.startTime = _arg3;
_local5.loops = _arg4;
if (_local5.paused){
_local5.channel = _local5.sound.play(_local5.position, _local5.loops, new SoundTransform(_local5.volume));
} else {
_local5.channel = _local5.sound.play(_arg3, _local5.loops, new SoundTransform(_local5.volume));
};
_local5.paused = false;
return (true);
//unresolved jump
};
return (false);
}
public static function getInstance():SoundManager{
if (SoundManager._instance == null){
SoundManager._allowInstance = true;
SoundManager._instance = new (SoundManager);
SoundManager._allowInstance = false;
};
TweenPlugin.activate([VolumePlugin]);
return (SoundManager._instance);
}
}
}//package com.fox
Section 91
//hint (com.game.hint)
package com.game {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public class hint extends MovieClip {
public var yy;
public var d;
public var a:MovieClip;
var g;
public var dl;
public var no:Number;
public function hint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=100, _arg5:Number=0):void{
g = fox.globalvar;
super();
d = _arg4;
dl = _arg5;
visible = false;
x = _arg1;
y = _arg2;
no = _arg3;
a.gotoAndStop(no);
fox.initjiggle(a, 1.6, 1);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
yy = y;
y = (y + 30);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
dl--;
if (dl < 0){
visible = true;
fox.jiggle(a);
if ((((((g.gameid == 1)) && ((no == 1)))) && ((g.tram.dragging == 1)))){
d = Math.min(1, d);
//unresolved jump
};
if ((((((g.gameid == 1)) && ((no == 2)))) && ((g.mor.state == 2)))){
d = Math.min(1, d);
//unresolved jump
};
if ((((((g.gameid == 1)) && ((no == 3)))) && ((g.mor.state == 2)))){
d = Math.min(1, d);
//unresolved jump
};
d--;
if (!d){
die();
//unresolved jump
};
};
};
}
}
}//package com.game
Section 92
//insscreen (com.game.insscreen)
package com.game {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public class insscreen extends MovieClip {
public var yy:Number;// = 0
public var button1:SimpleButton;
public var a;
public var g;
public var button1txt:MovieClip;
public function insscreen():void{
g = fox.globalvar;
yy = 0;
super();
yy = button1.y;
button1.y = (button1txt.y = 99999);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
button1txt.mouseEnabled = false;
a.gotoAndStop(g.gameid);
fox.fadescreen();
EC.remove(this);
EC.add(button1, MouseEvent.MOUSE_DOWN, doclick);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function showbutton():void{
button1.y = (button1txt.y = yy);
}
public function doclick(_arg1:MouseEvent):void{
var _local2 = g.r;
_local2[("init" + g.gameid)]();
}
}
}//package com.game
Section 93
//levelinfo (com.game.levelinfo)
package com.game {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public class levelinfo extends MovieClip {
public var yy:Number;
public var d;
public var a:MovieClip;
var g;
public function levelinfo(_arg1:int=60):void{
g = fox.globalvar;
super();
d = _arg1;
alpha = 0;
a.b.text = ((("Level " + g.level) + " of ") + g.levelmax);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
x = (g.screenwid / 2);
y = ((g.screenhei / 2) + 20);
yy = (y - 50);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
g.waktu++;
if ((d > 10)){
y = (y + ((yy - y) / 4));
alpha = Math.min(1, (alpha + 0.1));
} else {
y = (y - 3);
alpha = Math.max(0, (alpha - 0.1));
};
d--;
if (!d){
die();
//unresolved jump
};
}
}
}//package com.game
Section 94
//loadingassets (com.game.loadingassets)
package com.game {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public class loadingassets extends MovieClip {
public var b:MovieClip;
public var d;
public var g;
public var xs;
public var convert:Number;// = 0
public var nx;
public var accel;
public function loadingassets():void{
g = fox.globalvar;
convert = 0;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
b.scaleX = 0.01;
accel = 0.8;
convert = 0.5;
xs = 0;
d = 10;
visible = false;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
d--;
if (d < 0){
visible = true;
nx = ((g.loadingassetsprogress) || (0));
xs = ((xs * accel) + ((nx - b.scaleX) * convert));
b.scaleX = Math.min(1, Math.max(0.001, (b.scaleX + xs)));
if (g.loadingassetsprogress == 1){
g.inspage.showbutton();
die();
};
};
}
}
}//package com.game
Section 95
//main (com.game.main)
package com.game {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
import flash.utils.*;
import com.cartoonnetwork.AchievementSystem.*;
import com.game1.*;
import com.game2.*;
import com.game3.*;
import com.game4.*;
public class main extends MovieClip {
public var stat;
public var startlevel;
public var g;
public var m;
public var page;
public var div;
public var all2;
public var titlescr;
public var over;
public var fps;
public var losescr;
public var ska:Number;// = 0
public var loadbox:MovieClip;
public var it;
public var button1;
public var allsfx:Array;
public var button2;
public var button3:SimpleButton;
public var skipmenu;
public var m0;
public var m1;
public var m3;
public var m4;
public var insscr;
public var CNplace;
public var m2;
public var all;
public var nx;
public var ny;
private var _achievementSystem:AchievementAS3;
public var ob:Object;
public function main():void{
g = fox.globalvar;
ska = 0;
super();
addFrameScript(0, frame1);
skipmenu = 0;
g.mute = (g.udamusik = 0);
allsfx = ["zray", "zgolfcart", "zcherry", "zbuzz", "zburger", "zthrow2", "zbonus2", "zfireball", "zfire", "zhit", "zhit2", "zexplode1", "zexplode2", "zexplode3", "zbazooka", "zcrash", "zpoof", "zaah", "zfist", "zcartcrash", "zcartland", "zdestroyed", "zbonus", "zheartbeat", "zloop", "zboxing", "zpop", "zland", "zland2", "ztic", "zaarg", "zbaseball", "zpunch1", "zpunch2", "zpunch3", "zsplat", "zthrow", "ztrampoline", "zwrestle"];
g.screenwid = 600;
g.screenhei = 400;
g.hscreenwid = (g.screenwid / 2);
g.hscreenhei = (g.screenhei / 2);
g.playingzloop = 0;
stage.scaleMode = StageScaleMode.NO_SCALE;
EC.add(loadbox, Event.COMPLETE, loadcomplete);
stop();
}
public function allback(){
g.all2.parent.setChildIndex(g.all2, 0);
g.all.parent.setChildIndex(g.all, 0);
}
public function showfinishani(_arg1:String):void{
var _local2:*;
var _local3:*;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
_local3.id = _arg1;
_local3.x = (_local3.y = 0);
g.all2.addChild(_local3);
fox.removechildren(g.all);
stopEnterFrame();
fox.fadescreen();
}
public function loop1(_arg1:Event):void{
if (!g.pause){
movescreen1();
};
}
public function loop2(_arg1:Event):void{
if (!g.pause){
movescreen2();
};
}
public function loop3(_arg1:Event):void{
if (!g.pause){
movescreen3();
if (g.adaburn){
g.adaburn--;
//unresolved jump
};
if (g.noattack){
g.noattack--;
//unresolved jump
};
};
}
public function loop4(_arg1:Event):void{
if (!g.pause){
g.waktu++;
};
}
public function loadcomplete(_arg1:Event):void{
EC.remove(loadbox);
this.removeChild(loadbox);
gotoAndStop("start");
CNplace = new MovieClip();
g.r.addChild(CNplace);
_achievementSystem = new AchievementAS3(CNplace);
_achievementSystem.achievementNotificationGameLoaded();
if (!g.udamusik){
g.udamusik = 1;
loadsfx();
//unresolved jump
};
if (skipmenu){
g.gameid = skipmenu;
var _local2 = this;
_local2[("init" + skipmenu)]();
} else {
showpage("titlescreen");
};
}
public function setscale(_arg1:Number):void{
m.scaleX = (m.scaleY = _arg1);
g.scrollxmax = -(((_arg1 * g.bgwid) - g.screenwid));
g.scrollxrange = -(g.scrollxmax);
}
public function makeplatform(_arg1:Number=0):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = (_arg1) ? (getDefinitionByName(("platform" + _arg1)) as Class) : (getDefinitionByName(("platform" + fox.getrandom((("level" + g.level) + "platform")))) as Class);
if ((((g.level == g.levelmax)) && (((g.levelfinishline - g.p.x) < 1000)))){
it = new platform12();
g.lastplatform = it;
} else {
it = new (_local2);
};
it.x = g.pxnow;
it.y = g.screenhei;
it.x1 = (g.pxnow + 30);
it.x2 = ((g.pxnow + it.width) - 30);
it.xmax = (g.pxnow + it.width);
m1.addChild(it);
g.allplat.push(it);
if ((((((((g.level > 1)) && ((it.width > 250)))) && (!(g.adamonster)))) && (!(g.lastplatform)))){
_local3 = 200;
_local4 = (it.x + _local3);
if ((it.width > 450)){
_local4 = (_local4 + fox.random(200));
//unresolved jump
};
while (g.nextrock < ((it.x + it.width) - _local3)) {
g.nextrock = Math.max(_local4, Math.min(((it.x + it.width) - _local3), g.nextrock));
makerock(g.nextrock);
g.nextrock = (g.nextrock + (g.rockspacing + fox.random(120)));
};
};
g.pxnow = (g.pxnow + (it.width + 150));
}
public function movescreen1():void{
if (g.dol.state == 2){
div = 6;
nx = Math.max((-(g.dol.x) + 500), (-0.5 * (g.dol.x + g.p.x)));
ny = g.screenhei;
} else {
if ((((g.p.state > 1)) || ((g.mor.state > 1)))){
if ((((g.p.state == 1)) || ((g.p.state > 6)))){
div = 8;
} else {
div = 2;
};
nx = (-(g.p.x) + 300);
ny = ((g.screenhei - g.p.y) - 300);
} else {
div = 8;
nx = (((400 - g.r.mouseX) / (g.screenwid - 450)) * g.scrollxrange);
ny = g.screenhei;
};
};
nx = Math.min(g.scrollxmin, Math.max(g.scrollxmax, nx));
ny = Math.min(g.scrollymin, Math.max(g.scrollymax, ny));
m.x = (m.x + ((nx - m.x) / div));
m.y = (m.y + ((ny - m.y) / div));
g.xmin = -(m.x);
g.xmax = (-(m.x) + g.screenwid);
}
public function movescreen3():void{
g.bg3c.x = (g.bg3c.x - (g.dir * g.bgspeed));
if ((g.bg3c.x > 0)){
g.bg3c.x = (g.bg3c.x - g.screenwid);
} else {
if ((g.bg3c.x < -(g.screenwid))){
g.bg3c.x = (g.bg3c.x + g.screenwid);
//unresolved jump
};
};
g.bg3b.x = (g.bg3b.x - ((0.4 * g.dir) * g.bgspeed));
if ((g.bg3b.x > 0)){
g.bg3b.x = (g.bg3b.x - g.screenwid);
} else {
if ((g.bg3b.x < -(g.screenwid))){
g.bg3b.x = (g.bg3b.x + g.screenwid);
//unresolved jump
};
};
g.bg3a.x = (g.bg3a.x - ((0.3 * g.dir) * g.bgspeed));
if ((g.bg3a.x > 0)){
g.bg3a.x = (g.bg3a.x - g.screenwid);
} else {
if ((g.bg3a.x < -(g.screenwid))){
g.bg3a.x = (g.bg3a.x + g.screenwid);
//unresolved jump
};
};
g.xmin = -(m.x);
g.xmax = (g.xmin + g.screenwid);
}
public function makerock(_arg1:Number):void{
var _local2:*;
_local2 = new rock();
_local2.x = _arg1;
_local2.y = g.yland;
_local2.x1 = (_arg1 - g.hrockwid);
_local2.x2 = (_arg1 + g.hrockwid);
m1.addChild(_local2);
_local2.xmax = (_arg1 + 50);
g.allrock.push(_local2);
if ((g.level > 1)){
g.totalrock++;
if ((g.totalrock == 5)){
g.rocktype.push(6, 7);
//unresolved jump
};
//unresolved jump
};
}
function frame1(){
fox.globalvar.r = this;
}
public function clearpage():void{
if (page){
if (page.button1){
EC.remove(page.button1);
//unresolved jump
};
if (page.button2){
EC.remove(page.button2);
//unresolved jump
};
page = null;
};
if (g.all){
fox.removechildren(g.all);
//unresolved jump
};
if (g.all2){
fox.removechildren(g.all2);
//unresolved jump
};
}
public function movescreen2():void{
m.x = (m.x + g.bgspeed);
g.bg2b.x = ((0.8 * m.x) % g.screenwid);
g.bg2a.x = ((0.5 * m.x) % g.screenwid);
g.xmin = -(m.x);
g.xmax = (g.xmin + g.screenwid);
cekmakeplatform();
cekmakemonsterbonus();
}
public function getbuttonname(_arg1:MouseEvent):void{
g.buttonrollover = _arg1.currentTarget.name;
}
public function quitgame():void{
g.level = (g.pause = 0);
stopEnterFrame();
if (g.playingzloop){
g.sfx.stopSound(g.playingzloop);
//unresolved jump
};
_achievementSystem.achievementNotificationGameEnded();
showpage("titlescreen");
}
public function showpage(_arg1):void{
var _local2:Class;
clearpage();
_local2 = (getDefinitionByName(_arg1) as Class);
page = new (_local2);
if (!g.all2){
all2 = new MovieClip();
g.r.addChild(all2);
g.all2 = all2;
//unresolved jump
};
g.all2.addChild(page);
g.pagenow = _arg1;
if (page.yourscore){
page.yourscore.a.text = g.endscore;
//unresolved jump
};
if (page.button1txt){
page.button1txt.mouseEnabled = false;
//unresolved jump
};
if (page.button2txt){
page.button2txt.mouseEnabled = false;
//unresolved jump
};
if (page.button3txt){
page.button3txt.mouseEnabled = false;
//unresolved jump
};
if (page.button4txt){
page.button4txt.mouseEnabled = false;
//unresolved jump
};
EC.add(page.button1, MouseEvent.MOUSE_DOWN, doclick);
EC.add(page.button1, MouseEvent.ROLL_OVER, getbuttonname);
if (page.button2){
EC.add(page.button2, MouseEvent.MOUSE_DOWN, doclick);
EC.add(page.button2, MouseEvent.ROLL_OVER, getbuttonname);
};
if (page.button3){
EC.add(page.button3, MouseEvent.MOUSE_DOWN, doclick);
EC.add(page.button3, MouseEvent.ROLL_OVER, getbuttonname);
};
fox.fadescreen();
if (_arg1 == "titlescreen"){
g.sfx.playSound("zloop", 1, 0, 999999);
g.playingzloop = "zloop";
};
}
public function stopEnterFrame():void{
EC.remove(this, Event.ENTER_FRAME, loop1);
EC.remove(this, Event.ENTER_FRAME, loop2);
EC.remove(this, Event.ENTER_FRAME, loop3);
EC.remove(this, Event.ENTER_FRAME, loop4);
}
public function init3():void{
clearpage();
g.gameid = 3;
g.pause = 0;
g.totaltime = 160;
g.onesec = 30;
g.noattack = 18;
g.score = (g.weapon = (g.adaburn = (g.destroyerattack = (g.shotno = (g.ammo = (g.finish = (g.grenadecombo = 0)))))));
g.weaponclass = [stone, grenade, banana];
g.weaponammo = [0, 5, 5];
g.char = {};
g.totalwaktu = (g.totaltime * g.onesec);
g.waktu = 1;
g.bonusdelay = 12;
g.bonusd = 7;
g.bonustype = [1, 2, 2];
g.yland = 392;
g.xmin = 0;
g.xmax = g.screenwid;
g.bgspeed = (g.normalbgspeed = 20);
g.pointnow = (g.point = 1000);
g.lasthit = -999;
g.targetpos = [{x:-17, y:-25}, {x:0, y:27}, {x:-5, y:75}, {x:-46, y:-97}, {x:46, y:-44}, {x:25, y:-2}, {x:-19, y:115}];
g.dir = -1;
all = new MovieClip();
g.r.addChild(all);
it = new bg3a();
all.addChild(it);
g.bg3a = it;
it = new bg3b();
it.y = g.screenhei;
all.addChild(it);
g.bg3b = it;
it = new bg3c();
it.y = g.screenhei;
all.addChild(it);
g.bg3c = it;
m = new MovieClip();
all.addChild(m);
m0 = new MovieClip();
m.addChild(m0);
m1 = new MovieClip();
m.addChild(m1);
m2 = new MovieClip();
m.addChild(m2);
m3 = new MovieClip();
m.addChild(m3);
m4 = new MovieClip();
m.addChild(m4);
stat = new statistics3();
all.addChild(stat);
g.all = all;
g.m = m;
g.m0 = m0;
g.m1 = m1;
g.m2 = m2;
g.m3 = m3;
g.m4 = m4;
g.stat = stat;
all2 = new MovieClip();
g.r.addChild(all2);
g.all2 = all2;
fox.framescreen(0, 0);
fox.fadescreen();
fox.resetrandom();
it = new mordecai3();
m1.addChild(it);
it.x = 60;
it.y = g.yland;
g.char[1] = it;
it.id = 1;
g.p1 = it;
it = new rigby3();
m1.addChild(it);
it.x = (g.screenwid - 60);
it.y = g.yland;
g.char[2] = it;
it.id = 2;
g.p2 = it;
it = new destroyer();
it.x = g.hscreenwid;
it.y = 160;
g.des = it;
m1.addChild(it);
fox.pophint(45, -40, 21, 40, 5, g.des.a.c);
changerundir();
if ((g.playingzloop == "zloop")){
g.sfx.stopSound("zloop");
//unresolved jump
};
if (g.playingzloop != "zloop3"){
if (g.sfx.playSound("zloop3", 1, 0, 999999)){
g.playingzloop = "zloop3";
//unresolved jump
};
//unresolved jump
};
EC.add(this, Event.ENTER_FRAME, loop3);
_achievementSystem.achievementNotificationGameStarted();
allback();
}
public function init2():void{
clearpage();
g.gameid = 2;
g.pause = 0;
g.levelmax = 8;
if ((g.lives > 0)){
g.lives--;
if (!g.lives){
g.level = 0;
//unresolved jump
};
//unresolved jump
};
if (!g.level){
g.startlevel = (g.level = 1);
g.lives = 99;
g.startscore = 0;
//unresolved jump
};
g.tracklength = [0, 6000, 8000, 10000, 11000, 12000, 13000, 14000, 16000];
g.tracklen = g.tracklength[g.level];
g.levelfinishline = g.tracklen;
g.levelstartline = 0;
g.lastplatform = undefined;
g.allplat = [];
g.allrock = [];
g.weapontime = [0, 300];
g.bgspeed = -10;
g.hrockwid = 30;
g.yland = 370;
g.pxnow = 0;
g.xmin = 0;
g.xmax = g.screenwid;
g.level1bonus = [0, 0, 0, 0];
g.level2bonus = [0, 0, 0, 0];
g.level3bonus = [1, 0, 3, 0];
g.level4bonus = [1, 0, 2, 0, 0];
g.level5bonus = [1, 3, 2, 0, 0, 0];
g.level6bonus = [1, 2, 1, 3, 0, 0];
g.level7bonus = [1, 3, 2, 1, 1, 1];
g.level8bonus = [1, 2, 1, 1, 0];
g.bonusdelay = 250;
g.bonusd = 100;
g.bonusno = (g.bonustomake = (g.ufohint = (g.sodahint = 0)));
g.levelufospeed = [0, 8, 8, 8, 7.5, 7.5, 7, 7, 6.5];
g.monstertime = [0, 0, 0, 60, 100, 200, 200, 200, 200];
g.ufodelay = (Math.floor((0.5 * g.monsterdelay)) + 200);
g.adamonster = (g.weapon = (g.wtime = (g.adaufo = 0)));
g.cartpartstype = [1, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18];
g.rockpartstype = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9];
g.rocketpartstype = [1, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13];
g.sodapartstype = [1, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 12, 13];
g.rocktype = [1, 2, 3, 4, 5];
g.totalrock = 0;
g.level1platform = [1, 2, 3, 9, 10];
g.level2platform = [1, 9, 10, 11, 12];
g.level3platform = [1, 9, 10, 11, 2, 4, 5];
g.level4platform = [1, 9, 10, 11, 2, 3, 5, 6];
g.level5platform = [1, 9, 10, 11, 2, 3, 4];
g.level6platform = [1, 9, 10, 11, 2, 3, 4, 5];
g.level7platform = [1, 9, 10, 11, 2, 3, 4, 5, 6];
g.level8platform = [1, 9, 10, 2, 3, 4, 5, 6];
all = new MovieClip();
g.r.addChild(all);
it = new bg2a();
all.addChild(it);
g.bg2a = it;
it = new bg2b();
it.y = g.screenhei;
all.addChild(it);
g.bg2b = it;
m = new MovieClip();
all.addChild(m);
m0 = new MovieClip();
m.addChild(m0);
m1 = new MovieClip();
m.addChild(m1);
m2 = new MovieClip();
m.addChild(m2);
m3 = new MovieClip();
m.addChild(m3);
m4 = new MovieClip();
m.addChild(m4);
stat = new statistics2();
all.addChild(stat);
g.all = all;
g.m = m;
g.m0 = m0;
g.m1 = m1;
g.m2 = m2;
g.m3 = m3;
g.m4 = m4;
g.stat = stat;
all2 = new MovieClip();
g.r.addChild(all2);
g.all2 = all2;
fox.framescreen(0, 0);
fox.fadescreen();
fox.resetrandom();
it = new playercart();
m2.addChild(it);
it.x = 100;
it.y = g.yland;
g.p = it;
if ((g.level == 1)){
makeplatform(12);
} else {
makeplatform(1);
};
g.nextrock = 1000;
g.levelrockspacing = [0, 500, 500, 450, 400, 350, 350, 350, 350];
g.rockspacing = g.levelrockspacing[g.level];
if ((g.level == 1)){
g.nextbonus = 3000;
} else {
g.nextbonus = 1000;
};
g.bonusspacing = 1000;
showlevelinfo();
if ((g.level == 1)){
fox.pophint(300, 60, 11, 80, 25);
//unresolved jump
};
if ((g.playingzloop == "zloop")){
g.sfx.stopSound("zloop");
//unresolved jump
};
if (g.playingzloop != "zloop2"){
if (g.sfx.playSound("zloop2", 1, 0, 999999)){
g.playingzloop = "zloop2";
//unresolved jump
};
//unresolved jump
};
EC.add(this, Event.ENTER_FRAME, loop2);
_achievementSystem.achievementNotificationGameStarted();
allback();
}
public function cekmakeplatform():void{
if ((g.pxnow < g.xmax)){
makeplatform();
//unresolved jump
};
if ((g.allplat[0].xmax < g.xmin)){
m1.removeChild(g.allplat[0]);
g.allplat.shift();
//unresolved jump
};
if (g.allrock.length){
if ((g.allrock[0].xmax < g.xmin)){
m1.removeChild(g.allrock[0]);
g.allrock.shift();
//unresolved jump
};
//unresolved jump
};
if ((g.xmax > g.nextbonus)){
makebonusitem(g.nextbonus, 1);
g.nextbonus = (g.nextbonus + (g.bonusspacing + fox.random(100)));
//unresolved jump
};
}
public function init1():void{
clearpage();
g.gameid = 1;
g.pause = 0;
g.totaltime = (2 * 60);
g.onesec = 30;
g.waktu = (g.totaltime * g.onesec);
g.combopoint = 5000;
g.scrollxmax = (g.scrollxmin = (g.xmin = (g.xmax = (g.consecutive = 0))));
g.scrollymax = g.screenhei;
g.scrollymin = (g.screenhei + 200);
g.xmin = 0;
g.xmax = g.screenwid;
g.bgwid = 1152;
g.yland = -25;
g.bonustype = [1, 2, 3, 11, 12];
g.bonustime = (30 * g.onesec);
g.bonusenergy = 50;
g.weapontime = [0, 75, 60, 75];
g.weapon = 0;
all = new MovieClip();
g.r.addChild(all);
m = new MovieClip();
all.addChild(m);
m.y = 400;
it = new bg1();
m.addChild(it);
m0 = new MovieClip();
m.addChild(m0);
m1 = new MovieClip();
m.addChild(m1);
m2 = new MovieClip();
m.addChild(m2);
m3 = new MovieClip();
m.addChild(m3);
m4 = new MovieClip();
m.addChild(m4);
stat = new statistics1();
all.addChild(stat);
g.all = all;
g.m = m;
g.m0 = m0;
g.m1 = m1;
g.m2 = m2;
g.m3 = m3;
g.m4 = m4;
g.stat = stat;
all2 = new MovieClip();
g.r.addChild(all2);
g.all2 = all2;
fox.framescreen();
fox.fadescreen();
fox.resetrandom();
it = new mordecai();
m0.addChild(it);
it.x = 94;
it.y = -166;
g.mor = it;
it = new trampoline();
m0.addChild(it);
g.tram = it;
it = new doll();
m1.addChild(it);
g.dol = it;
it = new sign();
stat.addChild(it);
it.x = 540;
it.y = 362;
g.dsign = it;
it = new rigby();
m2.addChild(it);
g.p = it;
ska = 1;
setscale(ska);
if ((g.playingzloop == "zloop")){
g.sfx.stopSound("zloop");
//unresolved jump
};
if (g.playingzloop != "zloop1"){
if (g.sfx.playSound("zloop1", 1, 0, 999999)){
g.playingzloop = "zloop1";
//unresolved jump
};
//unresolved jump
};
fox.pophint(250, -88, 1, 999, 10, m4);
fox.pophint(118, -365, 2, 999, 20, m4);
EC.add(this, Event.ENTER_FRAME, loop1);
_achievementSystem.achievementNotificationGameStarted();
allback();
}
public function showinfo(_arg1:String, _arg2:Boolean=true):void{
var _local3:*;
var _local4:*;
_local3 = (getDefinitionByName(_arg1) as Class);
_local4 = new (_local3);
_local4.id = _arg1;
_local4.x = (_local4.y = 0);
g.all2.addChild(_local4);
fox.removechildren(g.all);
fox.fadescreen();
stopEnterFrame();
}
public function init4():void{
clearpage();
g.score = ((g.score) || (0));
g.gameid = 4;
g.pause = 0;
g.score = Math.max(g.score, 0);
g.yland = 392;
g.xmin = 0;
g.xmax = g.screenwid;
g.waktu = (g.finish = (g.handro = 0));
g.allfire = [];
all = new MovieClip();
g.r.addChild(all);
it = new bg4b();
all.addChild(it);
g.bg = it;
m = new MovieClip();
all.addChild(m);
m0 = new MovieClip();
m.addChild(m0);
m1 = new MovieClip();
m.addChild(m1);
m2 = new MovieClip();
m.addChild(m2);
m3 = new MovieClip();
m.addChild(m3);
m4 = new MovieClip();
m.addChild(m4);
stat = new statistics4();
all.addChild(stat);
g.all = all;
g.m = m;
g.m0 = m0;
g.m1 = m1;
g.m2 = m2;
g.m3 = m3;
g.m4 = m4;
g.stat = stat;
all2 = new MovieClip();
g.r.addChild(all2);
g.all2 = all2;
fox.framescreen(0, 0);
fox.fadescreen();
fox.resetrandom();
it = new giant();
it.x = 85;
it.y = 265;
g.p1 = it;
m1.addChild(it);
it = new destroyer2();
it.x = 520;
it.y = 160;
g.p2 = it;
m1.addChild(it);
EC.add(this, Event.ENTER_FRAME, loop4);
allback();
}
public function endgame(_arg1:Number=1):void{
if ((g.gameid == 1)){
showinfo("gameover");
//unresolved jump
};
if ((((g.gameid == 2)) && ((_arg1 == 1)))){
showinfo("gameover2");
//unresolved jump
};
if ((((g.gameid == 2)) && ((_arg1 == 2)))){
showfinishani("finishani2");
//unresolved jump
};
if ((((g.gameid == 3)) && ((_arg1 == 1)))){
showinfo("gameover");
//unresolved jump
};
if ((((g.gameid == 3)) && ((_arg1 == 2)))){
showfinishani("finishani3");
//unresolved jump
};
if ((((g.gameid == 4)) && ((_arg1 == 1)))){
showinfo("gameover2");
//unresolved jump
};
if ((((g.gameid == 4)) && ((_arg1 == 2)))){
showinfo("destroyerwininfo", false);
//unresolved jump
};
}
public function makebonusitem(_arg1:Number, _arg2:Number=1):void{
it = new bonusitem(_arg2);
it.x = _arg1;
it.y = (g.yland - 200);
m1.addChild(it);
}
public function cekmakemonsterbonus(){
g.bonusd--;
if (!g.bonusd){
g.bonusd = g.bonusdelay;
g.bonustomake = g[(("level" + g.level) + "bonus")][g.bonusno];
g.bonusno++;
if ((g.bonusno > g[(("level" + g.level) + "bonus")].length)){
g.bonusno = 0;
//unresolved jump
};
//unresolved jump
};
if (g.bonustomake > 0){
if (((g.weapon + g.adamonster) + g.adaufo) > 0){
g.bonusd = Math.max(50, g.bonusd);
g.bonusno = Math.max(0, (g.bonusno - 1));
} else {
if (g.bonustomake == 1){
it = new monster();
it.x = g.p.x;
it.y = 0;
m2.addChild(it);
} else {
if (g.bonustomake == 2){
if (g.allrock.length > 0){
if (g.allrock[(g.allrock.length - 1)].x > g.xmax){
makebonusitem(g.allrock[(g.allrock.length - 1)].x, 2);
g.nextbonus = ((g.allrock[(g.allrock.length - 1)].x + g.bonusspacing) + fox.random(100));
} else {
g.bonusd = Math.max(50, g.bonusd);
g.bonusno = Math.max(0, (g.bonusno - 1));
};
} else {
g.bonusd = Math.max(50, g.bonusd);
g.bonusno = Math.max(0, (g.bonusno - 1));
};
} else {
if (g.bonustomake == 3){
it = new ufo();
it.x = (g.xmax + 150);
it.y = 100;
m0.addChild(it);
};
};
};
};
g.bonustomake = 0;
};
}
public function showlevelinfo(){
var _local1:*;
_local1 = new levelinfo();
g.stat.addChild(_local1);
}
public function doclick(_arg1:MouseEvent):void{
var _local2:*;
switch (g.pagenow){
case "titlescreen":
showpage("selectscreen");
break;
case "selectscreen":
g.gameid = Number(g.buttonrollover.substr((g.buttonrollover.length - 1), 1));
if (!fox.cekclass(("zloop" + g.gameid))){
it = new insscreen();
g.all2.addChild(it);
g.inspage = it;
_local2 = g.sfx.addExternalSound((("zloop" + g.gameid) + ".mp3"), ("zloop" + g.gameid), 40000);
it = new loadingassets();
it.x = g.hscreenwid;
it.y = (g.screenhei - 62);
g.all2.addChild(it);
};
break;
};
}
private function loadsfx():void{
var _local1:int;
g.sfx = SoundManager.getInstance();
_local1 = 0;
for (;_local1 < allsfx.length;_local1++) {
if (fox.cekclass(allsfx[_local1])){
g.sfx.addLibrarySound((getDefinitionByName(allsfx[_local1]) as Class), allsfx[_local1]);
continue;
};
};
}
public function changerundir(){
g.dir = -(g.dir);
g.des.a.scaleX = (g.dir * Math.abs(g.des.a.scaleX));
g.p1.a.scaleX = (g.dir * Math.abs(g.p1.a.scaleX));
g.p2.a.scaleX = (g.dir * Math.abs(g.p2.a.scaleX));
if ((g.dir > 0)){
g.p1.active = 1;
g.p2.active = 0;
g.p1.arrow.visible = true;
g.p2.arrow.visible = false;
} else {
g.p2.active = 1;
g.p1.active = 0;
g.p2.arrow.visible = true;
g.p1.arrow.visible = false;
};
}
public function sendstat(_arg1, _arg2){
_achievementSystem.sendStat(_arg1, _arg2);
}
public function make(_arg1, _arg2:int, _arg3:int){
var _local4:int;
var _local5:Class;
var _local6:*;
_local4 = 0;
if (isNaN(Number(_arg1))){
if (fox.cekclass(_arg1)){
_local5 = fox.getclass(_arg1);
_local4 = 1;
//unresolved jump
};
} else {
if (fox.cekclass(("o" + _arg1))){
_local5 = fox.getclass(("o" + _arg1));
_local4 = 1;
//unresolved jump
};
};
if (_local4){
_local6 = new (_local5);
_local6.x = _arg2;
_local6.y = _arg3;
m1.addChild(_local6);
//unresolved jump
};
}
}
}//package com.game
Section 96
//pausescreen (com.game.pausescreen)
package com.game {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public class pausescreen extends MovieClip {
public var soundoff:MovieClip;
public var place;
public var soundon;
public var button1;
public var button3;
public var button2txt;
public var button2;
public var energynow:Number;// = 0
public var g;
public var button4:SimpleButton;
public var xs;
public var button3txt;
public var dtic;
public var convert;
public var ticdelay;
public var button1txt;
public var accel;
public var button4txt;
public function pausescreen():void{
g = fox.globalvar;
energynow = 0;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
EC.remove(this);
visible = false;
visible = true;
if (g.mute){
soundoff.visible = false;
soundon.visible = true;
} else {
soundoff.visible = true;
soundon.visible = false;
};
button1txt.mouseEnabled = false;
soundon.mouseEnabled = false;
soundoff.mouseEnabled = false;
button3txt.mouseEnabled = false;
if (button4txt){
button4txt.mouseEnabled = false;
//unresolved jump
};
EC.add(button1, MouseEvent.MOUSE_DOWN, doclick);
EC.add(button1, MouseEvent.ROLL_OVER, getbuttonname);
EC.add(button2, MouseEvent.MOUSE_DOWN, doclick);
EC.add(button2, MouseEvent.ROLL_OVER, getbuttonname);
EC.add(button3, MouseEvent.MOUSE_DOWN, doclick);
EC.add(button3, MouseEvent.ROLL_OVER, getbuttonname);
fox.fadescreen();
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
removeChild(place);
this.parent.removeChild(this);
}
public function getbuttonname(_arg1:MouseEvent):void{
g.buttonrollover = _arg1.currentTarget.name;
}
public function doclick(_arg1:MouseEvent):void{
if ((g.buttonrollover == "button1")){
g.pause = false;
die();
//unresolved jump
};
if (g.buttonrollover == "button2"){
if (!g.mute){
g.mute = 1;
g.sfx.muteAllSounds();
soundoff.visible = false;
soundon.visible = true;
} else {
g.mute = 0;
g.sfx.unmuteAllSounds();
soundoff.visible = true;
soundon.visible = false;
};
};
if (g.buttonrollover == "button3"){
if (g.playingzloop){
g.sfx.stopSound(g.playingzloop);
g.playingzloop = 0;
//unresolved jump
};
g.r.quitgame();
};
}
}
}//package com.game
Section 97
//popinfo (com.game.popinfo)
package com.game {
import flash.display.*;
import flash.events.*;
import com.fox.*;
import flash.text.*;
public class popinfo extends MovieClip {
public var useformatnumber:Number;// = 0
public var a;
public var g;
public var score;
public var bgb:MovieClip;
public function popinfo(){
g = fox.globalvar;
useformatnumber = 0;
super();
useformatnumber = 0;
if ((g.gameid < 3)){
score = g.p.score;
} else {
score = g.score;
};
fox.initjiggle(a, 1.6, 1);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
if (a.button1){
EC.remove(a.button1);
//unresolved jump
};
if (a.button2){
EC.remove(a.button2);
//unresolved jump
};
EC.remove(this);
}
public function init(_arg1:Event){
if (useformatnumber){
a.a.b.text = fox.formatnumber(score);
} else {
a.a.b.text = score;
};
a.b.gotoAndStop(g.gameid);
bgb.gotoAndStop(g.gameid);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
if (a.button1){
EC.add(a.button1, MouseEvent.MOUSE_DOWN, klik1);
a.button1txt.mouseEnabled = false;
//unresolved jump
};
if (a.button2){
EC.add(a.button2, MouseEvent.MOUSE_DOWN, klik2);
a.button2txt.mouseEnabled = false;
//unresolved jump
};
}
private function klik1(_arg1:MouseEvent):void{
var _local2 = g.r;
_local2[("init" + g.gameid)]();
}
private function klik2(_arg1:MouseEvent):void{
g.r.quitgame();
}
public function loop(_arg1:Event):void{
if (!g.pause){
fox.jiggle(a);
};
}
}
}//package com.game
Section 98
//popscore (com.game.popscore)
package com.game {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class popscore extends MovieClip {
public var xx;
public var ska:Number;
public var yy;
public var sk;
public var d;
var g;
public function popscore(_arg1:Number=100, _arg2:Number=100, _arg3:Number=0):void{
g = fox.globalvar;
super();
x = (xx = _arg1);
y = (yy = _arg2);
sk = _arg3;
if ((sk >= 10000)){
d = 40;
} else {
d = 20;
};
ska = Math.max(0.8, Math.min(1.6, (0.8 + (sk / 10000))));
this.a.b.text = sk;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
if ((d > 10)){
rotation = (-10 + fox.random(20));
x = ((xx - 3) + fox.random(6));
y = ((yy - 2) + fox.random(4));
scaleX = (scaleY = (ska + (0.1 * fox.random(ska))));
} else {
y = (y - 5);
alpha = Math.max(0, (alpha - 0.1));
};
d--;
if (!d){
die();
//unresolved jump
};
};
}
}
}//package com.game
Section 99
//bonus1 (com.game1.bonus1)
package com.game1 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public dynamic class bonus1 extends MovieClip {
public var xd;
public var yland;
public var oldact:String;// = ""
public var ys;
public var id;
public var ro;
public var a:MovieClip;
public var g;
public var xs;
public var off:Boolean;
public var state;
public var act;
public var grav:Number;
public var nx;
public var angle;
public function bonus1(_arg1:Boolean=false):void{
g = fox.globalvar;
oldact = "";
super();
if (_arg1){
id = g.weapon;
nx = (g.p.x + 150);
x = g.p.x;
} else {
id = fox.getrandom("bonustype");
if ((((id == 12)) && ((g.p.energy == g.p.energymax)))){
id = fox.getrandom("bonustype");
//unresolved jump
};
if ((id == g.weapon)){
id = fox.getrandom("bonustype");
//unresolved jump
};
nx = Math.max(300, (g.dol.x - 150));
x = g.dol.x;
};
a.gotoAndStop(id);
off = _arg1;
state = 1;
yland = (g.yland + 10);
grav = 3;
ro = 35;
y = (g.yland - 20);
ys = (-30 - fox.random(10));
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
if (state == 1){
ys = (ys + grav);
x = (x + ((nx - x) / 15));
y = (y + ys);
a.rotation = (a.rotation - ro);
if ((act == "fly")){
if ((nx < x)){
a.rotation = (a.rotation - 30);
} else {
a.rotation = (a.rotation + 30);
};
//unresolved jump
};
if (y > yland){
y = yland;
a.rotation = (ro = 0);
if ((ys > 10)){
g.sfx.playSound("zland2");
//unresolved jump
};
ys = (-0.4 * ys);
if ((ys > -2)){
state = 2;
xs = (ys = 0);
y = yland;
//unresolved jump
};
};
} else {
if (state == 2){
if (off){
alpha = (alpha - 0.1);
if ((alpha <= 0)){
g.weapon = 0;
die();
//unresolved jump
};
} else {
if (Math.abs((g.p.x - x)) < 20){
g.sfx.playSound("zbonus");
if ((id < 10)){
g.weapon = id;
//unresolved jump
};
if ((id == 11)){
g.waktu = (g.waktu + g.bonustime);
//unresolved jump
};
if ((id == 12)){
g.p.energy = Math.min(g.p.energymax, (g.p.energy + g.bonusenergy));
//unresolved jump
};
die();
};
};
};
};
};
}
}
}//package com.game1
Section 100
//doll (com.game1.doll)
package com.game1 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public dynamic class doll extends MovieClip {
public var xd;
public var oldact:String;// = ""
public var xmax;
public var ys;
public var ro;
public var a:MovieClip;
public var g;
public var xs;
public var state;
public var act;
public var grav;
public var xrange;
public var nx;
public var xmid:Number;
public var ny;
public var angle;
public var xmin;
public function doll():void{
g = fox.globalvar;
oldact = "";
super();
a.stop();
act = "static";
xmax = 1100;
xmin = 400;
xrange = (xmax - xmin);
xmid = (xmin + (xrange / 2));
grav = 3;
x = (xmin + fox.random(xrange));
y = g.yland;
xd = 0;
nx = x;
ny = y;
fox.pophint((x + 10), -82, 3, 999, 30);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
state = 1;
fox.showact(this);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function fly(_arg1:Boolean=false):void{
if (_arg1){
x = 1150;
y = -150;
//unresolved jump
};
visible = true;
if ((x > xmid)){
nx = (xmid - fox.random((xrange / 2)));
} else {
nx = (xmid + fox.random((xrange / 2)));
};
ys = Math.min(-20, Math.max(-40, (-0.3 * Math.abs((nx - x)))));
act = "fly";
state = 2;
xd = 10;
}
public function ceksign():void{
if (((x - g.xmax) < 20)){
g.dsign.visible = false;
} else {
g.dsign.visible = true;
};
}
public function loop(_arg1:Event):void{
if (!g.pause){
ceksign();
if (state == 2){
ys = (ys + grav);
x = (x + ((nx - x) / 15));
y = (y + ys);
if ((act == "fly")){
if ((nx < x)){
a.rotation = (a.rotation - 30);
} else {
a.rotation = (a.rotation + 30);
};
//unresolved jump
};
if (y > g.yland){
y = g.yland;
a.rotation = 0;
act = "static";
if ((ys > 10)){
g.sfx.playSound("zland2");
//unresolved jump
};
ys = (-0.2 * ys);
xd--;
if (!xd){
state = 1;
xs = (ys = 0);
y = g.yland;
//unresolved jump
};
};
};
fox.showact(this);
};
}
}
}//package com.game1
Section 101
//mordecai (com.game1.mordecai)
package com.game1 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public dynamic class mordecai extends MovieClip {
public var actnow:String;// = ""
public var b:SimpleButton;
public var d;
public var a:MovieClip;
public var g;
public var state:Number;
public var act;
public function mordecai():void{
g = fox.globalvar;
actnow = "";
super();
a.stop();
hold();
EC.add(this, Event.ADDED_TO_STAGE, init);
EC.add(b, MouseEvent.MOUSE_DOWN, doclick);
EC.add(g.r, MouseEvent.MOUSE_MOVE, mousemoving);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
EC.remove(b, MouseEvent.MOUSE_DOWN);
EC.remove(g.r, MouseEvent.MOUSE_MOVE, mousemoving);
}
public function init(_arg1:Event){
fox.showact(this);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function mousemoving(_arg1:MouseEvent):void{
if ((state == 99)){
state = 1;
//unresolved jump
};
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
if (d > 0){
d--;
if (state == 3){
if (d == 8){
g.p.launch();
};
};
if (!d){
if ((state == 3)){
state = 4;
act = "stand";
//unresolved jump
};
if ((state == 2)){
state = 3;
d = 17;
act = "throw";
g.sfx.playSound("zthrow");
//unresolved jump
};
};
};
fox.showact(this);
};
}
public function hold():void{
act = "hold";
state = 99;
}
public function doclick(_arg1:MouseEvent):void{
if (state == 1){
act = "yell";
state = 2;
d = 15;
g.sfx.playSound("zaarg");
};
}
}
}//package com.game1
Section 102
//popcombo (com.game1.popcombo)
package com.game1 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class popcombo extends MovieClip {
public var d:Number;
var g;
public function popcombo(_arg1:Number=100, _arg2:Number=100, _arg3:Number=0):void{
g = fox.globalvar;
super();
x = _arg1;
y = _arg2;
this.a.b.text = _arg3;
this.a.c.text = (_arg3 * g.combopoint);
d = 70;
fox.initjiggle(this.a, 2, 1);
EC.add(this, Event.ADDED_TO_STAGE, init);
g.r.sendstat(201, _arg3);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
fox.jiggle(this.a);
d--;
if (!d){
die();
//unresolved jump
};
};
}
}
}//package com.game1
Section 103
//rigby (com.game1.rigby)
package com.game1 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
import com.game.*;
public dynamic class rigby extends MovieClip {
public var actnow:String;// = ""
public var energymax;
public var ys;
public var bonusd:Number;
public var it:MovieClip;
public var energyless;
public var ro;
public var speed;
public var d;
public var a;
public var g;
public var xs;
public var state;
public var energy;
public var act;
public var score;
public var grav;
public var dx;
public var dist;
public var dy;
public var nx;
public var ny;
public var angle;
public function rigby():void{
g = fox.globalvar;
actnow = "";
super();
a.stop();
hold();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
energy = (energymax = 100);
energyless = 10;
score = 0;
grav = 3;
speed = 50;
act = (actnow = "thrown");
fox.showact(this);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function jumpback():void{
state = 8;
act = "jump";
xs = -8;
ys = -40;
}
public function rotate():void{
angle = Math.atan2(ys, xs);
ro = fox.deg(angle);
a.rotation = ro;
}
public function popbonus(_arg1:Boolean=false){
it = new bonus1(_arg1);
g.m1.addChild(it);
}
public function wrestle(){
if (a.a.currentFrame == 8){
g.sfx.playSound("zwrestle");
g.p.score = (g.p.score + g.wrestlepoint);
fox.popskor(((x - 10) + fox.random(20)), (((y - 90) - 10) + fox.random(20)), g.wrestlepoint);
g.wrestlepoint = (g.wrestlepoint + g.wrestlepointadd);
};
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
if (state == 2){
x = (x + xs);
y = (y + ys);
d--;
if (!d){
state = 3;
visible = false;
d = 3;
g.tram.a.gotoAndStop("bounce");
g.sfx.playSound("ztrampoline");
//unresolved jump
};
} else {
if (state == 3){
d--;
if (!d){
fly();
d = 3;
//unresolved jump
};
} else {
if (state == 4){
ys = (ys + grav);
x = (x + xs);
y = (y + ys);
rotate();
d--;
if (!d){
g.tram.a.gotoAndStop("static");
//unresolved jump
};
if ((ys < 0)){
act = "flyup";
} else {
act = "flydown";
};
if ((y > g.yland)){
landed();
//unresolved jump
};
} else {
if (state == 5){
wrestle();
bonusd--;
if (!bonusd){
popbonus();
//unresolved jump
};
d--;
if (!d){
if (g.weapon){
state = (10 + g.weapon);
act = ("weapon" + g.weapon);
d = g.weapontime[g.weapon];
} else {
g.dol.fly();
runback();
};
};
} else {
if (state == 6){
d--;
if (!d){
if (!energy){
gameover();
} else {
runback();
};
//unresolved jump
};
} else {
if (state == 7){
x = (x + xs);
if ((x < (g.mor.x + 80))){
jumpback();
//unresolved jump
};
} else {
if (state == 8){
x = (x + xs);
y = (y + ys);
ys = (ys + grav);
if ((y < (g.mor.y - 20))){
hold();
//unresolved jump
};
} else {
if (state > 10){
weaponattack();
};
};
};
};
};
};
};
};
cekoutoftime();
fox.showact(this);
};
}
public function fly():void{
ys = (-0.8 * ys);
x = (g.tram.x + (2 * xs));
y = (g.tram.y + (2 * ys));
rotate();
visible = true;
act = "flyup";
state = 4;
}
public function launch():void{
x = 150;
y = -240;
dx = (g.tram.x - x);
dy = (g.tram.y - y);
angle = Math.atan2(dy, dx);
dist = Math.sqrt(((dx * dx) + (dy * dy)));
xs = (Math.cos(angle) * speed);
ys = (Math.sin(angle) * speed);
ro = fox.deg(angle);
a.rotation = ro;
d = Math.floor((dist / speed));
visible = true;
state = 2;
}
public function cekoutoftime(){
if (!g.waktu){
if ((state < 5)){
gameover();
//unresolved jump
};
//unresolved jump
};
}
public function gameover(){
g.r.sendstat(200, g.p.score);
g.r.sendstat(400, 1);
g.r.endgame(2);
}
public function landed():void{
y = g.yland;
xs = (ys = (a.rotation = 0));
if (Math.abs((x - g.dol.x)) < 70){
state = 5;
act = "wrestle";
x = g.dol.x;
bonusd = 30;
g.consecutive++;
if (g.weapon){
d = 40;
} else {
d = 80;
};
g.dol.visible = false;
g.sfx.playSound("zland");
} else {
state = 6;
act = "splat";
d = 50;
g.consecutive = 0;
g.sfx.playSound("zsplat");
energy = Math.max(0, (energy - energyless));
if (g.weapon){
popbonus(true);
//unresolved jump
};
};
}
public function doclick(_arg1:MouseEvent):void{
if (state == 1){
act = "throw";
state = 2;
d = 17;
};
}
public function hold():void{
state = 1;
y = 9999;
visible = false;
g.mor.hold();
g.wrestlepoint = 200;
g.wrestlepointadd = 100;
g.batpoint = 2000;
g.batpointadd = 200;
g.thumppoint = 3000;
g.thumppointadd = 300;
}
public function weaponattack(){
d--;
if (state == 11){
if (a.a.currentFrame == 8){
g.sfx.playSound("zpunch1");
g.p.score = (g.p.score + g.batpoint);
fox.popskor(((x - 10) + fox.random(20)), (((y - 90) - 10) + fox.random(20)), g.batpoint);
g.batpoint = (g.batpoint + g.batpointadd);
};
if (!d){
g.weapon = 0;
g.dol.fly();
runback();
//unresolved jump
};
} else {
if (state == 12){
if ((a.a.currentFrame == 1)){
g.sfx.playSound("zheartbeat");
//unresolved jump
};
if (a.a.currentFrame == 50){
g.sfx.playSound("zboxing");
g.boxingpoint = 15000;
g.p.score = (g.p.score + g.boxingpoint);
fox.popskor(((x - 10) + fox.random(20)), (((y - 160) - 10) + fox.random(20)), g.boxingpoint);
};
if (!d){
g.weapon = 0;
g.dol.fly(true);
runback();
//unresolved jump
};
} else {
if (state == 13){
if (a.a.currentFrame == 5){
g.sfx.playSound("zpunch3");
g.p.score = (g.p.score + g.thumppoint);
fox.popskor(((x - 10) + fox.random(20)), (((y - 140) - 10) + fox.random(20)), g.thumppoint);
g.thumppoint = (g.thumppoint + g.thumppointadd);
};
if (!d){
g.weapon = 0;
g.dol.fly();
runback();
//unresolved jump
};
};
};
};
}
public function runback():void{
state = 7;
act = "run";
xs = -14;
if (g.consecutive > 1){
it = new popcombo(520, -300, g.consecutive);
g.m4.addChild(it);
score = (score + (g.consecutive * g.combopoint));
};
}
}
}//package com.game1
Section 104
//statistics1 (com.game1.statistics1)
package com.game1 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
import com.game.*;
public class statistics1 extends MovieClip {
public var oldweapon;
public var energynow:Number;// = 0
public var g;
public var xs;
public var dn;
public var weaponicon:MovieClip;
public var pausebutton;
public var energy1;
public var dtic;
public var convert;
public var ticdelay;
public var disbar;
public var time;
public var score1;
public var accel;
public function statistics1():void{
g = fox.globalvar;
energynow = 0;
super();
g.stat = this;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
dtic = (ticdelay = 15);
energy1.b.scaleX = 1;
energynow = 100;
accel = 0.8;
convert = 0.5;
xs = 0;
dn = 0;
fox.initjiggle(weaponicon, 2, 1);
pausebutton.addEventListener(MouseEvent.MOUSE_DOWN, pausing, false, 0, true);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function updateweaponicon():void{
if (g.weapon){
if (oldweapon != g.weapon){
oldweapon = g.weapon;
fox.initjiggle(weaponicon, 2, 1);
//unresolved jump
};
weaponicon.visible = true;
weaponicon.a.gotoAndStop(g.weapon);
fox.jiggle(weaponicon);
} else {
weaponicon.visible = false;
};
}
public function timetotext(_arg1:Number, _arg2:Number):String{
var _local3:*;
var _local4:*;
var _local5:String;
var _local6:*;
var _local7:*;
var _local8:*;
_local6 = Math.floor((_arg1 / _arg2));
_local7 = ((_arg1 - (_local6 * _arg2)) * 4);
_local8 = Math.floor((_local6 / 60));
_local6 = (_local6 - (_local8 * 60));
if ((_local8 < 10)){
_local3 = ("0" + _local8);
} else {
_local3 = _local8;
};
if ((_local6 < 10)){
_local4 = ("0" + _local6);
} else {
_local4 = _local6;
};
if ((_local7 < 10)){
_local5 = ("0" + _local7);
} else {
_local5 = _local7;
};
return (((_local3 + ":") + _local4));
}
public function updatestatenergy1():void{
if (energynow != g.p.energy){
if ((g.p.energy < energynow)){
energynow = g.p.energy;
fox.tintflash(energy1, 4, 0xFF6600, 1);
} else {
energynow = g.p.energy;
fox.tintflash(energy1, 20, 0xFFFF00, 1);
};
//unresolved jump
};
xs = ((xs * accel) + (((g.p.energy / 100) - energy1.b.scaleX) * convert));
energy1.b.scaleX = Math.min(1, Math.max(0.001, (energy1.b.scaleX + xs)));
}
private function pausing(_arg1:MouseEvent):void{
var _local2:*;
if (!g.pause){
g.pause = true;
_local2 = new pausescreen();
g.all.addChild(_local2);
};
}
public function updatestatscore1():void{
score1.a.b.text = g.p.score;
}
public function loop(_arg1:Event):void{
if (!g.pause){
updatestatenergy1();
updatestatscore1();
updatestattime();
updateweaponicon();
};
}
public function updatestattime():void{
g.waktu = Math.max(0, (g.waktu - 1));
time.a.b.text = timetotext(g.waktu, g.onesec);
if ((g.waktu < 200)){
dtic--;
if (!dtic){
dtic = ticdelay;
g.sfx.playSound("ztic");
fox.tintflash(time, 4, 0xFF6600, 1);
//unresolved jump
};
//unresolved jump
};
if (!g.waktu){
dtic = (ticdelay = 99999);
//unresolved jump
};
}
}
}//package com.game1
Section 105
//trampoline (com.game1.trampoline)
package com.game1 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public dynamic class trampoline extends MovieClip {
public var xmax;
public var rect:Rectangle;
public var oldact:String;// = ""
public var range;
public var b:SimpleButton;
public var hwid;
public var a:MovieClip;
public var dragging:Number;
public var g;
public var act;
public var xmin;
public function trampoline():void{
g = fox.globalvar;
oldact = "";
super();
a.stop();
act = "static";
range = 160;
xmin = 175;
xmax = (xmin + range);
x = (xmin + 50);
y = (g.yland - 10);
hwid = 120;
dragging = 0;
fox.showact(this);
EC.add(b, MouseEvent.MOUSE_DOWN, drag);
EC.add(g.r, MouseEvent.MOUSE_UP, nodrag);
}
public function clearlistener(_arg1:Event):void{
EC.remove(b, MouseEvent.MOUSE_DOWN);
EC.remove(g.r, MouseEvent.MOUSE_UP);
}
public function drag(_arg1:MouseEvent):void{
if ((((g.p.state == 1)) || ((g.p.state == 7)))){
rect = new Rectangle(xmin, (g.yland - 10), Math.min(range, ((g.dol.x - xmin) - hwid)), 0);
startDrag(false, rect);
dragging = 1;
};
}
public function nodrag(_arg1:MouseEvent):void{
if (dragging){
dragging = 0;
stopDrag();
//unresolved jump
};
}
public function die():void{
this.parent.removeChild(this);
}
}
}//package com.game1
Section 106
//bazooka (com.game2.bazooka)
package com.game2 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class bazooka extends MovieClip {
public var a:MovieClip;
public var g;
public function bazooka():void{
g = fox.globalvar;
super();
if ((g.weapon == 1)){
a.visible = true;
} else {
a.visible = false;
};
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function loop(_arg1:Event):void{
if ((g.weapon == 1)){
a.visible = true;
} else {
a.visible = false;
};
}
}
}//package com.game2
Section 107
//bonusitem (com.game2.bonusitem)
package com.game2 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class bonusitem extends MovieClip {
public var id:Number;
public var a:MovieClip;
public var g;
public var bonusscore;
public function bonusitem(_arg1:Number):void{
g = fox.globalvar;
super();
id = _arg1;
bonusscore = 1000;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
if ((((((g.level == 1)) && ((id == 1)))) && (!(g.sodahint)))){
fox.pophint(-20, -45, 12, 100, 0, this);
g.sodahint = 1;
//unresolved jump
};
a.gotoAndStop(id);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
if (Math.abs((x - g.p.x)) < 70){
if (g.p.y > y){
if ((g.p.y - 100) < y){
g.p.score = (g.p.score + bonusscore);
g.sfx.playSound("zbonus");
if ((id == 2)){
g.weapon = 1;
g.wtime = g.weapontime[g.weapon];
//unresolved jump
};
die();
};
};
};
if ((x < (g.xmin - width))){
die();
//unresolved jump
};
};
}
}
}//package com.game2
Section 108
//cartpart (com.game2.cartpart)
package com.game2 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class cartpart extends MovieClip {
public var ys;
public var ro;
public var a:MovieClip;
var g;
public var xs;
public var grav:Number;
public function cartpart(_arg1:Number=1):void{
g = fox.globalvar;
super();
a.gotoAndStop(_arg1);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
xs = (-8 + fox.random(30));
ys = (-12 - fox.random(15));
ro = (-30 + fox.random(60));
grav = 2;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
x = (x + xs);
y = (y + ys);
ys = (ys + grav);
rotation = (rotation + ro);
if ((y > (g.screenhei + height))){
die();
//unresolved jump
};
};
}
}
}//package com.game2
Section 109
//finishani2 (com.game2.finishani2)
package com.game2 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
import flash.text.*;
public class finishani2 extends MovieClip {
public var finalscore:Number;// = 0
public var b:MovieClip;
public var d;
public var a;
public var g;
public var livesbonus;
public var score;
public function finishani2(){
g = fox.globalvar;
finalscore = 0;
super();
score = g.p.score;
fox.initjiggle(b, 1.6, 1);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
if (a.button1){
EC.remove(a.button1);
//unresolved jump
};
if (a.button2){
EC.remove(a.button2);
//unresolved jump
};
EC.remove(this);
}
public function init(_arg1:Event){
livesbonus = (g.lives * 1000);
finalscore = (score + livesbonus);
a.a.b.text = score;
a.a.c.text = livesbonus;
a.a.d.text = finalscore;
a.visible = (b.visible = false);
d = 110;
g.sfx.playSound("zaah");
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
if (a.button1){
EC.add(a.button1, MouseEvent.MOUSE_DOWN, klik1);
a.button1txt.mouseEnabled = false;
//unresolved jump
};
if (a.button2){
EC.add(a.button2, MouseEvent.MOUSE_DOWN, klik2);
a.button2txt.mouseEnabled = false;
//unresolved jump
};
}
private function klik1(_arg1:MouseEvent):void{
g.level = 0;
g.r.init2();
}
private function klik2(_arg1:MouseEvent):void{
g.r.quitgame();
}
public function loop(_arg1:Event):void{
if (!g.pause){
if ((this.currentFrame == 70)){
g.sfx.stopSound("zaah");
//unresolved jump
};
if ((this.currentFrame == 90)){
g.sfx.playSound("zpoof");
//unresolved jump
};
d--;
if (!d){
a.visible = (b.visible = true);
b.scaleX = (b.scaleY = 1.5);
g.r.sendstat(401, 1);
};
fox.jiggle(b);
};
}
}
}//package com.game2
Section 110
//missile (com.game2.missile)
package com.game2 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
import flash.utils.*;
public dynamic class missile extends MovieClip {
public var it:MovieClip;
public var a;
public var g;
public var xs;
public var point:Number;
public var wid;
public function missile():void{
g = fox.globalvar;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function cekrocks():void{
var _local1:int;
if (y > 300){
_local1 = 0;
for (;_local1 < g.allrock.length;fox.popskor(it.x, (it.y - 50), point), (g.p.score = (g.p.score + point)), (it.x = (g.p.x - 9999)), (x = (g.xmax + 9999)), _local1++) {
it = g.allrock[_local1];
//unresolved if
//unresolved if
g.sfx.playSound("zexplode3");
if ((it.id <= 5)){
explode(it, "rock");
//unresolved jump
};
if ((it.id == 6)){
explode(it, "rocket");
//unresolved jump
};
if ((it.id == 7)){
explode(it, "soda");
continue;
};
};
};
}
public function init(_arg1:Event){
point = 2000;
wid = 36;
xs = 35;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
x = (x + xs);
cekrocks();
if ((x > (g.xmax + 60))){
die();
//unresolved jump
};
};
}
public function explode(_arg1:MovieClip, _arg2:String):void{
var _local3:MovieClip;
var _local4:int;
_local4 = 0;
for (;_local4 < g[(_arg2 + "partstype")].length;(_local3.x = ((_arg1.x + 50) - fox.random(100))), (_local3.y = ((_arg1.y - 50) + fox.random(100))), g.m2.addChild(_local3), _local4++) {
if ((_arg2 == "rock")){
_local3 = new rockpart((_local4 + 1));
//unresolved jump
};
if ((_arg2 == "rocket")){
_local3 = new rocketpart((_local4 + 1));
//unresolved jump
};
if ((_arg2 == "soda")){
_local3 = new sodapart((_local4 + 1));
continue;
};
};
}
}
}//package com.game2
Section 111
//monster (com.game2.monster)
package com.game2 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public class monster extends MovieClip {
public var freezetime;
public var waktu;
public var freezedelay;
public var d;
public var a:MovieClip;
var g;
public var div;
public var freeze;
public var state:Number;
public function monster():void{
g = fox.globalvar;
super();
a.stop();
state = 1;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function cekhitp(){
if ((Math.abs((g.p.x - x)) < 90)){
g.p.flatten = 1;
//unresolved jump
};
}
public function init(_arg1:Event){
freeze = 0;
freezetime = ((30 + (3 * g.levelmax)) - (3 * g.level));
freezedelay = (30 + fox.random(30));
d = 100;
g.adamonster = 1;
waktu = g.monstertime[g.level];
div = (25 - g.level);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
waktu--;
d--;
if (state == 1){
if (freeze){
freeze--;
x = Math.max((g.xmin + 50), x);
} else {
x = (x + ((Math.max((g.xmin + 50), (g.p.x + 150)) - x) / div));
freezedelay--;
if (!freezedelay){
freeze = freezetime;
freezedelay = (30 + fox.random(30));
//unresolved jump
};
};
if ((g.level == g.levelmax)){
if (((g.levelfinishline - g.p.x) < 700)){
g.mdelay = 99999;
g.adamonster = 0;
die();
//unresolved jump
};
//unresolved jump
};
if (!d){
state = 2;
a.gotoAndStop("punch");
d = 30;
//unresolved jump
};
} else {
if (state == 2){
if ((d == 27)){
fox.shakescreen(15);
g.sfx.playSound("zfist");
cekhitp();
//unresolved jump
};
if (!d){
if ((waktu > 0)){
state = 1;
d = 50;
x = g.p.x;
a.gotoAndStop("danger");
} else {
g.adamonster = 0;
die();
};
//unresolved jump
};
};
};
};
}
}
}//package com.game2
Section 112
//player (com.game2.player)
package com.game2 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public dynamic class player extends MovieClip {
public var flatten;
public var pw;
public var shoot:Number;// = 0
public var jump;
public var grav;
public var a;
public var g;
public var energy;
public var state;
public var score;
public var udaland;
public var act;
public var x1;
public var x2;
public var y1;
public var y2;
public var xx;
public var xs;
public var diedelay;
public var oldact:String;// = ""
public var ys;
public var axs;
public var yy;
public var it;
public var minspeed;
public var maxspeed;
public var nojump;
public var fall;
public var jumppower;
public var nx;
public var ny;
public var ph;
public function player():void{
g = fox.globalvar;
it = MovieClip;
shoot = 0;
oldact = "";
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(stage, MouseEvent.MOUSE_DOWN, doclick);
EC.remove(this);
}
public function cekfinish():void{
if (g.level == g.levelmax){
if ((g.levelfinishline - g.p.x) < 700){
g.nextbonus = (g.nextrock = 99999);
};
};
if (g.xmin > g.levelfinishline){
if (!jump){
if ((g.level == g.levelmax)){
state = 4;
nojump = 99999;
} else {
nextlevel();
};
};
};
}
public function playermove():void{
if (state == 1){
if (this.mouseX > 1){
xs = Math.min(this.mouseX, maxspeed);
} else {
if (this.mouseX < -1){
xs = Math.max((xs - 4), minspeed);
} else {
xs = -(g.bgspeed);
};
};
nx = Math.max((g.xmin + 100), Math.min((g.xmax - 100), (x + xs)));
x1 = (nx - 45);
x2 = (nx + 56);
if (jump){
ys = (ys + grav);
ny = (y + ys);
if (ny > g.yland){
if (cekland()){
act = "bump";
ny = g.yland;
ys = (ys * -0.4);
if (udaland){
ys = (jump = 0);
act = "run";
} else {
udaland = 1;
g.sfx.playSound("zcartland");
};
} else {
fall = 1;
jump = 0;
};
};
} else {
if (!cekland()){
fall = 1;
//unresolved jump
};
};
if (fall){
ys = (ys + grav);
ny = (y + ys);
if (ny > g.screenhei){
ys = (jump = (fall = (energy = 0)));
ny = g.screenhei;
act = "crash";
state = 2;
g.sfx.playSound("zcartcrash");
};
};
x = nx;
y = ny;
rotation = (0.5 * ys);
cekrocks();
} else {
if (state == 4){
a.x = (a.x + axs);
axs++;
if ((a.x > 1000)){
g.r.endgame(2);
//unresolved jump
};
};
};
}
public function nextlevel():void{
g.level++;
g.r.showlevelinfo();
g.startscore = score;
g.tracklen = g.tracklength[g.level];
g.levelstartline = g.xmin;
g.levelfinishline = (g.xmin + g.tracklen);
g.rockspacing = g.levelrockspacing[g.level];
g.bonustomake = (g.bonusno = 0);
g.bonusd = 100;
g.r.sendstat(202, (g.level - 1));
}
public function loop(_arg1:Event):void{
if (!g.pause){
if (flatten == 1){
flattened();
flatten = 2;
} else {
cekfinish();
playermove();
if (nojump){
nojump--;
//unresolved jump
};
cekweapon();
};
fox.showact(this);
cekdie();
};
}
public function shootbazooka(){
var _local1:*;
_local1 = new missile();
_local1.x = (g.p.x + 88);
_local1.y = (g.p.y - 42);
g.m2.addChild(_local1);
g.sfx.playSound("zbazooka");
}
public function explode():void{
var _local1:MovieClip;
var _local2:int;
_local2 = 0;
while (_local2 < g.cartpartstype.length) {
_local1 = new cartpart((_local2 + 1));
_local1.x = ((x + 50) - fox.random(100));
_local1.y = ((y - 50) + fox.random(100));
g.m2.addChild(_local1);
_local2++;
};
}
public function cekrocks():void{
var _local1:int;
if ((((ys >= 0)) && ((y > (g.yland - 30))))){
_local1 = 0;
for (;_local1 < g.allrock.length;_local1++) {
it = g.allrock[_local1];
if ((Math.abs((it.x - x)) < (g.hrockwid + 50))){
act = "crash";
y = g.yland;
ys = (jump = (fall = (energy = 0)));
state = 2;
g.sfx.playSound("zcartcrash");
continue;
};
};
};
}
public function init(_arg1:Event):void{
act = "run";
pw = 50;
ph = 90;
nojump = 30;
udaland = 1;
jump = (fall = (ys = (shoot = 0)));
energy = 100;
xs = -(g.bgspeed);
axs = 1;
diedelay = 25;
state = 1;
minspeed = -5;
maxspeed = 20;
grav = 2;
jumppower = -25;
score = g.startscore;
nx = x;
ny = (y = g.yland);
fox.showact(this);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
EC.add(stage, MouseEvent.MOUSE_DOWN, doclick);
}
public function cekdie(){
if (energy <= 0){
diedelay--;
if ((diedelay <= 0)){
g.r.endgame(1);
//unresolved jump
};
};
}
public function flattened():void{
state = 3;
y = Math.max(g.yland, y);
xs = (ys = (flatten = 0));
act = "flat";
g.sfx.playSound("zcartcrash");
diedelay = 50;
energy = 0;
explode();
}
public function cekweapon(){
if (g.wtime){
g.wtime--;
if (fox.isMultipleOf(g.wtime, 16)){
shootbazooka();
//unresolved jump
};
if (!g.wtime){
g.weapon = 0;
//unresolved jump
};
};
}
public function cekland():Boolean{
var _local1:int;
_local1 = 0;
while (_local1 < g.allplat.length) {
it = g.allplat[_local1];
if ((((x2 > it.x1)) && ((x1 < it.x2)))){
return (true);
};
_local1++;
};
return (false);
}
public function doclick(_arg1:MouseEvent):void{
if (((((((((((udaland) && (!(fall)))) && (!(nojump)))) && ((state == 1)))) && (!(g.pause)))) && (!((((g.r.mouseX > 570)) && ((g.r.mouseY < 30))))))){
jump = 1;
udaland = 0;
nojump = 10;
act = "jump";
y = g.yland;
ys = jumppower;
};
}
}
}//package com.game2
Section 113
//rock (com.game2.rock)
package com.game2 {
import flash.display.*;
import com.fox.*;
public dynamic class rock extends MovieClip {
public var id:Number;
public var a:MovieClip;
public function rock():void{
id = fox.getrandom("rocktype");
a.gotoAndStop(id);
}
}
}//package com.game2
Section 114
//rocketpart (com.game2.rocketpart)
package com.game2 {
import flash.events.*;
import com.fox.*;
public dynamic class rocketpart extends cartpart {
public function rocketpart(_arg1:Number=1):void{
a.gotoAndStop(_arg1);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
}
}//package com.game2
Section 115
//rockpart (com.game2.rockpart)
package com.game2 {
import flash.events.*;
import com.fox.*;
public dynamic class rockpart extends cartpart {
public function rockpart(_arg1:Number=1):void{
a.gotoAndStop(_arg1);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
}
}//package com.game2
Section 116
//sodapart (com.game2.sodapart)
package com.game2 {
import flash.events.*;
import com.fox.*;
public dynamic class sodapart extends cartpart {
public function sodapart(_arg1:Number=1):void{
a.gotoAndStop(_arg1);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
}
}//package com.game2
Section 117
//statistics2 (com.game2.statistics2)
package com.game2 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
import com.game.*;
public class statistics2 extends MovieClip {
public var lives1;
public var quitbutton:MovieClip;
public var g;
public var pausebutton;
public var energy1;
public var disbar;
public var time;
public var score1;
public function statistics2():void{
g = fox.globalvar;
super();
g.stat = this;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
updatelives1();
pausebutton.addEventListener(MouseEvent.MOUSE_DOWN, pausing, false, 0, true);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function updatelives1():void{
lives1.a.b.text = g.lives;
}
private function pausing(_arg1:MouseEvent):void{
var _local2:*;
g.pause = true;
_local2 = new pausescreen();
g.all.addChild(_local2);
}
public function loop(_arg1:Event):void{
if (!g.pause){
updatestatscore1();
updatedistance();
};
}
public function updatestatscore1():void{
score1.a.b.text = g.p.score;
}
public function updatedistance():void{
disbar.tic.x = Math.max(0, Math.min(200, (((g.p.x - g.levelstartline) / g.tracklen) * 200)));
}
}
}//package com.game2
Section 118
//ufo (com.game2.ufo)
package com.game2 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
import com.game.*;
public class ufo extends MovieClip {
public var ys;
public var a:MovieClip;
public var g;
public var nobump;
public var fall;
public var xs;
public var point;
public var energy:Number;
public var grav;
public var uda;
public var bonusscore;
public function ufo():void{
g = fox.globalvar;
super();
point = 1000;
energy = 100;
nobump = (fall = (uda = 0));
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
a.stop();
if ((((g.level == 3)) && (!(g.ufohint)))){
fox.pophint(-120, -45, 13, 100, 0, this);
g.ufohint = 1;
//unresolved jump
};
a.jro = 0;
a.jdx = 0;
a.jdv = 0.9;
a.jdvstep = 0.9;
ys = 1;
grav = 1;
g.adaufo = 1;
fox.inityfloat(this, 7, 0.5);
xs = g.levelufospeed[g.level];
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (!g.pause){
a.jdx = ((a.jdx * a.jdvstep) + ((a.jro - a.rotation) * a.jdv));
a.rotation = (a.rotation + a.jdx);
if (!fall){
fox.yfloating(this);
} else {
if (!uda){
y = (y + ys);
ys = (ys + grav);
if ((y > g.screenhei)){
a.gotoAndStop("explode");
g.sfx.playSound("zexplode1");
fox.shakescreen();
uda = 1;
//unresolved jump
};
};
};
x = (x + xs);
if (!nobump){
if (g.p.jump){
if (g.p.ys < 0){
if (Math.abs((g.p.x - x)) < 180){
if ((g.p.y - y) < 128){
if ((g.p.x > x)){
a.rotation = -20;
} else {
a.rotation = 20;
};
energy = (energy - 35);
if ((energy > 0)){
nobump = 20;
} else {
nobump = 9999;
fall = 1;
};
g.sfx.playSound("zcrash");
g.adaufo = 0;
_local2 = fox.localpos(g.p, g.stat);
_local3 = new popscore(Math.max(_local2.x, 160), (_local2.y - 100), point);
g.p.score = (g.p.score + point);
point = (point + (2 * point));
_local3.xScale = (_local3.yScale = 2);
g.stat.addChild(_local3);
};
};
};
};
};
if (nobump){
nobump--;
//unresolved jump
};
if (g.adamonster){
xs--;
//unresolved jump
};
if ((x < (g.xmin - width))){
g.adaufo = 0;
die();
//unresolved jump
};
};
}
}
}//package com.game2
Section 119
//banana (com.game3.banana)
package com.game3 {
public dynamic class banana extends stone {
public function banana(_arg1:Number=-45, _arg2:Number=10, _arg3:Number=10, _arg4:Number=2, _arg5:Number=1000):void{
grav = _arg4;
point = _arg5;
speed = _arg2;
ang = _arg1;
radius = _arg3;
ro = 70;
shadow = bananash;
}
}
}//package com.game3
Section 120
//bonusfall (com.game3.bonusfall)
package com.game3 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class bonusfall extends MovieClip {
public var ys;
public var id;
public var ro:Number;
public var a;
public var g;
public var fall;
public var v:MovieClip;
public var grav;
public function bonusfall(_arg1:Number=1):void{
g = fox.globalvar;
super();
id = _arg1;
a.gotoAndStop(_arg1);
grav = 2;
fall = 1;
ys = -15;
if ((g.dir > 0)){
v = g.p1;
ro = 10;
} else {
v = g.p2;
ro = -10;
};
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
move();
cekgot();
};
}
public function cekgot(){
if ((((Math.abs((x - v.x)) < 40)) && (!(fall)))){
g.weapon = id;
g.ammo = g.weaponammo[g.weapon];
g.grenadecombo = 0;
g.sfx.playSound("zbonus");
die();
};
}
public function move(){
if (fall){
ys = (ys + grav);
y = (y + ys);
if ((y > 360)){
y = 360;
fall = 0;
fox.inityfloat(this, 3, 0.5);
//unresolved jump
};
} else {
fox.yfloating(this);
};
x = (x + ((v.x - x) / 8));
rotation = (rotation + ro);
}
}
}//package com.game3
Section 121
//cart3 (com.game3.cart3)
package com.game3 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class cart3 extends MovieClip {
public var a;
var g;
public var xs:Number;
public function cart3():void{
g = fox.globalvar;
a = MovieClip;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
xs = 10;
g.sfx.playSound("zgolfcart", 1, 0, 2);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
x = (x + xs);
if ((x > g.p2.x)){
a.gotoAndStop("p2");
if (g.p2.visible){
g.p2.visible = false;
//unresolved jump
};
} else {
if ((x > g.p1.x)){
a.gotoAndStop("p1");
if (g.p1.visible){
g.p1.visible = false;
//unresolved jump
};
//unresolved jump
};
};
if ((x > (g.screenwid + 120))){
g.r.endgame(2);
g.sfx.stopSound("zgolfcart");
die();
//unresolved jump
};
};
}
}
}//package com.game3
Section 122
//character (com.game3.character)
package com.game3 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public dynamic class character extends MovieClip {
public var arrow;
public var oldact:String;// = ""
public var pw;
public var id;
public var energymax;
public var ad;
public var it;
public var hitd;
public var energyadd;
public var energyless;
public var d;
public var a;
public var g;
public var xs;
public var energy;
public var ang2;
public var act;
public var hit;
public var endelay:Number;
public var xrange;
public var nx;
public var xmin;
public var ang;
public var ph;
public function character():void{
g = fox.globalvar;
it = MovieClip;
oldact = "";
super();
a.stop();
arrow.visible = false;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(stage, MouseEvent.MOUSE_DOWN, doclick);
EC.remove(this);
}
public function init(_arg1:Event):void{
energy = (energymax = 100);
energyadd = 0.1;
energyless = 23;
act = "run";
xs = (hit = (hitd = (endelay = (ad = 0))));
if ((id == 1)){
xmin = 30;
} else {
xmin = 490;
};
xrange = 80;
d = 1;
fox.showact(this);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
EC.add(stage, MouseEvent.MOUSE_DOWN, doclick);
}
public function attack(){
if ((((g.des.state == 1)) || ((g.des.state == 4)))){
g.shotno++;
it = new g.weaponclass[g.weapon](ang, 30, 12, 1.5, 1000);
it.x = ((x + arrow.x) + (Math.cos(ang) * 50));
it.y = ((y + arrow.y) + (Math.sin(ang) * 50));
g.m3.addChild(it);
if (g.weapon == 2){
it = new g.weaponclass[g.weapon]((ang + 0.2), 30, 16, 1.5, 1000);
it.x = ((x + arrow.x) + (Math.cos((ang + 0.15)) * 50));
it.y = ((y + arrow.y) + (Math.sin((ang + 0.15)) * 50));
g.m3.addChild(it);
it = new g.weaponclass[g.weapon]((ang - 0.2), 30, 16, 1.5, 1000);
it.x = ((x + arrow.x) + (Math.cos((ang - 0.15)) * 50));
it.y = ((y + arrow.y) + (Math.sin((ang - 0.15)) * 50));
g.m3.addChild(it);
};
if ((g.weapon > 0)){
g.ammo = Math.max(0, (g.ammo - 1));
if (!g.ammo){
g.weapon = 0;
//unresolved jump
};
//unresolved jump
};
g.sfx.playSound("zthrow2");
g.noattack = 15;
act = "attack";
ad = 3;
};
}
public function cekaim(){
if (!g.finish){
if (arrow.visible){
ang = Math.atan2((this.mouseY - arrow.y), this.mouseX);
ang2 = fox.deg(ang);
if ((ang2 < 0)){
ang2 = (ang2 + 360);
//unresolved jump
};
if (id == 1){
if ((((ang2 > 0)) && ((ang2 < 180)))){
ang2 = 0;
//unresolved jump
};
if ((((ang2 >= 180)) && ((ang2 < 270)))){
ang2 = 270;
//unresolved jump
};
} else {
ang2 = Math.min(270, Math.max(180, ang2));
};
arrow.rotation = ang2;
energy = Math.min(energymax, (energy + energyadd));
};
} else {
arrow.visible = false;
};
}
public function getrandompos(){
nx = (xmin + fox.random(xrange));
d = (20 + fox.random(20));
if ((nx < x)){
d = (d * 2);
//unresolved jump
};
xs = ((nx - x) / d);
}
public function die():void{
this.parent.removeChild(this);
}
public function cekhit(){
if (hit == 1){
fox.tintflash(this, 30, 0xFF0000, 6, 2);
act = "burned";
hitd = 30;
hit = 2;
energy = Math.max(0, (energy - energyless));
if (!energy){
endelay = 30;
energyadd = 0;
//unresolved jump
};
g.sfx.playSound("zhit2");
} else {
if (hit == 2){
hitd--;
if (!hitd){
hit = 0;
act = "run";
//unresolved jump
};
};
};
}
public function loop(_arg1:Event):void{
if (!g.pause){
move();
cekaim();
cekhit();
if ((endelay > 0)){
endelay--;
if (!endelay){
g.r.endgame(1);
//unresolved jump
};
//unresolved jump
};
fox.showact(this);
};
}
public function move(){
x = (x + xs);
if (g.des.state > 1){
if ((g.des.state == 2)){
if ((a.scaleX > 0)){
xs = 2.2;
} else {
xs = -1.5;
};
} else {
if ((a.scaleX > 0)){
xs = 3;
} else {
xs = -2;
};
};
d = 1;
} else {
d--;
if ((d <= 0)){
getrandompos();
//unresolved jump
};
};
ad--;
if (!ad){
if (act != "burned"){
act = "run";
//unresolved jump
};
//unresolved jump
};
}
public function doclick(_arg1:MouseEvent){
if (((((((!(g.noattack)) && (arrow.visible))) && (!(g.pause)))) && (!((((g.r.mouseX > 570)) && ((g.r.mouseY < 30))))))){
attack();
};
}
}
}//package com.game3
Section 123
//destroyer (com.game3.destroyer)
package com.game3 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public dynamic class destroyer extends MovieClip {
public var space;
public var hitneedmax;
public var ad;
public var it;
public var pd;
public var hitgot;
public var attackdelay;
public var ax;
public var a;
public var g;
public var xs;
public var state;
public var ang2;
public var hitneed;
public var ang;
public var randomtargetdelay:Number;
public var patience;
public function destroyer():void{
g = fox.globalvar;
it = MovieClip;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function makecart(){
var _local1:*;
_local1 = new cart3();
_local1.x = -150;
_local1.y = g.yland;
g.m0.addChild(_local1);
}
public function init(_arg1:Event):void{
ad = (attackdelay = 30);
pd = (patience = 3);
space = 60;
hitgot = (xs = 0);
hitneed = 1;
hitneedmax = 10;
randomtargetdelay = -1;
state = 1;
randomtarget();
fox.inityfloat(this, 4, 0.2);
fox.initjiggle(a.c, 1, 1);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function cekfinish(){
if (!g.finish){
if ((g.totalwaktu - g.waktu) == 0){
ad = (attackdelay = (hitneed = 99999));
g.noattack = 9999;
a.c.visible = false;
a.c.y = 9999;
hitgot = 0;
g.finish = 1;
};
};
}
public function randomtarget(){
var _local1:*;
_local1 = fox.getrandom("targetpos");
a.c.x = _local1.x;
a.c.y = _local1.y;
a.c.scaleX = (a.c.scaleY = 2);
}
public function gothit(){
var _local1:*;
var _local2:*;
_local1 = (x + a.c.x);
_local2 = (y + a.c.y);
a.c.y = 9999;
hitgot++;
if ((hitgot >= Math.floor(hitneed))){
hitgot = 0;
hitneed = Math.min(hitneedmax, (hitneed + 0.5));
randomtargetdelay = 20;
state = 2;
} else {
randomtargetdelay = 5;
};
g.bonusd = Math.max(0, (g.bonusd - 1));
if (((!(g.bonusd)) && ((hitgot == 1)))){
g.bonusd = (g.bonusdelay + fox.random(3));
dropbonus(_local1, _local2);
//unresolved jump
};
ad = Math.max(35, ad);
}
public function dropbonus(_arg1:Number, _arg2:Number){
var _local3:*;
var _local4:*;
_local3 = fox.getrandom("bonustype");
_local4 = new bonusfall(_local3);
_local4.x = _arg1;
_local4.y = _arg2;
g.m1.addChild(_local4);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
if (state == 1){
move();
cekattack();
fox.showact(this);
} else {
if (state == 2){
g.bgspeed = (g.bgspeed * 0.85);
if ((Math.abs(g.bgspeed) < 5)){
g.des.a.scaleX = (-(g.dir) * Math.abs(g.des.a.scaleX));
state = 3;
//unresolved jump
};
} else {
if (state == 3){
g.bgspeed = (g.bgspeed * 0.9);
if ((Math.abs(g.bgspeed) < 1)){
g.r.changerundir();
state = 4;
//unresolved jump
};
} else {
if (state == 4){
g.bgspeed = (g.bgspeed * 1.2);
if ((Math.abs(g.bgspeed) > g.normalbgspeed)){
ad = attackdelay;
state = 1;
//unresolved jump
};
};
};
};
};
if ((randomtargetdelay > 0)){
randomtargetdelay--;
if (!randomtargetdelay){
randomtarget();
//unresolved jump
};
//unresolved jump
};
fox.jiggle(a.c);
cekfinish();
};
}
public function move():void{
fox.yfloating(this);
if (g.finish){
if ((((state == 1)) && ((g.des.a.scaleX < 0)))){
state = 2;
//unresolved jump
};
if ((state == 1)){
x = (x + xs);
xs = (xs + 1);
if ((x > (g.screenwid + 200))){
makecart();
die();
//unresolved jump
};
//unresolved jump
};
};
}
public function cekattack(){
var _local1:*;
var _local2:*;
ad--;
if (!ad){
if ((g.totalwaktu - g.waktu) > 60){
ad = (attackdelay + fox.random(20));
_local1 = (120 + fox.random(7));
_local2 = (60 - fox.random(7));
pd--;
if (!pd){
pd = (patience + fox.random(3));
_local1 = 130;
_local2 = 50;
//unresolved jump
};
it = new fireball();
if ((a.scaleX < 0)){
ang2 = _local1;
ax = -45;
} else {
ang2 = _local2;
ax = 45;
};
it.rotation = ang2;
ang = fox.rad(ang2);
it.x = ((x + ax) + (Math.cos(ang) * space));
it.y = ((y + 22) + (Math.sin(ang) * space));
g.m3.addChild(it);
it = new fireball();
if ((a.scaleX < 0)){
ang2 = _local1;
ax = 1;
} else {
ang2 = _local2;
ax = -1;
};
it.rotation = ang2;
ang = fox.rad(ang2);
it.x = ((x + ax) + (Math.cos(ang) * space));
it.y = ((y + 8) + (Math.sin(ang) * space));
g.m3.addChild(it);
g.sfx.playSound("zfireball");
g.destroyerattack = 1;
};
};
}
}
}//package com.game3
Section 124
//destroyereyes (com.game3.destroyereyes)
package com.game3 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class destroyereyes extends MovieClip {
public var d;
public var a:MovieClip;
var g;
public var delay:Number;
public function destroyereyes():void{
g = fox.globalvar;
super();
a.stop();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
d = 0;
if ((g.gameid == 3)){
delay = 12;
} else {
delay = 3;
};
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
if (g.destroyerattack){
g.destroyerattack = 0;
d = delay;
a.gotoAndStop("fire");
//unresolved jump
};
if (d){
d--;
if (!d){
a.gotoAndStop("idle");
//unresolved jump
};
//unresolved jump
};
};
}
}
}//package com.game3
Section 125
//finishani3 (com.game3.finishani3)
package com.game3 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class finishani3 extends MovieClip {
public var d;
var g;
public var fr:Number;
public function finishani3():void{
g = fox.globalvar;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
d = 128;
fr = 1;
g.sfx.playSound("zfire");
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
fr++;
if ((fr == 40)){
g.sfx.playSound("zray", 1, 0, 2);
//unresolved jump
};
if ((fr == 110)){
g.sfx.stopSound("zray");
//unresolved jump
};
d--;
if (!d){
g.r.init4();
//unresolved jump
};
};
}
}
}//package com.game3
Section 126
//fireball (com.game3.fireball)
package com.game3 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class fireball extends MovieClip {
public var ys;
public var it:MovieClip;
public var speed;
public var g;
public var xs;
public var ang:Number;
public function fireball():void{
g = fox.globalvar;
super();
speed = 20;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function cekhitp(){
if ((xs < 0)){
it = g.p1;
} else {
it = g.p2;
};
if (!it.hit){
if ((((x > (it.x - it.pw))) && ((x < (it.x + it.pw))))){
if ((((y > (it.y - it.ph))) && ((y < it.y)))){
it.hit = 1;
};
};
};
}
public function init(_arg1:Event){
ang = fox.rad(rotation);
xs = (Math.cos(ang) * speed);
ys = (Math.sin(ang) * speed);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function cekout(){
if (y > g.screenhei){
if (!g.adaburn){
it = new fireburn();
it.x = x;
it.y = g.yland;
g.m3.addChild(it);
g.adaburn = 5;
};
die();
};
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
move();
cekhitp();
cekout();
};
}
public function move(){
x = (x + xs);
y = (y + ys);
}
}
}//package com.game3
Section 127
//fireburn (com.game3.fireburn)
package com.game3 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class fireburn extends MovieClip {
public var d:Number;
var g;
public function fireburn():void{
g = fox.globalvar;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
d = 40;
g.sfx.playSound("zfire");
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
x = (x - (g.dir * g.bgspeed));
d--;
if (d < 0){
alpha = (alpha - 0.1);
if ((alpha <= 0)){
die();
//unresolved jump
};
} else {
if ((((x < -200)) || ((x > (g.screenwid + 200))))){
die();
//unresolved jump
};
};
};
}
}
}//package com.game3
Section 128
//grenade (com.game3.grenade)
package com.game3 {
import com.fox.*;
public dynamic class grenade extends stone {
public function grenade(_arg1:Number=-45, _arg2:Number=10, _arg3:Number=10, _arg4:Number=2, _arg5:Number=1000):void{
grav = _arg4;
point = _arg5;
speed = _arg2;
ang = _arg1;
radius = _arg3;
shadow = grenadesh;
}
override public function targethit(){
x = pos.x;
y = pos.y;
rotation = 0;
if (((id - g.lasthit) == 1)){
g.pointnow = (g.pointnow + (5 * g.point));
} else {
g.pointnow = g.point;
g.grenadecombo = 0;
};
g.lasthit = id;
fox.popskor(x, (y - 30), g.pointnow, g.stat);
g.score = (g.score + g.pointnow);
g.des.gothit();
g.sfx.playSound("zexplode1");
fox.tintflash(g.des, 16, 0xFFCC00, 1);
fox.shakescreen();
a.gotoAndStop("hit");
hit = 1;
fly = 0;
d = 15;
g.grenadecombo++;
g.r.sendstat(203, g.grenadecombo);
}
}
}//package com.game3
Section 129
//hitslice (com.game3.hitslice)
package com.game3 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class hitslice extends MovieClip {
public var d:Number;
public var a:MovieClip;
var g;
public var xs;
public function hitslice():void{
g = fox.globalvar;
super();
xs = (5 + fox.random(10));
a.gotoAndStop((1 + fox.random(2)));
a.scaleX = (0.5 + (0.01 * fox.random(120)));
a.scaleY = (0.5 + (0.01 * fox.random(50)));
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
d = 10;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
a.x = (a.x + xs);
xs = (xs * 0.85);
d--;
if (!d){
die();
//unresolved jump
};
};
}
}
}//package com.game3
Section 130
//mordecai3 (com.game3.mordecai3)
package com.game3 {
public dynamic class mordecai3 extends character {
public function mordecai3():void{
id = 1;
pw = 22;
ph = 70;
}
}
}//package com.game3
Section 131
//popbananasplit (com.game3.popbananasplit)
package com.game3 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class popbananasplit extends MovieClip {
public var d:Number;
var g;
public function popbananasplit(_arg1:Number=100, _arg2:Number=100, _arg3:Number=0):void{
g = fox.globalvar;
super();
x = _arg1;
y = _arg2;
this.a.c.text = _arg3;
d = 70;
fox.initjiggle(this.a, 2.2, 1);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
fox.jiggle(this.a);
d--;
if (!d){
die();
//unresolved jump
};
};
}
}
}//package com.game3
Section 132
//rigby3 (com.game3.rigby3)
package com.game3 {
public dynamic class rigby3 extends character {
public function rigby3():void{
id = 2;
pw = 22;
ph = 40;
}
}
}//package com.game3
Section 133
//shadow (com.game3.shadow)
package com.game3 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class shadow extends MovieClip {
public var d:Number;
var g;
public function shadow():void{
g = fox.globalvar;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
d = 4;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
alpha = Math.max(0, (alpha - 0.2));
d--;
if (!d){
die();
//unresolved jump
};
};
}
}
}//package com.game3
Section 134
//statistics3 (com.game3.statistics3)
package com.game3 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
import com.game.*;
public class statistics3 extends MovieClip {
public var icon1;
public var weapon:MovieClip;
public var accel1;
public var g;
public var accel2;
public var energy;
public var score;
public var xs1;
public var xs2;
public var pausebutton;
public var adaweapon:Number;// = 0
public var dtic;
public var energynow2;
public var ticdelay;
public var energynow1;
public var disbar;
public var icon2;
public var convert1;
public var convert2;
public function statistics3():void{
g = fox.globalvar;
adaweapon = 0;
super();
g.stat = this;
weapon.visible = false;
disbar.tic.x = 0;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
dtic = (ticdelay = 15);
energy.b1.scaleX = 1;
energy.b2.scaleX = 1;
energynow1 = (energynow2 = 100);
accel1 = (accel2 = 0.8);
convert1 = (convert2 = 0.5);
xs1 = (xs2 = (adaweapon = 0));
pausebutton.addEventListener(MouseEvent.MOUSE_DOWN, pausing, false, 0, true);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function updateweapon():void{
if (g.weapon){
if (!adaweapon){
adaweapon = g.weapon;
weapon.icon.gotoAndStop(g.weapon);
fox.initjiggle(weapon, 3, 1);
//unresolved jump
};
weapon.a.b.text = g.ammo;
weapon.visible = true;
fox.jiggle(weapon);
} else {
adaweapon = 0;
weapon.visible = false;
};
}
public function updatestatscore():void{
score.a.b.text = g.score;
}
private function pausing(_arg1:MouseEvent):void{
var _local2:*;
g.pause = true;
_local2 = new pausescreen();
g.all.addChild(_local2);
}
public function updatedistance():void{
g.waktu = Math.min(g.totalwaktu, (g.waktu + 1));
disbar.tic.x = Math.max(0, Math.min(120, ((g.waktu / g.totalwaktu) * 120)));
}
public function loop(_arg1:Event):void{
if (!g.pause){
updatestatenergy();
updatestatscore();
updatedistance();
updateweapon();
};
}
public function updatestatenergy():void{
if (energynow1 != g.p1.energy){
if ((g.p1.energy < energynow1)){
energynow1 = g.p1.energy;
fox.tintflash(energy, 15, 0xFF6600, 1);
fox.tintflash(icon1, 15, 0xFF6600, 1);
//unresolved jump
};
//unresolved jump
};
if (energynow2 != g.p2.energy){
if ((g.p2.energy < energynow2)){
energynow2 = g.p2.energy;
fox.tintflash(energy, 15, 0xFF6600, 1);
fox.tintflash(icon2, 15, 0xFF6600, 1);
//unresolved jump
};
//unresolved jump
};
xs1 = ((xs1 * accel1) + (((g.p1.energy / 100) - energy.b1.scaleX) * convert1));
xs2 = ((xs2 * accel2) + (((g.p2.energy / 100) - energy.b2.scaleX) * convert2));
energy.b1.scaleX = Math.min(1, Math.max(0.001, (energy.b1.scaleX + xs1)));
energy.b2.scaleX = Math.min(1, Math.max(0.001, (energy.b2.scaleX + xs2)));
}
}
}//package com.game3
Section 135
//stone (com.game3.stone)
package com.game3 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
public dynamic class stone extends MovieClip {
public var yland;
public var ys;
public var id;
public var it:MovieClip;
public var oldy;
public var oldx;
public var ro;
public var pos:Point;
public var speed;
public var b;
public var d;
public var a;
public var g;
public var xs;
public var shadow:Class;
public var point;
public var dy;
public var grav;
public var hit;
public var radius;
public var dx;
public var fly:Number;
public var landed;
public var ang;
public function stone(_arg1:Number=-45, _arg2:Number=10, _arg3:Number=10, _arg4:Number=2, _arg5:Number=1000):void{
g = fox.globalvar;
super();
grav = _arg4;
point = _arg5;
speed = _arg2;
ang = _arg1;
radius = _arg3;
yland = (g.yland - 5);
landed = (hit = 0);
shadow = stonesh;
ro = (40 + fox.random(20));
fly = 1;
d = 10;
a.stop();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
id = g.shotno;
xs = (Math.cos(ang) * speed);
ys = (Math.sin(ang) * speed);
if ((xs < 0)){
ro = -(ro);
//unresolved jump
};
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function targethit(){
var _local1:int;
x = pos.x;
y = pos.y;
if ((id - g.lasthit) == 1){
g.pointnow = (g.pointnow + g.point);
} else {
if ((id - g.lasthit) < 1){
g.pointnow = (g.pointnow + g.point);
g.bananabonus = (10 * g.pointnow);
it = new popbananasplit((g.hscreenwid + (g.dir * 150)), 110, g.bananabonus);
g.stat.addChild(it);
g.sfx.playSound("zbonus2");
} else {
g.pointnow = g.point;
};
};
g.lasthit = id;
fox.popskor(x, Math.max(60, (y - 30)), g.pointnow, g.stat);
g.score = (g.score + g.pointnow);
_local1 = 0;
while (_local1 < 12) {
it = new hitslice();
it.rotation = ((_local1 * 30) + fox.random(60));
b.addChild(it);
_local1++;
};
g.des.gothit();
fox.tintflash(g.des, 7, 0xFFCC00, 1);
g.sfx.playSound("zhit");
a.gotoAndStop("hit");
hit = 1;
fly = 0;
}
public function die():void{
this.parent.removeChild(this);
}
public function makeshadow(){
if (!landed){
it = new shadow();
it.x = x;
it.y = y;
dx = (x - oldx);
dy = (y - oldy);
it.rotation = fox.deg(Math.atan2(dy, dx));
if ((((dx * dx) + (dy * dy)) < 150)){
it.a.scaleX = 0.3;
//unresolved jump
};
g.m2.addChild(it);
};
}
public function cekhit(){
if (!hit){
pos = fox.localpos(g.des.a.c, g.m2);
dx = (pos.x - x);
if (Math.abs(dx) < 35){
dy = (pos.y - y);
if (Math.abs(dy) < 40){
if (((dx * dx) + (dy * dy)) < 1225){
targethit();
};
};
};
};
}
public function loop(_arg1:Event):void{
if (!g.pause){
move();
cekhit();
};
}
public function move(){
if (fly){
oldx = x;
oldy = y;
x = (x + xs);
rotation = (rotation + ro);
ys = (ys + grav);
y = (y + ys);
if ((y > yland)){
landed = 1;
y = yland;
rotation = 0;
x = (x + g.bgspeed);
xs = (xs * 0.7);
ys = (ys * -0.4);
if ((ys > -1)){
fly = (rotation = 0);
//unresolved jump
};
//unresolved jump
};
makeshadow();
} else {
if (landed){
x = (x - (g.dir * g.bgspeed));
};
d--;
if ((d < 10)){
alpha = Math.max(0, (alpha - 0.1));
//unresolved jump
};
if (!d){
die();
//unresolved jump
};
};
}
}
}//package com.game3
Section 136
//burger (com.game4.burger)
package com.game4 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
import flash.utils.*;
public dynamic class burger extends MovieClip {
public var ys;
public var it:MovieClip;
public var udacek:Number;
public var a;
public var g;
public var xs;
public function burger():void{
g = fox.globalvar;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
udacek = 0;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function makestar(_arg1:Number, _arg2:Number){
it = new star();
it.x = _arg1;
it.y = _arg2;
g.m3.addChild(it);
g.sfx.playSound("zbuzz");
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
x = (x + xs);
y = (y + ys);
if (x > 480){
if (!udacek){
if (Math.abs((y - g.p2.y)) < 80){
g.p2.hit = 1;
makestar(510, y);
die();
};
udacek = 1;
} else {
if ((x > (g.screenwid + 40))){
die();
//unresolved jump
};
};
} else {
cekfire();
};
};
}
public function cekfire():void{
if (g.allfire.length > 0){
it = g.allfire[0];
if (Math.abs((x - it.x)) < 55){
if (Math.abs((y - it.y)) < 38){
it.energy = 0;
makestar(((x + it.x) / 2), ((y + it.y) / 2));
die();
};
};
};
}
}
}//package com.game4
Section 137
//destroyer2 (com.game4.destroyer2)
package com.game4 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class destroyer2 extends MovieClip {
public var energymax;
public var relaxdelay;
public var it;
public var energyless;
public var rd;
public var fireballspeed;
public var fast;
public var sd;
public var relaxing;
public var a;
public var g;
public var cherrydelay;
public var ang2:Number;
public var hit;
public var fastdelay;
public var energy;
public var fd;
public var shootdelay;
public var ang;
public function destroyer2():void{
g = fox.globalvar;
it = MovieClip;
super();
a.stop();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event):void{
fireballspeed = 20;
energy = (energymax = 100);
energyless = 2;
shootdelay = 5;
sd = 8;
cherrydelay = 28;
hit = (relaxing = (fast = 0));
rd = (relaxdelay = 20);
fd = (fastdelay = 60);
fox.inityfloat(this, 4.3, 0.1);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function cekfinish(){
if (energy <= 0){
cherrydelay--;
if (!cherrydelay){
g.sfx.playSound("zcherry");
//unresolved jump
};
if ((cherrydelay < -40)){
g.r.endgame(2);
//unresolved jump
};
};
}
public function die():void{
this.parent.removeChild(this);
}
public function cekshoot(){
if (!relaxing){
sd--;
if (!sd){
if (!g.finish){
it = new fireball3();
ang = Math.atan2((((g.p1.y - 50) + fox.random(100)) - y), (g.p1.x - x));
ang2 = fox.deg(ang);
it.xs = (Math.cos(ang) * fireballspeed);
it.ys = (Math.sin(ang) * fireballspeed);
it.x = (x + (2 * it.xs));
it.y = ((y - 12) + (2 * it.ys));
it.rotation = ang2;
g.m1.addChild(it);
g.sfx.playSound("zfireball");
sd = shootdelay;
g.destroyerattack = 1;
};
};
};
}
public function cekhit(){
if (hit){
if (energy > 0){
fox.tintflash(this, 30, 0xFF0000, 6, 2);
energy = Math.max(0, (energy - energyless));
if (!energy){
g.finish = 2;
a.gotoAndStop("explode");
g.sfx.playSound("zexplode1");
g.r.sendstat(402, 1);
};
g.sfx.playSound("zexplode3");
fox.shake(a);
hit = 0;
};
};
}
public function loop(_arg1:Event):void{
if (!g.pause){
cekhit();
cekshoot();
cekrelax();
cekfinish();
fox.yfloating(this);
if (g.finish != 2){
if (fast){
fast--;
fox.yfloating(this);
} else {
fd--;
if (!fd){
fast = (20 + fox.random(100));
fd = (fastdelay + fox.random(50));
//unresolved jump
};
};
};
};
}
public function cekrelax(){
if (relaxing){
relaxing--;
} else {
rd--;
if (!rd){
rd = (relaxdelay + fox.random(30));
relaxing = (5 + fox.random(5));
//unresolved jump
};
};
}
}
}//package com.game4
Section 138
//destroyerwininfo (com.game4.destroyerwininfo)
package com.game4 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
import flash.text.*;
public class destroyerwininfo extends MovieClip {
public var finalscore:Number;// = 0
public var b:MovieClip;
public var d;
public var a;
public var g;
public var timebonus;
public var score;
public function destroyerwininfo(){
g = fox.globalvar;
finalscore = 0;
super();
score = g.score;
fox.initjiggle(b, 1.6, 1);
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
if (a.button1){
EC.remove(a.button1);
//unresolved jump
};
if (a.button2){
EC.remove(a.button2);
//unresolved jump
};
EC.remove(this);
}
public function init(_arg1:Event){
x = (y = 0);
timebonus = Math.max(25000, (Math.max(0, (2000 - g.waktu)) * 1000));
finalscore = (score + timebonus);
a.a.b.text = score;
a.a.c.text = timebonus;
a.a.d.text = finalscore;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
if (a.button1){
EC.add(a.button1, MouseEvent.MOUSE_DOWN, klik1);
a.button1txt.mouseEnabled = false;
//unresolved jump
};
if (a.button2){
EC.add(a.button2, MouseEvent.MOUSE_DOWN, klik2);
a.button2txt.mouseEnabled = false;
//unresolved jump
};
}
private function klik1(_arg1:MouseEvent):void{
g.level = 0;
g.r.init3();
}
private function klik2(_arg1:MouseEvent):void{
g.r.quitgame();
}
public function loop(_arg1:Event):void{
if (!g.pause){
fox.jiggle(b);
};
}
}
}//package com.game4
Section 139
//fireball3 (com.game4.fireball3)
package com.game4 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
import flash.utils.*;
public dynamic class fireball3 extends MovieClip {
public var ys;
public var it:MovieClip;
public var udacek;
public var a;
public var g;
public var xs;
public var energy:Number;
public function fireball3():void{
g = fox.globalvar;
super();
g.allfire.push(this);
energy = 100;
udacek = 0;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function cekhitgiant():void{
if (!udacek){
if (x < (g.p1.x + 40)){
udacek = 1;
if ((((y > (g.p1.y - 50))) && ((y < (g.p1.y + 70))))){
g.p1.hit = 1;
energy = 0;
};
};
};
}
public function die():void{
fox.removevalue(this, g.allfire);
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
x = (x + xs);
y = (y + ys);
cekhitgiant();
if ((x < -30)){
energy = 0;
//unresolved jump
};
if (!energy){
die();
//unresolved jump
};
};
}
}
}//package com.game4
Section 140
//giant (com.game4.giant)
package com.game4 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class giant extends MovieClip {
public var noshoot:Number;
public var energymax;
public var it;
public var energyless;
public var sd;
public var a;
public var g;
public var energy;
public var hit;
public var endelay;
public var shootdelay;
public var ang;
public var burgerspeed;
public function giant():void{
g = fox.globalvar;
it = MovieClip;
super();
a.stop();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event):void{
energy = (energymax = 100);
energyless = 5;
endelay = 40;
burgerspeed = 20;
shootdelay = 5;
sd = 7;
hit = (noshoot = 0);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function cekfinish(){
if (g.finish == 1){
endelay--;
if (!endelay){
g.r.endgame(1);
//unresolved jump
};
};
}
public function shoot(){
it = new burger();
ang = Math.max(-0.8, Math.min(0.2, Math.atan2(mouseY, mouseX)));
it.xs = (Math.cos(ang) * burgerspeed);
it.ys = (Math.sin(ang) * burgerspeed);
it.x = (g.p1.x + (4 * it.xs));
it.y = (g.p1.y + (4 * it.ys));
g.handro = fox.deg(ang);
it.rotation = g.handro;
g.m1.addChild(it);
g.sfx.playSound("zburger");
noshoot = 4;
}
public function die():void{
this.parent.removeChild(this);
}
public function cekhit(){
if (hit){
if (energy > 0){
fox.tintflash(this, 30, 0xFF0000, 6, 2);
energy = Math.max(0, (energy - energyless));
if (!energy){
g.finish = 1;
a.gotoAndStop("explode");
g.sfx.playSound("zexplode1");
//unresolved jump
};
g.sfx.playSound("zhit2");
hit = 0;
};
};
}
public function loop(_arg1:Event):void{
if (!g.pause){
if (!g.finish){
sd--;
if (!sd){
sd = shootdelay;
shoot();
//unresolved jump
};
//unresolved jump
};
cekfinish();
cekhit();
};
}
}
}//package com.game4
Section 141
//gianthand (com.game4.gianthand)
package com.game4 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class gianthand extends MovieClip {
public var g;
public var ang2:Number;
public var ang;
public function gianthand():void{
g = fox.globalvar;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event):void{
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
if (!g.finish){
rotation = ((g.handro - 3) + fox.random(6));
} else {
g.handro;
};
};
}
}
}//package com.game4
Section 142
//star (com.game4.star)
package com.game4 {
import flash.display.*;
import flash.events.*;
import com.fox.*;
public dynamic class star extends MovieClip {
public var d:Number;
public var g;
public function star():void{
g = fox.globalvar;
super();
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
d = 3;
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function die():void{
this.parent.removeChild(this);
}
public function loop(_arg1:Event):void{
if (!g.pause){
d--;
if (!d){
die();
//unresolved jump
};
};
}
}
}//package com.game4
Section 143
//statistics4 (com.game4.statistics4)
package com.game4 {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.fox.*;
import com.game.*;
public class statistics4 extends MovieClip {
public var accel1;
public var g;
public var accel2;
public var xs2;
public var score;
public var xs1;
public var pausebutton:MovieClip;
public var energy1;
public var energy2;
public var energynow2:Number;// = 0
public var energynow1;
public var time;
public var convert1;
public var convert2;
public function statistics4():void{
g = fox.globalvar;
energynow2 = 0;
super();
g.stat = this;
EC.add(this, Event.ADDED_TO_STAGE, init);
}
public function clearlistener(_arg1:Event):void{
EC.remove(this);
}
public function init(_arg1:Event){
energy1.b.scaleX = 1;
energy2.b.scaleX = 1;
energynow1 = (energynow2 = 100);
accel1 = (accel2 = 0.8);
convert1 = (convert2 = 0.5);
xs1 = (xs2 = 0);
pausebutton.addEventListener(MouseEvent.MOUSE_DOWN, pausing, false, 0, true);
EC.remove(this);
EC.add(this, Event.ENTER_FRAME, loop);
EC.add(this, Event.REMOVED_FROM_STAGE, clearlistener);
}
public function updatestatscore():void{
score.a.b.text = g.score;
}
private function pausing(_arg1:MouseEvent):void{
var _local2:*;
g.pause = true;
_local2 = new pausescreen();
g.all.addChild(_local2);
}
public function updatestatenergy():void{
if (energynow1 != g.p1.energy){
if ((g.p1.energy < energynow1)){
energynow1 = g.p1.energy;
fox.tintflash(energy1, 4, 0xFF6600, 1);
} else {
energynow1 = g.p1.energy;
fox.tintflash(energy1, 20, 0xFFFF00, 1);
};
//unresolved jump
};
if (energynow2 != g.p2.energy){
if ((g.p2.energy < energynow2)){
energynow2 = g.p2.energy;
fox.tintflash(energy2, 4, 0xFF6600, 1);
} else {
energynow2 = g.p2.energy;
fox.tintflash(energy2, 20, 0xFFFF00, 1);
};
//unresolved jump
};
xs1 = ((xs1 * accel1) + (((g.p1.energy / 100) - energy1.b.scaleX) * convert1));
xs2 = ((xs2 * accel2) + (((g.p2.energy / 100) - energy2.b.scaleX) * convert2));
energy1.b.scaleX = Math.min(1, Math.max(0.001, (energy1.b.scaleX + xs1)));
energy2.b.scaleX = Math.min(1, Math.max(0.001, (energy2.b.scaleX + xs2)));
}
public function loop(_arg1:Event):void{
if (!g.pause){
updatestatenergy();
updatestatscore();
};
}
}
}//package com.game4
Section 144
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var start:Number;
public var name:String;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var priority:int;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 145
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:TweenCore;
var _local5:Number;
var _local6:TweenCore;
_local4 = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.gc)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.gc){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
}
}
}//package com.greensock.core
Section 146
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var cachedTime:Number;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var data;
public var timeline:SimpleTimeline;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.13;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
var _local3:SimpleTimeline;
_rawPrevTime = -1;
super();
this.vars = ((_arg2) || ({}));
this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0)));
_delay = ((this.vars.delay) || (0));
this.cachedTimeScale = ((this.vars.timeScale) || (1));
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
_local3 = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean;
_local2 = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function invalidate():void{
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.cachedTotalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime == this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore;
_local2 = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
_pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime));
_pauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.gc))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (!_arg2){
this.timeline.remove(this, true);
};
};
this.gc = !(_arg1);
return (false);
}
}
}//package com.greensock.core
Section 147
//TweenPlugin (com.greensock.plugins.TweenPlugin)
package com.greensock.plugins {
import com.greensock.*;
import com.greensock.core.*;
public class TweenPlugin {
public var activeDisable:Boolean;
public var onEnable:Function;
public var round:Boolean;
public var onDisable:Function;
public var propName:String;
protected var _tweens:Array;
public var priority:int;// = 0
public var overwriteProps:Array;
public var onComplete:Function;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.31;
public static const API:Number = 1;
public function TweenPlugin(){
priority = 0;
_tweens = [];
_changeFactor = 0;
super();
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (Number(_arg4) - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new PropTween(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:PropTween;
var _local4:Number;
_local2 = _tweens.length;
if (this.round){
while (_local2--) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local3.target[_local3.property] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5));
};
} else {
while (_local2--) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
};
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = this.overwriteProps.length;
while (_local2--) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
};
_local2 = _tweens.length;
while (_local2--) {
if ((PropTween(_tweens[_local2]).name in _arg1)){
_tweens.splice(_local2, 1);
};
};
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
TweenLite.onPluginEvent = TweenPlugin.onTweenEvent;
_local2 = _arg1.length;
while (_local2--) {
if (_arg1[_local2].hasOwnProperty("API")){
_local3 = new ((_arg1[_local2] as Class));
TweenLite.plugins[_local3.propName] = _arg1[_local2];
};
};
return (true);
}
private static function onTweenEvent(_arg1:String, _arg2:TweenLite):Boolean{
var _local3:PropTween;
var _local4:Boolean;
var _local5:Array;
var _local6:int;
_local3 = _arg2.cachedPT1;
if (_arg1 == "onInit"){
_local5 = [];
while (_local3) {
_local5[_local5.length] = _local3;
_local3 = _local3.nextNode;
};
_local5.sortOn("priority", (Array.NUMERIC | Array.DESCENDING));
_local6 = _local5.length;
while (_local6--) {
PropTween(_local5[_local6]).nextNode = _local5[(_local6 + 1)];
PropTween(_local5[_local6]).prevNode = _local5[(_local6 - 1)];
};
_arg2.cachedPT1 = _local5[0];
} else {
while (_local3) {
if (((_local3.isPlugin) && (_local3.target[_arg1]))){
if (_local3.target.activeDisable){
_local4 = true;
};
var _local7 = _local3.target;
_local7[_arg1]();
};
_local3 = _local3.nextNode;
};
};
return (_local4);
}
}
}//package com.greensock.plugins
Section 148
//VolumePlugin (com.greensock.plugins.VolumePlugin)
package com.greensock.plugins {
import flash.display.*;
import flash.media.*;
import com.greensock.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
}
}//package com.greensock.plugins
Section 149
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import com.greensock.core.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
public var target:Object;
protected var _overwrite:uint;
public var ratio:Number;// = 0
protected var _notifyPluginsOfEnabled:Boolean;
protected var _hasPlugins:Boolean;
public var cachedPT1:PropTween;
protected var _overwrittenProps:Object;
public var propTweenLookup:Object;
protected var _ease:Function;
public static const version:Number = 11.3;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onInit:1, onInitParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:Array;
var _local5:TweenLite;
ratio = 0;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
_local4 = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number;
var _local6:PropTween;
_local5 = this.cachedTime;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
_local6 = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (this.vars.onInit){
this.vars.onInit.apply(null, this.vars.onInitParams);
};
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (_local2--) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (_arg2){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false, _arg3:Object=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
if ((_arg1 in masterList)){
_local4 = masterList[_arg1];
_local5 = _local4.length;
while (_local5--) {
_local6 = _local4[_local5];
if (!_local6.gc){
if (_arg2){
_local6.complete(false, false);
};
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
};
if (_arg3 == null){
delete masterList[_arg1];
};
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame++;
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (_local5--) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 150
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 151
//bananash (bananash)
package {
import com.game3.*;
public dynamic class bananash extends shadow {
}
}//package
Section 152
//bazooka (bazooka)
package {
import com.game2.*;
public dynamic class bazooka extends bazooka {
}
}//package
Section 153
//bg1 (bg1)
package {
import flash.display.*;
public dynamic class bg1 extends MovieClip {
}
}//package
Section 154
//bg2a (bg2a)
package {
import flash.display.*;
public dynamic class bg2a extends MovieClip {
}
}//package
Section 155
//bg2b (bg2b)
package {
import flash.display.*;
public dynamic class bg2b extends MovieClip {
}
}//package
Section 156
//bg3a (bg3a)
package {
import flash.display.*;
public dynamic class bg3a extends MovieClip {
}
}//package
Section 157
//bg3b (bg3b)
package {
import flash.display.*;
public dynamic class bg3b extends MovieClip {
}
}//package
Section 158
//bg3c (bg3c)
package {
import flash.display.*;
public dynamic class bg3c extends MovieClip {
}
}//package
Section 159
//bg4b (bg4b)
package {
import flash.display.*;
public dynamic class bg4b extends MovieClip {
}
}//package
Section 160
//bonus1icons (bonus1icons)
package {
import flash.display.*;
public dynamic class bonus1icons extends MovieClip {
public var a:MovieClip;
}
}//package
Section 161
//destroyer (destroyer)
package {
import com.game3.*;
public dynamic class destroyer extends destroyer {
}
}//package
Section 162
//destroyerwininfo (destroyerwininfo)
package {
import com.game4.*;
public dynamic class destroyerwininfo extends destroyerwininfo {
}
}//package
Section 163
//finishani2 (finishani2)
package {
import com.game2.*;
public dynamic class finishani2 extends finishani2 {
public function finishani2(){
addFrameScript(108, frame109);
}
function frame109(){
stop();
}
}
}//package
Section 164
//finishani3 (finishani3)
package {
import com.game3.*;
public dynamic class finishani3 extends finishani3 {
}
}//package
Section 165
//gameover (gameover)
package {
import com.game.*;
public dynamic class gameover extends popinfo {
}
}//package
Section 166
//gameover2 (gameover2)
package {
import com.game.*;
public dynamic class gameover2 extends popinfo {
}
}//package
Section 167
//giantattackLhand (giantattackLhand)
package {
import com.game4.*;
public dynamic class giantattackLhand extends gianthand {
}
}//package
Section 168
//giantattackRhand (giantattackRhand)
package {
import com.game4.*;
public dynamic class giantattackRhand extends gianthand {
}
}//package
Section 169
//grenadesh (grenadesh)
package {
import com.game3.*;
public dynamic class grenadesh extends shadow {
}
}//package
Section 170
//monster (monster)
package {
import com.game2.*;
public dynamic class monster extends monster {
}
}//package
Section 171
//mordecai3 (mordecai3)
package {
import com.game3.*;
public dynamic class mordecai3 extends mordecai3 {
}
}//package
Section 172
//platform1 (platform1)
package {
import flash.display.*;
public dynamic class platform1 extends MovieClip {
}
}//package
Section 173
//platform10 (platform10)
package {
import flash.display.*;
public dynamic class platform10 extends MovieClip {
}
}//package
Section 174
//platform11 (platform11)
package {
import flash.display.*;
public dynamic class platform11 extends MovieClip {
}
}//package
Section 175
//platform12 (platform12)
package {
import flash.display.*;
public dynamic class platform12 extends MovieClip {
}
}//package
Section 176
//platform2 (platform2)
package {
import flash.display.*;
public dynamic class platform2 extends MovieClip {
}
}//package
Section 177
//platform3 (platform3)
package {
import flash.display.*;
public dynamic class platform3 extends MovieClip {
}
}//package
Section 178
//platform4 (platform4)
package {
import flash.display.*;
public dynamic class platform4 extends MovieClip {
}
}//package
Section 179
//platform5 (platform5)
package {
import flash.display.*;
public dynamic class platform5 extends MovieClip {
}
}//package
Section 180
//platform6 (platform6)
package {
import flash.display.*;
public dynamic class platform6 extends MovieClip {
}
}//package
Section 181
//platform8 (platform8)
package {
import flash.display.*;
public dynamic class platform8 extends MovieClip {
}
}//package
Section 182
//platform9 (platform9)
package {
import flash.display.*;
public dynamic class platform9 extends MovieClip {
}
}//package
Section 183
//playercart (playercart)
package {
import com.game2.*;
public dynamic class playercart extends player {
}
}//package
Section 184
//rigby3 (rigby3)
package {
import com.game3.*;
public dynamic class rigby3 extends rigby3 {
}
}//package
Section 185
//rock (rock)
package {
import com.game2.*;
public dynamic class rock extends rock {
}
}//package
Section 186
//selectscreen (selectscreen)
package {
import flash.display.*;
public dynamic class selectscreen extends MovieClip {
public var button2txt:MovieClip;
public var button1:SimpleButton;
public var button3:SimpleButton;
public var button2:SimpleButton;
public var button3txt:MovieClip;
public var button1txt:MovieClip;
public var button4txt:MovieClip;
}
}//package
Section 187
//sign (sign)
package {
import flash.display.*;
public dynamic class sign extends MovieClip {
public var a:MovieClip;
}
}//package
Section 188
//statistics2 (statistics2)
package {
import com.game2.*;
public dynamic class statistics2 extends statistics2 {
}
}//package
Section 189
//statistics3 (statistics3)
package {
import com.game3.*;
public dynamic class statistics3 extends statistics3 {
}
}//package
Section 190
//stonesh (stonesh)
package {
import com.game3.*;
public dynamic class stonesh extends shadow {
}
}//package
Section 191
//titlescreen (titlescreen)
package {
import flash.display.*;
public dynamic class titlescreen extends MovieClip {
public var button1:SimpleButton;
}
}//package
Section 192
//ufo (ufo)
package {
import com.game2.*;
public dynamic class ufo extends ufo {
}
}//package
Section 193
//zaah (zaah)
package {
import flash.media.*;
public dynamic class zaah extends Sound {
}
}//package
Section 194
//zaarg (zaarg)
package {
import flash.media.*;
public dynamic class zaarg extends Sound {
}
}//package
Section 195
//zbaseball (zbaseball)
package {
import flash.media.*;
public dynamic class zbaseball extends Sound {
}
}//package
Section 196
//zbazooka (zbazooka)
package {
import flash.media.*;
public dynamic class zbazooka extends Sound {
}
}//package
Section 197
//zbonus (zbonus)
package {
import flash.media.*;
public dynamic class zbonus extends Sound {
}
}//package
Section 198
//zbonus2 (zbonus2)
package {
import flash.media.*;
public dynamic class zbonus2 extends Sound {
}
}//package
Section 199
//zboxing (zboxing)
package {
import flash.media.*;
public dynamic class zboxing extends Sound {
}
}//package
Section 200
//zburger (zburger)
package {
import flash.media.*;
public dynamic class zburger extends Sound {
}
}//package
Section 201
//zbuzz (zbuzz)
package {
import flash.media.*;
public dynamic class zbuzz extends Sound {
}
}//package
Section 202
//zcartcrash (zcartcrash)
package {
import flash.media.*;
public dynamic class zcartcrash extends Sound {
}
}//package
Section 203
//zcartland (zcartland)
package {
import flash.media.*;
public dynamic class zcartland extends Sound {
}
}//package
Section 204
//zcherry (zcherry)
package {
import flash.media.*;
public dynamic class zcherry extends Sound {
}
}//package
Section 205
//zcrash (zcrash)
package {
import flash.media.*;
public dynamic class zcrash extends Sound {
}
}//package
Section 206
//zdestroyed (zdestroyed)
package {
import flash.media.*;
public dynamic class zdestroyed extends Sound {
}
}//package
Section 207
//zexplode1 (zexplode1)
package {
import flash.media.*;
public dynamic class zexplode1 extends Sound {
}
}//package
Section 208
//zexplode2 (zexplode2)
package {
import flash.media.*;
public dynamic class zexplode2 extends Sound {
}
}//package
Section 209
//zexplode3 (zexplode3)
package {
import flash.media.*;
public dynamic class zexplode3 extends Sound {
}
}//package
Section 210
//zfire (zfire)
package {
import flash.media.*;
public dynamic class zfire extends Sound {
}
}//package
Section 211
//zfireball (zfireball)
package {
import flash.media.*;
public dynamic class zfireball extends Sound {
}
}//package
Section 212
//zfist (zfist)
package {
import flash.media.*;
public dynamic class zfist extends Sound {
}
}//package
Section 213
//zgolfcart (zgolfcart)
package {
import flash.media.*;
public dynamic class zgolfcart extends Sound {
}
}//package
Section 214
//zheartbeat (zheartbeat)
package {
import flash.media.*;
public dynamic class zheartbeat extends Sound {
}
}//package
Section 215
//zhit (zhit)
package {
import flash.media.*;
public dynamic class zhit extends Sound {
}
}//package
Section 216
//zhit2 (zhit2)
package {
import flash.media.*;
public dynamic class zhit2 extends Sound {
}
}//package
Section 217
//zland (zland)
package {
import flash.media.*;
public dynamic class zland extends Sound {
}
}//package
Section 218
//zland2 (zland2)
package {
import flash.media.*;
public dynamic class zland2 extends Sound {
}
}//package
Section 219
//zloop (zloop)
package {
import flash.media.*;
public dynamic class zloop extends Sound {
}
}//package
Section 220
//zpoof (zpoof)
package {
import flash.media.*;
public dynamic class zpoof extends Sound {
}
}//package
Section 221
//zpop (zpop)
package {
import flash.media.*;
public dynamic class zpop extends Sound {
}
}//package
Section 222
//zpunch1 (zpunch1)
package {
import flash.media.*;
public dynamic class zpunch1 extends Sound {
}
}//package
Section 223
//zpunch2 (zpunch2)
package {
import flash.media.*;
public dynamic class zpunch2 extends Sound {
}
}//package
Section 224
//zpunch3 (zpunch3)
package {
import flash.media.*;
public dynamic class zpunch3 extends Sound {
}
}//package
Section 225
//zray (zray)
package {
import flash.media.*;
public dynamic class zray extends Sound {
}
}//package
Section 226
//zsplat (zsplat)
package {
import flash.media.*;
public dynamic class zsplat extends Sound {
}
}//package
Section 227
//zthrow (zthrow)
package {
import flash.media.*;
public dynamic class zthrow extends Sound {
}
}//package
Section 228
//zthrow2 (zthrow2)
package {
import flash.media.*;
public dynamic class zthrow2 extends Sound {
}
}//package
Section 229
//ztic (ztic)
package {
import flash.media.*;
public dynamic class ztic extends Sound {
}
}//package
Section 230
//ztink (ztink)
package {
import flash.media.*;
public dynamic class ztink extends Sound {
}
}//package
Section 231
//ztrampoline (ztrampoline)
package {
import flash.media.*;
public dynamic class ztrampoline extends Sound {
}
}//package
Section 232
//zwrestle (zwrestle)
package {
import flash.media.*;
public dynamic class zwrestle extends Sound {
}
}//package