How to use GetSymbol method in fast-check-monorepo

Best JavaScript code snippet using fast-check-monorepo

shunkan_game_edgeActions.js

Source:shunkan_game_edgeActions.js Github

copy

Full Screen

1/***********************2* Adobe Edge Animate コンポジションアクション3*4* このファイルを編集する際には注意が必要です。必ず関数シグニチャと5* 「Edge」で始まるコメントを保持して、 Adobe Edge 内からこれらのアクションを6* 操作可能な状態にしておいてください。 7*8***********************/9var BGM = new Howl({10 urls: ['audio/morizo.mp3'],11 autoplay: false,12 loop: true,13 volume: 0.3,14});1516var collect = new Howl({17 urls: ['audio/COLLECT.mp3'],18 autoplay: false,19 loop: false,20 volume: 0.3,21});2223var piyo = new Howl({24 urls: ['audio/piyo.mp3'],25 autoplay: false,26 loop: false,27 volume: 0.1,28});2930var wrong_01 = new Howl({31 urls: ['audio/wrong_01.mp3'],32 autoplay: false,33 loop: false,34 volume: 0.4,35});3637var finish = new Howl({38 urls: ['audio/finish.mp3'],39 autoplay: false,40 loop: false,41 volume: 0.1,42});4344function deleteFalse(sym){45 sym.getComposition().getStage().$("False").hide();46 return;47}4849(function($, Edge, compId){50var Composition = Edge.Composition, Symbol = Edge.Symbol; // よく使用する Edge クラスのエイリアス5152 //Edge symbol: 'stage'53 (function(symbolName) {54 55 56 Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {57 COLLECT = 0;58 59 BGM.onload();60 piyo.onload();61 collect.onload();62 wrong_01.onload();63 finish.onload();64 65 6667 });68 //Edge binding end6970 Symbol.bindElementAction(compId, symbolName, "${_Exit_cover}", "click", function(sym, e) {71 location.reload();7273 });74 //Edge binding end7576 })("stage");77 //Edge symbol end:'stage'7879 //=========================================================80 81 //Edge symbol: 'start'82 (function(symbolName) { 83 84 Symbol.bindElementAction(compId, symbolName, "${_start_cover}", "click", function(sym, e) {85 /* りーでん氏の素晴らしいBGMを再生させていただく */86 BGM.play();87 88 /* ゲーム前の画面表示 */89 sym.getComposition().getStage().$("Exit_cover").show();90 var GAME_BACKGROUND = sym.getComposition().getStage().$("GAME_BACKGROUND").show();91 var MENU = sym.getComposition().getStage().$("MENU").hide();92 var home = sym.getComposition().getStage().$("home").hide();93 var AnsNumver_text = sym.getComposition().getStage().$("AnsNumber_text").show();94 var home3 = sym.getComposition().getStage().$("home3").show();95 sym.getComposition().getStage().$("button_cover2").show();96 97 /* 問題の設定 */98 var Select = Math.floor( Math.random() * 10);99 100 /* 問題の表示 */101 if(Select == 0){102 var Apple3_game = sym.getComposition().getStage().$("Apple3_game").show();103 }104 if(Select == 1){105 var Apple4_game = sym.getComposition().getStage().$("Apple4_game").show();106 }107 if(Select == 2){108 var Apple51_game = sym.getComposition().getStage().$("Apple51_game").show();109 }110 if(Select == 3){111 var Apple52_game = sym.getComposition().getStage().$("Apple52_game").show();112 }113 if(Select == 4){114 var Apple61_game = sym.getComposition().getStage().$("Apple61_game").show();115 }116 if(Select == 5){117 var Apple62_game = sym.getComposition().getStage().$("Apple62_game").show();118 }119 if(Select == 6){120 var Apple71_game = sym.getComposition().getStage().$("Apple71_game").show();121 }122 if(Select == 7){123 var Apple72_game = sym.getComposition().getStage().$("Apple72_game").show();124 }125 if(Select == 8){126 var Apple8_game = sym.getComposition().getStage().$("Apple8_game").show();127 }128 if(Select == 9){129 var Apple9_game = sym.getComposition().getStage().$("Apple9_game").show();130 }131132 });133 //Edge binding end134135 })("Start");136 //Edge symbol end:'Start'137138 //=========================================================139 140 //Edge symbol: 'Title'141 (function(symbolName) { 142 143 })("Title");144 //Edge symbol end:'Title'145146 //=========================================================147 148 //Edge symbol: 'Title_flash'149 (function(symbolName) { 150 151 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1500, function(sym, e) {152 // 指定した位置からタイムラインを再生 (ミリ秒またはラベル)153 sym.play(0);154155 });156 //Edge binding end157158 })("Title_flash");159 //Edge symbol end:'Title_flash'160161 //=========================================================162 163 //Edge symbol: 'flash'164 (function(symbolName) { 165 166 })("flash");167 //Edge symbol end:'flash'168169 //=========================================================170 171 //Edge symbol: 'MENU'172 (function(symbolName) { 173 174 })("MENU");175 //Edge symbol end:'MENU'176177 //=========================================================178 179 //Edge symbol: 'Ans'180 (function(symbolName) { 181 182 })("Ans");183 //Edge symbol end:'Ans'184185 //=========================================================186 187 //Edge symbol: 'GAME_BACKGROUND'188 (function(symbolName) { 189 190 })("GAME_BACKGROUND");191 //Edge symbol end:'GAME_BACKGROUND'192193 //=========================================================194 195 //Edge symbol: 'Apple3_flash'196 (function(symbolName) { 197 198 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {199 // 指定した位置でタイムラインを停止 (ミリ秒またはラベル)200 sym.stop(0);201202 });203 //Edge binding end204205 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {206 sym.stop();207208 });209 //Edge binding end210211 })("Apple3_flash");212 //Edge symbol end:'Apple3_flash'213214 //=========================================================215 216 //Edge symbol: 'Apple4_flash'217 (function(symbolName) { 218 219 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {220 // 指定した位置でタイムラインを停止 (ミリ秒またはラベル)221 sym.stop(0);222223 });224 //Edge binding end225226 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {227 sym.stop();228229 });230 //Edge binding end231232 })("Apple4_flash");233 //Edge symbol end:'Apple4_flash'234235 //=========================================================236 237 //Edge symbol: 'Apple51_flash'238 (function(symbolName) { 239 240 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {241 sym.stop();242243 });244 //Edge binding end245246 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {247 // 指定した位置でタイムラインを停止 (ミリ秒またはラベル)248 sym.stop(0);249250 });251 //Edge binding end252253 })("Apple51_flash");254 //Edge symbol end:'Apple51_flash'255256 //=========================================================257 258 //Edge symbol: 'Apple52_flash'259 (function(symbolName) { 260 261 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {262 sym.stop();263264 });265 //Edge binding end266267 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {268 // 指定した位置でタイムラインを停止 (ミリ秒またはラベル)269 sym.stop(0);270271 });272 //Edge binding end273274 })("Apple52_flash");275 //Edge symbol end:'Apple52_flash'276277 //=========================================================278 279 //Edge symbol: 'Apple61_flash'280 (function(symbolName) { 281 282 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {283 sym.stop();284285 });286 //Edge binding end287288 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {289 // 指定した位置でタイムラインを停止 (ミリ秒またはラベル)290 sym.stop(0);291292 });293 //Edge binding end294295 })("Apple61_flash");296 //Edge symbol end:'Apple61_flash'297298 //=========================================================299 300 //Edge symbol: 'Apple62_flash'301 (function(symbolName) { 302 303 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {304 sym.stop();305306 });307 //Edge binding end308309 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {310 sym.stop(0);311312 });313 //Edge binding end314315 })("Apple62_flash");316 //Edge symbol end:'Apple62_flash'317318 //=========================================================319 320 //Edge symbol: 'Apple71_flash'321 (function(symbolName) { 322 323 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {324 sym.stop();325326 });327 //Edge binding end328329 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {330 // 指定した位置でタイムラインを停止 (ミリ秒またはラベル)331 sym.stop(0);332333 });334 //Edge binding end335336 })("Apple71_flash");337 //Edge symbol end:'Apple71_flash'338339 //=========================================================340 341 //Edge symbol: 'Apple72'342 (function(symbolName) { 343 344 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {345 sym.stop();346347 });348 //Edge binding end349350 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {351 // 指定した位置でタイムラインを停止 (ミリ秒またはラベル)352 sym.stop(0);353354 });355 //Edge binding end356357 })("Apple72_flash");358 //Edge symbol end:'Apple72_flash'359360 //=========================================================361 362 //Edge symbol: 'Apple8_flash'363 (function(symbolName) { 364 365 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {366 sym.stop();367368 });369 //Edge binding end370371 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {372 // 指定した位置でタイムラインを停止 (ミリ秒またはラベル)373 sym.stop(0);374375 });376 //Edge binding end377378 })("Apple8_flash");379 //Edge symbol end:'Apple8_flash'380381 //=========================================================382 383 //Edge symbol: 'Apple9_flash'384 (function(symbolName) { 385 386 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {387 sym.stop();388389 });390 //Edge binding end391392 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {393 // 指定した位置でタイムラインを停止 (ミリ秒またはラベル)394 sym.stop(0);395396 });397 //Edge binding end398399 })("Apple9_flash");400 //Edge symbol end:'Apple9_flash'401402 //=========================================================403 404 //Edge symbol: 'Apple3_game'405 (function(symbolName) { 406 407 408409 Symbol.bindElementAction(compId, symbolName, "${_A3start_button}", "click", function(sym, e) {410 sym.getSymbol("Apple3_flash").play();411 var True = sym.getComposition().getStage().$("True").hide();412 var False = sym.getComposition().getStage().$("False").hide();413 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);414 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").play(250);415 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);416 sym.getComposition().getStage().$("button_cover2").hide();417418 });419 //Edge binding end420421 Symbol.bindElementAction(compId, symbolName, "${_A3dicision_button}", "click", function(sym, e) {422 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();423 424 deleteFalse(sym);425 426 if (txt=="?"){427 return; 428 }429 430 if(A3 == 3){431 var True = sym.getComposition().getStage().$("True").show();432 var button_cover = sym.getComposition().getStage().$("button_cover").show();433 COLLECT = COLLECT + 1;434 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);435 collect.play();436 if(COLLECT == 5){437 sym.getComposition().getStage().$("FINISH").show(); 438 BGM.stop();439 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);440 finish.play();441 }442 }else{443 var False = sym.getComposition().getStage().$("False").show();444 wrong_01.play();445 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);446 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);447 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();448 }449450 });451 //Edge binding end452453 Symbol.bindElementAction(compId, symbolName, "${_A3delete_button}", "click", function(sym, e) {454 A3 = 0;455 sym.getComposition().getStage().$("AnsNumber_text").html("?");456 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);457 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();458 sym.getComposition().getStage().$("button_cover2").show();459 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);460461 });462 //Edge binding end463464 Symbol.bindElementAction(compId, symbolName, "${_A3num9_cover}", "click", function(sym, e) {465 A3 = 9;466 sym.getComposition().getStage().$("AnsNumber_text").html("9");467 piyo.play();468 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);469 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();470 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);471472 });473 //Edge binding end474475 Symbol.bindElementAction(compId, symbolName, "${_A3num8_cover}", "click", function(sym, e) {476 A3 = 8;477 sym.getComposition().getStage().$("AnsNumber_text").html("8");478 piyo.play();479 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);480 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();481 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);482483 });484 //Edge binding end485486 Symbol.bindElementAction(compId, symbolName, "${_A3num7_cover}", "click", function(sym, e) {487 A3 = 7;488 sym.getComposition().getStage().$("AnsNumber_text").html("7");489 piyo.play();490 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);491 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();492 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);493494 });495 //Edge binding end496497 Symbol.bindElementAction(compId, symbolName, "${_A3num6_cover}", "click", function(sym, e) {498 A3 = 6;499 sym.getComposition().getStage().$("AnsNumber_text").html("6");500 piyo.play();501 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);502 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();503 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);504505 });506 //Edge binding end507508 Symbol.bindElementAction(compId, symbolName, "${_A3num5_cover}", "click", function(sym, e) {509 A3 = 5;510 sym.getComposition().getStage().$("AnsNumber_text").html("5");511 piyo.play();512 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);513 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();514 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);515516 });517 //Edge binding end518519 Symbol.bindElementAction(compId, symbolName, "${_A3num4_cover}", "click", function(sym, e) {520 A3 = 4;521 sym.getComposition().getStage().$("AnsNumber_text").html("4");522 piyo.play();523 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);524 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();525 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);526527 });528 //Edge binding end529530 Symbol.bindElementAction(compId, symbolName, "${_A3num3_cover}", "click", function(sym, e) {531 A3 = 3;532 sym.getComposition().getStage().$("AnsNumber_text").html("3");533 piyo.play();534 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);535 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();536 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);537538 });539 //Edge binding end540541 Symbol.bindElementAction(compId, symbolName, "${_A3num2_cover}", "click", function(sym, e) {542 A3 = 2;543 sym.getComposition().getStage().$("AnsNumber_text").html("2");544 piyo.play();545 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);546 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();547 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);548549 });550 //Edge binding end551552 Symbol.bindElementAction(compId, symbolName, "${_A3num1_cover}", "click", function(sym, e) {553 A3 = 1;554 sym.getComposition().getStage().$("AnsNumber_text").html("1");555 piyo.play();556 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);557 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();558 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);559560 });561 //Edge binding end562563 })("Apple3_game");564 //Edge symbol end:'Apple3_game'565566 //=========================================================567 568 //Edge symbol: 'Apple4_game'569 (function(symbolName) { 570 571 Symbol.bindElementAction(compId, symbolName, "${_A4start_button}", "click", function(sym, e) {572 sym.getSymbol("Apple4_flash").play();573 var True = sym.getComposition().getStage().$("True").hide();574 var False = sym.getComposition().getStage().$("False").hide();575 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);576 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").play(250);577 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);578 sym.getComposition().getStage().$("button_cover2").hide();579580 });581 //Edge binding end582583 Symbol.bindElementAction(compId, symbolName, "${_A4dicision_button}", "click", function(sym, e) {584 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();585 586 deleteFalse(sym);587 588 if (txt=="?"){589 return; 590 }591 592 if(A4 == 4){593 var True = sym.getComposition().getStage().$("True").show();594 var button_cover = sym.getComposition().getStage().$("button_cover").show();595 COLLECT = COLLECT + 1;596 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);597 collect.play();598 if(COLLECT == 5){599 sym.getComposition().getStage().$("FINISH").show(); 600 BGM.stop();601 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);602 finish.play();603 }604 }else{605 var False = sym.getComposition().getStage().$("False").show();606 wrong_01.play();607 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);608 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);609 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();610 }611612 });613 //Edge binding end614615 Symbol.bindElementAction(compId, symbolName, "${_A4delete_button}", "click", function(sym, e) {616 A4 = 0;617 sym.getComposition().getStage().$("AnsNumber_text").html("?");618 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);619 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();620 sym.getComposition().getStage().$("button_cover2").show();621 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);622623 });624 //Edge binding end625626 Symbol.bindElementAction(compId, symbolName, "${_A4num9_cover}", "click", function(sym, e) {627 A4 = 9;628 sym.getComposition().getStage().$("AnsNumber_text").html("9");629 piyo.play();630 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);631 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();632 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);633634 });635 //Edge binding end636637 Symbol.bindElementAction(compId, symbolName, "${_A4num8_cover}", "click", function(sym, e) {638 A4 = 8;639 sym.getComposition().getStage().$("AnsNumber_text").html("8");640 piyo.play();641 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);642 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();643 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);644645 });646 //Edge binding end647648 Symbol.bindElementAction(compId, symbolName, "${_A4num7_cover}", "click", function(sym, e) {649 A4 = 7;650 sym.getComposition().getStage().$("AnsNumber_text").html("7");651 piyo.play();652 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);653 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();654 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);655656 });657 //Edge binding end658659 Symbol.bindElementAction(compId, symbolName, "${_A4num6_cover}", "click", function(sym, e) {660 A4 = 6;661 sym.getComposition().getStage().$("AnsNumber_text").html("6");662 piyo.play();663 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);664 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();665 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);666667 });668 //Edge binding end669670 671672 Symbol.bindElementAction(compId, symbolName, "${_A4num4_cover}", "click", function(sym, e) {673 A4 = 4;674 sym.getComposition().getStage().$("AnsNumber_text").html("4");675 piyo.play();676 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);677 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();678 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);679680 });681 //Edge binding end682683 Symbol.bindElementAction(compId, symbolName, "${_A4num3_cover}", "click", function(sym, e) {684 A4 = 3;685 sym.getComposition().getStage().$("AnsNumber_text").html("3");686 piyo.play();687 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);688 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();689 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);690691 });692 //Edge binding end693694 Symbol.bindElementAction(compId, symbolName, "${_A4num2_cover}", "click", function(sym, e) {695 A4 = 2;696 sym.getComposition().getStage().$("AnsNumber_text").html("2");697 piyo.play();698 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);699 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();700 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);701702 });703 //Edge binding end704705 Symbol.bindElementAction(compId, symbolName, "${_A4num1_cover}", "click", function(sym, e) {706 A4 = 1;707 sym.getComposition().getStage().$("AnsNumber_text").html("1");708 piyo.play();709 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);710 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();711 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);712713 });714 //Edge binding end715716 Symbol.bindElementAction(compId, symbolName, "${_A4num5_cover}", "click", function(sym, e) {717 A4 = 6;718 sym.getComposition().getStage().$("AnsNumber_text").html("5");719 piyo.play();720 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);721 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();722 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);723724 });725 //Edge binding end726727 })("Apple4_game");728 //Edge symbol end:'Apple4_game'729730 //=========================================================731 732 //Edge symbol: 'Apple51_game'733 (function(symbolName) { 734 735 Symbol.bindElementAction(compId, symbolName, "${_A51start_button}", "click", function(sym, e) {736 sym.getSymbol("Apple51_flash").play();737 var True = sym.getComposition().getStage().$("True").hide();738 var False = sym.getComposition().getStage().$("False").hide();739 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);740 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").play(250);741 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);742 sym.getComposition().getStage().$("button_cover2").hide();743744 });745 //Edge binding end746747 Symbol.bindElementAction(compId, symbolName, "${_A51dicision_button}", "click", function(sym, e) {748 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();749 750 deleteFalse(sym);751 752 if (txt=="?"){753 return; 754 }755 756 if(A51 == 5){757 var True = sym.getComposition().getStage().$("True").show();758 var button_cover = sym.getComposition().getStage().$("button_cover").show();759 COLLECT = COLLECT + 1;760 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);761 collect.play();762 if(COLLECT == 5){763 sym.getComposition().getStage().$("FINISH").show(); 764 BGM.stop();765 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);766 finish.play();767 }768 }else{769 var False = sym.getComposition().getStage().$("False").show();770 wrong_01.play();771 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);772 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);773 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();774 }775776 });777 //Edge binding end778779 Symbol.bindElementAction(compId, symbolName, "${_A51delete_button}", "click", function(sym, e) {780 A51 = 0;781 sym.getComposition().getStage().$("AnsNumber_text").html("?");782 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);783 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();784 sym.getComposition().getStage().$("button_cover2").show();785 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);786787 });788 //Edge binding end789790 Symbol.bindElementAction(compId, symbolName, "${_A51num9_cover}", "click", function(sym, e) {791 A51 = 9;792 sym.getComposition().getStage().$("AnsNumber_text").html("9");793 piyo.play();794 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);795 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();796 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);797798 });799 //Edge binding end800801 Symbol.bindElementAction(compId, symbolName, "${_A51num8_cover}", "click", function(sym, e) {802 A51 = 8;803 sym.getComposition().getStage().$("AnsNumber_text").html("8");804 piyo.play();805 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);806 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();807 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);808809 });810 //Edge binding end811812 Symbol.bindElementAction(compId, symbolName, "${_A51num7_cover}", "click", function(sym, e) {813 A51 = 7;814 sym.getComposition().getStage().$("AnsNumber_text").html("7");815 piyo.play();816 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);817 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();818 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);819820 });821 //Edge binding end822823 Symbol.bindElementAction(compId, symbolName, "${_A51num6_cover}", "click", function(sym, e) {824 A51 = 6;825 sym.getComposition().getStage().$("AnsNumber_text").html("6");826 piyo.play();827 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);828 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();829 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);830831 });832 //Edge binding end833834 Symbol.bindElementAction(compId, symbolName, "${_A51num5_cover}", "click", function(sym, e) {835 A51 = 5;836 sym.getComposition().getStage().$("AnsNumber_text").html("5");837 piyo.play();838 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);839 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();840 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);841842 });843 //Edge binding end844845 Symbol.bindElementAction(compId, symbolName, "${_A51num4_cover}", "click", function(sym, e) {846 A51 = 4;847 sym.getComposition().getStage().$("AnsNumber_text").html("4");848 piyo.play();849 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);850 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();851 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);852853 });854 //Edge binding end855856 Symbol.bindElementAction(compId, symbolName, "${_A51num3_cover}", "click", function(sym, e) {857 A51 = 3;858 sym.getComposition().getStage().$("AnsNumber_text").html("3");859 piyo.play();860 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);861 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();862 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);863864 });865 //Edge binding end866867 Symbol.bindElementAction(compId, symbolName, "${_A51num2_cover}", "click", function(sym, e) {868 A51 = 2;869 sym.getComposition().getStage().$("AnsNumber_text").html("2");870 piyo.play();871 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);872 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();873 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);874875 });876 //Edge binding end877878 Symbol.bindElementAction(compId, symbolName, "${_A51num1_cover}", "click", function(sym, e) {879 A51 = 1;880 sym.getComposition().getStage().$("AnsNumber_text").html("1");881 piyo.play();882 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);883 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();884 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);885886 });887 //Edge binding end888889 })("Apple51_game");890 //Edge symbol end:'Apple51_game'891892 //=========================================================893 894 //Edge symbol: 'Apple52_game'895 (function(symbolName) { 896 897 Symbol.bindElementAction(compId, symbolName, "${_A52start_button}", "click", function(sym, e) {898 sym.getSymbol("Apple52_flash").play();899 var True = sym.getComposition().getStage().$("True").hide();900 var False = sym.getComposition().getStage().$("False").hide();901 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);902 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").play(250);903 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);904 sym.getComposition().getStage().$("button_cover2").hide();905906 });907 //Edge binding end908909 Symbol.bindElementAction(compId, symbolName, "${_A52dicision_button}", "click", function(sym, e) {910 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();911 912 deleteFalse(sym);913 914 if (txt=="?"){915 return; 916 }917 918 if(A52 == 5){919 var True = sym.getComposition().getStage().$("True").show();920 var button_cover = sym.getComposition().getStage().$("button_cover").show();921 COLLECT = COLLECT + 1;922 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);923 collect.play();924 if(COLLECT == 5){925 sym.getComposition().getStage().$("FINISH").show(); 926 BGM.stop();927 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);928 finish.play();929 }930 }else{931 var False = sym.getComposition().getStage().$("False").show();932 wrong_01.play();933 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);934 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);935 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();936 }937938 });939 //Edge binding end940941 Symbol.bindElementAction(compId, symbolName, "${_A52delete_button}", "click", function(sym, e) {942 A52 = 0;943 sym.getComposition().getStage().$("AnsNumber_text").html("?");944 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);945 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();946 sym.getComposition().getStage().$("button_cover2").show();947 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);948949 });950 //Edge binding end951952 Symbol.bindElementAction(compId, symbolName, "${_A52num9_cover}", "click", function(sym, e) {953 A52 = 9;954 sym.getComposition().getStage().$("AnsNumber_text").html("9");955 piyo.play();956 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);957 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();958 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);959960 });961 //Edge binding end962963 Symbol.bindElementAction(compId, symbolName, "${_A52num8_cover}", "click", function(sym, e) {964 A52 = 8;965 sym.getComposition().getStage().$("AnsNumber_text").html("8");966 piyo.play();967 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);968 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();969 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);970971 });972 //Edge binding end973974 Symbol.bindElementAction(compId, symbolName, "${_A52num7_cover}", "click", function(sym, e) {975 A52 = 7;976 sym.getComposition().getStage().$("AnsNumber_text").html("7");977 piyo.play();978 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);979 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();980 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);981982 });983 //Edge binding end984985 Symbol.bindElementAction(compId, symbolName, "${_A52num6_cover}", "click", function(sym, e) {986 A52 = 6;987 sym.getComposition().getStage().$("AnsNumber_text").html("6");988 piyo.play();989 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);990 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();991 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);992993 });994 //Edge binding end995996 Symbol.bindElementAction(compId, symbolName, "${_A52num5_cover}", "click", function(sym, e) {997 A52 = 5;998 sym.getComposition().getStage().$("AnsNumber_text").html("5");999 piyo.play();1000 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1001 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1002 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);10031004 });1005 //Edge binding end10061007 Symbol.bindElementAction(compId, symbolName, "${_A52num4_cover}", "click", function(sym, e) {1008 A52 = 4;1009 sym.getComposition().getStage().$("AnsNumber_text").html("4");1010 piyo.play();1011 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1012 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1013 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);10141015 });1016 //Edge binding end10171018 Symbol.bindElementAction(compId, symbolName, "${_A52num3_cover}", "click", function(sym, e) {1019 A52 = 3;1020 sym.getComposition().getStage().$("AnsNumber_text").html("3");1021 piyo.play();1022 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1023 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1024 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);10251026 });1027 //Edge binding end10281029 Symbol.bindElementAction(compId, symbolName, "${_A52num2_cover}", "click", function(sym, e) {1030 A52 = 2;1031 sym.getComposition().getStage().$("AnsNumber_text").html("2");1032 piyo.play();1033 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1034 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1035 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);10361037 });1038 //Edge binding end10391040 Symbol.bindElementAction(compId, symbolName, "${_A52num1_cover}", "click", function(sym, e) {1041 A52 = 1;1042 sym.getComposition().getStage().$("AnsNumber_text").html("1");1043 piyo.play();1044 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1045 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1046 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);10471048 });1049 //Edge binding end10501051 })("Apple52_game");1052 //Edge symbol end:'Apple52_game'10531054 //=========================================================1055 1056 //Edge symbol: 'Apple61_game'1057 (function(symbolName) { 1058 1059 Symbol.bindElementAction(compId, symbolName, "${_A61start_button}", "click", function(sym, e) {1060 sym.getSymbol("Apple61_flash").play();1061 var True = sym.getComposition().getStage().$("True").hide();1062 var False = sym.getComposition().getStage().$("False").hide();1063 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);1064 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").play(250);1065 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1066 sym.getComposition().getStage().$("button_cover2").hide();10671068 });1069 //Edge binding end10701071 Symbol.bindElementAction(compId, symbolName, "${_A61dicision_button}", "click", function(sym, e) {1072 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();1073 1074 deleteFalse(sym);1075 1076 if (txt=="?"){1077 return; 1078 }1079 1080 if(A61 == 6){1081 var True = sym.getComposition().getStage().$("True").show();1082 var button_cover = sym.getComposition().getStage().$("button_cover").show();1083 COLLECT = COLLECT + 1;1084 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1085 collect.play();1086 if(COLLECT == 5){1087 sym.getComposition().getStage().$("FINISH").show(); 1088 BGM.stop();1089 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);1090 finish.play();1091 }1092 }else{1093 var False = sym.getComposition().getStage().$("False").show();1094 wrong_01.play();1095 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1096 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1097 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1098 }10991100 });1101 //Edge binding end11021103 Symbol.bindElementAction(compId, symbolName, "${_A61delete_button}", "click", function(sym, e) {1104 A61 = 0;1105 sym.getComposition().getStage().$("AnsNumber_text").html("?");1106 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1107 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1108 sym.getComposition().getStage().$("button_cover2").show();1109 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);11101111 });1112 //Edge binding end11131114 Symbol.bindElementAction(compId, symbolName, "${_A61num9_cover}", "click", function(sym, e) {1115 A61 = 9;1116 sym.getComposition().getStage().$("AnsNumber_text").html("9");1117 piyo.play();1118 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1119 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1120 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);11211122 });1123 //Edge binding end11241125 Symbol.bindElementAction(compId, symbolName, "${_A61num8_cover}", "click", function(sym, e) {1126 A61 = 8;1127 sym.getComposition().getStage().$("AnsNumber_text").html("8");1128 piyo.play();1129 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1130 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1131 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);11321133 });1134 //Edge binding end11351136 Symbol.bindElementAction(compId, symbolName, "${_A61num7_cover}", "click", function(sym, e) {1137 A61 = 7;1138 sym.getComposition().getStage().$("AnsNumber_text").html("7");1139 piyo.play();1140 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1141 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1142 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);11431144 });1145 //Edge binding end11461147 Symbol.bindElementAction(compId, symbolName, "${_A61num6_cover}", "click", function(sym, e) {1148 A61 = 6;1149 sym.getComposition().getStage().$("AnsNumber_text").html("6");1150 piyo.play();1151 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1152 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1153 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);11541155 });1156 //Edge binding end11571158 Symbol.bindElementAction(compId, symbolName, "${_A61num5_cover}", "click", function(sym, e) {1159 A61 = 5;1160 sym.getComposition().getStage().$("AnsNumber_text").html("5");1161 piyo.play();1162 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1163 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1164 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);11651166 });1167 //Edge binding end11681169 Symbol.bindElementAction(compId, symbolName, "${_A61num4_cover}", "click", function(sym, e) {1170 A61 = 4;1171 sym.getComposition().getStage().$("AnsNumber_text").html("4");1172 piyo.play();1173 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1174 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1175 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);11761177 });1178 //Edge binding end11791180 Symbol.bindElementAction(compId, symbolName, "${_A61num3_cover}", "click", function(sym, e) {1181 A61 = 3;1182 sym.getComposition().getStage().$("AnsNumber_text").html("3");1183 piyo.play();1184 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1185 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1186 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);11871188 });1189 //Edge binding end11901191 Symbol.bindElementAction(compId, symbolName, "${_A61num2_cover}", "click", function(sym, e) {1192 A61 = 2;1193 sym.getComposition().getStage().$("AnsNumber_text").html("2");1194 piyo.play();1195 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1196 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1197 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);11981199 });1200 //Edge binding end12011202 Symbol.bindElementAction(compId, symbolName, "${_A61num1_cover}", "click", function(sym, e) {1203 A61 = 1;1204 sym.getComposition().getStage().$("AnsNumber_text").html("1");1205 piyo.play();1206 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1207 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1208 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);12091210 });1211 //Edge binding end12121213 })("Apple61_game");1214 //Edge symbol end:'Apple61_game'12151216 //=========================================================1217 1218 //Edge symbol: 'Apple62_game'1219 (function(symbolName) { 1220 1221 Symbol.bindElementAction(compId, symbolName, "${_A62start_button}", "click", function(sym, e) {1222 sym.getSymbol("Apple62_flash").play();1223 var True = sym.getComposition().getStage().$("True").hide();1224 var False = sym.getComposition().getStage().$("False").hide();1225 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);1226 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1227 sym.getComposition().getStage().$("button_cover2").hide();12281229 });1230 //Edge binding end12311232 Symbol.bindElementAction(compId, symbolName, "${_A62dicision_button}", "click", function(sym, e) {1233 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();1234 1235 deleteFalse(sym);1236 1237 if (txt=="?"){1238 return; 1239 }1240 1241 if(A62 == 6){1242 var True = sym.getComposition().getStage().$("True").show();1243 var button_cover = sym.getComposition().getStage().$("button_cover").show();1244 COLLECT = COLLECT + 1;1245 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1246 collect.play();1247 if(COLLECT == 5){1248 sym.getComposition().getStage().$("FINISH").show(); 1249 BGM.stop();1250 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);1251 finish.play();1252 }1253 }else{1254 var False = sym.getComposition().getStage().$("False").show();1255 wrong_01.play();1256 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1257 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1258 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1259 }12601261 });1262 //Edge binding end12631264 Symbol.bindElementAction(compId, symbolName, "${_A62delete_button}", "click", function(sym, e) {1265 A62 = 0;1266 sym.getComposition().getStage().$("AnsNumber_text").html("?");1267 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1268 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1269 sym.getComposition().getStage().$("button_cover2").show();1270 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);12711272 });1273 //Edge binding end12741275 Symbol.bindElementAction(compId, symbolName, "${_A62num8_cover}", "click", function(sym, e) {1276 A62 = 8;1277 sym.getComposition().getStage().$("AnsNumber_text").html("8");1278 piyo.play();1279 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1280 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1281 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);12821283 });1284 //Edge binding end12851286 Symbol.bindElementAction(compId, symbolName, "${_A62num9_cover}", "click", function(sym, e) {1287 A62 = 9;1288 sym.getComposition().getStage().$("AnsNumber_text").html("9");1289 piyo.play();1290 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1291 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1292 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);12931294 });1295 //Edge binding end12961297 Symbol.bindElementAction(compId, symbolName, "${_A62num7_cover}", "click", function(sym, e) {1298 A62 = 7;1299 sym.getComposition().getStage().$("AnsNumber_text").html("7");1300 piyo.play();1301 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1302 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1303 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);13041305 });1306 //Edge binding end13071308 Symbol.bindElementAction(compId, symbolName, "${_A62num6_cover}", "click", function(sym, e) {1309 A62 = 6;1310 sym.getComposition().getStage().$("AnsNumber_text").html("6");1311 piyo.play();1312 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1313 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1314 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);13151316 });1317 //Edge binding end13181319 Symbol.bindElementAction(compId, symbolName, "${_A62num5_cover}", "click", function(sym, e) {1320 A62 = 5;1321 sym.getComposition().getStage().$("AnsNumber_text").html("5");1322 piyo.play();1323 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1324 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1325 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);13261327 });1328 //Edge binding end13291330 Symbol.bindElementAction(compId, symbolName, "${_A62num4_cover}", "click", function(sym, e) {1331 A62 = 4;1332 sym.getComposition().getStage().$("AnsNumber_text").html("4");1333 piyo.play();1334 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1335 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1336 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);13371338 });1339 //Edge binding end13401341 Symbol.bindElementAction(compId, symbolName, "${_A62num3_cover}", "click", function(sym, e) {1342 A62 = 3;1343 sym.getComposition().getStage().$("AnsNumber_text").html("3");1344 piyo.play();1345 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1346 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1347 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);13481349 });1350 //Edge binding end13511352 Symbol.bindElementAction(compId, symbolName, "${_A62num2_cover}", "click", function(sym, e) {1353 A62 = 2;1354 sym.getComposition().getStage().$("AnsNumber_text").html("2");1355 piyo.play();1356 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1357 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1358 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);13591360 });1361 //Edge binding end13621363 Symbol.bindElementAction(compId, symbolName, "${_A62num1_cover}", "click", function(sym, e) {1364 A62 = 6;1365 sym.getComposition().getStage().$("AnsNumber_text").html("1");1366 piyo.play();1367 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1368 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1369 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);13701371 });1372 //Edge binding end13731374 })("Apple62_game");1375 //Edge symbol end:'Apple62_game'13761377 //=========================================================1378 1379 //Edge symbol: 'Apple71_game'1380 (function(symbolName) { 1381 1382 Symbol.bindElementAction(compId, symbolName, "${_A71start_button}", "click", function(sym, e) {1383 sym.getSymbol("Apple71_flash").play();1384 var True = sym.getComposition().getStage().$("True").hide();1385 var False = sym.getComposition().getStage().$("False").hide();1386 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);1387 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").play(250);1388 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1389 sym.getComposition().getStage().$("button_cover2").hide();13901391 });1392 //Edge binding end13931394 Symbol.bindElementAction(compId, symbolName, "${_A71dicision_button}", "click", function(sym, e) {1395 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();1396 1397 deleteFalse(sym);1398 1399 if (txt=="?"){1400 return; 1401 }1402 1403 if(A71 == 7){1404 var True = sym.getComposition().getStage().$("True").show();1405 var button_cover = sym.getComposition().getStage().$("button_cover").show();1406 COLLECT = COLLECT + 1;1407 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1408 collect.play();1409 if(COLLECT == 5){ 1410 sym.getComposition().getStage().$("FINISH").show(); 1411 BGM.stop();1412 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);1413 finish.play();1414 }1415 }else{1416 var False = sym.getComposition().getStage().$("False").show();1417 wrong_01.play();1418 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1419 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1420 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1421 }14221423 });1424 //Edge binding end14251426 Symbol.bindElementAction(compId, symbolName, "${_A71delete_button}", "click", function(sym, e) {1427 A71 = 0;1428 sym.getComposition().getStage().$("AnsNumber_text").html("?");1429 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1430 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1431 sym.getComposition().getStage().$("button_cover2").show();1432 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);14331434 });1435 //Edge binding end14361437 Symbol.bindElementAction(compId, symbolName, "${_A71num9_cover}", "click", function(sym, e) {1438 A71 = 9;1439 sym.getComposition().getStage().$("AnsNumber_text").html("9");1440 piyo.play();1441 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1442 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1443 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);14441445 });1446 //Edge binding end14471448 Symbol.bindElementAction(compId, symbolName, "${_A71num8_cover}", "click", function(sym, e) {1449 A71 = 8;1450 sym.getComposition().getStage().$("AnsNumber_text").html("8");1451 piyo.play();1452 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1453 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1454 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);14551456 });1457 //Edge binding end14581459 Symbol.bindElementAction(compId, symbolName, "${_A71num7_cover}", "click", function(sym, e) {1460 A71 = 7;1461 sym.getComposition().getStage().$("AnsNumber_text").html("7");1462 piyo.play();1463 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1464 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1465 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);14661467 });1468 //Edge binding end14691470 Symbol.bindElementAction(compId, symbolName, "${_A71num6_cover}", "click", function(sym, e) {1471 A71 = 6;1472 sym.getComposition().getStage().$("AnsNumber_text").html("6");1473 piyo.play();1474 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1475 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1476 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);14771478 });1479 //Edge binding end14801481 Symbol.bindElementAction(compId, symbolName, "${_A71num5_cover}", "click", function(sym, e) {1482 A71 = 5;1483 sym.getComposition().getStage().$("AnsNumber_text").html("5");1484 piyo.play();1485 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1486 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1487 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);14881489 });1490 //Edge binding end14911492 Symbol.bindElementAction(compId, symbolName, "${_A71num4_cover}", "click", function(sym, e) {1493 A71 = 4;1494 sym.getComposition().getStage().$("AnsNumber_text").html("4");1495 piyo.play();1496 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1497 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1498 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);14991500 });1501 //Edge binding end15021503 Symbol.bindElementAction(compId, symbolName, "${_A71num3_cover}", "click", function(sym, e) {1504 A71 = 3;1505 sym.getComposition().getStage().$("AnsNumber_text").html("3");1506 piyo.play();1507 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1508 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1509 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);15101511 });1512 //Edge binding end15131514 Symbol.bindElementAction(compId, symbolName, "${_A71num2_cover}", "click", function(sym, e) {1515 A71 = 2;1516 sym.getComposition().getStage().$("AnsNumber_text").html("2");1517 piyo.play();1518 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1519 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1520 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);15211522 });1523 //Edge binding end15241525 Symbol.bindElementAction(compId, symbolName, "${_A71num1_cover}", "click", function(sym, e) {1526 A71 = 1;1527 sym.getComposition().getStage().$("AnsNumber_text").html("1");1528 piyo.play();1529 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1530 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1531 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);15321533 });1534 //Edge binding end15351536 })("Apple71_game");1537 //Edge symbol end:'Apple71_game'15381539 //=========================================================1540 1541 //Edge symbol: 'Apple72_game'1542 (function(symbolName) { 1543 1544 Symbol.bindElementAction(compId, symbolName, "${_A72start_button}", "click", function(sym, e) {1545 sym.getSymbol("Apple72_flash").play();1546 var True = sym.getComposition().getStage().$("True").hide();1547 var False = sym.getComposition().getStage().$("False").hide();1548 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);1549 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").play(250);1550 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1551 sym.getComposition().getStage().$("button_cover2").hide();15521553 });1554 //Edge binding end15551556 Symbol.bindElementAction(compId, symbolName, "${_A72dicision_button}", "click", function(sym, e) {1557 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();1558 1559 deleteFalse(sym);1560 1561 if (txt=="?"){1562 return; 1563 }1564 1565 if(A72 == 7){1566 var True = sym.getComposition().getStage().$("True").show();1567 var button_cover = sym.getComposition().getStage().$("button_cover").show();1568 COLLECT = COLLECT + 1;1569 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1570 collect.play();1571 if(COLLECT == 5){1572 sym.getComposition().getStage().$("FINISH").show(); 1573 BGM.stop();1574 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);1575 finish.play();1576 }1577 }else{1578 var False = sym.getComposition().getStage().$("False").show();1579 wrong_01.play();1580 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1581 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1582 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1583 }15841585 });1586 //Edge binding end15871588 Symbol.bindElementAction(compId, symbolName, "${_A72delete_button}", "click", function(sym, e) {1589 A72 = 0;1590 sym.getComposition().getStage().$("AnsNumber_text").html("?");1591 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1592 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1593 sym.getComposition().getStage().$("button_cover2").show();1594 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);15951596 });1597 //Edge binding end15981599 Symbol.bindElementAction(compId, symbolName, "${_A72num9_cover}", "click", function(sym, e) {1600 A72 = 9;1601 sym.getComposition().getStage().$("AnsNumber_text").html("9");1602 piyo.play();1603 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1604 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1605 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);16061607 });1608 //Edge binding end16091610 Symbol.bindElementAction(compId, symbolName, "${_A72num8_cover}", "click", function(sym, e) {1611 A72 = 8;1612 sym.getComposition().getStage().$("AnsNumber_text").html("8");1613 piyo.play();1614 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1615 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1616 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);16171618 });1619 //Edge binding end16201621 Symbol.bindElementAction(compId, symbolName, "${_A72num7_cover}", "click", function(sym, e) {1622 A72 = 7;1623 sym.getComposition().getStage().$("AnsNumber_text").html("7");1624 piyo.play();1625 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1626 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1627 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);16281629 });1630 //Edge binding end16311632 Symbol.bindElementAction(compId, symbolName, "${_A72num6_cove}", "click", function(sym, e) {1633 A72 = 6;1634 sym.getComposition().getStage().$("AnsNumber_text").html("6");1635 piyo.play();1636 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1637 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1638 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);16391640 });1641 //Edge binding end16421643 Symbol.bindElementAction(compId, symbolName, "${_A72num5_cover}", "click", function(sym, e) {1644 A72 = 5;1645 sym.getComposition().getStage().$("AnsNumber_text").html("5");1646 piyo.play();1647 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1648 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1649 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);16501651 });1652 //Edge binding end16531654 Symbol.bindElementAction(compId, symbolName, "${_A72num4_cover}", "click", function(sym, e) {1655 A72 = 4;1656 sym.getComposition().getStage().$("AnsNumber_text").html("4");1657 piyo.play();1658 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1659 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1660 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);16611662 });1663 //Edge binding end16641665 Symbol.bindElementAction(compId, symbolName, "${_A72num3_cover}", "click", function(sym, e) {1666 A72 = 3;1667 sym.getComposition().getStage().$("AnsNumber_text").html("3");1668 piyo.play();1669 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1670 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1671 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);16721673 });1674 //Edge binding end16751676 Symbol.bindElementAction(compId, symbolName, "${_A72num2_cover}", "click", function(sym, e) {1677 A72 = 2;1678 sym.getComposition().getStage().$("AnsNumber_text").html("2");1679 piyo.play();1680 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1681 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1682 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);16831684 });1685 //Edge binding end16861687 Symbol.bindElementAction(compId, symbolName, "${_A72num1_cover}", "click", function(sym, e) {1688 A72 = 1;1689 sym.getComposition().getStage().$("AnsNumber_text").html("1");1690 piyo.play();1691 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1692 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1693 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);16941695 });1696 //Edge binding end16971698 })("Apple72_game");1699 //Edge symbol end:'Apple72_game'17001701 //=========================================================1702 1703 //Edge symbol: 'Apple8_game'1704 (function(symbolName) { 1705 1706 Symbol.bindElementAction(compId, symbolName, "${_A8start_button}", "click", function(sym, e) {1707 sym.getSymbol("Apple8_flash").play();1708 var True = sym.getComposition().getStage().$("True").hide();1709 var False = sym.getComposition().getStage().$("False").hide();1710 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);1711 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").play(250);1712 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1713 sym.getComposition().getStage().$("button_cover2").hide();17141715 });1716 //Edge binding end17171718 Symbol.bindElementAction(compId, symbolName, "${_A8dicision_button}", "click", function(sym, e) {1719 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();1720 1721 deleteFalse(sym);1722 1723 if (txt=="?"){1724 return; 1725 }1726 1727 if(A8 == 8){1728 var True = sym.getComposition().getStage().$("True").show();1729 var button_cover = sym.getComposition().getStage().$("button_cover").show();1730 COLLECT = COLLECT + 1;1731 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1732 collect.play();1733 if(COLLECT == 5){1734 sym.getComposition().getStage().$("FINISH").show(); 1735 BGM.stop();1736 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);1737 finish.play();1738 }1739 }else{1740 var False = sym.getComposition().getStage().$("False").show();1741 wrong_01.play();1742 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1743 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1744 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1745 }17461747 });1748 //Edge binding end17491750 Symbol.bindElementAction(compId, symbolName, "${_A8delete_button}", "click", function(sym, e) {1751 A8 = 0;1752 sym.getComposition().getStage().$("AnsNumber_text").html("?");1753 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1754 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1755 sym.getComposition().getStage().$("button_cover2").show();1756 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);17571758 });1759 //Edge binding end17601761 Symbol.bindElementAction(compId, symbolName, "${_A8num9_cover}", "click", function(sym, e) {1762 A8 = 9;1763 sym.getComposition().getStage().$("AnsNumber_text").html("9");1764 piyo.play();1765 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1766 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1767 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);17681769 });1770 //Edge binding end17711772 Symbol.bindElementAction(compId, symbolName, "${_A8num8_cover}", "click", function(sym, e) {1773 A8 = 8;1774 sym.getComposition().getStage().$("AnsNumber_text").html("8");1775 piyo.play();1776 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1777 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1778 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);17791780 });1781 //Edge binding end17821783 Symbol.bindElementAction(compId, symbolName, "${_A8num7_cover}", "click", function(sym, e) {1784 A8 = 7;1785 sym.getComposition().getStage().$("AnsNumber_text").html("7");1786 piyo.play();1787 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1788 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1789 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);17901791 });1792 //Edge binding end17931794 Symbol.bindElementAction(compId, symbolName, "${_A8num6_cover}", "click", function(sym, e) {1795 A8 = 6;1796 sym.getComposition().getStage().$("AnsNumber_text").html("6");1797 piyo.play();1798 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1799 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1800 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);18011802 });1803 //Edge binding end18041805 Symbol.bindElementAction(compId, symbolName, "${_A8num5_cover}", "click", function(sym, e) {1806 A8 = 5;1807 sym.getComposition().getStage().$("AnsNumber_text").html("5");1808 piyo.play();1809 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1810 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1811 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);18121813 });1814 //Edge binding end18151816 Symbol.bindElementAction(compId, symbolName, "${_A8num4_cover}", "click", function(sym, e) {1817 A8 = 4;1818 sym.getComposition().getStage().$("AnsNumber_text").html("4");1819 piyo.play();1820 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1821 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1822 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);18231824 });1825 //Edge binding end18261827 Symbol.bindElementAction(compId, symbolName, "${_A8num3_cover}", "click", function(sym, e) {1828 A8 = 3;1829 sym.getComposition().getStage().$("AnsNumber_text").html("3");1830 piyo.play();1831 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1832 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1833 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);18341835 });1836 //Edge binding end18371838 Symbol.bindElementAction(compId, symbolName, "${_A8num2_cover}", "click", function(sym, e) {1839 A8 = 2;1840 sym.getComposition().getStage().$("AnsNumber_text").html("2");1841 piyo.play();1842 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1843 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1844 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);18451846 });1847 //Edge binding end18481849 Symbol.bindElementAction(compId, symbolName, "${_A8num1_cover}", "click", function(sym, e) {1850 A8 = 1;1851 sym.getComposition().getStage().$("AnsNumber_text").html("1");1852 piyo.play();1853 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1854 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1855 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);18561857 });1858 //Edge binding end18591860 })("Apple8_game");1861 //Edge symbol end:'Apple8_game'18621863 //=========================================================1864 1865 //Edge symbol: 'Apple9_game'1866 (function(symbolName) { 1867 1868 Symbol.bindElementAction(compId, symbolName, "${_A9start_button}", "click", function(sym, e) {1869 sym.getSymbol("Apple9_flash").play();1870 var True = sym.getComposition().getStage().$("True").hide();1871 var False = sym.getComposition().getStage().$("False").hide();1872 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);1873 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").play(250);1874 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1875 sym.getComposition().getStage().$("button_cover2").hide();18761877 });1878 //Edge binding end18791880 Symbol.bindElementAction(compId, symbolName, "${_A9num9_cover}", "click", function(sym, e) {1881 A9 = 9;1882 sym.getComposition().getStage().$("AnsNumber_text").html("9");1883 piyo.play();1884 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1885 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1886 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);18871888 });1889 //Edge binding end18901891 Symbol.bindElementAction(compId, symbolName, "${_A9num8_cover}", "click", function(sym, e) {1892 A9 = 8;1893 sym.getComposition().getStage().$("AnsNumber_text").html("8");1894 piyo.play();1895 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1896 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1897 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);18981899 });1900 //Edge binding end19011902 Symbol.bindElementAction(compId, symbolName, "${_A9num7_cover}", "click", function(sym, e) {1903 A9 = 7;1904 sym.getComposition().getStage().$("AnsNumber_text").html("7");1905 piyo.play();1906 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1907 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1908 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);19091910 });1911 //Edge binding end19121913 Symbol.bindElementAction(compId, symbolName, "${_A9num6_cover}", "click", function(sym, e) {1914 A9 = 6;1915 sym.getComposition().getStage().$("AnsNumber_text").html("6");1916 piyo.play();1917 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1918 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1919 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);19201921 });1922 //Edge binding end19231924 Symbol.bindElementAction(compId, symbolName, "${_A9num5_cover}", "click", function(sym, e) {1925 A9 = 5;1926 sym.getComposition().getStage().$("AnsNumber_text").html("5");1927 piyo.play();1928 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1929 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1930 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);19311932 });1933 //Edge binding end19341935 Symbol.bindElementAction(compId, symbolName, "${_A9num4_cover}", "click", function(sym, e) {1936 A9 = 4;1937 sym.getComposition().getStage().$("AnsNumber_text").html("4");1938 piyo.play();1939 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1940 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1941 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);19421943 });1944 //Edge binding end19451946 Symbol.bindElementAction(compId, symbolName, "${_A9num3_cover}", "click", function(sym, e) {1947 A9 = 3;1948 sym.getComposition().getStage().$("AnsNumber_text").html("3");1949 piyo.play();1950 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1951 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1952 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);19531954 });1955 //Edge binding end19561957 Symbol.bindElementAction(compId, symbolName, "${_A9num2_cover}", "click", function(sym, e) {1958 A9 = 2;1959 sym.getComposition().getStage().$("AnsNumber_text").html("2");1960 piyo.play();1961 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1962 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1963 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);19641965 });1966 //Edge binding end19671968 Symbol.bindElementAction(compId, symbolName, "${_A9num1_cover}", "click", function(sym, e) {1969 A9 = 1;1970 sym.getComposition().getStage().$("AnsNumber_text").html("1");1971 piyo.play();1972 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);1973 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").play();1974 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").stop(0);19751976 });1977 //Edge binding end19781979 Symbol.bindElementAction(compId, symbolName, "${_A9delete_button}", "click", function(sym, e) {1980 A9 = 0;1981 sym.getComposition().getStage().$("AnsNumber_text").html("?");1982 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);1983 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();1984 sym.getComposition().getStage().$("button_cover2").show();1985 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);19861987 });1988 //Edge binding end19891990 Symbol.bindElementAction(compId, symbolName, "${_A9dicision_button}", "click", function(sym, e) {1991 var txt=sym.getComposition().getStage().$("AnsNumber_text").html();1992 1993 deleteFalse(sym);1994 1995 if (txt=="?"){1996 return; 1997 }1998 1999 if(A9 == 9){2000 var True = sym.getComposition().getStage().$("True").show();2001 COLLECT = COLLECT + 1;2002 var button_cover = sym.getComposition().getStage().$("button_cover").show();2003 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);2004 collect.play();2005 if(COLLECT == 5){2006 sym.getComposition().getStage().$("FINISH").show();2007 var FINISH = sym.getComposition().getStage().getSymbol("FINISH").play(250);2008 BGM.stop();2009 finish.play();2010 }2011 }else{2012 var False = sym.getComposition().getStage().$("False").show();2013 wrong_01.play();2014 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("dicision_button").stop(0);2015 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("number_background").stop(0);2016 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();2017 }20182019 });2020 //Edge binding end20212022 })("Apple9_game");2023 //Edge symbol end:'Apple9_game'20242025 //=========================================================2026 2027 //Edge symbol: 'GAME'2028 (function(symbolName) { 2029 2030 })("GAME");2031 //Edge symbol end:'GAME'20322033 //=========================================================2034 2035 //Edge symbol: 'False'2036 (function(symbolName) { 2037 2038 })("False");2039 //Edge symbol end:'False'20402041 //=========================================================2042 2043 //Edge symbol: 'FINISH'2044 (function(symbolName) { 2045 2046 20472048 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {2049 sym.stop();20502051 });2052 //Edge binding end20532054 })("FINISH");2055 //Edge symbol end:'FINISH'20562057 //=========================================================2058 2059 //Edge symbol: 'True'2060 (function(symbolName) { 2061 Symbol.bindElementAction(compId, symbolName, "${_NEXT_cover}", "click", function(sym, e) {2062 /* 正解画面を隠し、入力された数字を消す。 */2063 var True = sym.getComposition().getStage().$("True").hide();2064 var AnsNumver_text = sym.getComposition().getStage().$("AnsNumber_text").html("?");2065 var button_cover = sym.getComposition().getStage().$("button_cover").hide();2066 sym.getComposition().getStage().$("button_cover2").show();2067 2068 2069 /* 問題を隠す */2070 var Apple3_game = sym.getComposition().getStage().$("Apple3_game").hide();2071 var Apple4_game = sym.getComposition().getStage().$("Apple4_game").hide();2072 var Apple51_game = sym.getComposition().getStage().$("Apple51_game").hide();2073 var Apple52_game = sym.getComposition().getStage().$("Apple52_game").hide();2074 var Apple61_game = sym.getComposition().getStage().$("Apple61_game").hide();2075 var Apple62_game = sym.getComposition().getStage().$("Apple62_game").hide();2076 var Apple71_game = sym.getComposition().getStage().$("Apple71_game").hide();2077 var Apple72_game = sym.getComposition().getStage().$("Apple72_game").hide();2078 var Apple8_game = sym.getComposition().getStage().$("Apple8_game").hide();2079 var Apple9_game = sym.getComposition().getStage().$("Apple9_game").hide();2080 2081 /* 問題の設定 */2082 var Select = Math.floor( Math.random() * 10);2083 2084 /* 問題の表示 */2085 if(Select == 0){2086 var Apple3_game = sym.getComposition().getStage().$("Apple3_game").show();2087 }2088 if(Select == 1){2089 var Apple4_game = sym.getComposition().getStage().$("Apple4_game").show();2090 }2091 if(Select == 2){2092 var Apple51_game = sym.getComposition().getStage().$("Apple51_game").show();2093 }2094 if(Select == 3){2095 var Apple52_game = sym.getComposition().getStage().$("Apple52_game").show();2096 }2097 if(Select == 4){2098 var Apple61_game = sym.getComposition().getStage().$("Apple61_game").show();2099 }2100 if(Select == 5){2101 var Apple62_game = sym.getComposition().getStage().$("Apple62_game").show();2102 }2103 if(Select == 6){2104 var Apple71_game = sym.getComposition().getStage().$("Apple71_game").show();2105 }2106 if(Select == 7){2107 var Apple72_game = sym.getComposition().getStage().$("Apple72_game").show();2108 }2109 if(Select == 8){2110 var Apple8_game = sym.getComposition().getStage().$("Apple8_game").show();2111 }2112 if(Select == 9){2113 var Apple9_game = sym.getComposition().getStage().$("Apple9_game").show();2114 }2115 2116 /* GAME_BACKGROUNDのstart_background2を点滅させる。 */2117 sym.getComposition().getStage().getSymbol("GAME_BACKGROUND").getSymbol("start_background2").play();21182119 });2120 //Edge binding end21212122 })("True");2123 //Edge symbol end:'True'21242125 //=========================================================2126 2127 //Edge symbol: 'start_background'2128 (function(symbolName) { 2129 2130 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {2131 // 指定した位置からタイムラインを再生 (ミリ秒またはラベル)2132 sym.play(0);2133 // コードをここに挿入21342135 });2136 //Edge binding end21372138 })("start_background");2139 //Edge symbol end:'start_background'21402141 //=========================================================21422143 //=========================================================21442145 //=========================================================2146 2147 //Edge symbol: 'house'2148 (function(symbolName) { 2149 2150 Symbol.bindElementAction(compId, symbolName, "${_housecover}", "click", function(sym, e) {2151 // 現在のウィンドウの新しい URL に移動します2152 // (「_self」を新しいウィンドウの適切なターゲット属性に置き換えます)2153 window.open("http://smalab.sakura.ne.jp/NEW_SmalabSever/index.html", "_self");2154 21552156 });2157 //Edge binding end21582159 Symbol.bindElementAction(compId, symbolName, "${_housecover}", "mousedown", function(sym, e) {2160 // マウスボタンが押されたときに実行されるコードを挿入します2161 // エレメントを隠します。2162 // (sym.$("name") は Edge Animate のエレメント名を、jQuery で2163 // 使用できる DOM エレメントに変えます)。2164 sym.$("house1").hide();2165 sym.$("house2").hide();2166 sym.$("house3").hide();2167 sym.$("white").hide();2168 // エレメントを表示します。2169 // (sym.$("name") は Edge Animate のエレメント名を、 jQuery で2170 // 使用できる DOM エレメントに変えます)。2171 sym.$("house1Copy").show();2172 sym.$("house2Copy").show();2173 sym.$("house3Copy").show();2174 sym.$("whiteCopy").show();2175 21762177 });2178 //Edge binding end21792180 })("home");2181 //Edge symbol end:'home'21822183 //=========================================================2184 2185 //Edge symbol: 'start_background2'2186 (function(symbolName) { 2187 2188 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {2189 sym.play(0);21902191 });2192 //Edge binding end21932194 })("start_background2");2195 //Edge symbol end:'start_background2'21962197 //=========================================================2198 2199 //Edge symbol: 'number_background'2200 (function(symbolName) { 2201 2202 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1250, function(sym, e) {2203 // 指定した位置からタイムラインを再生 (ミリ秒またはラベル)2204 sym.play(250);2205 // コードをここに挿入22062207 });2208 //Edge binding end22092210 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {2211 sym.stop();22122213 });2214 //Edge binding end22152216 })("number_background");2217 //Edge symbol end:'number_background'22182219 //=========================================================2220 2221 //Edge symbol: 'decision_button'2222 (function(symbolName) { 2223 2224 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1250, function(sym, e) {2225 // 指定した位置からタイムラインを再生 (ミリ秒またはラベル)2226 sym.play(250);2227 22282229 });2230 //Edge binding end22312232 Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {2233 sym.stop(0);22342235 });2236 //Edge binding end22372238 })("dicision_button");2239 //Edge symbol end:'dicision_button'2240 ...

Full Screen

Full Screen

test.js

Source:test.js Github

copy

Full Screen

1load("app/frame/Dumper.js");2function symbolize(opt) {3 symbols = null;4 JSDOC.JsDoc(opt);5 symbols = JSDOC.JsDoc.symbolSet;6}78var testCases = [9 function() {10 symbolize({a:true, p:true, _: [SYS.pwd+"test/overview.js"]});11 //print(Dumper.dump(symbols)); 12 is('symbols.getSymbolByName("My Cool Library").name', 'My Cool Library', 'File overview can be found by alias.'); 13 }14 ,15 function() {16 symbolize({_: [SYS.pwd+"test/name.js"]});1718 is('symbols.getSymbol("Response").name', "Response", 'Virtual class name is found.');19 is('symbols.getSymbol("Response#text").alias', "Response#text", 'Virtual method name is found.');20 is('symbols.getSymbol("Response#text").memberOf', "Response", 'Virtual method parent name is found.');21 }22 ,23 function() {24 symbolize({a:true, p:true, _: [SYS.pwd+"test/prototype.js"]});2526 is('symbols.getSymbol("Article").name', "Article", 'Function set to constructor prototype with inner constructor name is found.');27 is('symbols.getSymbol("Article").hasMethod("init")', true, 'The initializer method name of prototype function is correct.');28 is('symbols.getSymbol("Article").hasMember("counter")', true, 'A static property set in the prototype definition is found.');29 is('symbols.getSymbol("Article").hasMember("title")', true, 'An instance property set in the prototype is found.');30 is('symbols.getSymbol("Article#title").isStatic', false, 'An instance property has isStatic set to false.');31 is('symbols.getSymbol("Article.counter").name', "counter", 'A static property set in the initializer has the name set correctly.');32 is('symbols.getSymbol("Article.counter").memberOf', "Article", 'A static property set in the initializer has the memberOf set correctly.');33 is('symbols.getSymbol("Article.counter").isStatic', true, 'A static property set in the initializer has isStatic set to true.');34 }35 ,36 function() {37 symbolize({a:true, _: [SYS.pwd+"test/prototype_oblit.js"]});38 39 is('symbols.getSymbol("Article").name', "Article", 'Oblit set to constructor prototype name is found.');40 is('typeof symbols.getSymbol("Article.prototype")', "undefined", 'The prototype oblit is not a symbol.');41 is('symbols.getSymbol("Article#getTitle").name', "getTitle", 'The nonstatic method name of prototype oblit is correct.');42 is('symbols.getSymbol("Article#getTitle").alias', "Article#getTitle", 'The alias of non-static method of prototype oblit is correct.');43 is('symbols.getSymbol("Article#getTitle").isStatic', false, 'The isStatic of a nonstatic method of prototype oblit is correct.');44 is('symbols.getSymbol("Article.getTitle").name', "getTitle", 'The static method name of prototype oblit is correct.');45 is('symbols.getSymbol("Article.getTitle").isStatic', true, 'The isStatic of a static method of prototype oblit is correct.');46 is('symbols.getSymbol("Article#getTitle").isa', "FUNCTION", 'The isa of non-static method of prototype oblit is correct.');47 is('symbols.getSymbol("Article.getTitle").alias', "Article.getTitle", 'The alias of a static method of prototype oblit is correct.');48 is('symbols.getSymbol("Article.getTitle").isa', "FUNCTION", 'The isa of static method of prototype oblit is correct.');49 }50 ,51 function() {52 symbolize({a:true, p:true, _: [SYS.pwd+"test/prototype_oblit_constructor.js"]});53 54 is('symbols.getSymbol("Article").name', "Article", 'Oblit set to constructor prototype with inner constructor name is found.');55 is('symbols.getSymbol("Article#init").name', "init", 'The initializer method name of prototype oblit is correct.');56 is('symbols.getSymbol("Article").hasMember("pages")', true, 'Property set by initializer method "this" is on the outer constructor.');57 is('symbols.getSymbol("Article#Title").name', "Title", 'Name of the inner constructor name is found.');58 is('symbols.getSymbol("Article#Title").memberOf', "Article", 'The memberOf of the inner constructor name is found.');59 is('symbols.getSymbol("Article#Title").isa', "CONSTRUCTOR", 'The isa of the inner constructor name is constructor.');60 is('symbols.getSymbol("Article#Title").hasMember("title")', true, 'A property set on the inner constructor "this" is on the inner constructor.');61 }62 ,63 function() {64 symbolize({a:true, p:true, _: [SYS.pwd+"test/inner.js"]});65 66 is('symbols.getSymbol("Outer").name', "Outer", 'Outer constructor prototype name is found.');67 is('symbols.getSymbol("Outer").methods.length', 1, 'Inner function doesnt appear as a method of the outer.');68 is('symbols.getSymbol("Outer").hasMethod("open")', true, 'Outer constructors methods arent affected by inner function.');69 is('symbols.getSymbol("Outer-Inner").alias', "Outer-Inner", 'Alias of inner function is found.');70 is('symbols.getSymbol("Outer-Inner").isa', "CONSTRUCTOR", 'isa of inner function constructor is found.');71 is('symbols.getSymbol("Outer-Inner").memberOf', "Outer", 'The memberOf of inner function is found.');72 is('symbols.getSymbol("Outer-Inner").name', "Inner", 'The name of inner function is found.');73 is('symbols.getSymbol("Outer-Inner#name").name', "name", 'A member of the inner function constructor, attached to "this" is found on inner.');74 is('symbols.getSymbol("Outer-Inner#name").memberOf', "Outer-Inner", 'The memberOf of an inner function member is found.'); 75 }76 ,77 function() {78 symbolize({a:true, _: [SYS.pwd+"test/prototype_nested.js"]});79 80 is('symbols.getSymbol("Word").name', "Word", 'Base constructor name is found.');81 is('symbols.getSymbol("Word").hasMethod("reverse")', true, 'Base constructor method is found.');82 is('symbols.getSymbol("Word").methods.length', 1, 'Base constructor has only one method.');83 is('symbols.getSymbol("Word").memberOf', "", 'Base constructor memberOf is empty.');84 is('symbols.getSymbol("Word#reverse").name', "reverse", 'Member of constructor prototype name is found.');85 is('symbols.getSymbol("Word#reverse").memberOf', "Word", 'Member of constructor prototype memberOf is found.');86 is('symbols.getSymbol("Word#reverse.utf8").name', "utf8", 'Member of constructor prototype method name is found.');87 is('symbols.getSymbol("Word#reverse.utf8").memberOf', "Word#reverse", 'Static nested member memberOf is found.');88 }89 ,90 function() {91 symbolize({a:true, _: [SYS.pwd+"test/namespace_nested.js"]});92 93 is('symbols.getSymbol("ns1").name', "ns1", 'Base namespace name is found.');94 is('symbols.getSymbol("ns1").memberOf', "", 'Base namespace memberOf is empty (its a constructor).');95 is('symbols.getSymbol("ns1.ns2").name', "ns2", 'Nested namespace name is found.');96 is('symbols.getSymbol("ns1.ns2").alias', "ns1.ns2", 'Nested namespace alias is found.');97 is('symbols.getSymbol("ns1.ns2").memberOf', "ns1", 'Nested namespace memberOf is found.');98 is('symbols.getSymbol("ns1.ns2.Function1").name', "Function1", 'Method of nested namespace name is found.');99 is('symbols.getSymbol("ns1.ns2.Function1").memberOf', "ns1.ns2", 'Constructor of nested namespace memberOf is found.'); 100 }101 ,102 function() {103 symbolize({a:true, p:true, _: [SYS.pwd+"test/functions_nested.js"]});104 105 is('symbols.getSymbol("Zop").name', "Zop", 'Any constructor name is found.');106 is('symbols.getSymbol("Zop").isa', "CONSTRUCTOR", 'It isa constructor.');107 is('symbols.getSymbol("Zop").hasMethod("zap")', true, 'Its method name, set later, is in methods array.');108 is('symbols.getSymbol("Foo").name', "Foo", 'The containing constructor name is found.');109 is('symbols.getSymbol("Foo").hasMethod("methodOne")', true, 'Its method name is found.');110 is('symbols.getSymbol("Foo").hasMethod("methodTwo")', true, 'Its second method name is found.');111 is('symbols.getSymbol("Foo#methodOne").alias', "Foo#methodOne", 'A methods alias is found.');112 is('symbols.getSymbol("Foo#methodOne").isStatic', false, 'A methods is not static.');113 is('symbols.getSymbol("Bar").name', "Bar", 'A global function declared inside another function is found.');114 is('symbols.getSymbol("Bar").isa', "FUNCTION", 'It isa function.');115 is('symbols.getSymbol("Bar").memberOf', "_global_", 'It is global.');116 is('symbols.getSymbol("Foo-inner").name', "inner", 'An inner functions name is found.');117 is('symbols.getSymbol("Foo-inner").memberOf', "Foo", 'It is member of the outer function.');118 is('symbols.getSymbol("Foo-inner").isInner', true, 'It is an inner function.');119 }120 ,121 function() {122 symbolize({a:true, _: [SYS.pwd+"test/memberof_constructor.js"]});123 124 is('symbols.getSymbol("Circle#Tangent").name', "Tangent", 'Constructor set on prototype using @member has correct name.');125 is('symbols.getSymbol("Circle#Tangent").memberOf', "Circle", 'Constructor set on prototype using @member has correct memberOf.');126 is('symbols.getSymbol("Circle#Tangent").alias', "Circle#Tangent", 'Constructor set on prototype using @member has correct alias.');127 is('symbols.getSymbol("Circle#Tangent").isa', "CONSTRUCTOR", 'Constructor set on prototype using @member has correct isa.');128 is('symbols.getSymbol("Circle#Tangent").isStatic', false, 'Constructor set on prototype using @member is not static.');129 is('symbols.getSymbol("Circle#Tangent#getDiameter").name', "getDiameter", 'Method set on prototype using @member has correct name.');130 is('symbols.getSymbol("Circle#Tangent#getDiameter").memberOf', "Circle#Tangent", 'Method set on prototype using @member has correct memberOf.');131 is('symbols.getSymbol("Circle#Tangent#getDiameter").alias', "Circle#Tangent#getDiameter", 'Method set on prototype using @member has correct alias.');132 is('symbols.getSymbol("Circle#Tangent#getDiameter").isa', "FUNCTION", 'Method set on prototype using @member has correct isa.');133 is('symbols.getSymbol("Circle#Tangent#getDiameter").isStatic', false, 'Method set on prototype using @member is not static.');134 }135 ,136 function() {137 symbolize({a:true, p: true, _: [SYS.pwd+"test/memberof.js"]});138 139 is('symbols.getSymbol("pack.install").alias', "pack.install", 'Using @memberOf sets alias, when parent name is in memberOf tag.');140 is('symbols.getSymbol("pack.install.overwrite").name', "install.overwrite", 'Using @memberOf sets name, even if the name is dotted.');141 is('symbols.getSymbol("pack.install.overwrite").memberOf', "pack", 'Using @memberOf sets memberOf.');142 is('symbols.getSymbol("pack.install.overwrite").isStatic', true, 'Using @memberOf with value not ending in octothorp sets isStatic to true.');143 }144 ,145 function() {146 symbolize({a:true, p:true, _: [SYS.pwd+"test/borrows.js"]});147148 is('symbols.getSymbol("Layout").name', "Layout", 'Constructor can be found.');149 is('symbols.getSymbol("Layout").hasMethod("init")', true, 'Constructor method name can be found.');150 is('symbols.getSymbol("Layout").hasMember("orientation")', true, 'Constructor property name can be found.');151 152 is('symbols.getSymbol("Page").hasMethod("reset")', true, 'Second constructor method name can be found.');153 is('symbols.getSymbol("Page").hasMember("orientation")', true, 'Second constructor borrowed property name can be found in properties.');154 is('symbols.getSymbol("Page#orientation").memberOf', "Page", 'Second constructor borrowed property memberOf can be found.');155 is('symbols.getSymbol("Page-getInnerElements").alias', "Page-getInnerElements", 'Can borrow an inner function and it is still inner.');156 is('symbols.getSymbol("Page.units").alias', "Page.units", 'Can borrow a static function and it is still static.');157 158 is('symbols.getSymbol("ThreeColumnPage#init").alias', "ThreeColumnPage#init", 'Third constructor method can be found even though method with same name is borrowed.');159 is('symbols.getSymbol("ThreeColumnPage#reset").alias', "ThreeColumnPage#reset", 'Borrowed method can be found.');160 is('symbols.getSymbol("ThreeColumnPage#orientation").alias', "ThreeColumnPage#orientation", 'Twice borrowed method can be found.');161 162 }163 ,164 function() {165 symbolize({a:true, p:true, _: [SYS.pwd+"test/borrows2.js"]});166167 is('symbols.getSymbol("Foo").hasMethod("my_zop")', true, 'Borrowed method can be found.'); 168 is('symbols.getSymbol("Bar").hasMethod("my_zip")', true, 'Second borrowed method can be found.');169 }170 ,171 function() {172 symbolize({a:true, p:true, _: [SYS.pwd+"test/constructs.js"]});173174 is('symbols.getSymbol("Person").hasMethod("say")', true, 'The constructs tag creates a class that lends can add a method to.'); 175 }176 ,177 function() {178 symbolize({a: true, _: [SYS.pwd+"test/augments.js", SYS.pwd+"test/augments2.js"]});179 180 is('symbols.getSymbol("Page").augments[0]', "Layout", 'An augmented class can be found.');181 is('symbols.getSymbol("Page#reset").alias', "Page#reset", 'Method of augmenter can be found.');182 is('symbols.getSymbol("Page").hasMethod("Layout#init")', true, 'Method from augmented can be found.');183 is('symbols.getSymbol("Page").hasMember("Layout#orientation")', true, 'Property from augmented can be found.');184 is('symbols.getSymbol("Page").methods.length', 3, 'Methods of augmented class are included in methods array.');185 186 is('symbols.getSymbol("ThreeColumnPage").augments[0]', "Page", 'The extends tag is a synonym for augments.');187 is('symbols.getSymbol("ThreeColumnPage").hasMethod("ThreeColumnPage#init")', true, 'Local method overrides augmented method of same name.');188 is('symbols.getSymbol("ThreeColumnPage").methods.length', 3, 'Local method count is right.');189 190 is('symbols.getSymbol("NewsletterPage").augments[0]', "ThreeColumnPage", 'Can augment across file boundaries.');191 is('symbols.getSymbol("NewsletterPage").augments.length', 2, 'Multiple augments are supported.');192 is('symbols.getSymbol("NewsletterPage").inherits[0].alias', "Junkmail#annoy", 'Inherited method with augments.');193 is('symbols.getSymbol("NewsletterPage").methods.length', 6, 'Methods of augmented class are included in methods array across files.');194 is('symbols.getSymbol("NewsletterPage").properties.length', 1, 'Properties of augmented class are included in properties array across files.');195 }196 ,197 function() {198 symbolize({a:true, _: [SYS.pwd+"test/static_this.js"]});199 200 is('symbols.getSymbol("box.holder").name', "holder", 'Static namespace name can be found.');201 is('symbols.getSymbol("box.holder.foo").name', "foo", 'Static namespace method name can be found.');202 is('symbols.getSymbol("box.holder").isStatic', true, 'Static namespace method is static.');203 204 is('symbols.getSymbol("box.holder.counter").name', "counter", 'Instance namespace property name set on "this" can be found.');205 is('symbols.getSymbol("box.holder.counter").alias', "box.holder.counter", 'Instance namespace property alias set on "this" can be found.');206 is('symbols.getSymbol("box.holder.counter").memberOf', "box.holder", 'Static namespace property memberOf set on "this" can be found.');207 }208 ,209 function() {210 symbolize({a:true, p: true, _: [SYS.pwd+"test/lend.js"]});211212 is('symbols.getSymbol("Person").name', "Person", 'Class defined in lend comment is found.');213 is('symbols.getSymbol("Person").hasMethod("initialize")', true, 'Lent instance method name can be found.');214 is('symbols.getSymbol("Person").hasMethod("say")', true, 'Second instance method can be found.');215 is('symbols.getSymbol("Person#sing").isStatic', false, 'Instance method is known to be not static.');216 217 is('symbols.getSymbol("Person.getCount").name', "getCount", 'Static method name from second lend comment can be found.');218 is('symbols.getSymbol("Person.getCount").isStatic', true, 'Static method from second lend comment is known to be static.');219 220 is('LOG.warnings.filter(function($){if($.indexOf("notok") > -1) return $}).length', 1, 'A warning is emitted when lending to an undocumented parent.');221 }222 ,223 function() {224 symbolize({a:true, _: [SYS.pwd+"test/param_inline.js"]});225 226 is('symbols.getSymbol("Layout").params[0].type', "int", 'Inline param name is set.');227 is('symbols.getSymbol("Layout").params[0].desc', "The number of columns.", 'Inline param desc is set from comment.');228 is('symbols.getSymbol("Layout#getElement").params[0].name', "id", 'User defined param documentation takes precedence over parser defined.');229 is('symbols.getSymbol("Layout#getElement").params[0].isOptional', true, 'Default for param is to not be optional.');230 is('symbols.getSymbol("Layout#getElement").params[1].isOptional', false, 'Can mark a param as being optional.');231 is('symbols.getSymbol("Layout#getElement").params[1].type', "number|string", 'Type of inline param doc can have multiple values.');232 is('symbols.getSymbol("Layout#Canvas").params[0].type', "", 'Type can be not defined for some params.');233 is('symbols.getSymbol("Layout#Canvas").params[2].type', "int", 'Type can be defined inline for only some params.');234 is('symbols.getSymbol("Layout#rotate").params.length', 0, 'Docomments inside function sig is ignored without a param.');235 is('symbols.getSymbol("Layout#init").params[2].type', "zoppler", 'Doc comment type overrides inline type for param with same name.');236 }237 ,238 function() {239 symbolize({a: true, _: [SYS.pwd+"test/shared.js", SYS.pwd+"test/shared2.js"]});240241 is('symbols.getSymbol("Array#some").name', 'some', 'The name of a symbol in a shared section is found.');242 is('symbols.getSymbol("Array#some").alias', 'Array#some', 'The alias of a symbol in a shared section is found.');243 is('symbols.getSymbol("Array#some").desc', "Extension to builtin array.", 'A description can be shared.');244 is('symbols.getSymbol("Array#filter").desc', "Extension to builtin array.\nChange every element of an array.", 'A shared description is appended.');245 is('symbols.getSymbol("Queue").desc', "A first in, first out data structure.", 'A description is not shared when outside a shared section.');246 is('symbols.getSymbol("Queue.rewind").alias', "Queue.rewind", 'Second shared tag can be started.');247 is('symbols.getSymbol("startOver").alias', "startOver", 'Shared tag doesnt cross over files.');248 }249 ,250 function() {251 symbolize({a: true, _: [SYS.pwd+"test/config.js"]});252 is('symbols.getSymbol("Contact").params[0].name', 'person', 'The name of a param is found.');253 is('symbols.getSymbol("Contact").params[1].name', 'person.name', 'The name of a param set with a dot name is found.');254 is('symbols.getSymbol("Contact").params[2].name', 'person.age', 'The name of a second param set with a dot name is found.');255 is('symbols.getSymbol("Contact").params[4].name', 'connection', 'The name of a param after config is found.');256 257 is('symbols.getSymbol("Family").params[0].name', 'persons', 'Another name of a param is found.');258 is('symbols.getSymbol("Family").params[1].name', 'persons.Father', 'The name of a param+config is found.');259 is('symbols.getSymbol("Family").params[2].name', 'persons.Mother', 'The name of a second param+config is found.');260 is('symbols.getSymbol("Family").params[3].name', 'persons.Children', 'The name of a third param+config is found.'); 261 }262 ,263 function() {264 symbolize({a:true, p:true, _: [SYS.pwd+"test/ignore.js"]});265 is('LOG.warnings.filter(function($){if($.indexOf("undocumented symbol Ignored") > -1) return $}).length', 1, 'A warning is emitted when documenting members of an ignored parent.');266 }267 ,268 function() {269 symbolize({a:true, p:true, _: [SYS.pwd+"test/functions_anon.js"]});270 is('symbols.getSymbol("a.b").alias', 'a.b', 'In anonymous constructor this is found to be the container object.');271 is('symbols.getSymbol("a.f").alias', 'a.f', 'In anonymous constructor this can have a method.');272 is('symbols.getSymbol("a.c").alias', 'a.c', 'In anonymous constructor method this is found to be the container object.');273 is('symbols.getSymbol("g").alias', 'g', 'In anonymous function executed inline this is the global.');274 is('symbols.getSymbol("bar2.p").alias', 'bar2.p', 'In named constructor executed inline this is the container object.');275 is('symbols.getSymbol("module.pub").alias', 'module.pub', 'In parenthesized anonymous function executed inline function scoped variables arent documented.');276 }277 ,278 function() {279 symbolize({a:true, p:true, _: [SYS.pwd+"test/oblit_anon.js"]});280 is('symbols.getSymbol("opt").name', 'opt', 'Anonymous object properties are created.');281 is('symbols.getSymbol("opt.conf.keep").alias', 'opt.conf.keep', 'Anonymous object first property is assigned to $anonymous.');282 is('symbols.getSymbol("opt.conf.base").alias', 'opt.conf.base', 'Anonymous object second property is assigned to $anonymous.');283 }284 ,285 function() {286 symbolize({a:true, p:true, _: [SYS.pwd+"test/params_optional.js"]});287 is('symbols.getSymbol("Document").params.length', 3, 'Correct number of params are found when optional param syntax is used.');288 is('symbols.getSymbol("Document").params[1].name', "id", 'Name of optional param is found.');289 is('symbols.getSymbol("Document").params[1].isOptional', true, 'Optional param is marked isOptional.');290 is('symbols.getSymbol("Document").params[2].name', "title", 'Name of optional param with default value is found.');291 is('symbols.getSymbol("Document").params[2].isOptional', true, 'Optional param with default value is marked isOptional.');292 is('symbols.getSymbol("Document").params[2].defaultValue', " This is untitled.", 'Optional param default value is found.');293 }294 ,295 function() {296 symbolize({a:true, p:true, _: [SYS.pwd+"test/synonyms.js"]});297 is('symbols.getSymbol("myObject.myFunc").type', 'function', 'Type can be set to function.');298 }299 ,300 function() {301 symbolize({a:true, p:true, _: [SYS.pwd+"test/event.js"]});302 is('symbols.getSymbol("Kitchen#event:cakeEaten").isEvent', true, 'Function with event prefix is an event.');303 is('symbols.getSymbol("Kitchen#cakeEaten").isa', "FUNCTION", 'Function with same name as event isa function.');304 }305 ,306 function() {307 symbolize({x:"js", a:true, _: [SYS.pwd+"test/scripts/"]});308 is('JSDOC.JsDoc.srcFiles.length', 1, 'Only js files are scanned when -x=js.');309 }310];311312//// run and print results ...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const fc = require('fast-check');2console.log(fc.GetSymbol());3{4 "scripts": {5 },6 "dependencies": {7 }8}

Full Screen

Using AI Code Generation

copy

Full Screen

1const { getSymbol } = require('fast-check-monorepo');2console.log(getSymbol('hello'));3console.log(getSymbol('world'));4{5 "dependencies": {6 }7}

Full Screen

Using AI Code Generation

copy

Full Screen

1const { getSymbol } = require("fast-check");2const symbol = getSymbol("mySymbol");3console.log(symbol);4const { getSymbol } = require("fast-check");5const symbol = getSymbol("mySymbol");6console.log(symbol);7const { getSymbol } = require("fast-check");8const symbol = getSymbol("mySymbol");9console.log(symbol);10const { getSymbol } = require("fast-check");11const symbol = getSymbol("mySymbol");12console.log(symbol);13const { getSymbol } = require("fast-check");14const symbol = getSymbol("mySymbol");15console.log(symbol);16const { getSymbol } = require("fast-check");17const symbol = getSymbol("mySymbol");18console.log(symbol);19const { getSymbol } = require("fast-check");20const symbol = getSymbol("mySymbol");21console.log(symbol);22const { getSymbol } = require("fast-check");23const symbol = getSymbol("mySymbol");24console.log(symbol);25const { getSymbol } = require("fast-check");26const symbol = getSymbol("mySymbol");27console.log(symbol);28const { getSymbol } = require("fast-check");29const symbol = getSymbol("mySymbol");30console.log(symbol);31const { getSymbol } = require("

Full Screen

Using AI Code Generation

copy

Full Screen

1console.log(GetSymbol('fast-check'));2{3 "compilerOptions": {4 "paths": {5 }6 },7}

Full Screen

Using AI Code Generation

copy

Full Screen

1const arb = fc.oneof(fc.integer(), fc.string())2const symbol = arb.getSymbol()3const arb = fc.oneof(fc.integer(), fc.string())4const symbol = arb.getSymbol()5const arb = fc.oneof(fc.integer(), fc.string())6const symbol = arb.getSymbol()7const arb = fc.oneof(fc.integer(), fc.string())8const symbol = arb.getSymbol()9const arb = fc.oneof(fc.integer(), fc.string())10const symbol = arb.getSymbol()11const arb = fc.oneof(fc.integer(), fc.string())12const symbol = arb.getSymbol()13const arb = fc.oneof(fc.integer(), fc.string())14const symbol = arb.getSymbol()15const arb = fc.oneof(fc.integer(), fc.string())16const symbol = arb.getSymbol()17const arb = fc.oneof(fc.integer(), fc.string())18const symbol = arb.getSymbol()19const arb = fc.oneof(fc.integer(), fc.string())20const symbol = arb.getSymbol()21const arb = fc.oneof(fc.integer(), fc.string())22const symbol = arb.getSymbol()

Full Screen

Using AI Code Generation

copy

Full Screen

1const ArbitraryWithContextualShrink = require('fast-check/lib/check/arbitrary/definition/ArbitraryWithContextualShrink');2const symbol = ArbitraryWithContextualShrink.getSymbol();3const shrink = ArbitraryWithContextualShrink[symbol].shrink;4console.log(shrink);5const ArbitraryWithContextualShrink = require('fast-check/lib/check/arbitrary/definition/ArbitraryWithContextualShrink');6const symbol = ArbitraryWithContextualShrink.getSymbol();7const shrink = ArbitraryWithContextualShrink[symbol].shrink;8console.log(shrink);9const ArbitraryWithContextualShrink = require('fast-check/lib/check/arbitrary/definition/ArbitraryWithContextualShrink');10const symbol = ArbitraryWithContextualShrink.getSymbol();11const shrink = ArbitraryWithContextualShrink[symbol];12console.log(shrink);13{ ArbitraryWithContextualShrink:14 { [Symbol(Symbol.toStringTag)]: 'ArbitraryWithContextualShrink' },15 { [Symbol(Symbol.toStringTag)]: 'isArbitraryWithContextualShrink' } }16const ArbitraryWithContextualShrink = require('fast-check/lib/check/arbitrary/definition/ArbitraryWithContextualShrink');17const symbol = ArbitraryWithContextualShrink.getSymbol();18const shrink = ArbitraryWithContextualShrink[symbol].ArbitraryWithContextualShrink;19console.log(shrink);20{ [Symbol(Symbol.toStringTag)]: 'ArbitraryWithContextualShrink' }21const ArbitraryWithContextualShrink = require('fast-check/lib/check/arbitrary/

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run fast-check-monorepo automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful