Frame 1
Stage.align = "LT";
Stage.scaleMode = "noScale";
MochiAd.showPreGameAd({id:"fe3ca1feb8eddf33", res:"640x360"});
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Frame 9
stop();
Frame 10
stopAllSounds();
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
Frame 14
stop();
Frame 15
stop();
Frame 16
stop();
Frame 17
stop();
Frame 18
stop();
Frame 19
stop();
Frame 20
stop();
Frame 21
stop();
Frame 22
stop();
Frame 23
stop();
Frame 24
stop();
Frame 25
stop();
Frame 26
stop();
Frame 27
stop();
Frame 28
stop();
Frame 29
stop();
Frame 30
stop();
Frame 31
stop();
Frame 32
stop();
Frame 33
stop();
Frame 34
stop();
Frame 35
stop();
Frame 36
stop();
Frame 37
stop();
Frame 38
stop();
Frame 39
stop();
Frame 40
stop();
Frame 41
stop();
Frame 42
stop();
Frame 43
stop();
Frame 44
stop();
Frame 45
stop();
Frame 46
stop();
Frame 47
stop();
Frame 48
stop();
Frame 49
stop();
Frame 50
stop();
Frame 51
stop();
Frame 52
stop();
Frame 53
stop();
Frame 54
stop();
Frame 55
stop();
Frame 56
stop();
Frame 57
stop();
Frame 58
stop();
Frame 59
stop();
Frame 60
stop();
Frame 61
stop();
Frame 62
stop();
Frame 63
stop();
Frame 64
stop();
Frame 65
stop();
Frame 66
stop();
Frame 67
stop();
Frame 68
stop();
Frame 69
stop();
Frame 70
stop();
Frame 71
stop();
Frame 72
stop();
Frame 73
stop();
Frame 74
stop();
Frame 75
stop();
Frame 76
stop();
Frame 77
stop();
Frame 78
stop();
Frame 79
stop();
Frame 80
stop();
Frame 81
stop();
Frame 82
stop();
Frame 83
stop();
Frame 84
stop();
Frame 85
stop();
Frame 86
stop();
Frame 87
stop();
Frame 88
stop();
Frame 89
stop();
Frame 90
stop();
Frame 91
stop();
Frame 92
stop();
Frame 93
stop();
Frame 94
stop();
Frame 95
stop();
Frame 96
stop();
Frame 97
stop();
Frame 98
stop();
Frame 99
stop();
Frame 100
stop();
Frame 101
stop();
Frame 102
stop();
Frame 103
stop();
Frame 104
stopAllSounds();
play();
stop();
Frame 105
stop();
Frame 106
stop();
Frame 107
stop();
Frame 108
stop();
Frame 109
stop();
Frame 110
stop();
Frame 111
stop();
Frame 112
stop();
Frame 113
play();
stop();
Frame 114
stop();
Frame 115
stop();
Frame 116
stop();
Frame 117
stop();
Frame 118
stop();
Frame 119
stop();
Frame 120
stop();
Frame 121
stop();
Frame 122
stop();
Frame 123
stop();
Frame 124
stop();
Frame 125
stop();
Frame 126
stop();
Frame 127
stop();
Frame 128
stop();
Frame 129
stop();
Frame 130
stop();
Frame 131
stop();
Frame 132
stop();
Frame 133
stop();
Frame 134
stop();
Frame 135
stop();
Frame 136
stop();
Frame 137
stop();
Frame 138
stop();
Frame 139
stop();
Frame 140
stop();
Frame 141
stop();
Frame 142
stop();
Frame 143
stop();
Frame 144
stop();
Frame 145
stop();
Frame 146
stop();
Frame 147
stop();
Frame 148
stop();
Frame 149
stop();
Frame 150
stop();
Frame 151
stop();
Frame 152
stop();
Frame 153
stop();
Frame 154
stop();
Frame 155
stop();
Frame 156
stop();
Frame 157
stop();
Frame 158
stop();
Frame 159
stop();
Frame 160
stop();
Frame 161
stop();
Frame 162
stop();
Frame 163
stop();
Frame 164
stop();
Frame 165
stop();
Frame 166
stop();
Frame 167
stop();
Frame 168
stop();
Frame 169
stop();
Frame 170
stop();
Frame 171
stop();
Frame 172
stop();
Frame 173
stop();
Frame 174
stop();
Frame 175
stop();
Frame 176
stop();
Frame 177
stop();
Frame 178
stop();
Frame 179
stop();
Frame 180
stop();
Frame 181
stop();
Frame 182
stop();
Frame 183
stop();
Frame 184
stop();
Frame 185
stop();
Frame 186
stop();
Frame 187
stop();
Frame 188
stop();
Frame 189
stop();
Frame 190
stop();
Frame 191
stop();
Frame 192
stop();
Frame 193
stop();
Frame 194
stop();
Frame 195
stop();
Frame 196
stop();
Frame 197
stop();
Frame 198
stop();
Frame 199
stop();
Frame 200
stop();
Frame 201
stop();
Frame 202
stop();
Frame 203
stop();
Frame 204
stop();
Frame 205
stop();
Frame 206
stop();
Frame 207
stop();
Frame 208
stop();
Frame 209
stop();
Frame 210
stop();
Frame 211
stop();
Frame 212
stop();
Frame 213
stop();
Frame 214
stop();
Frame 215
stop();
Frame 216
stop();
Frame 217
stop();
Frame 218
stop();
Frame 219
stop();
Frame 220
stop();
Frame 221
stop();
Frame 222
stop();
Frame 223
stop();
Frame 224
stop();
Frame 225
stop();
Frame 226
stop();
Frame 227
stop();
Frame 228
stop();
Frame 229
stop();
Frame 230
stop();
Frame 231
stop();
Frame 232
stop();
Frame 233
stop();
Frame 234
stop();
Frame 235
stop();
Frame 236
stop();
Frame 237
stop();
Frame 238
stop();
Frame 239
stop();
Frame 240
stop();
Frame 241
stop();
Frame 242
stop();
Frame 243
stop();
Frame 244
stop();
Frame 245
stop();
Frame 246
stop();
Frame 247
stop();
Frame 248
stop();
Frame 249
stop();
Frame 250
stop();
Frame 251
stop();
Frame 252
stop();
Frame 253
stop();
Frame 254
stop();
Frame 255
stop();
Frame 256
stop();
Frame 257
stop();
Frame 258
stop();
Frame 259
stop();
Frame 260
stop();
Frame 261
stop();
Frame 262
stop();
Frame 263
stop();
Frame 264
stop();
Frame 265
stop();
Frame 266
stop();
Frame 267
stop();
Frame 268
stop();
Frame 269
stop();
Frame 270
stop();
Frame 271
stop();
Frame 272
stop();
Frame 273
stop();
Frame 274
stop();
Frame 275
stop();
Frame 276
stop();
Frame 277
stop();
Frame 278
stop();
Frame 279
stop();
Frame 280
stop();
Frame 281
stop();
Frame 282
stop();
Frame 283
stop();
Frame 284
stop();
Frame 285
stop();
Frame 286
stop();
Frame 287
stop();
Frame 288
stop();
Frame 289
stop();
Frame 290
stop();
Frame 291
stop();
Frame 292
stop();
Frame 293
stop();
Frame 294
stop();
Frame 295
stop();
Frame 296
stop();
Frame 297
stop();
Frame 298
stop();
Frame 299
stop();
Frame 300
stop();
Frame 301
stop();
Frame 302
stop();
Frame 303
stop();
Frame 304
stop();
Frame 305
stop();
Frame 306
stop();
Frame 307
stop();
Frame 308
stop();
Frame 309
stop();
Frame 310
stop();
Frame 311
stop();
Frame 312
stop();
Frame 313
stop();
Frame 314
stop();
Frame 315
stop();
Frame 316
stop();
Frame 317
stop();
Frame 318
stop();
Frame 319
stop();
Frame 320
stop();
Frame 321
stop();
Frame 322
stop();
Frame 323
stop();
Frame 324
stop();
Frame 325
stop();
Frame 326
stop();
Frame 327
stop();
Frame 328
stop();
Frame 329
stop();
Frame 330
stop();
Frame 331
stop();
Frame 332
stop();
Frame 333
stop();
Frame 334
stop();
Frame 335
stop();
Frame 336
stop();
Frame 337
stop();
Frame 338
stop();
Frame 339
stop();
Frame 340
stop();
Frame 341
stop();
Frame 342
stop();
Frame 343
stop();
Frame 344
stop();
Frame 345
stop();
Frame 346
stop();
Frame 347
stop();
Frame 348
stop();
Frame 349
stop();
Frame 350
stop();
Frame 351
stop();
Frame 352
stop();
Frame 353
stop();
Frame 354
stop();
Frame 355
stop();
Frame 356
stop();
Frame 357
stop();
Frame 358
stop();
Frame 359
stop();
Frame 360
stop();
Frame 361
stop();
Frame 362
stop();
Frame 363
stop();
Frame 364
stop();
Frame 365
stop();
Frame 366
stop();
Frame 367
stop();
Frame 368
stop();
Frame 369
stop();
Frame 370
stop();
Frame 371
stop();
Frame 372
stop();
Frame 373
stop();
Frame 374
stop();
Frame 375
stop();
Frame 376
stop();
Frame 377
stop();
Frame 378
stop();
Frame 379
stop();
Frame 380
stop();
Frame 381
stop();
Frame 382
stop();
Frame 383
stop();
Frame 384
stop();
Frame 385
stop();
Frame 386
stop();
Frame 387
stop();
Frame 388
stop();
Frame 389
stop();
Frame 390
stop();
Frame 391
stop();
Frame 392
stop();
Frame 393
stop();
Frame 394
stop();
Frame 395
stop();
Frame 396
stop();
Frame 397
stop();
Frame 398
stop();
Frame 399
stop();
Frame 400
stop();
Frame 401
stop();
Frame 402
stop();
Frame 403
stop();
Frame 404
stop();
Frame 405
stop();
Frame 406
stop();
Frame 407
stop();
Frame 408
stop();
Frame 409
stop();
Frame 410
stop();
Frame 411
stop();
Frame 412
stop();
Frame 413
stop();
Frame 414
stop();
Frame 415
stop();
Frame 416
stop();
Frame 417
stop();
Frame 418
stop();
Frame 419
stop();
Frame 420
stop();
Frame 421
stop();
Frame 422
stop();
Frame 423
stop();
Frame 424
stop();
Frame 425
stop();
Frame 426
stop();
Frame 427
stop();
Frame 428
stop();
Frame 429
stop();
Frame 430
stop();
Frame 431
stop();
Frame 432
stop();
Frame 433
stop();
Frame 434
stop();
Frame 435
stop();
Frame 436
stop();
Frame 437
stop();
Frame 438
stop();
Frame 439
stop();
Frame 440
stop();
Frame 441
stop();
Frame 442
stop();
Frame 443
stop();
Frame 444
stop();
Frame 445
stop();
Frame 446
stop();
Frame 447
stop();
Frame 448
stop();
Frame 449
stop();
Frame 450
stop();
Frame 451
stop();
Frame 452
stop();
Frame 453
stop();
Frame 454
stop();
Frame 455
stop();
Frame 456
stop();
Frame 457
stop();
Frame 458
stop();
Frame 459
stop();
Frame 460
stop();
Frame 461
stop();
Frame 462
stop();
Frame 463
stop();
Frame 464
stop();
Frame 465
stop();
Frame 466
stop();
Frame 467
stop();
Frame 468
stop();
Frame 469
stop();
Frame 470
stop();
Frame 471
stop();
Frame 472
stop();
Frame 473
stop();
Frame 474
stop();
Frame 475
stop();
Frame 476
stop();
Frame 477
stop();
Frame 478
stop();
Frame 479
stop();
Frame 480
stop();
Frame 481
stop();
Frame 482
stop();
Frame 483
stop();
Frame 484
stop();
Frame 485
stop();
Frame 486
stop();
Frame 487
stop();
Frame 488
stop();
Frame 489
stop();
Frame 490
stop();
Frame 491
stop();
Frame 492
stop();
Frame 493
stop();
Frame 494
stop();
Frame 495
stop();
Frame 496
stop();
Frame 497
stop();
Frame 498
stop();
Frame 499
stop();
Frame 500
stop();
Frame 501
stop();
Frame 502
stop();
Frame 503
stop();
Frame 504
stop();
Frame 505
stop();
Frame 506
stop();
Frame 507
stop();
Frame 508
stop();
Frame 509
stop();
Frame 510
stop();
Frame 511
stop();
Frame 512
stop();
Frame 513
stop();
Frame 514
stop();
Frame 515
stop();
Frame 516
stop();
Frame 517
stop();
Frame 518
stop();
Frame 519
stop();
Frame 520
stop();
Frame 521
stop();
Frame 522
stop();
Frame 523
stop();
Frame 524
stop();
Frame 525
stop();
Frame 526
stop();
Frame 527
stop();
Frame 528
stop();
Frame 529
stop();
Frame 530
stop();
Frame 531
stop();
Frame 532
stop();
Frame 533
stop();
Frame 534
stop();
Frame 535
stop();
Frame 536
stop();
Frame 537
stop();
Frame 538
stop();
Frame 539
stop();
Frame 540
stop();
Frame 541
stop();
Frame 542
stop();
Frame 543
stop();
Frame 544
stop();
Frame 545
stop();
Frame 546
stop();
Frame 547
stop();
Frame 548
stop();
Frame 549
stop();
Frame 550
stop();
Frame 551
stop();
Frame 552
stop();
Frame 553
stop();
Frame 554
stop();
Frame 555
stop();
Frame 556
stop();
Frame 557
stop();
Frame 558
stop();
Frame 559
stop();
Frame 560
stop();
Frame 561
stop();
Frame 562
stop();
Frame 563
stop();
Frame 564
stop();
Frame 565
stop();
Frame 566
stop();
Frame 567
stop();
Frame 568
stop();
Frame 569
stop();
Frame 570
stop();
Frame 571
stop();
Frame 572
stop();
Frame 573
stop();
Frame 574
stop();
Frame 575
stop();
Frame 576
stop();
Frame 577
stop();
Frame 578
stop();
Frame 579
stop();
Frame 580
stop();
Frame 581
stop();
Frame 582
stop();
Frame 583
stop();
Frame 584
stop();
Frame 585
stop();
Frame 586
stop();
Frame 587
stop();
Frame 588
stop();
Frame 589
stop();
Frame 590
stop();
Frame 591
stop();
Frame 592
stop();
Frame 593
stop();
Frame 594
stop();
Frame 595
stop();
Frame 596
stop();
Frame 597
stop();
Frame 598
stop();
Frame 599
stop();
Frame 600
stop();
Frame 601
stop();
Frame 602
stop();
Frame 603
stop();
Frame 604
stop();
Frame 605
stop();
Frame 606
stop();
Frame 607
stop();
Frame 608
stop();
Frame 609
stop();
Frame 610
stop();
Frame 611
stop();
Frame 612
stop();
Frame 613
stop();
Frame 614
stop();
Frame 615
stop();
Frame 616
stop();
Frame 617
stop();
Frame 618
stop();
Frame 619
stop();
Frame 620
stop();
Frame 621
stop();
Frame 622
stop();
Frame 623
stop();
Frame 624
stop();
Frame 625
stop();
Frame 626
stop();
Frame 627
stopAllSounds();
stop();
Frame 628
stop();
Frame 629
stop();
Frame 630
stop();
Frame 631
stop();
Frame 632
stop();
Frame 633
stop();
Frame 634
stop();
Frame 635
stop();
Frame 636
stop();
Frame 637
stop();
Frame 638
stop();
Frame 639
stop();
Frame 640
stop();
Frame 641
stop();
Frame 642
stop();
Frame 643
stop();
Frame 644
stop();
Frame 645
stop();
Frame 646
stop();
Frame 647
stop();
Frame 648
stop();
Frame 649
stop();
Frame 650
stop();
Frame 651
stop();
Frame 652
stop();
Frame 653
stop();
Frame 654
stop();
Frame 655
stop();
Frame 656
stop();
Frame 657
stop();
Frame 658
stop();
Frame 659
stop();
Frame 660
stop();
Frame 661
stop();
Frame 662
stop();
Frame 663
stop();
Frame 664
stop();
Frame 665
stop();
Frame 666
stop();
Frame 667
stop();
Frame 668
stop();
Frame 669
stop();
Frame 670
stop();
Frame 671
stop();
Frame 672
stop();
Frame 673
stop();
Frame 674
stop();
Frame 675
stop();
Frame 676
stop();
Frame 677
stop();
Frame 678
stop();
Frame 679
stop();
Frame 680
stop();
Frame 681
stop();
Frame 682
stop();
Frame 683
stop();
Frame 684
stop();
Frame 685
stop();
Frame 686
stop();
Frame 687
stop();
Frame 688
stop();
Frame 689
stop();
Frame 690
stop();
Frame 691
stop();
Frame 692
stop();
Frame 693
stop();
Frame 694
stop();
Frame 695
stop();
Frame 696
stop();
Frame 697
stop();
Frame 698
stop();
Frame 699
stop();
Frame 700
stop();
Frame 701
stop();
Frame 702
stop();
Frame 703
stop();
Frame 704
stop();
Frame 705
stop();
Frame 706
stop();
Frame 707
stop();
Frame 708
stop();
Frame 709
stop();
Frame 710
stop();
Frame 711
stop();
Frame 712
stop();
Frame 713
stop();
Frame 714
stop();
Frame 715
stop();
Frame 716
stop();
Frame 717
stop();
Frame 718
stop();
Frame 719
stop();
Frame 720
stop();
Frame 721
stop();
Frame 722
stop();
Frame 723
stop();
Frame 724
stop();
Frame 725
stop();
Frame 726
stop();
Frame 727
stop();
Frame 728
stop();
Frame 729
stop();
Frame 730
stop();
Frame 731
stop();
Frame 732
stop();
Frame 733
stop();
Frame 734
stop();
Frame 735
stop();
Frame 736
stop();
Frame 737
stop();
Frame 738
stop();
Frame 739
stop();
Frame 740
stop();
Frame 741
stop();
Frame 742
stop();
Frame 743
stop();
Frame 744
stop();
Frame 745
stop();
Frame 746
stop();
Frame 747
stop();
Frame 748
stop();
Frame 749
stop();
Frame 750
stop();
Frame 751
stop();
Frame 752
stop();
Frame 753
stop();
Frame 754
stop();
Frame 755
stop();
Frame 756
stop();
Frame 757
stop();
Frame 758
stop();
Frame 759
stop();
Frame 760
stop();
Frame 761
stop();
Frame 762
stop();
Frame 763
stop();
Frame 764
stop();
Frame 765
stop();
Frame 766
stop();
Frame 767
stop();
Frame 768
stop();
Frame 769
stop();
Frame 770
stop();
Frame 771
stop();
Frame 772
stop();
Frame 773
stop();
Frame 774
stop();
Frame 775
stop();
Frame 776
stopAllSounds();
stop();
Frame 777
stop();
Frame 778
stop();
Frame 779
stop();
Frame 780
stop();
Frame 781
stop();
Frame 782
stop();
Frame 783
stop();
Frame 784
stop();
Frame 785
stop();
Frame 786
stop();
Frame 787
stop();
Frame 788
stop();
Frame 789
stop();
Frame 790
stop();
Frame 791
stop();
Frame 792
stop();
Frame 793
stop();
Frame 1232
stop();
Frame 1234
stop();
Frame 1235
stop();
Frame 1236
stop();
Frame 1237
stop();
Frame 1238
stop();
Frame 1239
stop();
Frame 1240
stop();
Frame 1241
stop();
Frame 1242
stop();
Frame 1243
stop();
Frame 1244
stop();
Frame 1245
stopAllSounds();
stop();
Frame 1246
stop();
Frame 1247
stop();
Frame 1248
stop();
Frame 1249
stop();
Frame 1250
stop();
Frame 1251
stop();
Frame 1252
stop();
Frame 1253
stop();
Frame 1254
stop();
Frame 1255
stop();
Frame 1256
stop();
Frame 1257
stop();
Frame 1258
stop();
Frame 1259
stop();
Frame 1260
stop();
Frame 1261
stop();
Frame 1262
stop();
Frame 1263
stop();
Frame 1264
stop();
Frame 1265
stopAllSounds();
stop();
Frame 1266
stop();
Frame 1267
stop();
Frame 1268
stop();
Frame 1269
stop();
Frame 1270
stop();
Frame 1271
stop();
Frame 1272
stop();
Frame 1273
stop();
Frame 1274
stop();
Frame 1275
stop();
Frame 1276
stop();
Symbol 398 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.2");
}
static function showPreGameAd(options) {
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = w * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(w - 20, 0);
backing.lineTo(w - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside = bar.createEmptyMovieClip("_inside", 2);
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(w - 20, 0);
inside.lineTo(w - 20, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(w - 20, 0);
outline.lineTo(w - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _clip = this._parent._parent;
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = this._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside._xscale = pcnt;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (finished)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (finished) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var hostname = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(hostname);
}
}
return(hostname);
}
static function _loadCommunicator(options) {
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, DEFAULTS);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var clip = options.clip;
var clipname = ("_mochiad_com_" + options.id);
if (!_isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (options.com_server + options.id);
_allowDomains(server);
delete options.id;
delete options.com_server;
var depth = options.depth;
delete options.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in options) {
lv[k] = options[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var cblst = this._callbacks[cb];
if (!cblst) {
return(undefined);
}
delete this._callbacks[cb];
var args = [];
var i = 2;
while (i < cblst.length) {
args.push(cblst[i]);
i++;
}
var i = 1;
while (i < arguments.length) {
args.push(arguments[i]);
i++;
}
var method = cblst[1];
var obj = cblst[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, args);
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var q = this._queue;
delete this._queue;
var ds = this.doSend;
var i = 0;
while (i < q.length) {
var item = q[i];
ds.apply(this, item);
i++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var qargs = [];
var i = 0;
while (i < arguments.length) {
qargs.push(arguments[i]);
i++;
}
this._queue.push(qargs);
return(undefined);
}
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var lc = _loadCommunicator({id:options.id});
if (!lc) {
return(false);
}
var fncall = ["fetchHighScores", options];
lc.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var lc = _loadCommunicator({id:options.id});
if (!lc) {
return(false);
}
var fncall = ["sendHighScore", options];
lc.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, DEFAULTS);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var clip = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = options.depth;
delete options.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = _getRes(options);
options.res = (wh[0] + "x") + wh[1];
options.server = options.server + options.id;
delete options.id;
clip._mochiad_loaded = true;
var lv = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in options) {
lv[k] = options[k];
}
var server = lv.server;
delete lv.server;
var hostname = _allowDomains(server);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.hostname = hostname;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var o = System.security;
if (o.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var b = options.clip.getBounds();
var w = 0;
var h = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = b.xMax - b.xMin;
h = b.yMax - b.yMin;
}
if ((w == 0) || (h == 0)) {
w = Stage.width;
h = Stage.height;
}
return([w, h]);
}
static function _parseOptions(options, defaults) {
var optcopy = {};
for (var k in defaults) {
optcopy[k] = defaults[k];
}
if (options) {
for (var k in options) {
optcopy[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var i = 0;
while (i < pairs.length) {
var kv = pairs[i].split("=");
optcopy[unescape(kv[0])] = unescape(kv[1]);
i++;
}
}
if (optcopy.id == "test") {
}
return(optcopy);
}
}
Symbol 34 Button
on (release) {
gotoAndStop ("alexwhite2");
}
Symbol 40 Button
on (release) {
getURL ("http://www.pencilkids.com/", "_blank");
}
Symbol 45 MovieClip Frame 1
_root.gotoAndStop("alexplanefly01");
Symbol 62 MovieClip Frame 218
_root.gotoAndStop("alexinsideplane01");
Symbol 94 Button
on (release) {
gotoAndStop ("alexplanedie");
}
Symbol 96 Button
on (release) {
gotoAndStop ("alexinsideplane01z");
}
Symbol 100 Button
on (release) {
gotoAndStop ("alexplanedie2");
}
Symbol 105 MovieClip Frame 80
_root.gotoAndStop("alexplanediefall");
Symbol 113 MovieClip Frame 105
_root.gotoAndStop("alexretry3");
Symbol 114 MovieClip Frame 50
_root.gotoAndStop("alexpara01");
Symbol 116 MovieClip Frame 80
_root.gotoAndStop("alexplanelive");
Symbol 123 Button
on (release) {
_root.gotoAndStop("alexland");
stopAllSounds();
}
Symbol 130 MovieClip Frame 1
_root.gotoAndStop("alexpara01sound");
Symbol 130 MovieClip Frame 125
_root.gotoAndStop("alexplanefly01");
Symbol 134 MovieClip Frame 137
_root.gotoAndStop("alexretry3");
Symbol 137 MovieClip Frame 152
_root.gotoAndStop("alex01intro");
Symbol 142 MovieClip Frame 50
_root.gotoAndStop("alex01");
Symbol 144 Button
on (release) {
gotoAndStop ("alex01b");
}
Symbol 145 Button
on (release) {
gotoAndStop ("alex00a");
}
Symbol 152 MovieClip Frame 142
_root.gotoAndStop("alexretry3");
Symbol 153 MovieClip Frame 81
_root.gotoAndStop("alex01");
Symbol 154 MovieClip Frame 80
_root.gotoAndStop("alex02a");
Symbol 159 MovieClip Frame 70
_root.gotoAndStop("alex02");
Symbol 160 MovieClip Frame 60
_root.gotoAndStop("alex01a");
Symbol 162 Button
on (release) {
gotoAndStop ("alex02f");
}
Symbol 163 Button
on (release) {
gotoAndStop ("alex02b");
}
Symbol 164 Button
on (release) {
gotoAndStop ("alex02e");
}
Symbol 165 Button
on (release) {
gotoAndStop ("alex02z");
}
Symbol 176 MovieClip Frame 43
_root.gotoAndStop("alex03a");
Symbol 177 MovieClip Frame 51
_root.gotoAndStop("alex02");
Symbol 178 MovieClip Frame 60
_root.gotoAndStop("alex02");
Symbol 179 MovieClip Frame 65
_root.gotoAndStop("alex04a");
Symbol 185 MovieClip Frame 50
_root.gotoAndStop("alex03");
Symbol 187 Button
on (release) {
gotoAndStop ("alex03b");
}
Symbol 188 Button
on (release) {
gotoAndStop ("alex03die");
}
Symbol 199 MovieClip Frame 119
_root.gotoAndStop("alexretry3");
Symbol 200 MovieClip Frame 45
_root.gotoAndStop("alex02c");
Symbol 204 MovieClip Frame 95
_root.gotoAndStop("alex04");
Symbol 207 Button
on (release) {
gotoAndStop ("alex04die");
}
Symbol 208 Button
on (release) {
gotoAndStop ("alex04b");
}
Symbol 209 MovieClip Frame 76
_root.gotoAndStop("alex02d");
Symbol 213 MovieClip Frame 104
_root.gotoAndStop("alexretry3");
Symbol 215 Button
on (release) {
gotoAndStop ("alex01bz");
}
Symbol 216 Button
on (release) {
gotoAndStop ("alex00az");
}
Symbol 217 MovieClip Frame 142
_root.gotoAndStop("alexretry3");
Symbol 218 MovieClip Frame 81
_root.gotoAndStop("alex01z");
Symbol 219 MovieClip Frame 80
_root.gotoAndStop("alex02az");
Symbol 222 MovieClip Frame 70
_root.gotoAndStop("alex02z");
Symbol 223 MovieClip Frame 60
_root.gotoAndStop("alex01az");
Symbol 225 Button
on (release) {
gotoAndStop ("alex02fz");
}
Symbol 226 Button
on (release) {
gotoAndStop ("alex02bz");
}
Symbol 227 Button
on (release) {
gotoAndStop ("alex02ez");
}
Symbol 228 MovieClip Frame 43
_root.gotoAndStop("alex03az");
Symbol 229 MovieClip Frame 51
_root.gotoAndStop("alex02z");
Symbol 230 MovieClip Frame 60
_root.gotoAndStop("alex02z");
Symbol 231 MovieClip Frame 65
_root.gotoAndStop("alex04az");
Symbol 232 MovieClip Frame 50
_root.gotoAndStop("alex03z");
Symbol 234 Button
on (release) {
gotoAndStop ("alex03bz");
}
Symbol 235 Button
on (release) {
gotoAndStop ("alex03polegone");
}
Symbol 236 MovieClip Frame 119
_root.gotoAndStop("alex01z");
Symbol 237 MovieClip Frame 45
_root.gotoAndStop("alex02cz");
Symbol 238 MovieClip Frame 95
_root.gotoAndStop("alex04z");
Symbol 240 Button
on (release) {
gotoAndStop ("alex04diez");
}
Symbol 241 Button
on (release) {
gotoAndStop ("alex04bz");
}
Symbol 242 MovieClip Frame 76
_root.gotoAndStop("alex02dz");
Symbol 243 MovieClip Frame 104
_root.gotoAndStop("alexretry3");
Symbol 245 Button
on (release) {
gotoAndStop ("alex01bzy");
}
Symbol 246 Button
on (release) {
gotoAndStop ("alex00azy");
}
Symbol 247 MovieClip Frame 142
_root.gotoAndStop("alexretry3");
Symbol 248 MovieClip Frame 81
_root.gotoAndStop("alex01zy");
Symbol 249 MovieClip Frame 80
_root.gotoAndStop("alex02azy");
Symbol 250 MovieClip Frame 70
_root.gotoAndStop("alex02zy");
Symbol 251 MovieClip Frame 60
_root.gotoAndStop("alex01azy");
Symbol 253 Button
on (release) {
gotoAndStop ("alex02fzy");
}
Symbol 254 Button
on (release) {
gotoAndStop ("alex02bzy");
}
Symbol 255 Button
on (release) {
gotoAndStop ("alex02ezy");
}
Symbol 256 MovieClip Frame 43
_root.gotoAndStop("alex03azy");
Symbol 257 MovieClip Frame 51
_root.gotoAndStop("alex02zy");
Symbol 258 MovieClip Frame 60
_root.gotoAndStop("alex02zy");
Symbol 259 MovieClip Frame 65
_root.gotoAndStop("alex04azy");
Symbol 261 MovieClip Frame 50
_root.gotoAndStop("alex03zy");
Symbol 263 Button
on (release) {
gotoAndStop ("alex03bzy");
}
Symbol 264 MovieClip Frame 119
_root.gotoAndStop("alex01zy");
Symbol 265 MovieClip Frame 45
_root.gotoAndStop("alex02czy");
Symbol 266 MovieClip Frame 95
_root.gotoAndStop("alex04zy");
Symbol 268 Button
on (release) {
gotoAndStop ("alex04polevault");
}
Symbol 269 Button
on (release) {
gotoAndStop ("alex04bzy");
}
Symbol 270 MovieClip Frame 76
_root.gotoAndStop("alex02dzy");
Symbol 274 MovieClip Frame 110
_root.gotoAndStop("tomb01intro1");
Symbol 288 MovieClip Frame 2
_root.gotoAndStop("tomb01intro");
Symbol 290 MovieClip Frame 43
_root.gotoAndStop("tomb01");
Symbol 295 Button
on (release) {
gotoAndStop ("alexmap");
}
Symbol 296 Button
on (release) {
gotoAndStop ("tomb01b");
}
Symbol 299 MovieClip Frame 62
_root.gotoAndStop("tomb02a");
Symbol 303 MovieClip Frame 43
_root.gotoAndStop("tomb02");
Symbol 306 Button
on (release) {
gotoAndStop ("tomb02b");
}
Symbol 307 Button
on (release) {
gotoAndStop ("tomb02c");
}
Symbol 309 MovieClip Frame 58
_root.gotoAndStop("tomb03a");
Symbol 311 MovieClip Frame 67
_root.gotoAndStop("alexdeath");
Symbol 313 MovieClip Frame 43
_root.gotoAndStop("tomb03");
Symbol 316 Button
on (release) {
gotoAndStop ("tomb03b");
}
Symbol 317 Button
on (release) {
gotoAndStop ("tomb03c");
}
Symbol 319 MovieClip Frame 59
_root.gotoAndStop("alexdeath");
Symbol 321 MovieClip Frame 67
_root.gotoAndStop("tomb04a");
Symbol 323 MovieClip Frame 43
_root.gotoAndStop("tomb04");
Symbol 326 Button
on (release) {
gotoAndStop ("tomb04b");
}
Symbol 327 Button
on (release) {
gotoAndStop ("tomb04c");
}
Symbol 329 MovieClip Frame 59
_root.gotoAndStop("alexdeath");
Symbol 331 MovieClip Frame 67
_root.gotoAndPlay("alexFINAL");
Symbol 338 MovieClip Frame 150
_root.gotoAndStop("alexretry3");
Symbol 344 Button
on (release) {
gotoAndStop ("alexplanefly01");
}
Symbol 347 Button
on (release) {
gotoAndStop ("alexmenu");
}
Symbol 354 Button
on (release) {
gotoAndStop ("tomb01");
}
Symbol 361 MovieClip Frame 438
_root.gotoAndStop("alexretry3");
Symbol 361 MovieClip Frame 440
_root.gotoAndStop("alexretry3");
Symbol 368 Button
on (release) {
gotoAndStop ("alexfinal2");
}
Symbol 374 MovieClip Frame 128
_root.gotoAndStop("alexwhite");
Symbol 375 MovieClip Frame 1
_root.gotoAndStop("alexcongrats");
Symbol 394 MovieClip Frame 289
stop();