Frame 1
_root.gamemode = 1;
var game = (new com.midasplayer.game.jellyjumper.Game());
stop();
Symbol 77 MovieClip [bfbr] Frame 1
#initclip 141
Object.registerClass("bfbr", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 80 MovieClip [bfbl] Frame 1
#initclip 62
Object.registerClass("bfbl", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 83 MovieClip [corner_1x1_top_right] Frame 1
#initclip 63
Object.registerClass("corner_1x1_top_right", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 86 MovieClip [corner_1x1_top_left] Frame 1
#initclip 64
Object.registerClass("corner_1x1_top_left", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 89 MovieClip [bfr] Frame 1
#initclip 65
Object.registerClass("bfr", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 92 MovieClip [bfl] Frame 1
#initclip 66
Object.registerClass("bfl", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 97 MovieClip [frame_top_2x1] Frame 1
#initclip 67
Object.registerClass("frame_top_2x1", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Instance of Symbol 96 MovieClip "l1" in Symbol 97 MovieClip [frame_top_2x1] Frame 1
//component parameters
onClipEvent (construct) {
material = 0;
}
Instance of Symbol 96 MovieClip "l2" in Symbol 97 MovieClip [frame_top_2x1] Frame 1
//component parameters
onClipEvent (construct) {
material = 0;
}
Instance of Symbol 96 MovieClip "l3" in Symbol 97 MovieClip [frame_top_2x1] Frame 1
//component parameters
onClipEvent (construct) {
material = 0;
}
Symbol 100 MovieClip [bfb] Frame 1
#initclip 68
Object.registerClass("bfb", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 103 MovieClip [wall_obstacle_slippery] Frame 1
#initclip 69
Object.registerClass("wall_obstacle_slippery", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Instance of Symbol 96 MovieClip "l2" in Symbol 103 MovieClip [wall_obstacle_slippery] Frame 1
//component parameters
onClipEvent (construct) {
material = 0;
}
Instance of Symbol 96 MovieClip "l4" in Symbol 103 MovieClip [wall_obstacle_slippery] Frame 1
//component parameters
onClipEvent (construct) {
material = 3;
}
Instance of Symbol 96 MovieClip "l3" in Symbol 103 MovieClip [wall_obstacle_slippery] Frame 1
//component parameters
onClipEvent (construct) {
material = 0;
}
Instance of Symbol 96 MovieClip "l1" in Symbol 103 MovieClip [wall_obstacle_slippery] Frame 1
//component parameters
onClipEvent (construct) {
material = 0;
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 136 MovieClip [vanish1] Frame 1
stop();
Symbol 151 MovieClip [vanish2] Frame 1
stop();
Symbol 152 MovieClip [block_green] Frame 1
#initclip 70
Object.registerClass("block_green", com.midasplayer.game.jellyjumper.ScoreBlock);
#endinitclip
Instance of Symbol 108 MovieClip "c1" in Symbol 152 MovieClip [block_green] Frame 1
//component parameters
onClipEvent (construct) {
material = 6;
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 167 MovieClip [block_yellow] Frame 1
#initclip 71
Object.registerClass("block_yellow", com.midasplayer.game.jellyjumper.ScoreBlock);
#endinitclip
Instance of Symbol 108 MovieClip "c1" in Symbol 167 MovieClip [block_yellow] Frame 1
//component parameters
onClipEvent (construct) {
material = 6;
}
Symbol 170 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 182 MovieClip [block_red] Frame 1
#initclip 72
Object.registerClass("block_red", com.midasplayer.game.jellyjumper.ScoreBlock);
#endinitclip
Instance of Symbol 108 MovieClip "c1" in Symbol 182 MovieClip [block_red] Frame 1
//component parameters
onClipEvent (construct) {
material = 6;
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 197 MovieClip [block_purple] Frame 1
#initclip 73
Object.registerClass("block_purple", com.midasplayer.game.jellyjumper.ScoreBlock);
#endinitclip
Instance of Symbol 108 MovieClip "c1" in Symbol 197 MovieClip [block_purple] Frame 1
//component parameters
onClipEvent (construct) {
material = 6;
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 212 MovieClip [block_orange] Frame 1
#initclip 74
Object.registerClass("block_orange", com.midasplayer.game.jellyjumper.ScoreBlock);
#endinitclip
Instance of Symbol 108 MovieClip "c1" in Symbol 212 MovieClip [block_orange] Frame 1
//component parameters
onClipEvent (construct) {
material = 6;
}
Symbol 611 MovieClip Frame 11
_parent._rotation = 0;
Symbol 611 MovieClip Frame 41
_parent._rotation = 0;
Symbol 611 MovieClip Frame 71
_parent._rotation = 0;
Symbol 611 MovieClip Frame 111
_parent._rotation = 0;
Symbol 615 MovieClip [test_block] Frame 1
#initclip 75
Object.registerClass("test_block", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Instance of Symbol 108 MovieClip "c1" in Symbol 615 MovieClip [test_block] Frame 1
//component parameters
onClipEvent (construct) {
material = 2;
}
Symbol 642 MovieClip [borbhs] Frame 1
#initclip 76
Object.registerClass("borbhs", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 652 MovieClip [borbds] Frame 1
#initclip 77
Object.registerClass("borbds", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 658 MovieClip [borbns] Frame 1
#initclip 78
Object.registerClass("borbns", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 675 MovieClip [bosbhs] Frame 1
#initclip 79
Object.registerClass("bosbhs", com.midasplayer.game.jellyjumper.Block);
#endinitclip
stop();
Symbol 686 MovieClip [bosbds] Frame 1
#initclip 80
Object.registerClass("bosbds", com.midasplayer.game.jellyjumper.Block);
#endinitclip
stop();
Symbol 692 MovieClip [bosbns] Frame 1
#initclip 81
Object.registerClass("bosbns", com.midasplayer.game.jellyjumper.Block);
#endinitclip
stop();
Symbol 695 MovieClip [bosss] Frame 1
#initclip 82
Object.registerClass("bosss", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 698 MovieClip [borss] Frame 1
#initclip 83
Object.registerClass("borss", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 704 MovieClip [boshs] Frame 1
#initclip 84
Object.registerClass("boshs", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 711 MovieClip [borhs] Frame 1
#initclip 85
Object.registerClass("borhs", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 716 MovieClip [bords] Frame 1
#initclip 86
Object.registerClass("bords", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 720 MovieClip [bosns] Frame 1
#initclip 87
Object.registerClass("bosns", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 723 MovieClip [boftr] Frame 1
#initclip 88
Object.registerClass("boftr", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 726 MovieClip [boftl] Frame 1
#initclip 89
Object.registerClass("boftl", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 727 MovieClip [boft] Frame 1
#initclip 90
Object.registerClass("boft", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 728 MovieClip [bofr] Frame 1
#initclip 91
Object.registerClass("bofr", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 729 MovieClip [bofl] Frame 1
#initclip 92
Object.registerClass("bofl", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 732 MovieClip [bofbr] Frame 1
#initclip 93
Object.registerClass("bofbr", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 735 MovieClip [bofbl] Frame 1
#initclip 94
Object.registerClass("bofbl", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 736 MovieClip [bofb] Frame 1
#initclip 95
Object.registerClass("bofb", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 741 MovieClip [bfbo2] Frame 1
#initclip 96
Object.registerClass("bfbo2", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 745 MovieClip [bosds] Frame 1
#initclip 97
Object.registerClass("bosds", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 751 MovieClip [borns] Frame 1
#initclip 98
Object.registerClass("borns", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 752 MovieClip [bfbo] Frame 1
#initclip 99
Object.registerClass("bfbo", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 753 MovieClip [bfbc] Frame 1
#initclip 100
Object.registerClass("bfbc", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 756 MovieClip Frame 1
stop();
Symbol 768 MovieClip Frame 1
stop();
Symbol 770 MovieClip [bsb] Frame 1
#initclip 101
Object.registerClass("bsb", com.midasplayer.game.jellyjumper.ScoreBlock);
#endinitclip
Symbol 792 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 1
stop();
Symbol 842 MovieClip Frame 1
stop();
Symbol 843 MovieClip [bk] Frame 1
#initclip 102
Object.registerClass("bk", com.midasplayer.game.jellyjumper.KeyBlock);
#endinitclip
Symbol 881 MovieClip [rocket_right] Frame 1
stop();
Symbol 886 MovieClip [rocket_left] Frame 1
stop();
Symbol 894 MovieClip [bhr] Frame 1
#initclip 103
Object.registerClass("bhr", com.midasplayer.game.jellyjumper.RocketsBlock);
#endinitclip
Symbol 920 MovieClip Frame 1
stop();
Symbol 921 MovieClip [bg] Frame 1
#initclip 104
Object.registerClass("bg", com.midasplayer.game.jellyjumper.GoldBlock);
#endinitclip
Symbol 938 MovieClip [freezer_block] Frame 1
stop();
Symbol 939 MovieClip [bf] Frame 1
#initclip 105
Object.registerClass("bf", com.midasplayer.game.jellyjumper.FreezerBlock);
#endinitclip
Symbol 955 MovieClip Frame 1
stop();
Symbol 956 MovieClip [bd] Frame 1
#initclip 106
Object.registerClass("bd", com.midasplayer.game.jellyjumper.DrowserBlock);
#endinitclip
Symbol 965 MovieClip [rocket_up_right] Frame 1
stop();
Symbol 970 MovieClip [rocket_up_left] Frame 1
stop();
Symbol 975 MovieClip [rocket_up] Frame 1
stop();
Symbol 983 MovieClip [bdr] Frame 1
#initclip 107
Object.registerClass("bdr", com.midasplayer.game.jellyjumper.RocketsBlock);
#endinitclip
Symbol 992 MovieClip [bomb] Frame 1
stop();
Symbol 1010 MovieClip Frame 1
stop();
Symbol 1011 MovieClip [bb] Frame 1
#initclip 108
Object.registerClass("bb", com.midasplayer.game.jellyjumper.BombBlock);
#endinitclip
Symbol 1027 MovieClip [bosbd] Frame 1
#initclip 109
Object.registerClass("bosbd", com.midasplayer.game.jellyjumper.Block);
#endinitclip
stop();
Symbol 1034 MovieClip [bosh] Frame 1
#initclip 110
Object.registerClass("bosh", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1038 MovieClip [bosd] Frame 1
#initclip 111
Object.registerClass("bosd", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1044 MovieClip [bosbn] Frame 1
#initclip 112
Object.registerClass("bosbn", com.midasplayer.game.jellyjumper.Block);
#endinitclip
stop();
Symbol 1055 MovieClip [bosbh] Frame 1
#initclip 113
Object.registerClass("bosbh", com.midasplayer.game.jellyjumper.Block);
#endinitclip
stop();
Symbol 1060 MovieClip [borh] Frame 1
#initclip 114
Object.registerClass("borh", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1065 MovieClip [bord] Frame 1
#initclip 115
Object.registerClass("bord", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1076 MovieClip [borbn] Frame 1
#initclip 116
Object.registerClass("borbn", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1087 MovieClip [borbh] Frame 1
#initclip 117
Object.registerClass("borbh", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1098 MovieClip [borbd] Frame 1
#initclip 118
Object.registerClass("borbd", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1103 MovieClip [born] Frame 1
#initclip 119
Object.registerClass("born", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1106 MovieClip [bors] Frame 1
#initclip 120
Object.registerClass("bors", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1109 MovieClip [boss] Frame 1
#initclip 121
Object.registerClass("boss", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1113 MovieClip [bosn] Frame 1
#initclip 122
Object.registerClass("bosn", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1124 MovieClip Frame 1
stop();
Symbol 1141 MovieClip [bwloh] Frame 1
#initclip 123
Object.registerClass("bwloh", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1144 MovieClip [bwlod] Frame 1
#initclip 124
Object.registerClass("bwlod", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1146 MovieClip [bwlos] Frame 1
#initclip 125
Object.registerClass("bwlos", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1148 MovieClip [bwros] Frame 1
#initclip 126
Object.registerClass("bwros", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1150 MovieClip [bwroh] Frame 1
#initclip 127
Object.registerClass("bwroh", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1152 MovieClip [bwrod] Frame 1
#initclip 128
Object.registerClass("bwrod", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1170 MovieClip [bwlobd] Frame 1
#initclip 129
Object.registerClass("bwlobd", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1181 MovieClip [bwlobh] Frame 1
#initclip 130
Object.registerClass("bwlobh", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1192 MovieClip [bwlobn] Frame 1
#initclip 131
Object.registerClass("bwlobn", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1198 MovieClip [bwrobd] Frame 1
#initclip 132
Object.registerClass("bwrobd", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1204 MovieClip [bwrobh] Frame 1
#initclip 133
Object.registerClass("bwrobh", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1210 MovieClip [bwrobn] Frame 1
#initclip 134
Object.registerClass("bwrobn", com.midasplayer.game.jellyjumper.Block);
#endinitclip
Symbol 1218 MovieClip [be] Frame 1
#initclip 135
Object.registerClass("be", com.midasplayer.game.jellyjumper.EnlargeBlock);
#endinitclip
Symbol 1221 MovieClip [editor] Frame 1
#initclip 136
Object.registerClass("editor", com.midasplayer.game.jellyjumper.editor.Editor);
#endinitclip
Instance of Symbol 1113 MovieClip [bosn] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosn";
}
Instance of Symbol 1109 MovieClip [boss] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "boss";
}
Instance of Symbol 1106 MovieClip [bors] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bors";
}
Instance of Symbol 1103 MovieClip [born] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "born";
}
Instance of Symbol 1098 MovieClip [borbd] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borbd";
}
Instance of Symbol 1087 MovieClip [borbh] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borbh";
}
Instance of Symbol 1076 MovieClip [borbn] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borbn";
}
Instance of Symbol 1065 MovieClip [bord] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bord";
}
Instance of Symbol 1060 MovieClip [borh] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borh";
}
Instance of Symbol 1055 MovieClip [bosbh] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosbh";
}
Instance of Symbol 1044 MovieClip [bosbn] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosbn";
}
Instance of Symbol 1038 MovieClip [bosd] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosd";
}
Instance of Symbol 1034 MovieClip [bosh] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosh";
}
Instance of Symbol 1027 MovieClip [bosbd] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosbd";
}
Instance of Symbol 1011 MovieClip [bb] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bb";
}
Instance of Symbol 983 MovieClip [bdr] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bdr";
}
Instance of Symbol 956 MovieClip [bd] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bd";
}
Instance of Symbol 939 MovieClip [bf] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bf";
}
Instance of Symbol 921 MovieClip [bg] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bg";
}
Instance of Symbol 894 MovieClip [bhr] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bhr";
}
Instance of Symbol 843 MovieClip [bk] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bk";
}
Instance of Symbol 770 MovieClip [bsb] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bsb";
}
Instance of Symbol 753 MovieClip [bfbc] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bfbc";
}
Instance of Symbol 752 MovieClip [bfbo] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bfbo";
}
Instance of Symbol 751 MovieClip [borns] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borns";
}
Instance of Symbol 745 MovieClip [bosds] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosds";
}
Instance of Symbol 741 MovieClip [bfbo2] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bfbo2";
}
Instance of Symbol 736 MovieClip [bofb] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bofb";
}
Instance of Symbol 735 MovieClip [bofbl] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bofbl";
}
Instance of Symbol 732 MovieClip [bofbr] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bofbr";
}
Instance of Symbol 729 MovieClip [bofl] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bofl";
}
Instance of Symbol 728 MovieClip [bofr] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bofr";
}
Instance of Symbol 727 MovieClip [boft] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "boft";
}
Instance of Symbol 726 MovieClip [boftl] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "boftl";
}
Instance of Symbol 723 MovieClip [boftr] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "boftr";
}
Instance of Symbol 720 MovieClip [bosns] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosns";
}
Instance of Symbol 716 MovieClip [bords] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bords";
}
Instance of Symbol 711 MovieClip [borhs] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borhs";
}
Instance of Symbol 704 MovieClip [boshs] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "boshs";
}
Instance of Symbol 698 MovieClip [borss] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borss";
}
Instance of Symbol 695 MovieClip [bosss] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosss";
}
Instance of Symbol 1141 MovieClip [bwloh] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwloh";
}
Instance of Symbol 1144 MovieClip [bwlod] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwlod";
}
Instance of Symbol 1146 MovieClip [bwlos] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwlos";
}
Instance of Symbol 1148 MovieClip [bwros] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwros";
}
Instance of Symbol 1150 MovieClip [bwroh] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwroh";
}
Instance of Symbol 1152 MovieClip [bwrod] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwrod";
}
Instance of Symbol 692 MovieClip [bosbns] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosbns";
}
Instance of Symbol 686 MovieClip [bosbds] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosbds";
}
Instance of Symbol 675 MovieClip [bosbhs] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bosbhs";
}
Instance of Symbol 658 MovieClip [borbns] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borbns";
}
Instance of Symbol 652 MovieClip [borbds] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borbds";
}
Instance of Symbol 642 MovieClip [borbhs] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "borbhs";
}
Instance of Symbol 1170 MovieClip [bwlobd] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwlobd";
}
Instance of Symbol 1181 MovieClip [bwlobh] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwlobh";
}
Instance of Symbol 1192 MovieClip [bwlobn] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwlobn";
}
Instance of Symbol 1198 MovieClip [bwrobd] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwrobd";
}
Instance of Symbol 1204 MovieClip [bwrobh] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwrobh";
}
Instance of Symbol 1210 MovieClip [bwrobn] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "bwrobn";
}
Instance of Symbol 1218 MovieClip [be] in Symbol 1221 MovieClip [editor] Frame 1
//component parameters
onClipEvent (construct) {
id = "be";
}
Symbol 1225 MovieClip [level] Frame 1
#initclip 137
Object.registerClass("level", com.midasplayer.game.jellyjumper.Level);
#endinitclip
Symbol 1226 MovieClip [editor_level] Frame 1
#initclip 138
Object.registerClass("editor_level", com.midasplayer.game.jellyjumper.editor.EditorLevel);
#endinitclip
Symbol 1264 MovieClip [number] Frame 1
stop();
Symbol 1306 MovieClip Frame 1
stop();
Symbol 1308 MovieClip [infobar] Frame 1
#initclip 139
Object.registerClass("infobar", com.midasplayer.game.jellyjumper.InfoBar);
#endinitclip
Symbol 1347 MovieClip [bubble] Frame 1
this._visible = true;
Symbol 1347 MovieClip [bubble] Frame 10
Symbol 1347 MovieClip [bubble] Frame 15
this._visible = false;
Symbol 1347 MovieClip [bubble] Frame 16
stop();
Symbol 1458 MovieClip [blopp] Frame 1
#initclip 140
Object.registerClass("blopp", com.midasplayer.game.jellyjumper.Blopp);
#endinitclip
Symbol 1465 MovieClip [__Packages.com.midasplayer.util.GameBase] Frame 0
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.midasplayer) {
_global.com.midasplayer = new Object();
}
if (!_global.com.midasplayer.util) {
_global.com.midasplayer.util = new Object();
}
if (!_global.com.midasplayer.util.GameBase) {
var _local1 = function () {
com.midasplayer.util.GameBase.gameMode_ = com.midasplayer.util.GameBase.GAME_MODE_MONEY;
com.midasplayer.util.GameBase.playDataEntryId_ = 0;
com.midasplayer.util.GameBase.playData_ = "";
};
_global.com.midasplayer.util.GameBase = _local1;
var _local2 = _local1.prototype;
_local1.setGameMode = function (gameMode) {
com.midasplayer.util.GameBase.gameMode_ = gameMode;
};
_local1.getGameMode = function () {
return(com.midasplayer.util.GameBase.gameMode_);
};
_local1.setGameType = function (gameType) {
com.midasplayer.util.GameBase.gameType_ = gameType;
};
_local1.getGameType = function () {
return(com.midasplayer.util.GameBase.gameType_);
};
_local1.getGameData = function () {
return(com.midasplayer.util.GameBase.gameData);
};
_local1.reportGameStart = function () {
com.midasplayer.util.Log.debug("gameStart");
fscommand ("gameStart");
};
_local1.reportGameEnd = function (score) {
com.midasplayer.util.Log.debug("gameEnd " + String(score));
getURL("FSCommand:gameEnd", String(score));
com.midasplayer.util.GameBase.playData_ = (("<result><![CDATA[" + score) + "]]></result>\n") + com.midasplayer.util.GameBase.playData_;
this.sendscore = new LoadVars();
this.sendscore.gscore = score;
this.sendscore.gname = "BunnyBonBonv2DOT";
this.sendscore.send("index.php?act=Arcade&do=newscore", "_self", "POST");
this.sendGameDataRequest();
};
_local1.reportGameQuit = function () {
com.midasplayer.util.Log.debug("gameQuit");
fscommand ("gameQuit");
};
_local1.reportPlayData = function (pCode, pData, pScore) {
if (com.midasplayer.util.GameBase.gameMode_ != com.midasplayer.util.GameBase.GAME_MODE_MONEY) {
return(undefined);
}
var _local4;
_local4 = String(pCode);
if (!((pData == null) && (pData.length > 0))) {
_local4 = _local4 + ("," + pData);
}
if (!((pScore == undefined) && (!((pScore == null) && (pScore.length > 0))))) {
_local4 = _local4 + ("=" + pScore);
}
com.midasplayer.util.Log.debug("playData " + _local4);
getURL("FSCommand:playData", "" + _local4);
com.midasplayer.util.GameBase.playDataEntryId_ = com.midasplayer.util.GameBase.playDataEntryId_ + 1;
com.midasplayer.util.GameBase.playData_ = com.midasplayer.util.GameBase.playData_ + (("<entry id=\"" + com.midasplayer.util.GameBase.playDataEntryId_) + "\"");
com.midasplayer.util.GameBase.playData_ = com.midasplayer.util.GameBase.playData_ + " time=\"2007-08-27 12:13:45\">";
com.midasplayer.util.GameBase.playData_ = com.midasplayer.util.GameBase.playData_ + (("<![CDATA[" + _local4) + "]]></entry>\n");
};
_local1.getPlayData = function () {
var _local1 = newline;
_local1 = _local1 + "<midas>\n";
_local1 = _local1 + "<client action=\"gameover\" slotId=\"57990\" playId=\"0\" request=\"3\" magic=\"443172449\">\n";
_local1 = _local1 + (("<gameover time=\"2007-08-27 12:14:01\" lastplaydataid=\"" + com.midasplayer.util.GameBase.playDataEntryId_) + "\" elapsed=\"18000\" sync=\"0\" cheat=\"0\">\n");
_local1 = _local1 + com.midasplayer.util.GameBase.playData_;
_local1 = _local1 + "</gameover>\n";
_local1 = _local1 + "</client>\n";
_local1 = _local1 + "</midas>";
return(_local1);
};
_local1.runsLocal = function () {
return(_root._URL.substr(0, 5).toLowerCase() == "file:");
};
_local2.startGame = function () {
};
_local2.reportGameOver = function (score) {
com.midasplayer.util.Log.debug("gameOver " + String(score));
getURL("FSCommand:gameOver", String(score));
};
_local2.init = function (game) {
com.midasplayer.util.GameBase.game_ = game;
com.midasplayer.util.GameBase.checkGameDataIntervalId_ = setInterval(this, "checkGameData", 200);
};
_local2.checkGameData = function () {
if (!com.midasplayer.util.GameBase.hasGameData_) {
if (!((_root.gameData == null) && (!((_root.gameData == undefined) && (_root.gameData != ""))))) {
com.midasplayer.util.GameBase.hasGameData_ = true;
this.parseGameData(_root.gameData);
clearInterval(com.midasplayer.util.GameBase.checkGameDataIntervalId_);
com.midasplayer.util.GameBase.game_.startGame();
}
}
};
_local2.parseGameData = function (myData) {
com.midasplayer.util.GameBase.gameData = new com.midasplayer.util.Map();
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.parseXML(myData);
var _local4 = _local3.firstChild;
if (_local4.nodeName == "gamedata") {
this.parseChild(_local4, "");
}
};
_local2.parseGameFileData = function () {
var _local2 = "gamedata.xml";
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.parseXML(_local2);
var _local4 = _local3.firstChild;
if (_local4.nodeName == "gamedata") {
this.parseChild(_local4, "");
}
};
_local2.parseChild = function (child, parentName) {
if (child == null) {
return(undefined);
}
var _local4 = parentName;
if (child.nodeName == "gamedata") {
_local4 = "";
} else if (parentName.length > 0) {
_local4 = (parentName + ".") + child.nodeName;
} else {
_local4 = child.nodeName;
}
if (child.nodeName == "text") {
com.midasplayer.util.I18n.addTranslation(String(child.attributes.id), String(child.firstChild));
}
for (var _local5 in child.attributes) {
var _local6;
var _local7 = child.attributes[_local5];
if (_local5 == "id") {
_local4 = _local4 + ("." + _local7);
continue;
}
if (_local4.length > 0) {
com.midasplayer.util.GameBase.gameData.put((_local4 + ".") + _local5, _local7);
continue;
}
com.midasplayer.util.GameBase.gameData.put(_local5, _local7);
}
if (!child.firstChild.hasChildNodes()) {
com.midasplayer.util.GameBase.gameData.put(_local4, child.firstChild);
} else {
this.parseChild(child.firstChild, _local4);
}
if (child.nextSibling != null) {
this.parseChild(child.nextSibling, parentName);
}
};
_local1.GAME_MODE_DEBUG = 0;
_local1.GAME_MODE_PRACTICE = 1;
_local1.GAME_MODE_MONEY = 2;
_local1.GAME_TYPE_SINGLE = 0;
_local1.GAME_TYPE_MULTI = 1;
_local1.gameMode_ = com.midasplayer.util.GameBase.GAME_MODE_DEBUG;
_local1.gameType_ = com.midasplayer.util.GameBase.GAME_TYPE_SINGLE;
_local1.hasGameData_ = false;
(ASSetPropFlags(_global.com.midasplayer.util.GameBase.prototype, null, 1));// not popped
}
#endinitclip
Symbol 1466 MovieClip [__Packages.com.midasplayer.util.Map] Frame 0
class com.midasplayer.util.Map
{
var map, lastSize;
function Map (init) {
map = new Object();
for (var _local3 in init) {
map["@" + _local3] = init[_local3];
}
lastSize = -1;
}
function put(key, value) {
map["@" + key] = value;
lastSize = -1;
}
function get(key) {
return(map["@" + key]);
}
function remove(key) {
var _local2 = map["@" + key];
delete map["@" + key];
lastSize = -1;
return(_local2);
}
function count() {
if (lastSize < 0) {
lastSize = 0;
for (var _local2 in map) {
lastSize++;
}
}
return(lastSize);
}
function size() {
return(count());
}
function clear() {
map = {};
lastSize = 0;
}
function dump() {
var _local2 = "";
for (var _local3 in map) {
_local2 = _local2 + "x";
_local2 = _local2 + (((_local3 + "=>") + map[_local3]) + newline);
}
trace(_local2);
}
function toArray() {
var _local2 = [];
for (var _local3 in map) {
_local2[_local2.length] = map[_local3];
}
return(_local2);
}
function keySet() {
var _local2 = [];
for (var _local3 in map) {
_local2[_local2.length] = _local3.substring(1);
}
return(_local2);
}
function foreach(fn) {
do {
if ((in map) == null) {
break;
}
var _local3 = in map;
} while (fn(_local3.substring(1), map[_local3]) != false);
do {
} while ("foreach" != null);
lastSize = -1;
}
}
Symbol 1467 MovieClip [__Packages.com.midasplayer.util.ArrayList] Frame 0
class com.midasplayer.util.ArrayList
{
var value;
function ArrayList () {
value = new Array();
}
function insert(obj, pos) {
var _local3 = value.length;
if (pos == undefined) {
value.push(obj);
return(_local3);
}
if (pos > _local3) {
pos = _local3;
}
var _local2 = _local3 - 1;
while (_local2 > (pos - 1)) {
value[_local2 + 1] = value[_local2];
_local2--;
}
value[pos] = obj;
return(pos);
}
function get(pos) {
return(value[pos]);
}
function indexOf(obj) {
var _local2 = 0;
while (_local2 < value.length) {
if (obj == value[_local2]) {
return(_local2);
}
_local2++;
}
return(-1);
}
function remove(obj) {
return(removeByIndex(indexOf(obj)));
}
function removeByIndex(pos) {
var _local5;
var _local3 = value.length;
if ((pos < _local3) && (pos >= 0)) {
_local5 = value[pos];
delete value[pos];
var _local2 = pos;
while (_local2 < (_local3 - 1)) {
value[_local2] = value[_local2 + 1];
_local2++;
}
value.length = _local3 - 1;
}
return(_local5);
}
function size() {
return(value.length);
}
function clear() {
value = new Array();
}
function toArray() {
return(value);
}
function foreach(fn) {
var _local2 = 0;
var _local3 = value.length;
while (_local2 < _local3) {
if (fn(_local2, value[_local2]) == false) {
break;
}
_local2++;
}
}
function sortOn(field) {
value.sortOn(field);
}
function sort() {
value.sort();
}
function subList(from, to) {
if (!to) {
to = value.length;
}
var _local3 = new com.midasplayer.util.ArrayList();
var _local2 = from;
while (_local2 < to) {
_local3.insert(get(_local2));
_local2++;
}
return(_local3);
}
}
Symbol 1468 MovieClip [__Packages.com.midasplayer.util.Log] Frame 0
class com.midasplayer.util.Log
{
function Log () {
}
static function setLevel(level) {
level_ = level;
}
static function debug(msg) {
if (level_ <= LEVEL_DEBUG) {
log_.insert(new com.midasplayer.util.LogEntry(LEVEL_DEBUG, msg));
}
}
static function warning(msg) {
if (level_ <= LEVEL_WARNING) {
log_.insert(new com.midasplayer.util.LogEntry(LEVEL_WARNING, msg));
}
}
static function error(msg) {
if (level_ <= LEVEL_ERROR) {
log_.insert(new com.midasplayer.util.LogEntry(LEVEL_ERROR, msg));
}
}
static function getLog() {
if (log_.size() != logStringLastUpdatedSize_) {
logString_ = "";
var _local1 = 0;
while (_local1 < log_.size()) {
var _local2 = com.midasplayer.util.LogEntry(log_.get(_local1));
if (_local1 > 0) {
logString_ = logString_ + newline;
}
logString_ = logString_ + LEVEL_STRINGS[_local2.getLevel()];
logString_ = logString_ + ": ";
logString_ = logString_ + _local2.getMessage();
logStringLastUpdatedSize_ = log_.size();
_local1++;
}
}
return(logString_);
}
static var LEVEL_ALL = -1;
static var LEVEL_NONE = 1000;
static var LEVEL_DEBUG = 0;
static var LEVEL_WARNING = 1;
static var LEVEL_ERROR = 2;
static var LEVEL_STRINGS = ["DEBUG", "WARNING", "ERROR"];
static var level_ = LEVEL_ALL;
static var log_ = new com.midasplayer.util.ArrayList();
static var logString_ = "";
static var logStringLastUpdatedSize_ = 0;
}
Symbol 1469 MovieClip [__Packages.com.midasplayer.util.LogEntry] Frame 0
class com.midasplayer.util.LogEntry
{
var level_, message_;
function LogEntry (level, msg) {
level_ = level;
message_ = msg;
}
function getLevel() {
return(level_);
}
function getMessage() {
return(message_);
}
}
Symbol 1470 MovieClip [__Packages.com.midasplayer.util.I18n] Frame 0
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.midasplayer) {
_global.com.midasplayer = new Object();
}
if (!_global.com.midasplayer.util) {
_global.com.midasplayer.util = new Object();
}
if (!_global.com.midasplayer.util.I18n) {
var _local1 = function () {
};
_global.com.midasplayer.util.I18n = _local1;
var _local2 = _local1.prototype;
_local1.addTranslation = function (name, val) {
val = val.split("'").join("'");
val = val.split("&").join("&");
val = val.split("\r\n").join(newline);
com.midasplayer.util.I18n.translations_.put(name, val);
};
_local1.format = function (name, replace0, replace1, replace2) {
var _local5 = com.midasplayer.util.I18n.translations_.get(name);
if (_local5 == undefined) {
return(("" + name) + ":");
}
if (_local5 == com.midasplayer.util.I18n.translations_.get("score")) {
return("Score:");
}
var _local6 = _local5.toString();
if (replace0 != undefined) {
var _local7 = _local6.split("{0}");
_local6 = _local7.join(replace0);
if (replace1 != undefined) {
_local7 = _local6.split("{1}");
_local6 = _local7.join(replace1);
if (replace2 != undefined) {
_local7 = _local6.split("{2}");
_local6 = _local7.join(replace2);
}
}
}
return(_local6);
};
_local1.translations_ = new com.midasplayer.util.Map();
(ASSetPropFlags(_global.com.midasplayer.util.I18n.prototype, null, 1));// not popped
}
#endinitclip
Symbol 1471 MovieClip [__Packages.com.midasplayer.timing.Timeable] Frame 0
interface com.midasplayer.timing.Timeable
{
}
Symbol 1472 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Game] Frame 0
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.midasplayer) {
_global.com.midasplayer = new Object();
}
if (!_global.com.midasplayer.game) {
_global.com.midasplayer.game = new Object();
}
if (!_global.com.midasplayer.game.jellyjumper) {
_global.com.midasplayer.game.jellyjumper = new Object();
}
if (!_global.com.midasplayer.game.jellyjumper.Game) {
var _local1 = function () {
super();
Stage.scaleMode = "noScale";
Stage.showMenu = false;
_root._quality = "best";
_root._focusrect = false;
com.midasplayer.util.GameBase.setGameMode(_root.gamemode);
com.midasplayer.util.Log.setLevel(com.midasplayer.util.Log.LEVEL_NONE);
this.init(this);
};
_global.com.midasplayer.game.jellyjumper.Game = _local1;
//_global.com.midasplayer.game.jellyjumper.Game extends com.midasplayer.util.GameBase
var _local2 = _local1.prototype;
//_global.com.midasplayer.game.jellyjumper.Game implements _global.com.midasplayer.timing.Timeable
_local1.initOutro = function (layer) {
var _local2 = 20;
com.midasplayer.game.jellyjumper.Game.blopps_ = new Array();
var _local3 = 0;
while (_local3 < _local2) {
var _local4 = layer.getNextHighestDepth();
var _local5 = com.midasplayer.game.jellyjumper.Blopp(layer.attachMovie("blopp", "blopp" + _local4, _local4));
_local5.init(_local3 / _local2);
_local5._xscale = 75 + ((25 * _local3) / _local2);
_local5._yscale = 75 + ((25 * _local3) / _local2);
_local5._x = random(855) - 50;
_local5._y = 430 + ((60 * _local3) / _local2);
com.midasplayer.game.jellyjumper.Game.blopps_.push(_local5);
_local3 = _local3 + 1;
}
};
_local1.showOutro = function (layer) {
var _local2 = com.midasplayer.game.jellyjumper.Game.blopps_.length;
var _local3 = 0;
while (_local3 < _local2) {
var _local4 = com.midasplayer.game.jellyjumper.Game.blopps_[_local3];
_local4.show();
_local3 = _local3 + 1;
}
};
_local2.startGame = function () {
this.sceneLayer_ = _root.createEmptyMovieClip("scenelayer", _root.getNextHighestDepth());
this.editorLayer_ = _root.createEmptyMovieClip("editorlayer", _root.getNextHighestDepth());
this.overlayLayer_ = _root.createEmptyMovieClip("overlaylayer", _root.getNextHighestDepth());
this.seed_ = Number(com.midasplayer.util.GameBase.gameData.get("seed"));
if (com.midasplayer.game.jellyjumper.Game.DEBUG_MODE) {
var _local3 = new com.midasplayer.game.jellyjumper.Replayer(this);
} else if (com.midasplayer.game.jellyjumper.Game.EDITOR_MODE) {
this.startEditor();
} else {
this.startGame2();
}
};
_local2.startGame2 = function () {
this.initScene();
this.showIntro();
};
_local2.initScene = function () {
var _local2 = random(13 - 1) + 1;
if (_local2 == 1) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("OrangeWall,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,300,0;fbc,400,0;fbc,500,0;fbc,700,0;fbo,600,0;wlod,0,425;wlod,0,350;wlod,0,275;wlod,0,200;sb,50,450;sb,75,425;sb,100,400;sb,125,375;sb,150,350;sb,175,325;sb,200,300;sb,225,275;sb,50,375;sb,75,350;sb,100,325;sb,125,300;sb,150,275;sb,175,250;sb,200,375;sb,225,350;sb,250,325;sb,275,300;sb,300,275;sb,250,250;sb,200,225;sb,700,450;sb,675,425;sb,650,400;sb,625,375;sb,600,350;sb,575,325;sb,550,300;sb,525,275;sb,500,250;sb,700,375;sb,675,350;sb,650,325;sb,625,300;sb,600,275;sb,575,250;sb,550,225;sb,575,400;sb,550,375;sb,525,350;sb,500,325;sb,475,300;sb,450,275;sb,600,425;sb,150,425;sb,175,400;sb,625,450;sb,325,250;sb,425,250;sb,350,225;sb,400,225;sb,275,225;sb,475,225;sb,225,200;sb,525,200;sb,450,200;sb,300,200;sb,375,200;sb,325,175;sb,425,175;sb,250,175;sb,500,175;sb,275,150;sb,475,150;sb,350,150;sb,400,150;sb,375,125;sb,325,125;sb,425,125;sb,375,100;ord,375,300;ords,250,450;ords,500,450;wrod,725,425;wrod,725,350;wrod,725,275;wrod,725,200;osd,650,200;k,375,250;wrod,725,125;wlod,0,125;g,375,175;"));
this.scene_.addLevelByData(String("Ella,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;fbo2,200,0;fbo,300,0;osbd,300,225;osbd,375,225;osbd,450,225;osbd,525,225;osbd,225,225;sb,175,275;sb,225,275;sb,275,275;sb,325,275;sb,375,275;sb,425,275;sb,475,275;sb,525,275;sb,575,275;sb,175,300;sb,225,300;sb,275,300;sb,325,300;sb,375,300;sb,425,300;sb,475,300;sb,525,300;sb,575,300;sb,175,325;sb,225,325;sb,275,325;sb,325,325;sb,425,325;sb,475,325;sb,525,325;sb,575,325;sb,225,350;sb,275,350;sb,325,350;sb,375,350;sb,425,350;sb,475,350;sb,525,350;sb,575,350;sb,275,375;sb,325,375;sb,375,375;sb,425,375;sb,475,375;sb,525,375;sb,175,400;sb,325,400;sb,375,400;sb,425,400;sb,475,400;sb,575,400;sb,175,425;sb,225,425;sb,375,425;sb,425,425;sb,525,425;sb,575,425;sb,175,450;sb,225,450;sb,275,450;sb,475,450;sb,525,450;sb,575,450;sb,175,475;sb,225,475;sb,275,475;sb,325,475;sb,375,475;sb,425,475;sb,475,475;sb,525,475;sb,575,475;sb,175,500;sb,225,500;sb,275,500;sb,325,500;sb,375,500;sb,425,500;sb,475,500;sb,525,500;sb,575,500;sb,225,525;sb,275,525;sb,325,525;sb,375,525;sb,425,525;sb,475,525;sb,525,525;sb,275,550;sb,325,550;sb,375,550;sb,425,550;sb,475,550;sb,325,575;sb,375,575;sb,425,575;sb,125,275;sb,625,275;sb,675,275;sb,125,300;sb,125,325;sb,625,300;sb,625,325;sb,625,375;sb,625,400;sb,625,425;sb,625,450;sb,625,475;sb,125,375;sb,125,400;sb,125,425;sb,125,450;sb,125,475;sb,75,325;sb,75,350;sb,75,375;sb,75,400;sb,75,425;sb,675,300;sb,675,325;sb,675,350;sb,675,375;sb,675,400;sb,675,425;sb,175,350;sb,225,375;sb,275,400;sb,325,425;sb,75,275;sb,75,300;g,375,325;k,375,450;ord,225,625;ord,525,625;ords,75,75;ords,675,75;e,175,375;e,625,350;"));
this.scene_.addLevelByData(String("Shaft,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,375,375;sb,375,400;sb,325,225;sb,375,225;sb,425,225;sb,425,200;sb,375,200;sb,325,200;sb,325,175;sb,375,175;sb,425,175;sb,425,150;sb,375,150;sb,325,150;sb,325,125;sb,375,125;sb,425,125;sb,425,100;sb,375,100;sb,325,100;sb,475,375;sb,275,375;sb,325,375;sb,425,375;sb,425,400;sb,475,400;sb,525,400;sb,325,400;sb,275,400;fbo,300,0;osd,375,275;wlod,0,800;wrod,725,800;osns,325,950;osns,425,950;sb,700,50;sb,50,50;wloh,0,725;wloh,0,650;orns,175,825;orns,525,775;orns,625,625;wloh,0,575;wloh,0,500;ofr,175,500;sb,475,100;sb,475,125;sb,475,150;sb,475,175;sb,475,200;sb,475,225;sb,275,100;sb,275,125;sb,275,150;sb,275,175;sb,275,200;sb,275,225;sb,225,100;sb,225,125;sb,225,150;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,525,100;sb,525,125;sb,525,150;sb,525,175;sb,525,200;sb,525,225;sb,525,250;sb,525,275;sb,225,275;sb,275,275;sb,275,250;sb,475,250;sb,475,275;sb,525,375;sb,575,375;sb,625,375;sb,675,375;sb,575,400;sb,625,400;sb,675,400;sb,525,300;sb,525,325;sb,525,350;k,600,75;b,500,75;ofb,25,700;ofb,75,700;ofb,125,700;ofbr,175,700;ofr,175,650;wroh,150,625;wroh,150,550;wroh,150,475;sb,125,675;sb,50,675;orns,275,325;sb,475,300;sb,475,325;sb,475,350;ords,600,900;osns,575,450;ords,375,700;sb,275,425;sb,325,425;sb,375,425;sb,425,425;sb,475,425;sb,525,425;sb,275,450;sb,325,450;sb,375,450;sb,425,450;sb,475,450;sb,525,450;sb,350,575;sb,400,575;sb,450,575;sb,500,575;sb,550,600;sb,500,600;sb,450,600;sb,400,600;sb,350,600;sb,475,750;sb,450,725;sb,425,700;sb,225,800;sb,250,775;sb,275,750;sb,300,725;sb,325,700;sb,550,575;sb,600,575;sb,600,550;sb,600,525;sb,600,500;sb,550,725;sb,575,700;sb,600,675;oftr,175,475;ord,625,250;osds,125,200;sb,325,325;sb,375,325;sb,425,325;sb,325,350;sb,375,350;sb,425,350;sb,525,475;sb,525,500;sb,525,525;sb,475,475;sb,475,500;sb,475,525;sb,275,475;sb,325,475;sb,375,475;sb,425,475;sb,275,500;sb,325,500;sb,375,500;sb,425,500;sb,275,525;sb,325,525;sb,375,525;sb,425,525;sb,50,750;ofr,175,550;ofr,175,600;ords,275,575;sb,175,100;sb,175,125;sb,175,150;sb,175,175;sb,175,200;sb,575,100;sb,575,125;sb,575,150;sb,575,175;sb,575,200;g,575,325;e,125,300;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 2) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("Black Nose,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,50,50;sb,75,75;sb,100,100;sb,125,125;sb,150,150;sb,125,75;sb,150,50;sb,75,125;sb,50,150;sb,225,50;sb,250,75;sb,275,100;sb,300,125;sb,325,150;sb,250,125;sb,225,150;sb,300,75;sb,325,50;sb,700,50;sb,675,75;sb,650,100;sb,625,125;sb,600,150;sb,675,125;sb,700,150;sb,625,75;sb,600,50;sb,525,50;sb,500,75;sb,475,100;sb,450,125;sb,425,150;sb,500,125;sb,525,150;sb,450,75;sb,425,50;sb,300,275;sb,275,300;sb,225,350;sb,200,375;sb,275,350;sb,300,375;sb,225,300;sb,200,275;sb,150,275;sb,125,300;sb,75,350;sb,50,375;sb,125,350;sb,150,375;sb,75,300;sb,50,275;sb,450,275;sb,475,300;sb,525,350;sb,550,375;sb,475,350;sb,450,375;sb,525,300;sb,550,275;sb,600,275;sb,625,300;sb,675,350;sb,700,375;sb,625,350;sb,600,375;sb,675,300;sb,700,275;osns,175,325;osns,575,325;orbd,375,325;osds,175,475;osds,575,475;fbo2,300,0;fbo,400,0;k,375,250;osds,275,175;osds,475,175;g,600,100;e,375,225;sb,250,325;sb,500,325;"));
this.scene_.addLevelByData(String("Mess,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;fbo2,300,0;osns,350,600;osns,225,350;osns,575,275;osns,600,150;sb,175,375;sb,225,75;sb,225,100;sb,225,125;sb,225,150;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,225,275;sb,225,300;sb,350,225;sb,350,250;sb,350,275;sb,350,300;sb,350,325;sb,350,350;sb,350,375;sb,475,225;sb,475,250;sb,475,275;sb,475,300;sb,475,325;sb,475,350;sb,475,375;sb,600,500;sb,600,325;sb,600,350;sb,600,375;sb,600,400;sb,600,425;sb,600,450;sb,600,475;sb,600,200;sb,600,225;sb,600,50;sb,600,75;sb,600,100;sb,350,75;sb,350,100;sb,350,125;sb,75,225;sb,125,225;sb,175,225;sb,275,225;sb,525,225;sb,650,225;sb,700,225;sb,700,200;sb,650,200;sb,275,200;sb,75,200;sb,125,200;sb,175,200;sb,75,250;sb,125,250;sb,175,250;sb,75,275;sb,125,275;sb,75,300;sb,175,300;sb,400,250;sb,400,275;sb,400,300;sb,275,250;sb,275,275;sb,275,300;sb,525,275;sb,525,300;sb,650,250;sb,700,250;sb,650,275;sb,700,275;sb,700,300;sb,650,300;sb,650,325;sb,700,325;sb,650,350;sb,700,350;sb,525,325;sb,525,350;sb,400,325;sb,400,350;sb,275,325;sb,275,350;sb,175,325;sb,175,350;sb,125,325;sb,125,350;sb,75,325;sb,75,350;sb,475,400;sb,475,425;sb,475,450;sb,475,475;sb,475,500;sb,525,375;sb,525,400;sb,525,425;sb,525,450;sb,525,475;sb,525,500;e,650,400;sb,525,250;sb,475,200;sb,525,200;sb,475,175;sb,525,175;sb,475,150;sb,525,150;b,500,100;sb,400,375;ords,300,425;k,650,150;osn,350,175;sb,650,375;osds,625,675;osbd,75,500;osbd,150,500;sb,75,100;sb,75,125;sb,75,150;sb,75,175;osns,175,150;sb,125,175;sb,125,150;sb,125,125;sb,125,100;sb,75,375;sb,125,375;sb,575,625;sb,525,600;g,100,75;hr,400,75;sb,125,300;sb,175,275;"));
this.scene_.addLevelByData(String("Shaft,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,375,375;sb,375,400;sb,325,225;sb,375,225;sb,425,225;sb,425,200;sb,375,200;sb,325,200;sb,325,175;sb,375,175;sb,425,175;sb,425,150;sb,375,150;sb,325,150;sb,325,125;sb,375,125;sb,425,125;sb,425,100;sb,375,100;sb,325,100;sb,475,375;sb,275,375;sb,325,375;sb,425,375;sb,425,400;sb,475,400;sb,525,400;sb,325,400;sb,275,400;fbo,300,0;osd,375,275;wlod,0,800;wrod,725,800;osns,325,950;osns,425,950;sb,700,50;sb,50,50;wloh,0,725;wloh,0,650;orns,175,825;orns,525,775;orns,625,625;wloh,0,575;wloh,0,500;ofr,175,500;sb,475,100;sb,475,125;sb,475,150;sb,475,175;sb,475,200;sb,475,225;sb,275,100;sb,275,125;sb,275,150;sb,275,175;sb,275,200;sb,275,225;sb,225,100;sb,225,125;sb,225,150;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,525,100;sb,525,125;sb,525,150;sb,525,175;sb,525,200;sb,525,225;sb,525,250;sb,525,275;sb,225,275;sb,275,275;sb,275,250;sb,475,250;sb,475,275;sb,525,375;sb,575,375;sb,625,375;sb,675,375;sb,575,400;sb,625,400;sb,675,400;sb,525,300;sb,525,325;sb,525,350;k,600,75;b,500,75;ofb,25,700;ofb,75,700;ofb,125,700;ofbr,175,700;ofr,175,650;wroh,150,625;wroh,150,550;wroh,150,475;sb,125,675;sb,50,675;orns,275,325;sb,475,300;sb,475,325;sb,475,350;ords,600,900;osns,575,450;ords,375,700;sb,275,425;sb,325,425;sb,375,425;sb,425,425;sb,475,425;sb,525,425;sb,275,450;sb,325,450;sb,375,450;sb,425,450;sb,475,450;sb,525,450;sb,350,575;sb,400,575;sb,450,575;sb,500,575;sb,550,600;sb,500,600;sb,450,600;sb,400,600;sb,350,600;sb,475,750;sb,450,725;sb,425,700;sb,225,800;sb,250,775;sb,275,750;sb,300,725;sb,325,700;sb,550,575;sb,600,575;sb,600,550;sb,600,525;sb,600,500;sb,550,725;sb,575,700;sb,600,675;oftr,175,475;ord,625,250;osds,125,200;sb,325,325;sb,375,325;sb,425,325;sb,325,350;sb,375,350;sb,425,350;sb,525,475;sb,525,500;sb,525,525;sb,475,475;sb,475,500;sb,475,525;sb,275,475;sb,325,475;sb,375,475;sb,425,475;sb,275,500;sb,325,500;sb,375,500;sb,425,500;sb,275,525;sb,325,525;sb,375,525;sb,425,525;sb,50,750;ofr,175,550;ofr,175,600;ords,275,575;sb,175,100;sb,175,125;sb,175,150;sb,175,175;sb,175,200;sb,575,100;sb,575,125;sb,575,150;sb,575,175;sb,575,200;g,575,325;e,125,300;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 3) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("X times 8,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,50,50;sb,75,75;sb,100,100;sb,125,125;sb,150,150;sb,125,75;sb,150,50;sb,75,125;sb,50,150;sb,225,50;sb,250,75;sb,275,100;sb,300,125;sb,250,125;sb,225,150;sb,300,75;sb,325,50;sb,700,50;sb,675,75;sb,650,100;sb,625,125;sb,600,150;sb,675,125;sb,700,150;sb,625,75;sb,600,50;sb,525,50;sb,500,75;sb,475,100;sb,450,125;sb,500,125;sb,525,150;sb,450,75;sb,425,50;fbo2,300,0;fbo,400,0;k,375,250;wrod,725,125;wlod,0,125;sb,600,175;sb,700,175;sb,625,200;sb,675,200;sb,650,225;sb,625,250;sb,675,250;sb,600,275;sb,700,275;sb,525,175;sb,425,175;sb,450,200;sb,500,200;sb,475,225;sb,450,250;sb,500,250;sb,425,275;sb,525,275;sb,325,175;sb,225,175;sb,250,200;sb,300,200;sb,275,225;sb,250,250;sb,300,250;sb,225,275;sb,325,275;sb,150,175;sb,50,175;sb,75,200;sb,125,200;sb,100,225;sb,75,250;sb,125,250;sb,50,275;sb,150,275;orbd,175,450;orbd,550,450;osns,175,225;osns,575,225;osd,375,400;g,325,150;e,425,150;"));
this.scene_.addLevelByData(String("Mess,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;fbo2,300,0;osns,350,600;osns,225,350;osns,575,275;osns,600,150;sb,175,375;sb,225,75;sb,225,100;sb,225,125;sb,225,150;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,225,275;sb,225,300;sb,350,225;sb,350,250;sb,350,275;sb,350,300;sb,350,325;sb,350,350;sb,350,375;sb,475,225;sb,475,250;sb,475,275;sb,475,300;sb,475,325;sb,475,350;sb,475,375;sb,600,500;sb,600,325;sb,600,350;sb,600,375;sb,600,400;sb,600,425;sb,600,450;sb,600,475;sb,600,200;sb,600,225;sb,600,50;sb,600,75;sb,600,100;sb,350,75;sb,350,100;sb,350,125;sb,75,225;sb,125,225;sb,175,225;sb,275,225;sb,525,225;sb,650,225;sb,700,225;sb,700,200;sb,650,200;sb,275,200;sb,75,200;sb,125,200;sb,175,200;sb,75,250;sb,125,250;sb,175,250;sb,75,275;sb,125,275;sb,75,300;sb,175,300;sb,400,250;sb,400,275;sb,400,300;sb,275,250;sb,275,275;sb,275,300;sb,525,275;sb,525,300;sb,650,250;sb,700,250;sb,650,275;sb,700,275;sb,700,300;sb,650,300;sb,650,325;sb,700,325;sb,650,350;sb,700,350;sb,525,325;sb,525,350;sb,400,325;sb,400,350;sb,275,325;sb,275,350;sb,175,325;sb,175,350;sb,125,325;sb,125,350;sb,75,325;sb,75,350;sb,475,400;sb,475,425;sb,475,450;sb,475,475;sb,475,500;sb,525,375;sb,525,400;sb,525,425;sb,525,450;sb,525,475;sb,525,500;e,650,400;sb,525,250;sb,475,200;sb,525,200;sb,475,175;sb,525,175;sb,475,150;sb,525,150;b,500,100;sb,400,375;ords,300,425;k,650,150;osn,350,175;sb,650,375;osds,625,675;osbd,75,500;osbd,150,500;sb,75,100;sb,75,125;sb,75,150;sb,75,175;osns,175,150;sb,125,175;sb,125,150;sb,125,125;sb,125,100;sb,75,375;sb,125,375;sb,575,625;sb,525,600;g,100,75;hr,400,75;sb,125,300;sb,175,275;"));
this.scene_.addLevelByData(String("Shaft,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,375,375;sb,375,400;sb,325,225;sb,375,225;sb,425,225;sb,425,200;sb,375,200;sb,325,200;sb,325,175;sb,375,175;sb,425,175;sb,425,150;sb,375,150;sb,325,150;sb,325,125;sb,375,125;sb,425,125;sb,425,100;sb,375,100;sb,325,100;sb,475,375;sb,275,375;sb,325,375;sb,425,375;sb,425,400;sb,475,400;sb,525,400;sb,325,400;sb,275,400;fbo,300,0;osd,375,275;wlod,0,800;wrod,725,800;osns,325,950;osns,425,950;sb,700,50;sb,50,50;wloh,0,725;wloh,0,650;orns,175,825;orns,525,775;orns,625,625;wloh,0,575;wloh,0,500;ofr,175,500;sb,475,100;sb,475,125;sb,475,150;sb,475,175;sb,475,200;sb,475,225;sb,275,100;sb,275,125;sb,275,150;sb,275,175;sb,275,200;sb,275,225;sb,225,100;sb,225,125;sb,225,150;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,525,100;sb,525,125;sb,525,150;sb,525,175;sb,525,200;sb,525,225;sb,525,250;sb,525,275;sb,225,275;sb,275,275;sb,275,250;sb,475,250;sb,475,275;sb,525,375;sb,575,375;sb,625,375;sb,675,375;sb,575,400;sb,625,400;sb,675,400;sb,525,300;sb,525,325;sb,525,350;k,600,75;b,500,75;ofb,25,700;ofb,75,700;ofb,125,700;ofbr,175,700;ofr,175,650;wroh,150,625;wroh,150,550;wroh,150,475;sb,125,675;sb,50,675;orns,275,325;sb,475,300;sb,475,325;sb,475,350;ords,600,900;osns,575,450;ords,375,700;sb,275,425;sb,325,425;sb,375,425;sb,425,425;sb,475,425;sb,525,425;sb,275,450;sb,325,450;sb,375,450;sb,425,450;sb,475,450;sb,525,450;sb,350,575;sb,400,575;sb,450,575;sb,500,575;sb,550,600;sb,500,600;sb,450,600;sb,400,600;sb,350,600;sb,475,750;sb,450,725;sb,425,700;sb,225,800;sb,250,775;sb,275,750;sb,300,725;sb,325,700;sb,550,575;sb,600,575;sb,600,550;sb,600,525;sb,600,500;sb,550,725;sb,575,700;sb,600,675;oftr,175,475;ord,625,250;osds,125,200;sb,325,325;sb,375,325;sb,425,325;sb,325,350;sb,375,350;sb,425,350;sb,525,475;sb,525,500;sb,525,525;sb,475,475;sb,475,500;sb,475,525;sb,275,475;sb,325,475;sb,375,475;sb,425,475;sb,275,500;sb,325,500;sb,375,500;sb,425,500;sb,275,525;sb,325,525;sb,375,525;sb,425,525;sb,50,750;ofr,175,550;ofr,175,600;ords,275,575;sb,175,100;sb,175,125;sb,175,150;sb,175,175;sb,175,200;sb,575,100;sb,575,125;sb,575,150;sb,575,175;sb,575,200;g,575,325;e,125,300;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 4) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("X times 8,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,50,50;sb,75,75;sb,100,100;sb,125,125;sb,150,150;sb,125,75;sb,150,50;sb,75,125;sb,50,150;sb,225,50;sb,250,75;sb,275,100;sb,300,125;sb,250,125;sb,225,150;sb,300,75;sb,325,50;sb,700,50;sb,675,75;sb,650,100;sb,625,125;sb,600,150;sb,675,125;sb,700,150;sb,625,75;sb,600,50;sb,525,50;sb,500,75;sb,475,100;sb,450,125;sb,500,125;sb,525,150;sb,450,75;sb,425,50;fbo2,300,0;fbo,400,0;k,375,250;wrod,725,125;wlod,0,125;sb,600,175;sb,700,175;sb,625,200;sb,675,200;sb,650,225;sb,625,250;sb,675,250;sb,600,275;sb,700,275;sb,525,175;sb,425,175;sb,450,200;sb,500,200;sb,475,225;sb,450,250;sb,500,250;sb,425,275;sb,525,275;sb,325,175;sb,225,175;sb,250,200;sb,300,200;sb,275,225;sb,250,250;sb,300,250;sb,225,275;sb,325,275;sb,150,175;sb,50,175;sb,75,200;sb,125,200;sb,100,225;sb,75,250;sb,125,250;sb,50,275;sb,150,275;orbd,175,450;orbd,550,450;osns,175,225;osns,575,225;osd,375,400;g,325,150;e,425,150;"));
this.scene_.addLevelByData(String("Mr B,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,350,525;sb,400,525;sb,450,525;sb,350,500;sb,400,500;sb,450,500;sb,350,475;sb,400,475;sb,450,475;sb,300,450;sb,350,450;sb,400,450;sb,450,450;sb,500,450;sb,300,425;sb,350,425;sb,400,425;sb,450,425;sb,500,425;sb,300,400;sb,350,400;sb,400,400;sb,450,400;sb,500,400;sb,250,375;sb,300,375;sb,350,375;sb,400,375;sb,450,375;sb,500,375;sb,550,375;sb,250,350;sb,300,350;sb,350,350;sb,400,350;sb,450,350;sb,500,350;sb,550,350;sb,350,325;sb,400,325;sb,350,300;sb,400,300;sb,350,275;sb,400,275;sb,400,250;sb,450,250;sb,450,275;sb,450,300;sb,450,325;osns,200,700;osns,125,575;osns,550,700;osns,650,575;oft,275,550;oft,325,550;oft,375,550;oft,425,550;oft,475,550;sb,350,150;sb,350,175;sb,350,200;sb,350,225;sb,400,125;sb,400,150;sb,400,175;sb,400,200;sb,400,225;sb,450,125;sb,450,150;sb,450,175;sb,450,200;sb,450,225;osbd,525,500;osbd,525,300;osds,125,225;osds,625,225;sb,250,400;sb,250,425;sb,250,450;sb,550,400;sb,550,425;sb,550,450;sb,600,350;sb,650,350;sb,700,350;sb,600,375;sb,650,375;sb,700,375;sb,600,400;sb,650,400;sb,600,425;sb,650,425;sb,700,425;sb,600,450;sb,650,450;sb,700,450;sb,50,350;sb,100,350;sb,150,350;sb,200,350;sb,50,375;sb,100,375;sb,150,375;sb,200,375;sb,50,400;sb,100,400;sb,150,400;sb,200,400;sb,50,425;sb,100,425;sb,150,425;sb,200,425;sb,50,450;sb,100,450;sb,150,450;sb,200,450;osbd,225,300;sb,300,125;sb,300,150;sb,300,175;sb,300,200;sb,300,225;sb,300,250;sb,300,275;sb,300,300;sb,300,325;osbd,225,500;sb,300,475;sb,300,500;sb,300,525;sb,200,250;sb,250,250;sb,500,250;sb,550,250;sb,200,225;sb,250,225;sb,500,225;sb,550,225;g,350,250;sb,350,125;hr,700,400;e,225,75;e,550,75;oft,225,550;oft,175,550;oft,525,550;k,625,175;oftr,575,550;oftl,150,550;ofbl,150,575;ofbr,575,575;ofb,175,575;ofb,225,575;ofb,275,575;ofb,325,575;ofb,375,575;ofb,425,575;ofb,475,575;ofb,525,575;fbo2,300,0;fbo,400,0;sb,50,50;"));
this.scene_.addLevelByData(String("Mr Long,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;wlos,0,975;wlos,0,900;wlos,0,825;wlos,0,750;wlos,0,675;wlos,0,600;wlos,0,525;wlos,0,450;wlos,0,375;wros,725,975;wros,725,900;wros,725,825;wros,725,750;wros,725,675;wros,725,600;wros,725,525;wros,725,450;wros,725,375;osns,175,550;osns,175,600;osns,175,650;osns,175,700;osns,175,750;osns,175,800;osns,175,850;osns,175,900;osns,175,400;osns,175,450;osns,175,500;osns,575,500;osns,575,400;osns,575,450;osns,575,550;osns,575,600;osns,575,650;osns,575,700;osns,575,750;osns,575,800;osns,575,850;osns,575,900;sb,650,900;sb,650,550;sb,650,575;sb,650,600;sb,650,625;sb,650,650;sb,650,675;sb,650,700;sb,650,725;sb,650,750;sb,650,775;sb,650,800;sb,650,825;sb,650,850;sb,650,875;sb,650,375;sb,650,400;sb,650,425;sb,650,450;sb,650,475;sb,650,500;sb,650,525;sb,75,550;sb,75,600;sb,75,625;sb,75,650;sb,75,675;sb,75,700;sb,75,725;sb,75,750;sb,75,775;sb,75,800;sb,75,825;sb,75,850;sb,75,875;sb,75,900;sb,75,925;sb,75,525;sb,75,375;sb,75,400;sb,75,425;sb,75,450;sb,75,475;sb,75,500;sb,75,950;sb,650,925;sb,650,950;osss,375,550;osss,375,600;osss,375,650;osss,375,700;osss,375,750;osss,375,800;osss,375,850;osss,375,900;osss,375,400;osss,375,450;osss,375,500;sb,275,550;sb,275,575;sb,275,600;sb,275,625;sb,275,650;sb,275,675;sb,275,700;sb,275,725;sb,275,750;sb,275,775;sb,275,800;sb,275,825;sb,275,850;sb,275,875;sb,275,900;sb,275,925;sb,275,950;sb,275,375;sb,275,400;sb,275,425;sb,275,450;sb,275,475;sb,275,500;sb,275,525;sb,475,375;sb,475,400;sb,475,425;sb,475,450;sb,475,475;sb,475,500;sb,475,525;sb,475,550;sb,475,575;sb,475,600;sb,475,625;sb,475,650;sb,475,675;sb,475,700;sb,475,725;sb,475,750;sb,475,775;sb,475,800;sb,475,825;sb,475,850;sb,475,875;sb,475,900;sb,475,925;sb,475,950;fbo2,300,0;osds,375,350;osds,175,350;osds,575,350;osns,175,200;osns,575,200;osds,175,50;osds,575,50;ors,375,200;sb,325,300;sb,425,300;sb,450,275;sb,475,250;sb,500,225;sb,525,200;sb,300,275;sb,275,250;sb,250,225;sb,225,200;sb,250,175;sb,275,150;sb,300,125;sb,325,100;sb,350,75;sb,375,50;sb,500,175;sb,475,150;sb,450,125;sb,425,100;sb,400,75;sb,375,300;sb,275,200;sb,300,225;sb,325,250;sb,350,275;sb,400,275;sb,425,250;sb,450,225;sb,475,200;sb,450,175;sb,425,150;sb,400,125;sb,350,125;sb,375,100;sb,325,150;sb,300,175;sb,75,575;sb,700,200;sb,650,200;sb,50,200;sb,100,200;sb,175,100;sb,175,125;sb,175,150;sb,575,100;sb,575,125;sb,575,150;sb,575,250;sb,575,275;sb,575,300;sb,175,250;sb,175,275;sb,175,300;k,375,250;sb,375,150;g,650,150;b,275,100;e,475,350;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 5) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("X times 8,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,50,50;sb,75,75;sb,100,100;sb,125,125;sb,150,150;sb,125,75;sb,150,50;sb,75,125;sb,50,150;sb,225,50;sb,250,75;sb,275,100;sb,300,125;sb,250,125;sb,225,150;sb,300,75;sb,325,50;sb,700,50;sb,675,75;sb,650,100;sb,625,125;sb,600,150;sb,675,125;sb,700,150;sb,625,75;sb,600,50;sb,525,50;sb,500,75;sb,475,100;sb,450,125;sb,500,125;sb,525,150;sb,450,75;sb,425,50;fbo2,300,0;fbo,400,0;k,375,250;wrod,725,125;wlod,0,125;sb,600,175;sb,700,175;sb,625,200;sb,675,200;sb,650,225;sb,625,250;sb,675,250;sb,600,275;sb,700,275;sb,525,175;sb,425,175;sb,450,200;sb,500,200;sb,475,225;sb,450,250;sb,500,250;sb,425,275;sb,525,275;sb,325,175;sb,225,175;sb,250,200;sb,300,200;sb,275,225;sb,250,250;sb,300,250;sb,225,275;sb,325,275;sb,150,175;sb,50,175;sb,75,200;sb,125,200;sb,100,225;sb,75,250;sb,125,250;sb,50,275;sb,150,275;orbd,175,450;orbd,550,450;osns,175,225;osns,575,225;osd,375,400;g,325,150;e,425,150;"));
this.scene_.addLevelByData(String("Mr B,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,350,525;sb,400,525;sb,450,525;sb,350,500;sb,400,500;sb,450,500;sb,350,475;sb,400,475;sb,450,475;sb,300,450;sb,350,450;sb,400,450;sb,450,450;sb,500,450;sb,300,425;sb,350,425;sb,400,425;sb,450,425;sb,500,425;sb,300,400;sb,350,400;sb,400,400;sb,450,400;sb,500,400;sb,250,375;sb,300,375;sb,350,375;sb,400,375;sb,450,375;sb,500,375;sb,550,375;sb,250,350;sb,300,350;sb,350,350;sb,400,350;sb,450,350;sb,500,350;sb,550,350;sb,350,325;sb,400,325;sb,350,300;sb,400,300;sb,350,275;sb,400,275;sb,400,250;sb,450,250;sb,450,275;sb,450,300;sb,450,325;osns,200,700;osns,125,575;osns,550,700;osns,650,575;oft,275,550;oft,325,550;oft,375,550;oft,425,550;oft,475,550;sb,350,150;sb,350,175;sb,350,200;sb,350,225;sb,400,125;sb,400,150;sb,400,175;sb,400,200;sb,400,225;sb,450,125;sb,450,150;sb,450,175;sb,450,200;sb,450,225;osbd,525,500;osbd,525,300;osds,125,225;osds,625,225;sb,250,400;sb,250,425;sb,250,450;sb,550,400;sb,550,425;sb,550,450;sb,600,350;sb,650,350;sb,700,350;sb,600,375;sb,650,375;sb,700,375;sb,600,400;sb,650,400;sb,600,425;sb,650,425;sb,700,425;sb,600,450;sb,650,450;sb,700,450;sb,50,350;sb,100,350;sb,150,350;sb,200,350;sb,50,375;sb,100,375;sb,150,375;sb,200,375;sb,50,400;sb,100,400;sb,150,400;sb,200,400;sb,50,425;sb,100,425;sb,150,425;sb,200,425;sb,50,450;sb,100,450;sb,150,450;sb,200,450;osbd,225,300;sb,300,125;sb,300,150;sb,300,175;sb,300,200;sb,300,225;sb,300,250;sb,300,275;sb,300,300;sb,300,325;osbd,225,500;sb,300,475;sb,300,500;sb,300,525;sb,200,250;sb,250,250;sb,500,250;sb,550,250;sb,200,225;sb,250,225;sb,500,225;sb,550,225;g,350,250;sb,350,125;hr,700,400;e,225,75;e,550,75;oft,225,550;oft,175,550;oft,525,550;k,625,175;oftr,575,550;oftl,150,550;ofbl,150,575;ofbr,575,575;ofb,175,575;ofb,225,575;ofb,275,575;ofb,325,575;ofb,375,575;ofb,425,575;ofb,475,575;ofb,525,575;fbo2,300,0;fbo,400,0;sb,50,50;"));
this.scene_.addLevelByData(String("Grump,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;orbd,375,375;sb,325,425;sb,375,425;sb,325,450;sb,375,450;sb,325,475;sb,375,475;sb,325,500;sb,375,500;sb,325,525;sb,325,550;sb,375,550;sb,325,575;sb,375,575;sb,325,600;sb,375,600;sb,425,425;sb,425,450;sb,425,475;sb,425,500;sb,425,525;sb,425,550;sb,425,575;sb,425,600;sb,375,150;sb,375,175;sb,375,200;sb,375,225;sb,375,250;sb,375,275;sb,375,300;sb,375,325;sb,375,50;sb,375,75;sb,375,100;sb,375,125;ord,225,875;osss,550,775;wlos,0,975;wlos,0,900;wlos,0,825;osns,150,450;wrod,725,525;wrod,725,450;wloh,0,575;wloh,0,500;orn,375,775;sb,150,225;sb,150,250;sb,150,275;sb,150,300;sb,150,325;sb,150,350;sb,150,375;sb,150,400;sb,600,225;sb,600,250;sb,600,275;sb,600,300;sb,600,325;sb,600,350;sb,600,375;sb,600,400;sb,600,425;sb,600,450;sb,600,475;sb,600,500;sb,550,500;sb,550,525;sb,550,550;sb,550,575;sb,550,600;sb,550,625;sb,550,650;sb,550,675;sb,550,700;sb,550,725;sb,225,475;sb,225,500;sb,225,525;sb,225,550;sb,225,575;sb,225,600;sb,225,625;sb,225,650;sb,225,675;sb,225,700;sb,225,725;sb,225,750;sb,225,775;sb,225,800;sb,225,825;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,225,275;sb,225,300;sb,225,325;sb,225,350;sb,225,375;sb,225,400;sb,225,425;sb,225,450;sb,275,200;sb,300,225;sb,325,250;sb,425,250;sb,475,225;sb,525,200;sb,550,175;sb,200,125;sb,250,125;sb,300,125;sb,450,125;sb,500,125;sb,550,125;sb,325,100;sb,425,100;sb,50,50;sb,700,50;sb,550,425;sb,550,450;sb,550,475;sb,550,350;sb,550,375;sb,550,400;sb,550,250;sb,550,275;sb,550,300;sb,550,325;dr,375,525;e,175,75;wlobd,0,650;osns,650,900;osns,475,850;fbo2,300,0;fbo,400,0;sb,325,175;sb,275,175;sb,475,175;sb,650,175;sb,700,175;sb,100,175;sb,50,175;sb,325,200;sb,475,200;sb,100,200;sb,50,200;sb,650,200;sb,700,200;hr,425,175;hr,425,200;sb,425,275;sb,425,300;sb,425,325;sb,325,275;sb,325,300;sb,325,325;sb,50,225;sb,100,225;sb,650,225;sb,700,225;sb,475,325;sb,275,325;sb,375,925;sb,550,925;k,475,275;osd,375,650;osds,600,175;osds,150,175;osns,650,275;osns,100,275;g,550,75;orns,675,650;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 6) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("Black Nose,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,50,50;sb,75,75;sb,100,100;sb,125,125;sb,150,150;sb,125,75;sb,150,50;sb,75,125;sb,50,150;sb,225,50;sb,250,75;sb,275,100;sb,300,125;sb,325,150;sb,250,125;sb,225,150;sb,300,75;sb,325,50;sb,700,50;sb,675,75;sb,650,100;sb,625,125;sb,600,150;sb,675,125;sb,700,150;sb,625,75;sb,600,50;sb,525,50;sb,500,75;sb,475,100;sb,450,125;sb,425,150;sb,500,125;sb,525,150;sb,450,75;sb,425,50;sb,300,275;sb,275,300;sb,225,350;sb,200,375;sb,275,350;sb,300,375;sb,225,300;sb,200,275;sb,150,275;sb,125,300;sb,75,350;sb,50,375;sb,125,350;sb,150,375;sb,75,300;sb,50,275;sb,450,275;sb,475,300;sb,525,350;sb,550,375;sb,475,350;sb,450,375;sb,525,300;sb,550,275;sb,600,275;sb,625,300;sb,675,350;sb,700,375;sb,625,350;sb,600,375;sb,675,300;sb,700,275;osns,175,325;osns,575,325;orbd,375,325;osds,175,475;osds,575,475;fbo2,300,0;fbo,400,0;k,375,250;osds,275,175;osds,475,175;g,600,100;e,375,225;sb,250,325;sb,500,325;"));
this.scene_.addLevelByData(String("Phony,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;fbo2,300,0;osns,150,150;sb,225,50;sb,225,75;sb,225,100;sb,225,125;sb,225,150;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,225,275;sb,225,300;sb,350,225;sb,350,250;sb,350,275;sb,350,300;sb,350,325;sb,350,350;sb,475,225;sb,475,250;sb,475,275;sb,475,300;sb,475,325;sb,600,50;sb,600,75;sb,350,50;sb,350,75;sb,75,225;sb,125,225;sb,175,225;sb,275,225;sb,525,225;sb,275,200;sb,75,200;sb,125,200;sb,175,200;sb,75,250;sb,125,250;sb,175,250;sb,75,275;sb,125,275;sb,75,300;sb,175,300;sb,400,250;sb,400,275;sb,400,300;sb,275,250;sb,275,275;sb,275,300;sb,525,275;sb,525,300;sb,525,325;sb,400,325;sb,400,350;sb,275,325;sb,275,350;sb,175,325;sb,175,350;sb,125,325;sb,125,350;sb,75,325;sb,75,350;sb,525,250;sb,475,200;sb,525,200;sb,475,175;sb,525,175;sb,475,150;sb,525,150;k,650,150;osns,600,675;osns,575,500;osns,625,325;oshs,225,675;osbd,125,550;sb,475,350;sb,475,375;sb,475,400;sb,475,425;sb,475,450;sb,525,350;sb,525,375;sb,525,400;sb,525,425;sb,525,450;sb,525,475;sb,525,500;sb,525,525;sb,475,475;sb,475,500;sb,475,525;sb,475,550;sb,475,575;sb,525,550;sb,525,575;sb,275,50;sb,275,75;sb,275,100;sb,275,125;sb,275,150;sb,275,175;sb,225,325;sb,75,375;sb,125,375;sb,175,375;sb,225,375;sb,75,400;sb,125,400;sb,175,400;sb,225,400;sb,275,400;sb,350,375;sb,400,375;sb,350,400;sb,400,400;sb,225,625;sb,175,675;sb,650,50;sb,650,75;sb,650,100;sb,700,50;sb,700,75;sb,700,100;sb,125,300;sb,175,275;osss,325,675;sb,375,675;sb,325,625;ords,425,575;g,450,100;sb,225,350;sb,275,375;orn,400,175;osns,575,125;sb,400,225;wlobn,0,325;wlobn,0,400;osds,275,450;sb,500,125;e,325,100;sb,350,125;"));
this.scene_.addLevelByData(String("Mr Long,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;wlos,0,975;wlos,0,900;wlos,0,825;wlos,0,750;wlos,0,675;wlos,0,600;wlos,0,525;wlos,0,450;wlos,0,375;wros,725,975;wros,725,900;wros,725,825;wros,725,750;wros,725,675;wros,725,600;wros,725,525;wros,725,450;wros,725,375;osns,175,550;osns,175,600;osns,175,650;osns,175,700;osns,175,750;osns,175,800;osns,175,850;osns,175,900;osns,175,400;osns,175,450;osns,175,500;osns,575,500;osns,575,400;osns,575,450;osns,575,550;osns,575,600;osns,575,650;osns,575,700;osns,575,750;osns,575,800;osns,575,850;osns,575,900;sb,650,900;sb,650,550;sb,650,575;sb,650,600;sb,650,625;sb,650,650;sb,650,675;sb,650,700;sb,650,725;sb,650,750;sb,650,775;sb,650,800;sb,650,825;sb,650,850;sb,650,875;sb,650,375;sb,650,400;sb,650,425;sb,650,450;sb,650,475;sb,650,500;sb,650,525;sb,75,550;sb,75,600;sb,75,625;sb,75,650;sb,75,675;sb,75,700;sb,75,725;sb,75,750;sb,75,775;sb,75,800;sb,75,825;sb,75,850;sb,75,875;sb,75,900;sb,75,925;sb,75,525;sb,75,375;sb,75,400;sb,75,425;sb,75,450;sb,75,475;sb,75,500;sb,75,950;sb,650,925;sb,650,950;osss,375,550;osss,375,600;osss,375,650;osss,375,700;osss,375,750;osss,375,800;osss,375,850;osss,375,900;osss,375,400;osss,375,450;osss,375,500;sb,275,550;sb,275,575;sb,275,600;sb,275,625;sb,275,650;sb,275,675;sb,275,700;sb,275,725;sb,275,750;sb,275,775;sb,275,800;sb,275,825;sb,275,850;sb,275,875;sb,275,900;sb,275,925;sb,275,950;sb,275,375;sb,275,400;sb,275,425;sb,275,450;sb,275,475;sb,275,500;sb,275,525;sb,475,375;sb,475,400;sb,475,425;sb,475,450;sb,475,475;sb,475,500;sb,475,525;sb,475,550;sb,475,575;sb,475,600;sb,475,625;sb,475,650;sb,475,675;sb,475,700;sb,475,725;sb,475,750;sb,475,775;sb,475,800;sb,475,825;sb,475,850;sb,475,875;sb,475,900;sb,475,925;sb,475,950;fbo2,300,0;osds,375,350;osds,175,350;osds,575,350;osns,175,200;osns,575,200;osds,175,50;osds,575,50;ors,375,200;sb,325,300;sb,425,300;sb,450,275;sb,475,250;sb,500,225;sb,525,200;sb,300,275;sb,275,250;sb,250,225;sb,225,200;sb,250,175;sb,275,150;sb,300,125;sb,325,100;sb,350,75;sb,375,50;sb,500,175;sb,475,150;sb,450,125;sb,425,100;sb,400,75;sb,375,300;sb,275,200;sb,300,225;sb,325,250;sb,350,275;sb,400,275;sb,425,250;sb,450,225;sb,475,200;sb,450,175;sb,425,150;sb,400,125;sb,350,125;sb,375,100;sb,325,150;sb,300,175;sb,75,575;sb,700,200;sb,650,200;sb,50,200;sb,100,200;sb,175,100;sb,175,125;sb,175,150;sb,575,100;sb,575,125;sb,575,150;sb,575,250;sb,575,275;sb,575,300;sb,175,250;sb,175,275;sb,175,300;k,375,250;sb,375,150;g,650,150;b,275,100;e,475,350;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 7) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("X times 8,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,50,50;sb,75,75;sb,100,100;sb,125,125;sb,150,150;sb,125,75;sb,150,50;sb,75,125;sb,50,150;sb,225,50;sb,250,75;sb,275,100;sb,300,125;sb,250,125;sb,225,150;sb,300,75;sb,325,50;sb,700,50;sb,675,75;sb,650,100;sb,625,125;sb,600,150;sb,675,125;sb,700,150;sb,625,75;sb,600,50;sb,525,50;sb,500,75;sb,475,100;sb,450,125;sb,500,125;sb,525,150;sb,450,75;sb,425,50;fbo2,300,0;fbo,400,0;k,375,250;wrod,725,125;wlod,0,125;sb,600,175;sb,700,175;sb,625,200;sb,675,200;sb,650,225;sb,625,250;sb,675,250;sb,600,275;sb,700,275;sb,525,175;sb,425,175;sb,450,200;sb,500,200;sb,475,225;sb,450,250;sb,500,250;sb,425,275;sb,525,275;sb,325,175;sb,225,175;sb,250,200;sb,300,200;sb,275,225;sb,250,250;sb,300,250;sb,225,275;sb,325,275;sb,150,175;sb,50,175;sb,75,200;sb,125,200;sb,100,225;sb,75,250;sb,125,250;sb,50,275;sb,150,275;orbd,175,450;orbd,550,450;osns,175,225;osns,575,225;osd,375,400;g,325,150;e,425,150;"));
this.scene_.addLevelByData(String("Funny Games,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,300,0;fbc,400,0;fbc,600,0;fbc,700,0;osns,375,675;osns,275,600;osns,200,500;osns,100,375;osns,275,300;osns,450,250;sb,50,325;sb,100,325;sb,125,300;sb,225,275;sb,275,250;sb,325,250;sb,375,250;sb,400,225;sb,450,200;sb,500,200;sb,550,200;sb,625,125;sb,675,100;sb,700,75;sb,525,175;sb,475,175;sb,350,225;sb,300,225;sb,225,250;sb,175,275;sb,175,250;sb,125,275;sb,75,300;sb,375,625;sb,350,600;sb,325,575;sb,300,550;sb,275,525;sb,250,500;sb,250,475;sb,225,450;sb,200,425;sb,175,400;sb,150,375;sb,150,350;sb,150,325;osds,525,500;sb,575,475;sb,475,475;sb,450,450;sb,425,425;sb,400,400;sb,375,375;sb,350,350;sb,600,450;sb,625,425;sb,675,375;sb,700,350;sb,400,350;sb,425,375;sb,450,400;sb,475,425;sb,500,450;sb,550,450;sb,575,425;sb,600,400;sb,625,375;sb,650,350;sb,450,350;sb,475,375;sb,500,400;sb,525,425;sb,550,400;sb,575,375;sb,600,350;sb,500,350;sb,525,375;sb,550,350;k,50,375;osbd,75,450;sb,550,225;sb,550,250;sb,550,275;sb,550,300;sb,550,325;sb,500,225;sb,500,250;sb,500,275;sb,500,300;sb,500,325;sb,600,225;sb,600,250;sb,600,275;sb,600,300;sb,600,325;sb,450,300;sb,450,325;sb,400,275;sb,400,300;sb,400,325;sb,350,275;sb,350,300;sb,350,325;sb,650,225;sb,700,225;sb,650,250;sb,700,250;sb,650,275;sb,700,275;sb,650,300;sb,700,300;sb,650,325;sb,700,325;sb,700,125;sb,700,150;sb,700,175;sb,700,200;sb,175,300;sb,225,300;sb,200,325;dr,700,400;sb,50,50;sb,200,350;sb,200,375;sb,225,400;sb,250,425;sb,275,450;sb,300,500;sb,325,525;sb,350,550;sb,375,575;sb,400,600;sb,625,475;sb,575,500;sb,625,500;fbo,500,0;orbds,375,450;e,300,475;g,650,400;sb,650,450;osns,575,150;osds,625,175;oftl,450,525;oftr,675,525;ofbl,450,550;ofbr,675,550;ofb,475,550;ofb,525,550;ofb,575,550;ofb,625,550;oft,475,525;oft,525,525;oft,575,525;oft,625,525;sb,575,600;sb,675,475;sb,675,500;"));
this.scene_.addLevelByData(String("Grump,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;orbd,375,375;sb,325,425;sb,375,425;sb,325,450;sb,375,450;sb,325,475;sb,375,475;sb,325,500;sb,375,500;sb,325,525;sb,325,550;sb,375,550;sb,325,575;sb,375,575;sb,325,600;sb,375,600;sb,425,425;sb,425,450;sb,425,475;sb,425,500;sb,425,525;sb,425,550;sb,425,575;sb,425,600;sb,375,150;sb,375,175;sb,375,200;sb,375,225;sb,375,250;sb,375,275;sb,375,300;sb,375,325;sb,375,50;sb,375,75;sb,375,100;sb,375,125;ord,225,875;osss,550,775;wlos,0,975;wlos,0,900;wlos,0,825;osns,150,450;wrod,725,525;wrod,725,450;wloh,0,575;wloh,0,500;orn,375,775;sb,150,225;sb,150,250;sb,150,275;sb,150,300;sb,150,325;sb,150,350;sb,150,375;sb,150,400;sb,600,225;sb,600,250;sb,600,275;sb,600,300;sb,600,325;sb,600,350;sb,600,375;sb,600,400;sb,600,425;sb,600,450;sb,600,475;sb,600,500;sb,550,500;sb,550,525;sb,550,550;sb,550,575;sb,550,600;sb,550,625;sb,550,650;sb,550,675;sb,550,700;sb,550,725;sb,225,475;sb,225,500;sb,225,525;sb,225,550;sb,225,575;sb,225,600;sb,225,625;sb,225,650;sb,225,675;sb,225,700;sb,225,725;sb,225,750;sb,225,775;sb,225,800;sb,225,825;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,225,275;sb,225,300;sb,225,325;sb,225,350;sb,225,375;sb,225,400;sb,225,425;sb,225,450;sb,275,200;sb,300,225;sb,325,250;sb,425,250;sb,475,225;sb,525,200;sb,550,175;sb,200,125;sb,250,125;sb,300,125;sb,450,125;sb,500,125;sb,550,125;sb,325,100;sb,425,100;sb,50,50;sb,700,50;sb,550,425;sb,550,450;sb,550,475;sb,550,350;sb,550,375;sb,550,400;sb,550,250;sb,550,275;sb,550,300;sb,550,325;dr,375,525;e,175,75;wlobd,0,650;osns,650,900;osns,475,850;fbo2,300,0;fbo,400,0;sb,325,175;sb,275,175;sb,475,175;sb,650,175;sb,700,175;sb,100,175;sb,50,175;sb,325,200;sb,475,200;sb,100,200;sb,50,200;sb,650,200;sb,700,200;hr,425,175;hr,425,200;sb,425,275;sb,425,300;sb,425,325;sb,325,275;sb,325,300;sb,325,325;sb,50,225;sb,100,225;sb,650,225;sb,700,225;sb,475,325;sb,275,325;sb,375,925;sb,550,925;k,475,275;osd,375,650;osds,600,175;osds,150,175;osns,650,275;osns,100,275;g,550,75;orns,675,650;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 8) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("OrangeWall,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,300,0;fbc,400,0;fbc,500,0;fbc,700,0;fbo,600,0;wlod,0,425;wlod,0,350;wlod,0,275;wlod,0,200;sb,50,450;sb,75,425;sb,100,400;sb,125,375;sb,150,350;sb,175,325;sb,200,300;sb,225,275;sb,50,375;sb,75,350;sb,100,325;sb,125,300;sb,150,275;sb,175,250;sb,200,375;sb,225,350;sb,250,325;sb,275,300;sb,300,275;sb,250,250;sb,200,225;sb,700,450;sb,675,425;sb,650,400;sb,625,375;sb,600,350;sb,575,325;sb,550,300;sb,525,275;sb,500,250;sb,700,375;sb,675,350;sb,650,325;sb,625,300;sb,600,275;sb,575,250;sb,550,225;sb,575,400;sb,550,375;sb,525,350;sb,500,325;sb,475,300;sb,450,275;sb,600,425;sb,150,425;sb,175,400;sb,625,450;sb,325,250;sb,425,250;sb,350,225;sb,400,225;sb,275,225;sb,475,225;sb,225,200;sb,525,200;sb,450,200;sb,300,200;sb,375,200;sb,325,175;sb,425,175;sb,250,175;sb,500,175;sb,275,150;sb,475,150;sb,350,150;sb,400,150;sb,375,125;sb,325,125;sb,425,125;sb,375,100;ord,375,300;ords,250,450;ords,500,450;wrod,725,425;wrod,725,350;wrod,725,275;wrod,725,200;osd,650,200;k,375,250;wrod,725,125;wlod,0,125;g,375,175;"));
this.scene_.addLevelByData(String("Mess,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;fbo2,300,0;osns,350,600;osns,225,350;osns,575,275;osns,600,150;sb,175,375;sb,225,75;sb,225,100;sb,225,125;sb,225,150;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,225,275;sb,225,300;sb,350,225;sb,350,250;sb,350,275;sb,350,300;sb,350,325;sb,350,350;sb,350,375;sb,475,225;sb,475,250;sb,475,275;sb,475,300;sb,475,325;sb,475,350;sb,475,375;sb,600,500;sb,600,325;sb,600,350;sb,600,375;sb,600,400;sb,600,425;sb,600,450;sb,600,475;sb,600,200;sb,600,225;sb,600,50;sb,600,75;sb,600,100;sb,350,75;sb,350,100;sb,350,125;sb,75,225;sb,125,225;sb,175,225;sb,275,225;sb,525,225;sb,650,225;sb,700,225;sb,700,200;sb,650,200;sb,275,200;sb,75,200;sb,125,200;sb,175,200;sb,75,250;sb,125,250;sb,175,250;sb,75,275;sb,125,275;sb,75,300;sb,175,300;sb,400,250;sb,400,275;sb,400,300;sb,275,250;sb,275,275;sb,275,300;sb,525,275;sb,525,300;sb,650,250;sb,700,250;sb,650,275;sb,700,275;sb,700,300;sb,650,300;sb,650,325;sb,700,325;sb,650,350;sb,700,350;sb,525,325;sb,525,350;sb,400,325;sb,400,350;sb,275,325;sb,275,350;sb,175,325;sb,175,350;sb,125,325;sb,125,350;sb,75,325;sb,75,350;sb,475,400;sb,475,425;sb,475,450;sb,475,475;sb,475,500;sb,525,375;sb,525,400;sb,525,425;sb,525,450;sb,525,475;sb,525,500;e,650,400;sb,525,250;sb,475,200;sb,525,200;sb,475,175;sb,525,175;sb,475,150;sb,525,150;b,500,100;sb,400,375;ords,300,425;k,650,150;osn,350,175;sb,650,375;osds,625,675;osbd,75,500;osbd,150,500;sb,75,100;sb,75,125;sb,75,150;sb,75,175;osns,175,150;sb,125,175;sb,125,150;sb,125,125;sb,125,100;sb,75,375;sb,125,375;sb,575,625;sb,525,600;g,100,75;hr,400,75;sb,125,300;sb,175,275;"));
this.scene_.addLevelByData(String("Mr Long,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;wlos,0,975;wlos,0,900;wlos,0,825;wlos,0,750;wlos,0,675;wlos,0,600;wlos,0,525;wlos,0,450;wlos,0,375;wros,725,975;wros,725,900;wros,725,825;wros,725,750;wros,725,675;wros,725,600;wros,725,525;wros,725,450;wros,725,375;osns,175,550;osns,175,600;osns,175,650;osns,175,700;osns,175,750;osns,175,800;osns,175,850;osns,175,900;osns,175,400;osns,175,450;osns,175,500;osns,575,500;osns,575,400;osns,575,450;osns,575,550;osns,575,600;osns,575,650;osns,575,700;osns,575,750;osns,575,800;osns,575,850;osns,575,900;sb,650,900;sb,650,550;sb,650,575;sb,650,600;sb,650,625;sb,650,650;sb,650,675;sb,650,700;sb,650,725;sb,650,750;sb,650,775;sb,650,800;sb,650,825;sb,650,850;sb,650,875;sb,650,375;sb,650,400;sb,650,425;sb,650,450;sb,650,475;sb,650,500;sb,650,525;sb,75,550;sb,75,600;sb,75,625;sb,75,650;sb,75,675;sb,75,700;sb,75,725;sb,75,750;sb,75,775;sb,75,800;sb,75,825;sb,75,850;sb,75,875;sb,75,900;sb,75,925;sb,75,525;sb,75,375;sb,75,400;sb,75,425;sb,75,450;sb,75,475;sb,75,500;sb,75,950;sb,650,925;sb,650,950;osss,375,550;osss,375,600;osss,375,650;osss,375,700;osss,375,750;osss,375,800;osss,375,850;osss,375,900;osss,375,400;osss,375,450;osss,375,500;sb,275,550;sb,275,575;sb,275,600;sb,275,625;sb,275,650;sb,275,675;sb,275,700;sb,275,725;sb,275,750;sb,275,775;sb,275,800;sb,275,825;sb,275,850;sb,275,875;sb,275,900;sb,275,925;sb,275,950;sb,275,375;sb,275,400;sb,275,425;sb,275,450;sb,275,475;sb,275,500;sb,275,525;sb,475,375;sb,475,400;sb,475,425;sb,475,450;sb,475,475;sb,475,500;sb,475,525;sb,475,550;sb,475,575;sb,475,600;sb,475,625;sb,475,650;sb,475,675;sb,475,700;sb,475,725;sb,475,750;sb,475,775;sb,475,800;sb,475,825;sb,475,850;sb,475,875;sb,475,900;sb,475,925;sb,475,950;fbo2,300,0;osds,375,350;osds,175,350;osds,575,350;osns,175,200;osns,575,200;osds,175,50;osds,575,50;ors,375,200;sb,325,300;sb,425,300;sb,450,275;sb,475,250;sb,500,225;sb,525,200;sb,300,275;sb,275,250;sb,250,225;sb,225,200;sb,250,175;sb,275,150;sb,300,125;sb,325,100;sb,350,75;sb,375,50;sb,500,175;sb,475,150;sb,450,125;sb,425,100;sb,400,75;sb,375,300;sb,275,200;sb,300,225;sb,325,250;sb,350,275;sb,400,275;sb,425,250;sb,450,225;sb,475,200;sb,450,175;sb,425,150;sb,400,125;sb,350,125;sb,375,100;sb,325,150;sb,300,175;sb,75,575;sb,700,200;sb,650,200;sb,50,200;sb,100,200;sb,175,100;sb,175,125;sb,175,150;sb,575,100;sb,575,125;sb,575,150;sb,575,250;sb,575,275;sb,575,300;sb,175,250;sb,175,275;sb,175,300;k,375,250;sb,375,150;g,650,150;b,275,100;e,475,350;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 9) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("Ghost,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,50,50;sb,75,75;sb,100,100;sb,125,125;sb,150,150;sb,125,75;sb,150,50;sb,75,125;sb,50,150;sb,225,50;sb,250,75;sb,275,100;sb,300,125;sb,325,150;sb,250,125;sb,225,150;sb,300,75;sb,325,50;sb,700,50;sb,675,75;sb,650,100;sb,625,125;sb,600,150;sb,675,125;sb,700,150;sb,625,75;sb,600,50;sb,525,50;sb,500,75;sb,475,100;sb,450,125;sb,425,150;sb,500,125;sb,525,150;sb,450,75;sb,425,50;osds,175,475;osds,575,475;fbo2,300,0;fbo,400,0;k,375,250;sb,75,175;sb,100,200;sb,125,225;sb,150,250;sb,75,225;sb,50,250;sb,125,175;sb,250,175;sb,300,175;sb,275,200;sb,250,225;sb,225,250;sb,300,225;sb,325,250;sb,450,175;sb,500,175;sb,475,200;sb,450,225;sb,500,225;sb,425,250;sb,525,250;sb,625,175;sb,675,175;sb,650,200;sb,625,225;sb,675,225;sb,600,250;sb,700,250;g,275,150;e,475,150;wrod,725,125;wlod,0,125;osns,375,375;osds,175,200;osds,575,200;sb,225,450;sb,275,425;sb,525,450;sb,475,425;sb,425,400;sb,325,400;"));
this.scene_.addLevelByData(String("Mr B,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,350,525;sb,400,525;sb,450,525;sb,350,500;sb,400,500;sb,450,500;sb,350,475;sb,400,475;sb,450,475;sb,300,450;sb,350,450;sb,400,450;sb,450,450;sb,500,450;sb,300,425;sb,350,425;sb,400,425;sb,450,425;sb,500,425;sb,300,400;sb,350,400;sb,400,400;sb,450,400;sb,500,400;sb,250,375;sb,300,375;sb,350,375;sb,400,375;sb,450,375;sb,500,375;sb,550,375;sb,250,350;sb,300,350;sb,350,350;sb,400,350;sb,450,350;sb,500,350;sb,550,350;sb,350,325;sb,400,325;sb,350,300;sb,400,300;sb,350,275;sb,400,275;sb,400,250;sb,450,250;sb,450,275;sb,450,300;sb,450,325;osns,200,700;osns,125,575;osns,550,700;osns,650,575;oft,275,550;oft,325,550;oft,375,550;oft,425,550;oft,475,550;sb,350,150;sb,350,175;sb,350,200;sb,350,225;sb,400,125;sb,400,150;sb,400,175;sb,400,200;sb,400,225;sb,450,125;sb,450,150;sb,450,175;sb,450,200;sb,450,225;osbd,525,500;osbd,525,300;osds,125,225;osds,625,225;sb,250,400;sb,250,425;sb,250,450;sb,550,400;sb,550,425;sb,550,450;sb,600,350;sb,650,350;sb,700,350;sb,600,375;sb,650,375;sb,700,375;sb,600,400;sb,650,400;sb,600,425;sb,650,425;sb,700,425;sb,600,450;sb,650,450;sb,700,450;sb,50,350;sb,100,350;sb,150,350;sb,200,350;sb,50,375;sb,100,375;sb,150,375;sb,200,375;sb,50,400;sb,100,400;sb,150,400;sb,200,400;sb,50,425;sb,100,425;sb,150,425;sb,200,425;sb,50,450;sb,100,450;sb,150,450;sb,200,450;osbd,225,300;sb,300,125;sb,300,150;sb,300,175;sb,300,200;sb,300,225;sb,300,250;sb,300,275;sb,300,300;sb,300,325;osbd,225,500;sb,300,475;sb,300,500;sb,300,525;sb,200,250;sb,250,250;sb,500,250;sb,550,250;sb,200,225;sb,250,225;sb,500,225;sb,550,225;g,350,250;sb,350,125;hr,700,400;e,225,75;e,550,75;oft,225,550;oft,175,550;oft,525,550;k,625,175;oftr,575,550;oftl,150,550;ofbl,150,575;ofbr,575,575;ofb,175,575;ofb,225,575;ofb,275,575;ofb,325,575;ofb,375,575;ofb,425,575;ofb,475,575;ofb,525,575;fbo2,300,0;fbo,400,0;sb,50,50;"));
this.scene_.addLevelByData(String("Center,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,200,0;fbc,300,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;osns,200,875;osns,300,775;osns,550,875;osns,500,825;osns,450,775;osns,300,575;osns,300,625;osns,300,675;osns,300,725;osns,450,525;osns,450,575;osns,450,625;osns,450,675;osns,450,725;osns,300,525;osns,150,875;osns,100,875;osns,50,875;osns,600,875;osns,650,875;osns,700,875;sb,50,450;sb,50,475;sb,50,500;sb,50,525;sb,50,550;sb,50,575;sb,50,600;sb,50,625;sb,50,650;sb,50,675;sb,50,700;sb,50,725;sb,50,750;sb,100,450;sb,100,475;sb,100,500;sb,100,525;sb,100,550;sb,100,575;sb,100,600;sb,100,625;sb,100,650;sb,100,675;sb,100,700;sb,100,725;sb,100,750;osbd,100,800;osbd,175,800;sb,150,450;sb,150,475;sb,150,500;sb,150,525;sb,150,550;sb,150,575;sb,150,600;sb,150,625;sb,150,650;sb,150,675;sb,150,700;sb,150,725;sb,150,750;sb,200,450;sb,200,475;sb,200,500;sb,200,525;sb,200,550;sb,200,575;sb,200,600;sb,200,625;sb,200,650;sb,200,675;sb,200,700;sb,200,725;sb,200,750;sb,250,450;sb,250,475;sb,250,500;sb,250,525;sb,250,550;sb,250,575;sb,250,600;sb,250,625;sb,250,650;sb,250,675;sb,250,700;sb,250,725;sb,50,300;sb,150,300;sb,200,300;sb,250,300;sb,50,325;sb,100,325;sb,150,325;sb,200,325;sb,250,325;sb,50,350;sb,100,350;sb,150,350;sb,200,350;sb,250,350;sb,50,375;sb,100,375;sb,150,375;sb,200,375;sb,250,375;sb,50,400;sb,100,400;sb,150,400;sb,200,400;sb,250,400;sb,50,425;sb,100,425;sb,150,425;sb,200,425;sb,250,425;sb,700,825;ords,450,300;ords,700,50;ords,650,100;ords,600,150;sb,300,300;sb,300,325;sb,300,350;sb,300,375;sb,300,400;sb,350,300;sb,350,325;sb,350,350;sb,400,300;sb,500,775;sb,150,150;sb,200,125;sb,250,100;sb,300,75;sb,350,50;sb,400,75;sb,450,100;sb,500,125;sb,550,150;sb,400,50;sb,450,50;sb,500,50;sb,550,50;sb,600,50;sb,650,50;sb,450,75;sb,500,75;sb,550,75;sb,600,75;sb,500,100;sb,550,100;sb,600,100;sb,550,125;sb,50,50;sb,100,50;sb,150,50;sb,200,50;sb,250,50;sb,300,50;sb,50,75;sb,100,75;sb,150,75;sb,200,75;sb,250,75;sb,50,100;sb,100,100;sb,150,100;sb,200,100;sb,50,125;sb,100,125;sb,150,125;sb,50,150;sb,100,150;sb,700,100;fbo2,100,0;osds,150,225;ords,550,200;k,375,475;e,300,450;g,325,200;g,50,175;osns,250,875;osns,300,825;osns,300,875;osns,500,875;osns,450,825;osns,450,875;osns,250,775;osns,250,825;osns,450,475;osns,450,425;osns,450,375;sb,350,75;e,100,300;sb,400,100;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 10) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("Green,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;osns,225,475;osns,325,125;osns,650,425;osns,100,400;osns,550,500;osns,500,125;sb,100,350;sb,100,325;sb,100,300;sb,100,275;sb,225,425;sb,225,400;sb,225,375;sb,225,350;sb,350,375;sb,350,350;sb,325,250;sb,325,225;sb,325,200;sb,325,175;sb,475,175;sb,625,250;sb,625,200;sb,625,225;sb,650,375;sb,650,350;sb,475,275;sb,475,300;sb,475,325;sb,550,350;sb,550,375;sb,550,400;sb,550,425;sb,550,450;sb,175,125;sb,175,150;sb,175,175;sb,175,200;sb,100,125;sb,100,150;sb,100,175;sb,100,200;sb,100,225;sb,100,250;sb,225,225;sb,225,250;sb,225,275;sb,225,300;sb,225,325;sb,550,175;sb,550,200;sb,550,225;sb,550,250;sb,550,275;sb,550,300;sb,550,325;sb,325,50;sb,325,75;sb,500,50;sb,500,75;sb,625,50;sb,625,75;sb,175,50;sb,175,75;sb,175,100;fbo2,300,0;fbo,400,0;sb,475,425;sb,475,450;sb,350,475;sb,100,450;sb,100,475;sb,650,475;sb,650,500;sb,350,500;sb,700,50;sb,700,300;k,400,300;hr,400,175;g,625,175;sb,700,75;osss,325,300;oshs,650,300;osns,425,225;ords,475,375;ords,350,425;e,275,375;wlobd,0,225;"));
this.scene_.addLevelByData(String("Mr B,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,350,525;sb,400,525;sb,450,525;sb,350,500;sb,400,500;sb,450,500;sb,350,475;sb,400,475;sb,450,475;sb,300,450;sb,350,450;sb,400,450;sb,450,450;sb,500,450;sb,300,425;sb,350,425;sb,400,425;sb,450,425;sb,500,425;sb,300,400;sb,350,400;sb,400,400;sb,450,400;sb,500,400;sb,250,375;sb,300,375;sb,350,375;sb,400,375;sb,450,375;sb,500,375;sb,550,375;sb,250,350;sb,300,350;sb,350,350;sb,400,350;sb,450,350;sb,500,350;sb,550,350;sb,350,325;sb,400,325;sb,350,300;sb,400,300;sb,350,275;sb,400,275;sb,400,250;sb,450,250;sb,450,275;sb,450,300;sb,450,325;osns,200,700;osns,125,575;osns,550,700;osns,650,575;oft,275,550;oft,325,550;oft,375,550;oft,425,550;oft,475,550;sb,350,150;sb,350,175;sb,350,200;sb,350,225;sb,400,125;sb,400,150;sb,400,175;sb,400,200;sb,400,225;sb,450,125;sb,450,150;sb,450,175;sb,450,200;sb,450,225;osbd,525,500;osbd,525,300;osds,125,225;osds,625,225;sb,250,400;sb,250,425;sb,250,450;sb,550,400;sb,550,425;sb,550,450;sb,600,350;sb,650,350;sb,700,350;sb,600,375;sb,650,375;sb,700,375;sb,600,400;sb,650,400;sb,600,425;sb,650,425;sb,700,425;sb,600,450;sb,650,450;sb,700,450;sb,50,350;sb,100,350;sb,150,350;sb,200,350;sb,50,375;sb,100,375;sb,150,375;sb,200,375;sb,50,400;sb,100,400;sb,150,400;sb,200,400;sb,50,425;sb,100,425;sb,150,425;sb,200,425;sb,50,450;sb,100,450;sb,150,450;sb,200,450;osbd,225,300;sb,300,125;sb,300,150;sb,300,175;sb,300,200;sb,300,225;sb,300,250;sb,300,275;sb,300,300;sb,300,325;osbd,225,500;sb,300,475;sb,300,500;sb,300,525;sb,200,250;sb,250,250;sb,500,250;sb,550,250;sb,200,225;sb,250,225;sb,500,225;sb,550,225;g,350,250;sb,350,125;hr,700,400;e,225,75;e,550,75;oft,225,550;oft,175,550;oft,525,550;k,625,175;oftr,575,550;oftl,150,550;ofbl,150,575;ofbr,575,575;ofb,175,575;ofb,225,575;ofb,275,575;ofb,325,575;ofb,375,575;ofb,425,575;ofb,475,575;ofb,525,575;fbo2,300,0;fbo,400,0;sb,50,50;"));
this.scene_.addLevelByData(String("Tower,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,300,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,175,650;sb,175,700;sb,175,725;sb,175,750;sb,175,775;sb,175,800;sb,250,775;sb,250,800;sb,250,825;sb,250,850;sb,250,875;sb,250,900;sb,250,925;sb,250,500;sb,250,525;sb,250,550;sb,250,575;sb,250,600;sb,250,625;sb,250,650;sb,250,675;sb,175,350;sb,175,375;sb,175,400;sb,175,425;sb,175,450;sb,175,475;sb,175,500;sb,175,525;sb,175,550;orss,175,275;sb,50,850;sb,100,850;sb,575,750;sb,575,775;sb,575,800;sb,575,725;sb,575,700;sb,575,650;sb,575,325;sb,575,350;sb,575,375;sb,575,400;sb,575,425;sb,575,450;sb,575,475;sb,575,500;sb,575,525;sb,575,550;orss,575,275;sb,500,775;sb,500,800;sb,500,825;sb,500,850;sb,500,875;sb,500,900;sb,500,925;sb,500,500;sb,500,525;sb,500,550;sb,500,575;sb,500,600;sb,500,625;sb,500,650;sb,500,675;osns,375,725;sb,375,350;sb,375,375;sb,375,400;sb,375,500;sb,375,525;sb,375,550;sb,375,575;sb,375,600;sb,375,625;sb,375,650;sb,375,675;sb,375,800;sb,375,825;sb,375,850;sb,375,875;sb,375,900;sb,375,925;osds,175,175;osds,575,175;sb,525,150;sb,225,175;sb,275,175;sb,325,175;sb,375,175;sb,425,175;sb,475,175;sb,525,175;sb,225,150;sb,275,150;sb,325,150;sb,375,150;sb,425,150;sb,475,150;sb,225,200;sb,275,200;sb,325,200;sb,375,200;sb,425,200;sb,50,625;sb,100,625;sb,100,650;sb,100,675;sb,100,700;sb,100,725;sb,100,750;sb,100,775;sb,100,800;sb,100,825;sb,50,650;sb,50,675;sb,50,700;sb,50,725;sb,50,750;sb,50,775;sb,50,800;sb,50,825;sb,650,625;sb,650,650;sb,650,675;sb,650,700;sb,650,725;sb,650,750;sb,650,775;sb,650,800;sb,650,825;sb,650,850;sb,700,625;sb,700,650;sb,700,675;sb,700,700;sb,700,725;sb,700,750;sb,700,775;sb,700,800;sb,700,825;sb,700,850;k,375,225;ords,500,725;ords,250,725;ords,250,450;ords,500,450;fbo2,400,0;osds,375,275;oft,675,875;oft,625,875;sb,575,125;sb,175,125;osds,175,925;osds,575,925;osns,100,570.9;osns,650,570.9;sb,700,50;sb,650,50;sb,50,50;sb,100,50;g,175,325;sb,175,575;dr,575,675;sb,375,445.45;b,375,320.45;sb,175,675;sb,300,775;sb,450,775;hr,375,775;sb,700,425;oftr,125,875;ofbr,125,900;oftl,600,875;ofbl,600,900;ofb,625,900;ofb,675,900;ofb,75,900;ofb,25,900;oft,75,875;oft,25,875;sb,525,200;e,475,200;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 11) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("Green,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;osns,225,475;osns,325,125;osns,650,425;osns,100,400;osns,550,500;osns,500,125;sb,100,350;sb,100,325;sb,100,300;sb,100,275;sb,225,425;sb,225,400;sb,225,375;sb,225,350;sb,350,375;sb,350,350;sb,325,250;sb,325,225;sb,325,200;sb,325,175;sb,475,175;sb,625,250;sb,625,200;sb,625,225;sb,650,375;sb,650,350;sb,475,275;sb,475,300;sb,475,325;sb,550,350;sb,550,375;sb,550,400;sb,550,425;sb,550,450;sb,175,125;sb,175,150;sb,175,175;sb,175,200;sb,100,125;sb,100,150;sb,100,175;sb,100,200;sb,100,225;sb,100,250;sb,225,225;sb,225,250;sb,225,275;sb,225,300;sb,225,325;sb,550,175;sb,550,200;sb,550,225;sb,550,250;sb,550,275;sb,550,300;sb,550,325;sb,325,50;sb,325,75;sb,500,50;sb,500,75;sb,625,50;sb,625,75;sb,175,50;sb,175,75;sb,175,100;fbo2,300,0;fbo,400,0;sb,475,425;sb,475,450;sb,350,475;sb,100,450;sb,100,475;sb,650,475;sb,650,500;sb,350,500;sb,700,50;sb,700,300;k,400,300;hr,400,175;g,625,175;sb,700,75;osss,325,300;oshs,650,300;osns,425,225;ords,475,375;ords,350,425;e,275,375;wlobd,0,225;"));
this.scene_.addLevelByData(String("Ella,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;fbo2,200,0;fbo,300,0;osbd,300,225;osbd,375,225;osbd,450,225;osbd,525,225;osbd,225,225;sb,175,275;sb,225,275;sb,275,275;sb,325,275;sb,375,275;sb,425,275;sb,475,275;sb,525,275;sb,575,275;sb,175,300;sb,225,300;sb,275,300;sb,325,300;sb,375,300;sb,425,300;sb,475,300;sb,525,300;sb,575,300;sb,175,325;sb,225,325;sb,275,325;sb,325,325;sb,425,325;sb,475,325;sb,525,325;sb,575,325;sb,225,350;sb,275,350;sb,325,350;sb,375,350;sb,425,350;sb,475,350;sb,525,350;sb,575,350;sb,275,375;sb,325,375;sb,375,375;sb,425,375;sb,475,375;sb,525,375;sb,175,400;sb,325,400;sb,375,400;sb,425,400;sb,475,400;sb,575,400;sb,175,425;sb,225,425;sb,375,425;sb,425,425;sb,525,425;sb,575,425;sb,175,450;sb,225,450;sb,275,450;sb,475,450;sb,525,450;sb,575,450;sb,175,475;sb,225,475;sb,275,475;sb,325,475;sb,375,475;sb,425,475;sb,475,475;sb,525,475;sb,575,475;sb,175,500;sb,225,500;sb,275,500;sb,325,500;sb,375,500;sb,425,500;sb,475,500;sb,525,500;sb,575,500;sb,225,525;sb,275,525;sb,325,525;sb,375,525;sb,425,525;sb,475,525;sb,525,525;sb,275,550;sb,325,550;sb,375,550;sb,425,550;sb,475,550;sb,325,575;sb,375,575;sb,425,575;sb,125,275;sb,625,275;sb,675,275;sb,125,300;sb,125,325;sb,625,300;sb,625,325;sb,625,375;sb,625,400;sb,625,425;sb,625,450;sb,625,475;sb,125,375;sb,125,400;sb,125,425;sb,125,450;sb,125,475;sb,75,325;sb,75,350;sb,75,375;sb,75,400;sb,75,425;sb,675,300;sb,675,325;sb,675,350;sb,675,375;sb,675,400;sb,675,425;sb,175,350;sb,225,375;sb,275,400;sb,325,425;sb,75,275;sb,75,300;g,375,325;k,375,450;ord,225,625;ord,525,625;ords,75,75;ords,675,75;e,175,375;e,625,350;"));
this.scene_.addLevelByData(String("Tower,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,300,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,175,650;sb,175,700;sb,175,725;sb,175,750;sb,175,775;sb,175,800;sb,250,775;sb,250,800;sb,250,825;sb,250,850;sb,250,875;sb,250,900;sb,250,925;sb,250,500;sb,250,525;sb,250,550;sb,250,575;sb,250,600;sb,250,625;sb,250,650;sb,250,675;sb,175,350;sb,175,375;sb,175,400;sb,175,425;sb,175,450;sb,175,475;sb,175,500;sb,175,525;sb,175,550;orss,175,275;sb,50,850;sb,100,850;sb,575,750;sb,575,775;sb,575,800;sb,575,725;sb,575,700;sb,575,650;sb,575,325;sb,575,350;sb,575,375;sb,575,400;sb,575,425;sb,575,450;sb,575,475;sb,575,500;sb,575,525;sb,575,550;orss,575,275;sb,500,775;sb,500,800;sb,500,825;sb,500,850;sb,500,875;sb,500,900;sb,500,925;sb,500,500;sb,500,525;sb,500,550;sb,500,575;sb,500,600;sb,500,625;sb,500,650;sb,500,675;osns,375,725;sb,375,350;sb,375,375;sb,375,400;sb,375,500;sb,375,525;sb,375,550;sb,375,575;sb,375,600;sb,375,625;sb,375,650;sb,375,675;sb,375,800;sb,375,825;sb,375,850;sb,375,875;sb,375,900;sb,375,925;osds,175,175;osds,575,175;sb,525,150;sb,225,175;sb,275,175;sb,325,175;sb,375,175;sb,425,175;sb,475,175;sb,525,175;sb,225,150;sb,275,150;sb,325,150;sb,375,150;sb,425,150;sb,475,150;sb,225,200;sb,275,200;sb,325,200;sb,375,200;sb,425,200;sb,50,625;sb,100,625;sb,100,650;sb,100,675;sb,100,700;sb,100,725;sb,100,750;sb,100,775;sb,100,800;sb,100,825;sb,50,650;sb,50,675;sb,50,700;sb,50,725;sb,50,750;sb,50,775;sb,50,800;sb,50,825;sb,650,625;sb,650,650;sb,650,675;sb,650,700;sb,650,725;sb,650,750;sb,650,775;sb,650,800;sb,650,825;sb,650,850;sb,700,625;sb,700,650;sb,700,675;sb,700,700;sb,700,725;sb,700,750;sb,700,775;sb,700,800;sb,700,825;sb,700,850;k,375,225;ords,500,725;ords,250,725;ords,250,450;ords,500,450;fbo2,400,0;osds,375,275;oft,675,875;oft,625,875;sb,575,125;sb,175,125;osds,175,925;osds,575,925;osns,100,570.9;osns,650,570.9;sb,700,50;sb,650,50;sb,50,50;sb,100,50;g,175,325;sb,175,575;dr,575,675;sb,375,445.45;b,375,320.45;sb,175,675;sb,300,775;sb,450,775;hr,375,775;sb,700,425;oftr,125,875;ofbr,125,900;oftl,600,875;ofbl,600,900;ofb,625,900;ofb,675,900;ofb,75,900;ofb,25,900;oft,75,875;oft,25,875;sb,525,200;e,475,200;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 12) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("Ghost,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,50,50;sb,75,75;sb,100,100;sb,125,125;sb,150,150;sb,125,75;sb,150,50;sb,75,125;sb,50,150;sb,225,50;sb,250,75;sb,275,100;sb,300,125;sb,325,150;sb,250,125;sb,225,150;sb,300,75;sb,325,50;sb,700,50;sb,675,75;sb,650,100;sb,625,125;sb,600,150;sb,675,125;sb,700,150;sb,625,75;sb,600,50;sb,525,50;sb,500,75;sb,475,100;sb,450,125;sb,425,150;sb,500,125;sb,525,150;sb,450,75;sb,425,50;osds,175,475;osds,575,475;fbo2,300,0;fbo,400,0;k,375,250;sb,75,175;sb,100,200;sb,125,225;sb,150,250;sb,75,225;sb,50,250;sb,125,175;sb,250,175;sb,300,175;sb,275,200;sb,250,225;sb,225,250;sb,300,225;sb,325,250;sb,450,175;sb,500,175;sb,475,200;sb,450,225;sb,500,225;sb,425,250;sb,525,250;sb,625,175;sb,675,175;sb,650,200;sb,625,225;sb,675,225;sb,600,250;sb,700,250;g,275,150;e,475,150;wrod,725,125;wlod,0,125;osns,375,375;osds,175,200;osds,575,200;sb,225,450;sb,275,425;sb,525,450;sb,475,425;sb,425,400;sb,325,400;"));
this.scene_.addLevelByData(String("Ella,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;fbo2,200,0;fbo,300,0;osbd,300,225;osbd,375,225;osbd,450,225;osbd,525,225;osbd,225,225;sb,175,275;sb,225,275;sb,275,275;sb,325,275;sb,375,275;sb,425,275;sb,475,275;sb,525,275;sb,575,275;sb,175,300;sb,225,300;sb,275,300;sb,325,300;sb,375,300;sb,425,300;sb,475,300;sb,525,300;sb,575,300;sb,175,325;sb,225,325;sb,275,325;sb,325,325;sb,425,325;sb,475,325;sb,525,325;sb,575,325;sb,225,350;sb,275,350;sb,325,350;sb,375,350;sb,425,350;sb,475,350;sb,525,350;sb,575,350;sb,275,375;sb,325,375;sb,375,375;sb,425,375;sb,475,375;sb,525,375;sb,175,400;sb,325,400;sb,375,400;sb,425,400;sb,475,400;sb,575,400;sb,175,425;sb,225,425;sb,375,425;sb,425,425;sb,525,425;sb,575,425;sb,175,450;sb,225,450;sb,275,450;sb,475,450;sb,525,450;sb,575,450;sb,175,475;sb,225,475;sb,275,475;sb,325,475;sb,375,475;sb,425,475;sb,475,475;sb,525,475;sb,575,475;sb,175,500;sb,225,500;sb,275,500;sb,325,500;sb,375,500;sb,425,500;sb,475,500;sb,525,500;sb,575,500;sb,225,525;sb,275,525;sb,325,525;sb,375,525;sb,425,525;sb,475,525;sb,525,525;sb,275,550;sb,325,550;sb,375,550;sb,425,550;sb,475,550;sb,325,575;sb,375,575;sb,425,575;sb,125,275;sb,625,275;sb,675,275;sb,125,300;sb,125,325;sb,625,300;sb,625,325;sb,625,375;sb,625,400;sb,625,425;sb,625,450;sb,625,475;sb,125,375;sb,125,400;sb,125,425;sb,125,450;sb,125,475;sb,75,325;sb,75,350;sb,75,375;sb,75,400;sb,75,425;sb,675,300;sb,675,325;sb,675,350;sb,675,375;sb,675,400;sb,675,425;sb,175,350;sb,225,375;sb,275,400;sb,325,425;sb,75,275;sb,75,300;g,375,325;k,375,450;ord,225,625;ord,525,625;ords,75,75;ords,675,75;e,175,375;e,625,350;"));
this.scene_.addLevelByData(String("Shaft,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,100,0;fbc,200,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,375,375;sb,375,400;sb,325,225;sb,375,225;sb,425,225;sb,425,200;sb,375,200;sb,325,200;sb,325,175;sb,375,175;sb,425,175;sb,425,150;sb,375,150;sb,325,150;sb,325,125;sb,375,125;sb,425,125;sb,425,100;sb,375,100;sb,325,100;sb,475,375;sb,275,375;sb,325,375;sb,425,375;sb,425,400;sb,475,400;sb,525,400;sb,325,400;sb,275,400;fbo,300,0;osd,375,275;wlod,0,800;wrod,725,800;osns,325,950;osns,425,950;sb,700,50;sb,50,50;wloh,0,725;wloh,0,650;orns,175,825;orns,525,775;orns,625,625;wloh,0,575;wloh,0,500;ofr,175,500;sb,475,100;sb,475,125;sb,475,150;sb,475,175;sb,475,200;sb,475,225;sb,275,100;sb,275,125;sb,275,150;sb,275,175;sb,275,200;sb,275,225;sb,225,100;sb,225,125;sb,225,150;sb,225,175;sb,225,200;sb,225,225;sb,225,250;sb,525,100;sb,525,125;sb,525,150;sb,525,175;sb,525,200;sb,525,225;sb,525,250;sb,525,275;sb,225,275;sb,275,275;sb,275,250;sb,475,250;sb,475,275;sb,525,375;sb,575,375;sb,625,375;sb,675,375;sb,575,400;sb,625,400;sb,675,400;sb,525,300;sb,525,325;sb,525,350;k,600,75;b,500,75;ofb,25,700;ofb,75,700;ofb,125,700;ofbr,175,700;ofr,175,650;wroh,150,625;wroh,150,550;wroh,150,475;sb,125,675;sb,50,675;orns,275,325;sb,475,300;sb,475,325;sb,475,350;ords,600,900;osns,575,450;ords,375,700;sb,275,425;sb,325,425;sb,375,425;sb,425,425;sb,475,425;sb,525,425;sb,275,450;sb,325,450;sb,375,450;sb,425,450;sb,475,450;sb,525,450;sb,350,575;sb,400,575;sb,450,575;sb,500,575;sb,550,600;sb,500,600;sb,450,600;sb,400,600;sb,350,600;sb,475,750;sb,450,725;sb,425,700;sb,225,800;sb,250,775;sb,275,750;sb,300,725;sb,325,700;sb,550,575;sb,600,575;sb,600,550;sb,600,525;sb,600,500;sb,550,725;sb,575,700;sb,600,675;oftr,175,475;ord,625,250;osds,125,200;sb,325,325;sb,375,325;sb,425,325;sb,325,350;sb,375,350;sb,425,350;sb,525,475;sb,525,500;sb,525,525;sb,475,475;sb,475,500;sb,475,525;sb,275,475;sb,325,475;sb,375,475;sb,425,475;sb,275,500;sb,325,500;sb,375,500;sb,425,500;sb,275,525;sb,325,525;sb,375,525;sb,425,525;sb,50,750;ofr,175,550;ofr,175,600;ords,275,575;sb,175,100;sb,175,125;sb,175,150;sb,175,175;sb,175,200;sb,575,100;sb,575,125;sb,575,150;sb,575,175;sb,575,200;g,575,325;e,125,300;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
if (_local2 == 13) {
this.scene_ = new com.midasplayer.game.jellyjumper.Scene();
this.scene_.init(this, this.sceneLayer_);
this.scene_.clear();
this.scene_.addLevelByData(String("Ghost,1,625,70;fb,25,600;fb,75,600;fb,125,600;fb,175,600;fb,225,600;fb,275,600;fb,325,600;fb,375,600;fb,425,600;fb,475,600;fb,525,600;fb,575,600;fb,625,600;fb,675,600;fbl,0,600;fbr,725,600;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fbc,0,0;fbc,100,0;fbc,200,0;fbc,500,0;fbc,600,0;fbc,700,0;sb,50,50;sb,75,75;sb,100,100;sb,125,125;sb,150,150;sb,125,75;sb,150,50;sb,75,125;sb,50,150;sb,225,50;sb,250,75;sb,275,100;sb,300,125;sb,325,150;sb,250,125;sb,225,150;sb,300,75;sb,325,50;sb,700,50;sb,675,75;sb,650,100;sb,625,125;sb,600,150;sb,675,125;sb,700,150;sb,625,75;sb,600,50;sb,525,50;sb,500,75;sb,475,100;sb,450,125;sb,425,150;sb,500,125;sb,525,150;sb,450,75;sb,425,50;osds,175,475;osds,575,475;fbo2,300,0;fbo,400,0;k,375,250;sb,75,175;sb,100,200;sb,125,225;sb,150,250;sb,75,225;sb,50,250;sb,125,175;sb,250,175;sb,300,175;sb,275,200;sb,250,225;sb,225,250;sb,300,225;sb,325,250;sb,450,175;sb,500,175;sb,475,200;sb,450,225;sb,500,225;sb,425,250;sb,525,250;sb,625,175;sb,675,175;sb,650,200;sb,625,225;sb,675,225;sb,600,250;sb,700,250;g,275,150;e,475,150;wrod,725,125;wlod,0,125;osns,375,375;osds,175,200;osds,575,200;sb,225,450;sb,275,425;sb,525,450;sb,475,425;sb,425,400;sb,325,400;"));
this.scene_.addLevelByData(String("Funny Games,2,825,70;fb,25,800;fb,75,800;fb,125,800;fb,175,800;fb,225,800;fb,275,800;fb,325,800;fb,375,800;fb,425,800;fb,475,800;fb,525,800;fb,575,800;fb,625,800;fb,675,800;fbl,0,800;fbr,725,800;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fbc,0,0;fbc,100,0;fbc,200,0;fbc,300,0;fbc,400,0;fbc,600,0;fbc,700,0;osns,375,675;osns,275,600;osns,200,500;osns,100,375;osns,275,300;osns,450,250;sb,50,325;sb,100,325;sb,125,300;sb,225,275;sb,275,250;sb,325,250;sb,375,250;sb,400,225;sb,450,200;sb,500,200;sb,550,200;sb,625,125;sb,675,100;sb,700,75;sb,525,175;sb,475,175;sb,350,225;sb,300,225;sb,225,250;sb,175,275;sb,175,250;sb,125,275;sb,75,300;sb,375,625;sb,350,600;sb,325,575;sb,300,550;sb,275,525;sb,250,500;sb,250,475;sb,225,450;sb,200,425;sb,175,400;sb,150,375;sb,150,350;sb,150,325;osds,525,500;sb,575,475;sb,475,475;sb,450,450;sb,425,425;sb,400,400;sb,375,375;sb,350,350;sb,600,450;sb,625,425;sb,675,375;sb,700,350;sb,400,350;sb,425,375;sb,450,400;sb,475,425;sb,500,450;sb,550,450;sb,575,425;sb,600,400;sb,625,375;sb,650,350;sb,450,350;sb,475,375;sb,500,400;sb,525,425;sb,550,400;sb,575,375;sb,600,350;sb,500,350;sb,525,375;sb,550,350;k,50,375;osbd,75,450;sb,550,225;sb,550,250;sb,550,275;sb,550,300;sb,550,325;sb,500,225;sb,500,250;sb,500,275;sb,500,300;sb,500,325;sb,600,225;sb,600,250;sb,600,275;sb,600,300;sb,600,325;sb,450,300;sb,450,325;sb,400,275;sb,400,300;sb,400,325;sb,350,275;sb,350,300;sb,350,325;sb,650,225;sb,700,225;sb,650,250;sb,700,250;sb,650,275;sb,700,275;sb,650,300;sb,700,300;sb,650,325;sb,700,325;sb,700,125;sb,700,150;sb,700,175;sb,700,200;sb,175,300;sb,225,300;sb,200,325;dr,700,400;sb,50,50;sb,200,350;sb,200,375;sb,225,400;sb,250,425;sb,275,450;sb,300,500;sb,325,525;sb,350,550;sb,375,575;sb,400,600;sb,625,475;sb,575,500;sb,625,500;fbo,500,0;orbds,375,450;e,300,475;g,650,400;sb,650,450;osns,575,150;osds,625,175;oftl,450,525;oftr,675,525;ofbl,450,550;ofbr,675,550;ofb,475,550;ofb,525,550;ofb,575,550;ofb,625,550;oft,475,525;oft,525,525;oft,575,525;oft,625,525;sb,575,600;sb,675,475;sb,675,500;"));
this.scene_.addLevelByData(String("Center,3,1075,75;fb,25,1050;fb,75,1050;fb,125,1050;fb,175,1050;fb,225,1050;fb,275,1050;fb,325,1050;fb,375,1050;fb,425,1050;fb,475,1050;fb,525,1050;fb,575,1050;fb,625,1050;fb,675,1050;fbl,0,1050;fbr,725,1050;fl,0,0;fl,0,50;fl,0,100;fl,0,150;fl,0,200;fl,0,250;fl,0,300;fl,0,350;fl,0,400;fl,0,450;fl,0,500;fl,0,550;fl,0,600;fl,0,650;fl,0,700;fl,0,750;fl,0,800;fl,0,850;fl,0,900;fl,0,950;fl,0,1000;fr,725,0;fr,725,50;fr,725,100;fr,725,150;fr,725,200;fr,725,250;fr,725,300;fr,725,350;fr,725,400;fr,725,450;fr,725,500;fr,725,550;fr,725,600;fr,725,650;fr,725,700;fr,725,750;fr,725,800;fr,725,850;fr,725,900;fr,725,950;fr,725,1000;fbc,0,0;fbc,200,0;fbc,300,0;fbc,400,0;fbc,500,0;fbc,600,0;fbc,700,0;osns,200,875;osns,300,775;osns,550,875;osns,500,825;osns,450,775;osns,300,575;osns,300,625;osns,300,675;osns,300,725;osns,450,525;osns,450,575;osns,450,625;osns,450,675;osns,450,725;osns,300,525;osns,150,875;osns,100,875;osns,50,875;osns,600,875;osns,650,875;osns,700,875;sb,50,450;sb,50,475;sb,50,500;sb,50,525;sb,50,550;sb,50,575;sb,50,600;sb,50,625;sb,50,650;sb,50,675;sb,50,700;sb,50,725;sb,50,750;sb,100,450;sb,100,475;sb,100,500;sb,100,525;sb,100,550;sb,100,575;sb,100,600;sb,100,625;sb,100,650;sb,100,675;sb,100,700;sb,100,725;sb,100,750;osbd,100,800;osbd,175,800;sb,150,450;sb,150,475;sb,150,500;sb,150,525;sb,150,550;sb,150,575;sb,150,600;sb,150,625;sb,150,650;sb,150,675;sb,150,700;sb,150,725;sb,150,750;sb,200,450;sb,200,475;sb,200,500;sb,200,525;sb,200,550;sb,200,575;sb,200,600;sb,200,625;sb,200,650;sb,200,675;sb,200,700;sb,200,725;sb,200,750;sb,250,450;sb,250,475;sb,250,500;sb,250,525;sb,250,550;sb,250,575;sb,250,600;sb,250,625;sb,250,650;sb,250,675;sb,250,700;sb,250,725;sb,50,300;sb,150,300;sb,200,300;sb,250,300;sb,50,325;sb,100,325;sb,150,325;sb,200,325;sb,250,325;sb,50,350;sb,100,350;sb,150,350;sb,200,350;sb,250,350;sb,50,375;sb,100,375;sb,150,375;sb,200,375;sb,250,375;sb,50,400;sb,100,400;sb,150,400;sb,200,400;sb,250,400;sb,50,425;sb,100,425;sb,150,425;sb,200,425;sb,250,425;sb,700,825;ords,450,300;ords,700,50;ords,650,100;ords,600,150;sb,300,300;sb,300,325;sb,300,350;sb,300,375;sb,300,400;sb,350,300;sb,350,325;sb,350,350;sb,400,300;sb,500,775;sb,150,150;sb,200,125;sb,250,100;sb,300,75;sb,350,50;sb,400,75;sb,450,100;sb,500,125;sb,550,150;sb,400,50;sb,450,50;sb,500,50;sb,550,50;sb,600,50;sb,650,50;sb,450,75;sb,500,75;sb,550,75;sb,600,75;sb,500,100;sb,550,100;sb,600,100;sb,550,125;sb,50,50;sb,100,50;sb,150,50;sb,200,50;sb,250,50;sb,300,50;sb,50,75;sb,100,75;sb,150,75;sb,200,75;sb,250,75;sb,50,100;sb,100,100;sb,150,100;sb,200,100;sb,50,125;sb,100,125;sb,150,125;sb,50,150;sb,100,150;sb,700,100;fbo2,100,0;osds,150,225;ords,550,200;k,375,475;e,300,450;g,325,200;g,50,175;osns,250,875;osns,300,825;osns,300,875;osns,500,875;osns,450,825;osns,450,875;osns,250,775;osns,250,825;osns,450,475;osns,450,425;osns,450,375;sb,350,75;e,100,300;sb,400,100;"));
this.scene_.addLevelByData("level4,4,566;");
this.scene_.prepareForStart();
}
};
_local2.startWhenReady = function () {
if (this.scene_.isReady()) {
this.start();
} else {
com.midasplayer.util.AnimPlayer.delay({millis:10, callback:this.startWhenReady, callback_scope:this});
}
};
_local2.showIntro = function () {
com.midasplayer.fx.SoundManager.play("bunny_intro_melody#1", 30);
this.timer_ = new com.midasplayer.timing.Timer(this, 40);
var _local3 = _root.createEmptyMovieClip("gametimer", _root.getNextHighestDepth());
_local3.onEnterFrame = mx.utils.Delegate.create(this.timer_, this.timer_.advanceTime2);
_root.editorlayer.attachMovie("intro", "intro", _root.editorlayer.getNextHighestDepth());
_root.editorlayer.intro.page._alpha = 0;
var _local4 = new com.midasplayer.game.jellyjumper.anim.IntroAnim(this, _root.editorlayer.intro);
com.midasplayer.util.AnimPlayer.addAnim(_local4);
};
_local2.introEnd = function () {
_root.gametimer.removeMovieClip();
delete this.timer_;
_root.editorlayer.intro.removeMovieClip();
_root.gametimer.onEnterFrame = undefined;
com.midasplayer.util.GameBase.reportGameStart();
com.midasplayer.util.GameBase.reportPlayData(19, (com.midasplayer.game.jellyjumper.Game.VERSION + " ") + this.seed_, "0");
this.startWhenReady();
};
_local2.tick = function (tick) {
com.midasplayer.util.AnimPlayer.tick(tick);
};
_local2.render = function (tick, alpha) {
com.midasplayer.util.AnimPlayer.render(tick, alpha);
};
_local2.start = function () {
com.midasplayer.util.GameBase.reportPlayData(20, "", "0");
_root._quality = "high";
this.scene_.start();
};
_local2.getSeed = function () {
return(this.seed_);
};
_local2.startEditor = function () {
var _local2 = com.midasplayer.game.jellyjumper.editor.Editor(this.editorLayer_.attachMovie("editor", "editor", this.editorLayer_.getNextHighestDepth()));
_local2.init(this);
};
_local2.getScene = function () {
return(this.scene_);
};
_local2.getSceneLayer = function () {
return(this.sceneLayer_);
};
_local2.getOverlayLayer = function () {
return(this.overlayLayer_);
};
_local2.endGamePressed = function () {
this.endGame();
};
_local2.endGame = function (score) {
if (this.gameEnded_) {
return(undefined);
}
this.gameEnded_ = true;
com.midasplayer.util.GameBase.reportGameEnd(score);
};
_local2.quitGame = function () {
if (this.gameQuitted_) {
return(undefined);
}
this.gameQuitted_ = true;
com.midasplayer.util.AnimPlayer.delay({millis:2000, callback:this.quitGame2, callback_scope:this});
};
_local2.quitGame2 = function () {
com.midasplayer.fx.SoundManager.stopAll();
com.midasplayer.util.GameBase.reportGameQuit();
};
_local1.VERSION = "1.0.5";
_local1.DEBUG_MODE = false;
_local1.EDITOR_MODE = false;
(ASSetPropFlags(_global.com.midasplayer.game.jellyjumper.Game.prototype, null, 1));// not popped
}
#endinitclip
Symbol 1473 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Scene] Frame 0
class com.midasplayer.game.jellyjumper.Scene implements com.midasplayer.timing.Timeable
{
var currentLevelNum_, numLevels_, height_, levels_, numGoldBlocksTakenInJump_, numScoreBlocksTakenInJump_, stars_, infoLayer_, levelUp_, clip_, closestCollision, testSphere_, game_, layer_, infoBar_, score_, wantJump_, levelLayer_, lastY, levelJellyScore_, levelComboScore_, clockStartTick_, clockStopTick_, started_, wantedJumpX_, wantedJumpY_, timer_, arrowLayer_, starLayer_, jumperLayer_, cloudLayer_, jumper_, percentCleared_, lastLevelY, timeWarning_, timeWarning2_, gameEnded_, timeOut_;
function Scene () {
currentLevelNum_ = 0;
numLevels_ = 0;
height_ = 0;
levels_ = new Array();
numGoldBlocksTakenInJump_ = new Array(100);
numScoreBlocksTakenInJump_ = new Array(100);
stars_ = new Array();
}
function clear() {
stop();
infoLayer_.level_frame._visible = false;
levelUp_ = false;
infoLayer_.infobar._visible = false;
infoLayer_.endgame_btn._visible = false;
clip_._y = 0;
removeJumper();
closestCollision = new com.midasplayer.phys.Collision();
testSphere_ = new com.midasplayer.phys.Sphere();
currentLevelNum_ = 0;
numLevels_ = 0;
height_ = 0;
levels_ = new Array();
initLayers();
}
function init(game, layer) {
game_ = game;
layer_ = layer;
clip_ = layer;
closestCollision = new com.midasplayer.phys.Collision();
testSphere_ = new com.midasplayer.phys.Sphere();
infoLayer_ = game_.getOverlayLayer();
var _local2 = infoLayer_.getNextHighestDepth();
infoBar_ = com.midasplayer.game.jellyjumper.InfoBar(infoLayer_.attachMovie("infobar", "infobar", _local2));
infoBar_.setPercentCleared(0);
infoBar_.setKeyPercent(0);
infoBar_.setScore(0);
infoBar_.setTimeLeft(LEVEL_MAX_TIME[0]);
infoLayer_.attachMovie("endgame_btn", "endgame_btn", infoLayer_.getNextHighestDepth());
infoLayer_.endgame_btn._x = 10;
infoLayer_.endgame_btn._y = Stage.height - 22;
infoLayer_.endgame_btn.text.autoSize = true;
infoLayer_.endgame_btn.text.text = "END GAME";
infoLayer_.endgame_btn.onPress = mx.utils.Delegate.create(this, endGamePressed);
infoLayer_.endgame_btn.cacheAsBitmap = true;
infoLayer_.attachMovie("sound_btn", "sound_btn", infoLayer_.getNextHighestDepth());
infoLayer_.sound_btn._y = Stage.height - 22;
infoLayer_.sound_btn.text.autoSize = true;
infoLayer_.sound_btn.text.text = "SOUND OFF";
infoLayer_.sound_btn._x = (Stage.width - infoLayer_.sound_btn._width) - 10;
infoLayer_.sound_btn.onPress = mx.utils.Delegate.create(this, soundOnOffPressed);
infoLayer_.sound_btn.cacheAsBitmap = true;
infoLayer_.attachMovie("level_btn", "level_name", infoLayer_.getNextHighestDepth());
infoLayer_.level_name._y = Stage.height - 22;
infoLayer_.level_name._x = 250;
infoLayer_.level_name.text.text = "";
infoLayer_.level_name.cacheAsBitmap = true;
infoLayer_.attachMovie("level_frame", "level_frame", infoLayer_.getNextHighestDepth());
infoLayer_.level_frame._visible = false;
}
function endGamePressed() {
com.midasplayer.util.GameBase.reportPlayData(4, "" + tick_, "0");
infoLayer_.endgame_btn._visible = false;
com.midasplayer.fx.SoundManager.stopAll();
com.midasplayer.fx.SoundManager.play("bunny_end_negative#1", 50);
stop();
showGameOverFrame(0, 0, score_);
game_.endGame(score_);
com.midasplayer.util.AnimPlayer.delay({millis:10000, callback:endGamePressedAction, callback_scope:this});
}
function endGamePressedAction() {
game_.quitGame();
}
function soundOnOffPressed() {
com.midasplayer.fx.SoundManager.enableSounds(!com.midasplayer.fx.SoundManager.isSoundEnabled());
if (com.midasplayer.fx.SoundManager.isSoundEnabled()) {
infoLayer_.sound_btn.text.text = "SOUND OFF";
} else {
infoLayer_.sound_btn.text.text = "SOUND ON";
}
}
function getInfoLayer() {
return(infoLayer_);
}
function getSeed() {
return(game_.getSeed());
}
function prepareForStart() {
score_ = 0;
wantJump_ = false;
infoBar_.setScore(0);
infoBar_.setPercentCleared(0);
var _local3 = levels_[0].getHeight();
var _local2 = 0;
while (_local2 < numLevels_) {
_local3 = _local3 - levels_[_local2].getHeight();
levels_[_local2].setY(_local3);
if (_local2 > 0) {
levels_[_local2].setY(levels_[_local2].getY() + 25);
}
_local2++;
}
clip_._y = 550 - levels_[0].getHeight();
}
function addLevelByData(data) {
var _local3;
var _local2 = levelLayer_.getNextHighestDepth();
_local3 = com.midasplayer.game.jellyjumper.Level(levelLayer_.attachMovie("level", "level" + _local2, _local2));
_local3.setData(data);
addLevel(_local3);
}
function addLevel(level) {
level.init(this, numLevels_ + 1);
level.setVisible(false);
numLevels_++;
levels_.push(level);
if (numLevels_ > 1) {
level.mergeWith(levels_[numLevels_ - 2]);
}
level.setup();
height_ = height_ + level.getHeight();
}
static function xToCol(x) {
var _local1 = Math.floor(x / TILE_SIZE);
_local1 = ((_local1 < 0) ? 0 : (_local1));
return(_local1);
}
static function yToRow(y) {
var _local1 = Math.floor(y / TILE_SIZE);
_local1 = ((_local1 < 0) ? 0 : (_local1));
return(_local1);
}
function isReady() {
var _local3;
var _local2 = 0;
while (_local2 < numLevels_) {
_local3 = levels_[_local2];
if (!_local3.isReady()) {
return(false);
}
_local2++;
}
if (!com.midasplayer.game.jellyjumper.Game.EDITOR_MODE) {
com.midasplayer.game.jellyjumper.Game.initOutro(levels_[numLevels_ - 1]);
}
initJumper();
lastY = 0;
return(true);
}
function start() {
_root.scene = this;
com.midasplayer.fx.SoundManager.stop("bunny_intro_melody#1");
playLoop();
levelJellyScore_ = 0;
levelComboScore_ = 0;
clockStartTick_ = -1;
clockStopTick_ = -1;
levels_[0].setVisible(true);
levels_[1].setVisible(true);
var _local3 = levels_[0].getName();
infoLayer_.level_name.text.text = _local3.substring(7);
infoLayer_.infobar._visible = true;
infoLayer_.endgame_btn._visible = true;
if (!com.midasplayer.game.jellyjumper.Game.DEBUG_MODE) {
initTimer();
Mouse.addListener(this);
}
started_ = true;
if (!com.midasplayer.game.jellyjumper.Game.EDITOR_MODE) {
previewLevel();
}
}
function started() {
return(started_);
}
function stop() {
stopLoop();
Mouse.removeListener(this);
removeTimer();
}
function playLoop() {
if (_root.playingloop) {
return(undefined);
}
_root.playingloop = true;
var _local2 = random(1) + 3;
var _local3 = 20;
com.midasplayer.fx.SoundManager.play("bunny_loop#" + _local2, _local3, false, _root.scene.playLoopAgain);
}
function playLoopAgain() {
_root.playingloop = false;
_root.scene.playLoop();
}
function stopLoop() {
com.midasplayer.fx.SoundManager.stop("bunny_loop#3");
_root.playingloop = false;
}
function onMouseDown() {
var _local3 = Math.round(layer_._xmouse);
var _local2 = Math.round(layer_._ymouse);
jumpTo(_local3, _local2);
}
function jumpTo(x, y) {
if (levelUp_) {
return(undefined);
}
wantJump_ = true;
wantedJumpX_ = x;
wantedJumpY_ = y;
}
function initTimer() {
timer_ = new com.midasplayer.timing.Timer(this, TPS);
var _local3 = _root.createEmptyMovieClip("scenetimer", _root.getNextHighestDepth());
_local3.onEnterFrame = mx.utils.Delegate.create(timer_, timer_.advanceTime2);
}
function removeTimer() {
_root.scenetimer.onEnterFrame = undefined;
_root.scenetimer.removeMovieClip();
delete timer_;
_root.scenetimer.onEnterFrame = undefined;
}
function initLayers() {
levelLayer_ = layer_.createEmptyMovieClip("levellayer", layer_.getNextHighestDepth());
arrowLayer_ = layer_.createEmptyMovieClip("arrowlayer", layer_.getNextHighestDepth());
starLayer_ = layer_.createEmptyMovieClip("starlayer", layer_.getNextHighestDepth());
jumperLayer_ = layer_.createEmptyMovieClip("jumper", layer_.getNextHighestDepth());
cloudLayer_ = layer_.createEmptyMovieClip("cloudlayer", layer_.getNextHighestDepth());
}
function initJumper() {
var _local2 = levels_[0].getHeight();
jumper_ = new com.midasplayer.game.jellyjumper.Jumper(this, 50, (_local2 - 25) - 18.4);
}
function removeJumper() {
jumper_.remove();
arrowLayer_.removeMovieClip();
jumperLayer_.removeMovieClip();
}
function getClip() {
return(clip_);
}
function getCloudLayer() {
return(cloudLayer_);
}
function getJumper() {
return(jumper_);
}
function getJumperLayer() {
return(jumperLayer_);
}
function getArrowLayer() {
return(arrowLayer_);
}
function openFloorGate(levelNum) {
levels_[levelNum - 1].openFloorGate();
}
function closeFloorGate(levelNum) {
levels_[levelNum].closeFloorGate();
}
function closeCeilingGate(levelNum) {
levels_[levelNum].closeCeilingGate();
}
function getHeight() {
return(height_);
}
function getCurrentLevel() {
return(levels_[currentLevelNum_]);
}
function setPercentCleared(p) {
if (p == 100) {
com.midasplayer.fx.SoundManager.play("all_cleared#1", 70);
}
percentCleared_ = p;
infoBar_.setPercentCleared(p);
}
function setKeyPercent(p) {
infoBar_.setKeyPercent(p);
}
function activateKey() {
infoBar_.activateKey();
}
function addScore(n) {
score_ = score_ + n;
infoBar_.setScore(score_);
}
function centerTo(x, y) {
if (levelUp_) {
return(undefined);
}
var _local5 = levels_[currentLevelNum_]._y - PREVIEW_DISTANCE;
var _local4 = (levels_[currentLevelNum_]._y + levels_[currentLevelNum_].getHeight()) - 550;
y = y - 275;
if (y < _local5) {
y = _local5;
}
if (y > _local4) {
y = _local4;
}
var _local3 = -y;
_local3 = Math.round(_local3);
if (_local3 != lastLevelY) {
clip_._y = _local3;
lastLevelY = _local3;
}
}
function canJump(dx, dy) {
var _local2 = testSphere_;
_local2.r = jumper_.r;
_local2.x = jumper_.x;
_local2.y = jumper_.y;
dy = dy + 0.8;
_local2.dx = dx;
_local2.dy = dy;
var _local3 = getCurrentLevel().getCollisionBlock(_local2);
if (_local3 == undefined) {
return(true);
}
if (_local3.collision.t < 0.2) {
var _local5 = _local3.collision.object;
var _local4 = jumper_.collisionObject;
if (_local4 == undefined) {
return(false);
}
if (_local5 != _local4) {
return(true);
}
return(false);
}
return(true);
}
function initJump() {
var _local2 = jumper_.getJumpId() % 100;
numGoldBlocksTakenInJump_[_local2] = 0;
numScoreBlocksTakenInJump_[_local2] = 0;
}
function scoreBlockTaken(b) {
if (levelUp_) {
return(undefined);
}
var _local4 = b.jumpId % 100;
var _local3 = numScoreBlocksTakenInJump_[_local4];
var _local7 = 100 + (_local3 * 10);
var _local11 = numGoldBlocksTakenInJump_[_local4];
levelJellyScore_ = levelJellyScore_ + 100;
levelComboScore_ = levelComboScore_ + (_local3 * 10);
if (_local11 > 0) {
_local7 = _local7 * 2;
levelJellyScore_ = levelJellyScore_ + 100;
levelComboScore_ = levelComboScore_ + (_local3 * 10);
}
addScore(_local7);
var _local8 = 22 + (_local3 % 8);
var _local2 = b.x / 650;
_local2 = ((_local2 < 0.1) ? 0.1 : (_local2));
_local2 = ((_local2 > 0.9) ? 0.9 : (_local2));
_local2 = (2 * _local2) - 1;
var _local6 = ((_local2 <= 0) ? ((-_local2) * 50) : 0);
var _local9 = ((_local2 <= 0) ? (100 - (_local6 * 1.5)) : ((1 - _local2) * 100));
var _local5 = ((_local2 >= 0) ? (_local2 * 50) : 0);
var _local10 = ((_local2 >= 0) ? (100 - (_local5 * 1.5)) : ((_local2 * 100) + 100));
com.midasplayer.fx.SoundManager.play("normal_point_block#" + _local8, 52, false, undefined, _local9, _local6, _local10, _local5);
numScoreBlocksTakenInJump_[_local4]++;
}
function updateJumper() {
if (levelUp_) {
return(undefined);
}
if (wantJump_) {
wantJump_ = false;
if (jumper_.canJump()) {
com.midasplayer.util.GameBase.reportPlayData(8, (((tick_ + " ") + wantedJumpX_) + " ") + wantedJumpY_, "0");
jumper_.jumpTowards(wantedJumpX_, wantedJumpY_);
}
}
var _local25 = false;
if ((jumper_.isSliding() || (jumper_.isResting())) && (jumper_.wantsToJump())) {
jumper_.prepareJump();
initJump();
}
if (jumper_.isSliding() || (jumper_.isJumping())) {
jumper_.dy = jumper_.dy + 0.8;
var _local30 = jumper_.x;
var _local29 = jumper_.y;
var _local6 = 1;
var _local28 = 0;
var _local3;
var _local26 = levels_[currentLevelNum_].nearbyBlocks_[com.midasplayer.game.jellyjumper.Level.xToCol(_local30)][com.midasplayer.game.jellyjumper.Level.yToRow(_local29)];
var _local27 = _local26.length;
while ((_local6 > 0) && (_local28 < 10)) {
_local28++;
closestCollision.t = 999;
var _local12 = 0;
while (_local12 < _local27) {
var _local7 = _local26[_local12];
if (_local7 != undefined) {
var _local13 = closestCollision.t;
_local7.getCollision(jumper_, closestCollision);
if (jumper_.r > 20) {
jumper_.r = 17;
_local7.getCollision(jumper_, closestCollision);
jumper_.r = 32;
}
if (closestCollision.t < _local13) {
_local3 = _local7;
}
}
_local12++;
}
var _local13 = closestCollision.t;
if (((_local3 != undefined) && (_local13 >= 0)) && (_local13 < _local6)) {
_local6 = _local6 - _local13;
var _local4 = closestCollision.material;
var _local5 = _local3.x / 650;
_local5 = ((_local5 < 0) ? 0 : (_local5));
_local5 = ((_local5 > 1) ? 1 : (_local5));
_local5 = (2 * _local5) - 1;
var _local10 = ((_local5 <= 0) ? 100 : ((1 - _local5) * 100));
var _local9 = ((_local5 <= 0) ? ((-_local5) * 30) : 0);
var _local11 = ((_local5 >= 0) ? 100 : ((_local5 * 100) + 100));
var _local8 = ((_local5 >= 0) ? (_local5 * 30) : 0);
_local3.jumpId = jumper_.getJumpId();
if (_local13 > 0.02) {
jumper_.x = jumper_.x + ((jumper_.dx * (_local13 - 0.02)) + (closestCollision.nx * 0));
jumper_.y = jumper_.y + ((jumper_.dy * (_local13 - 0.02)) + (closestCollision.ny * 0));
}
if ((_local4 == com.midasplayer.game.jellyjumper.Material.NORMAL) || (_local4 == com.midasplayer.game.jellyjumper.Material.POLKA)) {
if (_local4 == com.midasplayer.game.jellyjumper.Material.POLKA) {
com.midasplayer.fx.SoundManager.play("size_block#5", 70, false, undefined, _local10, _local9, _local11, _local8);
} else {
com.midasplayer.fx.SoundManager.play("size_block#2", 70, false, undefined, _local10, _local9, _local11, _local8);
}
_local3.hit();
jumper_.setCollision(closestCollision, _local3);
jumper_.endJump();
_local6 = 0;
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.HALF) {
com.midasplayer.fx.SoundManager.play("size_block#4", 70, false, undefined, _local10, _local9, _local11, _local8);
_local3.hit();
jumper_.setCollision(closestCollision, _local3);
jumper_.endJump();
_local6 = 0;
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.DOUBLE) {
com.midasplayer.fx.SoundManager.play("size_block#1", 70, false, undefined, _local10, _local9, _local11, _local8);
_local3.hit();
jumper_.setCollision(closestCollision, _local3);
jumper_.endJump();
_local6 = 0;
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.BOUNCE_DOUBLE) {
com.midasplayer.fx.SoundManager.play("liqourice_reefer#1", 70, false, undefined, _local10, _local9, _local11, _local8);
_local6 = 0;
var _local19 = jumper_.dx;
var _local18 = jumper_.dy;
var _local23 = closestCollision.nx;
var _local22 = closestCollision.ny;
var _local24 = (_local19 * _local23) + (_local18 * _local22);
jumper_.dx = 1.5 * (_local19 - ((2 * _local24) * _local23));
jumper_.dy = 1.5 * (_local18 - ((2 * _local24) * _local22));
jumper_.dx = jumper_.dx + ((_local23 * 5) + 0.1);
jumper_.dy = jumper_.dy + (_local22 * 5);
var _local15 = Math.sqrt((jumper_.dx * jumper_.dx) + (jumper_.dy * jumper_.dy));
if (_local15 > 30) {
jumper_.dx = (30 * jumper_.dx) / _local15;
jumper_.dy = (30 * jumper_.dy) / _local15;
}
_local3.hit();
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.BOUNCE_HALF) {
com.midasplayer.fx.SoundManager.play("liqourice_reefer#3", 70, false, undefined, _local10, _local9, _local11, _local8);
_local6 = 0;
var _local19 = jumper_.dx;
var _local18 = jumper_.dy;
var _local23 = closestCollision.nx;
var _local22 = closestCollision.ny;
var _local24 = (_local19 * _local23) + (_local18 * _local22);
jumper_.dx = 0.5 * (_local19 - ((2 * _local24) * _local23));
jumper_.dy = 0.5 * (_local18 - ((2 * _local24) * _local22));
jumper_.dx = jumper_.dx + ((_local23 * 5) + 0.1);
jumper_.dy = jumper_.dy + (_local22 * 5);
(closestCollision.ny);// not popped
_local3.hit();
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.BOUNCE_NORMAL) {
com.midasplayer.fx.SoundManager.play("liqourice_reefer#2", 70, false, undefined, _local10, _local9, _local11, _local8);
_local6 = 0;
var _local19 = jumper_.dx;
var _local18 = jumper_.dy;
var _local23 = closestCollision.nx;
var _local22 = closestCollision.ny;
var _local24 = (_local19 * _local23) + (_local18 * _local22);
jumper_.dx = 1 * (_local19 - ((2 * _local24) * _local23));
jumper_.dy = 1 * (_local18 - ((2 * _local24) * _local22));
jumper_.dx = jumper_.dx + ((_local23 * 5) + 0.1);
jumper_.dy = jumper_.dy + (_local22 * 5);
(closestCollision.ny);// not popped
var _local15 = Math.sqrt((jumper_.dx * jumper_.dx) + (jumper_.dy * jumper_.dy));
if (_local15 > 30) {
jumper_.dx = (30 * jumper_.dx) / _local15;
jumper_.dy = (30 * jumper_.dy) / _local15;
}
_local3.hit();
continue;
}
if ((_local4 == com.midasplayer.game.jellyjumper.Material.SLIPPERY) || (_local4 == com.midasplayer.game.jellyjumper.Material.FREEZER_BLOCK)) {
if (!com.midasplayer.fx.SoundManager.isPlaying("brusloop#8")) {
com.midasplayer.fx.SoundManager.play("brusloop#8", 10, true);
}
var _local19 = jumper_.dx;
var _local18 = jumper_.dy;
var _local23 = closestCollision.nx;
var _local22 = closestCollision.ny;
var _local21 = -_local22;
var _local20 = _local23;
var _local24 = (_local19 * _local21) + (_local18 * _local20);
_root.slidedx = (-_local23) + (_local19 * 0.85);
_root.slidedy = ((-_local22) * 1.1) + (_local18 * 0.7);
jumper_.dx = _local21 * _local24;
jumper_.dy = _local20 * _local24;
var _local17 = (jumper_.dx * jumper_.dx) + (jumper_.dy * jumper_.dy);
if (_local17 < 5) {
com.midasplayer.fx.SoundManager.setVolume("brusloop#8", _local17 * 2);
}
_local25 = true;
jumper_.setCollision(closestCollision, _local3);
_local25 = jumper_.slide(closestCollision);
_local3.hit();
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.SCORE_BLOCK) {
_local3.hit();
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.KEY_BLOCK) {
_local3.hit();
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.BOMB_BLOCK) {
_local3.hit();
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.DROWSER_BLOCK) {
_local3.hit();
jumper_.activateDrowser();
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.GOLD_BLOCK) {
com.midasplayer.fx.SoundManager.play("dollar_block#7", 70, false, undefined, _local10, _local9, _local11, _local8);
numGoldBlocksTakenInJump_[_local3.jumpId % 100]++;
_local3.hit();
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.ROCKET_BLOCK) {
_local3.hit();
continue;
}
if (_local4 == com.midasplayer.game.jellyjumper.Material.ENLARGE_BLOCK) {
com.midasplayer.fx.SoundManager.play("bounce#9", 70, false, undefined, _local10, _local9, _local11, _local8);
jumper_.makeLarge();
_local3.hit();
}
continue;
}
jumper_.x = jumper_.x + (jumper_.dx * (_local6 - 0.02));
jumper_.y = jumper_.y + (jumper_.dy * (_local6 - 0.02));
if (_local25) {
jumper_.dx = _root.slidedx;
jumper_.dy = _root.slidedy;
}
if (numGoldBlocksTakenInJump_[jumper_.getJumpId() % 100] > 0) {
var _local16 = starLayer_.getNextHighestDepth();
var _local14 = starLayer_.attachMovie("star", "star" + _local16, _local16);
_local14._x = (jumper_.x + random(40)) - 20;
_local14._y = (jumper_.y + random(40)) - 20;
_local14.tick = tick_;
stars_.push(_local14);
}
_local6 = 0;
}
}
if (_local25) {
if (!jumper_.isSliding()) {
jumper_.startSliding();
}
} else {
if (jumper_.isSliding()) {
jumper_.stopSliding(closestCollision);
}
if (com.midasplayer.fx.SoundManager.isPlaying("brusloop#8")) {
com.midasplayer.fx.SoundManager.stop("brusloop#8");
}
}
if (jumper_.y < 25) {
levelUp();
}
}
function levelUp() {
jumper_.stop();
if (levelUp_) {
return(undefined);
}
levelUp_ = true;
stopLoop();
com.midasplayer.fx.SoundManager.stop("time_running_out#4");
com.midasplayer.fx.SoundManager.stop("bunny_intro_melody#1");
if (currentLevelNum_ == 2) {
com.midasplayer.fx.SoundManager.play("bunny_end_positive#1", 40);
} else {
com.midasplayer.fx.SoundManager.play("bunny_level_complete#2", 40, false, _root.scene.playLoop);
}
clockStopTick_ = tick_;
var _local8 = Math.floor((clockStopTick_ - clockStartTick_) / TPS);
var _local6 = LEVEL_MAX_TIME[levels_[currentLevelNum_].getLevelNum() - 1];
var _local7 = _local6 - _local8;
var _local9 = _local7 / _local6;
var _local4 = Math.round(_local9 * 2000);
addScore(_local4);
var _local3 = percentCleared_ / 100;
var _local10 = LEVEL_MAX_CLEARANCE_BONUS[levels_[currentLevelNum_].getLevelNum() - 1];
var _local5 = Math.round((((((((((_local10 * _local3) * _local3) * _local3) * _local3) * _local3) * _local3) * _local3) * _local3) * _local3) * _local3);
addScore(_local5);
jumper_.y = 25;
jumper_.levelUp();
var _local11 = new com.midasplayer.game.jellyjumper.anim.LevelUpAnim(this);
com.midasplayer.util.AnimPlayer.addAnim(_local11);
if ((currentLevelNum_ == 0) && (com.midasplayer.util.GameBase.gameData.get("mode") == "short")) {
showShortModeFrame(_local5, _local4, score_);
} else if (currentLevelNum_ == 2) {
showGameCompleteFrame(_local5, _local4, score_);
} else {
showLevelFrame(_local5, _local4, score_);
}
}
function levelUpEnd() {
currentLevelNum_++;
levels_[currentLevelNum_ - 1].setVisible(false);
levels_[currentLevelNum_ + 1].setVisible(true);
if (currentLevelNum_ == 3) {
showOutro();
jumper_.arrowClip_._visible = false;
infoLayer_.level_name.text.text = "";
} else {
setKeyPercent(0);
setPercentCleared(0);
var _local2 = levels_[currentLevelNum_].getName();
infoLayer_.level_name.text.text = _local2.substring(7);
previewLevel();
}
}
function showFrame(bonus1, bonus2, score, txt) {
infoLayer_.level_frame.gotoAndStop(1);
infoLayer_.level_frame._visible = true;
infoLayer_.level_frame._x = 126;
infoLayer_.level_frame._y = 105;
infoLayer_.level_frame._alpha = 0;
infoLayer_.level_frame.header.autoSize = true;
infoLayer_.level_frame.header.text = txt;
var _local3 = infoLayer_.level_frame.header.getTextFormat();
var _local2 = 35;
while (_local2 > 15) {
_local3.size = _local2;
infoLayer_.level_frame.header.setTextFormat(_local3);
if (infoLayer_.level_frame.header._height < 55) {
break;
}
_local2--;
}
infoLayer_.level_frame.header._x = 15 + ((465 - infoLayer_.level_frame.header._width) / 2);
infoLayer_.level_frame.header.align = "center";
infoLayer_.level_frame.score1txt.text = "Jelly Babies Score";
infoLayer_.level_frame.score2txt.text = "Combo Score";
infoLayer_.level_frame.bonus1txt.text = "Freeing Bonus";
infoLayer_.level_frame.bonus2txt.text = "Time Bonus";
infoLayer_.level_frame.totaltxt.text = "Total Score";
infoLayer_.level_frame.score1.text = levelJellyScore_;
infoLayer_.level_frame.score2.text = levelComboScore_;
infoLayer_.level_frame.bonus1.text = bonus1;
infoLayer_.level_frame.bonus2.text = bonus2;
infoLayer_.level_frame.total.text = score;
infoLayer_.level_frame.cacheAsBitmap = true;
var _local4 = new Array();
_local4.push({obj:this, func:showLevelFrameAnim});
com.midasplayer.util.AnimPlayer.play({playlist:_local4, callback:undefined, callback_scope:this, tps:25});
}
function showLevelFrame(bonus1, bonus2, score) {
showFrame(bonus1, bonus2, score, "Level Up!");
}
function showTimeOutFrame(bonus1, bonus2, score) {
showFrame(bonus1, bonus2, score, "Time's Up!");
}
function showGameCompleteFrame(bonus1, bonus2, score) {
showFrame(bonus1, bonus2, score, "Game Over!");
}
function showGameOverFrame(bonus1, bonus2, score) {
if (infoLayer_.level_frame._visible) {
infoLayer_.level_frame.header.text = "Game Over!";
infoLayer_.level_frame._alpha = 100;
} else {
showFrame(bonus1, bonus2, score, "Game Over!");
}
}
function showShortModeFrame(bonus1, bonus2, score) {
showFrame(bonus1, bonus2, score, "Register to continue playing and complete the game!");
}
function showLevelFrameAnim(tick, alpha) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick + alpha, 0, 30);
infoLayer_.level_frame._alpha = (_local2 * _local2) * 100;
return(_local2 == 1);
}
function previewLevel() {
jumper_.stop();
levelUp_ = true;
var _local2 = new com.midasplayer.game.jellyjumper.anim.PreviewLevelAnim(this);
com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function previewLevelEnd() {
infoLayer_.level_frame._visible = false;
infoLayer_.endgame_btn._visible = true;
levelJellyScore_ = 0;
levelComboScore_ = 0;
if ((currentLevelNum_ == 1) && (com.midasplayer.util.GameBase.gameData.get("mode") == "short")) {
stop();
game_.endGame(score_);
game_.quitGame();
return(undefined);
}
clip_._y = (-levels_[currentLevelNum_].getHeight()) + 550;
if (currentLevelNum_ >= 1) {
jumper_.y = jumper_.y + (levels_[currentLevelNum_].getHeight() - 25);
levels_[currentLevelNum_].setY(0);
var _local2 = currentLevelNum_ + 1;
while (_local2 < numLevels_) {
levels_[_local2].setY(levels_[_local2].getY() + levels_[currentLevelNum_].getHeight());
_local2++;
}
jumper_.clip_._y = jumper_.y;
lastY = jumper_.y;
jumper_.oy = jumper_.y;
jumper_.ox = jumper_.x;
jumper_.material = com.midasplayer.game.jellyjumper.Material.NORMAL;
jumper_.collisionObject = undefined;
jumper_.arrowClip_._visible = true;
}
clockStartTick_ = -1;
clockStopTick_ = -1;
timeWarning_ = false;
timeWarning2_ = false;
levelUp_ = false;
jumper_.start();
}
function showOutro() {
_root._quality = "high";
if (!com.midasplayer.game.jellyjumper.Game.EDITOR_MODE) {
com.midasplayer.game.jellyjumper.Game.showOutro(getCurrentLevel());
}
com.midasplayer.util.GameBase.reportPlayData(5, "" + tick_, "0");
stop();
jumper_.stop();
infoLayer_.endgame_btn.onPress = mx.utils.Delegate.create(this, showOutroAnimEnd);
var _local3 = new Array();
_local3.push({obj:this, func:showOutroAnim});
com.midasplayer.util.AnimPlayer.play({playlist:_local3, callback:undefined, callback_scope:this, tps:50});
_root.jumpery = jumper_.clip_._y;
game_.endGame(score_);
}
function showOutroAnim(tick, alpha) {
var _local4 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 800);
var _local5 = ((_local4 * 1600) % 100) / 100;
var _local3 = (2 * _local5) - 1;
_local3 = 1 - (_local3 * _local3);
if ((_local4 > 0.55) && (!gameEnded_)) {
gameEnded_ = true;
game_.quitGame();
}
jumper_.clip_._y = _root.jumpery - (100 * _local3);
if (_local3 < 0.2) {
jumper_.clip_.character.gotoAndStop(4);
} else if (_local3 < 0.4) {
jumper_.clip_.character.gotoAndStop(3);
} else if (_local3 < 0.6) {
jumper_.clip_.character.gotoAndStop(2);
} else {
jumper_.clip_.character.gotoAndStop(1);
}
return(_local4 == 1);
}
function showOutroAnimEnd() {
infoLayer_.endgame_btn._visible = false;
gameEnded_ = true;
game_.quitGame();
}
function timeOut() {
timeOut_ = true;
com.midasplayer.fx.SoundManager.play("tidslut#1", 60);
com.midasplayer.util.GameBase.reportPlayData(3, "" + tick_, "0");
showTimeOutFrame(0, 0, score_);
stop();
game_.endGame(score_);
game_.quitGame();
}
function updateTime() {
if (levelUp_) {
return(undefined);
}
if (clockStartTick_ == -1) {
clockStartTick_ = tick_;
}
if (clockStopTick_ == -1) {
var _local3 = Math.floor((tick_ - clockStartTick_) / TPS);
var _local2 = LEVEL_MAX_TIME[levels_[currentLevelNum_].getLevelNum() - 1] - _local3;
if ((_local2 <= 6) && (!timeWarning_)) {
com.midasplayer.fx.SoundManager.play("time_running_out#4", 40);
timeWarning_ = true;
}
if ((_local2 <= 4) && (!timeWarning2_)) {
com.midasplayer.fx.SoundManager.play("time_running_out#4", 40);
timeWarning2_ = true;
}
if (_local2 < 0) {
_local2 = 0;
}
infoBar_.setTimeLeft(_local2);
if (_local2 == 0) {
if (com.midasplayer.game.jellyjumper.Game.EDITOR_MODE) {
} else {
timeOut();
}
}
}
}
function removeStars() {
var _local4 = stars_.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = stars_[_local2];
if ((_local3.tick + 12) == tick_) {
_local3.removeMovieClip();
stars_.shift();
}
_local2++;
}
}
function tick(tick) {
tick_ = tick;
updateTime();
if (timeOut_) {
return(undefined);
}
jumper_.tick(tick);
var _local2 = 0;
while (_local2 < numLevels_) {
levels_[_local2].tick(tick);
_local2++;
}
updateJumper();
removeStars();
com.midasplayer.util.AnimPlayer.tick(tick);
}
function render(tick, alpha) {
com.midasplayer.util.AnimPlayer.render(tick, alpha);
jumper_.render(tick, alpha);
var _local2 = 0;
while (_local2 < numLevels_) {
levels_[_local2].render(tick, alpha);
_local2++;
}
var _local5 = jumper_.y;
centerTo(0, lastY + ((_local5 - lastY) * alpha));
lastY = _local5;
}
static var TPS = 25;
static var TILE_SIZE = 100;
static var PREVIEW_DISTANCE = 50;
static var LEVEL_MAX_TIME = [70, 90, 90];
static var LEVEL_MAX_CLEARANCE_BONUS = [5000, 7500, 10000];
var tick_ = 0;
}
Symbol 1474 MovieClip [__Packages.com.midasplayer.timing.Timer] Frame 0
class com.midasplayer.timing.Timer
{
var timeable;
function Timer (timeable, gameTicksPerSecond) {
millisPerGameTick = 1000 / gameTicksPerSecond;
this.gameTicksPerSecond = gameTicksPerSecond;
this.timeable = timeable;
maxTickTime = 500;
}
function getMillisPerTick() {
return(millisPerGameTick);
}
function getTicksPerSecond() {
return(gameTicksPerSecond);
}
function setMaxTickTime(millis) {
maxTickTime = millis;
}
function advanceTime2() {
var _local3 = getTimer();
if (startTime < 0) {
startTime = _local3;
unprocessedTime = millisPerGameTick;
}
time = _local3 - startTime;
var _local5 = time - lastTime;
lastTime = time;
unprocessedTime = unprocessedTime + _local5;
if (unprocessedTime >= millisPerGameTick) {
var _local2 = maxTickTime + _local3;
do {
timeable.tick(tick);
tick++;
if ((tick % gameTicksPerSecond) == 0) {
fps = frames;
frames = 0;
}
unprocessedTime = unprocessedTime - millisPerGameTick;
} while ((unprocessedTime >= millisPerGameTick) && (getTimer() < _local2));
}
var _local4 = (unprocessedTime % millisPerGameTick) / millisPerGameTick;
com.midasplayer.timing.IFloat.setAlpha(_local4);
timeable.render(tick, _local4);
frames++;
}
function advanceTime() {
time = getTimer();
var _local3 = time - lastTime;
lastTime = time;
unprocessedTime = unprocessedTime + _local3;
var _local2 = 0;
while (unprocessedTime > millisPerGameTick) {
unprocessedTime = unprocessedTime - millisPerGameTick;
timeable.tick(tick);
tick++;
_local2++;
if (_local2 >= 10) {
unprocessedTime = 0;
}
}
var _local4 = unprocessedTime / millisPerGameTick;
timeable.render(tick, _local4);
}
var time = 0;
var startTime = -1;
var lastTime = 0;
var unprocessedTime = 0;
var gameTicksPerSecond = 0;
var tick = 0;
var millisPerGameTick = 0;
var maxTickTime = -1;
var frames = 0;
var fps = 0;
}
Symbol 1475 MovieClip [__Packages.com.midasplayer.timing.IFloat] Frame 0
class com.midasplayer.timing.IFloat
{
static var alpha;
var ivalue, lastValue;
function IFloat (initial) {
ivalue = initial;
lastValue = initial;
alpha = 0;
}
function setTo(initial) {
ivalue = initial;
lastValue = initial;
}
function set(newValue) {
lastValue = ivalue;
ivalue = newValue;
}
function get(lalpha) {
return(lastValue + ((ivalue - lastValue) * lalpha));
}
static function setAlpha(na) {
alpha = na;
}
function get value() {
return(lastValue + ((ivalue - lastValue) * alpha));
}
function set value(v) {
ivalue = v;
lastValue = v;
//return(value);
}
}
Symbol 1476 MovieClip [__Packages.com.midasplayer.game.jellyjumper.InfoBar] Frame 0
class com.midasplayer.game.jellyjumper.InfoBar extends MovieClip
{
var score5, score4, score3, score2, score1, score0, min1, min0, txt_colon, sec1, sec0, getNextHighestDepth, attachMovie, createEmptyMovieClip, info_txt_score, txt_percent, key;
function InfoBar () {
super();
var _local5;
var _local4;
var _local3 = 0;
_local3 = _local3 + 5;
_local4 = fixText("Score");
_local4._x = 5;
_local4._y = 3;
_local3 = _local3 + (_local4._width + 9);
score5._x = _local3;
_local3 = _local3 + 24;
score4._x = _local3;
_local3 = _local3 + 24;
score3._x = _local3;
_local3 = _local3 + 24;
score2._x = _local3;
_local3 = _local3 + 24;
score1._x = _local3;
_local3 = _local3 + 24;
score0._x = _local3;
_local3 = _local3 + 50;
_local4 = fixText("Time");
_local4._x = _local3;
_local4._y = 3;
_local3 = _local3 + (_local4._width + 8);
min1._x = _local3;
_local3 = _local3 + 24;
min0._x = _local3;
_local3 = _local3 + 24;
txt_colon._x = _local3;
_local3 = _local3 + 28;
sec1._x = _local3;
_local3 = _local3 + 14;
sec0._x = _local3;
_local3 = _local3 + 24;
}
function fixText(str) {
var _local4 = com.midasplayer.util.I18n.format(str);
var _local3 = getNextHighestDepth();
var _local2 = attachMovie("info_txt", "info_txt" + _local3, _local3);
_local2.mask.txt.autoSize = true;
_local2.txt1.txt.autoSize = true;
_local2.mask.txt.text = _local4;
_local2.txt1.txt.text = _local4;
var _local7 = _local2.mask.txt._width + 5;
var _local6 = _local2.mask.txt._height;
var _local5 = createEmptyMovieClip("info_txt_" + str, getNextHighestDepth());
com.midasplayer.game.jellyjumper.BitmapUtils.copy(_local2, _local5, _local7, _local6, 0);
_local2.removeMovieClip();
return(_local5);
}
function setScore(n) {
displayDigital(n, 6, "score", (info_txt_score._x + info_txt_score._width) + 9, false);
}
function setPercentCleared(n) {
displayDigital(n, 3, "percent", txt_percent._x, true);
}
function setKeyPercent(n) {
key.mask._width = (78 * n) / 100;
}
function activateKey() {
var _local2 = new com.midasplayer.game.jellyjumper.anim.KeyActivateAnim(key.key_effect);
com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function setTimeLeft(n) {
var _local2 = n % 60;
var _local3 = Math.floor(n / 60);
displayDigital(_local3, 2, "min", txt_colon._x - 1, true, true);
displayDigital(_local2, 2, "sec", txt_colon._x + 15, false, true);
}
function displayDigital(num, maxDigits, clipName, x, alignRight, zeroFill) {
var _local4;
var _local2;
var _local8 = String(num);
var _local5 = _local8.length;
if (alignRight) {
var _local3 = 0;
while (_local3 < maxDigits) {
if (_local3 >= _local5) {
_local2 = 10;
_local2 = (zeroFill ? 0 : (_local2));
} else {
_local2 = Number(_local8.charAt((_local5 - _local3) - 1));
}
_local4 = this[clipName + _local3];
_local4.gotoAndStop(_local2 + 1);
x = x - (FONT_WIDTH[_local2] - 2);
_local4._x = x;
num = Math.floor(num / 10);
_local3++;
}
} else {
var _local3 = maxDigits - 1;
while (_local3 >= 0) {
if (_local3 >= _local5) {
_local2 = 10;
_local2 = (zeroFill ? 0 : (_local2));
} else {
_local2 = Number(_local8.charAt((_local5 - _local3) - 1));
}
_local4 = this[clipName + _local3];
_local4.gotoAndStop(_local2 + 1);
_local4._x = x;
x = x + (FONT_WIDTH[_local2] - 2);
num = Math.floor(num / 10);
_local3--;
}
}
}
static var FONT_WIDTH = [29, 20, 29, 29, 29, 28, 29, 29, 29, 28, 0];
}
Symbol 1477 MovieClip [__Packages.com.midasplayer.game.jellyjumper.BitmapUtils] Frame 0
class com.midasplayer.game.jellyjumper.BitmapUtils
{
function BitmapUtils () {
}
static function preRotate(sourceClip, destClip, w, h, r) {
var _local2 = new flash.display.BitmapData(w, h, true, 16777215);
var _local1 = new flash.geom.Matrix();
_local1.rotate(r);
_local1.tx = w / 2;
_local1.ty = h / 2;
_local2.draw(sourceClip, _local1);
destClip.attachBitmap(_local2, destClip.getNextHighestDepth());
}
static function copy(sourceClip, destClip, w, h) {
var _local1 = new flash.display.BitmapData(w, h, true, 16777215);
var _local2 = new flash.geom.Matrix();
_local1.draw(sourceClip, _local2);
destClip.attachBitmap(_local1, destClip.getNextHighestDepth());
}
}
Symbol 1478 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.KeyActivateAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.KeyActivateAnim
{
var mc_, num_;
function KeyActivateAnim (mc) {
mc_ = mc;
num_ = mc_._totalframes;
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 30);
mc_.gotoAndStop(Math.round(_local2 * num_));
return(_local2 == 1);
}
function end() {
}
function render(alpha) {
}
}
Symbol 1479 MovieClip [__Packages.com.midasplayer.util.AnimPlayer] Frame 0
class com.midasplayer.util.AnimPlayer
{
static var clip_;
function AnimPlayer () {
}
static function staticInitializer(Void) {
clip_ = _root.createEmptyMovieClip("timer", _root.getNextHighestDepth());
clip_.onEnterFrame = function () {
com.midasplayer.util.AnimPlayer.onEnterFrame();
};
return(true);
}
static function addAnim(a) {
id_++;
anims_.insert(a);
a.animId = id_;
return(id_);
}
static function endAnim(id) {
var _local3 = anims_.size();
var _local1 = _local3 - 1;
while (_local1 >= 0) {
var _local2 = anims_.get(_local1);
if (_local2.animId == id) {
anims_.removeByIndex(_local1);
return(undefined);
}
_local1--;
}
}
static function tick(tick) {
var _local4 = anims_.size();
var _local2 = _local4 - 1;
while (_local2 >= 0) {
var _local1 = anims_.get(_local2);
if (_local1.startTick == undefined) {
_local1.startTick = tick;
}
if (_local1.lastTick != true) {
_local1.lastTick = _local1.tick(tick - _local1.startTick);
if (_local1.lastTick) {
_local1.end();
_local1.lastRender = true;
}
}
_local2--;
}
}
static function render(tick, alpha) {
var _local3 = anims_.size();
var _local1 = _local3 - 1;
while (_local1 >= 0) {
var _local2 = anims_.get(_local1);
_local2.render(alpha);
if (_local2.lastRender) {
anims_.removeByIndex(_local1);
}
_local1--;
}
}
static function play(props) {
animId_++;
var _local3 = props.playlist;
var _local4 = props.callback;
var _local5 = props.callback_scope;
var _local1 = props.tps;
if (_local1 == undefined) {
_local1 = 100;
}
callbacks_.put(animId_, _local4);
callbackScopes_.put(animId_, _local5);
animEntries_.put(animId_, new com.midasplayer.util.AnimEntry(_local3, animId_));
timers_.put(animId_, new com.midasplayer.timing.Timer(com.midasplayer.util.AnimEntry(animEntries_.get(animId_)), _local1));
return(animId_);
}
static function end(animId) {
delete eval (timers_.get(animId));
timers_.remove(animId);
delete eval (animEntries_.get(animId));
animEntries_.remove(animId);
var _local2 = callbacks_.get(animId);
callbacks_.remove(animId);
var _local3 = callbackScopes_.get(animId);
callbackScopes_.remove(animId);
_local2.call(_local3);
}
static function stop(animId) {
delete eval (timers_.get(animId));
timers_.remove(animId);
delete eval (animEntries_.get(animId));
animEntries_.remove(animId);
var _local2 = callbacks_.get(animId);
callbacks_.remove(animId);
var _local3 = callbackScopes_.get(animId);
callbackScopes_.remove(animId);
}
static function setTps(animId, tps) {
timers_.get(animId).setTps(tps);
}
static function tickToPercent(tick, startTick, numTicks) {
var _local1 = (tick - startTick) / numTicks;
_local1 = ((_local1 < 0) ? 0 : (_local1));
_local1 = ((_local1 > 1) ? 1 : (_local1));
return(_local1);
}
static function delay(props) {
return(play({playlist:[{obj:com.midasplayer.util.AnimPlayer, func:delayAnim, params:{millis:props.millis}}], callback:props.callback, callback_scope:props.callback_scope, tps:50}));
}
static function delayAnim(tick, alpha, params) {
if ((tick / 50) >= (params.millis / 1000)) {
return(true);
}
return(false);
}
static function easeInOutQuad(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeInOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function onEnterFrame() {
timers_.foreach(function (key, obj) {
com.midasplayer.timing.Timer(obj).advanceTime2();
});
}
static var animId_ = 0;
static var animEntries_ = new com.midasplayer.util.Map();
static var timers_ = new com.midasplayer.util.Map();
static var callbacks_ = new com.midasplayer.util.Map();
static var callbackScopes_ = new com.midasplayer.util.Map();
static var id_ = 0;
static var anims_ = new com.midasplayer.util.ArrayList();
static var staticInitialized = staticInitializer();
}
Symbol 1480 MovieClip [__Packages.com.midasplayer.util.AnimEntry] Frame 0
class com.midasplayer.util.AnimEntry implements com.midasplayer.timing.Timeable
{
var playList_, animId_;
function AnimEntry (playList, animId) {
playList_ = playList;
animId_ = animId;
}
function tick(tick) {
}
function render(tick, alpha) {
if (baseTick_ == -1) {
baseTick_ = tick;
}
var _local2 = play(playList_, tick - baseTick_, alpha);
if (_local2) {
com.midasplayer.util.AnimPlayer.end(animId_);
}
}
function play(playList, tick, alpha) {
var _local12 = playList.length;
var _local4 = true;
var _local3 = 0;
while (_local3 < _local12) {
var _local2 = playList[_local3];
if (_local2 == undefined) {
} else if (_local2.length == undefined) {
var _local9 = _local2.func;
var _local8 = _local2.obj;
var _local10 = _local2.params;
var _local6 = _local9.call(_local8, tick, alpha, _local10);
if (_local6) {
playList[_local3] = undefined;
} else {
_local4 = false;
}
} else {
var _local6 = play(_local2, tick, alpha);
if (_local6) {
playList[_local3] = undefined;
baseTick_ = baseTick_ + tick;
_local4 = false;
break;
}
_local4 = false;
break;
}
_local3++;
}
return(_local4);
}
var baseTick_ = -1;
}
Symbol 1481 MovieClip [__Packages.com.midasplayer.phys.Collision] Frame 0
class com.midasplayer.phys.Collision
{
var t;
function Collision () {
t = 999;
}
}
Symbol 1482 MovieClip [__Packages.com.midasplayer.phys.Sphere] Frame 0
class com.midasplayer.phys.Sphere
{
var material, x, y, dx, dy, r;
function Sphere () {
}
function setMaterial(m) {
material = m;
}
function getCollision(s, collision) {
var _local9 = x - s.x;
var _local8 = y - s.y;
var _local10 = dx - s.dx;
var _local11 = dy - s.dy;
if (((_local9 * _local10) + (_local8 * _local11)) >= 0) {
return(undefined);
}
var _local4 = s.r + r;
var _local14 = (_local10 * _local10) + (_local11 * _local11);
var _local7 = ((_local10 * _local9) + (_local11 * _local8)) * 2;
var _local13 = ((_local9 * _local9) + (_local8 * _local8)) - (_local4 * _local4);
var _local12 = (_local7 * _local7) - ((4 * _local14) * _local13);
if (_local12 < 0) {
return(undefined);
}
var _local15 = ((_local7 >= 0) ? (-0.5 * (_local7 + Math.sqrt(_local12))) : (-0.5 * (_local7 - Math.sqrt(_local12))));
var _local6 = _local15 / _local14;
var _local5 = _local13 / _local15;
if (_local6 <= _local5) {
if ((_local6 >= 0) && (_local6 < collision.t)) {
collision.t = _local6;
collision.nx = ((s.x + (s.dx * _local6)) - x) / _local4;
collision.ny = ((s.y + (s.dy * _local6)) - y) / _local4;
collision.object = this;
collision.material = material;
}
} else if ((_local5 >= 0) && (_local5 < collision.t)) {
collision.t = _local5;
collision.nx = ((s.x + (s.dx * _local5)) - x) / _local4;
collision.ny = ((s.y + (s.dy * _local5)) - y) / _local4;
collision.object = this;
collision.material = material;
}
return(undefined);
}
var ddy = 0;
}
Symbol 1483 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Jumper] Frame 0
class com.midasplayer.game.jellyjumper.Jumper extends com.midasplayer.phys.Sphere
{
var scene_, layer_, clip_, arrowLayer_, arrowClip_, arrow_, arrowLine_, jumpLine_, x, y, dx, dy, r, drowserFilter_, drowserFilter2_, idleTicks_, jumpId_, rotClips_, numRotSteps_, previousRotClipNum_, isJumping_, isPreparingJump_, wantsToJump_, tick_, currentMaterial_, isSliding_, collisionBlock, collisionObject, ox, oy;
function Jumper (scene, x, y) {
super();
scene_ = scene;
layer_ = scene_.getJumperLayer();
clip_ = layer_.attachMovie("jumper", "jumper", layer_.getNextHighestDepth());
clip_.stop();
clip_.character.stop();
arrowLayer_ = scene_.getArrowLayer();
arrowClip_ = arrowLayer_.createEmptyMovieClip("arrow", arrowLayer_.getNextHighestDepth());
arrow_ = new com.midasplayer.game.jellyjumper.Arrow();
arrow_.init(arrowClip_);
arrowLine_ = new com.midasplayer.phys.Line();
jumpLine_ = new com.midasplayer.phys.Line();
this.x = x;
this.y = y;
dx = 0;
dy = 0;
r = 17;
drowserFilter_ = new flash.filters.GlowFilter(10855802, 100, 9, 9, 3, 1, false, false);
var _local3 = [1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0];
_local3 = com.midasplayer.util.MyColor.setHue(_local3, 128);
drowserFilter2_ = new flash.filters.ColorMatrixFilter(_local3);
initRotationClips(clip_);
clip_.attachMovie("bubble", "bubble", clip_.getNextHighestDepth());
clip_.bubble._visible = false;
clip_.bubble._x = -32;
clip_.bubble._y = -32;
idleTicks_ = 0;
jumpId_ = 0;
}
function makeLarge() {
clip_.bubble.gotoAndStop(1);
clip_.bubble._visible = true;
r = 32;
enlargeJumpsLeft_ = 3;
}
function makeSmall() {
if (r == 17) {
return(undefined);
}
com.midasplayer.fx.SoundManager.play("bubble_burst#5", 70);
clip_.bubble.gotoAndPlay(1);
r = 17;
}
function remove() {
clip_.removeMovieClip();
arrowClip_.removeMovieClip();
}
function getJumpId() {
return(jumpId_);
}
function initRotationClips(layer) {
rotClips_ = new Array();
var _local6 = new Array();
_local6.push(layer.attachMovie("character_up", "temp_0", layer.getNextHighestDepth()));
_local6.push(layer.attachMovie("character_right", "temp_1", layer.getNextHighestDepth()));
_local6.push(layer.attachMovie("character_down", "temp_2", layer.getNextHighestDepth()));
_local6.push(layer.attachMovie("character_left", "temp_3", layer.getNextHighestDepth()));
numRotSteps_ = 30;
var _local4 = 0;
while (_local4 < numRotSteps_) {
var _local5 = layer.getNextHighestDepth();
var _local3 = layer.createEmptyMovieClip("char" + _local5, _local5);
var _local2 = ((Math.PI*2) * _local4) / numRotSteps_;
_local2 = (_local2 * 360) / (Math.PI*2);
var _local7 = Math.round(4 * (_local2 / 360)) % 4;
_local2 = _local2 - (_local7 * 90);
_local2 = ((_local2 * 2) * Math.PI) / 360;
var _local9 = _local6[_local7];
_local3._visible = false;
rotClips_.push(_local3);
_local3._x = -55;
_local3._y = -55;
com.midasplayer.game.jellyjumper.BitmapUtils.preRotate(_local9, _local3, 110, 110, _local2);
_local4++;
}
_local4 = 0;
while (_local4 < _local6.length) {
_local6[_local4].removeMovieClip();
_local4++;
}
}
function setRotation(r) {
r = (r + 360) % 360;
var _local2 = Math.round((numRotSteps_ * r) / 360);
rotClips_[previousRotClipNum_]._visible = false;
rotClips_[_local2]._visible = true;
previousRotClipNum_ = _local2;
}
function canJump() {
if (isJumping_) {
return(false);
}
if (isPreparingJump_) {
return(false);
}
return(true);
}
function isResting() {
if (isJumping_) {
return(false);
}
if (isPreparingJump_) {
return(false);
}
return(true);
}
function isJumping() {
return(isJumping_);
}
function setPos(x, y) {
this.x = x;
this.y = y;
}
function activateDrowser() {
drowserJumpsLeft_ = 2;
clip_.filters = [drowserFilter2_, drowserFilter_];
}
function deactivateDrowser() {
drowserJumpsLeft_ = 0;
clip_.filters = [];
}
function getArrowRotation() {
arrowLine_.x0 = arrowClip_._x;
arrowLine_.y0 = arrowClip_._y;
arrowLine_.x1 = arrowLayer_._xmouse;
arrowLine_.y1 = arrowLayer_._ymouse;
return((180 * arrowLine_.getAngle()) / Math.PI);
}
function jumpTowards(x, y) {
jumpLine_.x0 = this.x;
jumpLine_.y0 = this.y;
jumpLine_.x1 = x;
jumpLine_.y1 = y;
wantsToJump_ = true;
}
function wantsToJump() {
return(wantsToJump_);
}
function prepareJump() {
wantsToJump_ = false;
isPreparingJump_ = true;
jumpLine_.normalize();
playFrames((rotSegment_ * 30) + 1, (rotSegment_ * 30) + 11, tick_, 10);
jumpId_++;
}
function startJump() {
var _local2 = 18;
if ((currentMaterial_ == com.midasplayer.game.jellyjumper.Material.HALF) || (drowserJumpsLeft_ > 0)) {
_local2 = _local2 * 0.6;
} else if (currentMaterial_ == com.midasplayer.game.jellyjumper.Material.DOUBLE) {
_local2 = _local2 * 1.4;
} else if (currentMaterial_ == com.midasplayer.game.jellyjumper.Material.SLIPPERY) {
} else if (currentMaterial_ == com.midasplayer.game.jellyjumper.Material.NORMAL) {
} else if (currentMaterial_ == com.midasplayer.game.jellyjumper.Material.POLKA) {
}
if (_local2 > 30) {
_local2 = 30;
}
dx = jumpLine_.x1 * _local2;
dy = jumpLine_.y1 * _local2;
isPreparingJump_ = false;
isJumping_ = true;
stopSliding();
if (drowserJumpsLeft_ > 0) {
drowserJumpsLeft_--;
if (drowserJumpsLeft_ == 0) {
deactivateDrowser();
}
}
if (enlargeJumpsLeft_ > 0) {
enlargeJumpsLeft_--;
if (enlargeJumpsLeft_ == 0) {
makeSmall();
}
}
}
function endJump() {
if (enlargeJumpsLeft_ == 1) {
makeSmall();
enlargeJumpsLeft_ = 0;
isJumping_ = true;
return(undefined);
}
dx = 0;
dy = 0;
isJumping_ = false;
playFrames((rotSegment_ * 30) + 15, (rotSegment_ * 30) + 20, tick_, 8);
}
function isSliding() {
return(isSliding_);
}
function startSliding() {
isJumping_ = false;
isSliding_ = true;
}
function stopSliding(c) {
isSliding_ = false;
if ((((c.t >= 0) || (c.material == com.midasplayer.game.jellyjumper.Material.BOUNCE_NORMAL)) || (c.material == com.midasplayer.game.jellyjumper.Material.BOUNCE_DOUBLE)) || (c.material == com.midasplayer.game.jellyjumper.Material.BOUNCE_HALF)) {
if (((c.ny > 0.999) && ((dx * dx) < 0.01)) && ((dy * dy) < 0.01)) {
playFrames(186, 194, tick_, 9);
} else {
playFrames((rotSegment_ * 30) + 1, (rotSegment_ * 30) + 11, tick_, 10);
}
isJumping_ = true;
} else {
trace("---------------------------");
isJumping_ = false;
}
}
function slide(c) {
var _local2 = Math.atan2(c.ny, c.nx);
_local2 = ((_local2 * 180) / Math.PI) + 90;
_local2 = (_local2 + 360) % 360;
rot = 0;
if (((c.ny > 0.99) && ((dx * dx) < 0.07)) && ((dy * dy) < 0.07)) {
if ((tick_ - compactTick_) == 5) {
return(false);
}
if ((tick_ - compactTick_) > 5) {
compactTick_ = tick_;
playFrames(180, 186, tick_, 5);
}
} else {
var _local3 = 300 - Math.round((_local2 * 84) / 360);
playFrames(_local3, _local3, tick_, 1);
}
return(true);
}
function setCollision(c, b) {
var _local2 = Math.atan2(c.ny, c.nx);
_local2 = ((_local2 * 180) / Math.PI) + 90;
_local2 = (_local2 + 360) % 360;
rotSegment_ = Math.round(4 * (_local2 / 360)) % 4;
rot = _local2 - (rotSegment_ * 90);
rot = Math.round(rot / 10) * 10;
collisionBlock = b;
collisionObject = c.object;
currentMaterial_ = c.material;
}
function levelUp() {
if (isJumping()) {
endJump();
}
rot = 0;
makeSmall();
deactivateDrowser();
currentMaterial_ = com.midasplayer.game.jellyjumper.Material.POLKA;
arrowClip_._visible = false;
}
function tick(tick) {
tick_ = tick;
ox = x;
oy = y;
if (isPreparingJump_) {
startJump();
}
}
function playFrames(startFrame, stopFrame, startTick, numTicks) {
frameStart_ = startFrame;
frameStop_ = stopFrame;
frameStartTick_ = startTick;
frameNumTicks_ = numTicks;
}
function playFrame(tick, alpha) {
var _local2 = (tick + alpha) - frameStartTick_;
if (_local2 < 0) {
return(undefined);
}
if (_local2 > frameNumTicks_) {
_local2 = frameNumTicks_;
}
_local2 = frameStart_ + (((frameStop_ - frameStart_) * _local2) / frameNumTicks_);
_local2 = Math.round(_local2);
clip_.character.gotoAndStop(_local2);
if (isJumping()) {
idleTicks_ = 0;
}
if (!isSliding_) {
idleTicks_++;
idleTicks_ = idleTicks_ % 100;
}
}
function stop() {
rotClips_[previousRotClipNum_]._visible = false;
clip_.character.gotoAndStop(1);
arrowClip_._visible = false;
stopped_ = true;
}
function start() {
clip_.character.gotoAndStop(1);
arrowClip_._visible = true;
stopped_ = false;
}
function render(tick, a) {
if (stopped_) {
clip_._x = ox + ((x - ox) * a);
clip_._y = oy + ((y - oy) * a);
clip_._rotation = 0;
return(undefined);
}
if (isJumping()) {
arrowClip_._visible = false;
} else {
if (arrowClip_._visible != true) {
arrowClip_._visible = true;
}
if (arrowClip_._alpha != 100) {
arrowClip_._alpha = 100;
}
var _local4 = getArrowRotation();
arrow_.setRotation(_local4, currentMaterial_ == com.midasplayer.game.jellyjumper.Material.DOUBLE, (currentMaterial_ == com.midasplayer.game.jellyjumper.Material.HALF) || (drowserJumpsLeft_ > 0));
arrowLine_.normalize();
if ((!isSliding_) && (!scene_.canJump(arrowLine_.x1 * 16, arrowLine_.y1 * 16))) {
arrowClip_._alpha = 20;
}
}
playFrame(tick, a);
if (!isSliding_) {
if ((idleTicks_ == 99) && (rot == 0)) {
playFrames(((rotSegment_ * 30) + 1) + 300, (((rotSegment_ * 30) + 1) + 300) + 11, tick, 11);
}
}
clip_._x = ox + ((x - ox) * a);
clip_._y = oy + ((y - oy) * a);
arrowClip_._x = ox + ((x - ox) * a);
arrowClip_._y = oy + ((y - oy) * a);
var _local2 = clip_.character._currentframe;
if ((((_local2 == 20) || (_local2 == 50)) || (_local2 == 80)) || (_local2 == 110)) {
setRotation((rotSegment_ * 90) + rot);
clip_.character._visible = false;
clip_._rotation = 0;
} else if (((((_local2 > 10) && (_local2 < 15)) || ((_local2 > 40) && (_local2 < 45))) || ((_local2 > 70) && (_local2 < 75))) || ((_local2 > 100) && (_local2 < 105))) {
clip_._rotation = 0;
rotClips_[previousRotClipNum_]._visible = false;
} else {
rotClips_[previousRotClipNum_]._visible = false;
clip_._rotation = rot;
clip_.character._visible = true;
}
}
var rot = 0;
var rotSegment_ = 0;
var frameStart_ = 1;
var frameStop_ = 1;
var frameStartTick_ = 1;
var frameNumTicks_ = 1;
var compactTick_ = -100;
var drowserJumpsLeft_ = 0;
var enlargeJumpsLeft_ = 0;
var stopped_ = false;
}
Symbol 1484 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Arrow] Frame 0
class com.midasplayer.game.jellyjumper.Arrow
{
var layer_, clips_, numRotSteps_, previousClipNum_;
function Arrow () {
}
function init(layer) {
layer_ = layer;
clips_ = new Array();
numRotSteps_ = 100;
var _local4;
_local4 = layer_.attachMovie("arrow", "arrowxx", layer_.getNextHighestDepth());
var _local3 = 0;
while (_local3 < numRotSteps_) {
var _local5 = layer_.getNextHighestDepth();
var _local2 = layer_.createEmptyMovieClip("arrow" + _local5, _local5);
_local2._visible = false;
clips_.push(_local2);
_local2._x = -55;
_local2._y = -55;
var _local6 = ((Math.PI*2) * _local3) / numRotSteps_;
com.midasplayer.game.jellyjumper.BitmapUtils.preRotate(_local4, _local2, 110, 110, _local6);
_local3++;
}
_local4.removeMovieClip();
_local4 = layer_.attachMovie("arrow_small", "arrowxx", layer_.getNextHighestDepth());
_local3 = 0;
while (_local3 < numRotSteps_) {
var _local5 = layer_.getNextHighestDepth();
var _local2 = layer_.createEmptyMovieClip("arrow" + _local5, _local5);
_local2._visible = false;
clips_.push(_local2);
_local2._x = -50;
_local2._y = -50;
var _local6 = ((Math.PI*2) * _local3) / numRotSteps_;
com.midasplayer.game.jellyjumper.BitmapUtils.preRotate(_local4, _local2, 100, 100, _local6);
_local3++;
}
_local4.removeMovieClip();
_local4 = layer_.attachMovie("arrow_long", "arrowxx", layer_.getNextHighestDepth());
_local3 = 0;
while (_local3 < numRotSteps_) {
var _local5 = layer_.getNextHighestDepth();
var _local2 = layer_.createEmptyMovieClip("arrow" + _local5, _local5);
_local2._visible = false;
clips_.push(_local2);
_local2._x = -69;
_local2._y = -69;
var _local6 = ((Math.PI*2) * _local3) / numRotSteps_;
com.midasplayer.game.jellyjumper.BitmapUtils.preRotate(_local4, _local2, 138, 138, _local6);
_local3++;
}
_local4.removeMovieClip();
}
function setRotation(r, isDouble, isHalf) {
r = (r + 360) % 360;
var _local2 = Math.round((numRotSteps_ * r) / 360) % numRotSteps_;
if (isHalf) {
_local2 = _local2 + numRotSteps_;
} else if (isDouble) {
_local2 = _local2 + (2 * numRotSteps_);
}
if (_local2 == previousClipNum_) {
return(undefined);
}
clips_[previousClipNum_]._visible = false;
clips_[_local2]._visible = true;
previousClipNum_ = _local2;
}
}
Symbol 1485 MovieClip [__Packages.com.midasplayer.phys.Line] Frame 0
class com.midasplayer.phys.Line
{
var x0, y0, x1, y1, ax, ay, length, nx, ny, ca, cn, se1, material, se2;
function Line (x0, y0, x1, y1) {
init(x0, y0, x1, y1);
}
function init(x0, y0, x1, y1) {
this.x0 = x0;
this.y0 = y0;
this.x1 = x1;
this.y1 = y1;
ax = x1 - x0;
ay = y1 - y0;
length = Math.sqrt((ax * ax) + (ay * ay));
ax = ax / length;
ay = ay / length;
nx = ay;
ny = -ax;
ca = (nx * x0) + (ny * y0);
cn = (ax * x0) + (ay * y0);
se1 = new com.midasplayer.phys.Sphere();
se1.x = x0;
se1.y = y0;
se1.dx = 0;
se1.dy = 0;
se1.r = 0;
se1.material = material;
se2 = new com.midasplayer.phys.Sphere();
se2.x = x1;
se2.y = y1;
se2.dx = 0;
se2.dy = 0;
se2.r = 0;
se2.material = material;
}
function setMaterial(m) {
material = m;
se1.material = m;
se2.material = m;
}
function getCollision(s, collision) {
var _local5 = ((nx * s.x) + (ny * s.y)) - ca;
var _local6 = ((nx * s.dx) + (ny * s.dy)) + _local5;
if (_local5 > 0) {
if (_local6 > _local5) {
return(undefined);
}
if ((_local6 - s.r) > 0) {
return(undefined);
}
} else {
return(undefined);
}
var _local7 = _local5 - _local6;
var _local4;
if ((_local7 * _local7) > 1E-8) {
_local4 = (_local5 - s.r) / _local7;
} else {
_local4 = 1E-8;
}
var _local10 = s.x + (s.dx * _local4);
var _local9 = s.y + (s.dy * _local4);
var _local8 = ((ax * _local10) + (ay * _local9)) - cn;
if ((_local8 >= 0) && (_local8 <= length)) {
if ((_local4 >= 0) && (_local4 < collision.t)) {
collision.t = _local4;
collision.nx = nx;
collision.ny = ny;
collision.object = this;
collision.material = material;
return(undefined);
}
}
se1.getCollision(s, collision);
se2.getCollision(s, collision);
}
function getAngle() {
var _local3 = x1 - x0;
var _local2 = y1 - y0;
return(Math.atan2(_local2, _local3));
}
function getLength() {
var _local3 = x1 - x0;
var _local2 = y1 - y0;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function normalize() {
x1 = x1 - x0;
y1 = y1 - y0;
x0 = 0;
y0 = 0;
var _local2 = getLength();
x1 = x1 / _local2;
y1 = y1 / _local2;
}
}
Symbol 1486 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Block] Frame 0
class com.midasplayer.game.jellyjumper.Block extends MovieClip
{
var removable, hitclip, hitclip2, hitclip3, stop, _alpha, selected_, animId_, removeMovieClip, r, _rotation, x, _x, y, _y, blockOver, ready, inited, rand_, level_, gotoAndStop, doSetup_, numLines_, numCircles_, lines_, circles_, id, editclip, _totalframes;
function Block () {
super();
removable = false;
hitclip._width = hitclip._width - 0.1;
hitclip._height = hitclip._height - 0.1;
hitclip2._width = hitclip2._width - 0.1;
hitclip2._height = hitclip2._height - 0.1;
hitclip3._width = hitclip3._width - 0.1;
hitclip3._height = hitclip3._height - 0.1;
stop();
}
function markSelected() {
_alpha = 70;
selected_ = true;
}
function unmarkSelected() {
_alpha = 100;
selected_ = false;
}
function isSelected() {
return(selected_);
}
function hitTest(b) {
if (hitclip.hitTest(b.hitclip)) {
return(true);
}
if (hitclip.hitTest(b.hitclip2)) {
return(true);
}
if (hitclip.hitTest(b.hitclip3)) {
return(true);
}
if (hitclip2.hitTest(b.hitclip)) {
return(true);
}
if (hitclip2.hitTest(b.hitclip2)) {
return(true);
}
if (hitclip2.hitTest(b.hitclip3)) {
return(true);
}
if (hitclip3.hitTest(b.hitclip)) {
return(true);
}
if (hitclip3.hitTest(b.hitclip2)) {
return(true);
}
if (hitclip3.hitTest(b.hitclip3)) {
return(true);
}
return(false);
}
function getWidth() {
var _local2 = hitclip._width;
_local2 = ((hitclip2._width > _local2) ? (hitclip2._width) : (_local2));
_local2 = ((hitclip3._width > _local2) ? (hitclip3._width) : (_local2));
return(Math.ceil(_local2));
}
function getHeight() {
var _local2 = hitclip._height;
_local2 = ((hitclip2._height > _local2) ? (hitclip2._height) : (_local2));
_local2 = ((hitclip3._height > _local2) ? (hitclip3._height) : (_local2));
return(Math.ceil(_local2));
}
function remove() {
com.midasplayer.util.AnimPlayer.endAnim(animId_);
removeMovieClip();
}
function editingModeOn() {
hitclip._visible = true;
}
function calcPosition() {
r = _rotation;
x = _x;
y = _y;
}
function setBlockOver(b) {
blockOver = b;
}
function isReady() {
return(ready);
}
function init(level, rand) {
inited = true;
rand_ = rand;
level_ = level;
gotoAndStop(1);
setup();
}
function setup() {
doSetup_ = false;
calcPosition();
numLines_ = 0;
numCircles_ = 0;
lines_ = new Array();
circles_ = new Array();
var _local4 = com.midasplayer.game.jellyjumper.BlockData.getLines(id);
var _local3 = 0;
while (_local3 < _local4.length) {
var _local6 = new com.midasplayer.phys.Line(x + _local4[_local3][1], y + _local4[_local3][2], x + _local4[_local3][3], y + _local4[_local3][4]);
_local6.setMaterial(_local4[_local3][0]);
lines_.push(_local6);
numLines_++;
_local3++;
}
var _local5 = com.midasplayer.game.jellyjumper.BlockData.getSpheres(id);
_local3 = 0;
while (_local3 < _local5.length) {
var _local2 = new com.midasplayer.phys.Sphere();
_local2.x = x + _local5[_local3][1];
_local2.y = y + _local5[_local3][2];
_local2.r = _local5[_local3][3];
_local2.dx = 0;
_local2.dy = 0;
_local2.material = _local5[_local3][0];
circles_.push(_local2);
numCircles_++;
_local3++;
}
if (com.midasplayer.game.jellyjumper.Game.EDITOR_MODE) {
} else {
editclip._visible = false;
}
ready = true;
}
function moveTo(nx, ny) {
var _local5 = nx - x;
var _local4 = ny - y;
x = nx;
y = ny;
var _local3 = 0;
while (_local3 < numLines_) {
var _local2 = com.midasplayer.phys.Line(lines_[_local3]);
_local2.init(_local2.x0 + _local5, _local2.y0 + _local4, _local2.x1 + _local5, _local2.y1 + _local4);
_local3++;
}
}
function hit() {
if (_totalframes > 1) {
var _local2 = new com.midasplayer.game.jellyjumper.anim.BlockHitAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
}
function hitAnimEnd() {
}
function freeze() {
}
function hasIdleAnim() {
return(false);
}
function playIdleAnim() {
var _local2 = new com.midasplayer.game.jellyjumper.anim.IdleBlockAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function removeCollisionDetection() {
numCircles_ = 0;
numLines_ = 0;
}
function getCollision(s, closestCollision) {
var _local2 = 0;
while (_local2 < numCircles_) {
circles_[_local2].getCollision(s, closestCollision);
_local2++;
}
_local2 = 0;
while (_local2 < numLines_) {
lines_[_local2].getCollision(s, closestCollision);
_local2++;
}
}
}
Symbol 1487 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Level] Frame 0
class com.midasplayer.game.jellyjumper.Level extends MovieClip
{
var clip_, blocks_, nearbyBlocks_, attachedBlocks, idleBlocks, nextIdleBlockTick, numIdleBlocks, gotoAndStop, height_, keyPercent_, removableBlocks_, numScoreBlocks_, useRandomSpecials, floorGate1_, floorGate2_, ceilingGate1_, ceilingGate2_, key_, random_, name_, cloudLayer_, getNextHighestDepth, attachMovie, _y, _visible, doSetup_, ownSetupStarted_, ready, scene_, data_, randomBg_, closestCollision, movingObjects_, comboBlocks_, numScoreBlocksTaken_, num_, bg, tick_;
function Level () {
super();
clip_ = this;
blocks_ = new Array();
nearbyBlocks_ = new Array();
attachedBlocks = new Array();
idleBlocks = new Array();
nextIdleBlockTick = 0;
numIdleBlocks = 0;
gotoAndStop(1);
height_ = 0;
getHeight();
keyPercent_ = 75;
removableBlocks_ = new Array();
numScoreBlocks_ = 0;
useRandomSpecials = true;
}
function mergeWith(plevel) {
var _local5 = yToRow(height_ - 25);
var _local6 = 0;
while (_local6 < 6.5) {
var _local4 = 0;
while (_local4 < blocks_[_local6][_local5].length) {
var _local3 = blocks_[_local6][_local5][_local4];
if (((_local3.y == (height_ - 25)) && (_local3.x > 0)) && (_local3.x < 725)) {
_local3.remove();
}
_local4++;
}
_local6++;
}
var _local7 = plevel.getBlocks();
_local5 = 0;
_local6 = 0;
while (_local6 < 7.5) {
var _local4 = 0;
while (_local4 < _local7[_local6][_local5].length) {
var _local3 = _local7[_local6][_local5][_local4];
if (_local3.y == 0) {
var _local2 = attachBlock(_local3.id, _local3.x, height_ - 25);
if (_local2.id == "bfbo") {
floorGate1_ = _local2;
}
if (_local2.id == "bfbo2") {
floorGate2_ = _local2;
}
}
_local4++;
}
_local6++;
}
}
function createFromData(data, randomSpecials) {
blocks_ = new Array();
nearbyBlocks_ = new Array();
removableBlocks_ = new Array();
numScoreBlocks_ = 0;
var _local9 = data.split(";");
var _local3;
_local3 = _local9[0].split(",");
var _local8 = _local3[0];
var _local11 = Number(_local3[1]);
var _local12 = Number(_local3[2]);
var _local10 = Number(_local3[3]);
_local10 = 60 + (_local11 * 5);
setKeyPercent(_local10);
setName(_local8);
setHeight(_local12);
setLevelNum(_local11);
_local8 = _local9.length;
var _local4 = 1;
while (_local4 < _local8) {
_local3 = _local9[_local4].split(",");
if (_local3.length == 3) {
var _local5 = "b" + _local3[0];
var _local7 = _local3[1];
var _local6 = _local3[2];
var _local2 = attachBlock(_local5, _local7, _local6);
if (_local2.id == "bfbo") {
ceilingGate1_ = _local2;
}
if (_local2.id == "bfbo2") {
ceilingGate2_ = _local2;
}
if (_local2.id == "bk") {
key_ = com.midasplayer.game.jellyjumper.KeyBlock(_local2);
}
}
_local4++;
}
}
function randomSpecialId() {
var _local2 = random_.nextInt(60);
if (_local2 < 10) {
return("bb");
}
if (_local2 < 20) {
return("bdr");
}
if (_local2 < 30) {
return("bd");
}
if (_local2 < 40) {
return("be");
}
if (_local2 < 50) {
return("bg");
}
return("bhr");
}
function setName(n) {
name_ = n;
}
function getName() {
return(name_);
}
function setKeyPercent(p) {
keyPercent_ = p;
}
function getKeyPercent() {
return(keyPercent_);
}
function getKey() {
return(key_);
}
function isAttachPossible(block, force) {
if (block.id.charAt(1) == "w") {
force = true;
}
var _local5 = attachedBlocks.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = attachedBlocks[_local3];
if (com.midasplayer.game.jellyjumper.Game.EDITOR_MODE) {
if (block.hitTest(_local2)) {
if ((block.id == "bfbo") || (block.id == "bfbo2")) {
_local2.remove();
} else if (force && ((_local2.id == "bfl") || (_local2.id == "bfr"))) {
} else {
return(false);
}
}
}
_local3++;
}
return(true);
}
function attachBlock(id, x, y, force) {
var _local2;
if ((!com.midasplayer.game.jellyjumper.Game.EDITOR_MODE) && (((id == "bfbc") || (id == "bfbo")) || (id == "bfbo2"))) {
var _local4 = cloudLayer_.getNextHighestDepth();
_local2 = com.midasplayer.game.jellyjumper.Block(cloudLayer_.attachMovie(id, "block" + _local4, _local4));
} else {
var _local4 = getNextHighestDepth();
_local2 = com.midasplayer.game.jellyjumper.Block(attachMovie(id, "block" + _local4, _local4));
}
_local2.id = id;
_local2._x = x;
_local2._y = y;
if (isAttachPossible(_local2, force)) {
attachedBlocks.push(_local2);
if (_local2.hasIdleAnim()) {
idleBlocks.push(_local2);
numIdleBlocks++;
}
if (com.midasplayer.game.jellyjumper.Game.EDITOR_MODE) {
_local2.hitclip.me = this;
_local2.hitclip.onPress = function () {
var _local2 = this.me;
_local2.onBlockSelected(this._parent);
};
}
_local2.x = _local2._x;
_local2.y = _local2._y;
addBlock(_local2);
if (_local2 instanceof com.midasplayer.game.jellyjumper.ScoreBlock) {
numScoreBlocks_++;
}
if (_local2.removable) {
removableBlocks_.push(_local2);
}
} else {
_local2.remove();
}
return(_local2);
}
function setHeight(h) {
height_ = h;
setBackground();
}
function getHeight() {
return(height_);
}
function getY() {
return(_y);
}
function setY(y) {
_y = y;
cloudLayer_._y = y;
}
function setVisible(v) {
_visible = v;
cloudLayer_._visible = v;
}
function isReady() {
if (doSetup_) {
return(false);
}
var _local4 = attachedBlocks.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = attachedBlocks[_local3];
if ((((_local2 != null) && (_local2 != undefined)) && (_local2.id != undefined)) && (!_local2.isReady())) {
return(false);
}
_local3++;
}
if (!ownSetupStarted_) {
ownSetupStarted_ = true;
precalcBlocks();
ready = true;
}
return(ready);
}
function init(scene, num) {
ready = false;
ownSetupStarted_ = false;
scene_ = scene;
cloudLayer_ = scene_.getCloudLayer().createEmptyMovieClip("cloud" + num, scene_.getCloudLayer().getNextHighestDepth());
random_ = new com.midasplayer.util.Random(scene_.getSeed());
createFromData(data_, useRandomSpecials);
randomBg_ = new com.midasplayer.util.Random(scene_.getSeed());
setBackground();
closestCollision = new com.midasplayer.phys.Collision();
movingObjects_ = new com.midasplayer.util.ArrayList();
comboBlocks_ = new com.midasplayer.util.ArrayList();
doSetup_ = true;
numScoreBlocksTaken_ = 0;
}
function setData(data) {
data_ = data;
}
function getLevelNum() {
return(num_);
}
function setLevelNum(n) {
num_ = n;
setBackground();
}
function setBackground() {
var _local3;
var _local5;
var _local4;
bg.bglayer.removeMovieClip();
_local3 = bg.getNextHighestDepth();
_local5 = bg.createEmptyMovieClip("bglayer", _local3);
_local3 = _local5.getNextHighestDepth();
_local4 = _local5.attachMovie("bg_level" + num_, "bgpic", _local3);
bg.bg._height = height_ - _local5._height;
_local4._y = height_ - _local4._height;
if (num_ != 4) {
var _local7 = height_ - 500;
var _local6;
var _local2 = 0;
while (_local2 < _local7) {
_local2 = _local2 + randomBg_.nextInt(150);
_local3 = _local5.getNextHighestDepth();
_local6 = randomBg_.nextInt(3) + 1;
_local4 = _local5.attachMovie("rail" + _local6, "rail" + _local3, _local3);
_local4._y = _local2;
_local2 = _local2 + _local4._height;
}
}
}
function openFloorGate() {
if (floorGate1_ != undefined) {
com.midasplayer.util.AnimPlayer.addAnim(new com.midasplayer.game.jellyjumper.anim.OpenGateAnim(floorGate1_, 100, 10));
}
if (floorGate2_ != undefined) {
com.midasplayer.util.AnimPlayer.addAnim(new com.midasplayer.game.jellyjumper.anim.OpenGateAnim(floorGate2_, -100, 10));
}
}
function closeFloorGate() {
if (floorGate1_ != undefined) {
com.midasplayer.util.AnimPlayer.addAnim(new com.midasplayer.game.jellyjumper.anim.OpenGateAnim(floorGate1_, -100, 10));
}
if (floorGate2_ != undefined) {
com.midasplayer.util.AnimPlayer.addAnim(new com.midasplayer.game.jellyjumper.anim.OpenGateAnim(floorGate2_, 100, 10));
}
}
function openCeilingGate() {
scene_.openFloorGate(num_ + 1);
var _local3;
if (ceilingGate1_ != undefined) {
_local3 = ceilingGate1_;
ceilingGate1_.removeCollisionDetection();
com.midasplayer.util.AnimPlayer.addAnim(new com.midasplayer.game.jellyjumper.anim.OpenGateAnim(ceilingGate1_, 100, 10));
}
if (ceilingGate2_ != undefined) {
_local3 = ceilingGate2_;
ceilingGate2_.removeCollisionDetection();
com.midasplayer.util.AnimPlayer.addAnim(new com.midasplayer.game.jellyjumper.anim.OpenGateAnim(ceilingGate2_, -100, 10));
}
var _local2 = _local3.x / 650;
_local2 = ((_local2 < 0) ? 0 : (_local2));
_local2 = ((_local2 > 1) ? 1 : (_local2));
_local2 = (2 * _local2) - 1;
var _local6 = ((_local2 <= 0) ? 100 : ((1 - _local2) * 100));
var _local5 = ((_local2 <= 0) ? ((-_local2) * 30) : 0);
var _local7 = ((_local2 >= 0) ? 100 : ((_local2 * 100) + 100));
var _local4 = ((_local2 >= 0) ? (_local2 * 30) : 0);
com.midasplayer.fx.SoundManager.play("ceiling_opens_up#1", 70, false, undefined, _local6, _local5, _local7, _local4);
}
function addMovingObject(obj) {
movingObjects_.insert(obj);
}
function addToNearbyBlocks2(b, bx, by) {
if (bx < 0) {
return(undefined);
}
if (by < 0) {
return(undefined);
}
if (nearbyBlocks_[bx] == undefined) {
nearbyBlocks_[bx] = new Array();
}
if (nearbyBlocks_[bx][by] == undefined) {
nearbyBlocks_[bx][by] = new Array();
}
nearbyBlocks_[bx][by].push(b);
}
function addToNearbyBlocks(b) {
var _local4 = xToCol(b.x);
var _local3 = yToRow(b.y);
addToNearbyBlocks2(b, _local4 - 1, _local3 - 1);
addToNearbyBlocks2(b, _local4, _local3 - 1);
addToNearbyBlocks2(b, _local4 + 1, _local3 - 1);
addToNearbyBlocks2(b, _local4 - 1, _local3);
addToNearbyBlocks2(b, _local4, _local3);
addToNearbyBlocks2(b, _local4 + 1, _local3);
addToNearbyBlocks2(b, _local4 - 1, _local3 + 1);
addToNearbyBlocks2(b, _local4, _local3 + 1);
addToNearbyBlocks2(b, _local4 + 1, _local3 + 1);
}
function addBlock(b) {
var _local2 = xToCol(b.x);
var _local3 = yToRow(b.y);
if (blocks_[_local2] == undefined) {
blocks_[_local2] = new Array();
}
if (blocks_[_local2][_local3] == undefined) {
blocks_[_local2][_local3] = new Array();
}
blocks_[_local2][_local3].push(b);
addToNearbyBlocks(b);
}
static function xToCol(x) {
var _local1 = Math.floor(x / TILE_SIZE);
_local1 = ((_local1 < 0) ? 0 : (_local1));
return(_local1);
}
static function yToRow(y) {
var _local1 = Math.floor(y / TILE_SIZE);
_local1 = ((_local1 < 0) ? 0 : (_local1));
return(_local1);
}
function addScoreBlocks(clip) {
}
function getNumScoreBlocks() {
return(numScoreBlocks_);
}
function precalcBlocks() {
var _local8 = removableBlocks_.length;
var _local3;
var _local2;
var _local6 = 0;
while (_local6 < _local8) {
_local3 = removableBlocks_[_local6];
var _local5 = nearbyBlocks_[xToCol(_local3.x)][yToRow(_local3.y)];
var _local7 = _local5.length;
var _local4 = 0;
while (_local4 < _local7) {
_local2 = _local5[_local4];
if (_local2.removable) {
if (_local3.x == _local2.x) {
if (_local3.y == (_local2.y - 25)) {
_local3.blockUnder = _local2;
} else if (_local3.y == (_local2.y + 25)) {
_local3.blockOver = _local2;
}
} else if (_local3.y == _local2.y) {
if (_local3.x == (_local2.x - 50)) {
_local3.blockRight = _local2;
} else if (_local3.x == (_local2.x + 50)) {
_local3.blockLeft = _local2;
}
}
}
_local4++;
}
_local6++;
}
}
function tick(tick) {
tick_ = tick;
var _local4 = movingObjects_.size();
var _local3;
var _local2 = _local4 - 1;
while (_local2 >= 0) {
_local3 = com.midasplayer.game.jellyjumper.MovingObject(movingObjects_.get(_local2));
moveObject(_local3);
if (_local3.isRemoved()) {
movingObjects_.removeByIndex(_local2);
}
_local2--;
}
if (nextIdleBlockTick < tick) {
var _local5 = idleBlocks[random(numIdleBlocks)];
if ((_local5 != undefined) && (_local5 != null)) {
_local5.playIdleAnim();
nextIdleBlockTick = tick + 10;
}
}
}
function getCollisionBlock(s) {
var _local6;
closestCollision.t = 999;
var _local4 = closestCollision.t;
var _local5 = nearbyBlocks_[xToCol(s.x)][yToRow(s.y)];
var _local7 = _local5.length;
var _local2 = 0;
while (_local2 < _local7) {
var _local3 = _local5[_local2];
_local3.getCollision(s, closestCollision);
if (closestCollision.t < _local4) {
_local4 = closestCollision.t;
_local6 = _local3;
}
_local2++;
}
if ((_local4 >= 0) && (_local4 < 1)) {
_local6.collision = closestCollision;
return(_local6);
}
return(undefined);
}
function moveObject(object) {
var _local6 = 1;
var _local10 = 0;
var _local7;
var _local3 = com.midasplayer.phys.Sphere(object);
_local3.dy = _local3.dy + _local3.ddy;
_local3.dy = ((_local3.dy > 25) ? 25 : (_local3.dy));
var _local8 = nearbyBlocks_[xToCol(_local3.x)][yToRow(_local3.y)];
var _local9 = _local8.length;
while ((_local6 > 0) && (_local10 < 1)) {
_local10++;
closestCollision.t = 999;
var _local2 = closestCollision.t;
var _local5 = 0;
while (_local5 < _local9) {
var _local4 = _local8[_local5];
if (_local4 != undefined) {
_local4.getCollision(_local3, closestCollision);
if (closestCollision.t < _local2) {
_local2 = closestCollision.t;
_local7 = _local4;
}
}
_local5++;
}
if ((_local2 >= 0) && (_local2 < _local6)) {
_local6 = _local6 - _local2;
var _local12 = closestCollision.material;
if (_local2 > 0.02) {
_local3.x = _local3.x + ((_local3.dx * (_local2 - 0.02)) + (closestCollision.nx * 0));
_local3.y = _local3.y + ((_local3.dy * (_local2 - 0.02)) + (closestCollision.ny * 0));
}
object.collide(closestCollision, _local7);
} else {
_local3.x = _local3.x + (_local3.dx * (_local6 - 0.02));
_local3.y = _local3.y + (_local3.dy * (_local6 - 0.02));
_local6 = 0;
}
object.move();
}
}
function render(tick, alpha) {
var _local4 = movingObjects_.size();
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = movingObjects_.get(_local2);
_local3.render(tick, alpha);
_local2++;
}
}
function getBlocks() {
return(blocks_);
}
function scoreBlockTaken(b) {
scene_.scoreBlockTaken(b);
numScoreBlocksTaken_++;
var _local3 = Math.floor((100 * numScoreBlocksTaken_) / numScoreBlocks_);
scene_.setPercentCleared(_local3);
if ((_local3 >= keyPercent_) && (!key_.active)) {
scene_.activateKey();
key_.activate();
}
var _local2 = (100 * _local3) / keyPercent_;
if (_local2 > 100) {
_local2 = 100;
}
scene_.setKeyPercent(_local2);
}
function addFreezeBlock(b) {
if (b != undefined) {
if (b instanceof com.midasplayer.game.jellyjumper.KeyBlock) {
} else {
b.freeze();
}
}
}
function setup() {
var _local4 = 0;
var _local8 = attachedBlocks.length;
var _local2 = 0;
while (_local2 < _local8) {
var _local3 = attachedBlocks[_local2];
if (!_local3.inited) {
_local3.init(this, random_.nextInt(100));
_local4++;
}
if (_local4 == 100) {
com.midasplayer.util.AnimPlayer.delay({millis:10, callback:setup, callback_scope:this});
return(undefined);
}
_local2++;
}
doSetup_ = false;
}
static var TILE_SIZE = 100;
}
Symbol 1488 MovieClip [__Packages.com.midasplayer.util.Random] Frame 0
class com.midasplayer.util.Random
{
var mta, mti, lastSeed;
function Random (aSeed) {
mta = new Array(N);
mti = N + 1;
if (aSeed != undefined) {
init_genrand(aSeed);
}
}
function set seed(s) {
init_genrand(s);
//return(seed);
}
function get seed() {
return(lastSeed);
}
function nextInt(n) {
return((genrand_int32() & 2147483647) % n);
}
function nextFloat() {
return(next(24) / 16777216);
}
function next(bits) {
if (bits < 32) {
return(genrand_int32() & ((1 << bits) - 1));
}
return(genrand_int32());
}
function init_genrand(s) {
var _local5 = getTimer();
lastSeed = s;
mta[0] = s;
var _local2 = s;
var _local3 = new com.midasplayer.util.Integer64();
mti = 1;
while (mti < N) {
_local3.init32((_local2 >>> 30) ^ _local2);
_local3.mulu32(1812433253);
_local2 = (mta[mti] = _local3.lsb + mti);
mti++;
}
var _local6 = getTimer();
}
function genrand_int32() {
var _local3 = 0;
if (mti >= N) {
if (mti == (N + 1)) {
init_genrand(5489);
}
var _local4 = getTimer();
var _local2 = 0;
_local2 = 0;
while (_local2 < (N - M)) {
_local3 = (mta[_local2] & UPPER_MASK) | (mta[_local2 + 1] & LOWER_MASK);
mta[_local2] = (mta[_local2 + M] ^ (_local3 >>> 1)) ^ mag01[_local3 & 1];
_local2++;
}
while (_local2 < (N - 1)) {
_local3 = (mta[_local2] & UPPER_MASK) | (mta[_local2 + 1] & LOWER_MASK);
mta[_local2] = (mta[_local2 + (M - N)] ^ (_local3 >>> 1)) ^ mag01[_local3 & 1];
_local2++;
}
_local3 = (mta[N - 1] & UPPER_MASK) | (mta[0] & LOWER_MASK);
mta[N - 1] = (mta[M - 1] ^ (_local3 >>> 1)) ^ mag01[_local3 & 1];
mti = 0;
var _local5 = getTimer();
}
_local3 = mta[mti++];
_local3 = _local3 ^ (_local3 >>> 11);
_local3 = _local3 ^ ((_local3 << 7) & 2636928640);
_local3 = _local3 ^ ((_local3 << 15) & 4022730752);
_local3 = _local3 ^ (_local3 >>> 18);
return(_local3);
}
static var N = 624;
static var M = 397;
static var MATRIX_A = 2567483615;
static var UPPER_MASK = 2147483648;
static var LOWER_MASK = 2147483647;
static var mag01 = [0, 2567483615];
}
Symbol 1489 MovieClip [__Packages.com.midasplayer.util.Integer64] Frame 0
class com.midasplayer.util.Integer64
{
var r, p, s;
function Integer64 (lowInt) {
r = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
p = [0, 0, 0, 0, 0];
s = [0, 0, 0];
if (lowInt != undefined) {
merge(lowInt);
}
}
function init(v) {
var _local2 = 0;
while (_local2 < p.length) {
p[_local2] = v.p[_local2];
_local2++;
}
}
function init32(n) {
p[0] = n & 32767;
n = n >>> 15;
p[1] = n & 32767;
n = n >>> 15;
p[2] = n & 3;
p[3] = 0;
p[4] = 0;
}
function get lsb() {
return((p[0] | (p[1] << SH)) | ((p[2] & 3) << 30));
}
function get msb() {
return((((p[2] >> 2) | ((p[3] << SH) >> 2)) | ((p[4] << (SH * 2)) >> 2)) & 2147483647);
}
function binaryShiftLeft(step) {
var _local2 = 0;
while (_local2 < step) {
shl();
_local2++;
}
}
function binaryShiftRight(step) {
var _local4 = (step / SH) >> 0;
var _local5 = step - (_local4 * SH);
var _local2 = p.length - 1;
while (_local2 > 0) {
var _local3 = 0;
while (_local3 < _local4) {
p[_local3] = p[_local3 + 1];
_local3++;
}
p[_local2--] = 0;
}
if (_local5 > 0) {
var _local3 = 0;
while (_local3 < _local5) {
shr();
_local3++;
}
}
}
function binaryNot(o) {
p[0] = p[0] ^ o.p[0];
p[1] = p[1] ^ o.p[1];
p[2] = p[2] ^ o.p[2];
p[3] = p[3] ^ o.p[3];
p[4] = p[4] ^ o.p[4];
}
function add64(o) {
var _local4 = 0;
var _local3 = 1;
var _local2 = 0;
while ((_local3 < p.length) && (o.p[_local2] != 0)) {
_local3++;
}
_local2 = 0;
while (_local2 < _local3) {
_local4 = _local4 + (p[_local2] + o.p[_local2]);
p[_local2] = _local4 & MASK;
_local4 = _local4 >> SH;
_local2++;
}
}
function add32(num) {
var _local2 = 0;
var _local5 = num & MASK;
num = num >> SH;
var _local6 = num & MASK;
num = num >> SH;
var _local4 = num & 3;
_local2 = _local2 + (p[0] + _local5);
p[0] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + (p[1] + _local6);
p[1] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + (p[2] + _local4);
p[2] = _local2 & MASK;
}
function mulu32(num) {
var _local3 = 0;
s[0] = num & MASK;
num = num >>> 15;
s[1] = num & MASK;
num = num >>> 15;
s[2] = num & 3;
var _local2 = 0;
while (_local2 < 3) {
var _local4 = s[_local2];
_local3 = _local4 * p[0];
r[_local2][0] = _local3 & MASK;
_local3 = _local3 >> SH;
_local3 = _local3 + (_local4 * p[1]);
r[_local2][1] = _local3 & MASK;
_local3 = _local3 >> SH;
_local3 = _local3 + (_local4 * p[2]);
r[_local2][2] = _local3 & 3;
_local2++;
}
_local3 = r[0][0];
p[0] = _local3 & MASK;
_local3 = _local3 >> SH;
_local3 = _local3 + (r[0][1] + r[1][0]);
p[1] = _local3 & MASK;
_local3 = _local3 >> SH;
_local3 = _local3 + ((r[0][2] + r[1][1]) + r[2][0]);
p[2] = _local3 & 3;
p[3] = 0;
p[4] = 0;
}
function mul64(o) {
var _local2 = 0;
var _local3 = 0;
while (_local3 < 5) {
var _local4 = o.p[_local3];
_local2 = _local4 * p[0];
r[_local3][0] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + (_local4 * p[1]);
r[_local3][1] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + (_local4 * p[2]);
r[_local3][2] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + (_local4 * p[3]);
r[_local3][3] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + (_local4 * p[4]);
r[_local3][4] = _local2 & MASK;
_local3++;
}
_local2 = r[0][0];
p[0] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + (r[0][1] + r[1][0]);
p[1] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + ((r[0][2] + r[1][1]) + r[2][0]);
p[2] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + (((r[0][3] + r[1][2]) + r[2][1]) + r[3][0]);
p[3] = _local2 & MASK;
_local2 = _local2 >> SH;
_local2 = _local2 + ((((r[0][4] + r[1][3]) + r[2][2]) + r[3][1]) + r[4][0]);
p[4] = _local2 & 7;
}
function mul32(value) {
mul64(new com.midasplayer.util.Integer64(value));
}
function toString() {
return(((((("Integer64[value=0x" + com.midasplayer.util.Numbers.dec2hex(msb)) + ":") + com.midasplayer.util.Numbers.dec2hex(lsb)) + ":(") + p) + ")]");
}
function merge(a) {
var _local2 = 0;
while (_local2 < 3) {
p[_local2] = p[_local2] + (a & 32767);
a = a >>> 15;
_local2++;
}
return(a);
}
function shl() {
var _local5 = 0;
var _local4 = 0;
var _local2 = 0;
var _local3 = p.length;
while (_local2 < _local3) {
_local5 = (p[_local2] & 16384) >> 14;
p[_local2] = p[_local2] << 1;
p[_local2] = (p[_local2] | _local4) & 32767;
_local2++;
_local4 = _local5;
}
}
function shr() {
var _local4 = 0;
var _local3 = 0;
var _local2 = p.length - 1;
while (_local2 >= 0) {
_local4 = (p[_local2] & 1) << 14;
p[_local2] = p[_local2] >> 1;
p[_local2] = (p[_local2] | _local3) & 32767;
_local2--;
_local3 = _local4;
}
}
static var MASK = 32767;
static var SH = 15;
}
Symbol 1490 MovieClip [__Packages.com.midasplayer.util.Numbers] Frame 0
class com.midasplayer.util.Numbers
{
function Numbers () {
}
static function dec2hex(iValue, padding) {
var _local1 = "";
while (iValue != 0) {
_local1 = "0123456789abcdef".charAt(iValue & 15) + _local1;
iValue = iValue >>> 4;
}
if (padding) {
if (_local1.length == 0) {
_local1 = "00";
}
if (_local1.length < 2) {
_local1 = "0" + _local1;
}
} else if (_local1.length == 0) {
_local1 = "0";
}
return(_local1);
}
static function itoa(value, numZeroPadding) {
var _local2 = "" + value;
if (numZeroPadding) {
var _local1 = numZeroPadding - 1;
while (_local1 > 0) {
if (value < Math.pow(10, _local1)) {
_local2 = "0" + _local2;
}
_local1--;
}
}
return(_local2);
}
static function asTime(millis, alwaysHours, alwaysMinutes) {
if (alwaysHours) {
alwaysMinutes = true;
}
if (millis < 0) {
millis = 0;
}
millis = millis / 1000;
millis = Math.floor(millis);
var _local3 = Math.floor(millis / 3600);
var _local4 = Math.floor(millis / 60) % 60;
var _local5 = millis % 60;
var _local1 = "";
if (alwaysHours || (_local3 > 0)) {
_local1 = _local1 + itoa(_local3, 2);
}
if (alwaysHours || (_local1.length > 0)) {
_local1 = _local1 + ":";
}
var _local6 = _local1.length;
if ((alwaysMinutes || (_local4 > 0)) || (_local3 > 0)) {
_local1 = _local1 + itoa(_local4, 2);
}
if (alwaysMinutes || (_local1.length != _local6)) {
_local1 = _local1 + ":";
}
return(_local1 + itoa(_local5, 2));
}
}
Symbol 1491 MovieClip [__Packages.com.midasplayer.game.jellyjumper.KeyBlock] Frame 0
class com.midasplayer.game.jellyjumper.KeyBlock extends com.midasplayer.game.jellyjumper.Block
{
var block, appear, spin, effect, active, removable, level_, animId_, removed, removeCollisionDetection, _visible;
function KeyBlock () {
super();
block.gotoAndStop(1);
appear.gotoAndStop(1);
appear._visible = false;
spin.gotoAndStop(1);
spin._visible = false;
effect.gotoAndStop(1);
effect._visible = false;
active = false;
removable = true;
}
function setup() {
super.setup();
}
function preview() {
var _local2 = new com.midasplayer.game.jellyjumper.anim.KeyPreviewAnim(this, level_.getLevelNum());
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function previewEnd() {
block.gotoAndStop(1);
}
function activate() {
if (!active) {
active = true;
com.midasplayer.fx.SoundManager.play("block_points#1", 70);
block.gotoAndStop(2);
}
}
function hit() {
if (removed) {
return(undefined);
}
if (!active) {
return(undefined);
}
removed = true;
level_.openCeilingGate();
removeCollisionDetection();
block._visible = false;
var _local2 = new com.midasplayer.game.jellyjumper.anim.KeyAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function hitAnimEnd() {
_visible = false;
}
function getCollision(s, closestCollision) {
if (!active) {
return(undefined);
}
super.getCollision(s, closestCollision);
}
}
Symbol 1492 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.KeyPreviewAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.KeyPreviewAnim
{
var block_, levelNum_, oef, ef;
function KeyPreviewAnim (block, levelNum) {
block_ = block;
levelNum_ = levelNum;
block_.block.gotoAndStop(2);
block_.effect._oy = block_.effect._y;
}
function tick(tick) {
var _local4 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, levelNum_ * 80);
var _local3 = (((_local4 * 200) * (levelNum_ + 1)) % 100) / 100;
var _local2 = (_local3 * 2) - 1;
_local2 = 1 - (_local2 * _local2);
block_.effect._visible = true;
block_.effect._alpha = _local2 * 100;
oef = ef;
ef = Math.round(_local3 * (block_.effect._totalframes - 1)) + 1;
return(_local4 == 1);
}
function end() {
oef = (ef = 1);
block_.effect._visible = false;
block_.previewEnd();
}
function render(alpha) {
block_.effect.gotoAndStop(Math.round(oef + ((ef - oef) * alpha)));
}
}
Symbol 1493 MovieClip [__Packages.com.midasplayer.fx.SoundManager] Frame 0
class com.midasplayer.fx.SoundManager
{
function SoundManager () {
}
static function isSoundEnabled() {
return(soundEnabled);
}
static function enableSounds(enabled) {
soundEnabled = enabled;
if (!enabled) {
muteAll();
} else {
restoreMuteAll();
}
}
static function stopAll() {
sounds.foreach(function (name, soundEntry) {
soundEntry.sound.stop();
soundEntry.playStatus = false;
});
}
static function muteAll() {
sounds.foreach(function (name, soundEntry) {
soundEntry.sound.setVolume(0);
});
}
static function restoreMuteAll() {
sounds.foreach(function (name, soundEntry) {
soundEntry.sound.setVolume(soundEntry.realVol);
});
}
static function stop(resource) {
var _local1 = sounds.get(resource);
if (_local1 != undefined) {
_local1.sound.stop();
_local1.playStatus = false;
}
}
static function getCalibratedVolume(flashVolume) {
flashVolume = Math.min(100, flashVolume);
flashVolume = Math.max(0, flashVolume);
return(Math.ceil(Math.pow(flashVolume / 100, 1.46) * 100));
}
static function setVolume(resource, percent) {
var _local1 = sounds.get(resource);
if (_local1 == undefined) {
var _local3 = new Array();
_local3.push(resource);
initialize(_local3);
}
_local1 = sounds.get(resource);
if (_local1 != undefined) {
var _local2 = percent;
_local1.sound.setVolume(_local2);
_local1.sound.volume = _local2;
}
}
static function getVolume(resource) {
var _local1 = sounds.get(resource);
if (_local1 != undefined) {
return(_local1.sound.getVolume());
}
return(100);
}
static function isPlaying(resource) {
var _local1 = sounds.get(resource);
return((_local1 != undefined) && (_local1.playStatus == true));
}
static function initialize(list) {
for (var _local9 in list) {
var resource = list[_local9];
var _local3 = _root.getNextHighestDepth();
var _local2 = new Sound(_root.createEmptyMovieClip("sm_sndhold_" + _local3, _local3));
_local2.attachSound(resource);
_local2.onSoundComplete = function () {
var _local1 = com.midasplayer.fx.SoundManager.sounds.get(resource);
_local1.playStatus = false;
};
sounds.put(resource, {realVol:100, sound:_local2, playStatus:false});
}
}
static function play(resource, volume, isLoop, fn, ll, lr, rr, rl) {
if (volume == undefined) {
volume = getVolume(resource);
}
if (isLoop == undefined) {
isLoop = false;
}
if (ll == undefined) {
ll = 100;
lr = 0;
rr = 100;
rl = 0;
}
var _local2 = sounds.get(resource);
if (_local2 != undefined) {
_local2.sound.setVolume((soundEnabled ? (volume) : 0));
_local2.realVol = volume;
_local2.playStatus = true;
_local2.onPlayedFn = fn;
var _local4 = new Object();
_local4.ll = ll;
_local4.lr = lr;
_local4.rr = rr;
_local4.rl = rl;
_local2.sound.setTransform(_local4);
_local2.sound.start(0, (isLoop ? 32767 : 1));
} else {
var _local8 = _root.getNextHighestDepth();
var _local3 = new Sound(_root.createEmptyMovieClip("sm_sndhold_" + _local8, _local8));
_local3.attachSound(resource);
_local3.onSoundComplete = function () {
var _local1 = com.midasplayer.fx.SoundManager.sounds.get(resource);
_local1.playStatus = false;
com.midasplayer.fx.SoundManager.onPlayed_(resource);
};
_local3.setVolume((soundEnabled ? (volume) : 0));
var _local4 = new Object();
_local4.ll = ll;
_local4.lr = lr;
_local4.rr = rr;
_local4.rl = rl;
_local3.setTransform(_local4);
_local3.start(0, (isLoop ? 32767 : 1));
sounds.put(resource, {realVol:volume, onPlayedFn:fn, sound:_local3, playStatus:true});
}
}
static function onPlayed_(name) {
var _local1 = sounds.get(name);
if ((_local1 != undefined) && (_local1.onPlayedFn != undefined)) {
_local1.onPlayedFn();
}
}
static var sounds = new com.midasplayer.util.Map();
static var soundEnabled = true;
}
Symbol 1494 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.KeyAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.KeyAnim
{
var block_, oey, ey, osy, sy, oaf, af, oef, ef, osf, sf;
function KeyAnim (block) {
block_ = block;
block_.effect._oy = block_.effect._y;
block_.spin._oy = block_.spin._y;
oey = (ey = block_.effect._oy);
osy = (sy = block_.spin._oy);
}
function tick(tick) {
var _local5 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 15);
block_.appear._visible = true;
oaf = af;
af = Math.round(_local5 * (block_.appear._totalframes - 1)) + 1;
var _local3 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 10);
block_.effect._visible = true;
ey = block_.effect._oy - (20 * _local3);
oef = ef;
ef = Math.round(_local3 * (block_.effect._totalframes - 1)) + 1;
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 15, 25);
if (_local2 > 0) {
block_.appear._visible = false;
block_.effect._visible = false;
block_.spin._visible = true;
osy = sy;
sy = block_.spin._oy - ((30 * _local2) * _local2);
osf = sf;
sf = Math.round(_local2 * (block_.spin._totalframes - 1)) + 1;
}
return(_local2 == 1);
}
function end() {
oaf = af;
oef = ef;
osf = sf;
oey = ey;
osy = sy;
block_.hitAnimEnd();
}
function render(alpha) {
block_.appear.gotoAndStop(Math.round(oaf + ((af - oaf) * alpha)));
block_.effect.gotoAndStop(Math.round(oef + ((ef - oef) * alpha)));
block_.effect._y = oey + ((ey - oey) * alpha);
block_.spin.gotoAndStop(Math.round(osf + ((sf - osf) * alpha)));
block_.spin._y = osy + ((sy - osy) * alpha);
}
}
Symbol 1495 MovieClip [__Packages.com.midasplayer.game.jellyjumper.ScoreBlock] Frame 0
class com.midasplayer.game.jellyjumper.ScoreBlock extends com.midasplayer.game.jellyjumper.Block
{
var block, vanish1, vanish2, ball, removable, rand_, removed, attachMovie, getNextHighestDepth, numLines_, lines_, numCircles_, circles_, frozen, unfrozen, level_, animId_, removeCollisionDetection, oldY_, y, _visible;
function ScoreBlock () {
super();
block.gotoAndStop(1);
block.anim.gotoAndStop(1);
vanish1.gotoAndStop(1);
vanish1._visible = false;
vanish2.gotoAndStop(1);
vanish2._visible = false;
ball.gotoAndStop(1);
ball.anim.gotoAndStop(1);
ball._visible = false;
removable = true;
}
function setup() {
super.setup();
var _local3 = (rand_ % 6) + 1;
block.gotoAndStop(_local3);
ball.gotoAndStop(_local3);
}
function freeze() {
if (removed) {
return(undefined);
}
var _local3 = attachMovie("freezer_block", "freezer", getNextHighestDepth());
_local3._alpha = 85;
_local3.stop();
var _local2 = 0;
while (_local2 < numLines_) {
lines_[_local2].setMaterial(com.midasplayer.game.jellyjumper.Material.FREEZER_BLOCK);
_local2++;
}
_local2 = 0;
while (_local2 < numCircles_) {
circles_[_local2].setMaterial(com.midasplayer.game.jellyjumper.Material.FREEZER_BLOCK);
_local2++;
}
frozen = true;
}
function hit() {
if (removed) {
return(undefined);
}
if (frozen) {
unfrozenHits++;
if ((unfrozenHits > 20) && (!unfrozen)) {
unfrozen = true;
if (!com.midasplayer.fx.SoundManager.isPlaying("ice_melting#2")) {
com.midasplayer.fx.SoundManager.play("ice_melting#2", 20);
}
level_.scoreBlockTaken(this);
var _local2 = new com.midasplayer.game.jellyjumper.anim.ScoreBlockUnfrozenAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
return(undefined);
}
removed = true;
level_.scoreBlockTaken(this);
removeCollisionDetection();
block._visible = false;
oldY_ = y;
var _local2 = new com.midasplayer.game.jellyjumper.anim.ScoreBlockAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function hitAnimEnd() {
_visible = false;
numCircles_ = 0;
numLines_ = 0;
removed = true;
}
var unfrozenHits = 0;
}
Symbol 1496 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Material] Frame 0
class com.midasplayer.game.jellyjumper.Material
{
function Material () {
}
static var NORMAL = 0;
static var DOUBLE = 1;
static var HALF = 2;
static var SLIPPERY = 3;
static var BOUNCE_DOUBLE = 4;
static var BOUNCE_HALF = 5;
static var SCORE_BLOCK = 6;
static var KEY_BLOCK = 7;
static var BOMB_BLOCK = 8;
static var DROWSER_BLOCK = 9;
static var GOLD_BLOCK = 10;
static var ROCKET_BLOCK = 11;
static var FREEZER_BLOCK = 12;
static var BOUNCE_NORMAL = 13;
static var ENLARGE_BLOCK = 14;
static var POLKA = 15;
}
Symbol 1497 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.ScoreBlockUnfrozenAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.ScoreBlockUnfrozenAnim
{
var block_, of, f;
function ScoreBlockUnfrozenAnim (block) {
block_ = block;
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 15);
of = f;
f = Math.round(_local2 * (block_.freezer._totalframes - 1)) + 1;
return(_local2 == 1);
}
function end() {
of = f;
block_.hitAnimEnd();
}
function render(alpha) {
block_.freezer.gotoAndStop(Math.round(of + ((f - of) * alpha)));
}
}
Symbol 1498 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.ScoreBlockAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.ScoreBlockAnim
{
var block_, oldY_, oy, y, obf, bf, ov1f, v1f, ov2f, v2f;
function ScoreBlockAnim (block) {
block_ = block;
oldY_ = block._y;
block_.ball._visible = true;
block_.vanish1._visible = true;
block_.vanish2._visible = false;
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 10);
oy = y;
y = oldY_ + (_local2 * 15);
obf = bf;
bf = Math.round(_local2 * (block_.ball.anim._totalframes - 1)) + 1;
ov1f = v1f;
v1f = Math.round(_local2 * (block_.vanish1._totalframes - 1)) + 1;
var _local3 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 10, 10);
if (_local3 > 0) {
block_.ball._visible = false;
block_.vanish1._visible = false;
block_.vanish2._visible = true;
ov2f = v2f;
v2f = Math.round(_local3 * (block_.vanish2._totalframes - 1)) + 1;
}
return(_local3 == 1);
}
function end() {
oy = y;
obf = bf;
ov1f = v1f;
ov2f = v2f;
block_.hitAnimEnd();
}
function render(alpha) {
block_._y = oy + ((y - oy) * alpha);
block_.ball.anim.gotoAndStop(Math.round(obf + ((bf - obf) * alpha)));
block_.vanish1.gotoAndStop(Math.round(ov1f + ((v1f - ov1f) * alpha)));
block_.vanish2.gotoAndStop(Math.round(ov2f + ((v2f - ov2f) * alpha)));
}
}
Symbol 1499 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.OpenGateAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.OpenGateAnim
{
var gate_, dx_, x_, t_;
function OpenGateAnim (gate, dx, t) {
gate_ = gate;
dx_ = dx;
x_ = gate_.x;
t_ = t;
}
function tick(tick) {
gate_.ox = gate_.x;
gate_.oy = gate_.y;
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, t_);
var _local3 = x_ + (dx_ * _local2);
gate_.moveTo(_local3, gate_.y);
return(_local2 == 1);
}
function end() {
gate_.ox = gate_.x;
gate_.oy = gate_.y;
}
function render(alpha) {
gate_._x = gate_.ox + ((gate_.x - gate_.ox) * alpha);
gate_._y = gate_.oy + ((gate_.y - gate_.oy) * alpha);
}
}
Symbol 1500 MovieClip [__Packages.com.midasplayer.game.jellyjumper.MovingObject] Frame 0
interface com.midasplayer.game.jellyjumper.MovingObject
{
}
Symbol 1501 MovieClip [__Packages.com.midasplayer.game.jellyjumper.BlockData] Frame 0
class com.midasplayer.game.jellyjumper.BlockData extends MovieClip
{
static var lines_, spheres_;
function BlockData () {
super();
}
static function staticInitializer(Void) {
lines_ = new com.midasplayer.util.Map();
spheres_ = new com.midasplayer.util.Map();
var _local2;
var _local1;
addLineBox("bb", com.midasplayer.game.jellyjumper.Material.BOMB_BLOCK, 40, 23, 20, 11.5);
addLineBox("bdr", com.midasplayer.game.jellyjumper.Material.ROCKET_BLOCK, 40, 23, 20, 11.5);
addLineBox("bhr", com.midasplayer.game.jellyjumper.Material.ROCKET_BLOCK, 40, 23, 20, 11.5);
addLineBox("bd", com.midasplayer.game.jellyjumper.Material.DROWSER_BLOCK, 40, 23, 20, 11.5);
addLineBox("be", com.midasplayer.game.jellyjumper.Material.ENLARGE_BLOCK, 40, 23, 20, 11.5);
addLineBox("bf", com.midasplayer.game.jellyjumper.Material.FREEZER_BLOCK, 40, 23, 20, 11.5);
addLineBox("bg", com.midasplayer.game.jellyjumper.Material.GOLD_BLOCK, 40, 23, 20, 11.5);
addLineBox("bk", com.midasplayer.game.jellyjumper.Material.KEY_BLOCK, 40, 23, 20, 11.5);
addSphere("bsb", com.midasplayer.game.jellyjumper.Material.SCORE_BLOCK, 0, 0, 17.5);
addLineBox("bfbc", com.midasplayer.game.jellyjumper.Material.NORMAL, 100, 25, 0, 0);
addLineBox("bfbo", com.midasplayer.game.jellyjumper.Material.NORMAL, 100, 25, 0, 0);
addLineBox("bfbo2", com.midasplayer.game.jellyjumper.Material.NORMAL, 100, 25, 0, 0);
addLine("bfb", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 0, 50, 0]);
addLine("bfl", [com.midasplayer.game.jellyjumper.Material.POLKA, 25, 0, 25, 50]);
addLine("bfr", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 50, 0, 0]);
addLineBox("bofb", com.midasplayer.game.jellyjumper.Material.POLKA, 50, 25, 0, 0);
addLineBox("bofl", com.midasplayer.game.jellyjumper.Material.POLKA, 25, 50, 0, 0);
addLineBox("bofr", com.midasplayer.game.jellyjumper.Material.POLKA, 25, 50, 0, 0);
addLineBox("boft", com.midasplayer.game.jellyjumper.Material.POLKA, 50, 25, 0, 0);
addLine("boftl", [com.midasplayer.game.jellyjumper.Material.POLKA, 12.5, 0, 25, 0]);
addLine("boftl", [com.midasplayer.game.jellyjumper.Material.POLKA, 25, 0, 25, 25]);
addLine("boftl", [com.midasplayer.game.jellyjumper.Material.POLKA, 25, 25, 0, 25]);
addLine("boftl", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 25, 0, 12.5]);
addLine("boftl", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 12.5, 12.5, 0]);
addLine("boftr", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 0, 12.5, 0]);
addLine("boftr", [com.midasplayer.game.jellyjumper.Material.POLKA, 12.5, 0, 25, 12.5]);
addLine("boftr", [com.midasplayer.game.jellyjumper.Material.POLKA, 25, 12.5, 25, 25]);
addLine("boftr", [com.midasplayer.game.jellyjumper.Material.POLKA, 25, 25, 0, 25]);
addLine("boftr", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 25, 0, 0]);
addLine("bofbl", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 0, 25, 0]);
addLine("bofbl", [com.midasplayer.game.jellyjumper.Material.POLKA, 25, 0, 25, 25]);
addLine("bofbl", [com.midasplayer.game.jellyjumper.Material.POLKA, 25, 25, 12.5, 25]);
addLine("bofbl", [com.midasplayer.game.jellyjumper.Material.POLKA, 12.5, 25, 0, 12.5]);
addLine("bofbl", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 12.5, 0, 0]);
addLine("bofbr", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 0, 25, 0]);
addLine("bofbr", [com.midasplayer.game.jellyjumper.Material.POLKA, 25, 0, 25, 12.5]);
addLine("bofbr", [com.midasplayer.game.jellyjumper.Material.POLKA, 25, 12.5, 12.5, 25]);
addLine("bofbr", [com.midasplayer.game.jellyjumper.Material.POLKA, 12.5, 25, 0, 25]);
addLine("bofbr", [com.midasplayer.game.jellyjumper.Material.POLKA, 0, 25, 0, 0]);
addSphere("borbd", com.midasplayer.game.jellyjumper.Material.BOUNCE_DOUBLE, 0, 0, 37.5);
addSphere("borbds", com.midasplayer.game.jellyjumper.Material.BOUNCE_DOUBLE, 0, 0, 30);
addLineBox("bosbd", com.midasplayer.game.jellyjumper.Material.BOUNCE_DOUBLE, 75, 75, 37.5, 37.5);
addLineBox("bosbds", com.midasplayer.game.jellyjumper.Material.BOUNCE_DOUBLE, 50, 50, 25, 25);
addSphere("borbh", com.midasplayer.game.jellyjumper.Material.BOUNCE_HALF, 0, 0, 37.5);
addSphere("borbhs", com.midasplayer.game.jellyjumper.Material.BOUNCE_HALF, 0, 0, 30);
addLineBox("bosbh", com.midasplayer.game.jellyjumper.Material.BOUNCE_HALF, 75, 75, 37.5, 37.5);
addLineBox("bosbhs", com.midasplayer.game.jellyjumper.Material.BOUNCE_HALF, 50, 50, 25, 25);
addSphere("borbn", com.midasplayer.game.jellyjumper.Material.BOUNCE_NORMAL, 0, 0, 37.5);
addSphere("borbns", com.midasplayer.game.jellyjumper.Material.BOUNCE_NORMAL, 0, 0, 30);
addLineBox("bosbn", com.midasplayer.game.jellyjumper.Material.BOUNCE_NORMAL, 75, 75, 37.5, 37.5);
addLineBox("bosbns", com.midasplayer.game.jellyjumper.Material.BOUNCE_NORMAL, 50, 50, 25, 25);
addSphere("bord", com.midasplayer.game.jellyjumper.Material.DOUBLE, 0, 0, 37.5);
addSphere("bords", com.midasplayer.game.jellyjumper.Material.DOUBLE, 0, 0, 25);
addLineBox("bosd", com.midasplayer.game.jellyjumper.Material.DOUBLE, 75, 75, 37.5, 37.5);
addLineBox("bosds", com.midasplayer.game.jellyjumper.Material.DOUBLE, 50, 50, 25, 25);
addSphere("borh", com.midasplayer.game.jellyjumper.Material.HALF, 0, 0, 37.5);
addSphere("borhs", com.midasplayer.game.jellyjumper.Material.HALF, 0, 0, 25);
addLineBox("bosh", com.midasplayer.game.jellyjumper.Material.HALF, 75, 75, 37.5, 37.5);
addLineBox("boshs", com.midasplayer.game.jellyjumper.Material.HALF, 50, 50, 25, 25);
addSphere("born", com.midasplayer.game.jellyjumper.Material.NORMAL, 0, 0, 37.5);
addSphere("borns", com.midasplayer.game.jellyjumper.Material.NORMAL, 0, 0, 25);
addLineBox("bosn", com.midasplayer.game.jellyjumper.Material.NORMAL, 70, 70, 35, 35);
addLineBox("bosns", com.midasplayer.game.jellyjumper.Material.NORMAL, 48, 48, 24, 24);
addSphere("bors", com.midasplayer.game.jellyjumper.Material.SLIPPERY, 0, 0, 37.5);
addSphere("borss", com.midasplayer.game.jellyjumper.Material.SLIPPERY, 0, 0, 25);
addLineBox("boss", com.midasplayer.game.jellyjumper.Material.SLIPPERY, 75, 75, 37.5, 37.5);
addLineBox("bosss", com.midasplayer.game.jellyjumper.Material.SLIPPERY, 50, 50, 25, 25);
addLineBox("bwlobd", com.midasplayer.game.jellyjumper.Material.BOUNCE_DOUBLE, 25, 75, -0.3, 0);
addLineBox("bwlobh", com.midasplayer.game.jellyjumper.Material.BOUNCE_HALF, 25, 75, -0.3, 0);
addLineBox("bwlobn", com.midasplayer.game.jellyjumper.Material.BOUNCE_NORMAL, 25, 75, -0.3, 0);
addLineBox("bwlod", com.midasplayer.game.jellyjumper.Material.DOUBLE, 25, 75, -0.3, 0);
addLineBox("bwloh", com.midasplayer.game.jellyjumper.Material.HALF, 25, 75, -0.3, 0);
addLineBox("bwlon", com.midasplayer.game.jellyjumper.Material.NORMAL, 25, 75, -0.3, 0);
addLineBox("bwlos", com.midasplayer.game.jellyjumper.Material.SLIPPERY, 25, 75, -0.3, 0);
addLineBox("bwrobd", com.midasplayer.game.jellyjumper.Material.BOUNCE_DOUBLE, 25, 75, 0.3, 0);
addLineBox("bwrobh", com.midasplayer.game.jellyjumper.Material.BOUNCE_HALF, 25, 75, 0.3, 0);
addLineBox("bwrobn", com.midasplayer.game.jellyjumper.Material.BOUNCE_NORMAL, 25, 75, 0.3, 0);
addLineBox("bwrod", com.midasplayer.game.jellyjumper.Material.DOUBLE, 25, 75, 0.3, 0);
addLineBox("bwroh", com.midasplayer.game.jellyjumper.Material.HALF, 25, 75, 0.3, 0);
addLineBox("bwron", com.midasplayer.game.jellyjumper.Material.NORMAL, 25, 75, 0.3, 0);
addLineBox("bwros", com.midasplayer.game.jellyjumper.Material.SLIPPERY, 25, 75, 0.3, 0);
return(true);
}
static function addLineBox(id, material, w, h, x, y) {
addLine(id, [material, w - x, -y, w - x, h - y]);
addLine(id, [material, w - x, h - y, -x, h - y]);
addLine(id, [material, -x, h - y, -x, -y]);
addLine(id, [material, -x, -y, w - x, -y]);
}
static function addLine(id, data) {
var _local1 = getLines(id);
if (_local1 == undefined) {
_local1 = new Array();
lines_.put(id, _local1);
}
_local1.push(data);
}
static function addSphere(id, material, x, y, r) {
var _local1 = getSpheres(id);
if (_local1 == undefined) {
_local1 = new Array();
spheres_.put(id, _local1);
}
_local1.push([material, x, y, r]);
}
static function getLines(id) {
return(lines_.get(id));
}
static function getSpheres(id) {
return(spheres_.get(id));
}
static var staticInitialized = staticInitializer();
}
Symbol 1502 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.BlockHitAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.BlockHitAnim
{
var clip_, totalFrames_, of, f;
function BlockHitAnim (clip) {
clip_ = clip;
totalFrames_ = clip_._totalframes;
of = 1;
f = 1;
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 8);
of = f;
f = Math.round(_local2 * (totalFrames_ - 1)) + 1;
return(_local2 == 1);
}
function end() {
of = (f = 1);
}
function render(alpha) {
var _local2 = Math.round(of + ((f - of) * alpha));
clip_.gotoAndStop(_local2);
}
}
Symbol 1503 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.IdleBlockAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.IdleBlockAnim
{
var block_, n, f, of;
function IdleBlockAnim (block) {
block_ = block.block;
n = block_._totalframes;
f = (of = 1);
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 6);
of = f;
f = Math.round(_local2 * (n - 1)) + 1;
return(_local2 == 1);
}
function end() {
of = f;
}
function render(alpha) {
var _local2 = Math.round(of + ((f - of) * alpha));
block_.gotoAndStop(_local2);
}
}
Symbol 1504 MovieClip [__Packages.com.midasplayer.util.MyColor] Frame 0
class com.midasplayer.util.MyColor
{
function MyColor () {
}
static function setHue($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n * (Math.PI/180);
var _local1 = Math.cos($n);
var _local2 = Math.sin($n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, $m));
}
static function setBrightness($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = ($n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, $n, 0, 1, 0, 0, $n, 0, 0, 1, 0, $n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], $m));
}
static function setSaturation($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local4 = 1 - $n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + $n, _local5, _local2, 0, 0, _local3, _local5 + $n, _local2, 0, 0, _local3, _local5, _local2 + $n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, $m));
}
static function setContrast($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n + 0.01;
var _local2 = [$n, 0, 0, 0, 128 * (1 - $n), 0, $n, 0, 0, 128 * (1 - $n), 0, 0, $n, 0, 128 * (1 - $n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function applyMatrix($m, $m2) {
if (((($m == undefined) || (!($m instanceof Array))) || ($m2 == undefined)) || (!($m2 instanceof Array))) {
return($m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6 = 0;
while (_local6 < 4) {
var _local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = $m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = (((($m[_local2] * $m2[_local1]) + ($m[_local2 + 1] * $m2[_local1 + 5])) + ($m[_local2 + 2] * $m2[_local1 + 10])) + ($m[_local2 + 3] * $m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
}
Symbol 1505 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1506 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.LevelUpAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.LevelUpAnim
{
var scene_, jumper_, clip_, jy, y, closedGate_, oy, ojy;
function LevelUpAnim (scene) {
scene_ = scene;
jumper_ = scene_.getJumper();
jumper_.setRotation(0);
jumper_.rotSegment_ = 0;
clip_ = scene_.getClip();
jy = jumper_.y;
y = clip_._y;
closedGate_ = false;
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 40);
var _local3 = 1 - ((1 - _local2) * (1 - _local2));
_local3 = com.midasplayer.util.AnimPlayer.easeInOutQuad(_local2, 0, 1, 1);
jumper_.y = 25 - (43.4 * _local2);
oy = y;
y = com.midasplayer.game.jellyjumper.Scene.PREVIEW_DISTANCE + (((550 - com.midasplayer.game.jellyjumper.Scene.PREVIEW_DISTANCE) - 25) * _local3);
if ((_local2 > 0.7) && (!closedGate_)) {
closedGate_ = true;
scene_.closeFloorGate(scene_.getCurrentLevel().getLevelNum());
}
return(_local2 == 1);
}
function end() {
oy = y;
ojy = jy;
scene_.levelUpEnd();
}
function render(alpha) {
clip_._y = oy + ((y - oy) * alpha);
}
}
Symbol 1507 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.PreviewLevelAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.PreviewLevelAnim
{
var scene_, levelNum_, scrollY_, clip_, y, oy;
function PreviewLevelAnim (scene) {
scene_ = scene;
levelNum_ = scene_.getCurrentLevel().getLevelNum();
scrollY_ = scene_.getCurrentLevel().getHeight();
scene_.getCurrentLevel().getKey().preview();
clip_ = scene_.getClip();
y = clip_._y;
}
function tick(tick) {
var _local4 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, levelNum_ * 80);
var _local3 = 1 - com.midasplayer.util.AnimPlayer.tickToPercent(tick, (levelNum_ * 80) / 2, 10);
var _local2 = (_local4 * 2) - 1;
_local2 = 1 - (((_local2 * _local2) * _local2) * _local2);
oy = y;
if (levelNum_ == 1) {
y = -75 + (((scrollY_ - 550) - (0 * com.midasplayer.game.jellyjumper.Scene.PREVIEW_DISTANCE)) * _local2);
} else {
y = 525 + (((scrollY_ - 550) - (0 * com.midasplayer.game.jellyjumper.Scene.PREVIEW_DISTANCE)) * _local2);
}
if (_local3 < 1) {
scene_.getInfoLayer().level_frame._alpha = 100 * (1 - ((1 - _local3) * (1 - _local3)));
}
return(_local4 == 1);
}
function end() {
oy = y;
scene_.previewLevelEnd();
}
function render(alpha) {
clip_._y = oy + ((y - oy) * alpha);
}
}
Symbol 1508 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Replayer] Frame 0
class com.midasplayer.game.jellyjumper.Replayer implements com.midasplayer.timing.Timeable
{
var game_, clip_, entries_, xml, interval_, nextTick_, timer_, data_, dataIndex_, scene_;
function Replayer (game) {
game_ = game;
clip_ = _root.createEmptyMovieClip("replay", _root.getNextHighestDepth());
entries_ = new Array();
xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = mx.utils.Delegate.create(this, xmlLoaded);
xml.load("xml/playdata.xml");
}
function xmlLoaded(success) {
if (success) {
parse();
doReplay();
}
}
function parse() {
var _local3 = xml.firstChild.firstChild.firstChild.childNodes;
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = new String(_local3[_local2].nodeName);
if (_local4 == "entry") {
parseEntry(_local3[_local2]);
}
_local2++;
}
}
function parseEntry(xml) {
var _local2 = String(xml.firstChild);
_local2 = _local2.substring(0, _local2.indexOf("="));
var _local5 = _local2.split(",");
var _local3 = _local5[1].split(" ");
entries_.push({code:_local5[0], data:_local3});
}
function doReplay() {
clearInterval(interval_);
var _local2 = entriesIndex_;
if (_local2 >= entries_.length) {
nextTick_ = -1;
timer_ = new com.midasplayer.timing.Timer(this, 25);
clip_.timer = timer_;
clip_.onEnterFrame = function () {
this.timer.advanceTime2();
};
return(undefined);
}
if (entries_[_local2].code == "19") {
var _local4 = entries_[_local2].data[1];
com.midasplayer.util.GameBase.gameData.put("seed", _local4);
game_.startGame2();
entriesIndex_++;
doReplay();
return(undefined);
}
if (entries_[_local2].code == "20") {
if (game_.getScene().started()) {
data_ = new Array();
dataIndex_ = 0;
scene_ = game_.getScene();
entriesIndex_++;
doReplay();
return(undefined);
}
interval_ = setInterval(this, "doReplay", 1000);
return(undefined);
}
if (entries_[_local2].code == "8") {
var _local3 = entries_[_local2].data[0];
var _local6 = entries_[_local2].data[1];
var _local5 = entries_[_local2].data[2];
data_.push(_local3);
data_.push(0);
data_.push(_local6);
data_.push(_local5);
entriesIndex_++;
doReplay();
return(undefined);
}
if (entries_[_local2].code == "3") {
var _local3 = entries_[_local2].data[0];
data_.push(_local3);
data_.push(1);
entriesIndex_++;
doReplay();
return(undefined);
}
if (entries_[_local2].code == "4") {
var _local3 = entries_[_local2].data[0];
data_.push(_local3);
data_.push(2);
entriesIndex_++;
doReplay();
return(undefined);
}
if (entries_[_local2].code == "5") {
var _local3 = entries_[_local2].data[0];
data_.push(_local3);
data_.push(3);
entriesIndex_++;
doReplay();
return(undefined);
}
}
function tick(tick) {
if (nextTick_ == -2) {
return(undefined);
}
if (nextTick_ == -1) {
if (data_.length > 0) {
nextTick_ = data_.shift();
} else {
clip_.onEnterFrame = undefined;
delete timer_;
nextTick_ = -2;
return(undefined);
}
}
while (nextTick_ == tick) {
var _local2 = data_.shift();
if (_local2 == 0) {
var _local4 = data_.shift();
var _local3 = data_.shift();
scene_.jumpTo(_local4, _local3);
}
if (_local2 == 1) {
}
if (_local2 == 2) {
}
if (_local2 == 3) {
}
if (data_.length > 0) {
nextTick_ = data_.shift();
} else {
nextTick_ = -1;
}
}
scene_.tick(tick);
}
function render(tick, alpha) {
scene_.render(tick, alpha);
}
var entriesIndex_ = 0;
}
Symbol 1509 MovieClip [__Packages.com.midasplayer.util.Base64Decoder] Frame 0
class com.midasplayer.util.Base64Decoder
{
var res, p;
function Base64Decoder (r) {
res = r;
p = 0;
}
function next() {
var _local2 = BASE_64_CHARS.indexOf(res.charAt(p++));
_local2 = _local2 + (BASE_64_CHARS.indexOf(res.charAt(p++)) * 64);
return(_local2);
}
function nextShort() {
return(BASE_64_CHARS.indexOf(res.charAt(p++)));
}
function hasMore() {
return(p < res.length);
}
static var BASE_64_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#!";
}
Symbol 1510 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Blopp] Frame 0
class com.midasplayer.game.jellyjumper.Blopp extends MovieClip
{
var _visible, gotoAndStop, anim, z, y, _y;
function Blopp () {
super();
_visible = false;
gotoAndStop(1);
}
function init(z) {
var _local2 = random(6);
gotoAndStop(_local2 + 1);
anim.gotoAndStop(1);
this.z = z;
_visible = true;
}
function show() {
waitForNextJump(random(500));
}
function waitForNextJump(r) {
com.midasplayer.util.AnimPlayer.delay({millis:r, callback:jump, callback_scope:this});
}
function jump() {
var _local2 = new Array();
y = _y;
_local2.push({obj:this, func:jumpAnim});
com.midasplayer.util.AnimPlayer.play({playlist:_local2, callback:jumpEnd, callback_scope:this, tps:50});
}
function jumpAnim(tick, alpha) {
var _local3 = com.midasplayer.util.AnimPlayer.tickToPercent(tick + alpha, 0, 25);
var _local4 = Math.round(_local3 * 11);
anim.gotoAndStop(_local4);
var _local2 = (2 * _local3) - 1;
_local2 = 1 - (_local2 * _local2);
_y = y - ((((30 * z) * _local2) * _local2) * _local2);
return(_local3 == 1);
}
function jumpEnd() {
waitForNextJump(random(20));
}
}
Symbol 1511 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.IntroAnim] Frame 0
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.midasplayer) {
_global.com.midasplayer = new Object();
}
if (!_global.com.midasplayer.game) {
_global.com.midasplayer.game = new Object();
}
if (!_global.com.midasplayer.game.jellyjumper) {
_global.com.midasplayer.game.jellyjumper = new Object();
}
if (!_global.com.midasplayer.game.jellyjumper.anim) {
_global.com.midasplayer.game.jellyjumper.anim = new Object();
}
if (!_global.com.midasplayer.game.jellyjumper.anim.IntroAnim) {
var _local1 = function (game, clip) {
this.pageNum_ = 0;
this.game_ = game;
this.clip_ = clip;
this.page1();
this.clip_.bunny.gotoAndStop(1);
this.logoY_ = 555;
this.bunnyX_ = 338;
this.bunnyY_ = 555;
this.bunnyF_ = 1;
this.isClicked_ = false;
};
_global.com.midasplayer.game.jellyjumper.anim.IntroAnim = _local1;
var _local2 = _local1.prototype;
_local2.page1 = function () {
if (this.pageNum_ == 1) {
return(undefined);
}
this.pageNum_ = 1;
this.clip_.page.gotoAndStop(1);
this.clip_.page.page1part2._alpha = 0;
this.clip_.page.title.text = "Instructions";
this.clip_.page.instructions.text = "Free Jelly Babies by touching them. Aim the direction of your jumps with the mouse. Click to jump. The more Jelly Babies you free in one jump, the higher your score. When you have freed enough Jelly Babies, the key will be activated. Collect the key to open up a passage to the next level. Remember, you get more points if you free all Jelly Babies on a level.";
this.clip_.page.page1part2.block1.text = "Jelly Baby:";
this.clip_.page.page1part2.block1desc.text = "Try to free as many as possible in one jump.";
this.clip_.page.page1part2.block2.text = "Key:";
this.clip_.page.page1part2.block2desc.text = "Opens up a passage to the next level. The key is activated when you have freed enough Jelly Babies. Keep track of the key meter in the top.";
this.clip_.page.page1part2.block3.text = "Gold:";
this.clip_.page.page1part2.block3desc.text = "Doubles the score of that jump.";
this.clip_.page.page1part2.block4.text = "Bubble:";
this.clip_.page.page1part2.block4desc.text = "Bunny is encapsuled in a bubble.";
this.clip_.page.page1part2.block5.text = "Rockets:";
this.clip_.page.page1part2.block5desc.text = "Are released on touch. Frees all Jelly Babies in its way.";
this.clip_.page.page1part2.block6.text = "Bomb:";
this.clip_.page.page1part2.block6desc.text = "Falls down when Bunny touches it. Frees all Jelly Babies in its path.";
this.clip_.page.next.text = "Next";
};
_local2.page2 = function () {
if (this.pageNum_ == 2) {
return(undefined);
}
this.pageNum_ = 2;
this.clip_.page.gotoAndStop(2);
this.clip_.page.title.text = "Instructions";
this.clip_.page.instructions.text = "Different surfaces affect Bunny in different ways. From some surfaces she jumps longer, from some shorter, and on some she can bounce or slide. Plan your way to the top.";
this.clip_.page.block1.text = "Jelly: Long jumps";
this.clip_.page.block2.text = "Sugar cube: Normal jump";
this.clip_.page.block3.text = "Candy Cane: Normal jump";
this.clip_.page.block4.text = "Chocolate: Bunny slides on the chocolate and can fall off. Jumps are normal.";
this.clip_.page.block5.text = "Fudge: Short jumps";
this.clip_.page.block6.text = "Ice: Bunny slides on the ice. Jelly Babies will freeze if they're next to an ice block that bunny touches. If Bunny stays on an ice block long enough, it will melt.";
this.clip_.page.block7.text = "Liquorice: Bunny bounces on liquorice. The colour in the center decides the amount of bounce.\nWhite: normal bounce\nOrange: big bounce\nBrown: small bounce";
this.clip_.page.start.text = "Play";
};
_local2.pressed = function () {
if (this.isClicked_) {
this.doEnd_ = true;
}
this.isClicked_ = true;
};
_local2.tick = function (tick) {
var _local3 = 1000;
var _local4 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, _local3);
var _local5 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local3 / 2, 1);
var _local6 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 10);
this.clip_.page._alpha = _local6 * 100;
if (this.isClicked_ || (_local5 > 0)) {
this.page2();
}
var _local7;
var _local8;
_local7 = 0;
_local8 = 25;
var _local9 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7, _local8);
_local7 = _local7 + (_local8 + 2);
_local8 = 30;
var _local10 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7, _local8);
var _local11 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7 + 6, _local8 - 10);
_local7 = _local7 + (_local8 + 2);
_local8 = 30;
var _local12 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7, _local8);
var _local13 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7 + 6, _local8 - 10);
_local7 = _local7 + (_local8 + 2);
_local8 = 30;
var _local14 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7, _local8);
var _local15 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7 + 6, _local8 - 10);
_local7 = _local7 + (_local8 + 2);
_local8 = 30;
var _local16 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7, _local8);
var _local17 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7 + 6, _local8 - 10);
_local7 = _local7 + _local8;
_local8 = 10;
var _local18 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7, _local8);
_local7 = _local7 + _local8;
_local8 = 10;
var _local19 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, _local7, _local8);
this.clip_.page.page1part2._alpha = _local18 * 100;
var _local20;
var _local21;
var _local22;
this.logoOY_ = this.logoY_;
this.bunnyOY_ = this.bunnyY_;
this.bunnyOX_ = this.bunnyX_;
this.bunnyOF_ = this.bunnyF_;
if ((_local9 > 0) && (_local9 < 1)) {
_local21 = com.midasplayer.util.AnimPlayer.easeInOutBack(_local9, 555, -150, 1);
this.logoY_ = _local21;
_local21 = com.midasplayer.util.AnimPlayer.easeInOutBack(_local9, 555, -150, 1);
this.bunnyY_ = _local21;
}
if ((_local10 > 0) && (this.clip_.onPress == undefined)) {
this.clip_.onPress = mx.utils.Delegate.create(this, this.pressed);
this.clip_.useHandCursor = true;
}
if ((_local10 > 0) && (_local10 < 1)) {
_local20 = (_local11 * 75) + 338;
this.bunnyX_ = _local20;
_local22 = Math.round(_local10 * 17) + 1;
this.bunnyF_ = _local22;
this.bunnyY_ = 405 - (40 * _local10);
}
if ((_local12 > 0) && (_local12 < 1)) {
_local20 = ((_local13 * 75) + 75) + 338;
this.bunnyX_ = _local20;
_local22 = Math.round(_local12 * 17) + 1;
this.bunnyF_ = _local22;
}
if ((_local14 > 0) && (_local14 < 1)) {
_local20 = ((_local15 * 75) + 150) + 338;
this.bunnyX_ = _local20;
_local22 = Math.round(_local14 * 17) + 1;
this.bunnyF_ = _local22;
this.bunnyY_ = 365 - (20 * _local14);
}
if ((_local16 > 0) && (_local16 < 1)) {
_local20 = (((_local17 * 75) + 150) + 75) + 338;
this.bunnyX_ = _local20;
_local22 = Math.round(_local16 * 17) + 1;
this.bunnyF_ = _local22;
this.bunnyY_ = 345 - (18 * _local16);
}
if ((_local18 > 0) && (_local18 < 1)) {
_local22 = Math.round(_local18 * 3) + 19;
this.bunnyF_ = _local22;
}
if (_local18 >= 1) {
if ((this.blinkTick_ + 1) == tick) {
this.bunnyF_ = 22;
} else if (random(50) == 1) {
this.bunnyF_ = 23;
this.blinkTick_ = tick + 5;
}
}
return(this.doEnd_ || (_local4 == 1));
};
_local2.end = function () {
this.game_.introEnd();
};
_local2.render = function (alpha) {
this.clip_.logo._y = this.logoOY_ + ((this.logoY_ - this.logoOY_) * alpha);
this.clip_.bunny._x = this.bunnyOX_ + ((this.bunnyX_ - this.bunnyOX_) * alpha);
this.clip_.bunny._y = this.bunnyOY_ + ((this.bunnyY_ - this.bunnyOY_) * alpha);
this.clip_.bunny.gotoAndStop(this.bunnyF_);
};
(ASSetPropFlags(_global.com.midasplayer.game.jellyjumper.anim.IntroAnim.prototype, null, 1));// not popped
}
#endinitclip
Symbol 1512 MovieClip [__Packages.com.midasplayer.game.jellyjumper.editor.Editor] Frame 0
class com.midasplayer.game.jellyjumper.editor.Editor extends MovieClip
{
var game_, scene_, level, stageHeight, stageWidth, buttonSave, buttonLoad, buttonNew, buttonPlay, buttonStop, inputName, inputLevel, inputHeight, inputKeyPercent, scroll, isSetup, fileNamesClip, currentLevelData, textNumScoreBlocks, isPlaying, pencilBlock, attachMovie, getNextHighestDepth, hasPencil, pencilStartX, pencilStartY, isDrawing, isSelecting, isScrolling, scrollYClick, _xmouse, _ymouse, textX, textY;
function Editor () {
super();
}
function init(game) {
_root._quality = "best";
game_ = game;
var _local3 = game_.getSceneLayer();
scene_ = new com.midasplayer.game.jellyjumper.Scene();
scene_.init(game_, _local3);
level = com.midasplayer.game.jellyjumper.editor.EditorLevel(_local3.attachMovie("editor_level", "editor_level", _local3.getNextHighestDepth()));
level.setEditor(this);
stageHeight = 550;
stageWidth = 750;
buttonSave.txt.text = "Save";
buttonSave.btn.onRelease = mx.utils.Delegate.create(this, onSavePress);
buttonLoad.txt.text = "Load";
buttonLoad.btn.onRelease = mx.utils.Delegate.create(this, onLoadPress);
buttonNew.txt.text = "New";
buttonNew.btn.onRelease = mx.utils.Delegate.create(this, onNewPress);
buttonPlay.txt.text = "Play";
buttonPlay.btn.onRelease = mx.utils.Delegate.create(this, onPlayPress);
buttonStop.txt.text = "Stop";
buttonStop.btn.onRelease = mx.utils.Delegate.create(this, onStopPress);
Mouse.addListener(this);
Key.addListener(this);
inputName.addListener(this);
inputLevel.addListener(this);
inputHeight.addListener(this);
inputKeyPercent.addListener(this);
scroll.button.onPress = mx.utils.Delegate.create(this, onScrollPress);
scroll.button.onRelease = mx.utils.Delegate.create(this, onScrollRelease);
scroll.button.onReleaseOutside = mx.utils.Delegate.create(this, onScrollRelease);
}
function setup() {
isSetup = true;
for (var _local4 in this) {
if (this[_local4] instanceof com.midasplayer.game.jellyjumper.Block) {
var _local2 = this[_local4];
_local2.hitclip.me = this;
_local2.hitclip.block = _local2;
_local2.hitclip.onPress = function () {
var _local2 = this;
_local2.me.onBlockPress(_local2.block);
};
_local2.hitclip.onRelease = function () {
var _local2 = this;
_local2.me.onBlockRelease(_local2.block);
};
_local2.hitclip.onReleaseOutside = function () {
var _local2 = this;
_local2.me.onBlockRelease(_local2.block);
};
}
}
newAction();
}
function onSavePress() {
var _local3 = mdm.Application.path + "levels/";
var _local4 = (_local3 + inputName.text) + ".lvl";
level.setName(inputName.text);
level.setLevelNum(Number(inputLevel.text));
level.setKeyPercent(Number(inputKeyPercent.text));
var _local2 = level.getLevelData();
trace(_local2);
mdm.FileSystem.makeFolder(_local3);
mdm.FileSystem.saveFile(_local4, _local2);
}
function onLoadPress() {
onStopPress();
removePencil();
var _local4 = mdm.FileSystem.getFileList(mdm.Application.path + "levels/", "*.lvl");
level.clear();
level.setHeight(4000);
level._y = 0;
fileNamesClip = level.createEmptyMovieClip("filenames", level.getNextHighestDepth());
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = fileNamesClip.attachMovie("editor_filename", "file" + _local2, fileNamesClip.getNextHighestDepth());
_local3.txt.text = _local4[_local2];
_local3.btn.me = this;
_local3.btn.filename = _local3.txt.text;
_local3.btn.onPress = function () {
var _local2 = this;
_local2.me.onLoadFilePress(_local2.filename);
};
_local3._y = 20 * _local2;
_local2++;
}
}
function onLoadFilePress(fileName) {
removePencil();
inputName.text = fileName.substr(0, fileName.length - 4);
fileNamesClip.removeMovieClip();
fileName = (mdm.Application.path + "levels/") + fileName;
var _local3 = mdm.FileSystem.loadFile(fileName);
scene_.clear();
level.clear();
level._y = stageHeight - level.getHeight();
level.setData(_local3);
scene_.addLevel(level);
level._y = stageHeight - level.getHeight();
inputLevel.text = "" + level.getLevelNum();
inputHeight.text = "" + level.getHeight();
inputKeyPercent.text = "" + level.getKeyPercent();
currentLevelData = level.getLevelData();
textNumScoreBlocks.text = "" + level.getNumScoreBlocks();
}
function onNewPress() {
newAction();
}
function newAction() {
scene_.clear();
var _local4 = "unnamed";
var _local2 = 1;
var _local3 = (stageHeight * 2) - 25;
var _local5 = 75;
inputName.text = _local4;
inputLevel.text = _local2;
inputHeight.text = _local3;
inputKeyPercent.text = _local5;
level.clear();
level.create(_local3);
level._y = stageHeight - level.getHeight();
level.setLevelNum(_local2);
level.setData(level.getLevelData());
scene_.addLevel(level);
currentLevelData = level.getLevelData();
textNumScoreBlocks.text = "" + level.getNumScoreBlocks();
}
function onPlayPress() {
trace("play");
if (isPlaying) {
onStopPress();
}
scene_.clear();
level._y = stageHeight - level.getHeight();
currentLevelData = level.getLevelData();
trace(currentLevelData);
level.setData(level.getLevelData());
level.useRandomSpecials = true;
scene_.addLevel(level);
level.useRandomSpecials = false;
level.unselectBlocks();
removePencil();
isPlaying = true;
scene_.stop();
scene_.prepareForStart();
startWhenReady();
}
function startWhenReady() {
if (scene_.isReady()) {
_root._quality = "low";
scene_.start();
} else {
com.midasplayer.util.AnimPlayer.delay({millis:50, callback:startWhenReady, callback_scope:this});
}
}
function onStopPress() {
scene_.stop();
if (currentLevelData != undefined) {
level.clear();
level.createFromData(currentLevelData, false);
scene_.clear();
level._y = stageHeight - level.getHeight();
scene_.addLevel(level);
}
isPlaying = false;
_root._quality = "best";
}
function onBlockPress(block) {
if (isPlaying) {
onStopPress();
}
block._alpha = 80;
setPencil(block.id);
}
function onBlockRelease(block) {
block._alpha = 100;
}
function setPencil(id) {
pencilBlock = com.midasplayer.game.jellyjumper.Block(attachMovie(id, "addblock", getNextHighestDepth()));
pencilBlock.id = id;
pencilBlock._visible = false;
level.bg.onPress = mx.utils.Delegate.create(this, onAddBlockPress);
level.bg.onRelease = mx.utils.Delegate.create(this, onAddBlockRelease);
hasPencil = true;
}
function removePencil() {
level.bg.onPress = undefined;
pencilBlock.removeMovieClip();
hasPencil = false;
}
function onAddBlockPress() {
if (isPencilDrawable()) {
pencilStartX = pencilBlock._x;
pencilStartY = pencilBlock._y;
isDrawing = true;
onMouseMove();
} else {
isSelecting = true;
onMouseMove();
}
}
function onAddBlockRelease() {
if (isPencilDrawable()) {
level.attachPreviewBlocks();
textNumScoreBlocks.text = "" + level.getNumScoreBlocks();
}
isDrawing = false;
level.removePreviewBlocks();
}
function isPencilDrawable() {
var _local3 = pencilBlock._x + pencilBlock.hitclip._x;
var _local2 = pencilBlock._y + pencilBlock.hitclip._y;
var _local5 = pencilBlock.hitclip._width;
var _local4 = pencilBlock.hitclip._height;
if (_local3 < 0) {
return(false);
}
if (_local2 < 0) {
return(false);
}
if ((_local3 + _local5) >= stageWidth) {
return(false);
}
if ((_local2 + _local4) >= stageHeight) {
return(false);
}
return(true);
}
function onMouseMove() {
if (isScrolling == true) {
var _local3 = scroll.bg._ymouse - scrollYClick;
var _local2 = scroll.button._height;
_local3 = ((_local3 < 0) ? 0 : (_local3));
_local3 = (((_local3 + _local2) > stageHeight) ? (stageHeight - _local2) : (_local3));
level._y = (-_local3) / getScrollRatio();
}
if (hasPencil) {
var _local4 = Math.round(_xmouse / 25) * 25;
var _local3 = Math.round(_ymouse / 25) * 25;
pencilBlock._x = _local4;
pencilBlock._y = _local3;
textX.text = _local4;
textY.text = _local3;
if (isPencilDrawable()) {
pencilBlock._alpha = 100;
} else {
pencilBlock._alpha = 20;
}
if ((((_local4 >= 0) && (_local4 < stageWidth)) && (_local3 >= 0)) && (_local3 < stageHeight)) {
pencilBlock._visible = true;
} else {
pencilBlock._visible = false;
}
if (isPencilDrawable()) {
if (isDrawing) {
pencilBlock._visible = false;
level.previewBlock(pencilBlock, pencilStartX, pencilStartY - level._y);
}
}
}
if (isSelecting) {
var _local4 = Math.round(_xmouse / 25) * 25;
var _local3 = Math.round(_ymouse / 25) * 25;
}
}
function onMouseWheel(delta) {
if (isScrolling) {
return(undefined);
}
if (isPlaying) {
return(undefined);
}
var _local2 = level._y;
var _local3 = level.getHeight();
_local2 = _local2 + (Math.round((delta * 10) / 25) * 25);
_local2 = ((_local2 > 0) ? 0 : (_local2));
_local2 = (((_local2 + _local3) < stageHeight) ? (stageHeight - _local3) : (_local2));
level._y = _local2;
}
function onScrollPress() {
scroll.button.gotoAndStop(2);
isScrolling = true;
scrollYClick = scroll.bg._ymouse - scroll.button._y;
}
function onScrollRelease() {
scroll.button.gotoAndStop(1);
isScrolling = false;
}
function getScrollRatio() {
var _local2 = 1;
if (level.getHeight() > stageHeight) {
_local2 = stageHeight / level.getHeight();
}
return(_local2);
}
function onKeyDown() {
if (Key.getAscii() == 13) {
updateLevel();
}
if (Key.getAscii() == 32) {
removePencil();
}
if (Key.getAscii() == 127) {
removePencil();
level.removeSelectedBlocks();
textNumScoreBlocks.text = "" + level.getNumScoreBlocks();
}
}
function updateLevel() {
var _local2 = Number(inputHeight.text);
var _local3 = Number(inputLevel.text);
var _local4 = Number(inputKeyPercent.text);
_local2 = ((_local2 < stageHeight) ? (stageHeight) : (_local2));
_local2 = _local2 - 25;
_local2 = Math.round(_local2 / 50) * 50;
_local2 = _local2 + 25;
inputHeight.text = _local2;
level.setLevelNum(_local3);
level.setHeight(_local2);
level.setKeyPercent(_local4);
scene_.clear();
level.setData(level.getLevelData());
level.clear();
level._y = stageHeight - level.getHeight();
scene_.addLevel(level);
onMouseWheel(0);
}
function onChanged(txt) {
}
function updateScroll() {
scroll.button._height = stageHeight * getScrollRatio();
scroll.button._y = (-level._y) * getScrollRatio();
}
function onEnterFrame() {
if (!isSetup) {
setup();
}
updateScroll();
}
}
Symbol 1513 MovieClip [__Packages.com.midasplayer.game.jellyjumper.editor.EditorLevel] Frame 0
class com.midasplayer.game.jellyjumper.editor.EditorLevel extends com.midasplayer.game.jellyjumper.Level
{
var width, useRandomSpecials, editor, attachedBlocks, getName, getLevelNum, getKeyPercent, _visible, previewBlocks, selectedBlocks, height_, movingObjects_, numScoreBlocks_, attachBlock, _xmouse, _ymouse, _y, previewBlocksCols, previewBlocksRows, getNextHighestDepth, attachMovie, isAttachPossible;
function EditorLevel () {
super();
width = 750;
useRandomSpecials = false;
}
function setEditor(e) {
editor = e;
}
function getLevelData() {
var _local8 = attachedBlocks.length;
var _local7 = "";
_local7 = _local7 + (getName() + ",");
_local7 = _local7 + (getLevelNum() + ",");
_local7 = _local7 + (getHeight() + ",");
_local7 = _local7 + (getKeyPercent() + ";");
var _local3 = 0;
while (_local3 < _local8) {
var _local2 = com.midasplayer.game.jellyjumper.Block(attachedBlocks[_local3]);
if (_local2 == undefined) {
} else if ((((_local2.id != "bfbo") && (_local2.id != "bfbo2")) && (_local2.id != "bfbc")) && (_local2.x < 0)) {
} else if ((((_local2.id != "bfbo") && (_local2.id != "bfbo2")) && (_local2.id != "bfbc")) && (_local2.y < 0)) {
} else {
var _local6 = _local2._x;
var _local5 = _local2._y;
var _local4 = _local2.id.substring(1, _local2.id.length);
_local7 = _local7 + (((((_local4 + ",") + _local6) + ",") + _local5) + ";");
}
_local3++;
}
return(_local7);
}
function getHeight() {
_visible = true;
return(super.getHeight());
}
function createFromData(data, randomSpecials) {
clear();
super.createFromData(data, randomSpecials);
}
function create(h) {
attachedBlocks = new Array();
previewBlocks = new Array();
selectedBlocks = new Array();
setHeight(h);
}
function setHeight(h) {
var _local4 = h - height_;
var _local5 = attachedBlocks.length;
var _local3 = 0;
while (_local3 < _local5) {
if (attachedBlocks[_local3]._y > 0) {
attachedBlocks[_local3]._y = attachedBlocks[_local3]._y + _local4;
}
_local3++;
}
super.setHeight(h);
addFrame();
}
function clear() {
var _local3 = attachedBlocks.length;
var _local2 = 0;
while (_local2 < _local3) {
attachedBlocks[_local2].remove();
_local2++;
}
attachedBlocks = new Array();
_local3 = movingObjects_.size();
var _local4;
if ((_local3 != undefined) && (_local3 >= 1)) {
_local2 = _local3 - 1;
while (_local2 >= 0) {
_local4 = com.midasplayer.game.jellyjumper.MovingObject(movingObjects_.get(_local2));
_local4.remove();
_local2--;
}
}
numScoreBlocks_ = 0;
}
function addFrame() {
var _local3;
var _local2;
_local2 = height_ - 25;
_local3 = 25;
while (_local3 < (width - 50)) {
attachBlock("bfb", _local3, _local2);
_local3 = _local3 + 50;
}
attachBlock("bfbl", 0, _local2);
attachBlock("bfbr", width - 25, _local2);
_local3 = 0;
_local2 = 0;
while (_local2 < (height_ - 50)) {
attachBlock("bfl", _local3, _local2);
_local2 = _local2 + 50;
}
_local3 = width - 25;
_local2 = 0;
while (_local2 < (height_ - 50)) {
attachBlock("bfr", _local3, _local2);
_local2 = _local2 + 50;
}
_local2 = 0;
_local3 = 0;
while (_local3 < width) {
attachBlock("bfbc", _local3, _local2, true);
_local3 = _local3 + 100;
}
}
function getXMouse() {
return(Math.round(_xmouse));
}
function getYMouse() {
return(Math.round(_ymouse));
}
function previewBlock(pencilBlock, pencilStartX, pencilStartY) {
var _local7 = pencilBlock.id;
var _local10 = Math.ceil(pencilBlock.getWidth() / 25) * 25;
var _local9 = Math.ceil(pencilBlock.getHeight() / 25) * 25;
var _local12 = pencilStartX;
var _local11 = pencilStartY;
var _local19 = pencilBlock._x;
var _local18 = pencilBlock._y - _y;
var _local16 = _local19 - _local12;
var _local15 = _local18 - _local11;
var _local8 = Math.floor(_local16 / _local10) + 1;
if (_local16 < 0) {
_local8 = (-Math.ceil(_local16 / _local10)) + 2;
_local12 = _local12 - ((_local8 - 1) * _local10);
}
var _local13 = Math.floor(_local15 / _local9) + 1;
if (_local15 < 0) {
_local13 = (-Math.ceil(_local15 / _local9)) + 2;
_local11 = _local11 - ((_local13 - 1) * _local9);
}
if ((_local8 == previewBlocksCols) && (_local13 == previewBlocksRows)) {
return(undefined);
}
previewBlocksCols = _local8;
previewBlocksRows = _local13;
var _local14 = previewBlocks.length;
var _local6 = 0;
while (_local6 < _local14) {
previewBlocks[_local6].removeMovieClip();
_local6++;
}
previewBlocks = new Array();
var _local5 = 0;
while (_local5 < _local13) {
var _local3 = 0;
while (_local3 < _local8) {
var _local4 = getNextHighestDepth();
var _local2 = com.midasplayer.game.jellyjumper.Block(attachMovie(_local7, "preblock" + _local4, _local4));
_local2.id = _local7;
_local2._x = _local12 + (_local3 * _local10);
_local2._y = _local11 + (_local5 * _local9);
if (isAttachPossible(_local2)) {
previewBlocks.push(_local2);
} else {
_local2.remove();
}
_local3++;
}
_local5++;
}
}
function attachPreviewBlocks() {
var _local4 = previewBlocks.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = previewBlocks[_local3];
attachBlock(_local2.id, _local2._x, _local2._y);
_local3++;
}
removePreviewBlocks();
}
function removePreviewBlocks() {
var _local3 = previewBlocks.length;
var _local2 = 0;
while (_local2 < _local3) {
previewBlocks[_local2].removeMovieClip();
_local2++;
}
previewBlocks = new Array();
previewBlocksCols = 0;
previewBlocksRows = 0;
}
function onBlockSelected(b) {
if (editor.isPlaying) {
return(undefined);
}
if (editor.hasPencil) {
editor.onAddBlockPress();
editor.onAddBlockRelease();
return(undefined);
}
if (b.isSelected()) {
unselectBlock(b);
} else {
b.markSelected();
selectedBlocks.push(b);
}
}
function unselectBlock(b) {
var _local4 = selectedBlocks.length;
var _local2 = 0;
while (_local2 < _local4) {
if (b == selectedBlocks[_local2]) {
b.unmarkSelected();
selectedBlocks.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function unselectBlocks() {
var _local3 = selectedBlocks.length;
var _local2 = 0;
while (_local2 < _local3) {
selectedBlocks[_local2].unmarkSelected();
_local2++;
}
selectedBlocks = new Array();
}
function removeSelectedBlocks() {
var _local6 = selectedBlocks.length;
var _local4 = 0;
while (_local4 < _local6) {
var _local3 = selectedBlocks[_local4];
var _local5 = attachedBlocks.length;
var _local2 = 0;
while (_local2 < _local5) {
if (_local3 == attachedBlocks[_local2]) {
attachedBlocks.splice(_local2, 1);
if (_local3 instanceof com.midasplayer.game.jellyjumper.ScoreBlock) {
numScoreBlocks_--;
}
_local3.remove();
}
_local2++;
}
_local4++;
}
selectedBlocks = new Array();
}
}
Symbol 1514 MovieClip [__Packages.com.midasplayer.game.jellyjumper.RocketsBlock] Frame 0
class com.midasplayer.game.jellyjumper.RocketsBlock extends com.midasplayer.game.jellyjumper.Block
{
var block, up, up_left, up_right, left, right, effect, removable, removed, removeCollisionDetection, x, y, level_, jumpId, _visible;
function RocketsBlock () {
super();
block.gotoAndStop(1);
up.gotoAndStop(1);
up._visible = false;
up_left.gotoAndStop(1);
up_left._visible = false;
up_right.gotoAndStop(1);
up_right._visible = false;
left.gotoAndStop(1);
left._visible = false;
right.gotoAndStop(1);
right._visible = false;
effect.gotoAndStop(1);
effect._visible = false;
removable = true;
}
function setup() {
super.setup();
}
function hasIdleAnim() {
return(true);
}
function hit() {
if (removed) {
return(undefined);
}
removed = true;
removeCollisionDetection();
block._visible = false;
com.midasplayer.fx.SoundManager.play("rocket_block#1", 50);
hitAnimEnd();
}
function hitAnimEnd() {
var _local3;
var _local2;
_local3 = up;
if (_local3 != undefined) {
_local2 = new com.midasplayer.game.jellyjumper.Rocket(x, y + 3, "rocket_up", level_._parent, jumpId);
_local2.dx = 0;
_local2.dy = -10;
level_.addMovingObject(_local2);
}
_local3 = up_left;
if (_local3 != undefined) {
_local2 = new com.midasplayer.game.jellyjumper.Rocket(x - 25, y + 3, "rocket_up_left", level_._parent, jumpId);
_local2.dx = -7;
_local2.dy = -7;
level_.addMovingObject(_local2);
}
_local3 = up_right;
if (_local3 != undefined) {
_local2 = new com.midasplayer.game.jellyjumper.Rocket(x + 25, y + 3, "rocket_up_right", level_._parent, jumpId);
_local2.dx = 7;
_local2.dy = -7;
level_.addMovingObject(_local2);
}
_local3 = left;
if (_local3 != undefined) {
_local2 = new com.midasplayer.game.jellyjumper.Rocket(x - 20, y, "rocket_left", level_._parent, jumpId);
_local2.dx = -10;
_local2.dy = 0;
level_.addMovingObject(_local2);
}
_local3 = right;
if (_local3 != undefined) {
_local2 = new com.midasplayer.game.jellyjumper.Rocket(x + 20, y, "rocket_right", level_._parent, jumpId);
_local2.dx = 10;
_local2.dy = 0;
level_.addMovingObject(_local2);
}
_visible = false;
}
}
Symbol 1515 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Rocket] Frame 0
class com.midasplayer.game.jellyjumper.Rocket extends com.midasplayer.phys.Sphere implements com.midasplayer.game.jellyjumper.MovingObject
{
var x, y, r, jumpId, clip, ox, oy, removed;
function Rocket (x, y, clipName, level, id) {
super();
this.x = x;
this.y = y;
r = 9;
jumpId = id;
var _local3 = level.getNextHighestDepth();
clip = level.attachMovie(clipName, clipName + _local3, _local3);
clip.gotoAndStop(1);
clip._x = x;
clip._y = y;
ox = x;
oy = y;
}
function getJumpId() {
return(jumpId);
}
function getX() {
return(x);
}
function getY() {
return(y);
}
function isRemoved() {
return(removed);
}
function collide(collision, collisionBlock) {
if (collision.material == com.midasplayer.game.jellyjumper.Material.FREEZER_BLOCK) {
remove();
} else if (collisionBlock.removable) {
collisionBlock.jumpId = getJumpId();
collisionBlock.hit();
} else {
remove();
}
}
function remove() {
removed = true;
clip._visible = false;
clip.removeMovieClip();
}
function move() {
ox = x;
oy = y;
}
function render(tick, a) {
clip._x = ox + ((x - ox) * a);
clip._y = oy + ((y - oy) * a);
}
}
Symbol 1516 MovieClip [__Packages.com.midasplayer.game.jellyjumper.GoldBlock] Frame 0
class com.midasplayer.game.jellyjumper.GoldBlock extends com.midasplayer.game.jellyjumper.Block
{
var block, appear, effect, removable, removed, removeCollisionDetection, animId_, _visible;
function GoldBlock () {
super();
block.gotoAndStop(1);
appear.gotoAndStop(1);
appear._visible = false;
effect.gotoAndStop(1);
effect._visible = false;
removable = true;
}
function setup() {
super.setup();
}
function hasIdleAnim() {
return(true);
}
function hit() {
if (removed) {
return(undefined);
}
removed = true;
removeCollisionDetection();
block._visible = false;
var _local2 = new com.midasplayer.game.jellyjumper.anim.DollarAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function hitAnimEnd() {
_visible = false;
}
}
Symbol 1517 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.DollarAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.DollarAnim
{
var block_, of, f, oy, y;
function DollarAnim (block) {
block_ = block;
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 15);
of = f;
oy = y;
block_.appear._visible = true;
f = Math.round(_local2 * (block_.appear._totalframes - 1)) + 1;
y = y + (_local2 * 0);
return(_local2 == 1);
}
function end() {
of = f;
oy = y;
block_.hitAnimEnd();
}
function render(alpha) {
var _local2 = Math.round(of + ((f - of) * alpha));
block_.appear.gotoAndStop(_local2);
}
}
Symbol 1518 MovieClip [__Packages.com.midasplayer.game.jellyjumper.FreezerBlock] Frame 0
class com.midasplayer.game.jellyjumper.FreezerBlock extends com.midasplayer.game.jellyjumper.Block
{
var appear, removable, removed, frozen, unfrozen, animId_, level_, blockUnder, blockOver, blockLeft, blockRight, _visible, removeCollisionDetection;
function FreezerBlock () {
super();
appear.gotoAndStop(1);
removable = true;
}
function setup() {
super.setup();
}
function hit() {
if (removed) {
return(undefined);
}
if (frozen) {
unfrozenHits++;
if ((unfrozenHits > 20) && (!unfrozen)) {
unfrozen = true;
if (!com.midasplayer.fx.SoundManager.isPlaying("ice_melting#2")) {
com.midasplayer.fx.SoundManager.play("ice_melting#2", 20);
}
var _local2 = new com.midasplayer.game.jellyjumper.anim.FreezeAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
return(undefined);
}
frozen = true;
level_.addFreezeBlock(blockUnder);
level_.addFreezeBlock(blockOver);
level_.addFreezeBlock(blockLeft);
level_.addFreezeBlock(blockRight);
if (blockOver) {
level_.addFreezeBlock(blockOver.blockLeft);
level_.addFreezeBlock(blockOver.blockRight);
}
if (blockUnder) {
level_.addFreezeBlock(blockUnder.blockLeft);
level_.addFreezeBlock(blockUnder.blockRight);
}
var _local2 = new com.midasplayer.game.jellyjumper.anim.FreezeAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function hitAnimEnd() {
if (unfrozen) {
_visible = false;
removeCollisionDetection();
removed = true;
}
}
var unfrozenHits = 0;
}
Symbol 1519 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.FreezeAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.FreezeAnim
{
var block_, of, f, oy, y;
function FreezeAnim (block) {
block_ = block;
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 15);
of = f;
oy = y;
block_.appear._visible = true;
f = Math.round(_local2 * (block_.appear._totalframes - 1)) + 1;
y = y + (_local2 * 0);
return(_local2 == 1);
}
function end() {
of = f;
oy = y;
block_.hitAnimEnd();
}
function render(alpha) {
var _local2 = Math.round(of + ((f - of) * alpha));
block_.appear.gotoAndStop(_local2);
}
}
Symbol 1520 MovieClip [__Packages.com.midasplayer.game.jellyjumper.DrowserBlock] Frame 0
class com.midasplayer.game.jellyjumper.DrowserBlock extends com.midasplayer.game.jellyjumper.Block
{
var block, appear, effect, removable, removed, removeCollisionDetection, animId_, _visible;
function DrowserBlock () {
super();
block.gotoAndStop(1);
appear.gotoAndStop(1);
appear._visible = false;
effect.gotoAndStop(1);
effect._visible = false;
removable = true;
}
function setup() {
super.setup();
}
function hit() {
if (removed) {
return(undefined);
}
removed = true;
removeCollisionDetection();
block._visible = false;
var _local2 = new com.midasplayer.game.jellyjumper.anim.PillAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function hitAnimEnd() {
_visible = false;
}
}
Symbol 1521 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.PillAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.PillAnim
{
var block_, of, f, oy, y;
function PillAnim (block) {
block_ = block;
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 15);
of = f;
oy = y;
block_.appear._visible = true;
f = Math.round(_local2 * (block_.appear._totalframes - 1)) + 1;
y = y + (_local2 * 0);
return(_local2 == 1);
}
function end() {
of = f;
oy = y;
block_.hitAnimEnd();
}
function render(alpha) {
var _local2 = Math.round(of + ((f - of) * alpha));
block_.appear.gotoAndStop(_local2);
block_.appear._y = oy + ((y - oy) * alpha);
}
}
Symbol 1522 MovieClip [__Packages.com.midasplayer.game.jellyjumper.BombBlock] Frame 0
class com.midasplayer.game.jellyjumper.BombBlock extends com.midasplayer.game.jellyjumper.Block
{
var block, appear, spin, effect, removable, removed, removeCollisionDetection, animId_, bomb, x, y, level_, jumpId, _visible;
function BombBlock () {
super();
block.gotoAndStop(1);
appear.gotoAndStop(1);
appear._visible = false;
spin.gotoAndStop(1);
spin._visible = false;
effect.gotoAndStop(1);
effect._visible = false;
removable = true;
}
function setup() {
super.setup();
}
function hasIdleAnim() {
return(true);
}
function hit() {
if (removed) {
return(undefined);
}
removed = true;
removeCollisionDetection();
block._visible = false;
var _local2 = new com.midasplayer.game.jellyjumper.anim.BombAnim(this);
animId_ = com.midasplayer.util.AnimPlayer.addAnim(_local2);
}
function hitAnimEnd() {
com.midasplayer.fx.SoundManager.play("bomb_block#2", 50);
bomb = new com.midasplayer.game.jellyjumper.Bomb(x, y + 2.5, level_._parent, jumpId);
bomb.dx = 0;
bomb.dy = 10;
bomb.ddy = 0.8;
level_.addMovingObject(bomb);
_visible = false;
}
}
Symbol 1523 MovieClip [__Packages.com.midasplayer.game.jellyjumper.Bomb] Frame 0
class com.midasplayer.game.jellyjumper.Bomb extends com.midasplayer.phys.Sphere implements com.midasplayer.game.jellyjumper.MovingObject
{
var jumpId, x, y, r, clip, ox, oy, removed;
function Bomb (x, y, level, id) {
super();
jumpId = id;
y = y - 10;
this.x = x;
this.y = y;
r = 9;
var _local3 = level.getNextHighestDepth();
clip = level.attachMovie("bomb", "bomb" + _local3, _local3);
clip.gotoAndStop(1);
clip._x = x;
clip._y = y + 10;
ox = x;
oy = y;
}
function getX() {
return(x);
}
function getY() {
return(y);
}
function getJumpId() {
return(jumpId);
}
function isRemoved() {
return(removed);
}
function collide(collision, collisionBlock) {
if (collision.material == com.midasplayer.game.jellyjumper.Material.FREEZER_BLOCK) {
remove();
} else if (collisionBlock.removable) {
collisionBlock.jumpId = getJumpId();
collisionBlock.hit();
} else {
remove();
}
}
function remove() {
removed = true;
clip._visible = false;
clip.removeMovieClip();
}
function move() {
ox = x;
oy = y;
}
function render(tick, a) {
clip._x = ox + ((x - ox) * a);
clip._y = (10 + oy) + ((y - oy) * a);
}
}
Symbol 1524 MovieClip [__Packages.com.midasplayer.game.jellyjumper.anim.BombAnim] Frame 0
class com.midasplayer.game.jellyjumper.anim.BombAnim
{
var block_, of, f, oy, y;
function BombAnim (block) {
block_ = block;
}
function tick(tick) {
var _local2 = com.midasplayer.util.AnimPlayer.tickToPercent(tick, 0, 15);
of = f;
oy = y;
block_.appear._visible = true;
f = Math.round(_local2 * (block_.appear._totalframes - 1)) + 1;
y = y + (_local2 * 10);
return(_local2 == 1);
}
function end() {
of = f;
oy = y;
block_.hitAnimEnd();
}
function render(alpha) {
var _local2 = Math.round(of + ((f - of) * alpha));
block_.appear.gotoAndStop(_local2);
block_.appear._y = oy + ((y - oy) * alpha);
}
}
Symbol 1525 MovieClip [__Packages.com.midasplayer.game.jellyjumper.EnlargeBlock] Frame 0
class com.midasplayer.game.jellyjumper.EnlargeBlock extends com.midasplayer.game.jellyjumper.Block
{
var block, appear, effect, removable, removed, removeCollisionDetection, _visible;
function EnlargeBlock () {
super();
block.gotoAndStop(1);
appear.gotoAndStop(1);
appear._visible = false;
effect.gotoAndStop(1);
effect._visible = false;
removable = true;
}
function setup() {
super.setup();
}
function hasIdleAnim() {
return(true);
}
function hit() {
if (removed) {
return(undefined);
}
removed = true;
removeCollisionDetection();
block._visible = false;
hitAnimEnd();
}
function hitAnimEnd() {
_visible = false;
}
}