Section 1
//demo_146 (_fla.demo_146)
package _fla {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class demo_146 extends MovieClip {
public var play_btn:SimpleButton;
public function demo_146(){
addFrameScript(0, frame1);
}
public function initRoot():void{
if (MovieClip(root)){
MovieClip(root).initGame();
};
}
function frame1(){
play_btn.addEventListener(MouseEvent.CLICK, playHandler);
}
public function playHandler(_arg1:MouseEvent):void{
TweenLite.to(this, 0.5, {y:-249, onComplete:initRoot});
}
}
}//package _fla
Section 2
//empty_119 (_fla.empty_119)
package _fla {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class empty_119 extends MovieClip {
public var ball_sd_mc:MovieClip;
public var ants_sp:Sprite;
public var isMoving:Boolean;
public var ballG:Graphics;
public var aw:Number;
public var isBusy:Boolean;
public var minX:Number;
public var dataArr:Array;
public var minY:Number;
public var speed:Number;
public var cp:Point;
public var selectedType:int;
public var v:Point;
public var tp:Point;
public var dis:Number;
public var pixel_sp:Sprite;
public var removeCount:int;
public var colorMat:ColorMatrixFilter;
public var needCreate:Boolean;
public var initX:Number;
public var initY:Number;
public var antsArr:Array;
public var mat:Array;
public var maxY:Number;
public var maxX:Number;
public var dict:Dictionary;
public var main:MovieClip;
public var ball_mc:MovieClip;
public var rows:int;
public var columns:int;
public var grid_sp:Shape;
public function empty_119(){
addFrameScript(0, frame1);
}
public function upHandler(_arg1:MouseEvent):void{
var _local2:Number;
ballG.clear();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
stage.removeEventListener(MouseEvent.MOUSE_UP, upHandler);
isMoving = true;
locationBall();
tp = new Point(ball_mc.x, ball_mc.y);
tp.x = ((cp.x * 2) - tp.x);
tp.y = ((cp.y * 2) - tp.y);
dis = Point.distance(tp, cp);
v = new Point();
_local2 = Math.atan2((tp.y - ball_mc.y), (tp.x - ball_mc.x));
v.x = (speed * Math.cos(_local2));
v.y = (speed * Math.sin(_local2));
ball_mc.addEventListener(Event.ENTER_FRAME, ballJump);
main.cursor_mc.gotoAndStop(1);
main.showEffectSound("fire");
}
public function moveHandler(_arg1:MouseEvent):void{
var _local2:Point;
_local2 = getValidPoint();
locationBall();
ballG.clear();
ballG.lineStyle(2, 0xFFFFFF);
ballG.moveTo(cp.x, cp.y);
ballG.lineTo(_local2.x, _local2.y);
}
public function clearEvent():void{
ball_mc.removeEventListener(MouseEvent.MOUSE_DOWN, ballDownHandler);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
stage.removeEventListener(MouseEvent.MOUSE_UP, upHandler);
needCreate = false;
}
function frame1(){
stop();
ants_sp = new Sprite();
ants_sp.mouseChildren = false;
ants_sp.mouseEnabled = false;
ants_sp.cacheAsBitmap = true;
grid_sp = new Shape();
grid_sp.visible = false;
pixel_sp = new Sprite();
dict = new Dictionary();
addChild(grid_sp);
addChild(pixel_sp);
addChild(ants_sp);
addChild(ball_mc);
addChild(ball_sd_mc);
rows = 16;
columns = 12;
initX = 245;
initY = 6;
aw = 30;
cp = new Point((initX + ((columns / 2) * aw)), (initY + ((rows / 2) * aw)));
minX = (initX + (aw / 2));
maxX = ((initX + (columns * aw)) - (aw / 2));
minY = ((initY + ((rows / 2) * aw)) + (aw / 2));
maxY = ((initY + (rows * aw)) - (aw / 2));
ballG = this.graphics;
isMoving = false;
tp = new Point();
v = new Point();
speed = 20;
main = MovieClip(parent);
isBusy = false;
needCreate = false;
mat = [0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0, 0, 0, 1, 0];
colorMat = new ColorMatrixFilter(mat);
resetBall();
}
public function get_cell(_arg1:int, _arg2:int):int{
if ((((_arg1 <= 0)) || ((_arg1 >= dataArr.length)))){
return (0);
};
if ((((_arg2 <= 0)) || ((_arg2 > columns)))){
return (0);
};
if (antsArr[_arg1][_arg2]){
return (antsArr[_arg1][_arg2].currentFrame);
};
return (0);
}
public function removeAnt(_arg1:int, _arg2:int, _arg3:Boolean=true):void{
var _local4:MovieClip;
dataArr[_arg1][_arg2] = 0;
_local4 = antsArr[_arg1][_arg2];
antsArr[_arg1][_arg2] = null;
main.showEffectSound("bomb");
ants_sp.removeChild(_local4);
_local4.y = (_local4.y + ants_sp.y);
pixel_sp.addChild(_local4);
_local4.gotoAndStop(_local4.totalFrames);
removeCount++;
if (!_arg3){
return;
};
if (get_cell((_arg1 - 1), _arg2) == selectedType){
removeAnt((_arg1 - 1), _arg2, _arg3);
};
if (get_cell(_arg1, (_arg2 - 1)) == selectedType){
removeAnt(_arg1, (_arg2 - 1), _arg3);
};
if (get_cell(_arg1, (_arg2 + 1)) == selectedType){
removeAnt(_arg1, (_arg2 + 1), _arg3);
};
if (get_cell((_arg1 + 1), _arg2) == selectedType){
removeAnt((_arg1 + 1), _arg2, _arg3);
};
}
public function ballDownHandler(_arg1:MouseEvent):void{
if (isMoving){
return;
};
main.cursor_mc.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
stage.addEventListener(MouseEvent.MOUSE_UP, upHandler);
}
public function ballJump(_arg1:Event):void{
ball_mc.x = (ball_mc.x + v.x);
ball_mc.y = (ball_mc.y + v.y);
ball_mc.scaleX = (ball_mc.scaleY = (((1 - (Point.distance(new Point(ball_mc.x, ball_mc.y), cp) / dis)) * 0.5) + 1));
if (Point.distance(tp, new Point(ball_mc.x, ball_mc.y)) < Math.max(Math.abs(v.x), Math.abs(v.y))){
main.showEffectSound("drop");
ball_mc.removeEventListener(Event.ENTER_FRAME, ballJump);
ball_mc.x = tp.x;
ball_mc.y = tp.y;
checkAndRemove();
isMoving = false;
resetBall();
};
}
public function getValidPoint():Point{
var _local1:Point;
_local1 = new Point();
_local1.x = this.mouseX;
_local1.y = this.mouseY;
_local1.x = Math.min(maxX, Math.max(minX, _local1.x));
_local1.y = Math.min(maxY, Math.max(minY, _local1.y));
return (_local1);
}
public function drawGrids():void{
var _local1:Graphics;
var _local2:int;
_local1 = grid_sp.graphics;
_local1.lineStyle(2, 0xFFFFFF, 0.5);
_local1.moveTo(initX, initY);
_local2 = 0;
while (_local2 <= columns) {
_local1.moveTo((initX + (_local2 * aw)), initY);
_local1.lineTo((initX + (_local2 * aw)), (initY + (rows * aw)));
_local2++;
};
_local2 = 0;
while (_local2 <= rows) {
if (_local2 >= 8){
_local1.lineStyle(2, 0xFF, 0.5);
};
_local1.moveTo(initX, (initY + (_local2 * aw)));
_local1.lineTo((initX + (columns * aw)), (initY + (_local2 * aw)));
_local2++;
};
}
public function init():void{
resetBall();
drawGrids();
initBall();
}
public function checkAndRemove():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
isBusy = true;
_local1 = Math.ceil(((ball_mc.y - initY) / aw));
_local2 = Math.ceil(((ball_mc.x - initX) / aw));
selectedType = 0;
removeCount = 0;
if (_local1 >= dataArr.length){
isBusy = false;
return;
};
if (dataArr[_local1][_local2]){
selectedType = antsArr[_local1][_local2].currentFrame;
if (selectedType == 6){
_local3 = (_local1 - 2);
while (_local3 <= (_local1 + 2)) {
_local4 = (_local2 - 2);
while (_local4 <= (_local2 + 2)) {
if (get_cell(_local3, _local4) > 0){
removeAnt(_local3, _local4, false);
};
_local4++;
};
_local3++;
};
updateArray();
} else {
if (selectedType == 5){
changeColor();
} else {
removeAnt(_local1, _local2);
updateArray();
};
};
main.addScore(removeCount);
};
isBusy = false;
if (needCreate){
createLine();
};
}
public function updateArray():void{
var _local1:int;
var _local2:MovieClip;
var _local3:int;
var _local4:int;
var _local5:Boolean;
_local1 = 0;
_local3 = 1;
while (_local3 <= columns) {
_local1 = 0;
_local4 = 1;
while (_local4 < dataArr.length) {
if (((dataArr[_local4][_local3]) && (_local1))){
dataArr[(_local4 - _local1)][_local3] = dataArr[_local4][_local3];
_local2 = antsArr[_local4][_local3];
antsArr[(_local4 - _local1)][_local3] = _local2;
dataArr[_local4][_local3] = 0;
antsArr[_local4][_local3] = null;
TweenLite.to(_local2, 0.5, {y:(_local2.y - (aw * _local1))});
} else {
if (dataArr[_local4][_local3] == 0){
_local1++;
};
};
_local4++;
};
_local3++;
};
while (true) {
_local5 = true;
_local4 = (dataArr.length - 1);
_local3 = 1;
while (_local3 <= columns) {
if (antsArr[_local4][_local3]){
break;
};
_local3++;
};
if (_local3 <= columns){
break;
};
dataArr.pop();
antsArr.pop();
if (dataArr.length == 1){
break;
};
};
if (dataArr.length < 7){
main.warning_mc.gotoAndStop(1);
};
}
public function prevCreate():void{
var _local1:int;
var _local2:int;
var _local3:MovieClip;
dataArr = [];
antsArr = [];
while (ants_sp.numChildren) {
ants_sp.removeChildAt(0);
};
ants_sp.y = 0;
_local1 = 0;
while (_local1 <= main.initRows) {
dataArr[_local1] = [];
antsArr[_local1] = [];
_local2 = 1;
while (_local2 <= columns) {
_local3 = createAnt();
dataArr[_local1][_local2] = _local3.currentFrame;
antsArr[_local1][_local2] = _local3;
_local3.x = ((initX + ((_local2 - 1) * aw)) + (aw / 2));
_local3.y = ((initY - ((main.initRows - _local1) * aw)) - (aw / 2));
_local3.scaleX = (_local3.scaleY = 1);
ants_sp.addChild(_local3);
_local2++;
};
_local1++;
};
}
public function initBall():void{
ball_mc.mouseChildren = false;
ball_mc.buttonMode = true;
ball_mc.addEventListener(MouseEvent.MOUSE_DOWN, ballDownHandler);
}
public function createNewLine():void{
if (isBusy){
needCreate = true;
} else {
createLine();
};
}
public function createLine():void{
var _local1:Array;
var _local2:Array;
var _local3:MovieClip;
var _local4:int;
needCreate = false;
_local1 = [];
_local2 = [];
_local4 = 1;
while (_local4 <= columns) {
_local3 = createAnt();
_local1[_local4] = _local3.currentFrame;
_local2[_local4] = _local3;
_local3.x = ((initX + ((_local4 - 1) * aw)) + (aw / 2));
_local3.y = (((initY - aw) - (aw / 2)) - ants_sp.y);
_local3.scaleX = (_local3.scaleY = 1);
ants_sp.addChild(_local3);
_local4++;
};
dataArr.splice(0, 0, _local1);
antsArr.splice(0, 0, _local2);
TweenLite.to(ants_sp, 0.5, {y:(ants_sp.y + aw), onComplete:checkOver});
}
public function createRand(_arg1:int):int{
return ((Math.floor((Math.random() * _arg1)) + 1));
}
public function createAnt():MovieClip{
var _local1:MovieClip;
var _local2:int;
var _local3:Number;
_local1 = new ants();
_local1.scaleX = (_local1.scaleY = 1.5);
_local3 = Math.random();
if (((main.mts) && ((_local3 < main.mtp)))){
if (Math.random() > 0.8){
_local2 = 5;
} else {
_local2 = 6;
};
} else {
_local2 = createRand(main.antsType);
};
_local1.gotoAndStop(_local2);
return (_local1);
}
public function locationBall():void{
var _local1:Point;
_local1 = getValidPoint();
ball_mc.x = _local1.x;
ball_mc.y = _local1.y;
ball_sd_mc.x = ((cp.x * 2) - _local1.x);
ball_sd_mc.y = ((cp.y * 2) - _local1.y);
}
public function startGame():void{
while (pixel_sp.numChildren) {
pixel_sp.removeChildAt(0);
};
ballG.clear();
this.filters = [];
prevCreate();
TweenLite.to(ants_sp, 0.5, {y:(main.initRows * aw)});
init();
}
public function changeColor():void{
var _local1:int;
var _local2:int;
var _local3:int;
_local1 = createRand(main.antsType);
_local2 = 1;
while (_local2 <= (dataArr.length - 1)) {
_local3 = 1;
while (_local3 <= columns) {
if (dataArr[_local2][_local3]){
dataArr[_local2][_local3] = _local1;
antsArr[_local2][_local3].gotoAndStop(_local1);
};
_local3++;
};
_local2++;
};
}
public function dissolveHandler(_arg1:Event):void{
var _local2:MovieClip;
var _local3:BitmapData;
var _local4:BitmapData;
_local2 = (_arg1.currentTarget as MovieClip);
if (!_local2.parent){
_local2.removeEventListener(Event.ENTER_FRAME, dissolveHandler);
return;
};
_local3 = (_local2.getChildByName("b1") as Bitmap).bitmapData;
_local4 = (_local2.getChildByName("b2") as Bitmap).bitmapData;
_local2.seed = _local3.pixelDissolve(_local4, _local3.rect, new Point(0, 0), _local2.seed, 30);
_local2.totalPixel = (_local2.totalPixel - 10);
if (_local2.totalPixel <= 0){
_local2.removeEventListener(Event.ENTER_FRAME, dissolveHandler);
_local2.parent.removeChild(_local2);
};
}
public function resetBall():void{
ball_mc.x = cp.x;
ball_mc.y = (cp.y + (aw / 2));
}
public function checkOver():void{
if (dataArr.length >= 7){
main.warning_mc.play();
} else {
main.warning_mc.gotoAndStop(1);
};
if (dataArr.length > (rows / 2)){
main.warning_mc.gotoAndStop(1);
clearEvent();
main.gameOver();
};
}
}
}//package _fla
Section 3
//failMc_183 (_fla.failMc_183)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class failMc_183 extends MovieClip {
public var back_btn:SimpleButton;
public var score_txt:TextField;
public var tryagain_btn:SimpleButton;
public var main:MovieClip;
public function failMc_183(){
addFrameScript(0, frame1);
}
public function tryAgainHandler(_arg1:MouseEvent):void{
main.retry();
}
public function backHandler(_arg1:MouseEvent):void{
removeEvent();
main.backFunc();
}
function frame1(){
main = MovieClip(parent);
back_btn.addEventListener(MouseEvent.CLICK, backHandler);
tryagain_btn.addEventListener(MouseEvent.CLICK, tryAgainHandler);
}
public function removeEvent():void{
back_btn.removeEventListener(MouseEvent.CLICK, backHandler);
tryagain_btn.removeEventListener(MouseEvent.CLICK, tryAgainHandler);
}
}
}//package _fla
Section 4
//hand_124 (_fla.hand_124)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hand_124 extends MovieClip {
public var rect:Rectangle;
public var main:MovieClip;
public function hand_124(){
addFrameScript(0, frame1);
}
public function init():void{
Mouse.hide();
this.x = stage.mouseX;
this.y = stage.mouseY;
this.stage.addEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
}
public function moveHandler(_arg1:MouseEvent):void{
if (((((!(main.isReady)) || (main.isPass))) || (main.isLost))){
Mouse.show();
return;
};
if (rect.containsPoint(new Point(stage.mouseX, stage.mouseY))){
Mouse.hide();
this.x = stage.mouseX;
this.y = stage.mouseY;
this.visible = true;
} else {
Mouse.show();
this.visible = false;
};
}
function frame1(){
stop();
this.mouseChildren = false;
this.mouseEnabled = false;
rect = new Rectangle(223, 6, 411, 437);
this.addEventListener(Event.REMOVED_FROM_STAGE, removed);
main = MovieClip(parent);
init();
}
public function removed(_arg1:Event):void{
this.stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
Mouse.show();
}
}
}//package _fla
Section 5
//help_94 (_fla.help_94)
package _fla {
import flash.events.*;
import flash.display.*;
public dynamic class help_94 extends MovieClip {
public var back_btn:SimpleButton;
public var initY:Number;
public var isShow:Boolean;
public var ty:Number;
public function help_94(){
addFrameScript(0, frame1);
}
public function moveThis(_arg1:Event):void{
this.y = (this.y + ((ty - this.y) / 4));
if (Math.abs((this.y - ty)) < 1){
this.y = ty;
this.removeEventListener(Event.ENTER_FRAME, moveThis);
};
}
public function closeHandler(_arg1:MouseEvent):void{
hide();
}
function frame1(){
back_btn.addEventListener(MouseEvent.CLICK, closeHandler);
isShow = false;
initY = this.y;
}
public function hide():void{
if (!isShow){
return;
};
isShow = false;
ty = initY;
if (!hasEventListener(Event.ENTER_FRAME)){
this.addEventListener(Event.ENTER_FRAME, moveThis);
};
}
public function show():void{
if (isShow){
return;
};
isShow = true;
ty = 210;
this.addEventListener(Event.ENTER_FRAME, moveThis);
}
}
}//package _fla
Section 6
//MainTimeline (_fla.MainTimeline)
package _fla {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import gs.easing.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var effectVolume:Number;
public var goal_mc:MovieClip;
public var sec:int;
public var isPass:Boolean;
public var target1_btn:SimpleButton;
public var totalScore_txt:TextField;
public var help_btn:SimpleButton;
public var moregame2_btn:SimpleButton;
public var timeBar_mc:MovieClip;
public var pause_mc:MovieClip;
public var lost_mc:MovieClip;
public var score:int;
public var floor_mc:MovieClip;
public var pause_btn:MovieClip;
public var isReady:Boolean;
public var antsType:int;
public var interval:int;
public var play_btn:SimpleButton;
public var win_mc:MovieClip;
public var gt1:TextField;
public var gt2:TextField;
public var gt3:TextField;
public var gt4:TextField;
public var gt5:TextField;
public var moregame_btn:SimpleButton;
public var isPause:Boolean;
public var initRows:int;
public var goal:int;
public var warning_mc:MovieClip;
public var cursor_mc:MovieClip;
public var level_txt:TextField;
public var score_txt:TextField;
public var 新建符号_1:MovieClip;
public var help_mc:MovieClip;
public var light_mc:MovieClip;
public var levelScore;
public var demo_mc:MovieClip;
public var secTotal:int;
public var isLost:Boolean;
public var level:int;
public var mtp:Number;
public var mts:int;
public var createTimer:Timer;
public var effectSd:Sound;
public var MOREGAME_URI:String;
public var main_mc:MovieClip;
public var target2_btn:SimpleButton;
public var bgVolume:Number;
public var gameSetting:Array;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function initLevelData():void{
initRows = get_initRows(level);
goal = get_goal(level);
interval = get_interval(level);
antsType = get_antsType(level);
mts = get_mts(level);
mtp = get_mtp(level);
}
public function backFunc():void{
createTimer.stop();
createTimer.removeEventListener(TimerEvent.TIMER, createHandler);
this.gotoAndStop("start");
}
public function get_goal(_arg1:int):int{
return ((500 + ((_arg1 - 1) * 500)));
}
function frame3(){
stop();
level = 1;
isReady = false;
isPass = false;
isLost = false;
isPause = false;
createTimer = new Timer(50);
createTimer.addEventListener(TimerEvent.TIMER, createHandler);
target1_btn.addEventListener(MouseEvent.CLICK, targetHandler);
target2_btn.addEventListener(MouseEvent.CLICK, targetHandler);
moregame2_btn.addEventListener(MouseEvent.CLICK, moregameHandler);
}
function frame1(){
MOREGAME_URI = "http://www.runrungames.com/games391/circus-clown-show.html";
gameSetting = [undefined, {initRow:3, interval:8, antsType:3, mts:0, mtp:0, goal:200}, {}];
initRows = 0;
goal = 0;
interval = 0;
antsType = 0;
mts = 0;
mtp = 0;
level = 0;
score = 0;
levelScore = 0;
effectVolume = 1;
bgVolume = 1;
stop();
}
public function addScore(_arg1:int):void{
levelScore = (levelScore + (_arg1 * (_arg1 + 1)));
score_txt.text = levelScore.toString();
totalScore_txt.text = (levelScore + score).toString();
if (levelScore >= goal){
if (((!(isPass)) && (!(isLost)))){
isPass = true;
main_mc.clearEvent();
level++;
score = (score + levelScore);
levelScore = 0;
if (level <= 10){
showEffectSound("pass");
initGame();
} else {
showEffectSound("win");
win_mc.score_txt.text = score.toString();
TweenLite.to(win_mc, 0.5, {y:177, ease:Back.easeOut});
};
};
};
}
function frame2(){
stop();
MochiBot.track(this, "a2dc11c4");
initStartPage();
}
public function targetHandler(_arg1:MouseEvent):void{
if (_arg1.currentTarget == target1_btn){
main_mc.ball_sd_mc.visible = true;
light_mc.x = target1_btn.x;
} else {
main_mc.ball_sd_mc.visible = false;
light_mc.x = target2_btn.x;
};
}
public function moregameHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(MOREGAME_URI), "_blank");
}
public function createHandler(_arg1:TimerEvent):void{
if (!isReady){
return;
};
if (isPause){
return;
};
if (((isLost) || (isPass))){
createTimer.stop();
return;
};
sec = (sec - 50);
timeBar_mc.scaleX = (sec / interval);
if (sec <= 0){
sec = interval;
main_mc.createNewLine();
};
}
public function retry():void{
levelScore = 0;
TweenLite.to(lost_mc, 0.5, {y:-277, onComplete:initGame});
}
public function clearStage():void{
}
public function showEffectSound(_arg1:String):void{
var _local2:Class;
var _local3:Sound;
_local2 = (ApplicationDomain.currentDomain.getDefinition(_arg1) as Class);
_local3 = (new (_local2) as Sound);
_local3.play(0, 0, new SoundTransform(effectVolume));
}
public function helpHandler(_arg1:MouseEvent):void{
help_mc.show();
}
public function initStartPage():void{
play_btn.addEventListener(MouseEvent.CLICK, playHandler);
help_btn.addEventListener(MouseEvent.CLICK, helpHandler);
moregame_btn.addEventListener(MouseEvent.CLICK, moregameHandler);
}
public function show_goal():void{
goal_mc.score_txt.text = goal.toString();
goal_mc.level_txt.text = level.toString();
goal_mc.y = -209;
TweenLite.to(goal_mc, 0.5, {y:177, ease:Back.easeOut, onComplete:hide_goal});
}
public function initGame():void{
warning_mc.gotoAndStop(1);
isReady = false;
initLevelData();
isPause = false;
isPass = false;
isLost = false;
levelScore = 0;
sec = interval;
timeBar_mc.scaleX = 1;
score_txt.text = levelScore.toString();
totalScore_txt.text = score.toString();
level_txt.text = level.toString();
set_goal_digital();
show_goal();
}
public function get_mtp(_arg1:int):Number{
return ((0.01 + (_arg1 * 0.01)));
}
public function get_mts(_arg1:int):int{
return (2);
}
public function playHandler(_arg1:MouseEvent):void{
this.nextFrame();
}
public function get_interval(_arg1:int):int{
return ((8000 - (300 * _arg1)));
}
public function get_antsType(_arg1:int):int{
switch (_arg1){
case 1:
return (3);
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
return (4);
};
return (0);
}
public function ready():void{
main_mc.startGame();
createTimer.start();
isReady = true;
}
public function set_goal_digital():void{
var _local1:String;
var _local2:int;
_local1 = goal.toString();
while (_local1.length < 5) {
_local1 = ("0" + _local1);
};
_local2 = 1;
while (_local2 <= 5) {
this[("gt" + _local2)].text = _local1.charAt((_local2 - 1));
_local2++;
};
}
public function get_initRows(_arg1:int):int{
return (3);
}
public function gameOver():void{
if (((!(isPass)) && (!(isLost)))){
showEffectSound("lost");
isLost = true;
lost_mc.score_txt.text = (score + levelScore).toString();
TweenLite.to(lost_mc, 0.5, {y:177, ease:Back.easeOut});
};
}
public function replay():void{
levelScore = 0;
level = 1;
score = 0;
TweenLite.to(win_mc, 0.5, {y:-277, onComplete:initGame});
}
public function hide_goal():void{
TweenLite.to(goal_mc, 0.5, {y:-277, delay:1, onComplete:ready});
}
}
}//package _fla
Section 7
//passmc_185 (_fla.passmc_185)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class passmc_185 extends MovieClip {
public var back_btn:SimpleButton;
public var score_txt:TextField;
public var playagain_btn:SimpleButton;
public var main:MovieClip;
public function passmc_185(){
addFrameScript(0, frame1);
}
public function playAgainHandler(_arg1:MouseEvent):void{
main.replay();
}
public function backHandler(_arg1:MouseEvent):void{
removeEvent();
main.backFunc();
}
function frame1(){
main = MovieClip(parent);
back_btn.addEventListener(MouseEvent.CLICK, backHandler);
playagain_btn.addEventListener(MouseEvent.CLICK, playAgainHandler);
}
public function removeEvent():void{
back_btn.removeEventListener(MouseEvent.CLICK, backHandler);
playagain_btn.removeEventListener(MouseEvent.CLICK, playAgainHandler);
}
}
}//package _fla
Section 8
//pause_btn_111 (_fla.pause_btn_111)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class pause_btn_111 extends MovieClip {
public var main:MovieClip;
public function pause_btn_111(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.mouseChildren = false;
this.buttonMode = true;
main = MovieClip(parent);
this.addEventListener(MouseEvent.CLICK, pauseHandler);
}
public function pauseHandler(_arg1:MouseEvent):void{
main.pause_mc.showPause((this.currentFrame == 1));
}
}
}//package _fla
Section 9
//pause_mc_122 (_fla.pause_mc_122)
package _fla {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class pause_mc_122 extends MovieClip {
public var initY:Number;
public var main:MovieClip;
public var isPaused:Boolean;
public function pause_mc_122(){
addFrameScript(0, frame1);
}
public function downHandler(_arg1:MouseEvent):void{
showPause(false);
}
function frame1(){
main = MovieClip(parent);
isPaused = false;
initY = this.y;
this.stage.addEventListener(Event.DEACTIVATE, onDeactive);
this.mouseChildren = false;
this.buttonMode = true;
this.addEventListener(MouseEvent.MOUSE_DOWN, downHandler);
}
public function onDeactive(_arg1:Event):void{
if (stage){
showPause(true);
};
}
public function showPause(_arg1:Boolean):void{
var flag = _arg1;
if (isPaused == flag){
return;
};
if (!main.isReady){
return;
};
if (((main.isPass) || (main.isLost))){
return;
};
isPaused = flag;
if (isPaused == true){
main.isPause = true;
};
main.pause_btn.gotoAndStop((isPaused) ? 2 : 1);
TweenLite.to(this, 0.5, {y:(isPaused) ? 226 : initY, onComplete:function (){
main.isPause = isPaused;
}});
}
}
}//package _fla
Section 10
//q_147 (_fla.q_147)
package _fla {
import flash.display.*;
public dynamic class q_147 extends MovieClip {
public var ball_sd_mc:MovieClip;
public var a2:MovieClip;
public var a3:MovieClip;
public var a1:MovieClip;
}
}//package _fla
Section 11
//q_148 (_fla.q_148)
package _fla {
import flash.display.*;
public dynamic class q_148 extends MovieClip {
public var m3:MovieClip;
public var m1:MovieClip;
public var m4:MovieClip;
public var m2:MovieClip;
}
}//package _fla
Section 12
//q_158 (_fla.q_158)
package _fla {
import flash.display.*;
public dynamic class q_158 extends MovieClip {
public var m1:MovieClip;
}
}//package _fla
Section 13
//q_176 (_fla.q_176)
package _fla {
import flash.display.*;
public dynamic class q_176 extends MovieClip {
public var m1:MovieClip;
}
}//package _fla
Section 14
//q_177 (_fla.q_177)
package _fla {
import flash.display.*;
public dynamic class q_177 extends MovieClip {
public var m2:MovieClip;
}
}//package _fla
Section 15
//q_178 (_fla.q_178)
package _fla {
import flash.display.*;
public dynamic class q_178 extends MovieClip {
public var m2:MovieClip;
}
}//package _fla
Section 16
//q_180 (_fla.q_180)
package _fla {
import flash.display.*;
public dynamic class q_180 extends MovieClip {
public var m1:MovieClip;
}
}//package _fla
Section 17
//runrun_loading_2 (_fla.runrun_loading_2)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class runrun_loading_2 extends MovieClip {
public var rp:runrun_pao;
public var a;
public var scale;
public function runrun_loading_2(){
addFrameScript(0, frame1);
}
public function rps(_arg1):void{
_arg1.target.x = (_arg1.target.x + Math.cos(_arg1.target.dir));
_arg1.target.y = (_arg1.target.y - _arg1.target.v);
_arg1.target.width = ((_arg1.target.sc * (900 - _arg1.target.y)) / 450);
_arg1.target.height = ((_arg1.target.sc * (900 - _arg1.target.y)) / 450);
if (_arg1.target.x > 700){
_arg1.target.x = -50;
};
if (_arg1.target.x < -50){
_arg1.target.x = 700;
};
if (_arg1.target.y < -50){
_arg1.target.y = 500;
};
}
function frame1(){
a = 1;
while (a <= 40) {
rp = new runrun_pao();
scale = Math.floor(((Math.random() * 24) + 16));
rp.width = scale;
rp.height = scale;
rp.sc = scale;
rp.gotoAndStop(Math.floor(((Math.random() * 2) + 1)));
rp.x = Math.floor((Math.random() * 700));
rp.y = (Math.floor((Math.random() * 500)) + 450);
rp.rotation = Math.floor((Math.random() * 360));
rp.dir = -(Math.floor((Math.random() * 180)));
rp.v = (Math.floor((Math.random() * 3)) + 3);
rp.addEventListener(Event.ENTER_FRAME, rps);
this.addChild(rp);
a++;
};
}
}
}//package _fla
Section 18
//runrun_loading_33 (_fla.runrun_loading_33)
package _fla {
import flash.display.*;
public dynamic class runrun_loading_33 extends MovieClip {
public function runrun_loading_33(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package _fla
Section 19
//runrun_loading_34 (_fla.runrun_loading_34)
package _fla {
import flash.display.*;
public dynamic class runrun_loading_34 extends MovieClip {
public function runrun_loading_34(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package _fla
Section 20
//runrun_loading_35 (_fla.runrun_loading_35)
package _fla {
import flash.display.*;
public dynamic class runrun_loading_35 extends MovieClip {
public function runrun_loading_35(){
addFrameScript(40, frame41);
}
function frame41(){
gotoAndPlay(6);
}
}
}//package _fla
Section 21
//runrun_loading_37 (_fla.runrun_loading_37)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class runrun_loading_37 extends MovieClip {
public var percent_txt:TextField;
public function runrun_loading_37(){
addFrameScript(0, frame1, 239, frame240);
}
function frame1(){
this.nowk = (this.totalFrames / 48);
this.addEventListener(Event.ENTER_FRAME, nowks);
}
function frame240(){
stop();
this.removeEventListener(Event.ENTER_FRAME, nowks);
}
public function nowks(_arg1):void{
percent_txt.text = (int(((this.currentFrame / this.totalFrames) * 100)).toString() + "%");
}
}
}//package _fla
Section 22
//runrun_loading_4 (_fla.runrun_loading_4)
package _fla {
import flash.display.*;
public dynamic class runrun_loading_4 extends MovieClip {
public function runrun_loading_4(){
addFrameScript(0, frame1, 1, frame2, 144, frame145);
}
function frame1(){
this.visible = false;
}
function frame2(){
this.visible = true;
}
function frame145(){
stop();
}
}
}//package _fla
Section 23
//runrun_loading_40 (_fla.runrun_loading_40)
package _fla {
import flash.events.*;
import flash.display.*;
public dynamic class runrun_loading_40 extends MovieClip {
public var play_btn:SimpleButton;
public function runrun_loading_40(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, plays);
}
public function plays(_arg1):void{
MovieClip(root).nextFrame();
}
}
}//package _fla
Section 24
//runrun_loading_44 (_fla.runrun_loading_44)
package _fla {
import flash.display.*;
public dynamic class runrun_loading_44 extends MovieClip {
public function runrun_loading_44(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package _fla
Section 25
//runrun_loading_45 (_fla.runrun_loading_45)
package _fla {
import flash.display.*;
public dynamic class runrun_loading_45 extends MovieClip {
public function runrun_loading_45(){
addFrameScript(9, frame10);
}
function frame10(){
MovieClip(root).play();
}
}
}//package _fla
Section 26
//runrun_logo_92 (_fla.runrun_logo_92)
package _fla {
import flash.display.*;
public dynamic class runrun_logo_92 extends MovieClip {
public function runrun_logo_92(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package _fla
Section 27
//runrun_logo_mc_75 (_fla.runrun_logo_mc_75)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class runrun_logo_mc_75 extends MovieClip {
public var logo_btn:SimpleButton;
public function runrun_logo_mc_75(){
addFrameScript(0, frame1);
}
function frame1(){
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.runrungames.com/games405/adventure-in-pond.html"), "_blank");
}
}
}//package _fla
Section 28
//runrungames_loading_1 (_fla.runrungames_loading_1)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class runrungames_loading_1 extends MovieClip {
public var loading:MovieClip;
public var logo_btn:SimpleButton;
public function runrungames_loading_1(){
addFrameScript(0, frame1, 1, frame2);
}
public function enterFrameHandler(_arg1:Event):void{
var _local2:Number;
_local2 = int(((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal) * 100));
if (loading.currentFrame < int(((_local2 / 100) * 240))){
loading.play();
} else {
loading.stop();
};
if (loading.currentFrame == loading.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
goNext();
};
loading.percent_txt.text = (int(((loading.currentFrame / 240) * 100)).toString() + "%");
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
function frame2(){
stop();
this.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
public function goNext():void{
this.play();
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.runrungames.com"), "_blank");
}
}
}//package _fla
Section 29
//Timeline_126 (_fla.Timeline_126)
package _fla {
import flash.display.*;
public dynamic class Timeline_126 extends MovieClip {
public var m3:MovieClip;
public var m1:MovieClip;
public var m4:MovieClip;
public var m2:MovieClip;
public function Timeline_126(){
addFrameScript(0, frame1);
}
public function stopMotion():void{
m1.gotoAndStop(1);
m2.gotoAndStop(1);
m3.gotoAndStop(1);
m4.gotoAndStop(1);
}
function frame1(){
}
}
}//package _fla
Section 30
//Timeline_134 (_fla.Timeline_134)
package _fla {
import flash.display.*;
public dynamic class Timeline_134 extends MovieClip {
public var m1:MovieClip;
public function Timeline_134(){
addFrameScript(0, frame1);
}
public function stopMotion():void{
m1.gotoAndStop(1);
}
function frame1(){
}
}
}//package _fla
Section 31
//Timeline_136 (_fla.Timeline_136)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_136 extends MovieClip {
public var m1:MovieClip;
public function Timeline_136(){
addFrameScript(0, frame1);
}
public function stopMotion():void{
m1.gotoAndStop(1);
m1.m2.m2.gotoAndStop(1);
}
function frame1(){
}
}
}//package _fla
Section 32
//Timeline_137 (_fla.Timeline_137)
package _fla {
import flash.display.*;
public dynamic class Timeline_137 extends MovieClip {
public var m2:MovieClip;
}
}//package _fla
Section 33
//Timeline_138 (_fla.Timeline_138)
package _fla {
import flash.display.*;
public dynamic class Timeline_138 extends MovieClip {
public var m2:MovieClip;
}
}//package _fla
Section 34
//Timeline_140 (_fla.Timeline_140)
package _fla {
import flash.display.*;
public dynamic class Timeline_140 extends MovieClip {
public var m1:MovieClip;
public var m2:MovieClip;
public function Timeline_140(){
addFrameScript(0, frame1);
}
public function stopMotion():void{
m1.gotoAndStop(1);
m2.gotoAndStop(1);
}
function frame1(){
}
}
}//package _fla
Section 35
//Timeline_144 (_fla.Timeline_144)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_144 extends MovieClip {
public var main:MovieClip;
public function Timeline_144(){
addFrameScript(0, frame1, 286, frame287);
}
function frame287(){
stop();
this.removeEventListener(Event.ENTER_FRAME, checkPause);
MovieClip(parent).gotoAndStop((Math.floor((Math.random() * 4)) + 1));
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, update);
main = MovieClip(root);
}
public function update(_arg1:Event):void{
var _local2:Point;
if (stage == null){
return;
};
_local2 = new Point(parent.x, parent.y);
_local2 = parent.parent.localToGlobal(_local2);
if (_local2.y > 4){
this.removeEventListener(Event.ENTER_FRAME, update);
this.addEventListener(Event.ENTER_FRAME, checkPause);
this.play();
};
}
public function checkPause(_arg1:Event):void{
if (main.isPause){
this.stop();
} else {
this.play();
};
}
}
}//package _fla
Section 36
//Timeline_145 (_fla.Timeline_145)
package _fla {
import flash.display.*;
public dynamic class Timeline_145 extends MovieClip {
public function Timeline_145(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
parent.parent.removeChild(parent);
}
}
}//package _fla
Section 37
//Timeline_182 (_fla.Timeline_182)
package _fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_182 extends MovieClip {
public var level_txt:TextField;
public var score_txt:TextField;
}
}//package _fla
Section 38
//Timeline_67 (_fla.Timeline_67)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_67 extends MovieClip {
public var main:MovieClip;
public function Timeline_67(){
addFrameScript(0, frame1);
}
public function downHandler(_arg1:MouseEvent):void{
main.effectVolume = ((this.currentFrame == 2)) ? 1 : 0;
this.gotoAndStop((3 - this.currentFrame));
}
function frame1(){
stop();
this.mouseChildren = false;
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, downHandler);
main = MovieClip(root);
if (main.effectVolume < 1){
this.nextFrame();
};
}
}
}//package _fla
Section 39
//Timeline_68 (_fla.Timeline_68)
package _fla {
import flash.display.*;
public dynamic class Timeline_68 extends MovieClip {
public function Timeline_68(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package _fla
Section 40
//Back (gs.easing.Back)
package gs.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package gs.easing
Section 41
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 42
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
}
}//package gs.plugins
Section 43
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
}
}//package gs.plugins
Section 44
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 45
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.geom.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 46
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 47
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
}
}//package gs.plugins
Section 48
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
}
}//package gs.plugins
Section 49
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 50
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 51
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.display.*;
import gs.utils.tween.*;
import gs.plugins.*;
import flash.utils.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.092;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && (this.target.hasOwnProperty("timeScale")))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 52
//BGMusic (ui.BGMusic)
package ui {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public class BGMusic extends MovieClip {
private static var channel:SoundChannel = null;
private static var position:Number = 0;
private static var soundPlay:Boolean = true;
private static var sound:Sound = null;
public function BGMusic(){
addFrameScript(0, frame1);
this.mouseChildren = false;
this.buttonMode = true;
if (stage){
init();
} else {
addEventListener(Event.ENTER_FRAME, init);
};
this.addEventListener(MouseEvent.CLICK, toggleSound);
}
private function closeSound():void{
soundPlay = false;
this.gotoAndStop(2);
if (channel){
position = channel.position;
channel.stop();
channel.removeEventListener(Event.SOUND_COMPLETE, onComplete);
};
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.ENTER_FRAME, init);
if (!sound){
sound = new bg_sound();
};
if (soundPlay){
showSound();
} else {
closeSound();
};
}
private function showSound():void{
soundPlay = true;
this.gotoAndStop(1);
if (channel){
channel.removeEventListener(Event.SOUND_COMPLETE, onComplete);
channel.stop();
};
channel = sound.play(position, 0, new SoundTransform(0.2));
channel.addEventListener(Event.SOUND_COMPLETE, onComplete);
}
private function toggleSound(_arg1:MouseEvent):void{
if (soundPlay){
closeSound();
} else {
showSound();
};
}
private function onComplete(_arg1:Event):void{
if (channel){
channel.stop();
};
position = 0;
channel = sound.play(position, 0, new SoundTransform(0.2));
channel.addEventListener(Event.SOUND_COMPLETE, onComplete);
}
function frame1(){
stop();
}
private function onRemoved(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
this.removeEventListener(MouseEvent.CLICK, toggleSound);
if (soundPlay){
closeSound();
soundPlay = true;
};
}
}
}//package ui
Section 53
//ants (ants)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ants extends MovieClip {
public var a4:MovieClip;
public var a2:MovieClip;
public var a3:MovieClip;
public var a1:MovieClip;
public function ants(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
if (Math.random() > 0.1){
a3.stopMotion();
};
}
function frame1(){
stop();
if (Math.random() > 0.1){
a1.stopMotion();
};
}
function frame4(){
stop();
if (Math.random() > 0.1){
a4.stopMotion();
};
}
function frame2(){
stop();
if (Math.random() > 0.1){
a2.stopMotion();
};
}
}
}//package
Section 54
//bg_sound (bg_sound)
package {
import flash.media.*;
public dynamic class bg_sound extends Sound {
}
}//package
Section 55
//bomb (bomb)
package {
import flash.media.*;
public dynamic class bomb extends Sound {
}
}//package
Section 56
//drag (drag)
package {
import flash.media.*;
public dynamic class drag extends Sound {
}
}//package
Section 57
//drop (drop)
package {
import flash.media.*;
public dynamic class drop extends Sound {
}
}//package
Section 58
//fire (fire)
package {
import flash.media.*;
public dynamic class fire extends Sound {
}
}//package
Section 59
//lost (lost)
package {
import flash.media.*;
public dynamic class lost extends Sound {
}
}//package
Section 60
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 61
//pass (pass)
package {
import flash.media.*;
public dynamic class pass extends Sound {
}
}//package
Section 62
//runrun_pao (runrun_pao)
package {
import flash.display.*;
public dynamic class runrun_pao extends MovieClip {
}
}//package
Section 63
//win (win)
package {
import flash.media.*;
public dynamic class win extends Sound {
}
}//package