Frame 1
function openLink(obj, item) {
getGameLink();
}
function saveData(gamelevel) {
Cookies = SharedObject.getLocal("xxzm_v2");
if (_root.gameLevel >= gamelevel) {
Cookies.data.gamelevel = _root.gameLevel;
} else {
Cookies.data.gamelevel = gamelevel;
}
Cookies.flush();
loadData();
}
function loadData() {
Cookies = SharedObject.getLocal("xxzm_v2");
_root.gameLevel = Cookies.data.gamelevel;
if (_root.gameLevel == undefined) {
_global.level = 2;
_root.gameLevel = 2;
} else {
_global.level = _root.gameLevel;
}
}
function getGameLink() {
getURL (gameLink, "_blank");
}
function getTwitter() {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
}
function getFB() {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
}
stop();
loadData();
GamesList.as2.GamesListAPIAS2.config("Little-Bear-Zuma", "t42joxronv3c");
stop();
var gameLink = "http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma";
var realLink = "http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma";
var shortLink = "http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma";
var gameTitle = "Little Bear Zuma";
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.customItems.push(new ContextMenuItem("GamesList.Com", openLink, true));
this.menu = my_cm;
function getLanFrame() {
if (gamelanVer == "chinese") {
return("chinese");
}
return(1);
}
function setPerFuncAll(perObject) {
for (var _local3 in perObject) {
_root[_local3] = perObject[_local3];
}
}
function AllStop_func() {
this.createEmptyMovieClip("stop_fun", 22222);
stop_fun.onEnterFrame = function () {
if (_root.go_ON) {
game_pause = false;
delete this.onEnterFrame;
} else {
game_pause = true;
}
};
}
function next_leve_func() {
bg_sound.stop();
win_sound_ = new Sound(win_sound_mc_);
win_sound_.attachSound("win");
win_sound_.start();
var _local2 = _root.attachMovie("appearPoint", "appearPoint" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local2._x = 250;
_local2._y = 250;
_local2.addItemPoint = 1000;
delete _root.BAllID;
clearAll();
gameZT = "\u8FC7\u5173";
delete move_listener_mc.onEnterFrame;
superBall = false;
m_lock = true;
clearBall();
dir_mc.clear();
mouth.TX.play();
center_mc._rotation = 90;
move_listener_mc.onEnterFrame = function () {
if (!game_pause) {
center_mc._rotation = 90;
winMove();
}
};
holdBall_mc.hold_mc.unloadMovie();
hold_mx.num = 0;
delete _root.holdBall;
_root.holdBall2 == false;
}
function chch(num) {
var _local2 = 1;
while (_local2 <= 5) {
var _local3 = _root["poop" + _local2];
_local3._alpha = num;
_local2++;
}
}
function re_back_func_() {
var _local2 = 1;
while (_local2 <= 5) {
var _local3 = _root["pop" + _local2];
_local3.gotoAndStop(1);
_local2++;
}
}
function create_lost_Sound() {
fail_sound_ = new Sound(lost_sound_mc_);
fail_sound_.attachSound("fail");
fail_sound_.start(0, 1);
}
function get_ad(totalTools) {
var _local1 = ("2|nowtool=" + totalTools) + "&totaltool=5&maxquestion=5";
fscommand ("GOQO_AnswerQuestion", _local1);
}
function drawItem() {
var _local3 = 0;
var _local2 = 1;
while (_local2 <= 5) {
if (this["propBox" + _local2]._currentframe > 1) {
_local3++;
} else {
break;
}
_local2++;
}
var _local4 = propNums - _local3;
if (_local4 > 0) {
_local2 = _local3 + 1;
while (_local2 <= propNums) {
this["propBox" + _local2].gotoAndStop(random(3) + 2);
_local2++;
}
}
}
function getProp(mc) {
if (((((this._currentframe > 15) && (_root.gameOver == false)) && (_root.PropUse == true)) && (winMovie_mc._currentframe == 1)) && (startplay)) {
if (mc == 1) {
return(undefined);
}
if (mc == 2) {
teBrak = 1;
forward_bool = false;
forward_num = -10;
goback_all_balls();
PropUse = false;
}
if (mc == 3) {
if (_root.ball) {
dir_bool = true;
dir_num = 0;
PropUse = false;
} else {
return(undefined);
}
}
if (mc == 4) {
var teConte = 100;
this.onEnterFrame = function () {
Allstop = true;
teConte--;
if (!teConte) {
Allstop = false;
delete this.onEnterFrame;
}
};
PropUse = false;
}
_root.propNums--;
var i = 1;
while (i < 5) {
if (eval ("propBox" + i)._currentframe == 1) {
var j = i;
while (j < 5) {
eval ("propBox" + j).gotoAndStop(eval ("propBox" + (j + 1))._currentframe);
j++;
}
break;
}
i++;
}
propBox5.gotoAndStop(1);
var tempPropNum = 0;
_root.createEmptyMovieClip("tempProp", -1);
tempProp.onEnterFrame = function () {
tempPropNum++;
if (tempPropNum == 15) {
tempPropNum = 0;
PropUse = true;
delete tempProp.onEnterFrame;
}
};
}
}
pop_ = ["h", "o", "n", "e", "y"];
pos_arr_1 = [{x:0, y:60, blo:false}, {x:450, y:70, blo:false}, {x:36, y:300, blo:false}, {x:0, y:60, blo:false}];
pos_arr_2 = [{x:473, y:75, blo:false}, {x:440, y:310, blo:false}, {x:435, y:92, blo:false}, {x:440, y:315, blo:false}];
pos_arr_3 = [{x:154, y:50, blo:false}, {x:375, y:330, blo:false}, {x:325, y:330, blo:false}];
speedStartNum1 = 6;
speedStartNum2 = 7;
speedStartNum3 = 8;
testModeStart = false;
testModeNum = 16;
testClassNum = 1;
_root.localization_url1 = "http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma";
_root.localization_url2 = "http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma";
_root.gameWebsite = "GamesList_Com";
gamelanVer = "english";
if (gamelanVer == "english") {
perObject = {lan_CPU:"CPU", lan_input_name:"please input your name", localization_url1:"http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", localization_url2:"http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma"};
} else if (gamelanVer == "brazilian") {
perObject = {lan_moreGameAt:"Mais jogos online gr\u91ABis em", lan_start_game:"INICIAR O JOGO", lan_howtoplay:"COMO JOGAR", lan_RECORDES:"RECORDES", lan_more_game:"MAIS JOGOS", lan_free_game:"JOGOS GR\u917AIS PARA O SEU SITE", lan_QUALITY:"QUALIDADE: ", lan_BEST:"QUALIDADE: ALTA", lan_SOUND:"SOM: ", lan_OFF:"SOM: DESLIGADO", lan_NORMA:"QUALIDADE: NORMAL", lan_ON:"SOM: LIGADO", lan_BAD:"QUALIDADE: BAIXA", lan_choose_world:"escolha um mundo", lan_world_1:"mundo 1", lan_world_2:"mundo 2", lan_world_3:"mundo 3", lan_complete1:"complete o mundo 1 para desbloquear", lan_complete2:"complete o mundo 2 para desbloquear", lan_easy:"f\u9195il", lan_nornal:"normal", lan_hard:"dif\u97C8il", lan_Controls:"Controles", lan_Aim:"Fazer pontaria: ", lan_mouse:"mouse", lan_Change_ball:"Mudar de bola: ", lan_SPACE:"BARRA DE ESPA?O", lan_space_:"barra de espa?o", lan_Special_balls:"Bolas especiais", lan_bomb_ball:"Bola bomba - destr\u9ABE as bolas que est?o mais perto", lan_Reverse_ball:"Bola recuo - move a bola um pouco para tr\u91A9", lan_Wall_ball:"Bola parede - para as bolas por alguns instantes", lan_Black_hole_ball:"Bola buraco negro - engole 3 bolas", lan_Black_ball:"Bola preta - use uma bola especial sobre ela ou afaste-a de outras bolas", lan_Honey_ball:"Bola de mel - fim da linha", lan_BACK:"VOLTAR", lan_HIGHSCORES:"RECORDES", lan_name:"nome", lan_score:"placar", lan_CPU:"CPU", lan_3000_games:"3.000+ JOGOS", lan_congratulations:"parab\u959As", lan_con_score:"placar", lan_con_time:"b?nus de tempo", lan_con_max_combo:"m\u91B2imo b?nus combinado", lan_con_level:"b?nus de n\u97DBel", lan_con_final:"placar final", lan_hint:"Dica: Use a barra de espa?o para girar as bolas", lan_next:"pr\u9AD5imo", lan_game_over:"FIM DE JOGO", lan_your_score:"SEU PLACAR", lan_your_name:"SEU NOME", lan_input_name:"Por favor, digite seu nome", lan_submit_score:"ENVIAR PLACAR", lan_more_games:"MAIS JOGOS", lan_well_done:"Muito bem!", lan_collect_honeypot:"Voc?pegou todos os potes de mel deste mundo!", lan_try_out_easy:"Tente o modo normal para novos n\u97DBeis.", lan_try_out_normal:"Tente o modo dif\u97C8il para novos n\u97DBeis.", lan_try_out_hard:"Voc?acha que pode bater o seu pr\u9AC9rio placar novamente?", lan_press_space_to_continue:"Aperte a barra de espa?o para continuar"};
} else if (gamelanVer == "polish") {
perObject = {lan_moreGameAt:"Wi?cej bezp?atnych gier na", lan_start_game:"START", lan_howtoplay:"JAK GRA?", lan_RECORDES:"RANKING", lan_more_game:"WI?CEJ GIER", lan_free_game:"DARMOWE GRY NA STRON?", lan_QUALITY:"JAKO??: ", lan_BEST:"JAKO??: DOBRA", lan_SOUND:"D?WI?K: ", lan_OFF:"D?WI?K: WY?.", lan_NORMA:"JAKO??: ?REDNIA", lan_ON:"D?WI?K: W?.", lan_BAD:"JAKO??: NISKA", lan_choose_world:"wybierz ?wiat", lan_world_1:"?wiat 1", lan_world_2:"?wiat 2", lan_world_3:"?wiat 3", lan_complete1:"przejd? swiat 1, aby odblokowa?", lan_complete2:"przejd? swiat 2, aby odblokowa?", lan_easy:"?atwy", lan_nornal:"normalny", lan_hard:"trudny", lan_Controls:"Sterowanie", lan_Aim:"Celowanie: ", lan_mouse:"Mysz", lan_Change_ball:"Zmie\u0144 kul?: ", lan_SPACE:"SPACJA", lan_space_:"spacja", lan_Special_balls:"Specjalne kule", lan_bomb_ball:"Kula bomba - niszczy wszystkie s?siednie kule", lan_Reverse_ball:"Cofaj?ca kula - cofa kule lekko do ty?u", lan_Wall_ball:"Kula ?ciana - w??cza kr\u9ACFk? pauz?", lan_Black_hole_ball:"Kula czarna dziura - poch?ania 3 kule", lan_Black_ball:"Czarna kula - u?yj na ni? specjalnej kuli lub usu\u0144 s?siednie kule", lan_Honey_ball:"Miodowa kula - koniec linii", lan_BACK:"POWR\u9A89", lan_HIGHSCORES:"RANKING", lan_name:"imi?", lan_score:"wynik", lan_CPU:"CPU", lan_3000_games:"3000+ GIER", lan_congratulations:"gratulacje", lan_con_score:"wynik", lan_con_time:"bonus czasu", lan_con_max_combo:"bonus kombinacji", lan_con_level:"bonus poziomu", lan_con_final:"ostateczny wynik", lan_hint:"Wskaz\u9AD4ka: U?yj spacji, aby wymienia? kule", lan_next:"dalej", lan_game_over:"KONIEC GRY", lan_your_score:"TW\u9A64 WYNIK", lan_your_name:"TWOJE IMI?", lan_input_name:"Wpisz swoje imi?", lan_submit_score:"ZAPISZ WYNIK", lan_more_games:"WI?CEJ GIER", lan_well_done:"Znakomicie!", lan_collect_honeypot:"Zebra?e? wszystkie garnki z miodem w tym ?wiecie!", lan_try_out_easy:"Wypr\u9AB2uj tryb normalny, aby zagra? na nowych poziomach.", lan_try_out_normal:"Wypr\u9AB2uj tryb trudny, aby zagra? na nowych poziomach.", lan_try_out_hard:"Czy my?lisz, ?e dasz rad? ponownie pobi? w?asny rekord?", lan_press_space_to_continue:"Naci?nij spacj?, aby kontynuowa?"};
} else if (gamelanVer == "portuguese") {
perObject = {lan_moreGameAt:"Mais jogos online gratuitos em", lan_start_game:"INICIAR JOGO", lan_howtoplay:"COMO JOGAR", lan_RECORDES:"PONTUA??ES MAIS ALTAS", lan_more_game:"MAIS JOGOS", lan_free_game:"JOGOS GRATUITOS PARA O SEU SITE", lan_QUALITY:"QUALIDADE: ", lan_BEST:"QUALIDADE: MAIS ALTA", lan_SOUND:"SOM: ", lan_OFF:"SOM: DESLIGADO", lan_NORMA:"QUALIDADE: NORMAL", lan_ON:"SOM: LIGADO", lan_BAD:"QUALIDADE: BAIXA", lan_choose_world:"escolha um mundo", lan_world_1:"mundo 1", lan_world_2:"mundo 2", lan_world_3:"mundo 3", lan_complete1:"conclua o mundo 1 para desbloquear", lan_complete2:"conclua o mundo 2 para desbloquear", lan_easy:"f\u9195il", lan_nornal:"normal", lan_hard:"dif\u97C8il", lan_Controls:"Comandos", lan_Aim:"Fazer pontaria:", lan_mouse:"rato", lan_Change_ball:"Mudar de bola: ", lan_SPACE:"SPACE", lan_space_:"barra de espa?os", lan_Special_balls:"Bolas especiais", lan_bomb_ball:"Bola bomba - destr\u9ABE as bolas pr\u9AD5imas", lan_Reverse_ball:"Bola recuo - faz recuar ligeiramente as bolas", lan_Wall_ball:"Bola muro - coloca as bolas em pausa durante um momento", lan_Black_hole_ball:"Bola buraco negro - absorve 3 bolas", lan_Black_ball:"Bola preta - utilize uma bola especial sobre ela ou afaste-a de outras bolas", lan_Honey_ball:"Bola mel - fim da linha", lan_BACK:"RETROCEDER", lan_HIGHSCORES:"PONTUA??ES MAIS ALTAS", lan_name:"nome", lan_score:"pontua??o", lan_CPU:"CPU", lan_3000_games:"+ DE 3000 JOGOS", lan_congratulations:"parab\u959As", lan_con_score:"pontua??o", lan_con_time:"b\u9AC7us de tempo", lan_con_max_combo:"b\u9AC7us combinado m\u91B2imo", lan_con_level:"b\u9AC7us de n\u97DBel", lan_con_final:"pontua??o final", lan_hint:"Sugest?o: Use a barra de espa?os para rodar as bolas", lan_next:"seguinte", lan_game_over:"FIM DO JOGO", lan_your_score:"A SUA PONTUA??O", lan_your_name:"O SEU NOME", lan_input_name:"Introduza o seu nome", lan_submit_score:"SUBMETER PONTUA??O", lan_more_games:"MAIS JOGOS", lan_well_done:"Muito bem!", lan_collect_honeypot:"Recolheu todos os potes de mel deste mundo!", lan_try_out_easy:"Experimente o modo normal para novos n\u97DBeis.", lan_try_out_normal:"Experimente o modo dif\u97C8il para novos n\u97DBeis.", lan_try_out_hard:"Acha que consegue voltar a bater o seu pr\u9AC9rio recorde?", lan_press_space_to_continue:"Prima a barra de espa?os para continuar"};
} else if (gamelanVer == "swedish") {
perObject = {lan_moreGameAt:"Fler gratis online spel p?", lan_start_game:"STARTA SPEL", lan_howtoplay:"HUR MAN SPELAR", lan_RECORDES:"H?GSTA PO?NG", lan_more_game:"FLER SPEL", lan_free_game:"GRATIS SPEL TILL DIN SIDA", lan_QUALITY:"KVALITET: ", lan_BEST:"KVALITET: B?ST", lan_SOUND:"LJUD: ", lan_OFF:"LJUD: AV", lan_NORMA:"KVALITET: NORMAL", lan_ON:"LJUD: P?", lan_BAD:"KVALITET: D?LIG", lan_choose_world:"V?lj v?rld", lan_world_1:"V?rld 1", lan_world_2:"V?rld 2", lan_world_3:"V?rld 3", lan_complete1:"Klara av v?rld 1 f?r att l?sa upp", lan_complete2:"Klara av v?rld 2 f?r att l?sa upp", lan_easy:"L?tt", lan_nornal:"Normal", lan_hard:"Sv?r", lan_Controls:"Kontroller", lan_Aim:"Sikta:", lan_mouse:"mus", lan_Change_ball:"Byt boll: ", lan_SPACE:"MELLANSLAG", lan_space_:"mellanslag", lan_Special_balls:"Special bollar", lan_bomb_ball:"Bomb boll - f?rst?r n?rliggande bollar", lan_Reverse_ball:"bak?t boll - flyttar bollar bak?t en bit", lan_Wall_ball:"V?gg boll - pausar bollar f?r en stund", lan_Black_hole_ball:"Svart h?l boll - absorberar 3 bollar", lan_Black_ball:"Svart boll - anv?nd en speciell boll p? den f?r att f? bort den fr?n andra bollar", lan_Honey_ball:"Honung boll - slutet av linan", lan_BACK:"TILLBAKA", lan_HIGHSCORES:"H?GSTA PO?NG", lan_name:"Namn", lan_score:"Po?ng", lan_CPU:"CPU", lan_3000_games:"3000+ SPEL", lan_congratulations:"Grattis", lan_con_score:"Po?ng", lan_con_time:"Tids bonus", lan_con_max_combo:"Max kombo bonus", lan_con_level:"Niv? bonus", lan_con_final:"Slutpo?ng", lan_hint:"Tips: Anv?nd mellanslag f?r att rotera bollarna", lan_next:"N?sta", lan_game_over:"SPEL SLUT", lan_your_score:"DIN PO?NG", lan_your_name:"DITT NAMN", lan_input_name:"Var god skriv in ditt namn", lan_submit_score:"SPARA PO?NG", lan_more_games:"FLER SPEL", lan_well_done:"Bra gjort!", lan_collect_honeypot:"Du har samlat varje honungskruka i denna v?rld!", lan_try_out_easy:"Pr?va normal l?get f?r nya niv?er.", lan_try_out_normal:"Pr?va sv?r l?get f?r nya niv?er.", lan_try_out_hard:"Tror du att du kan sl? din egna po?ng igen?", lan_press_space_to_continue:"Tryck p? mellanslag f?r att forts?tta"};
} else if (gamelanVer == "italian") {
perObject = {lan_moreGameAt:"Altri giochi gratis online su GamesGames.com", lan_start_game:"INIZIA GIOCO", lan_howtoplay:"COME SI GIOCA", lan_RECORDES:"PUNTEGGI", lan_more_game:"ALTRI GIOCHI", lan_free_game:"GIOCHI GRATIS PER IL TUO SITO", lan_QUALITY:"QUALITA': ", lan_BEST:"QUALITA': MIGLIORE", lan_SOUND:"SONORO: ", lan_OFF:"SONORO: OFF", lan_NORMA:"QUALITA': NORMALE", lan_ON:"SONORO: ON", lan_BAD:"QUALITA': NON BUONA", lan_choose_world:"scegli il mondo", lan_world_1:"mondo 1", lan_world_2:"mondo 2", lan_world_3:"mondo 3", lan_complete1:"finisci mondo 1 per aprire", lan_complete2:"finisci mondo 2 per aprire", lan_easy:"facile", lan_nornal:"normale", lan_hard:"difficile", lan_Controls:"Comandi", lan_Aim:"Mira:", lan_mouse:"mouse", lan_Change_ball:"Cambia palla: ", lan_SPACE:"SPAZIO", lan_space_:"spazio", lan_Special_balls:"Palle speciali", lan_bomb_ball:"Palla bomba - distrugge le palle vicine a te", lan_Reverse_ball:"Palla inversata - sposta le palle indietro un p?", lan_Wall_ball:"Palla al muro - ferma le palle per un p?di tempo", lan_Black_hole_ball:"Palla dal buco nero - assorbe 3 palle", lan_Black_ball:"Palla nera - usaci una palla speciale sopra oppure sgombera le palle che le sono vicino", lan_Honey_ball:"Honey Ball - la fine della linea", lan_BACK:"INDIETRO", lan_HIGHSCORES:"PUNTEGGI", lan_name:"nome", lan_score:"punteggio", lan_CPU:"CPU", lan_3000_games:"Giochi 3000+", lan_congratulations:"congratulazioni", lan_con_score:"punteggio", lan_con_time:"tempo bonus", lan_con_max_combo:"bonus delle maxi combinazioni", lan_con_level:"bonus del livello", lan_con_final:"punteggio finale", lan_hint:"Aiutino: usa lo spaziatore per far ruotare le palle", lan_next:"avanti", lan_game_over:"GAME OVER", lan_your_score:"IL TUO PUNTEGGIO", lan_your_name:"IL TUO NOME", lan_input_name:"inserisci il tuo nome", lan_submit_score:"INVIA PUNTEGGIO", lan_more_games:"ALTRI GIOCHI", lan_well_done:"Ben fatto!", lan_collect_honeypot:"hai raccolto tutti i barattoli di miele in questo mondo!", lan_try_out_easy:"Prova la modalit?normale per i livelli nuovi.", lan_try_out_normal:"Prova la modalit?difficile per i livelli nuovi.", lan_try_out_hard:"Riuscirai a battere il tuo stesso record?", lan_press_space_to_continue:"Tasta lo spazio per continuare"};
} else if (gamelanVer == "spanish") {
perObject = {lan_moreGameAt:"M\u9110 juegos gratis en l\u97D3ea", lan_start_game:"Jugar", lan_howtoplay:"C\u9A27o se juega", lan_RECORDES:"Puntuaci\u9A28", lan_more_game:"M\u9110 juegos gratis en", lan_free_game:"Juegos gratis para t?web", lan_QUALITY:"Calidad: ", lan_BEST:"Calidad: Buena", lan_SOUND:"Sonido: ", lan_OFF:"Sonido: Apagar", lan_NORMA:"Calidad: Normal", lan_ON:"Sonido: Abierto", lan_BAD:"Calidad: Mala", lan_choose_world:"Elige el mundo", lan_world_1:"Mundo 1", lan_world_2:"Mundo 2", lan_world_3:"Mundo 3", lan_complete1:"Completa el mundo 1 para abrir el siguiente", lan_complete2:"Completa el mundo 2 para abrir el siguiente", lan_easy:"Facil", lan_nornal:"Normal", lan_hard:"Dificil", lan_Controls:"Controles", lan_Aim:"Apuntar\uFF1A", lan_mouse:"rat\u9A28", lan_Change_ball:"Cambiar de bola\uFF1A", lan_SPACE:"barra de espacio", lan_space_:"barra de espacio", lan_Special_balls:"Bolas Especiales", lan_bomb_ball:"Bola Bomba - destruye las bolas cercanas", lan_Reverse_ball:"Bola hacia atr\u9110 - mueve las bolas un poco hacia atr\u9110", lan_Wall_ball:"Bola de pared - para las bolas por un instante", lan_Black_hole_ball:"Agujero negro - absorbe tres bolas", lan_Black_ball:"Bola negra - usa una bola especial sobre ella o despejala de otras bolas", lan_Honey_ball:"Bola de miel - el final de la linea", lan_BACK:"ATR\u90E4", lan_HIGHSCORES:"Puntuaci\u9A28es altas", lan_name:"Nombre", lan_score:"puntuaci\u9A28", lan_CPU:"CPU", lan_3000_games:"3000 + JUEGOS", lan_congratulations:"Enorabuena", lan_con_score:"Puntuaci\u9A28", lan_con_time:"Tiempo extra", lan_con_max_combo:"M\u9115imo Combo Bonus", lan_con_level:"Bonus por el nivel", lan_con_final:"Puntuaci\u9A28 final", lan_hint:"Ayuda: Usa la barra de espacio para rotar las bolas", lan_next:"Proxima", lan_game_over:"FIN DEL JUEGO", lan_your_score:"T?PUNTUACI\u9A08", lan_your_name:"T?NOMBRE", lan_input_name:"Escribe t?nombre", lan_submit_score:"Puntuaci\u9A28 final", lan_more_games:"M\u9110 juegos", lan_well_done:"?Bien echo!", lan_collect_honeypot:"?Has recogido todo los tarros de miel en este mundo!", lan_try_out_easy:"Juega en el modo normal para poder jugar en nuevos niveles", lan_try_out_normal:"Juega en el modo dificil para poder jugar en nuevos niveles", lan_try_out_hard:"?Crees que puedes superar t?propia puntuaci\u9AC7?", lan_press_space_to_continue:"Presiona la barra de espacio para continuar"};
} else if (gamelanVer == "german") {
perObject = {lan_moreGameAt:"Noch mehr kostenlose online Spiele unter:", lan_start_game:"Spiel starten", lan_howtoplay:"Spielanleitung", lan_RECORDES:"Highscores", lan_more_game:"Noch mehr Spiele", lan_free_game:"Kostenlose Spiele f\u9EF5 deine Seite", lan_QUALITY:"Qualit?t: ", lan_BEST:"Qualit?t: Beste", lan_SOUND:"Sound: ", lan_OFF:"Sound: Aus", lan_NORMA:"Qualit?t: Normal", lan_ON:"Sound: An", lan_BAD:"Qualit?t: Schlecht", lan_choose_world:"Welt aussuchen", lan_world_1:"Welt 1", lan_world_2:"Welt 2", lan_world_3:"Welt 3", lan_complete1:"Zum frei schalten Welt 1 beenden", lan_complete2:"Zum frei schalten Welt 2 beenden", lan_easy:"einfach", lan_nornal:"normal", lan_hard:"schwierig", lan_Controls:"Steuerungen", lan_Aim:"Zielen\uFF1A", lan_mouse:"Maus", lan_Change_ball:"Ball wechseln\uFF1A", lan_SPACE:"Leertaste", lan_space_:"Leertaste", lan_Special_balls:"Spezial-B?lle", lan_bomb_ball:"Bomben Ball - zerst?rt nahe gelegene B?lle", lan_Reverse_ball:"R\u9EDEkw?rts Ball - bewegt B?lle etwas zur\u9EDEk", lan_Wall_ball:"Mauer Ball - h?lt B?lle f\u9EF5 kurze Zeit auf", lan_Black_hole_ball:"Schwarzer Loch Ball - absorbiert 3 B?lle", lan_Black_ball:"Schwarzer Ball - Spezial-Ball benutzen oder andere B?lle l?schen", lan_Honey_ball:"Honig Ball - das Ende der Reihe", lan_BACK:"Zur\u9EDEk", lan_HIGHSCORES:"Highscores", lan_name:"Name", lan_score:"Score", lan_CPU:"CPU", lan_3000_games:"3000+Spiele", lan_congratulations:"Gl\u9EDEkwunsch", lan_con_score:"Punkte", lan_con_time:"Zeit Bonus", lan_con_max_combo:"Max Combo Bonus", lan_con_level:"Level Bonus", lan_con_final:"Finale Punkte", lan_hint:"Hinweis: Benute die Leertaste, um die B?lle zu rotieren", lan_next:"Weiter", lan_game_over:"Game Over", lan_your_score:"Deine Punkte", lan_your_name:"Dein Name", lan_input_name:"Tippe bitte deinen Namen ein", lan_submit_score:"Punkte registrieren", lan_more_games:"Noch mehr Spiele", lan_well_done:"Gut gemacht!", lan_collect_honeypot:"Du hast alle Honigt?pfe der Welt gesammelt!", lan_try_out_easy:"Probiere den normalen Modus aus, um neue Level zu spielen.", lan_try_out_normal:"Probiere den schwierigen Modus aus, um neue Level zu spielen.", lan_try_out_hard:"Denkst du, du kannst deine eigene Punktzahl noch einmal schlagen?", lan_press_space_to_continue:"Dr\u9EDEke die Leertaste, um weiter zu machen"};
} else if (gamelanVer == "French") {
perObject = {lan_moreGameAt:"Plus de jeux en ligne sur", lan_start_game:"JOUER", lan_howtoplay:"INSTRUCTIONS", lan_RECORDES:"MEILLEURS SCORES", lan_more_game:"PLUS DE JEUX", lan_free_game:"JEUX GRATUITS EN LIGNE POUR VOTRE SITE", lan_QUALITY:"QUALITE: ", lan_BEST:"QUALITE: HAUTE", lan_SOUND:"SON: ", lan_OFF:"SON: DESACTIVE", lan_NORMA:"QUALITE: NORMALE", lan_ON:"SON: ACTIVE", lan_BAD:"QUALITE: BASSE", lan_choose_world:"Choisis un monde", lan_world_1:"Monde 1", lan_world_2:"Monde 2", lan_world_3:"Monde 3", lan_complete1:"Compl\u9464e le Monde 1 pour y acc\u9590er", lan_complete2:"Compl\u9464e le Monde 2 pour y acc\u9590er", lan_easy:"Facile", lan_nornal:"Moyen", lan_hard:"Difficile", lan_Controls:"Commandes", lan_Aim:"Viser\uFF1A", lan_mouse:"souris", lan_Change_ball:"Changer de balle\uFF1A", lan_SPACE:"ESPACE", lan_space_:"Espace", lan_Special_balls:"Balles sp\u958Fiales", lan_bomb_ball:"Balle Bomb - d\u95A0ruit les balles adjacentes", lan_Reverse_ball:"Balle Reverse - repousse momentan\u9599ent les balles", lan_Wall_ball:"Balle Wall - arr\u963Ee momentan\u9599ent les balles", lan_Black_hole_ball:"Balle Black hole - absorbe 3 balles", lan_Black_ball:"Balle Black - utilise une balle sp\u958Fiale ou \u9598imine-la des autres balles", lan_Honey_ball:"Balle Honey - la fin de la ligne", lan_BACK:"RETOUR", lan_HIGHSCORES:"MEILLEURS SCORES", lan_name:"Nom", lan_score:"Score", lan_CPU:"PC", lan_3000_games:"3000+JEUX", lan_congratulations:"BRAVO", lan_con_score:"score", lan_con_time:"temps bonus", lan_con_max_combo:"bonus combo max", lan_con_level:"bonus niveau", lan_con_final:"score final", lan_hint:"Astuce : Utilise la barre d'Espace pour faire tourner les balles", lan_next:"suivant", lan_game_over:"PERDU", lan_your_score:"TON SCORE", lan_your_name:"TON NOM", lan_input_name:"Entre ici ton nom", lan_submit_score:"ENREGISTRER LE SCORE", lan_more_games:"PLUS DE JEUX", lan_well_done:"F\u9598icitation!", lan_collect_honeypot:"Tu as bien collect?tous les pots de miel de ce monde!", lan_try_out_easy:"Essaye le Monde 2 pour de nouveaux niveaux.", lan_try_out_normal:"Essaye le Monde 3 pour de nouveaux niveaux.", lan_try_out_hard:"Penses-tu que tu puisses battre ton propre score de nouveau?", lan_press_space_to_continue:"Appuie sur Espace pour continuer"};
} else if (gamelanVer == "Dutch") {
perObject = {lan_moreGameAt:"Meer gratis online spellen op", lan_start_game:"START SPEL", lan_howtoplay:"SPEL UITLEG", lan_RECORDES:"HOOGSTE SCORES", lan_more_game:"MEER SPELLEN", lan_free_game:"GRATIS SPELLEN VOOR JE SITE", lan_QUALITY:"KWALITEIT: ", lan_BEST:"KWALITEIT: UITSTEKEND", lan_SOUND:"GELUID: ", lan_OFF:"GELUID: UIT", lan_NORMA:"KWALITEIT: NORMAAL", lan_ON:"GELUID: AAN", lan_BAD:"KWALITEIT: SLECHT", lan_choose_world:"kies wereld", lan_world_1:"wereld 1", lan_world_2:"wereld 2", lan_world_3:"wereld 3", lan_complete1:"voltooi wereld 1 om te spelen", lan_complete2:"voltooi wereld 2 om te spelen", lan_easy:"makkelijk", lan_nornal:"normaal", lan_hard:"moeilijk", lan_Controls:"Besturing", lan_Aim:"Mikken: ", lan_mouse:"muis", lan_Change_ball:"Wissel bal: ", lan_SPACE:"SPATIE", lan_space_:"spatie", lan_Special_balls:"Speciale ballen", lan_bomb_ball:"Bom bal - blaast ballen dichtbij op", lan_Reverse_ball:"Omgekeerde bal - duwt de ballen tijdelijk terug", lan_Wall_ball:"Muur bal - pauzeert de ballen eventjes", lan_Black_hole_ball:"Zwarte gat bal - slokt 3 ballen op, zonder dood te gaan.", lan_Black_ball:"Zwarte bal - gebruik een speciale bal ertegen of haal de ballen er omheen weg", lan_Honey_ball:"Honing bal - het einde van de lijn", lan_BACK:"TERUG", lan_HIGHSCORES:"HOOGSTE SCORES", lan_name:"naam", lan_score:"score", lan_CPU:"COM", lan_3000_games:"3000+ SPELLEN", lan_congratulations:"gefeliciteerd", lan_con_score:"score", lan_con_time:"tijd bonus", lan_con_max_combo:"max combo bonus", lan_con_level:"level bonus", lan_con_final:"totaal score", lan_hint:"Tip: Gebruik de spatiebalk om de ballen te wisselen", lan_next:"volgende", lan_game_over:"GAME OVER", lan_your_score:"JE SCORE", lan_your_name:"JE NAAM", lan_input_name:"Voer je naam in", lan_submit_score:"VERSTUUR SCORE", lan_more_games:"MEER SPELLEN", lan_well_done:"Goed gedaan!", lan_collect_honeypot:"Je hebt alle honingpotten in deze wereld verzameld!", lan_try_out_easy:"Speel de normale wereld voor nog meer levels.", lan_try_out_normal:"Speel de moeilijke wereld voor nog meer levels.", lan_try_out_hard:"Kan jij je beste score verhogen?", lan_press_space_to_continue:"Druk spatie om verder te gaan"};
} else if (gamelanVer == "chinese") {
perObject = {lan_CPU:"CPU", lan_input_name:"please input your name", localization_url1:"http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", localization_url2:"http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma"};
}
setPerFuncAll(perObject);
var i = 1;
while (i <= 7) {
_root["rollOutAllBall" + i] = 25;
_root["ballRollBackNum" + i] = 22;
i++;
}
var i = 8;
while (i <= 14) {
_root["rollOutAllBall" + i] = 17;
_root["ballRollBackNum" + i] = 11;
i++;
}
var i = 15;
while (i <= 22) {
_root["rollOutAllBall" + i] = 30;
_root["ballRollBackNum" + i] = 23;
i++;
}
rollAllBallCutNum = 2;
ballRollBackSpeeds = 70;
tgt_speedClass1 = 150;
tgt_speedClass2 = 150;
tgt_speedClass3 = 150;
keyListen_trace = new Object();
var KeyPassWord = "goqogame";
var KeyWord_array = KeyPassWord.split("");
var Key_chane = new Array(KeyWord_array.length);
i = 0;
while (i < KeyWord_array.length) {
Key_chane[i] = KeyWord_array[i].charCodeAt(0);
i++;
}
Key_chane = [71, 79, 81, 79, 71, 65, 77, 69];
key_trace = [];
ST_num = 0;
go_ON = false;
keyListen_trace.onKeyDown = function () {
if (Key.getAscii() == 83) {
ST_num++;
if ((ST_num % 2) == 1) {
go_ON = false;
AllStop_func();
} else {
go_ON = true;
}
}
if (Key.getCode() == 37) {
key_trace = new Array();
} else {
temp = Key.getCode() - 96;
if ((Key.getCode() >= 96) && (Key.getCode() <= 105)) {
if ((Key.getCode() - 48) == (48 + temp)) {
kao = 48 + temp;
key_trace.push(kao);
}
} else {
key_trace.push(Key.getCode());
}
if (Key_chane.length == key_trace.length) {
cnt = 0;
i = 0;
while (i < Key_chane.length) {
if (Key_chane[i] == key_trace[i]) {
cnt++;
if (cnt == Key_chane.length) {
_root.attachMovie("trace_mc", "trace_mc", _root.getNextHighestDepth());
key_trace = [];
}
}
i++;
}
}
}
};
Key.addListener(keyListen_trace);
var Allstop = false;
playerVersion = function () {
var _local2 = getVersion();
var _local1 = _local2.indexOf(",");
return(int(_local2.substring(_local1 - 2, _local1)));
};
if (!ModeZT) {
ModeZT = 1;
}
_root.blackandom = random(30);
lost_game_blo = false;
if (start_time == undefined) {
start_time = 0;
}
stop();
_quality = "HIGH";
if (gameQuality) {
_quality = gameQuality;
}
var \u4E0A\u4E00\u534A\u5206\u6570 = 0;
var \u4E0B\u4E00\u534A\u5206\u6570 = 0;
var te\u4E0A\u4E00\u534A\u5206\u6570 = 0;
var te\u4E0B\u4E00\u534A\u5206\u6570 = 0;
var show_mc_visible = true;
var randomhei1;
var randomhei2;
var randomhei3;
var tebl = (random(100) / 100);
onEnterFrame = function () {
var _local3 = getBytesLoaded();
var _local2 = getBytesTotal();
var _local5 = int((_local3 / _local2) * 100);
loadingMC.loadMC.gotoAndStop(int(_local5));
if (_local3 == _local2) {
loadingMC.gotoAndStop(12);
var _local4 = playerVersion();
if (_local4 >= 8) {
} else {
attachMovie("playerVersionHint", "playerVersionHint", getNextHighestDepth());
}
delete this.onEnterFrame;
}
};
Frame 2
stop();
if (!HQdaoju) {
bu1._alpha = 50;
bu1.enabled = false;
}
bu2.onPress = function () {
_root.gotoAndStop("mode");
};
bu1.onPress = function () {
this._alpha = 50;
this.enabled = false;
HQdaoju = false;
get_ad(_root.propNums);
};
Frame 3
function attachSoundHandel(linkName) {
var _local1 = new Sound(soundMC);
_local1.attachSound(linkName);
return(_local1);
}
var old_levelNum;
if (Sound_blo_22 == undefined) {
Sound_blo_22 = 1;
start_sound_ = attachSoundHandel("last_win");
}
if (start_sound_Now == undefined) {
start_sound_Now = true;
start_sound_.start(0, 1100);
}
Frame 4
play();
Frame 5
function clearSO_road() {
delete so.data.use_road;
delete use_road;
so.data.use_road = new Array();
use_road = so.data.use_road;
}
function findRoadName(str) {
i = 0;
while (i < use_road.length) {
if (use_road[i].road_name == str) {
return(i);
}
i++;
}
return(undefined);
}
function crtIndexImg(pres, bili, save_data, holder) {
var _local4 = save_data.road;
var _local7 = new Object();
_local7 = save_data.center_pos;
var _local8 = save_data.road_name;
var _local5 = Math.floor(_local4.length / pres);
var _local1 = new Array();
i = 0;
while (i < _local5) {
_local1.push(_local4[i * pres]);
i++;
}
if ((_local4.lngth % pres) != 0) {
_local1.push(_local4[_local4.length - 1]);
}
holder.obj.attachMovie("index_start_dot", "dot1", 0);
holder.obj.dot1._x = _local1[0].x * bili;
holder.obj.dot1._y = _local1[0].y * bili;
holder.obj.attachMovie("index_end_dot", "dot2", 1);
holder.obj.dot2._x = _local1[_local1.length - 1].x * bili;
holder.obj.dot2._y = _local1[_local1.length - 1].y * bili;
holder.obj.attachMovie("index_center_dot", "dot3", 4);
holder.obj.dot3._x = _local7.x * bili;
holder.obj.dot3._y = _local7.y * bili;
holder.obj.lineStyle(1, 10053120, 100);
holder.obj.moveTo(_local1[0].x * bili, _local1[0].y * bili);
i = 1;
while (i < _local1.length) {
holder.obj.lineTo(_local1[i].x * bili, _local1[i].y * bili);
i++;
}
holder.road_name = _local8;
holder.pos_array = _local4;
holder.center_pos = _local7;
}
levelTotal = 20;
so = SharedObject.getLocal("mykaka_starBall_b");
if (!so.data.use_road) {
so.data.use_road = new Array();
}
var xCpu = lan_CPU;
if (so.data.scores == undefined) {
so.data.scores = new Array([xCpu, 70000], [xCpu, 50000], [xCpu, 30000], [xCpu, 10000], [xCpu, 5000], [xCpu, 3000], [xCpu, 1000]);
}
so.onStatus = function (code) {
};
use_road = so.data.use_road;
if (so.data.level_success == undefined) {
so.data.level_success = new Array();
var i = 0;
while (i < levelTotal) {
so.data.level_success[i] = false;
i++;
}
}
if (so.data.levelSec == undefined) {
so.data.levelSec = new Array();
}
levelSec = so.data.levelSec;
Frame 6
var score = 0;
goal_total = score;
var maxcombo = 0;
var maxcombonum = 0;
var combotol = 0;
var RtoA = 57.29578;
var AtoR = 0.01745329;
width = 34;
posXishu = 200;
timer = 50;
life = 1;
level = "";
levelNum = 1;
game_pause = false;
flower_show_bool = false;
ball_shadow = false;
ball_shadowID = 800;
gameTest = false;
speedCheck = true;
use_quality = 1;
bgSnd_bool = true;
initCanRemoveNum = 2;
superBall_rnd = 20;
flower_array = [16750848, 39168, 3381759, 16724838, 7088039, 6710886, 1004471, 3947520, 8592129];
road_width = 6;
road_color = 16777215 /* 0xFFFFFF */;
road_alpha = 40;
road_center_width = 2;
road_center_color = 0;
road_center_alpha = 100;
line_jingdu = 0.47;
line_width = width * line_jingdu;
lineXishu = posXishu * line_jingdu;
initMaxAngle = 20;
max_maxAngle = 45;
min_maxAngle = 2;
tagTime = 80;
tag_array = ["bo", "bo", "bo"];
boom_bool = false;
var teBrak = 0;
forward_bool = true;
forward_num_total = 20;
forward_num = 0;
all_forward_speed = -40;
dir_bool = false;
dir_num = 0;
dir_num_total = 500;
boom_bool = false;
boom_area = 100;
boom_lock_times = 0;
boom_lock_total = 20;
tgt_num = 0;
tgt_depth = 100;
b_depth = 1000;
balls_num = 0;
insert_total_times = 4;
insert_step = (posXishu / insert_total_times) / 2;
init_goback_speed = -15;
max_goback_speed = -100;
remove_arr_array = new Array();
break_array = new Array();
gameOver = false;
remove_num = 0;
goal_total = 0;
goal = 10;
goal_leave = 50;
tgt_totalNum = 220;
tgt_speed = 200;
min_speed = 18;
speed_a = 3;
tgt_type = 5;
type_num_array = new Array();
i = 1;
while (i <= tgt_type) {
type_num_array[i] = 0;
i++;
}
tgt_same_base = 1;
tgt_same_change = 3;
tgt_same_total = tgt_same_base + random(tgt_same_change);
tgt_same_num = 0;
last_pos = 0;
levelTimes = 0;
Frame 7
function pushGrid(obj, isnew) {
if (!obj.removing) {
if ((isnew || (Math.floor(obj.oldx / grid_width) != Math.floor(obj._x / grid_width))) || (Math.floor(obj.oldy / grid_width) != Math.floor(obj._y / grid_width))) {
myGrid.pop(obj.oldx, obj.oldy, obj, "tgt_ball");
myGrid.push(obj._x, obj._y, obj, "tgt_ball");
}
}
}
function go(obj, frame) {
obj.roll_frame = obj.roll_frame + frame;
obj.roll_frame = obj.roll_frame % obj.flower.roll_mc._totalframes;
obj.flower.roll_mc.gotoAndStop(Math.round(obj.roll_frame) + 1);
}
function dis_func(mc1, mc2) {
if (typeof(mc1) != "movieclip") {
var _local4 = mc1.x - mc2._x;
var _local3 = mc1.y - mc2._y;
} else if (typeof(mc2) != "movieclip") {
var _local4 = mc1._x - mc2.x;
var _local3 = mc1._y - mc2.y;
} else {
var _local4 = mc1._x - mc2._x;
var _local3 = mc1._y - mc2._y;
}
dis = Math.sqrt(Math.pow(_local4, 2) + Math.pow(_local3, 2));
return(dis);
}
function updatePos(obj, _speed, isNew) {
if ((_root.ball_number_n == 0) && (balls_num < 18)) {
now_type_tmp_arr = [];
for (var _local7 in tgt_mcs) {
if (((((tgt_mcs[_local7].type < 7) && (tgt_mcs[_local7].type != undefined)) && (tgt_mcs[_local7].type != 11)) && (tgt_mcs[_local7].type != 9)) && (String(typeof(tgt_mcs[_local7])).length != 0)) {
now_type_tmp_arr.push(tgt_mcs[_local7].type);
}
}
}
lost_pox = {x:pos_array[pos_array.length - 1].x, y:pos_array[pos_array.length - 1].y};
hold_mx.x = pos_array[pos_array.length - 3].x;
hold_mx.y = pos_array[pos_array.length - 3].y;
obj.oldx = int(obj._x);
obj.oldy = int(obj._y);
if (obj.pos < (pos_array.length * lineXishu)) {
var _local5 = Math.floor(obj.pos / lineXishu);
var _local8 = obj.pos - (_local5 * lineXishu);
var _local6 = new Object();
_local6.dx = _local8 * pos_array[_local5].dx;
_local6.dy = _local8 * pos_array[_local5].dy;
_local6.dr = _local8 * pos_array[_local5].dr;
obj._x = int(pos_array[_local5].x + _local6.dx);
obj._y = int(pos_array[_local5].y + _local6.dy);
}
if ((holdBall_mc.hold_mc != undefined) && (obj.hitTest(holdBall_mc.hold_mc.trg))) {
if (_root.EndBall != obj) {
hold_mx.num++;
var _local2 = [obj];
sp_xiqiu = true;
var _local3 = new Object();
_local3.tgt_remove_num = 0;
_local3.id = random(65535);
_local3.remove_array = _local2;
remove_arr_array[_local3.id] = _local3;
remove_sound.start(0);
i = 0;
while (i < _local2.length) {
_local2[i].remove_id = _local3.id;
myGrid.pop(_local2[i]._x, _local2[i]._y, _local2[i], "tgt_ball");
_local2[i].removing = true;
_local2[i].gotoAndPlay("remove");
i++;
}
if (_root.ball == undefined) {
_root.crtNewBall();
}
if (hold_mx.num >= 3) {
_root.holdBall2 == false;
_root.holdBall = false;
holdBall_mc.hold_mc.unloadMovie();
hold_mx.num = 0;
}
}
}
holdBall_mc.hold_mc.show_txt.text = 3 - hold_mx.num;
}
function push_balls(obj, _speed) {
if (!Allstop) {
obj.pos = obj.pos + _speed;
} else {
obj.pos = obj.pos + 0;
}
updatePos(obj, _speed, false);
if (obj.right._name != undefined) {
if (obj._currentframe < 12) {
return(push_balls(obj.right, _speed));
}
remove_movie_end(obj.remove_id);
} else {
return(obj);
}
}
function pull_balls(obj, _speed) {
obj.pos = obj.pos + _speed;
updatePos(obj, _speed, false);
if (obj.left._name != undefined) {
return(pull_balls(obj.left, _speed));
}
return(obj);
}
function find_break_ball(obj) {
if (obj.left._name != undefined) {
return(find_break_ball(obj.left));
}
return(obj);
}
function find_last() {
var _local1;
if (last_ball._name == undefined) {
_local1 = firstBall;
} else {
_local1 = last_ball;
}
while ((_local1.right._name != undefined) || (_local1.link_right._name != undefined)) {
if (_local1.right._name != undefined) {
_local1 = _local1.right;
} else if (_local1.link_right._name != undefined) {
_local1 = _local1.link_right;
}
}
last_ball = _local1;
if (last_ball._name != undefined) {
last_pos = last_ball.pos;
last_pos = last_pos - (last_pos % posXishu);
}
}
function goback_all_balls() {
var _local1 = firstBall;
_local1.pos = _local1.pos + all_forward_speed;
updatePos(_local1, all_forward_speed, false);
while ((_local1.right._name != undefined) || (_local1.link_right._name != undefined)) {
if (_local1.right._name != undefined) {
_local1 = _local1.right;
} else if (_local1.link_right._name != undefined) {
_local1 = _local1.link_right;
}
_local1.pos = _local1.pos + all_forward_speed;
updatePos(_local1, all_forward_speed, false);
}
}
function align_left_balls(obj) {
while (obj._name != undefined) {
obj.pos = obj.left.pos + posXishu;
obj = obj.right;
}
}
function align_right_balls(obj) {
while (obj._name != undefined) {
obj.pos = obj.right.pos - posXishu;
obj = obj.left;
}
}
function break_array_pop(obj) {
i = 0;
while (i < break_array.length) {
if (break_array[i] == obj) {
obj.goback_speed = 0;
obj.goback_speed2 = 0;
break_array.splice(i, 1);
break;
}
i++;
}
}
function getNewType(oldtype) {
if (tgt_same_num < tgt_same_total) {
return(oldtype);
}
tgt_same_num = 0;
tgt_same_total = tgt_same_base + random(tgt_same_change);
do {
var newType = (random(tgt_type) + 1);
} while (newType == oldtype);
return(newType);
}
function mcDistance(mc0, mc1) {
var _local2 = mc0._x - mc1._x;
var _local1 = mc0._y - mc1._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
function mcDistance2(mc0, mc1) {
return(Math.abs(mc0.pos - mc1.pos));
}
function setTag(obj, tag_bool) {
obj.tag = "";
if ((random(tagTime) == 0) && (tag_bool)) {
} else {
obj.flower.tag_mc.stop();
obj.flower.tag_mc._visible = false;
}
}
function setMotherDir(rada) {
if (dir_bool) {
var _local1 = new Object();
var _local3 = new Object();
var _local2 = new Object();
_local1.x = ball.x;
_local1.y = ball.y;
_local1 = find_dir(_local1, rada);
_local3.x = Math.round(ball.x - (3 * Math.sin(rada)));
_local3.y = Math.round(ball.y + (3 * Math.cos(rada)));
_local2.x = Math.round(ball.x + (3 * Math.sin(rada)));
_local2.y = Math.round(ball.y - (3 * Math.cos(rada)));
dir_mc.clear();
dir_mc.beginFill(16711680, 30);
dir_mc.moveTo(_local1.x, _local1.y);
dir_mc.lineTo(_local3.x, _local3.y);
dir_mc.lineTo(_local2.x, _local2.y);
dir_mc.lineTo(_local1.x, _local1.y);
dir_num++;
if (dir_num >= dir_num_total) {
dir_bool = false;
dir_mc.clear();
}
}
}
function outOfScene(pos) {
return(((((pos.x < 0) || (pos.y < 0)) || (pos.x > sceneWidth)) || (pos.y > sceneHeight)) || (mouth_start.pro_area.hitTest(pos.x, pos.y, true)));
}
function find_dir(pos, rada) {
var _local4;
var _local2 = (width * 2) - 1;
while (!outOfScene(pos)) {
pos.x = pos.x + (_local2 * Math.cos(rada));
pos.y = pos.y + (_local2 * Math.sin(rada));
}
return(pos);
}
function ball_boom(boom_obj) {
_root.Boom_blo = true;
_root.boom_num = 0;
if ((firstBall._name != undefined) && (boom_obj._name != undefined)) {
var _local3 = firstBall;
var _local6 = random(65535);
if ((mcDistance(boom_obj, _local3) < boom_area) && (_root.jumpBall != true)) {
var _local4 = new Object();
_local4.tgt_remove_num = 0;
_local4.id = _local6;
_local4.remove_array = new Array();
_local4.remove_array.push(_local3);
remove_arr_array[_local6] = _local4;
_local3.remove_id = _local6;
}
while ((_local3.right._name != undefined) || (_local3.link_right._name != undefined)) {
if (_local3.right._name != undefined) {
_local3 = _local3.right;
} else if (_local3.link_right._name != undefined) {
_local3 = _local3.link_right;
}
if ((mcDistance(boom_obj, _local3) < boom_area) && (_root.jumpBall != true)) {
_root.boom_num++;
_local6 = random(65535);
var _local4 = new Object();
_local4.tgt_remove_num = 0;
_local4.id = _local6;
_local4.remove_array = new Array();
remove_arr_array[_local6] = _local4;
_local3.checkTag = false;
_local3.remove_id = _local6;
remove_arr_array[_local6].remove_array.push(_local3);
if (_local3.tag == "bo") {
var _local5 = _local3.idnum;
var _local7 = _root.attachMovie("showTebieCartoon", "showTebieCartoon" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _local3._x;
_local7._y = _local3._y;
_local7.pic.gotoAndStop(_local5);
var _local2 = 0;
while (_local2 < cha_arr.length) {
if ((_local5 == cha_arr[_local2]) && (cha_arr2[_local2] != 1)) {
if (cha_arr[_local2] == "h") {
_root.poop1.gotoAndStop(2);
} else if (cha_arr[_local2] == "n") {
_root.poop3.gotoAndStop(4);
} else if (cha_arr[_local2] == "o") {
_root.poop2.gotoAndStop(3);
} else if (cha_arr[_local2] == "e") {
_root.poop4.gotoAndStop(5);
} else if (cha_arr[_local2] == "y") {
_root.poop5.gotoAndStop(6);
}
cha_arr.splice(_local2, 1);
cha_arr2.splice(_local2, 1);
cha_has++;
}
if (cha_has >= 5) {
cha_has = 0;
cha_arr = ["h", "o", "n", "e", "y"];
cha_arr2 = [0, 0, 0, 0, 0];
re_back_func_();
_root.attachMovie("movieClassMC", "movieClassMC" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:158, _y:172});
next_leve_func();
break;
}
_local2++;
}
}
_local3.gotoAndPlay("boom");
var _local8 = _root.attachMovie("appearPoint", "appearPoint" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local8._x = remove_array[i]._x;
_local8._y = remove_array[i]._y;
_local8.addItemPoint = 10;
myGrid.pop(_local3._x, _local3._y, _local3, "tgt_ball");
_local3.removing = true;
}
}
}
_root.Boom_blo = false;
}
function setLife(num) {
}
function setGoal(num) {
goal_total = goal_total + num;
_root["\u4E0A\u4E00\u534A\u5206\u6570"] = _root["\u4E0A\u4E00\u534A\u5206\u6570"] + (_root.tebl * num);
_root["\u4E0B\u4E00\u534A\u5206\u6570"] = _root["\u4E0B\u4E00\u534A\u5206\u6570"] + ((1 - _root.tebl) * num);
goal_total_mc.getNum(goal_total, goal_total_mc.obj, "mynum", 12);
}
function setLevel(level_str) {
level_mc.getNum(level_str, level_mc.obj, "mynum", 12);
}
function setTgt_bar() {
tgtNum_bar.getBallGS(tgt_totalNum - tgt_num, tgtNum_bar.obj, "mynum", 12);
}
function initShowPara() {
tgtNum_bar.bar._width = 0;
life_mc.getNum(life, life_mc.obj, "mynum", 12);
goal_total_mc.getNum(0, goal_total_mc.obj, "mynum", 12);
level_mc.getNum("_", level_mc.obj, "mynum", 12);
}
function winMove() {
_root.center_mc._rotation = 90;
line2.attachMovie("dot2", "dot2" + last_pos, last_pos);
line2["dot2" + last_pos]._x = pos_array[Math.floor(last_pos / lineXishu)].x;
line2["dot2" + last_pos]._y = pos_array[Math.floor(last_pos / lineXishu)].y;
EndBall._x = pos_array[Math.floor(last_pos / lineXishu)].x;
EndBall._y = pos_array[Math.floor(last_pos / lineXishu)].y;
setGoal(10);
last_pos = last_pos + posXishu;
if (last_pos >= ((pos_array.length * lineXishu) - posXishu)) {
EndBall.removeMovieClip();
mouth.TX.gotoAndStop(1);
delete move_listener_mc.onEnterFrame;
mouth.attachMovie("shine2", "shine", 0);
levelUp_sound.start(0);
}
}
if (_root.unblack != undefined) {
_root.unblack = undefined;
}
var hold_mx = {};
hold_mx.num = 0;
Frame 8
function testClear() {
test_left.clear();
test_link_left.clear();
test_right.clear();
test_link_right.clear();
test_first.clear();
test_last.clear();
}
this.createEmptyMovieClip("sound_mc", 1);
this.createEmptyMovieClip("moveIn_sound_mc", 2);
this.createEmptyMovieClip("bg_sound_mc", 11);
this.createEmptyMovieClip("shoot_listener_mc", 3);
this.createEmptyMovieClip("move_listener_mc", 4);
this.createEmptyMovieClip("test_left", 5);
this.createEmptyMovieClip("test_right", 6);
this.createEmptyMovieClip("test_link_left", 7);
this.createEmptyMovieClip("test_link_right", 8);
this.createEmptyMovieClip("test_first", 9);
this.createEmptyMovieClip("test_last", 10);
this.createEmptyMovieClip("null_mc", 12);
Frame 9
function tgt_forward() {
if (!startplay) {
startplay = true;
}
var _local2 = 0;
for (var _local3 in tgt_mcs) {
if ((tgt_mcs[_local3]._x > 0) && (tgt_mcs[_local3]._x < 560)) {
if ((tgt_mcs[_local3]._y > 0) && (tgt_mcs[_local3]._y < 400)) {
_local2++;
}
}
}
if ((_local2 < _root["ballRollBackNum" + levelNum]) && (!setGameLevelStart)) {
if (((!((((EndBall._x > 0) && (EndBall._x < 560)) && (EndBall._y > 0)) && (EndBall._y < 400))) && ((String(_root.removeTxName).length == 0) || (_root.removeTxName == undefined))) && (!insert_bool)) {
tgt_speed = ballRollBackSpeeds;
}
}
if ((tgt_speed > 50) && (setGameLevelStart)) {
setGameLevelStart = null;
}
if (tgt_speed > min_speed) {
if ((_local2 < (_root["rollOutAllBall" + levelNum] - rollAllBallCutNum)) && (tgt_speed > 50)) {
tgt_speed = tgt_speed - speed_a;
} else if ((_local2 >= (_root["rollOutAllBall" + levelNum] - rollAllBallCutNum)) || ((((EndBall._x > 0) && (EndBall._x < 560)) && (EndBall._y > 0)) && (EndBall._y < 400))) {
tgt_speed = tgt_speed - speed_a;
setGameLevelStart = null;
}
} else if (((tgt_speed < min_speed) && (tgt_speed > (-posXishu))) && (!Allstop)) {
tgt_speed = tgt_speed + speed_a;
}
if ((firstBall.pos < -200) && (tgt_speed < 100)) {
if (!teBrak) {
tgt_speed = tgt_speed + Math.round(Math.abs(tgt_speed / 4));
}
}
if (tgt_speed < (speed_a * 2)) {
}
if (boom_bool) {
boom_lock_times++;
if (boom_lock_times >= boom_lock_total) {
boom_bool = false;
forward_bool = true;
tgt_speed = min_speed;
}
} else if (!forward_bool) {
if (forward_num < forward_num_total) {
goback_all_balls();
forward_num++;
} else {
forward_bool = true;
tgt_speed = min_speed;
}
} else if (firstBall) {
push_balls(firstBall, tgt_speed);
}
crt_new_ball();
if (insert_bool) {
tgt_insert_move();
}
if (!boom_bool) {
move_break();
}
check_fail();
if (gameTest) {
draw_test_line();
}
if (speedCheck) {
speed_listener.showSpeed();
}
levelTimes++;
}
function crt_new_ball() {
if (tgt_num < tgt_totalNum) {
if (firstBall._name != undefined) {
var _local1 = firstBall.pos;
if (_local1 > 0) {
if (tgt_speed < posXishu) {
if (_local1 >= posXishu) {
if (_local1 < (posXishu + tgt_speed)) {
firstBall = tgt_push_first(_local1 - posXishu, getNewType(firstBall.type), false);
} else {
firstBall = tgt_push_first(0, getNewType(firstBall.type), true);
}
}
} else {
firstBall = tgt_push_first(_local1 - posXishu, getNewType(firstBall.type), false);
if (firstBall.pos > posXishu) {
crt_new_ball();
}
}
}
} else {
firstBall = tgt_push_first(0, random(tgt_type) + 1);
}
setTgt_bar();
}
}
function tgt_push_first(pos, type, break_bool) {
var _local2 = tgt_mcs.attachMovie("targetBall", "_t" + tgt_depth, tgt_depth);
setTag(_local2, true);
if (type == 10) {
type = 1;
}
if (_root.blackandom == tgt_num) {
_local2.gotoAndStop(9);
_root.black_ball_mc = _local2;
_local2.type = 10;
randomhei1 = 0;
} else {
_local2.gotoAndStop(type);
_local2.type = type;
}
if (tgt_num == (tgt_totalNum - 1)) {
_local2.gotoAndStop(11);
_local2.type = 11;
EndBall = _local2;
}
_local2._x = pos_array[Math.floor(pos / lineXishu)].x;
_local2._y = pos_array[Math.floor(pos / lineXishu)].y;
if (flower_show_bool) {
} else {
_local2.cacheAsBitmap = true;
_local2.flower.roll_mc._visible = false;
}
_local2.goback_speed = 0;
_local2.goback_speed2 = 0;
_local2.pos = pos;
_local2.depth = tgt_depth;
_local2.removing = false;
_local2.checkTag = true;
tgt_depth++;
tgt_num++;
tgt_same_num++;
balls_num++;
type_num_array[type]++;
if (break_bool == false) {
_local2.right = firstBall;
_local2.left = undefined;
_local2.link_right = undefined;
_local2.link_left = undefined;
firstBall.left = _local2;
firstBall.link_left = undefined;
} else if (break_bool) {
_local2.right = undefined;
_local2.left = undefined;
_local2.link_right = firstBall;
_local2.link_left = undefined;
firstBall.left = undefined;
firstBall.link_left = _local2;
} else {
_local2.right = undefined;
_local2.left = undefined;
_local2.link_right = undefined;
_local2.link_left = undefined;
}
return(_local2);
}
function tgt_insert_start(obj, dir) {
teindir_sp = dir;
insert_times = 0;
if (dir == "left") {
move_left_ball = obj.left;
move_right_ball = obj;
insert_pos = obj.pos - (posXishu / 2);
} else if (dir == "right") {
move_left_ball = obj;
move_right_ball = obj.right;
insert_pos = obj.pos + (posXishu / 2);
}
if (spSuperType == 10) {
}
insert_bool = true;
}
function tgt_insert_move() {
if ((move_left_ball._name == undefined) && (move_right_ball._name == undefined)) {
ball.holder.removeMovieClip();
delete ball;
crt_mc.gotoAndPlay(2);
insert_bool = false;
} else {
if ((move_left_ball._name != undefined) && (move_right_ball._name != undefined)) {
insert_pos = Math.round((move_left_ball.pos + move_right_ball.pos) / 2);
} else if (move_left_ball._name != undefined) {
insert_pos = move_left_ball.pos + posXishu;
} else {
insert_pos = move_right_ball.pos - posXishu;
}
var _local2 = (pos_array[Math.floor(move_left_ball.pos / lineXishu) + 3].x + pos_array[Math.floor(move_left_ball.pos / lineXishu) + 2].x) / 2;
var _local1 = (pos_array[Math.floor(move_left_ball.pos / lineXishu) + 3].y + pos_array[Math.floor(move_left_ball.pos / lineXishu) + 2].y) / 2;
var _local3 = true;
ball.holder._x = ball.holder._x - ((ball.holder._x - _local2) / 3);
ball.holder._y = ball.holder._y - ((ball.holder._y - _local1) / 3);
if (teindir_sp == "left") {
ball.holder._rotation = ball.holder._rotation - 30;
} else {
ball.holder._rotation = ball.holder._rotation + 30;
}
insert_times++;
if (insert_times <= insert_total_times) {
push_balls(move_right_ball, insert_step);
pull_balls(move_left_ball, -insert_step);
}
if (insert_times == (insert_total_times + 2)) {
insert_bool = false;
tgt_insert_end(insert_type);
}
}
}
function tgt_insert_end(type) {
crtNewBall();
ball.holder.removeMovieClip();
delete ball;
var _local3 = tgt_mcs.attachMovie("targetBall", "_ts" + b_depth, b_depth);
setTag(_local3, false);
_local3.gotoAndStop(type);
_local3.type = type;
if (flower_show_bool) {
} else {
_local3.cacheAsBitmap = true;
_local3.flower.roll_mc._visible = false;
}
_local3.depth = b_depth;
_local3.pos = insert_pos;
_local3.removing = false;
_local3.checkTag = true;
_local3.goback_speed = 0;
_local3.goback_speed2 = 0;
updatePos(_local3, 0, true);
b_depth++;
balls_num++;
type_num_array[type]++;
if (move_left_ball._name != undefined) {
move_right_ball = move_left_ball.right;
}
if (move_right_ball._name != undefined) {
move_left_ball = move_right_ball.left;
}
if (move_left_ball.removing && (move_right_ball.removing)) {
balls_num--;
type_num_array[_local3.type];
myGrid.pop(_local3._x, _local3._y, _local3, "tgt_ball");
_local3.removeMovieClip();
} else {
if ((move_left_ball._name != undefined) && (move_right_ball._name != undefined)) {
_local3.left = move_left_ball;
_local3.right = move_right_ball;
_local3.link_right = undefined;
_local3.link_left = undefined;
move_left_ball.right = _local3;
move_left_ball.link_right = undefined;
move_right_ball.left = _local3;
move_right_ball.link_left = undefined;
} else if ((move_left_ball._name == undefined) && (move_right_ball._name != undefined)) {
_local3.left = undefined;
_local3.right = move_right_ball;
_local3.link_left = move_right_ball.link_left;
_local3.link_right = undefined;
move_right_ball.link_left.link_right = _local3;
move_right_ball.left = _local3;
move_right_ball.link_left = undefined;
if (move_right_ball == firstBall) {
firstBall = _local3;
} else {
if (_local3.type == _local3.link_left.type) {
_local3.goback_speed = init_goback_speed;
} else {
_local3.goback_speed = 0;
}
break_array_pop(move_right_ball);
break_array.push(_local3);
}
} else if ((move_left_ball._name != undefined) && (move_right_ball._name == undefined)) {
_local3.left = move_left_ball;
_local3.right = undefined;
_local3.link_left = undefined;
_local3.link_right = move_left_ball.link_right;
move_left_ball.link_right.link_left = _local3;
move_left_ball.right = _local3;
move_left_ball.link_right = undefined;
} else {
balls_num--;
type_num_array[_local3.type]--;
myGrid.pop(_local3._x, _local3._y, _local3, "tgt_ball");
_local3.removeMovieClip();
}
if (_local3.pos != undefined) {
if (_local3.right._name != undefined) {
align_left_balls(_local3.right);
}
if (_local3.left._name != undefined) {
align_right_balls(_local3.left);
}
if (insert_type == 7) {
this.attachMovie("sp1", "sp1", this.getNextHighestDepth(), {_x:_local3._x, _y:_local3._y});
_local3.type = 10;
checkRemove(_local3, 0);
subtract();
teBrak = 1;
forward_bool = false;
forward_num = -10;
goback_all_balls();
PropUse = false;
} else if (insert_type == 8) {
_local3.type = 10;
checkRemove(_local3, 0);
subtract();
} else if (insert_type == 9) {
this.attachMovie("sp2", "sp2", this.getNextHighestDepth(), {_x:_local3._x, _y:_local3._y});
_local3.type = 10;
checkRemove(_local3, 0);
subtract();
var teConte = 100;
this.onEnterFrame = function () {
Allstop = true;
teConte--;
if (!teConte) {
Allstop = false;
delete this.onEnterFrame;
}
};
PropUse = false;
}
if (_root.holdBall) {
checkRemove(_local3, 0);
subtract();
}
if (_root.jumpBall) {
checkRemove(_local3, 0);
} else {
checkRemove(_local3, initCanRemoveNum);
}
}
}
}
function checkRemove(obj, CanRemoveNum) {
var _local3 = [obj];
var _local5 = obj.right;
var _local4 = obj.left;
var _local13 = _local5.right;
var _local12 = _local4.left;
if (_root.jumpBall) {
if (_root.ooo > 0) {
_local3.unshift(_local4);
}
} else {
while (((_local5._name != undefined) && (obj.type == _local5.type)) && (!_local5.removing)) {
_local3.push(_local5);
_local5 = _local5.right;
}
while (((_local4._name != undefined) && (obj.type == _local4.type)) && (!_local4.removing)) {
_local3.unshift(_local4);
_local4 = _local4.left;
}
}
if (_root.ooo) {
_local3.shift();
}
if (_local3.length > CanRemoveNum) {
sp_xiqiu = true;
var _local7 = new Object();
_local7.tgt_remove_num = 0;
_local7.id = random(65535);
_local7.remove_array = _local3;
remove_arr_array[_local7.id] = _local7;
remove_sound.start(0);
i = 0;
while (i < _local3.length) {
_local3[i].remove_id = _local7.id;
myGrid.pop(_local3[i]._x, _local3[i]._y, _local3[i], "tgt_ball");
_local3[i].removing = true;
_local3[i].gotoAndPlay("remove");
i++;
}
if (_root.ball == undefined) {
_root.crtNewBall();
if (_root.holdBall) {
_root.holdBall = false;
holdBall_mc.attachMovie("hold_mc", "hold_mc", this.getDepth() + 1);
holdBall_mc.hold_mc._x = hold_mx.x;
holdBall_mc.hold_mc._y = hold_mx.y;
}
}
} else {
maxcomboTE = 0;
}
_root.number_num++;
if (_root.jumpBall) {
_root.ooo++;
if ((((_root.ooo < 6) && (_local4.left != _root.EndBall)) && (_local4.left != undefined)) && (_local4.left != firstBall)) {
checkRemove(_local4.left, 0);
subtract();
} else {
_root.ooo = 0;
_root.jumpBall = false;
}
}
if (PowerMC.hong._x >= -6) {
PowerMC.hong._x = -110;
PowerMC.hong2._x = -110;
}
var _local9 = _root.unblack == undefined;
var _local10 = (_root.black_ball_mc != undefined) && (_root.black_ball_mc != "");
var _local11 = ((_root.black_ball_mc.left._currentframe >= 13) && (_root.black_ball_mc.left._currentframe != undefined)) || (_root.black_ball_mc.left == undefined);
var _local8 = ((_root.black_ball_mc.right._currentframe >= 13) && (_root.black_ball_mc.right._currentframe != undefined)) || (_root.black_ball_mc.right == undefined);
if ((((_local9 && (_local10)) && (_local11)) && (_local8)) && (String(_root.black_ball_mc).length != 0)) {
_root.unblack = 1;
checkRemove(_root.black_ball_mc, 0);
delete _root.unblack;
}
}
function remove_movie_end(id) {
if (remove_arr_array[id].remove_array.length > (remove_arr_array[id].tgt_remove_num + 1)) {
remove_arr_array[id].tgt_remove_num++;
} else {
remove_ball(id);
}
}
function remove_one(obj) {
var _local1 = new Object();
_local1.tgt_remove_num = 0;
_local1.id = random(65535);
_local1.remove_array = [obj];
remove_arr_array[_local1.id] = _local1;
obj.remove_id = _local1.id;
obj.gotoAndPlay("remove_one");
obj.removing = true;
myGrid.pop(obj._x, obj._y, obj, "tgt_ball");
}
function remove_ball(id) {
var _local3 = remove_arr_array[id].remove_array;
delete remove_arr_array[id];
var _local12 = _local3[0];
var _local11 = _local3[_local3.length - 1];
var _local10 = _local12.left;
var _local9 = _local11.right;
if ((_local10._name == undefined) && (_local9._name == undefined)) {
_local12.link_left.link_right = _local11.link_right;
_local11.link_right.link_left = _local12.link_left;
if (_local12 == firstBall) {
firstBall = _local11.link_right;
}
} else if (_local10._name == undefined) {
_local9.left = undefined;
_local9.link_left = _local12.link_left;
_local9.link_left.link_right = _local9;
if (_local12 == firstBall) {
firstBall = _local9;
}
} else if (_local9._name == undefined) {
_local10.right = undefined;
_local10.link_right = _local11.link_right;
_local10.link_right.link_left = _local10;
} else {
_local10.right = undefined;
_local9.left = undefined;
_local10.link_right = _local9;
_local9.link_left = _local10;
}
setGoal(int(goal * _local3.length));
var _local13 = _root.attachMovie("appearPoint", "appearPoint" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local13._x = _local11._x;
_local13._y = _local11._y;
_local13.addItemPoint = goal * _local3.length;
getPower();
if (comboPD) {
maxcombonumTE = maxcombonumTE + _local3.length;
if (sp_xiqiu) {
combotol++;
maxcomboTE++;
}
if (maxcomboTE > 0) {
if (!combo) {
_root.attachMovie("combo", "combo", 10000);
combo._x = _local13._x;
combo._y = _local13._y;
} else {
combo.gotoAndPlay("disp");
}
setGoal(100 * combotol);
}
comboPD = false;
} else {
maxcomboTE = 0;
maxcombonumTE = _local3.length;
}
if (maxcomboTE > maxcombo) {
maxcombo = maxcomboTE;
}
if (maxcombonumTE > maxcombonum) {
maxcombonum = maxcombonumTE;
}
i = 0;
while (i < _local3.length) {
if (_local3[i].checkTag) {
if (_local3[i].tag == "bo") {
var _local6 = _local3[i].idnum;
var _local5 = _root.attachMovie("showTebieCartoon", "showTebieCartoon" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = _local3[i]._x;
_local5._y = _local3[i]._y;
_local5.pic.gotoAndStop(_local6);
var _local2 = 0;
while (_local2 < cha_arr.length) {
if ((_local6 == cha_arr[_local2]) && (cha_arr2[_local2] != 1)) {
if (cha_arr[_local2] == "h") {
_root.poop1.gotoAndStop(2);
} else if (cha_arr[_local2] == "o") {
_root.poop2.gotoAndStop(3);
} else if (cha_arr[_local2] == "n") {
_root.poop3.gotoAndStop(4);
} else if (cha_arr[_local2] == "e") {
_root.poop4.gotoAndStop(5);
} else if (cha_arr[_local2] == "y") {
_root.poop5.gotoAndStop(6);
}
cha_arr.splice(_local2, 1);
cha_arr2.splice(_local2, 1);
cha_has++;
}
if (cha_has >= 5) {
cha_has = 0;
cha_arr = ["h", "o", "n", "e", "y"];
cha_arr2 = [0, 0, 0, 0, 0];
re_back_func_();
_root.attachMovie("movieClassMC", "movieClassMC" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:158, _y:172});
next_leve_func();
break;
}
_local2++;
}
}
if (_local3[i].tag == "dir") {
dir_bool = true;
dir_num = 0;
dir_sound.start(0);
var _local4 = random(255);
tags_mc.attachMovie("dirs_mc", "tags" + _local4, _local4);
tags_mc["tags" + _local4]._x = _local3[i]._x;
tags_mc["tags" + _local4]._y = _local3[i]._y;
} else if (insert_type == 8) {
boom_bool = true;
boom_lock_times = 0;
ball_boom(_local3[i]);
boom_sound.start(0);
var _local4 = random(255);
tags_mc.attachMovie("booms", "tags" + _local4, _local4);
tags_mc["tags" + _local4]._x = _local3[i]._x;
tags_mc["tags" + _local4]._y = _local3[i]._y;
}
}
balls_num--;
type_num_array[_local3[i].type]--;
_local3[i].removeMovieClip();
i++;
}
if (_local9._name != undefined) {
if (_local9.type == _local9.link_left.type) {
comboPD = true;
_local9.goback_speed = init_goback_speed;
} else {
_local9.goback_speed = 0;
}
break_array.push(_local9);
sp_xiqiu = false;
}
}
function cheangball() {
if ((tgt_num >= tgt_totalNum) && (balls_num < 25)) {
while (((type_num_array[ball.type] == 0) && (balls_num != 0)) && (!superBall)) {
ball.type = random(tgt_type) + 1;
ball.holder.gotoAndStop(ball.type);
center_mc.nextBall2.type = ball.type;
center_mc.nextBall.type = ball.type;
center_mc.nextBall.gotoAndStop(ball.type);
center_mc.nextBall2.gotoAndStop(ball.type);
}
}
}
function cheangballHS() {
if (ball) {
var _local1 = ball.type;
tmp0_type = tmp_ball_ball_type_arr[0];
tmp1_type = tmp_ball_ball_type_arr[1];
tmp2_type = tmp_ball_ball_type_arr[2];
tmp_ball_ball_type_arr[0] = tmp2_type;
tmp_ball_ball_type_arr[1] = tmp0_type;
tmp_ball_ball_type_arr[2] = tmp1_type;
ball_type_change = true;
ball.holder.gotoAndStop(tmp_ball_ball_type_arr[0]);
center_mc.nextBall.gotoAndStop(tmp_ball_ball_type_arr[1]);
center_mc.nextBall2.gotoAndStop(tmp_ball_ball_type_arr[2]);
}
}
function move_break() {
var _local2;
i = 0;
while (i < break_array.length) {
_local2 = break_array[i];
if (_local2.link_left._name != undefined) {
var _local4;
if (_local2.type != _local2.link_left.type) {
_local4 = posXishu;
} else {
_local4 = posXishu - _local2.goback_speed;
}
if (mcDistance2(_local2, _local2.link_left) <= _local4) {
var _local3 = find_break_ball(_local2.link_left);
if (_local3 == firstBall) {
if (_local2.goback_speed2 == 0) {
tgt_speed = tgt_speed + Math.round(_local2.goback_speed * 0.6);
} else {
tgt_speed = tgt_speed + Math.round(_local2.goback_speed2 * 0.8);
}
tgt_speed = Math.max(tgt_speed, max_goback_speed);
} else if (_local2.goback_speed2 == 0) {
_local3.goback_speed2 = Math.round(_local2.goback_speed * 0.8);
} else {
_local3.goback_speed2 = Math.round(_local2.goback_speed2 * 0.8);
}
_local2.goback_speed = 0;
_local2.goback_speed2 = 0;
attach_sound.start(0);
break_array_pop(_local2);
_local2.left = _local2.link_left;
_local2.left.right = _local2;
_local2.link_left = undefined;
_local2.left.link_right = undefined;
if ((_local2.type == _local2.left.type) && (_root.jumpBall != true)) {
checkRemove(_local2, initCanRemoveNum);
}
while (_local2._name != undefined) {
_local2.pos = _local2.left.pos + posXishu;
_local2 = _local2.right;
}
} else if (_local2.type == _local2.link_left.type) {
push_balls(_local2, _local2.goback_speed);
_local2.goback_speed = _local2.goback_speed + (init_goback_speed * 0.8);
_local2.goback_speed = Math.max((-posXishu) * 1.2, _local2.goback_speed);
} else if (_local2.goback_speed2 < 0) {
push_balls(_local2, _local2.goback_speed2);
_local2.goback_speed2 = _local2.goback_speed2 + 5;
}
}
i++;
}
}
function check_break(obj) {
if ((obj.pos > 0) && (obj.pos < (pos_array.length * posXishu))) {
if (obj.link_left._name != undefined) {
if (mcDistance2(obj, obj.link_left) <= posXishu) {
obj.left = obj.link_left;
obj.left.right = obj;
obj.link_left = undefined;
obj.left.link_right = undefined;
break_array_pop(obj);
align_right_balls(ball2);
}
}
if (obj.link_right._name != undefined) {
if (mcDistance2(obj, obj.link_right) <= posXishu) {
obj.right = obj.link_right;
obj.right.left = obj;
obj.link_right = undefined;
obj.right.link_left = undefined;
break_array_pop(obj);
align_left_balls(ball2);
}
}
}
}
function lost_func2() {
lost_game_blo = false;
_level0.BOX_x.unloadMovie();
delete _root.BAllID;
delete move_listener_mc.onEnterFrame;
setLife(-1);
dir_mc.clear();
failMovie_mc.gotoAndPlay(3);
}
function check_fail() {
find_last();
if ((last_pos > (pos_array.length * lineXishu)) && (!last_ball.removing)) {
holdBall_mc.hold_mc.unloadMovie();
hold_mx.num = 0;
delete _root.holdBall;
_root.holdBall2 == false;
if (!gameOver) {
_level0.BOX_x.unloadMovie();
delete _root.BAllID;
gameZT = "\u5931\u8D25";
tgt_speed = 160;
min_speed = -10000;
tgt_totalNum = 0;
speed_a = speed_a * -1;
gameOver = true;
m_lock = true;
clearBall();
bg_sound.stop();
create_lost_Sound();
}
if (((_root.EndBall == firstBall) || (balls_num < 2)) || (lost_game_blo)) {
lost_game_blo = false;
_level0.BOX_x.unloadMovie();
delete _root.BAllID;
delete move_listener_mc.onEnterFrame;
lost_func2();
bg_sound.stop();
}
last_ball.left.right = undefined;
balls_num--;
type_num_array[last_ball.type]--;
myGrid.pop(last_ball._x, last_ball._y, last_ball, "tgt_ball");
last_ball.removeMovieClip();
} else if ((((((balls_num <= 2) && (_root.ball_number_n == 0)) && (_root.EndBall != undefined)) && (String(typeof(_root.EndBall.length) > 0))) && (_root.EndBall.right == undefined)) && (_root.EndBall.left == undefined)) {
if (balls_num == 2) {
var _local2 = [];
for (var _local3 in _level0.tgt_mcs) {
_local2.push(_level0.tgt_mcs[_local3]);
if (_local3.substr(2, 1) == "s") {
_level0.BOX_x.unloadMovie();
next_leve_func();
break;
}
}
if (_root.dis_func(_local2[0], _local2[1]) < 15) {
_level0.BOX_x.unloadMovie();
delete _root.BAllID;
gameZT = "\u5931\u8D25";
tgt_speed = 160;
min_speed = -10000;
tgt_totalNum = 0;
speed_a = speed_a * -1;
gameOver = true;
m_lock = true;
clearBall();
}
} else if (balls_num == 1) {
_level0.BOX_x.unloadMovie();
next_leve_func();
}
} else if (((balls_num <= 2) && (_root.ball_number_n == 0)) && (_root.EndBall.right._currentframe == 9)) {
holdBall_mc.hold_mc.unloadMovie();
hold_mx.num = 0;
delete _root.holdBall;
_root.holdBall2 == false;
if ((balls_num <= 1) && (_root.EndBall.right._currentframe == 9)) {
_level0.BOX_x.unloadMovie();
delete _root.BAllID;
next_leve_func();
} else if (((balls_num == 2) && (_root.EndBall.right._currentframe == 9)) && (String(_root.EndBall).length != 0)) {
_level0.BOX_x.unloadMovie();
delete _root.BAllID;
next_leve_func();
}
} else if ((((last_ball._name == undefined) && (firstBall._name == undefined)) || ((balls_num == 1) && (firstBall._name == EndBall._name))) && (tgt_num >= (tgt_totalNum - 1))) {
holdBall_mc.hold_mc.unloadMovie();
hold_mx.num = 0;
delete _root.holdBall;
_root.holdBall2 == false;
_level0.BOX_x.unloadMovie();
delete _root.BAllID;
gameZT = "\u8FC7\u5173";
win_sound_.start();
delete move_listener_mc.onEnterFrame;
superBall = false;
m_lock = true;
clearBall();
dir_mc.clear();
mouth.TX.play();
move_listener_mc.onEnterFrame = function () {
if (!game_pause) {
winMove();
}
};
var _local4 = 0;
cha_arr = ["h", "o", "n", "e", "y"];
cha_arr2 = [0, 0, 0, 0, 0];
}
lastBlackBall();
}
function getPower() {
if (PowerNum >= 10) {
return(undefined);
}
PowerNum++;
if (boom_num > 0) {
boom_num--;
PowerNum--;
if (PowerMC.hong._x < -6) {
PowerMC.hong._x = PowerMC.hong._x - -6;
PowerMC.hong2._x = PowerMC.hong2._x - -6;
}
}
if (PowerMC.hong._x < -6) {
PowerMC.hong._x = PowerMC.hong._x + PowerStup;
PowerMC.hong2._x = PowerMC.hong2._x + PowerStup;
}
}
function subtract() {
PowerNum--;
if (PowerMC.hong._x < -6) {
PowerMC.hong._x = PowerMC.hong._x - PowerStup;
PowerMC.hong2._x = PowerMC.hong2._x - PowerStup;
}
}
var EndBall;
var teindir_sp;
_root.ooo = 0;
var sp_xiqiu = false;
if (dd) {
_root.black_ball_mc._visible = false;
checkRemove(_root.black_ball_mc, 0);
}
var PowerStup = 12;
var PowerNum = 0;
Frame 10
function crtNewBall() {
center_mc.gotoAndPlay(2);
}
function crt_new() {
if (ball == undefined) {
if (tmp_ball_ball_type_arr != undefined) {
center_mc.nextBall.type = tmp_ball_ball_type_arr[1];
center_mc.nextBall2.type = tmp_ball_ball_type_arr[2];
}
var _local2 = center_mc.nextBall2.type;
if ((tgt_num >= tgt_totalNum) && (balls_num < 11)) {
while ((type_num_array[_local2] == 0) && (balls_num != 0)) {
_local2 = random(tgt_type) + 1;
}
}
superBall = false;
var _local4 = type_arr[random(type_arr.length)];
var _local5 = _local2;
ball = new Ball("attBall", 0, center_mc._x, center_mc._y, _local2);
_root.nowBall = ball;
canShoot = true;
shooting = false;
set_ball_pos(pos_r, center_mc._rotation * AtoR);
if (_root.jumpBall || (_root.boomBall)) {
superBall = false;
if (_root.boomBall) {
_root.boomBall = false;
} else if (_root.jumpBall) {
_root.jumpBall = false;
}
PowerNum = 0;
PowerMC.hong._x = -110;
PowerMC.hong2._x = -110;
}
if ((_root.holdBall == undefined) || (((((_root.holdBall2 == true) && (holdBall_mc.hold_mc != undefined)) && (_local2 == 12)) && (hold_mx.num == 0)) && (heidong_vnt > 1))) {
type_arr = [7, 9, 8, 12];
} else {
type_arr = [7, 8, 9];
}
if ((_root.jumpBall || (_root.boomBall)) || (_root.holdBall)) {
if (_root.boomBall) {
_root.boomBall = false;
} else if (_root.jumpBall) {
_root.jumpBall = false;
} else if (_root.holdBall) {
_root.holdBall = false;
}
PowerNum = 0;
PowerMC.hong._x = -110;
PowerMC.hong2._x = -110;
}
_local2 = random(tgt_type) + 1;
if (((tgt_num >= tgt_totalNum) && (balls_num < 11)) || (balls_num == 12)) {
while ((type_num_array[_local2] == 0) && (balls_num != 0)) {
_local2 = random(tgt_type) + 1;
}
}
if ((now_type_tmp_arr.length >= 0) && (now_type_tmp_arr[0] != undefined)) {
var _local3 = random(now_type_tmp_arr.length);
_local2 = now_type_tmp_arr[_local3];
}
if (PowerNum >= 8) {
_local2 = _local4;
PowerNum = 0;
PowerMC.hong._x = -110;
PowerMC.hong2._x = -110;
}
center_mc.nextBall2.type = center_mc.nextBall.type;
center_mc.nextBall2.gotoAndStop(center_mc.nextBall.type);
center_mc.nextBall.type = _local2;
center_mc.nextBall.gotoAndStop(_local2);
tmp_ball_ball_type_arr = [_local5, center_mc.nextBall.type, center_mc.nextBall2.type];
}
}
function set_ball_pos(w, rada) {
ball.x = center_mc._x + (w * Math.cos(rada));
ball.y = center_mc._y + (w * Math.sin(rada));
ball.holder._x = ball.x;
ball.holder._y = ball.y;
ball.holder.flower._rotation = center_mc._rotation;
}
function tgt_hitTest(obj) {
if (ball_type_change) {
ball_type_change = false;
obj.type = tmp_ball_ball_type_arr[0];
}
if (obj.type == 10) {
_root.jumpBall = true;
}
if (obj.type == 8) {
_root.boomBall = true;
}
if (obj.type == 12) {
_root.holdBall = true;
}
var _local8 = Math.floor(obj.y / grid_width);
attachBall = undefined;
var _local2 = 0;
var _local6 = 31;
for (var _local7 in tgt_mcs) {
var _local4 = obj.x - tgt_mcs[_local7]._x;
var _local3 = obj.y - tgt_mcs[_local7]._y;
_local2 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if ((_local2 < 30) && (_local2 <= _local6)) {
_local6 = _local2;
attachBall = tgt_mcs[_local7];
}
}
if (attachBall._currentframe > 12) {
attachBall.removeMovieClip;
attachBall = undefined;
}
if (attachBall != undefined) {
attachBall.shine.gotoAndPlay(2);
insert_type = obj.type;
if (attachBall.type == 11) {
insert_type = obj.type;
}
if (!superBall) {
attach_sound.start(0);
delete shoot_listener_mc.onEnterFrame;
if (attachBall.type == 11) {
tgt_insert_start(attachBall, "right");
} else if ((Math.atan2(obj.y - attachBall._y, obj.x - attachBall._x) % 360) <= (Math.atan2(center_mc._y - attachBall._y, center_mc._x - attachBall._x) % 360)) {
tgt_insert_start(attachBall, "left");
} else {
tgt_insert_start(attachBall, "right");
}
} else {
delete shoot_listener_mc.onEnterFrame;
attach_sound.start(0);
delete shoot_listener_mc.onEnterFrame;
if ((Math.atan2(obj.y - attachBall._y, obj.x - attachBall._x) % 360) <= (Math.atan2(center_mc._y - attachBall._y, center_mc._x - attachBall._x) % 360)) {
tgt_insert_start(attachBall, "left");
} else {
tgt_insert_start(attachBall, "right");
}
}
}
}
function shoot(x, y) {
center_mc.gotoAndPlay("shoot");
ball.holder.setMask(null);
var _local1;
_local1 = shootSpeed / Math.sqrt((x * x) + (y * y));
ball.dx = x * _local1;
ball.dy = y * _local1;
shoot_sound.start(0.1);
if (dir_bool) {
MballSD = 2;
} else {
MballSD = 1;
}
shoot_listener_mc.onEnterFrame = function () {
if (!game_pause) {
shootStep();
}
};
}
function shootStep() {
ball.x = ball.x + (ball.dx * MballSD);
ball.y = ball.y + (ball.dy * MballSD);
crtShadow();
if (ball.outOfScene()) {
clearBall();
if (!m_lock) {
crtNewBall();
}
} else if (mouth_start.pro_area.hitTest(ball.x, ball.y, true)) {
mouth_start.pro_area.gotoAndPlay(2);
pro_sound.start(0);
clearBall();
if (!m_lock) {
crtNewBall();
}
} else {
tgt_hitTest(ball);
}
if (attachBall == undefined) {
ball.x = ball.x + ball.dx;
ball.y = ball.y + ball.dy;
crtShadow();
if (ball.outOfScene()) {
clearBall();
if (!m_lock) {
crtNewBall();
}
} else if (mouth_start.pro_area.hitTest(ball.x, ball.y, true)) {
mouth_start.pro_area.gotoAndPlay(2);
pro_sound.start(0);
clearBall();
if (!m_lock) {
crtNewBall();
}
} else {
tgt_hitTest(ball);
}
}
ball.holder._x = ball.x;
ball.holder._y = ball.y;
updateAfterEvent();
}
function center_rotation() {
if ((!m_lock) && (!drag_center)) {
var _local1 = Math.atan2(_ymouse - center_mc._y, _xmouse - center_mc._x);
center_mc._rotation = _local1 * RtoA;
if (!shooting) {
set_ball_pos(pos_r, _local1);
setMotherDir(_local1);
}
}
}
function ballShoot() {
if ((canShoot && (!m_lock)) && (ball != undefined)) {
shoot(_xmouse - center_mc._x, _ymouse - center_mc._y);
shooting = true;
canShoot = false;
dir_mc.clear();
}
}
function crtShadow() {
if (ball_shadow && (ball.holder != undefined)) {
ball_shadowID--;
if (ball_shadowID <= 1) {
ball_shadowID = 800;
}
if (!superBall) {
ballScene.attachMovie("ball_shadow_mc", "sh_mc" + ball_shadowID, ball_shadowID);
ballScene["sh_mc" + ball_shadowID].c = new Color(ballScene["sh_mc" + ball_shadowID]);
ballScene["sh_mc" + ball_shadowID].c.setRGB(flower_array[ball.type - 1]);
} else {
ballScene.attachMovie("superball_shadow_mc", "sh_mc" + ball_shadowID, ball_shadowID);
}
ballScene["sh_mc" + ball_shadowID]._x = ball.x;
ballScene["sh_mc" + ball_shadowID]._y = ball.y;
}
}
shootSpeed = width * 0.6;
sceneWidth = 600;
sceneHeight = 450;
grid_width = 60;
pos_r = 36;
Ball.init(ballScene, shootSpeed, sceneWidth, sceneHeight, width, 20);
xNum = Math.ceil(sceneWidth / grid_width);
yNum = Math.ceil(sceneHeight / grid_width);
center_mc.nextBall._visible = false;
center_mc.nextBall.stop();
center_mc.nextBall2._visible = false;
center_mc.nextBall2.stop();
m_lock = false;
area = new Array();
i = 0;
while (i < xNum) {
area[i] = new Array();
j = 0;
while (j < yNum) {
area[i][j] = new Object();
area[i][j].tgt_ball = new Array();
j++;
}
i++;
}
myGrid = new Grid(grid_width, xNum, yNum, area);
var spSuperType;
type_arr = [7, 8, 9, 12];
Frame 11
function addVolume2(snd, _volume) {
snd.setVolume(_volume + snd.getVolume());
}
function change_Sound_arr(arr) {
}
function play_bg_snd(snd_str) {
if (bgSnd_bool) {
bg_sound.stop();
bg_sound.attachSound(snd_str);
bg_sound.start(0, 1000);
bg_sound.setVolume(20);
}
}
function rndPlay_bg_snd() {
if (bgSnd_bool) {
bg_sound.stop();
if ((levelNum % 7) == 1) {
bg_snd_array.shuffle(cnt % 7);
if (bg_snd_array[1] == tmp_array_num2) {
bg_snd_array.shift();
bg_snd_array.push(tmp_array_num);
}
}
tmp_array_num = bg_snd_array[0];
bg_snd_array.shift();
bg_snd_array.push(tmp_array_num);
tmp_array_num2 = bg_snd_array[0];
var _local1 = bg_snd_array[0];
bg_sound.attachSound(_local1);
bg_sound.start(0, 1000);
}
}
function snd_move_in_start() {
moveIn_sound.setVolume(150);
moveIn_sound.start(0, 20);
moveIn_sound_mc.onEnterFrame = function () {
snd_move_in();
};
}
function snd_move_in() {
if (moveIn_sound.getVolume() > 0) {
addVolume2(moveIn_sound, -2);
} else {
moveIn_sound.stop();
delete moveIn_sound_mc.onEnterFrame;
}
}
Sound_con = new Sound();
Sound_con.attachSound("move_in");
moveIn_sound = new Sound(moveIn_sound_mc);
moveIn_sound.attachSound("move_in");
shoot_sound = new Sound(sound_mc);
shoot_sound.attachSound("shoot");
attach_sound = new Sound(sound_mc);
attach_sound.attachSound("attach");
super_attach_sound = new Sound(sound_mc);
super_attach_sound.attachSound("super_attach");
remove_sound = new Sound(sound_mc);
remove_sound.attachSound("remove");
goback_sound = new Sound(sound_mc);
goback_sound.attachSound("goback");
boom_sound = new Sound(sound_mc);
boom_sound.attachSound("boom");
dir_sound = new Sound(sound_mc);
dir_sound.attachSound("dir");
levelUp_sound = new Sound(bg_sound_mc);
levelUp_sound.attachSound("levelUp");
level_pass = new Sound(bg_sound_mc);
level_pass.attachSound("pass");
bg_snd_array = ["bg_1", "bg_2", "bg_3", "bg_4"];
bg_sound = new Sound(bg_sound_mc);
bg_sound.setVolume(80);
var all_sound = ["moveIn_sound", "shoot_sound", "attach_sound", "super_attach_sound", "remove_sound", "goback_sound", "boom_sound", "dir_sound", "levelUp_sound", "bg_sound"];
Array.prototype.shuffle = function (pnum) {
if (pnum == undefined) {
pnum = 1;
}
var _local6 = 0;
while (_local6 < pnum) {
var _local5 = this.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = random(_local5);
var _local4 = this[_local2];
this[_local2] = this[_local3];
this[_local3] = _local4;
_local2++;
}
_local6++;
}
};
bg_snd_array.shuffle();
pro_sound = new Sound(sound_mc);
pro_sound.attachSound("pro");
Frame 12
function getCurve() {
pos_array[0].rotation = pos_array[1].rotation;
delete line.onEnterFrame;
line1.clear();
}
function clearUseDraw() {
board_use.save_btn._visible = false;
board_use.setup_btn._visible = false;
board_use.crt_road_btn._visible = false;
board_use.play_btn._visible = false;
delete line.onEnterFrame;
curvePos = 0;
line.clear();
line1.clear();
line2.clear();
}
function postoRoad(pos_array) {
mouth_start._x = pos_array[0].x;
mouth_start._y = pos_array[0].y;
mouth._x = pos_array[pos_array.length - 1].x;
mouth._y = pos_array[pos_array.length - 1].y;
line.clear();
line1.clear();
line2.clear();
line.lineStyle(road_width, road_color, road_alpha);
line2.lineStyle(road_center_width, road_center_color, road_center_alpha);
line.moveTo(pos_array[0].x, pos_array[0].y);
line2.moveTo(pos_array[0].x, pos_array[0].y);
i = 1;
while (i < pos_array.length) {
line.lineTo(pos_array[i].x, pos_array[i].y);
line2.lineTo(pos_array[i].x, pos_array[i].y);
i++;
}
line.cacheAsBitmap = true;
line1.cacheAsBitmap = true;
line2.cacheAsBitmap = true;
}
function show_pos(pos_array) {
var _local2 = new Array();
var _local3 = new Array();
_local2[0] = pos_array[0].x;
_local3[0] = pos_array[0].y;
i = 1;
while (i < pos_array.length) {
_local2[i] = pos_array[i].x - pos_array[i - 1].x;
_local3[i] = pos_array[i].y - pos_array[i - 1].y;
i++;
}
var _local4 = (String(_local2) + "|") + String(_local3);
return(_local4);
}
function set_pos(x_array, y_array) {
var _local1 = new Array();
_local1[0] = new Object();
_local1[0].x = x_array[0];
_local1[0].y = y_array[0];
i = 1;
while (i < x_array.length) {
_local1[i] = new Object();
_local1[i].x = x_array[i] + _local1[i - 1].x;
_local1[i].y = y_array[i] + _local1[i - 1].y;
i++;
}
return(_local1);
}
function readyPlay() {
pos_ID = 1;
mouth_start._x = pos_array[0].x;
mouth_start._y = pos_array[0].y;
mouth._x = pos_array[pos_array.length - 1].x;
mouth._y = pos_array[pos_array.length - 1].y;
i = 0;
while (i < pos_array.length) {
if (i < (pos_array.length - 1)) {
var _local2 = pos_array[i + 1].x - pos_array[i].x;
var _local1 = pos_array[i + 1].y - pos_array[i].y;
pos_array[i].rotation = Math.round(Math.atan2(_local1, _local2) * RtoA);
pos_array[i].dx = Math.round((_local2 / lineXishu) * 100) / 100;
pos_array[i].dy = Math.round((_local1 / lineXishu) * 100) / 100;
pos_array[i].dr = Math.round(((pos_array[i].rotation - pos_array[i - 1].rotation) / lineXishu) * 100) / 100;
} else {
pos_array[i].rotation = pos_array[i - 1].rotation;
pos_array[i].dx = 0;
pos_array[i].dy = 0;
pos_array[i].dr = 0;
}
pos_array[0].rotation = pos_array[1].rotation;
pos_array[0].dr = 0;
i++;
}
line.onEnterFrame = function () {
if (!game_pause) {
var _local1 = 0;
while (_local1 < 4) {
readyPlay2();
_local1++;
}
}
};
}
function readyPlay2() {
line.attachMovie("dot", "dot" + pos_ID, pos_ID);
line["dot" + pos_ID]._x = pos_array[pos_ID].x;
line["dot" + pos_ID]._y = pos_array[pos_ID].y;
pos_ID++;
if (pos_ID >= (pos_array.length - 1)) {
delete line.onEnterFrame;
speed_listener.initSpeed();
play();
}
}
var pos_ID = 0;
Frame 13
function initLevelPara(para) {
setGameLevelStart = true;
tgt_type = para.tgt_type;
tgt_totalNum = para.tgt_totalNum;
tgt_speed = para.tgt_speed;
min_speed = para.min_speed;
speed_a = para.speed_a;
speed_a = 4;
type_num_array = new Array();
i = 1;
while (i <= tgt_type) {
type_num_array[i] = 0;
i++;
}
tgt_same_base = para.tgt_same_base;
tgt_same_change = para.tgt_same_change;
tgt_same_total = tgt_same_base + random(tgt_same_change);
tgt_same_num = 0;
tagTime = para.tagTime;
superBall_rnd = para.superBall_rnd;
shooting = false;
levelTimes = 0;
}
function show_para(_para) {
for (name in _para) {
}
}
function show_centerPos(pos) {
}
function traceRoad(road) {
show_pos(road.road);
show_para(road.para);
show_centerPos(road.center_pos);
}
function initMovie() {
for (var _local2 in tgt_mcs) {
}
clearAll();
center_mc.nextBall._visible = true;
center_mc.nextBall.type = random(tgt_type) + 1;
center_mc.nextBall.gotoAndStop(center_mc.nextBall.type);
center_mc.nextBall2._visible = true;
center_mc.nextBall2.type = random(tgt_type) + 1;
center_mc.nextBall2.gotoAndStop(center_mc.nextBall2.type);
crtNewBall();
snd_move_in_start();
crt_new_ball();
last_ball = firstBall;
move_listener_mc.onEnterFrame = function () {
if (!game_pause) {
if (Key.isDown(32) && (!KEYtemp)) {
if (_root.beijingGK.hitTest(_root.beijingGK._xmouse, _root.beijingGK._ymouse, false)) {
_root.cheangballHS();
KEYtemp = true;
}
} else if ((!Key.isDown(32)) && (KEYtemp)) {
KEYtemp = false;
}
tgt_forward();
}
};
}
function setPara_default() {
firstBall = undefined;
last_ball = undefined;
gameOver = false;
m_lock = false;
boom_bool = false;
forward_bool = true;
forward_num = 0;
dir_bool = false;
dir_num = 0;
dir_num_total = 500;
boom_bool = false;
boom_lock_times = 0;
tgt_num = 0;
tgt_depth = 100;
b_depth = 1000;
balls_num = 0;
remove_arr_array = new Array();
break_array = new Array();
remove_num = 0;
last_pos = 0;
i = 0;
while (i < xNum) {
area[i] = new Array();
j = 0;
while (j < yNum) {
area[i][j] = new Object();
area[i][j].tgt_ball = new Array();
j++;
}
i++;
}
myGrid = new Grid(grid_width, xNum, yNum, area);
}
function initShoot() {
center_mc._x = center_bg._x;
center_mc._y = center_bg._y;
center_bg.move_btn._visible = false;
shoot_btn.useHandCursor = false;
center_mc.onMouseMove = function () {
if (!game_pause) {
center_rotation();
updateAfterEvent();
}
};
shoot_btn.onPress = function () {
if (!game_pause) {
if (ball != undefined) {
maxcomboTE = 0;
ballShoot();
} else if ((_root._currentframe > 15) && (_root.gameOver == false)) {
crtNewBall();
}
}
};
}
function clearAll() {
clearBall();
clearTgtBall();
}
function clearBall() {
delete now_type_tmp_arr;
delete shoot_listener_mc.onEnterFrame;
ball.holder.removeMovieClip();
delete ball;
}
function clearDraw() {
line.clear();
line2.clear();
dir_mc.clear();
}
function show_mainMc(bool) {
if (bool) {
center_mc._x = center_bg._x;
center_mc._y = center_bg._y;
center_bg.move_btn._visible = false;
}
center_mc._visible = bool;
center_bg._visible = bool;
mouth_start._visible = bool;
mouth._visible = bool;
}
function saveToLocal() {
if (pos_array.length > 1) {
if (road_name != "") {
board_save.road_name = road_name;
} else {
board_save.road_name = "user_" + random(65535);
}
closeAllBoard();
openBoard(board_save);
Selection.setFocus(board_save.roadName);
}
}
function openBoard(board) {
board.swapDepths(100);
center_bg.move_btn._visible = false;
road_btn.enabled = false;
board._visible = true;
}
function closeBoard(board) {
topMenu.swapDepths(topMenu.init_depth);
center_bg.move_btn._visible = true;
road_btn.enabled = true;
board._visible = false;
board._x = board.initx;
board._y = board.inity;
board.myicon.gotoAndStop(1);
}
function closeAllBoard() {
closeBoard(board_save);
closeBoard(board_open);
closeBoard(board_setup);
}
function levelRun(levleTitle, level_num, bg_snd) {
for (var _local2 in _root.tgt_mcs) {
}
old_levelNum = levelNum;
levelNum = level_num;
setLevel(levleTitle);
goal_total_mc.getNum(goal_total, goal_total_mc.obj, "mynum", 12);
life_mc.getNum(life, life_mc.obj, "mynum", 12);
setTgt_bar();
center_bg._x = pos.x;
center_bg._y = pos.y;
pos_array = new Array();
pos_array = set_pos(x_array, y_array, r_array);
setPara_default();
initLevelPara(para);
readyPlay();
show_mainMc(true);
m_lock = false;
rndPlay_bg_snd();
}
function openWin(win) {
win.swapDepths(100);
win._visible = true;
noclick_btn._visible = true;
}
function closeWin(win) {
win._visible = false;
win._x = win.initx;
win._y = win.inity;
win.myicon.gotoAndStop(1);
noclick_btn._visible = false;
}
var KEYtemp = false;
clearLine = function () {
line.cacheAsBitmap = false;
line1.cacheAsBitmap = false;
line2.cacheAsBitmap = false;
line.clear();
line2.clear();
crtLine = false;
};
clearTgtBall = function () {
delete move_listener_mc.onEnterFrame;
for (name in tgt_mcs) {
if (name == _root.EndBall._name) {
continue;
}
if (typeof(tgt_mcs[name]) == "movieclip") {
tgt_mcs[name].removeMovieClip();
}
}
};
setFlower = function () {
for (name in tgt_mcs) {
if (typeof(tgt_mcs[name]) == "movieclip") {
tgt_mcs[name].flower.roll_mc._visible = flower_show_bool;
tgt_mcs[name].colors = new Color(tgt_mcs[name].flower.roll_mc);
tgt_mcs[name].colors.setRGB(flower_array[tgt_mcs[name].type - 1]);
}
}
};
Frame 14
function getTB() {
var _local2 = random(4) + 1;
TBMC.attachMovie("tebie", "tebie" + TBMC.getNextHighestDepth(), TBMC.getNextHighestDepth(), {_x:_root.beijingGK["st" + _local2]._x, _y:_root.beijingGK["st" + _local2]._y});
}
function ShootTebie(type) {
tebie[type - 1] = 1;
var _local3 = true;
var _local2 = 0;
while (_local2 < tebie.length) {
if (tebie[_local2] == 0) {
_local3 = false;
break;
}
_local2++;
}
if (_local3) {
_root.attachMovie("movieClassMC", "movieClassMC" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:158, _y:172});
_root.setGoal(400);
_root.next_leve_func();
tebie = [0, 0, 0, 0, 0];
}
}
_root.createEmptyMovieClip("TBMC", _root.getNextHighestDepth());
var tebie = [0, 0, 0, 0, 0];
var GamePassAll = false;
var MballSD = 1;
start_game();
clearAll();
clearLine();
level_select_bool = true;
var score = 0;
goal_total = 0;
mask._alpha = 100;
initShowPara();
noclick_btn._visible = false;
noclick_btn.useHandCursor = false;
play_btn.onRelease = function () {
nextFrame();
};
setUp_btn.onRelease = function () {
openWin(win_setup);
};
stop();
var item_modified;
var HQdaoju = true;
var propNums = 0;
Frame 15
function selectLevel(mc) {
levelNum = mc.id;
level_selected._x = mc._x;
level_selected._y = mc._y;
}
chch(100);
Key.removeListener(key_listener);
start_sound_.stop();
stop();
MballSD = 1;
_root.ball.holder.removeMovieClip();
var PropUse = true;
var startplay = false;
noclick_btn._visible = false;
noclick_btn.useHandCursor = false;
propNums = propNums + int(item_modified);
if (propNums > 5) {
propNums = 5;
}
item_modified = "0";
drawItem();
life = 1;
goal_total = score;
Set("\u4E0A\u4E00\u534A\u5206\u6570", te\u4E0A\u4E00\u534A\u5206\u6570);
Set("\u4E0B\u4E00\u534A\u5206\u6570", te\u4E0B\u4E00\u534A\u5206\u6570);
guansu.gotoAndStop(levelNum);
guansu.guanshuText.text = ("Level:" + levelNum) + "/20";
var maxcomboTE = 0;
var maxcombo = 0;
var comboPD = false;
var maxcombonum = 0;
var maxcombonumTE = 0;
var combotol = 0;
beijingGK.gotoAndStop(levelNum);
var gameZT = "\u6B63\u5E38";
if (level_select_bool) {
var i = 1;
while (i <= levelTotal) {
this["lel" + i].id = i;
if (so.data.level_success[i - 1]) {
this["lel" + i].gotoAndStop(3);
}
i++;
}
} else {
startBtn_text.gotoAndStop(2);
level_selected.gotoAndStop(2);
var i = 1;
while (i < levelNum) {
this["lel" + i].gotoAndStop(2);
i++;
}
}
level_selected._x = this["lel" + levelNum]._x;
level_selected._y = this["lel" + levelNum]._y;
level_select_bool = false;
Instance of Symbol 821 MovieClip "pass_bnt" in Frame 15
on (press) {
var c = this._currentframe;
if (_root.SoundStop) {
_root.Sound_con.setVolume(0);
this.gotoAndStop(2);
} else if (_root.SoundStop == false) {
_root.SoundStop = false;
_root.Sound_con.setVolume(100);
this.gotoAndStop(1);
}
}
on (rollOver) {
this.an.gotoAndStop(2);
}
on (rollOut) {
this.an.gotoAndStop(1);
}
Frame 16
x_array = [463, -3, -3, -3, -3, -4, -3, -8, -11, -14, -14, -14, -15, -14, -14, -14, -15, -14, -14, -14, -15, -14, -15, -14, -14, -14, -14, -12, -12, -11, -12, -8, -4, -5, -4, -5, -2, -3, -2, 0, 1, 0, 4, 3, 4, 8, 9, 8, 12, 13, 13, 13, 14, 14, 13, 14, 15, 14, 14, 15, 14, 15, 14, 15, 14, 14, 14, 14, 12, 12, 12, 9, 4, 2, 3, 3, -2, -3, -2, -4, -5, -6, -8, -9, -10, -11, -12, -13, -13, -14, -15, -14, -14, -15, -14, -14, -15, -14, -14, -14, -13, -11, -9, -7, -6, -4, -2, -1, 0, 3, 5, 7, 10, 10, 9, 11, 13, 13, 14, 14, 14, 14, 15, 14, 14, 14, 13, 11, 8, 4, 3, 1, 0, -2, -3, -4, -6, -9, -11, -12, -14, -14, -14, -15, -14, -14, -14, -13, -12, -8, -2, -3];
y_array = [-46, 14, 14, 14, 14, 14, 14, 12, 9, 5, 3, -2, -3, -3, -2, -2, -2, -2, -3, 0, 0, 0, 0, 4, 4, 4, 4, 8, 9, 8, 9, 12, 14, 14, 14, 13, 14, 15, 14, 14, 15, 14, 14, 14, 14, 12, 12, 11, 8, 6, 7, 6, 4, 5, 4, 1, 1, 1, -1, -1, -1, -1, -1, -1, -4, -4, -5, -4, -8, -9, -8, -12, -14, -14, -14, -14, -14, -15, -14, -14, -14, -13, -12, -11, -11, -9, -8, -7, -5, -4, -2, -2, -1, -1, -2, -1, 1, 3, 4, 4, 7, 9, 11, 13, 13, 14, 15, 14, 15, 14, 14, 12, 11, 11, 11, 9, 8, 4, 4, 4, 4, 1, -1, -3, -4, -3, -7, -9, -12, -14, -14, -15, -14, -15, -14, -14, -13, -12, -9, -8, -5, -3, -1, -2, -1, 2, 4, 7, 8, 12, 14, 14];
para = new Object();
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 40;
}
randomhei1 = random(para.tgt_totalNum);
para.tgt_speed = tgt_speedClass1;
para.min_speed = speedStartNum1;
para.speed_a = 9;
para.tgt_type = 4;
para.tgt_same_base = 1;
para.tgt_same_change = 3;
para.tagTime = 20;
para.superBall_rnd = 999;
pos = new Object();
pos.x = 280;
pos.y = 240;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("1-1", 1, "bg01");
stop();
Instance of Symbol 910 MovieClip "center_mc" in Frame 16
onClipEvent (load) {
_parent.initShoot();
}
Instance of Symbol 1017 MovieClip "pause_mc" in Frame 16
on (press) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.topMenu.game_pause(true);
}
}
Frame 17
initMovie();
stop();
Frame 21
x_array = [597.25, -13.25, -13, -13, -13, -13, -14, -15, -14, -12, -10, -10, -9, -9, -9, -10, -9, -12, -13, -14, -15, -14, -14, -14, -14, -15, -14, -14, -14, -13, -14, -13, -13, -12, -12, -10, -10, -9, -9, -8, -9, -7, -4, -2, 0, 3, 3, 4, 3, 5, 8, 9, 9, 9, 9, 12, 14, 13, 14, 14, 14, 15, 14, 15, 14, 15, 14, 14, 13, 11, 6, -3, -12, -14, -14, -14, -14, -14, -14, -15, -14, -15, -11, -11, -11, -8, -9, 1, 2, 7, 6, 11, 12, 11, 14, 13, 14, 14, 15, 13, 12, 13, 15, 10];
y_array = [292.75, -6.75, -6, -6, -6, -6, -3, 1, 4, 8, 10, 11, 11, 11, 12, 11, 11, 8, 6, 3, 3, 2, 2, 3, 3, -3, -3, -5, -5, -4, -5, -6, -7, -8, -9, -9, -11, -11, -12, -12, -12, -13, -14, -14, -15, -14, -14, -14, -14, -13, -13, -11, -12, -11, -11, -8, -5, -5, -5, -5, -1, 0, 0, 0, 3, 2, 3, 5, 5, 10, 13, 14, 9, 0, -3, -4, -3, -4, 1, 0, 1, 0, 9, 10, 9, 12, 12, 14, 15, 13, 13, 9, 9, 9, 5, 5, 5, 2, 2, -7, -7, -7, -10, -16];
para = new Object();
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 80;
}
randomhei1 = random(para.tgt_totalNum);
para.tgt_speed = tgt_speedClass1;
para.min_speed = speedStartNum1;
para.speed_a = 9;
para.tgt_type = 4;
para.tgt_same_base = 1;
para.tgt_same_change = 3;
para.tagTime = 20;
para.superBall_rnd = 999;
pos = new Object();
pos.x = 260;
pos.y = 160;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("1-2", 2, "bg01");
stop();
Frame 22
initMovie();
stop();
Frame 26
x_array = [623, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -13, -13, -13, -13, -13, -14, -13, -13, -13, -13, -13, -14, -13, -13, -13, -13, -13, -14, -12, -13, -12, -13, -13, -12, -13, -12, -13, -12, -13, -13, -12, -13, -12, -13, -8, -1, 6, 11, 14, 14, 12, 12, 13, 12, 13, 12, 12, 13, 12, 13, 12, 12, 13, 14, 15, 13, 13, 14, 13, 13, 13, 14, 13, 13, 13, 14, 13, 13, 13, 14, 7, -2, -10, -12, -14, -14, -13, -14, -13, -13, -13, -14, -13, -13, -13, -13, -14, -13, -14, -15, -12, -12, -13, -12, -12, -12, -12, -12, -5, 5, 9, 10, 12];
y_array = [258, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 6, 6, 6, 6, 6, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, -5, -7, -7, -8, -7, -7, -7, -7, -8, -7, -7, -7, -7, -8, -7, -7, -7, -12, -15, -13, -9, -5, 5, 7, 8, 7, 8, 8, 7, 8, 7, 8, 7, 8, 7, 8, 0, 1, -6, -6, -6, -6, -6, -6, -5, -6, -6, -6, -6, -6, -6, -6, -6, -13, -14, -10, -8, -2, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, -3, -7, -8, -8, -8, -8, -8, -8, -8, -14, -13, -11, -11, -11];
para = new Object();
para.superBall_rnd = 999;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 4;
para.speed_a = 9;
para.min_speed = speedStartNum1;
para.tgt_speed = tgt_speedClass1 + 70;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 90;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 272.7;
pos.y = 94.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("1-3", 3, "bg01");
stop();
Frame 27
initMovie();
stop();
Frame 31
x_array = [634, 12, 12, 12, 12, 12, 12, 12, 12, 12, 9, 4, -1, -2, -2, -1, -2, -1, -2, -2, -1, -2, -7, -10, -14, -14, -14, -12, -10, -11, -9, -9, -14, -13, -10, -13, -13, -13, -12, -13, -13, -13, -13, -14, -13, -14, -14, -14, -14, -14, -14, -14, -14, -15, -14, -15, -14, -14, -14, -15, -14, -15, -14, -14, -15, -14, -14, -14, -14, -12, -12, -11, -11, -10, -8, -9, -8, -8, -4, 1, 6, 10, 13, 15, 14, 11, 8, 7, 7, 7, 7, 9, 10, 11, 13, 13, 14, 14, 14, 14, 15, 14, 15, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 8, 7, 6, 3, 2, 0, -2, -5, -6, -8, -10, -11, -13, -13, -14, -15, -14, -15, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14];
y_array = [24, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12, 14, 14, 14, 15, 14, 15, 14, 15, 14, 14, 15, 13, 10, 5, 1, -5, -8, -10, -10, -11, -12, -4, 5, 11, 7, 6, 7, 7, 7, 6, 7, 6, 5, 5, 4, 4, 5, 4, 4, 4, 3, 2, 2, 2, 2, 1, 2, 1, 0, 0, -2, -2, -2, -3, -2, -2, -4, -5, -7, -8, -9, -10, -11, -12, -12, -12, -12, -14, -14, -14, -10, -7, -1, 4, 8, 12, 13, 12, 13, 13, 12, 10, 9, 7, 5, 5, 5, 3, 2, 1, -1, -3, -3, -3, -4, -3, -3, -5, -6, -8, -9, -11, -12, -12, -14, -14, -14, -14, -15, -14, -13, -12, -10, -9, -8, -6, -3, -2, 1, 2, 4, 4, 3, 4, 4, 3, 4, 3, 4, 4];
para = new Object();
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 100;
}
randomhei1 = random(para.tgt_totalNum);
para.tgt_speed = tgt_speedClass1;
para.min_speed = speedStartNum1;
para.speed_a = 9;
para.tgt_type = 5;
para.tgt_same_base = 1;
para.tgt_same_change = 3;
para.tagTime = 20;
para.superBall_rnd = 999;
pos = new Object();
pos.x = 320;
pos.y = 185;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("1-4", 4, "bg01");
stop();
Frame 32
initMovie();
stop();
Frame 36
x_array = [168, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 12, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 14, 13, 11, 9, 3, -4, -10, -14, -14, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -14, -11, -7, -3, 5, 11, 14, 15, 14, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 14, 14, 11, 6, 1, 1, 0, 0, 1, 0, -5, -10, -13, -14, -14, -12, -9, -5, -3, -3, -7, -10, -13, -14, -14, -15, -14, -15, -14, -15, -14, -15, -14, -14, -13, -11, -9, -7];
y_array = [-82, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 7, 1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 3, 7, 9, 12, 14, 14, 11, 5, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 5, 9, 13, 14, 14, 9, 2, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 4, 5, 10, 13, 14, 15, 14, 15, 14, 15, 14, 10, 7, 1, -3, -9, -12, -13, -14, -15, -13, -10, -7, -3, 0, 0, 0, 0, 0, 0, 1, 0, 0, 3, 7, 9, 11, 11];
para = new Object();
para.superBall_rnd = 999;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 5;
para.speed_a = 9;
para.min_speed = speedStartNum1;
para.tgt_speed = tgt_speedClass1 + 50;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 120;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 243.7;
pos.y = 363.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("1-5", 5, "bg01");
stop();
Frame 37
initMovie();
stop();
Frame 41
x_array = [366, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, -10, 0, 4, 0, 1, 0, 0, 1, 0, 0, 1, 9, 13, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 14, 14, 8, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, -10, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -10, 0, 0, 0, 0, 0, 0, -10, -15, -14, -15, -14, -15, -14, -12, -8, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 8, 13, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 15];
y_array = [-62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 15, 14, 14, 15, 14, 15, 14, 15, 14, 15, 12, 4, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 12, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 10, 3, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, -10, -15, -14, -15, -14, -15, -14, -10, -1, 0, 0, 0, -1, 0, 7, 13, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 12, 7, 0, -1, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0];
para = new Object();
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
para.tgt_speed = tgt_speedClass1 + 20;
para.min_speed = speedStartNum1;
para.speed_a = 9;
para.tgt_type = 6;
para.tgt_same_base = 1;
para.tgt_same_change = 3;
para.tagTime = 20;
para.superBall_rnd = 152;
pos = new Object();
pos.x = 309.7;
pos.y = 195.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-1", 6, "bg01");
stop();
Frame 42
initMovie();
stop();
Frame 46
x_array = [198, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 12, 3, -8, -14, -14, -14, -14, -14, -12, -3, 4, 2, 0, -1, -4, -6, -9, -11, -12, -14, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -14, -10, -7, -1, 3, 5, 11, 13, 15, 14, 15, 14, 15, 14, 13, 9, 4, -1, -6, -6, -13, -14, -15, -14, -15, -14, -14, -13, -12, -9, -4, 0, 5, 7, 7, 8, 12, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 14, 13, 11, 10, 6, 3, 2, 4, 5, 8, 11, 12, 14, 16];
y_array = [-75, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 8, 14, 12, 3, -5, -3, -3, -3, 8, 14, 14, 14, 15, 14, 14, 13, 12, 9, 8, 4, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 5, 10, 13, 14, 14, 14, 10, 4, 1, 0, 0, 1, 0, 1, 7, 11, 14, 14, 13, 13, 7, 1, 1, 1, 2, 4, 5, 6, 8, 12, 13, 15, 13, 13, 12, 13, 8, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, -5, -6, -9, -11, -13, -14, -15, -14, -13, -13, -10, -7, -3, -2];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 9;
para.min_speed = speedStartNum1;
para.tgt_speed = tgt_speedClass1 + 10;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 281.7;
pos.y = 171.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-2", 7, "bg01");
stop();
Frame 47
initMovie();
stop();
Frame 51
x_array = [-158, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 12, 10, 11, 11, 10, 11, 11, 10, 11, 11, 10, 11, 11, 10, 11, 11, 10, 11, 10, 11, 13, 15, 14, 12, 11, 10, 11, 10, 11, 11, 10, 11, 10, 11, 10, 11, 10, 11, 11, 10, 8, 3, -8, -15, -12, -6, -11, -10, -11, -10, -11, -10, -11, -11, -10, -11, -10, -11, -10, -13, -14, -15, -12, -11, -10, -11, -11, -11, -10, -11, -11, -10, -11, -11, -10, -11, -11, -11, -10, -3, 5, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 13, 10, -1, -11, -11, -12, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15];
y_array = [298, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 0, 1, 0, -5, -10, -10, -11, -10, -11, -11, -10, -11, -10, -11, -10, -11, -10, -11, -10, -11, -11, -10, -11, -10, -7, -2, 4, 10, 10, 11, 11, 10, 11, 11, 10, 11, 10, 11, 11, 10, 11, 11, 10, 11, 13, 15, 12, 3, -8, -14, -11, -10, -11, -11, -10, -11, -11, -10, -11, -10, -11, -11, -10, -8, -4, 2, 9, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 15, 14, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, -7, -11, -15, -10, -9, -10, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0];
para = new Object();
para.superBall_rnd = 150;
randomhei1 = random(para.tgt_totalNum);
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 8;
para.min_speed = speedStartNum2;
para.tgt_speed = tgt_speedClass2 + 50;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
pos = new Object();
pos.x = 296.7;
pos.y = 207.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-3", 8, "bg01");
stop();
Frame 52
initMovie();
stop();
Frame 56
x_array = [43, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 12, 6, -2, -2, -3, -2, -3, -7, -10, -12, -14, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -14, -14, -12, -10, -9, -5, -4, -1, 0, 1, 0, 1, 0, 0, 1, 4, 6, 9, 10, 13, 13, 14, 14, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 14, 9, 1, 0, 1, 1, 9, 15, 14, 15, 14, 15, 14, 15, 13, 9, 3, 0, 0, 0, -10, -14, -15, -14, -15, -14, -15, -14, -15, -14, -14, -13, -9, 0, -10, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -14, -11, -7, -1, -1, 0, 0, 0, 0];
y_array = [471, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -8, -13, -14, -15, -14, -14, -14, -13, -10, -8, -4, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, -3, -5, -8, -10, -12, -13, -14, -14, -15, -14, -15, -14, -15, -14, -15, -14, -13, -12, -9, -8, -5, -4, -4, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 4, 11, 15, 14, 15, 14, 11, 3, 0, 0, -1, 0, 0, -1, 6, 11, 14, 15, 14, 15, 11, 0, 0, 0, 1, 0, 0, 0, 0, 0, 5, 4, 12, 14, 10, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, -1, 0, -3, -4, -9, -13, -14, -15, -14, -15, -14, -14];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 8;
para.min_speed = speedStartNum2;
para.tgt_speed = tgt_speedClass2 + 50;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 285.7;
pos.y = 173.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 9, "bg01");
stop();
Frame 57
initMovie();
stop();
Frame 61
x_array = [-55, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 3, 5, 4, 5, 10, 12, 15, 14, 12, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 12, 6, 0, -2, -3, -9, -13, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -15, -14, -11, -7, -3, 1, 0, 0, 0, 0, 1, 0, 0, 6, 11, 13, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 14, 15, 13, 10, 4, 0, 1, 0, 1, 7, 11, 14, 14, 15, 14, 15, 14, 15, 14, 13, 8, 1, -6, -11, -14, -15, -14, -15, -14, -14];
y_array = [-2, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 11, 7, 2, -3, -7, -3, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, -1, 0, 0, -2, -3, -9, -13, -14, -15, -14, -11, -7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5, -9, -13, -14, -15, -14, -15, -14, -15, -14, -15, -14, -13, -10, -4, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 6, 11, 13, 14, 15, 14, 15, 13, 9, 4, 0, -1, 0, -1, 0, -1, 0, 7, 12, 15, 13, 10, 3, 0, 0, 0, 0, 0];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 8;
para.min_speed = speedStartNum2;
para.tgt_speed = tgt_speedClass2 + 60;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 283.7;
pos.y = 173.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 10, "bg01");
stop();
Frame 62
initMovie();
stop();
Frame 65
para = new Object();
x_array = [-109, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, 8, 12, 15, 14, 14, 15, 14, 15, 14, 14, 14, 13, 14, 12, 7, 8, 7, 7, 8, 7, 13, 14, 12, 5, -3, -7, -7, -8, -7, -7, -8, -7, -8, -7, -5, -3, 0, 0, 1, 5, 8, 11, 12, 11, 12, 12, 12, 12, 11, 14, 14, 14, 11, 3, -7, -13, -13, -14, -13, -13, -13, -10, -5, 1, 6, 12, 15, 13, 12, 13, 13, 13, 13, 13, 14, 13, 13, 13, 14, 15, 14, 14, 13, 11, 8, 7, 7, 6, 7, 3, 0, -4, -7, -7, -10, -12, -12, -12, -12, -12, -12];
y_array = [-37, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 12, 8, 3, 2, 2, 2, 1, 2, 4, 4, 5, 4, -2, -9, -12, -13, -12, -13, -12, -13, -7, 0, 9, 14, 14, 12, 13, 12, 13, 12, 13, 12, 13, 12, 14, 14, 14, 15, 14, 14, 12, 9, 9, 8, 9, 8, 8, 9, 8, 4, 0, -5, -9, -14, -13, -6, -6, -6, -5, -6, -6, -11, -13, -15, -13, -7, 1, 6, 7, 7, 7, 6, 6, 6, 6, 6, 7, 6, 4, 2, 1, -3, -6, -10, -12, -12, -13, -13, -13, -14, -15, -13, -13, -13, -11, -8, -8, -8, -8, -9, -9];
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 8;
para.min_speed = speedStartNum2;
para.tgt_speed = tgt_speedClass2 + 30;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 284.7;
pos.y = 173.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 11, "bg01");
stop();
Frame 66
initMovie();
stop();
Frame 68
x_array = [329, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 8, 11, 14, 15, 15, 15, 14, 11, 8, 3, 0, 0, -6, -11, -15, -14, -15, -12, -7, 0, -1, 0, -4, -9, -11, -14, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -14, -12, -8, -2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 7, 12, 15, 15, 15, 15, 15, 15, 12, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 11, 14, 15, 15, 15, 15, 15];
y_array = [-69, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 13, 10, 5, 1, 1, 1, 6, 9, 13, 15, 15, 15, 14, 10, 4, -1, 1, 8, 14, 15, 15, 15, 14, 13, 9, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -3, -4, -9, -13, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -13, -9, -2, 0, 0, 0, 2, 2, 9, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 10, 5, 0, 0, 1, 0, 0];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 8;
para.min_speed = speedStartNum2;
para.tgt_speed = tgt_speedClass2;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 285.7;
pos.y = 174.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 12, "bg01");
stop();
Frame 69
initMovie();
stop();
Frame 71
x_array = [35, 2, 2, 2, 2, 2, 2, 0, 0, 1, 0, 0, 9, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 12, 5, -5, -11, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -13, -11, -7, 0, 0, 1, 0, 1, 1, 5, 8, 11, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 12, 8, 3, -2, 3, 8, 12, 14, 15, 15, 15, 15, 15];
y_array = [516, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -12, -5, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5, -9, -14, -15, -9, -1, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, -4, -7, -10, -14, -14, -15, -15, -15, -15, -15, -14, -13, -10, -7, -4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 5, 9, 13, 15, 15, 15, 12, 10, 5, 0, 0, -1, 0, 0];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 8;
para.min_speed = speedStartNum2;
para.tgt_speed = tgt_speedClass2;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 281.7;
pos.y = 174.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 13, "bg01");
stop();
Frame 72
initMovie();
stop();
Frame 74
x_array = [325, -13, -13, -13, -13, -13, -13, -13, -13, -9, -10, -9, -10, -9, -10, -9, -10, -9, -10, -9, -10, -9, -10, -9, -10, -5, 0, 5, 10, 13, 14, 15, 13, 10, 10, 9, 10, 9, 10, 9, 10, 9, 9, 10, 9, 10, 13, 15, 12, 12, 11, 12, 12, 12, 12, 12, 12, 11, 10, 10, 1, -9, -10, -9, -9, -9, -10, -9, -11, -14, -14, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -13, -8, -2, 7, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15];
y_array = [-83, 8, 8, 8, 8, 8, 8, 8, 8, 12, 11, 12, 11, 12, 12, 11, 12, 12, 11, 12, 11, 12, 12, 11, 12, 14, 15, 14, 12, 7, 3, -2, -7, -11, -12, -11, -12, -12, -11, -12, -12, -11, -12, -11, -12, -12, -8, 2, 9, 9, 10, 9, 9, 9, 9, 10, 9, 9, 11, 11, 15, 12, 12, 12, 11, 12, 12, 12, 10, 7, 3, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, 7, 13, 15, 13, 4, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 8;
para.min_speed = speedStartNum2;
para.tgt_speed = tgt_speedClass2;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 281.7;
pos.y = 174.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 14, "bg01");
stop();
Frame 75
initMovie();
stop();
Frame 77
x_array = [333, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, -6, -12, -14, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -13, -9, -2, 0, 1, 0, 7, 12, 15, 14, 14, 14, 14, 13, 14, 13, 14, 15, 15, 14, 15, 14, 13, 14, 14, 14, 15, 14, 13, 9, 11, 14, 15, 14, 13, 13, 13, 13, 13, 11, 9, -1, -10, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -12, -11, 0, 11, 13, 13, 13, 13, 13, 14, 14, 15, 15, 15, 15, 14, 14, 14, 14, 13, 14, 14, 14];
y_array = [-96, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 12, 15, 15, 15, 15, 13, 9, 2, -5, -6, -6, -6, -7, -6, -6, -6, -3, 0, 2, 5, 6, 6, 6, 6, 6, 1, -4, -8, -12, -10, -7, -1, 5, 7, 8, 8, 7, 8, 10, 12, 15, 11, 2, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 10, 11, 15, 11, 7, 8, 7, 7, 8, 4, 4, 4, 0, -1, -3, -3, -6, -6, -5, -6, -6, -6, -6];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 7;
para.min_speed = speedStartNum3;
para.tgt_speed = tgt_speedClass3;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 130;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 489.7;
pos.y = 63.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 15, "bg01");
stop();
Frame 78
initMovie();
stop();
Frame 80
x_array = [235, 2, 2, 2, 2, 2, 3, 4, 10, 14, 15, 15, 15, 15, 15, 14, 15, 14, 14, 13, 13, 12, 11, 10, 8, 8, 7, 5, 5, -2, -7, -13, -15, -14, -12, -9, -7, -6, -7, -6, -8, -10, -11, -13, -14, -15, -15, -15, -15, -15, -14, -15, -15, -15, -15, -14, -15, -14, -14, -13, -13, -13, -12, -11, -10, -9, -8, -4, -1, 3, 4, 4, 3, 7, 9, 12, 14, 14, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 13, 9, 2, -5, -11, -14, -15, -15, -15, -15, -15, -15, -15, -15, -13, -13, -11, -8, -7, -5, -3, 4, 10, 14, 15, 15, 15, 15];
y_array = [-54, 15, 15, 15, 15, 15, 15, 14, 11, 5, 0, 0, 1, 1, 3, 3, 4, 4, 5, 7, 8, 10, 10, 11, 12, 13, 13, 15, 14, 15, 13, 8, 2, -5, -9, -12, -13, -14, -13, -14, -13, -11, -10, -7, -6, -3, -1, 1, 3, 2, 3, 2, 3, 2, 3, 3, 5, 5, 5, 7, 7, 8, 9, 10, 11, 12, 13, 14, 15, 15, 15, 14, 15, 14, 11, 9, 6, 6, 6, 6, 2, 0, 1, 0, 0, 0, 1, 0, -2, -1, -2, -1, -7, -12, -15, -14, -10, -4, 0, -1, -2, -1, -1, -2, -1, -4, -6, -8, -10, -12, -13, -15, -14, -14, -11, -5, -3, -2, -2, -2];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 7;
para.min_speed = speedStartNum3;
para.tgt_speed = tgt_speedClass3;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 301.7;
pos.y = 217.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 16, "bg01");
stop();
Frame 81
initMovie();
stop();
Frame 83
x_array = [658, -15, -15, -15, -15, -15, -15, -15, -15, -13, -9, -2, 0, 1, 0, -9, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -14, -13, -11, -12, -13, -15, -15, -15, -14, -10, -2, -1, 4, 7, 12, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 10, 5, -1, -8, -12, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -14, -12, -7, -3, 3, 8, 12, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15];
y_array = [258, 0, 0, 0, 0, 0, 0, 0, 0, -7, -12, -15, -15, -15, -15, -12, -3, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -4, -7, -11, -9, -7, -1, 0, 1, 4, 11, 15, 15, 15, 12, 10, 6, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 3, 6, 11, 14, 15, 13, 8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 10, 13, 15, 14, 13, 9, 5, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 7;
para.min_speed = speedStartNum3;
para.tgt_speed = tgt_speedClass3;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 489.7;
pos.y = 364.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 17, "bg01");
stop();
Frame 84
initMovie();
stop();
Frame 86
x_array = [675, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -14, -12, -7, -3, 0, 0, 0, 0, 0, 0, 6, 11, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 13, 7, 0, -8, -14, -15, -15, -14, -15, -15, -15, -15, -15, -15, -15, -15, -15, -14, -11, -6, 2, 8, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 13, 8, -1, -7, -12, -15, -15, -15, -15, -15, -15, -12, -7, 1, 1, 1, -2, -6, -12, -14, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15];
y_array = [149, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 5, 10, 13, 15, 15, 15, 15, 15, 15, 15, 14, 10, 6, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, -8, -13, -15, -12, -7, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, -5, -10, -14, -15, -12, -7, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 3, 6, 13, 15, 13, 9, 2, 0, 0, 1, 0, 2, 9, 13, 15, 15, 15, 15, 14, 10, 3, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 7;
para.min_speed = speedStartNum3;
para.tgt_speed = tgt_speedClass3;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 487.7;
pos.y = 363.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 18, "bg01");
stop();
Frame 87
initMovie();
stop();
Frame 89
x_array = [328, 1, 1, 1, 1, 1, 0, 0, -1, 0, 0, 0, -1, 0, -6, -11, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -14, -10, -4, 1, 8, 12, 15, 15, 15, 15, 15, 15, 15, 14, 14, 9, 3, -5, -11, -14, -15, -15, -15, -15, -15, -15, -15, -13, -10, -5, 1, 4, 9, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 12, 7, 3, 1, 0, 1, 0, 1, 0, 1, 6, 10, 14, 15, 15, 15, 15, 15, 15, 15, 14, 12, 7, 3, -1, -1, -7, -12, -14, -15, -15];
y_array = [-83, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 10, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 6, 11, 15, 14, 14, 9, 3, 1, 1, 0, 1, 1, 1, 5, 6, 12, 15, 14, 10, 4, 1, 0, 1, 0, 1, 0, 1, 7, 11, 14, 15, 14, 12, 7, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, -5, -10, -13, -14, -15, -15, -15, -15, -15, -15, -15, -14, -11, -6, -2, 0, 0, 0, -1, 0, 0, 5, 10, 13, 15, 15, 15, 13, 10, 3, -2, -5];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 7;
para.min_speed = speedStartNum3;
para.tgt_speed = tgt_speedClass3;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 535.7;
pos.y = 82.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 19, "bg01");
stop();
Frame 90
initMovie();
stop();
Frame 92
x_array = [-110, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 9, 4, -1, -8, -14, -15, -14, -15, -11, -3, 0, 1, 0, 0, 1, 0, 0, 5, 8, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 11, 2, 0, -1, -11, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -11, -2, 8, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 13, 8, 1, 0, 0, 8, 14, 15, 15, 15, 12, 6, 0, 1, 0, 0, 1, 11, 15, 15];
y_array = [134, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 12, 14, 15, 13, 6, 2, 1, 1, 10, 15, 15, 15, 15, 15, 15, 15, 15, 14, 13, 4, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, -10, -15, -15, -15, -11, -1, 0, 0, 0, -1, 0, 0, 0, 0, -1, 0, 0, -10, -15, -12, -3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -7, -13, -15, -15, -15, -12, -6, 0, 0, 0, 8, 14, 15, 15, 15, 15, 15, 10, 1, -7];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 7;
para.min_speed = speedStartNum3;
para.tgt_speed = tgt_speedClass3;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 255.7;
pos.y = 178.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 20, "bg01");
stop();
Frame 93
initMovie();
stop();
Frame 95
x_array = [363, -2, -2, -2, -2, -2, -2, -2, -9, -14, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -14, -15, -13, -13, -13, -12, -10, -10, -9, -8, -7, -6, -5, -4, -2, -1, 1, 1, 3, 8, 13, 14, 15, 12, 6, -2, -2, 0, 2, 3, 5, 6, 7, 6, 10, 12, 14, 14, 14, 15, 14, 15, 15, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 15, 14, 13, 10, 6, 2, 0, 0, -1, 0, 0, -4, -8, -11, -14, -14, -15, -14, -15, -15, -14, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -15, -14, -15, -15, -13, -12, -8, -5, -1, 3, 6, 6, 6, 10, 13, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 13, 13, 10, 8, 4, 0];
y_array = [502, -15, -15, -15, -15, -15, -15, -15, -12, -6, 0, -1, -1, 0, -1, 0, -1, 0, -1, -4, -5, -7, -9, -9, -8, -10, -10, -11, -11, -12, -11, -12, -12, -14, -14, -14, -15, -15, -15, -13, -8, -3, 2, 9, 14, 15, 15, 15, 15, 14, 15, 13, 14, 13, 12, 8, 5, 5, 5, 5, 4, 3, 2, 1, 0, -1, -1, -1, -2, -1, -1, -2, -1, -2, -3, -4, -4, -5, -4, -8, -11, -14, -15, -15, -15, -15, -15, -15, -14, -13, -10, -7, -4, -4, -4, -3, -2, -1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 2, 3, 2, 2, 3, 7, 10, 12, 14, 15, 15, 13, 14, 14, 11, 7, 6, 5, 5, 2, 1, 2, 2, 1, -1, -1, -1, -1, -1, -3, -5, -6, -9, -11, -13, -14, -16];
para = new Object();
para.superBall_rnd = 150;
para.tagTime = 20;
para.tgt_same_change = 3;
para.tgt_same_base = 1;
para.tgt_type = 6;
para.speed_a = 7;
para.min_speed = speedStartNum3;
para.tgt_speed = tgt_speedClass3;
if (testModeStart) {
para.tgt_totalNum = testModeNum;
} else {
para.tgt_totalNum = 150;
}
randomhei1 = random(para.tgt_totalNum);
pos = new Object();
pos.x = 319.7;
pos.y = 193.6;
if (_root.passXS) {
para.tgt_totalNum = 10;
}
levelRun("2-4", 21, "bg01");
stop();
Frame 96
initMovie();
stop();
Instance of Symbol 821 MovieClip "sound_mc" in Frame 98
on (press) {
var c = this._currentframe;
if (_root.SoundStop) {
_root.Sound_con.setVolume(0);
this.gotoAndStop(2);
} else if (_root.SoundStop == false) {
_root.SoundStop = false;
_root.Sound_con.setVolume(100);
this.gotoAndStop(1);
}
}
on (rollOver) {
this.an.gotoAndStop(2);
}
on (rollOut) {
this.an.gotoAndStop(1);
}
Frame 99
GamePassAll = true;
stop();
GamesList.as2.GamesListAPIAS2.GenerateScoreID();
stopAllSounds();
_root.BOX_x.removeMovieClip();
start_sound_.start(0, 1100);
key_listener = new Object();
key_listener.onKeyDown = function () {
if (Key.getCode() == 32) {
ModeZT++;
gotoAndStop ("ModeE");
_root.start_sound_.stop();
}
};
if (levelNum == 8) {
Dis.dis.gotoAndStop(1);
level2CanShow = true;
} else if (levelNum == 15) {
level3CanShow = true;
Dis.dis.gotoAndStop(2);
} else if (levelNum == 22) {
level3CanShow = true;
Dis.dis.gotoAndStop(3);
}
Key.addListener(key_listener);
stop();
scoresxt.text = int(_root["\u4E0A\u4E00\u534A\u5206\u6570"] + _root["\u4E0B\u4E00\u534A\u5206\u6570"]);
Pbt.onPress = function () {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
};
sumBt.onRelease = function () {
GamesList.as2.GamesListAPIAS2.SubmitScore(scoresxt.text);
};
pagBt.onRelease = function () {
tmp_ball_ball_type_arr = [random(4) + 1, random(4) + 1, random(4) + 1];
gotoAndPlay (1);
};
Frame 109
stop();
GamesList.as2.GamesListAPIAS2.GenerateScoreID();
BOX_x.removeMovieClip();
re_back_func_();
pop_ = ["h", "o", "n", "e", "y"];
_root.propNums = 0;
var i = 1;
while (i < 6) {
_root["propBox" + i].gotoAndStop(1);
i++;
}
b3.onPress = function () {
_root.gotoAndStop("ModeE");
_root.show_mc_visible = true;
tmp_ball_ball_type_arr = [random(4) + 1, random(4) + 1, random(4) + 1];
};
b2.onPress = function () {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
};
start_sound_Now = null;
start_time = 0;
scoresxt.text = _root.score_n;
input_name.onSetFocus = function () {
this.text = "";
inputMCx.gotoAndStop(1);
inputMCx.input_namex = "";
inputMCx._visible = false;
};
Selection.setFocus(txt);
input_namex = lan_input_name;
inputMCx._visible = true;
inputMCx.gotoAndStop(getLanFrame());
inputMCx.input_namex = lan_input_name;
b1.onRelease = function () {
GamesList.as2.GamesListAPIAS2.SubmitScore(scoresxt.text);
};
Instance of Symbol 821 MovieClip "sound_mc" in Frame 109
on (press) {
var c = this._currentframe;
if (_root.SoundStop) {
_root.Sound_con.setVolume(0);
this.gotoAndStop(2);
} else if (_root.SoundStop == false) {
_root.SoundStop = false;
_root.Sound_con.setVolume(100);
this.gotoAndStop(1);
}
}
on (rollOver) {
this.an.gotoAndStop(2);
}
on (rollOut) {
this.an.gotoAndStop(1);
}
Frame 113
stop();
bu.onPress = function () {
tmp_ball_ball_type_arr = [random(4) + 1, random(4) + 1, random(4) + 1];
gotoAndPlay (1);
};
moreGame.onRelease = function () {
};
var i = 0;
while (i < (so.data.scores.length - 1)) {
var j = (i + 1);
while (j < so.data.scores.length) {
if (so.data.scores[i][1] > so.data.scores[j][1]) {
var tmp = so.data.scores[i];
so.data.scores[i] = so.data.scores[j];
so.data.scores[j] = tmp;
}
j++;
}
i++;
}
var i = 1;
while (i < 8) {
var name_txt = this["name_txt" + i];
var scores = this["scores" + i];
name_txt.text = so.data.scores[so.data.scores.length - i][0];
scores.text = so.data.scores[so.data.scores.length - i][1];
if (so.data.scores[so.data.scores.length - i][0] == undefined) {
name_txt.text = "";
scores.text = "";
}
i++;
}
Frame 120
function setEvent(mc, i) {
mc.onPress = function () {
if (Number(_root.gameLevel) >= Number(i + 1)) {
_root.saveData(_root.gameLevel);
} else {
_root.saveData(i + 1);
}
_root.level = i - 1;
start_sound_.stop();
_root.attachMovie("BOX_x", "BOX_x", _root.getNextHighestDepth());
re_back_func_();
_root.pop_ = ["h", "o", "n", "e", "y"];
levelNum = i;
gotoAndPlay ("mode");
};
mc.lockMC._alpha = 0;
mc.levelText.text = "level" + i;
}
var i = 1;
while (i < 21) {
_root["levelBt" + i]._alpha = 50;
_root["levelBt" + i].levelText.text = "level" + i;
i++;
}
var i = 1;
while (i < 21) {
var mc = _root["levelBt" + i];
setEvent(mc, i);
i++;
}
var k = _global.level;
while (k < 21) {
var mc = this["levelBt" + k];
mc.enabled = false;
mc._alpha = 100;
mc.levelText.text = "lock";
mc.lockMC._alpha = 100;
k++;
}
delete now_type_tmp_arr;
_root.unblack = undefined;
_root.BOX_x.removeMovieClip();
b1.onPress = function () {
start_sound_.stop();
_root.attachMovie("BOX_x", "BOX_x", _root.getNextHighestDepth());
re_back_func_();
_root.pop_ = ["h", "o", "n", "e", "y"];
if (testClassNum) {
levelNum = 10;
} else {
levelNum = 10;
}
gotoAndPlay ("mode");
};
b2.onPress = function () {
start_sound_.stop();
_root.attachMovie("BOX_x", "BOX_x", _root.getNextHighestDepth());
re_back_func_();
_root.pop_ = ["h", "o", "n", "e", "y"];
levelNum = 8;
gotoAndPlay ("mode");
};
b3.onPress = function () {
start_sound_.stop();
_root.attachMovie("BOX_x", "BOX_x", _root.getNextHighestDepth());
re_back_func_();
_root.pop_ = ["h", "o", "n", "e", "y"];
levelNum = 15;
gotoAndPlay ("mode");
};
if (level3CanShow) {
M2._alpha = 0;
M3._alpha = 0;
} else if (level2CanShow) {
b3._alpha = 50;
b3.enabled = false;
M2._alpha = 0;
} else {
b2._alpha = 50;
b2.enabled = false;
b3._alpha = 50;
b3.enabled = false;
}
Key.removeListener(key_listener);
Frame 121
howToPlayBotten.onPress = function () {
_root.gotoAndStop("ModeE");
_root.show_mc_visible = true;
};
Symbol 3 MovieClip Frame 1
this.onPress = function () {
};
this.useHandCursor = false;
Symbol 16 Button
on (press) {
var mc = eval (input_txt3.text);
display_txt2.text = mc + " mc : ";
for (var i in mc) {
if (typeof(mc[i]) == "movieclip") {
display_txt2.text = display_txt2.text + (i + " , ");
}
}
display_txt2.text = display_txt2.text + (("\n\n" + mc) + " var : ");
for (var i in mc) {
if ((typeof(mc[i]) != "movieclip") && (typeof(mc[i]) != "function")) {
display_txt2.text = display_txt2.text + (i + " , ");
}
}
display_txt2.text = display_txt2.text + (("\n\n" + mc) + " func : ");
for (var i in mc) {
if (typeof(mc[i]) == "function") {
display_txt2.text = display_txt2.text + (i + " , ");
}
}
}
Symbol 17 Button
on (press) {
if (input_txt2.text != "") {
display_txt1.text = _parent.trace_str(input_txt1.text, int(input_txt2.text));
} else {
display_txt1.text = _parent.trace_str(input_txt1.text);
}
}
Symbol 18 Button
on (press) {
input_txt1.text = "_root.";
input_txt2.text = "";
display_txt1.text = " ~ ! @ # $ % ^ & * ( ) _ + { } : \" < > ? | ` 0 1 2 3 4 5 6 7 8 9 [ ] ; ' , . / \\a b c d e f g h i j k l m n o p q r s t u v w x y z ";
}
Symbol 29 Button
on (press) {
clearInterval(intervalID);
this.removeMovieClip();
this._x = -9999;
}
Symbol 33 Button
on (press) {
content_mc._visible = !content_mc._visible;
}
Symbol 34 MovieClip [trace_mc] Frame 1
function getIndexArr(str) {
var _local5 = new Array();
var _local2 = 0;
while (_local2 < str.length) {
if (str.charAt(_local2) == "[") {
var _local4 = "";
var _local1 = _local2 + 1;
while (_local1 < str.length) {
if (str.charAt(_local1) == "]") {
_local5.push(_local4);
_local2 = _local1;
break;
}
_local4 = _local4 + str.charAt(_local1);
_local1++;
}
}
_local2++;
}
return(_local5);
}
function getVal(parent, str, new_val) {
var i = 0;
while (i < str.length) {
if (str.charAt(i) == "[") {
var var1_var = ((parent == undefined) ? (str.substr(0, i)) : (parent[str.substr(0, i)]));
break;
}
i++;
}
if (i == str.length) {
if (new_val != undefined) {
((parent == undefined) ? (eval (str)) : ((parent[str] = new_val)));
}
return(((parent == undefined) ? (eval (str)) : (parent[str])));
}
var var2_index_arr = getIndexArr(str);
switch (var2_index_arr.length) {
case 1 :
if (new_val != undefined) {
var1_var[Number(var2_index_arr[0])] = new_val;
}
return(var1_var[Number(var2_index_arr[0])]);
case 2 :
if (new_val != undefined) {
var1_var[Number(var2_index_arr[0])][Number(var2_index_arr[1])] = new_val;
}
return(var1_var[Number(var2_index_arr[0])][Number(var2_index_arr[1])]);
case 3 :
if (new_val != undefined) {
var1_var[Number(var2_index_arr[0])][Number(var2_index_arr[1])][Number(var2_index_arr[2])] = new_val;
}
return(var1_var[Number(var2_index_arr[0])][Number(var2_index_arr[1])][Number(var2_index_arr[2])]);
}
}
function trace_str(str, new_val) {
delete curr_val;
str = str.split(".");
var _local1 = 0;
while (_local1 < str.length) {
if ((_local1 == (str.length - 1)) && (new_val != undefined)) {
curr_val = getVal(curr_val, str[_local1], new_val);
} else {
curr_val = getVal(curr_val, str[_local1]);
}
_local1++;
}
return(String(curr_val));
}
function swap_depth() {
_parent.trace_mc.swapDepths(_parent.getNextHighestDepth() - 1);
}
roll_bar.useHandCursor = false;
intervalID = setInterval(swap_depth, 1000);
Instance of Symbol 25 MovieClip "roll_bar" in Symbol 34 MovieClip [trace_mc] Frame 1
on (press) {
this._parent.startDrag();
}
on (release) {
this._parent.stopDrag();
}
Symbol 35 MovieClip [propBox] Frame 1
var nameNum;
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 1
_root.stop(this);
Symbol 57 MovieClip Frame 100
_root.stop(this);
Symbol 87 Button
on (release) {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
}
Symbol 93 Button
on (release) {
gotoAndStop (13);
}
Symbol 102 MovieClip Frame 81
stop();
Symbol 103 Button
on (release) {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
}
Symbol 134 MovieClip Frame 29
stop();
Symbol 135 MovieClip Frame 59
Symbol 135 MovieClip Frame 120
_root.gotoAndPlay("gameplay");
Symbol 136 MovieClip Frame 1
stop();
Instance of Symbol 84 MovieClip in Symbol 136 MovieClip Frame 1
on (release) {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
}
Instance of Symbol 88 MovieClip in Symbol 136 MovieClip Frame 1
on (release) {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
}
Symbol 136 MovieClip Frame 12
stop();
Symbol 1328 MovieClip [__Packages.GamesList.as2.GamesListAPIAS2] Frame 0
class GamesList.as2.GamesListAPIAS2
{
static var HighScore_GameName, HighScore_Pass, HighScore_ScoreID;
function GamesListAPIAS2 () {
}
static function config(gamename, pass) {
HighScore_GameName = gamename;
HighScore_Pass = pass;
}
static function GenerateScoreID() {
HighScore_ScoreID = new Date().getTime() + String(Math.floor(Math.random() * 9000) + 1000);
}
static function SubmitScore(score) {
var _local1 = GamesList.as2.GamesListMD5AS2.calculate((HighScore_Pass + HighScore_ScoreID) + score);
var _local2 = (((((("http://www.gameslist.com/submitscore.php?game=" + HighScore_GameName) + "&scoreid=") + HighScore_ScoreID) + "&score=") + score) + "&key=") + _local1;
getURL (_local2, "_blank");
}
}
Symbol 1329 MovieClip [__Packages.GamesList.as2.GamesListMD5AS2] Frame 0
class GamesList.as2.GamesListMD5AS2
{
function GamesListMD5AS2 () {
}
static function calculate(src) {
return(hex_md5(src));
}
static function hex_md5(src) {
return(binl2hex(core_md5(str2binl(src), src.length * 8)));
}
static function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(new Array(_local4, _local3, _local2, _local1));
}
static function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
static function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
static function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
static function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function str2binl(str) {
var _local3 = new Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function binl2hex(binarray) {
var _local4 = new String("");
var _local3 = new String("0123456789abcdef");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
}
Symbol 1330 MovieClip [__Packages.Ball] Frame 0
class Ball
{
static var parentMC, holder_width, shootSpeed, sceneWidth, sceneHeight, timer;
var holder, x, y, type, dx, dy, sht_val, broadcastMessage;
function Ball (mc, id, __x, __y, _type) {
holder = parentMC.attachMovie(mc, "b" + id, id + 1000);
holder.setMask(_root.center_mc.mask);
x = __x;
y = __y;
holder._x = x;
holder._y = y;
holder._width = (holder._height = holder_width);
type = _type;
holder.gotoAndStop(type);
AsBroadcaster.initialize(this);
}
static function init(pMC, speed, width, height, ball_width, _timer) {
parentMC = pMC;
shootSpeed = speed;
sceneWidth = width + shootSpeed;
sceneHeight = height + shootSpeed;
holder_width = ball_width;
timer = _timer;
}
function shoot(x, y) {
var _local2;
_local2 = shootSpeed / Math.sqrt((x * x) + (y * y));
dx = x * _local2;
dy = y * _local2;
sht_val = setInterval(this, "shootStep", timer);
}
function shootStep() {
x = x + dx;
y = y + dy;
if (outOfScene()) {
broadcastMessage("shootFinish", this);
clearBall();
} else {
holder._x = x;
holder._y = y;
broadcastMessage("shootStep", this);
}
updateAfterEvent();
}
function clearBall() {
clearInterval(sht_val);
holder.removeMovieClip();
}
function moveStop() {
clearInterval(sht_val);
}
function outOfScene() {
return((((x < (-shootSpeed)) || (y < (-shootSpeed))) || (x > sceneWidth)) || (y > sceneHeight));
}
}
Symbol 1331 MovieClip [__Packages.Grid] Frame 0
class Grid
{
var width, xNum, yNum, area;
function Grid (__width, w, h, arr) {
width = __width;
xNum = w;
yNum = h;
area = arr;
}
function push(x, y, mc, name) {
var _local3;
var _local2;
var _local6;
_local3 = Math.floor(x / width);
_local2 = Math.floor(y / width);
area[_local3][_local2][name].push(mc);
}
function pop(x, y, mc, name) {
var _local4;
var _local3;
var _local2;
_local4 = Math.floor(x / width);
_local3 = Math.floor(y / width);
_local2 = 0;
while (_local2 < area[_local4][_local3][name].length) {
if (area[_local4][_local3][name][_local2] == mc) {
area[_local4][_local3][name].splice(_local2, 1);
break;
}
_local2++;
}
}
}
Symbol 182 MovieClip Frame 1
this.gotoAndStop("polish");
Symbol 182 MovieClip Frame 9
Symbol 182 MovieClip Frame 16
Symbol 220 MovieClip Frame 1
this.gotoAndStop(_root.gamelanVer);
Symbol 220 MovieClip Frame 9
Symbol 220 MovieClip Frame 16
Symbol 245 MovieClip Frame 1
this.gotoAndStop(_root.gamelanVer);
Symbol 245 MovieClip Frame 9
Symbol 245 MovieClip Frame 16
Symbol 273 MovieClip Frame 1
this.gotoAndStop(_root.gamelanVer);
Symbol 273 MovieClip Frame 9
Symbol 273 MovieClip Frame 16
Symbol 283 MovieClip Frame 27
stop();
bu1.onPress = function () {
_root.gotoAndStop("ModeE");
_root.show_mc_visible = true;
};
bu2.onPress = function () {
_root.gotoAndStop("gameFail2");
};
howtoplay.onPress = function () {
_root.gotoAndStop("howToPlay");
};
bu3.onRelease = function () {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
};
bu4.onRelease = function () {
getURL ("http://www.gameslist.com/freegames", "_blank");
};
Symbol 362 MovieClip [sp2] Frame 38
this.removeMovieClip();
Symbol 408 MovieClip [removeTX] Frame 1
_root.havingRemoveEffect = true;
Symbol 408 MovieClip [removeTX] Frame 14
delete _root.havingRemoveEffect;
this.removeMovieClip();
Symbol 409 MovieClip [targetBall] Frame 1
roll_frame = 0;
roll_mc.stop();
stop();
Symbol 409 MovieClip [targetBall] Frame 10
gotoAndStop ("remove");
Symbol 409 MovieClip [targetBall] Frame 14
if (flower) {
flower.removeMovieClip();
}
_root.removeTxName = _root.attachMovie("removeTX", "removeTX" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _xscale:150, _yscale:150});
_parent._parent.remove_movie_end(remove_id);
gotoAndPlay ("rongyu");
Symbol 409 MovieClip [targetBall] Frame 23
_parent._parent.remove_movie_end(remove_id);
gotoAndPlay ("rongyu");
Symbol 409 MovieClip [targetBall] Frame 33
_parent._parent.remove_movie_end(remove_id);
gotoAndPlay ("rongyu");
Symbol 409 MovieClip [targetBall] Frame 43
_parent._parent.remove_movie_end(remove_id);
gotoAndPlay ("rongyu");
Symbol 409 MovieClip [targetBall] Frame 48
_parent._parent.remove_movie_end(remove_id);
gotoAndPlay ("rongyu");
Symbol 409 MovieClip [targetBall] Frame 59
_parent._parent.remove_movie_end(remove_id);
gotoAndPlay ("rongyu");
Symbol 409 MovieClip [targetBall] Frame 64
_root.checkRemove(this, 0);
stop();
Symbol 421 MovieClip [attBall] Frame 1
stop();
Symbol 424 MovieClip [ball_shadow_mc] Frame 4
this.removeMovieClip();
Symbol 440 MovieClip [booms] Frame 21
_root.crtNewBall();
this.removeMovieClip();
Symbol 448 MovieClip [dot] Frame 7
this.removeMovieClip();
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 17
this.gotoAndPlay("start");
Symbol 455 MovieClip [dot2] Frame 16
this.removeMovieClip();
Symbol 496 MovieClip [sp1] Frame 25
stop();
this.removeMovieClip();
Symbol 497 MovieClip [goback_mc] Frame 21
this.removeMovieClip();
Symbol 508 MovieClip Frame 8
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 511 MovieClip [index_holder] Frame 1
_btn.useHandCursor = false;
Symbol 567 MovieClip [remove_mc] Frame 5
_parent._parent.removeBall(_parent);
Symbol 570 MovieClip [shine2] Frame 20
_parent._parent.winMovie_mc.gotoAndPlay(2);
this.removeMovieClip();
Symbol 571 MovieClip [superball_shadow_mc] Frame 8
this.removeMovieClip();
Symbol 573 MovieClip [topMenu] Frame 1
function game_pause(p) {
if (p) {
_parent.game_pause = true;
_parent.stopAll.obj = _root;
_parent.stopAll.gotoAndPlay(2);
stopAllSounds();
} else {
_parent.speed_listener.initSpeed();
_parent.game_pause = false;
_parent.stopAll.playObj(_root);
if (_parent.bgSnd_bool) {
_parent.bg_sound.start(0, 1000);
}
if (!_parent.speedCheck) {
_quality = _parent.use_quality;
} else {
_parent.speed_listener.initSpeed();
}
}
play();
}
function reStart() {
delete _parent.pos_array;
_parent.clearAll();
_parent.setPara_default();
game_pause(false);
stopAllSounds();
_parent.gotoAndStop("start");
}
init_depth = this.getDepth();
obj = new MovieClip();
sobj = new MovieClip();
checkObj = function (obj) {
obj.stopChecked = true;
for (name in obj) {
if ((typeof(obj[name]) == "movieclip") && (obj[name] != this)) {
obj[name].frame55555 = obj[name]._currentframe;
if (!obj[name].stopChecked) {
checkObj(obj[name]);
}
}
}
};
stopObj = function (obj) {
obj.stoped55555 = true;
for (name in obj) {
if ((typeof(obj[name]) == "movieclip") && (obj[name] != this)) {
if ((obj[name].frame55555 != obj[name]._currentframe) && (obj[name].frame55555 != undefined)) {
obj[name].stop55555 = true;
obj[name].stop();
if ((obj[name] == _parent.center_mc) && (obj[name]._currentframe == 1)) {
delete obj[name].stop55555;
}
}
if ((!obj[name].stoped55555) && (obj[name] != _parent.center_mc)) {
stopObj(obj[name]);
}
}
}
};
playObj = function (obj) {
delete obj.stoped55555;
delete obj.stopChecked;
for (name in obj) {
if ((typeof(obj[name]) == "movieclip") && (obj[name] != this)) {
if (obj[name].stop55555) {
obj[name].play();
delete obj[name].stop55555;
delete obj[name].frame55555;
}
if (obj[name].stoped55555 != undefined) {
playObj(obj[name]);
}
}
}
};
stop();
Symbol 573 MovieClip [topMenu] Frame 2
this.swapDepths(100);
noClick_btn.useHandCursor = false;
Symbol 573 MovieClip [topMenu] Frame 3
sobj = obj;
checkObj(obj);
Symbol 573 MovieClip [topMenu] Frame 4
stopObj(sobj);
Symbol 573 MovieClip [topMenu] Frame 11
stop();
Symbol 573 MovieClip [topMenu] Frame 15
_root.pause_mc.gotoAndStop(1);
Symbol 574 MovieClip Frame 1
stop();
Symbol 575 MovieClip [flower] Frame 1
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 594 MovieClip [showTebieCartoon] Frame 1
stop();
if (_root.BAllID != undefined) {
gotoAndPlay (2);
}
Symbol 594 MovieClip [showTebieCartoon] Frame 11
this.pic.gotoAndStop(_root.BAllID);
Symbol 594 MovieClip [showTebieCartoon] Frame 22
stop();
Symbol 597 MovieClip Frame 1
stop();
Symbol 624 MovieClip [all_num_Pass] Frame 1
stop();
Symbol 624 MovieClip [all_num_Pass] Frame 2
_root.Allstop = true;
_root.setGoal(1000);
Symbol 624 MovieClip [all_num_Pass] Frame 52
_root.Allstop = false;
_root.re_back_func_();
var nowScore = _root.attachMovie("appearPoint", "appearPoint" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
nowScore._x = 250;
nowScore._y = 250;
nowScore.addItemPoint = 1000;
_root.setGoal(1000);
Symbol 636 MovieClip [appearPoint] Frame 17
this.removeMovieClip();
Symbol 641 MovieClip Frame 1
stop();
var Stop_ = _root.pop_[random(_root.pop_.length - 1)];
this.gotoAndStop(Stop_);
Symbol 641 MovieClip Frame 2
stop();
this.id = "h";
Symbol 641 MovieClip Frame 3
this.id = "o";
Symbol 641 MovieClip Frame 4
this.id = "n";
Symbol 641 MovieClip Frame 5
this.id = "e";
Symbol 641 MovieClip Frame 6
this.id = "y";
Symbol 642 MovieClip [BOX_x] Frame 1
stop();
this.gotoAndStop(3);
Symbol 642 MovieClip [BOX_x] Frame 2
function box_pos(arr) {
var _local2 = random(arr.length - 1);
this._x = arr[_local2].x;
this._y = arr[_local2].y;
}
function fine_arr_menber(arr, what) {
var _local2 = 0;
while (_local2 < arr.length) {
if (arr[_local2] == what) {
arr.splice(_local2, 1);
_root.setGoal(100);
if (arr.length <= 0) {
_root.show_win_mc.gotoAndPlay(2);
break;
}
}
_local2++;
}
}
stop();
if (_root.levelNum <= 7) {
box_pos(_root.pos_arr_1);
}
if ((_root.levelNum > 7) && (_root.levelNum <= 14)) {
box_pos(_root.pos_arr_2);
}
if ((_root.levelNum > 14) && (_root.levelNum <= 21)) {
box_pos(_root.pos_arr_3);
}
this.box_num2 = 0;
this.onEnterFrame = function () {
box_num2++;
if (box_num2 >= 250) {
if (_root.levelNum <= 7) {
box_pos(_root.pos_arr_1);
}
if ((_root.levelNum > 7) && (_root.levelNum <= 14)) {
box_pos(_root.pos_arr_2);
}
if ((_root.levelNum > 14) && (_root.levelNum <= 21)) {
box_pos(_root.pos_arr_3);
}
box_num2 = 0;
}
if (xiang.area.hitTest(_root.ball.holder)) {
var _local3 = _root.attachMovie("appearPoint", "appearPoint" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _root.ball.holder._x;
_local3._y = _root.ball.holder._y;
_local3.addItemPoint = 100;
_root.remove_sound.start(0);
_root.ball.holder._visible = false;
if (xiang.id == "h") {
_root.pop1.gotoAndStop(2);
fine_arr_menber(_root.pop_, xiang.id);
} else if (xiang.id == "o") {
_root.pop2.gotoAndStop(3);
fine_arr_menber(_root.pop_, xiang.id);
} else if (xiang.id == "n") {
_root.pop3.gotoAndStop(4);
fine_arr_menber(_root.pop_, xiang.id);
} else if (xiang.id == "e") {
_root.pop4.gotoAndStop(5);
fine_arr_menber(_root.pop_, xiang.id);
} else if (xiang.id == "y") {
_root.pop5.gotoAndStop(6);
fine_arr_menber(_root.pop_, xiang.id);
}
delete onEnterFrame;
_root.BAllID = xiang.id;
this.nextFrame();
}
};
Symbol 642 MovieClip [BOX_x] Frame 3
_root.once_time = 1;
this.count_num = 250;
this.onEnterFrame = function () {
this.count_num--;
if (this.count_num <= 0) {
delete this.onEnterFrame;
if (_root.pop_.length > 0) {
this.gotoAndStop(2);
}
}
};
Symbol 655 MovieClip Frame 2
stop();
Symbol 658 MovieClip [combo] Frame 4
shu.gotoAndStop(_root.maxcomboTE);
Symbol 658 MovieClip [combo] Frame 23
this.removeMovieClip();
Symbol 695 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 699 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 703 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 704 MovieClip Frame 1
stop();
if (_root.gameQuality == "LOW") {
this.gotoAndStop(3);
} else if (_root.gameQuality == "MEDIUM") {
this.gotoAndStop(2);
} else if (_root.gameQuality == "HIGH") {
this.gotoAndStop(1);
}
this.onPress = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.gameQuality = "MEDIUM";
_root._quality = "MEDIUM";
} else if (this._currentframe == 2) {
this.gotoAndStop(3);
_root.gameQuality = "LOW";
_root._quality = "LOW";
} else if (this._currentframe == 3) {
this.gotoAndStop(1);
_root.gameQuality = "HIGH";
_root._quality = "HIGH";
}
};
Symbol 710 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 714 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 715 MovieClip Frame 1
if (_root.SoundStop == undefined) {
this.gotoAndStop(1);
_root.Sound_con.setVolume(100);
} else if ((_root.SoundStop == false) || (_root.Sound_con.getVolume() == 0)) {
this.gotoAndStop(2);
_root.Sound_con.setVolume(0);
}
this.onPress = function () {
if (_root.SoundStop == undefined) {
_root.Sound_con.setVolume(0);
_root.SoundStop = false;
this.gotoAndStop(2);
} else if (_root.SoundStop == false) {
_root.Sound_con.setVolume(100);
_root.SoundStop = null;
this.gotoAndStop(1);
}
};
stop();
Symbol 796 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 2
_root.stopAllSounds();
_root.gotoAndStop("_root.level" + _root.levelNum);
Symbol 814 MovieClip Frame 81
_root.stopAllSounds();
_root.gotoAndStop("_root.level" + _root.levelNum);
Symbol 818 MovieClip Frame 1
stop();
Symbol 821 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 1
getNum = function (n, obj, num_mc, width) {
_root.score_n = n;
var numStr;
numStr = String(n);
for (name in obj) {
if (typeof(obj[name]) == "movieclip") {
obj[name].removeMovieClip();
}
}
i = 0;
while (i < numStr.length) {
t = Number(numStr.charAt(i));
obj.attachMovie(num_mc, num_mc + i, i + 5);
with (obj[num_mc + i]) {
_x = i * width;
gotoAndStop(t + 1);
}
i++;
}
};
getNum(_root.score, obj, "mynum", 12);
Symbol 825 MovieClip Frame 1
System.useCodepage = true;
if (_root.readScoreXML == undefined) {
_root.readScoreXML = new XML();
_root.readScoreXML.ignoreWhite = true;
_root.readScoreXML.load(_root.scoreXMLAdd);
_root.readScoreXML.onLoad = function (success) {
if (success) {
_root.areaArr = [];
_root.goqoArr = [];
_root.readScoreXML_length = _root.readScoreXML.firstChild.childNodes.length;
var _local2 = 0;
while (_local2 < _root.readScoreXML.firstChild.childNodes.length) {
_root.areaArr[_local2] = int(_root.readScoreXML.firstChild.childNodes[_local2].childNodes[0].childNodes[0].nodeValue);
_root.goqoArr[_local2] = int(_root.readScoreXML.firstChild.childNodes[_local2].childNodes[1].childNodes[0].nodeValue);
_local2++;
}
}
};
if (_root.ADD_POINT == undefined) {
_root.ADD_POINT = "10_1.5_20_2_30_3_";
}
_root.ADD_POINT_temp = _root.ADD_POINT;
_root.pointTime = [];
while (_root.ADD_POINT.length != 0) {
var nowInc1 = _root.ADD_POINT.indexOf("_", 0);
var cutString1 = Number(_root.ADD_POINT.substr(0, nowInc1));
_root.ADD_POINT = _root.ADD_POINT.substr(nowInc1 + 1);
var nowInc1 = _root.ADD_POINT.indexOf("_", 0);
var cutString2 = Number(_root.ADD_POINT.substr(0, nowInc1));
_root.ADD_POINT = _root.ADD_POINT.substr(nowInc1 + 1);
_root.pointTime.push({Qtime:cutString1, Ptime:cutString2});
}
}
Symbol 830 MovieClip Frame 1
stop();
moreBt.onPress = function () {
getURL ("http://www.gameslist.com/?utm_source=game&utm_medium=sponsor&utm_campaign=game-Little-Bear-Zuma", "_blank");
};
Symbol 850 MovieClip Frame 1
move_btn.useHandCursor = false;
move_btn.onPress = function () {
this._parent.startDrag();
};
move_btn.onRelease = function () {
this._parent.stopDrag();
delete this._parent.onEnterFrame;
};
Symbol 899 MovieClip Frame 1
var teEnd = 0;
if (_root.gameZT == "\u8FC7\u5173") {
this.gotoAndPlay("\u8FC7\u5173");
} else if (_root.gameZT == "\u5931\u8D25") {
this.gotoAndPlay("\u5931\u8D25");
}
Symbol 899 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 899 MovieClip Frame 18
teEnd++;
if (teEnd == 4) {
if (_root.failMovie_mc._currentframe == 1) {
_root.failMovie_mc.gotoAndPlay(2);
teEnd = 0;
}
stop();
} else {
this.gotoAndPlay("\u5931\u8D25");
}
Symbol 899 MovieClip Frame 43
this.gotoAndPlay("\u8FC7\u5173");
Symbol 910 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 5
_parent.crt_new();
gotoAndStop (1);
Symbol 926 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 937 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 944 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 951 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 956 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 962 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 969 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 986 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1008 MovieClip Frame 1
this.swapDepths(_root.getNextHighestDepth());
Symbol 1008 MovieClip Frame 37
stop();
GamesList.as2.GamesListAPIAS2.GenerateScoreID();
var thissec = int(_root.levelTimes / 25);
var timeBonus = (thissec * 10);
var maxcomboBonus = (_root.maxcombo * 10);
if ((_root.levelNum > 0) && (_root.levelNum < 8)) {
var levelBonus = 500;
} else if ((_root.levelNum >= 8) && (_root.levelNum < 15)) {
var levelBonus = 1000;
} else if ((_root.levelNum >= 15) && (_root.levelNum < 22)) {
var levelBonus = 1500;
}
var finalScore = (((_root.goal_total + timeBonus) + maxcomboBonus) + levelBonus);
if (_root.show_mc_visible == true) {
show_mc._visible = true;
} else if (_root.show_mc_visible == false) {
show_mc._visible = false;
}
bu2.onPress = function () {
_root.win_sound_.stop();
_root.show_mc_visible = false;
show_mc._visible = false;
_root.unblack = undefined;
delete _root.unblack;
if (_root.pop_.length <= 0) {
_root.pop_ = ["h", "o", "n", "e", "y"];
}
_root.BOX_x.removeMovieClip();
_root.BOX_x.removeMovieClip();
_root.attachMovie("BOX_x", "BOX_x", _root.getNextHighestDepth());
if (Number(_root.item_modified) >= 2) {
if (Number(_root.item_modified) >= 2) {
_root["\u4E0A\u4E00\u534A\u5206\u6570"] = _root["\u4E0A\u4E00\u534A\u5206\u6570"] * 1.1;
_root["\u4E0B\u4E00\u534A\u5206\u6570"] = _root["\u4E0B\u4E00\u534A\u5206\u6570"] * 1.1;
_root.setGoal(Math.floor(_root.goal_total * 0.1));
}
}
_root["\u4E0A\u4E00\u534A\u5206\u6570"] = _root["\u4E0A\u4E00\u534A\u5206\u6570"] + int(finalScore - _root.goal_total);
_root.setGoal(int(finalScore - _root.goal_total));
_root.goal_total = finalScore;
_root.score = _root.goal_total;
_root["te\u4E0A\u4E00\u534A\u5206\u6570"] = _root["\u4E0A\u4E00\u534A\u5206\u6570"];
_root["te\u4E0B\u4E00\u534A\u5206\u6570"] = _root["\u4E0B\u4E00\u534A\u5206\u6570"];
_root.levelNum++;
_root.level_pass.stop();
_root.saveData(_root.levelNum + 1);
_root.gotoAndStop("mode");
};
sbbit.onPress = function () {
GamesList.as2.GamesListAPIAS2.SubmitScore(finalScore);
};
Symbol 1009 MovieClip Frame 1
stop();
Symbol 1009 MovieClip Frame 2
_root.ball.holder.removeMovieClip();
if (_parent.levelNum >= _parent.levelTotal) {
}
Symbol 1009 MovieClip Frame 31
_parent.bg_sound.stop();
Symbol 1009 MovieClip Frame 33
_parent.show_mainMc(false);
_parent.clearDraw();
_parent.clearBall();
Symbol 1009 MovieClip Frame 35
if (_parent.levelNum < _parent.levelTotal) {
gotoAndPlay ("win");
} else {
_parent.gotoAndPlay("gameWin");
}
Symbol 1009 MovieClip Frame 39
sec = _parent.levelTimes / 25;
if (_parent.levelSec[_parent.levelNum] == undefined) {
_parent.levelSec[_parent.levelNum] = sec + 10;
}
hisSec = _parent.levelSec[_parent.levelNum];
if (sec < hisSec) {
_parent.levelSec[_parent.levelNum] = sec;
record_mc.gotoAndPlay(2);
this.onEnterFrame = function () {
hisSec = hisSec - 0.5;
if (hisSec <= sec) {
delete this.onEnterFrame;
hisSec = sec;
}
};
}
stop();
Symbol 1009 MovieClip Frame 56
_parent.so.data.level_success[_parent.levelNum - 1] = true;
_parent.levelNum++;
_parent.gotoAndStop("mode");
gotoAndStop (1);
Symbol 1009 MovieClip Frame 111
_parent.clearAll();
_parent.topMenu.removeMovieClip();
_parent.gotoAndStop("gameWin");
Symbol 1013 MovieClip Frame 1
stop();
Symbol 1013 MovieClip Frame 2
delete _root.move_listener_mc.onEnterFrame;
_root.setLife(-1);
_root.dir_mc.clear();
Symbol 1013 MovieClip Frame 3
_root.ball.holder.removeMovieClip();
_parent.bg_sound.stop();
_parent.gotoAndStop("gameFail");
Symbol 1017 MovieClip Frame 1
stop();
Symbol 1017 MovieClip Frame 2
stop();
Symbol 1018 MovieClip Frame 1
getBallGS = function (n, obj, num_mc, width) {
_root.ball_number_n = n - int(num_mc);
var numStr;
numStr = String(n);
for (name in obj) {
if (typeof(obj[name]) == "movieclip") {
obj[name].removeMovieClip();
}
}
i = 0;
while (i < numStr.length) {
t = Number(numStr.charAt(i));
obj.attachMovie(num_mc, num_mc + i, i + 5);
with (obj[num_mc + i]) {
_x = i * width;
gotoAndStop(t + 1);
}
i++;
}
};
getBallGS(_root.tgt_totalNum, obj, "mynum", 12);
Symbol 1037 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1048 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1062 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1069 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1074 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1087 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1088 MovieClip Frame 1
stop();
Symbol 1118 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1122 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1128 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1131 Button
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 1136 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1139 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1144 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1154 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1164 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1171 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1193 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1198 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1221 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1221 MovieClip Frame 6
Symbol 1238 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1248 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1254 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1260 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1265 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1270 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1275 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1285 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1292 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1300 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1308 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1321 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());
Symbol 1327 MovieClip Frame 1
stop();
this.gotoAndStop(_root.getLanFrame());