Section 1
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class AdLoader {
private static var cpmstarLoader:Loader;
public static function LoadAd(_arg1:int, _arg2:int):DisplayObject{
var _local3:String;
Security.allowDomain("server.cpmstar.com");
_local3 = "http://server.cpmstar.com/adviewas3.swf";
cpmstarLoader = new Loader();
cpmstarLoader.load(new URLRequest(((((_local3 + "?poolid=") + _arg1) + "&subpoolid=") + _arg2)));
return (cpmstarLoader);
}
}
}//package CPMStar
Section 2
//background_97 (evito_ball_fla.background_97)
package evito_ball_fla {
import flash.display.*;
public dynamic class background_97 extends MovieClip {
public function background_97(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 3
//bomb2_still_71 (evito_ball_fla.bomb2_still_71)
package evito_ball_fla {
import flash.display.*;
public dynamic class bomb2_still_71 extends MovieClip {
public function bomb2_still_71(){
addFrameScript(170, frame171);
}
function frame171(){
MovieClip(root).nextFrame();
}
}
}//package evito_ball_fla
Section 4
//bronze_ach_92 (evito_ball_fla.bronze_ach_92)
package evito_ball_fla {
import flash.display.*;
public dynamic class bronze_ach_92 extends MovieClip {
public function bronze_ach_92(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 5
//catapult_marker_37 (evito_ball_fla.catapult_marker_37)
package evito_ball_fla {
import flash.display.*;
public dynamic class catapult_marker_37 extends MovieClip {
public function catapult_marker_37(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package evito_ball_fla
Section 6
//catapult_mc_55 (evito_ball_fla.catapult_mc_55)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class catapult_mc_55 extends MovieClip {
public function catapult_mc_55(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
MovieClip(parent).fire();
}
}
}//package evito_ball_fla
Section 7
//exported_19 (evito_ball_fla.exported_19)
package evito_ball_fla {
import flash.display.*;
public dynamic class exported_19 extends MovieClip {
public function exported_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 8
//flamethrower_mc_53 (evito_ball_fla.flamethrower_mc_53)
package evito_ball_fla {
import flash.display.*;
public dynamic class flamethrower_mc_53 extends MovieClip {
public function flamethrower_mc_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 9
//game_96 (evito_ball_fla.game_96)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class game_96 extends MovieClip {
public var p_key:Boolean;
public var coins:Number;
public var rad:Number;
public var left_key:Boolean;
public var bg:MovieClip;
public var key:Boolean;
public var finish_check:Boolean;
public var starting:Boolean;
public var prlse:Boolean;
public var level10:String;
public var level11:String;
public var level12:String;
public var level13:String;
public var level14:String;
public var level15:String;
public var level16:String;
public var level18:String;
public var level19:String;
public var level17:String;
public var up_key:Boolean;
public var pcsect:Number;
public var level20:String;
public var level21:String;
public var level22:String;
public var level23:String;
public var level24:String;
public var level25:String;
public var level27:String;
public var level28:String;
public var level29:String;
public var level26:String;
public var coins_got:Number;
public var level30:String;
public var level32:String;
public var level33:String;
public var level34:String;
public var level35:String;
public var level36:String;
public var level37:String;
public var level31:String;
public var level39:String;
public var hole:Hole;
public var osd:MovieClip;
public var level38:String;
public var level44:String;
public var level46:String;
public var level41:String;
public var level42:String;
public var level47:String;
public var level49:String;
public var level43:String;
public var level45:String;
public var csec:Number;
public var level48:String;
public var objects:Array;
public var level51:String;
public var level40:String;
public var level54:String;
public var level56:String;
public var level50:String;
public var level53:String;
public var level55:String;
public var srlse:Boolean;
public var level1:String;
public var level2:String;
public var level3:String;
public var level4:String;
public var level5:String;
public var level6:String;
public var level7:String;
public var level9:String;
public var level58:String;
public var level52:String;
public var shift_key:Boolean;
public var level8:String;
public var level57:String;
public var level61:String;
public var level64:String;
public var level65:String;
public var level66:String;
public var level60:String;
public var level62:String;
public var down_key:Boolean;
public var spad:Spad;
public var level59:String;
public var level67:String;
public var level69:String;
public var level63:String;
public var level70:String;
public var level71:String;
public var level72:String;
public var level75:String;
public var level76:String;
public var level77:String;
public var level79:String;
public var sboost_timer:Number;
public var level73:String;
public var level74:String;
public var level68:String;
public var r_key:Boolean;
public var levels:Array;
public var level80:String;
public var level78:String;
public var a_key:Boolean;
public var pcsec:String;
public var level:Number;
public var rrlse:Boolean;
public var space_key:Boolean;
public var sboosted:Boolean;
public var main:MovieClip;
public var right_key:Boolean;
public var psec:String;
public var pmin:String;
public var pause_type:String;
public var land:MovieClip;
public var arlse:Boolean;
public var gpause:Boolean;
public var ep_num:Number;
public var ball:Ball;
public function game_96(){
addFrameScript(0, frame1);
}
public function clearObjects(){
var _local1:Number;
_local1 = (objects.length - 1);
while (_local1 >= 0) {
objects[_local1].parent.removeChild(objects[_local1]);
if (objects[_local1].EF != null){
objects[_local1].removeEventListener(Event.ENTER_FRAME, objects[_local1].EF);
};
objects[_local1] = null;
objects.splice(_local1, 1);
_local1--;
};
}
public function timeStringRaw(_arg1:Number){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:String;
var _local9:String;
var _local10:String;
var _local11:String;
_local2 = (_arg1 / 6000);
_local3 = Math.floor(_local2);
_local4 = ((_local2 - _local3) * 60);
_local5 = Math.floor(_local4);
_local6 = ((_local4 - _local5) * 100);
_local7 = Math.floor(_local6);
if (_local3 < 10){
_local8 = ("0" + String(_local3));
} else {
_local8 = String(_local3);
};
if (_local5 < 10){
_local9 = ("0" + String(_local5));
} else {
_local9 = String(_local5);
};
if (_local7 < 10){
_local10 = ("0" + String(_local7));
} else {
_local10 = String(_local7);
};
_local11 = ((((_local8 + ":") + _local9) + ".") + _local10);
return (_local11);
}
public function goBack(){
removeEventListener(Event.ENTER_FRAME, EF);
removeEventListener(KeyboardEvent.KEY_DOWN, key_down);
removeEventListener(KeyboardEvent.KEY_UP, key_up);
main.gotoAndStop("levels");
}
public function makeLevel(_arg1:Number){
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:String;
var _local7:String;
var _local8:Coin;
var _local9:String;
var _local10:Number;
var _local11:Number;
var _local12:MovieClip;
var _local13:Laser;
var _local14:Rocket;
var _local15:Grenade;
var _local16:Gun;
var _local17:Vacuum;
var _local18:Sprinkler;
var _local19:Catapult;
var _local20:Pathfinder;
var _local21:Flamethrower;
var _local22:Scanner;
addChild(spad);
addChild(hole);
addChild(ball);
hole.gotoAndStop(1);
_local2 = levels[(_arg1 - 1)];
_local3 = 0;
_local4 = _local2.indexOf("x", _local3);
spad.x = Number(_local2.slice(_local3, _local4));
_local3 = (_local4 + 1);
_local4 = _local2.indexOf(" ", _local3);
spad.y = Number(_local2.slice(_local3, _local4));
ball.x = spad.x;
ball.y = spad.y;
_local3 = (_local4 + 1);
_local4 = _local2.indexOf("x", _local3);
hole.x = Number(_local2.slice(_local3, _local4));
_local3 = (_local4 + 1);
_local4 = _local2.indexOf(" ", _local3);
hole.y = Number(_local2.slice(_local3, _local4));
_local3 = (_local4 + 1);
_local4 = _local2.indexOf(":", _local3);
pmin = _local2.slice(_local3, _local4);
_local3 = (_local4 + 1);
_local4 = _local2.indexOf(".", _local3);
psec = _local2.slice(_local3, _local4);
_local3 = (_local4 + 1);
_local4 = _local2.indexOf(" ", _local3);
pcsec = _local2.slice(_local3, _local4);
pcsect = timeString(pmin, psec, pcsec);
_local3 = (_local4 + 1);
_local5 = (_local2.indexOf("*", _local3) + 2);
_local6 = _local2.slice(_local3, (_local2.indexOf("*", _local3) + 1));
_local3 = 0;
_local4 = _local6.indexOf("x", _local3);
while (_local4 > 0) {
_local8 = new Coin();
objects.push(_local8);
addChild(_local8);
_local8.x = Number(_local6.slice(_local3, _local4));
_local3 = (_local4 + 1);
_local4 = _local6.indexOf(",", _local3);
_local8.y = Number(_local6.slice(_local3, _local4));
_local3 = (_local4 + 1);
_local4 = _local6.indexOf("x", _local3);
};
_local3 = _local5;
_local7 = _local2.slice(_local3, (_local2.indexOf("*", _local3) + 1));
_local3 = 0;
_local4 = 2;
while (_local7.indexOf(",", _local3) > 0) {
_local9 = _local7.slice(_local3, _local4);
_local3 = _local4;
_local4 = _local7.indexOf("x", _local3);
_local10 = Number(_local7.slice(_local3, _local4));
_local3 = (_local4 + 1);
_local4 = _local7.indexOf(",", _local3);
_local11 = Number(_local7.slice(_local3, _local4));
_local3 = (_local4 + 1);
_local4 = (_local3 + 2);
_local12 = new MovieClip();
if (_local9 == "la"){
_local13 = new Laser();
_local12 = _local13;
} else {
if (_local9 == "ro"){
_local14 = new Rocket();
_local12 = _local14;
} else {
if (_local9 == "gr"){
_local15 = new Grenade();
_local12 = _local15;
} else {
if (_local9 == "gu"){
_local16 = new Gun();
_local12 = _local16;
} else {
if (_local9 == "va"){
_local17 = new Vacuum();
_local12 = _local17;
} else {
if (_local9 == "sp"){
_local18 = new Sprinkler();
_local12 = _local18;
} else {
if (_local9 == "ca"){
_local19 = new Catapult();
_local12 = _local19;
} else {
if (_local9 == "pa"){
_local20 = new Pathfinder();
_local12 = _local20;
} else {
if (_local9 == "fl"){
_local21 = new Flamethrower();
_local12 = _local21;
} else {
if (_local9 == "sc"){
_local22 = new Scanner();
_local12 = _local22;
};
};
};
};
};
};
};
};
};
};
addChild(_local12);
objects.push(_local12);
_local12.x = _local10;
_local12.y = _local11;
};
addChild(osd);
}
public function playSound(_arg1:String, _arg2:Number){
var _local3:Sound;
var _local4:SoundChannel;
var _local5:SoundTransform;
var _local6:Hit;
var _local7:Bomb;
if (main.sound){
_local3 = new Sound();
_local4 = new SoundChannel();
_local5 = new SoundTransform(_arg2);
if (_arg1 == "Hit"){
_local6 = new Hit();
_local3 = _local6;
};
if (_arg1 == "Bomb"){
_local7 = new Bomb();
_local3 = _local7;
};
_local4 = _local3.play();
_local4.soundTransform = _local5;
};
}
public function nextLevel(){
if (level == 20){
goBack();
} else {
level++;
main.level_num++;
pause_type = "start";
osd.gotoAndStop(1);
csec = 0;
clearObjects();
key = false;
starting = true;
sboosted = false;
sboost_timer = 0;
ball.maxspeed = 4;
ball.acc = 0.15;
coins = (coins_got = 0);
land.gotoAndStop((level + ep_num));
makeLevel((level + ep_num));
ball.visible = true;
starting = true;
};
}
function frame1(){
stop();
rad = (Math.PI / 180);
main = MovieClip(parent);
level1 = "150x300 450x300 00:05.00 425x300,400x300,375x300,350x300,325x300,300x300,275x300,250x300,225x300,200x300,175x300,* *";
level2 = "50x300 550x300 00:05.00 450x300,300x300,150x300,* gu450x150,gu300x450,gu150x150,*";
level3 = "50x550 50x350 00:08.00 550x350,550x375,550x400,550x425,550x450,550x475,550x500,550x525,550x550,* la300x50,*";
level4 = "75x300 525x300 00:10.00 300x400,300x187.5,400x300,200x300,* va300x300,*";
level5 = "300x62.5 300x62.5 00:13.00 562.5x37.5,562.5x562.5,37.5x562.5,37.5x37.5,* sc300x300,*";
level6 = "50x550 62.5x467.5 00:19.00 190x549.8,303x535.8,400x514.8,499x480.8,492x377.85,497x264.85,492x173.85,423x99.85,353x48.85,356x144.85,396x203.85,312x186.85,238x130.85,172x122.85,89x97.85,90x201.85,104x273.85,197x265.85,313x260.85,396x333.85,319x384.8,216x356.85,189x417.8,208x487.8,94x494.8,* pa309.5x318.5,*";
level7 = "525x450 100x150 00:16.00 275x125,300x112.5,325x125,325x175,300x187.5,275x175,275x275,300x262.5,325x275,325x325,300x337.5,275x325,275x425,300x412.5,325x425,325x475,300x487.5,275x475,* ca300x300,*";
level8 = "150x450 450x450 00:08.00 300x325,150x275,450x275,* la550x300,*";
level9 = "50x550 550x50 00:07.00 350x250,100x500,500x100,150x450,200x400,250x350,400x200,450x150,* ro300x300,*";
level10 = "300x225 300x450 00:18.00 500x75,100x75,300x337.5,550x525,50x525,300x37.5,37.5x300,300x562.5,562.5x300,* gu300x500,*";
level11 = "75x525 450x375 00:36.00 150x400,525x525,75x450,300x450,525x450,450x175,375x75,75x250,300x100,* pa525x75,*";
level12 = "550x550 250x550 00:12.00 300x50,550x300,50x300,* ro300x550,*";
level13 = "300x550 300x50 00:16.00 212.5x300,137.5x300,387.5x300,462.5x300,* sp300x300,gu525x300,gu75x300,*";
level14 = "300x50 300x300 00:20.00 300x150,425x175,425x425,300x450,175x425,150x300,175x175,450x300,* la550x50,la550x300,la550x550,la300x550,la50x550,la50x300,la50x50,*";
level15 = "37.5x562.5 37.5x37.5 00:13.00 562.5x37.5,562.5x562.5,* fl300x300,*";
level16 = "75x300 525x300 00:08.00 400x425,300x425,200x425,525x425,* gr200x175,gr300x175,gr400x175,*";
level17 = "300x300 300x300 00:22.00 500x300,100x300,300x100,300x500,* pa537.5x512.5,*";
level18 = "100x525 500x525 00:14.00 450x300,75x300,* va300x75,gr525x300,*";
level19 = "425x175 175x425 00:27.00 175x175,425x425,* la300x300,*";
level20 = "400x350 250x450 00:30.00 250x125,50x550,50x275,* gu550x300,ca400x50,va50x50,sc50x125,*";
level21 = "300x550 300x550 00:09.00 550x300,300x50,50x300,* sp300x300,*";
level22 = "537.5x275 537.5x325 00:07.00 500x225,450x200,400x200,350x200,300x200,250x200,200x200,150x200,100x225,62.5x275,62.5x325,100x375,450x400,400x400,350x400,300x400,250x400,200x400,150x400,500x375,* gr150x300,*";
level23 = "50x400 50x200 00:09.00 300x500,500x300,300x100,* la300x550,la550x300,la300x50,*";
level24 = "50x50 550x550 00:11.00 325x300,300x300,350x300,* va550x300,gu100x300,*";
level25 = "125x300 475x300 00:06.50 300x475,300x125,* pa300x300,*";
level26 = "112.5x62.5 500x512.5 00:18.00 37.5x212.5,512.5x62.5,450x212.5,150x312.5,312.5x262.5,187.5x562.5,537.5x412.5,* ca300x312.5,*";
level27 = "325x50 145.5x125 00:11.00 512.5x263.5,462.5x137.5,166.25x124.85,550x472,162.5x465.5,* gu550x50,gr325x550,la325x350,*";
level28 = "50x325 550x275 00:08.00 125x300,300x125,475x300,300x475,* fl300x300,*";
level29 = "50x100 555x550 00:15.00 80x537.5,155x412.5,230x225,305x375,380x275,455x500,530x112.5,* pa50x50,*";
level30 = "125x500 475x500 00:08.00 300x450,300x75,462.5x250,137.5x250,* ro225x375,ro375x375,ro500x250,ro300x115.5,ro100x250,*";
level31 = "50x50 37.5x562.5 00:20.00 450x225,425x225,400x200,425x200,450x200,450x300,150x362.5,300x412.5,537.5x437.5,387.5x462.5,137.5x462.5,200x512.5,450x512.5,462.5x562.5,212.5x562.5,* pa537.5x262.5,ro450x50,*";
level32 = "300x100 300x550 00:04.50 300x150,300x175,300x200,300x225,300x250,300x275,300x300,300x325,300x412.5,275x412.5,325x412.5,300x500,* ca300x475,gr300x50,*";
level33 = "50x550 550x50 00:13.00 75x150,275x300,* gr50x25,la562.5x150,*";
level34 = "50x50 150x450 00:02.70 * la175x300,ro150x350,la125x300,gr150x250,*";
level35 = "300x300 300x87.5 00:20.00 87.5x162.5,87.5x437.5,162.5x512.5,437.5x512.5,512.5x437.5,512.5x162.5,437.5x87.5,162.5x87.5,* la300x512.5,gu512.5x300,gr87.5x300,*";
level36 = "300x300 300x300 00:25.00 37.5x300,562.5x300,300x162.5,300x437.5,* va300x200,pa300x400,va75x300,va525x300,*";
level37 = "50x150 125x50 00:09.00 337.5x262.5,* sc50x50,fl150x450,fl525x75,*";
level38 = "450x50 150x50 00:12.00 237.5x300,212.5x275,191.5x249,175x225,165.5x200,362.5x300,387.5x275,406x250,425x225,435.5x200,* va225x550,la375x550,*";
level39 = "300x450 300x150 00:04.50 350x250,250x250,* ro150x450,ro450x450,*";
level40 = "325x562.5 300x250 00:17.00 300x62.5,300x162.5,300x387.5,300x487.5,* pa287.5x562.5,ca300x300,*";
level41 = "87.5x512.5 512.5x87.5 00:06.00 137.5x537.5,212.5x487.5,187.5x387.5,212.5x287.5,300x300,387.5x312.5,425x250,400x187.5,387.5x112.5,450x62.5,* ca487.5x487.5,*";
level42 = "100x500 500x100 00:22.50 550x550,50x50,400x550,250x550,50x350,50x200,200x50,350x50,550x250,550x400,* pa300x300,*";
level43 = "300x100 300x500 00:07.00 100x300,500x300,* gu150x300,gu450x300,*";
level44 = "175x175 187.5x312.5 00:09.00 137.5x299.7,235.75x382.85,254.6x399.95,273.9x415.2,297.25x431.2,323.75x440.6,351.8x446.05,374.75x429.25,114.8x286.6,92.1x266.9,74.4x245.25,61.25x220.5,66x190,* la450x300,la150x450,*";
level45 = "450x400 300x125 00:07.00 300x250,137.5x112.5,150x400,300x400,* fl300x550,*";
level46 = "50x50 50x550 00:11.00 550x50,550x550,* la300.45x300.45,ro525x75,ro525x525,*";
level47 = "300x50 300x550 00:17.00 550x300,50x150,50x450,* pa50x300,*";
level48 = "300x50 300x530 00:09.00 210.7x351.55,300.05x196.9,255.4x300.05,210.7x248.5,277.7x261.4,322.35x261.4,389.3x248.5,344.65x300.05,389.3x351.55,322.35x338.65,300.05x403.15,277.7x338.65,* gr103x187.5,gr497x187.5,gr497x412.5,gr103x412.5,*";
level49 = "300x37.5 300x550 00:14.00 475x375,125x375,400x175,400x187.5,200x175,200x187.5,200x162.5,400x162.5,* sc300x75,*";
level50 = "87.5x87.5 87.5x87.5 00:15.00 300x87.5,512.5x300,300x512.5,87.5x300,* pa300x300,va450x150,va450x450,va150x450,*";
level51 = "87.5x87.5 537.5x537.5 00:14.00 162.5x162.5,425x162.5,437.5x437.5,300x412.5,162.5x437.5,300x187.5,* sp150x300,sp450x300,*";
level52 = "461.7x471.35 234.7x362.4 00:08.00 444.7x351.4,388.7x242.4,150.7x223.4,109.7x360.4,171.7x446.35,204.7x317.4,264.7x316.4,259.7x429.35,204.7x381.4,* ro275.25x206.45,la290.05x349.45,*";
level53 = "562.5x562.5 37.5x562.5 00:20.00 475x37.5,300x37.5,125x37.5,* la250x150,ro425x150,gr75x150,ro525x150,la350x150,gr175x150,*";
level54 = "91.5x562.5 537.5x560.5 00:27.00 74x344.5,122x127.5,326x117.5,514x98.5,514x415.45,190x543.45,423x490.45,* pa253.45x55.45,*";
level55 = "300x300 350x525 00:12.00 175x125,100x400,162.5x262.5,450x425,275x450,450x212.5,350x225,* sc300x150,*";
level56 = "75x75 375x225 00:27.00 162.5x25,575x25,462.5x425,312.5x575,162.5x312.5,125x312.5,275x275,* va475x37.5,la225x75,gu462.5x337.5,la400x487.5,va262.5x412.5,gu37.5x412.5,la225x225,*";
level57 = "300x550 300x50 00:10.00 400x450,300x250,200x450,300x350,200x150,400x150,* fl300x300,ca300x450,pa300x150,*";
level58 = "108x157 500x520 00:27.00 237.9x47.2,399.55x61.55,504.75x185.9,* sc550x393.5,sc550x518.5,pa300x275,*";
level59 = "262.5x37.5 512.5x562.5 00:20.00 87.5x275,* ca512.5x87.5,la62.5x250,pa87.5x512.5,*";
level60 = "300x475 550x550 00:20.00 450x100,* sc300x550,*";
level61 = "300x75 300x125 00:15.00 425x525,512.5x525,* gu300x450,*";
level62 = "537.5x62.5 537.5x62.5 00:31.00 62.5x537.5,537.5x537.5,62.5x62.5,150x300,165.65x300,150x284.35,134.35x300,150x315.65,300x450,315.65x450,300x434.35,284.35x450,300x465.65,300x150,315.65x150,300x134.35,284.35x150,300x165.65,450x300,465.65x300,450x284.35,434.35x300,450x315.65,* la300.45x300.45,*";
level63 = "75x200 300x75 00:15.00 325x350,450x225,237.5x162.5,* sc75x75,fl300x225,*";
level64 = "287.5x175 312.5x175 00:05.00 162.5x300,300x437.5,437.5x300,* ro296.15x300.45,*";
level65 = "75x337.5 37.5x387.5 00:20.00 137.5x237.5,387.5x37.5,500x50,50x500,* gr75x25,gr550x50,gr450x50,gr50x450,gr50x550,*";
level66 = "262.5x262.5 337.5x337.5 00:13.00 337.5x262.5,262.5x337.5,* pa300.45x300.45,la37.5x37.5,la562.5x37.5,la562.5x562.5,la37.5x562.5,va450x450,*";
level67 = "50x50 550x550 00:10.00 300x250,350x250,350x300,350x350,300x350,250x350,250x300,250x250,* sc50x550,sc550x50,*";
level68 = "300x562.5 300x50 00:28.00 462.5x50,462.5x550,137.5x550,137.5x50,* ro300.45x300.45,la562.5x37.5,la562.5x562.5,la37.5x562.5,la37.5x37.5,*";
level69 = "509x556.95 558x144 00:32.00 228x33,202x161,36x210,86x185,166x355,257x248,95x480.95,443x535.95,434x234,469x171,* ca441.8x453.4,*";
level70 = "300x557 87.5x562.5 00:23.00 300x243,378.5x264.05,435.95x321.5,457x400,221.5x264.05,164.05x321.5,143x400,164.05x478.5,221.5x535.95,378.5x535.95,435.95x478.5,512.5x562.5,* fl300x400,gu37.5x562.5,gu562.5x562.5,*";
level71 = "462.5x62.5 537.5x462.5 00:46.00 137.5x537.5,62.5x137.5,* pa300x300,gr300x62.5,gr62.5x300,gr300x537.5,gr537.5x300,*";
level72 = "375x537.5 147x62.5 00:08.00 450x337.5,173x470,* ro250x275,la175x375,la375x275,*";
level73 = "388.5x482.5 225x475 00:12.00 262.5x100,27.35x274.9,75x100,* va250x375,ro200x300,*";
level74 = "562.5x37.5 37.5x562.5 00:16.00 550x550,475x275,325x250,187.5x137.5,250x50,112.5x312.5,162.5x512.5,* sc437.5x200,sc275x500,*";
level75 = "423.4x88.55 517x233 00:16.00 517x233,* ro534.55x198.3,*";
level76 = "87.5x412.5 362.5x212.5 00:32.00 150x562.5,237.5x562.5,325x562.5,325x262.5,237.5x262.5,150x262.5,* pa75x125,la562.5x412.5,sc300x125,*";
level77 = "50x525 525x50 00:11.00 425x425,287.5x325,325x287.5,112.5x537.5,191.5x512.5,287.5x448.5,449.5x286.55,510.5x187.55,538.5x107.55,* la300x375,gr350x350,la375x300,*";
level78 = "50x50 550x50 00:18.00 400x550,200x550,* gr350x550,la300x300,gr250x550,va150x150,va450x150,*";
level79 = "550x50 550x50 00:24.00 326.5x273.45,300.4x262.9,273.45x273.45,262.9x300.5,273.45x326.55,300.45x337.95,326.5x326.5,337.95x300.45,75x550,* ro300.45x300.45,gr50x550,gr50x50,*";
level80 = "37.5x412.5 37.5x412.5 00:33.00 62.5x537.5,212.5x537.5,363.5x537.5,484.5x544.5,561.5x527.5,136.5x293.55,126.5x275.55,110.5x258.55,92.5x246.55,73.5x238.55,55.5x234.55,35.5x234.55,250x237.5,* pa532.45x66.45,ca102.8x389.4,la505.45x427.4,gr365.85x202.45,*";
levels = [level1, level2, level3, level4, level5, level6, level7, level8, level9, level10, level11, level12, level13, level14, level15, level16, level17, level18, level19, level20, level21, level22, level23, level24, level25, level26, level27, level28, level29, level30, level31, level32, level33, level34, level35, level36, level37, level38, level39, level40, level41, level42, level43, level44, level45, level46, level47, level48, level49, level50, level51, level52, level53, level54, level55, level56, level57, level58, level59, level60, level61, level62, level63, level64, level65, level66, level67, level68, level69, level70, level71, level72, level73, level74, level75, level76, level77, level78, level79, level80];
objects = new Array();
spad = new Spad();
addChild(spad);
hole = new Hole();
addChild(hole);
objects.push(spad);
objects.push(hole);
ball = new Ball();
addChild(ball);
level = main.level_num;
if (main.episode == "Wood"){
ep_num = 0;
} else {
if (main.episode == "Felt"){
bg.gotoAndStop(2);
ep_num = 20;
} else {
if (main.episode == "Ceramic"){
bg.gotoAndStop(3);
ep_num = 40;
} else {
if (main.episode == "Metal"){
bg.gotoAndStop(4);
ep_num = 60;
};
};
};
};
land.gotoAndStop((main.level_num + ep_num));
makeLevel((main.level_num + ep_num));
coins = 0;
coins_got = 0;
key = false;
csec = 0;
left_key = false;
right_key = false;
up_key = false;
down_key = false;
space_key = false;
r_key = false;
a_key = false;
p_key = false;
shift_key = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, key_down);
stage.addEventListener(KeyboardEvent.KEY_UP, key_up);
starting = true;
gpause = true;
pause_type = "start";
osd.lvl_txt.text = ((main.episode + " level ") + main.level_num);
osd.info_txt.text = ((((((((((main.episode + " level ") + main.level_num) + " Par ") + pmin) + ":") + psec) + ".") + pcsec) + " Time ") + timeStringRaw(csec));
srlse = true;
rrlse = true;
arlse = true;
prlse = true;
finish_check = false;
sboosted = false;
sboost_timer = 0;
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function distanceBetween(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
var _local6:Number;
_local5 = (_arg1 - _arg2);
_local6 = (_arg3 - _arg4);
return (Math.sqrt((Math.pow(_local5, 2) + Math.pow(_local6, 2))));
}
public function key_up(_arg1:KeyboardEvent){
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
left_key = false;
};
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
right_key = false;
};
if ((((_arg1.keyCode == 38)) || ((_arg1.keyCode == 87)))){
up_key = false;
};
if ((((_arg1.keyCode == 40)) || ((_arg1.keyCode == 83)))){
down_key = false;
};
if (_arg1.keyCode == 32){
space_key = false;
};
if (_arg1.keyCode == 82){
r_key = false;
};
if (_arg1.keyCode == 65){
a_key = false;
};
if (_arg1.keyCode == 16){
shift_key = false;
};
if (_arg1.keyCode == 80){
p_key = false;
};
}
public function key_down(_arg1:KeyboardEvent){
if ((((_arg1.keyCode == 37)) || ((_arg1.keyCode == 65)))){
left_key = true;
};
if ((((_arg1.keyCode == 39)) || ((_arg1.keyCode == 68)))){
right_key = true;
};
if ((((_arg1.keyCode == 38)) || ((_arg1.keyCode == 87)))){
up_key = true;
};
if ((((_arg1.keyCode == 40)) || ((_arg1.keyCode == 83)))){
down_key = true;
};
if (_arg1.keyCode == 32){
space_key = true;
};
if (_arg1.keyCode == 82){
r_key = true;
};
if (_arg1.keyCode == 65){
a_key = true;
};
if (_arg1.keyCode == 16){
shift_key = true;
};
if (_arg1.keyCode == 80){
p_key = true;
};
}
public function EF(_arg1:Event){
var _local2:Star;
gpause = true;
if (pause_type == "start"){
osd.lvl_txt.text = ((main.episode + " level ") + main.level_num);
osd.info_txt.text = ((((((((((main.episode + " level ") + main.level_num) + " Par ") + pmin) + ":") + psec) + ".") + pcsec) + " Time ") + timeStringRaw(csec));
ball.x = (ball.initx = (ball.xto = spad.x));
ball.y = (ball.inity = (ball.yto = spad.y));
ball.xspeed = (ball.yspeed = (ball.speed = (ball.angle = 0)));
if (((srlse) && (space_key))){
srlse = false;
};
if (((!(srlse)) && (!(space_key)))){
srlse = true;
pause_type = "go";
osd.gotoAndStop(2);
};
if (((rrlse) && (r_key))){
rrlse = false;
};
if (((!(rrlse)) && (!(r_key)))){
rrlse = true;
goBack();
};
} else {
if (pause_type == "go"){
gpause = false;
csec = (csec + (100 / 48));
osd.info_txt.text = ((((((((((main.episode + " level ") + main.level_num) + " Par ") + pmin) + ":") + psec) + ".") + pcsec) + " Time ") + timeStringRaw(csec));
if (starting){
ball.x = (ball.initx = (ball.xto = spad.x));
ball.y = (ball.inity = (ball.yto = spad.y));
ball.xspeed = (ball.yspeed = (ball.speed = (ball.angle = 0)));
starting = false;
};
if ((((coins_got == coins)) && (!(key)))){
key = true;
hole.play();
};
if (((((shift_key) && (!(sboosted)))) && (main.speed_boost))){
sboosted = true;
ball.maxspeed = 7;
ball.acc = 0.3;
sboost_timer = 96;
};
if (sboosted){
sboost_timer--;
if (sboost_timer <= 0){
ball.maxspeed = 4;
ball.acc = 0.15;
} else {
_local2 = new Star();
addChild(_local2);
_local2.x = ball.x;
_local2.y = ball.y;
_local2.rotation = (Math.random() * 180);
};
};
if (((key) && (ball.hitTestObject(hole)))){
ball.visible = false;
pause_type = "finish";
finish_check = false;
osd.gotoAndStop(5);
hole.gotoAndPlay("in");
};
if (((prlse) && (p_key))){
prlse = false;
};
if (((!(prlse)) && (!(p_key)))){
prlse = true;
pause_type = "pause";
osd.gotoAndStop(3);
};
} else {
if (pause_type == "pause"){
if (((arlse) && (a_key))){
arlse = false;
};
if (((!(arlse)) && (!(a_key)))){
arlse = true;
goAgain();
};
if (((srlse) && (space_key))){
srlse = false;
};
if (((!(srlse)) && (!(space_key)))){
srlse = true;
pause_type = "go";
osd.gotoAndStop(2);
};
if (((rrlse) && (r_key))){
rrlse = false;
};
if (((!(rrlse)) && (!(r_key)))){
rrlse = true;
goBack();
};
} else {
if (pause_type == "die"){
if (((arlse) && (a_key))){
arlse = false;
};
if (((!(arlse)) && (!(a_key)))){
arlse = true;
goAgain();
};
if (((rrlse) && (r_key))){
rrlse = false;
};
if (((!(rrlse)) && (!(r_key)))){
rrlse = true;
goBack();
};
} else {
if (pause_type == "finish"){
if (!finish_check){
finish_check = true;
osd.par_txt.text = ((((("Par " + pmin) + ":") + psec) + ".") + pcsec);
osd.time_txt.text = ("Time " + timeStringRaw(csec));
if (csec <= pcsect){
main.updateLevel(main.episode, level, 3);
osd.par_mc.gotoAndStop(2);
} else {
main.updateLevel(main.episode, level, 2);
osd.par_mc.gotoAndStop(1);
};
main.updateLevel(main.episode, (level + 1), 1);
main.updateLevel(main.episode, (level + 2), 1);
};
if (((rrlse) && (r_key))){
rrlse = false;
};
if (((!(rrlse)) && (!(r_key)))){
rrlse = true;
goBack();
};
if (((arlse) && (a_key))){
arlse = false;
};
if (((!(arlse)) && (!(a_key)))){
arlse = true;
goAgain();
};
if (((srlse) && (space_key))){
srlse = false;
};
if (((!(srlse)) && (!(space_key)))){
srlse = true;
nextLevel();
};
};
};
};
};
};
}
public function die(){
pause_type = "die";
osd.gotoAndStop(4);
}
public function Collision(_arg1:MovieClip, _arg2:MovieClip){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local6 = 50;
_local7 = _arg2.xspeed;
_local8 = _arg2.yspeed;
_local9 = 0;
while (_local9 < _local6) {
_local10 = ((((_local9 / _local6) * Math.PI) + _arg2.angle) - (90 * rad));
_local11 = (_arg2.xto + (Math.sin(_local10) * _arg2.radius));
_local12 = (_arg2.yto - (Math.cos(_local10) * _arg2.radius));
if (_arg1.hitTestPoint((_local11 + _arg2.parent.x), (_local12 + _arg2.parent.y), true)){
_local3++;
_local4 = (_local4 + _local11);
_local5 = (_local5 + _local12);
};
_local9++;
};
if (_local3 > 0){
_local13 = (_local4 / _local3);
_local14 = (_local5 / _local3);
_local15 = _arg2.xto;
_local16 = _arg2.yto;
_local17 = (Math.atan2((_local14 - _arg2.yto), (_local13 - _arg2.xto)) + (90 * rad));
_local18 = (_arg2.radius - Math.sqrt((Math.pow((_local13 - _arg2.xto), 2) + Math.pow((_local14 - _arg2.yto), 2))));
while (_arg1.hitTestPoint(((_arg2.xto + (Math.sin(_local17) * _arg2.radius)) + _arg2.parent.x), ((_arg2.yto - (Math.cos(_local17) * _arg2.radius)) + _arg2.parent.y), true)) {
_arg2.xto = (_arg2.xto - Math.sin(_local17));
_arg2.yto = (_arg2.yto - -(Math.cos(_local17)));
};
_local19 = (((180 * rad) - _arg2.angle) + (_local17 * 2));
_arg2.angle = _local19;
_arg2.xspeed = (Math.sin(_local19) * _arg2.speed);
_arg2.yspeed = (-(Math.cos(_local19)) * _arg2.speed);
_local20 = _arg2.xspeed;
_local21 = _arg2.yspeed;
_local22 = (_local20 - _local7);
_local23 = (_local21 - _local8);
_local24 = Math.sqrt(((_local22 * _local22) + (_local23 * _local23)));
playSound("Hit", (_local24 / 10));
};
}
public function explode(_arg1:Number, _arg2:Number){
var _local3:Number;
var _local4:Number;
var _local5:Explosion;
_local3 = 0;
while (_local3 < 3) {
_local5 = new Explosion();
_local5.x = ((_arg1 + (Math.random() * 30)) - 15);
_local5.y = ((_arg2 + (Math.random() * 30)) - 15);
_local5.scaleX = (_local5.scaleY = ((Math.random() * 0.5) + 0.5));
_local5.gotoAndPlay((rndm(10) + 1));
addChild(_local5);
_local3++;
};
playSound("Bomb", 1);
_local4 = distanceBetween(_arg1, ball.x, _arg2, ball.y);
if (_local4 < 20){
die();
};
}
public function levelUp(){
pause_type = "finish";
osd.gotoAndStop(5);
}
public function timeString(_arg1:String, _arg2:String, _arg3:String){
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local4 = Number(_arg1);
_local5 = Number(_arg2);
_local6 = Number(_arg3);
_local7 = ((((_local4 * 60) + _local5) * 100) + _local6);
return (_local7);
}
public function goAgain(){
pause_type = "start";
osd.gotoAndStop(1);
csec = 0;
clearObjects();
key = false;
starting = true;
sboosted = false;
sboost_timer = 0;
ball.maxspeed = 4;
ball.acc = 0.15;
coins = (coins_got = 0);
makeLevel((level + ep_num));
ball.visible = true;
starting = true;
}
public function landCollision(_arg1:MovieClip){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local5 = 50;
_local6 = _arg1.xspeed;
_local7 = _arg1.yspeed;
_local8 = 0;
while (_local8 < _local5) {
_local9 = ((((_local8 / _local5) * Math.PI) + _arg1.angle) - (90 * rad));
_local10 = (_arg1.xto + (Math.sin(_local9) * _arg1.radius));
_local11 = (_arg1.yto - (Math.cos(_local9) * _arg1.radius));
if (land.hitTestPoint(_local10, _local11, true)){
_local2++;
_local3 = (_local3 + _local10);
_local4 = (_local4 + _local11);
};
_local8++;
};
if (_local2 > 0){
_local12 = (_local3 / _local2);
_local13 = (_local4 / _local2);
_local14 = _arg1.xto;
_local15 = _arg1.yto;
_local16 = (Math.atan2((_local13 - _arg1.yto), (_local12 - _arg1.xto)) + (90 * rad));
_local17 = (_arg1.radius - Math.sqrt((Math.pow((_local12 - _arg1.xto), 2) + Math.pow((_local13 - _arg1.yto), 2))));
while (land.hitTestPoint((_arg1.xto + (Math.sin(_local16) * _arg1.radius)), (_arg1.yto - (Math.cos(_local16) * _arg1.radius)), true)) {
_arg1.xto = (_arg1.xto - Math.sin(_local16));
_arg1.yto = (_arg1.yto - -(Math.cos(_local16)));
};
_local18 = (((180 * rad) - _arg1.angle) + (_local16 * 2));
_arg1.angle = _local18;
_arg1.speed = (_arg1.speed * 0.6);
_arg1.xspeed = (Math.sin(_local18) * _arg1.speed);
_arg1.yspeed = (-(Math.cos(_local18)) * _arg1.speed);
_local19 = _arg1.xspeed;
_local20 = _arg1.yspeed;
_local21 = (_local19 - _local6);
_local22 = (_local20 - _local7);
_local23 = Math.sqrt(((_local21 * _local21) + (_local22 * _local22)));
playSound("Hit", (_local23 / 10));
};
}
public function angleBetween(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
var _local6:Number;
_local5 = (_arg1 - _arg2);
_local6 = (_arg3 - _arg4);
return (Math.atan2(_local6, _local5));
}
public function rndm(_arg1:int){
return (Math.round((Math.random() * _arg1)));
}
public function ballCollision(_arg1:MovieClip, _arg2:MovieClip){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
_local3 = (_arg1.xto - _arg2.xto);
_local4 = (_arg1.yto - _arg2.yto);
_local5 = Math.sqrt((Math.pow(_local3, 2) + Math.pow(_local4, 2)));
if (_local5 < (_arg1.radius + _arg2.radius)){
_local6 = Math.atan2(_local4, _local3);
while (_local5 < (_arg1.radius + _arg2.radius)) {
_arg1.xto = (_arg1.xto - (Math.sin((_local6 - (90 * rad))) * 0.5));
_arg2.xto = (_arg2.xto + (Math.sin((_local6 - (90 * rad))) * 0.5));
_arg1.yto = (_arg1.yto - (-(Math.cos((_local6 - (90 * rad)))) * 0.5));
_arg2.yto = (_arg2.yto + (-(Math.cos((_local6 - (90 * rad)))) * 0.5));
_local3 = (_arg1.xto - _arg2.xto);
_local4 = (_arg1.yto - _arg2.yto);
_local5 = Math.sqrt((Math.pow(_local3, 2) + Math.pow(_local4, 2)));
};
_local7 = (_arg1.angle - (90 * rad));
_local8 = (_arg2.angle - (90 * rad));
_local9 = (Math.cos((_local7 - _local6)) * _arg1.speed);
_local10 = (Math.sin((_local7 - _local6)) * _arg1.speed);
_local11 = (Math.cos((_local8 - _local6)) * _arg2.speed);
_local12 = (Math.sin((_local8 - _local6)) * _arg2.speed);
_local13 = ((((_arg1.mass - _arg2.mass) * _local9) + ((2 * _arg2.mass) * _local11)) / (_arg1.mass + _arg2.mass));
_local14 = ((((_arg2.mass - _arg1.mass) * _local11) + ((2 * _arg1.mass) * _local9)) / (_arg1.mass + _arg2.mass));
_local15 = _local10;
_local16 = _local12;
_arg1.xspeed = ((Math.cos(_local6) * _local13) + (Math.cos((_local6 + (90 * rad))) * _local15));
_arg1.yspeed = ((Math.sin(_local6) * _local13) + (Math.sin((_local6 + (90 * rad))) * _local15));
_arg2.xspeed = ((Math.cos(_local6) * _local14) + (Math.cos((_local6 + (90 * rad))) * _local16));
_arg2.yspeed = ((Math.sin(_local6) * _local14) + (Math.sin((_local6 + (90 * rad))) * _local16));
};
}
}
}//package evito_ball_fla
Section 10
//gold_ach_94 (evito_ball_fla.gold_ach_94)
package evito_ball_fla {
import flash.display.*;
public dynamic class gold_ach_94 extends MovieClip {
public function gold_ach_94(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 11
//grenade_mc_51 (evito_ball_fla.grenade_mc_51)
package evito_ball_fla {
import flash.display.*;
public dynamic class grenade_mc_51 extends MovieClip {
public function grenade_mc_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 12
//gun_mc_48 (evito_ball_fla.gun_mc_48)
package evito_ball_fla {
import flash.display.*;
public dynamic class gun_mc_48 extends MovieClip {
public function gun_mc_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 13
//hole_ball_in_60 (evito_ball_fla.hole_ball_in_60)
package evito_ball_fla {
import flash.display.*;
public dynamic class hole_ball_in_60 extends MovieClip {
public function hole_ball_in_60(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
MovieClip(parent).stop();
}
function frame11(){
MovieClip(parent).play();
}
}
}//package evito_ball_fla
Section 14
//introFlash_69 (evito_ball_fla.introFlash_69)
package evito_ball_fla {
import flash.display.*;
public dynamic class introFlash_69 extends MovieClip {
public function introFlash_69(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package evito_ball_fla
Section 15
//kabomb_btn_11 (evito_ball_fla.kabomb_btn_11)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class kabomb_btn_11 extends MovieClip {
public var btn:SimpleButton;
public function kabomb_btn_11(){
addFrameScript(0, frame1);
}
public function btnMD(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.kabomb.net");
navigateToURL(_local2, "_blank");
}
function frame1(){
btn.addEventListener(MouseEvent.MOUSE_DOWN, btnMD);
}
}
}//package evito_ball_fla
Section 16
//laser_beam_44 (evito_ball_fla.laser_beam_44)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class laser_beam_44 extends MovieClip {
public function laser_beam_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
MovieClip(parent).realign();
MovieClip(parent).detected = false;
}
}
}//package evito_ball_fla
Section 17
//laser_mc_45 (evito_ball_fla.laser_mc_45)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class laser_mc_45 extends MovieClip {
public function laser_mc_45(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
MovieClip(parent).fire();
}
}
}//package evito_ball_fla
Section 18
//level_button_80 (evito_ball_fla.level_button_80)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class level_button_80 extends MovieClip {
public var l_btn:SimpleButton;
public var num:Number;
public function level_button_80(){
addFrameScript(0, frame1, 10, frame11, 20, frame21, 30, frame31);
}
public function setThis(){
if (name.length == 2){
num = Number(name.charAt(1));
} else {
num = Number(name.slice(1, 3));
};
l_btn.enabled = true;
l_btn.addEventListener(MouseEvent.MOUSE_DOWN, MD);
}
function frame1(){
stop();
num = new Number();
l_btn.enabled = false;
}
function frame21(){
setThis();
}
public function MD(_arg1:MouseEvent){
MovieClip(parent.parent).runLevel(num, parent);
}
function frame31(){
setThis();
}
function frame11(){
setThis();
}
}
}//package evito_ball_fla
Section 19
//level_buttons_79 (evito_ball_fla.level_buttons_79)
package evito_ball_fla {
import flash.display.*;
public dynamic class level_buttons_79 extends MovieClip {
public var l1:MovieClip;
public var l4:MovieClip;
public var l8:MovieClip;
public var l5:MovieClip;
public var l3:MovieClip;
public var l7:MovieClip;
public var l6:MovieClip;
public var l2:MovieClip;
public var l15:MovieClip;
public var l16:MovieClip;
public var l13:MovieClip;
public var l9:MovieClip;
public var l14:MovieClip;
public var l10:MovieClip;
public var l12:MovieClip;
public var l20:MovieClip;
public var l18:MovieClip;
public var l11:MovieClip;
public var l19:MovieClip;
public var l17:MovieClip;
}
}//package evito_ball_fla
Section 20
//loader_6 (evito_ball_fla.loader_6)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loader_6 extends MovieClip {
public var bar:MovieClip;
public var play_btn:SimpleButton;
public function loader_6(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
addEventListener(Event.ENTER_FRAME, EF);
}
function frame2(){
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playMD);
}
public function EF(_arg1:Event){
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = stage.loaderInfo.bytesLoaded;
_local3 = stage.loaderInfo.bytesTotal;
_local4 = (_local2 / _local3);
bar.scaleX = _local4;
if (_local4 == 1){
gotoAndStop(2);
removeEventListener(Event.ENTER_FRAME, EF);
};
}
public function playMD(_arg1:MouseEvent){
MovieClip(root).gotoAndStop(3);
}
}
}//package evito_ball_fla
Section 21
//MainTimeline (evito_ball_fla.MainTimeline)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import CPMStar.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var episode:String;
public var ad:DisplayObject;
public var music:Boolean;
public var felt_levels:MovieClip;
public var star:MovieClip;
public var so:SharedObject;
public var gold:MovieClip;
public var level_num:Number;
public var cm:ContextMenu;
public var sp:Number;
public var felt:Array;
public var check_complete:Number;
public var ceramic:Array;
public var icc:Number;
public var adBox:MovieClip;
public var wood:Array;
public var CPMStarSubPoolID:int;
public var CPMStarPoolID:int;
public var play_btn:SimpleButton;
public var themeChannel:SoundChannel;
public var space:Array;
public var cm2:ContextMenuItem;
public var silver:MovieClip;
public var cm1:ContextMenuItem;
public var sboost:MovieClip;
public var sound:Boolean;
public var metal:Array;
public var ceramic_levels:MovieClip;
public var wood_levels:MovieClip;
public var menu_btn:SimpleButton;
public var sp_txt:TextField;
public var bronze:MovieClip;
public var metal_levels:MovieClip;
public var speed_boost:Boolean;
public var theme:Theme;
public function MainTimeline(){
addFrameScript(0, frame1, 3, frame4, 4, frame5, 5, frame6);
}
public function cm2Select(_arg1:ContextMenuEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.notdoppler.com");
navigateToURL(_local2, "_blank");
}
public function updateLevel(_arg1:String, _arg2:Number, _arg3:Number){
if (_arg1 == "Wood"){
if (wood[(_arg2 - 1)] < _arg3){
wood[(_arg2 - 1)] = _arg3;
};
} else {
if (_arg1 == "Felt"){
if (felt[(_arg2 - 1)] < _arg3){
felt[(_arg2 - 1)] = _arg3;
};
} else {
if (_arg1 == "Ceramic"){
if (ceramic[(_arg2 - 1)] < _arg3){
ceramic[(_arg2 - 1)] = _arg3;
};
} else {
if (_arg1 == "Metal"){
if (metal[(_arg2 - 1)] < _arg3){
metal[(_arg2 - 1)] = _arg3;
};
};
};
};
};
}
function frame4(){
theme = new Theme();
themeChannel = new SoundChannel();
playTheme();
}
function frame5(){
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playMD);
}
function frame6(){
stop();
so = SharedObject.getLocal("EvitoBallSave");
if (wood == null){
if (so.data.wood == undefined){
wood = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
felt = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
ceramic = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
metal = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
space = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
} else {
wood = so.data.wood;
felt = so.data.felt;
ceramic = so.data.ceramic;
metal = so.data.metal;
space = so.data.space;
};
} else {
so.data.wood = wood;
so.data.felt = felt;
so.data.ceramic = ceramic;
so.data.metal = metal;
so.data.space = space;
so.flush();
};
sp = 0;
setLevelIcons();
sp_txt.text = ("Skill Points: " + sp);
if (sp >= 40){
star.gotoAndStop(2);
};
if (sp >= 80){
bronze.gotoAndStop(2);
};
if (sp >= 120){
silver.gotoAndStop(2);
};
if (sp == 160){
gold.gotoAndStop(2);
};
speed_boost = false;
check_complete = 0;
icc = 0;
while (icc < 20) {
if (wood[icc] > 1){
check_complete++;
};
if (felt[icc] > 1){
check_complete++;
};
if (ceramic[icc] > 1){
check_complete++;
};
if (metal[icc] > 1){
check_complete++;
};
icc++;
};
if (check_complete == 80){
speed_boost = true;
sboost.gotoAndStop(2);
};
level_num = 1;
episode = "Wood";
menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, menuMD);
}
function frame1(){
stop();
sound = true;
music = true;
cm = new ContextMenu();
cm.hideBuiltInItems();
cm1 = new ContextMenuItem("Produced by Kabomb");
cm1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, cm1Select);
cm2 = new ContextMenuItem("Play More Games at Not Doppler");
cm2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, cm2Select);
cm.builtInItems.quality = true;
cm.customItems.push(cm1, cm2);
contextMenu = cm;
MochiBot.track(this, "2e2b84e0");
CPMStarPoolID = 1377;
CPMStarSubPoolID = 801;
ad = AdLoader.LoadAd(CPMStarPoolID, CPMStarSubPoolID);
ad.opaqueBackground = 0;
adBox.addChild(ad);
}
public function unmuteTheme(){
var _local1:SoundTransform;
_local1 = new SoundTransform(0.5);
themeChannel.soundTransform = _local1;
music = true;
}
public function cm1Select(_arg1:ContextMenuEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.kabomb.net");
navigateToURL(_local2, "_blank");
}
public function playTheme(){
var _local1:SoundTransform;
themeChannel = theme.play();
themeChannel.addEventListener(Event.SOUND_COMPLETE, loopTheme);
_local1 = new SoundTransform(0.5);
themeChannel.soundTransform = _local1;
}
public function muteTheme(){
var _local1:SoundTransform;
_local1 = new SoundTransform(0);
themeChannel.soundTransform = _local1;
music = false;
}
public function menuMD(_arg1:MouseEvent){
gotoAndStop("menu");
}
public function loopTheme(_arg1:Event){
if (themeChannel != null){
themeChannel.removeEventListener(Event.SOUND_COMPLETE, loopTheme);
playTheme();
};
}
public function runLevel(_arg1:Number, _arg2:MovieClip){
level_num = _arg1;
if (_arg2 == wood_levels){
episode = "Wood";
} else {
if (_arg2 == felt_levels){
episode = "Felt";
} else {
if (_arg2 == ceramic_levels){
episode = "Ceramic";
} else {
if (_arg2 == metal_levels){
episode = "Metal";
};
};
};
};
so.data.wood = wood;
so.data.felt = felt;
so.data.ceramic = ceramic;
so.data.metal = metal;
so.data.space = space;
so.flush();
gotoAndStop("game");
}
public function playMD(_arg1:MouseEvent){
nextFrame();
}
public function setLevelIcons(){
var _local1:Number;
var _local2:MovieClip;
_local1 = 1;
while (_local1 < 21) {
_local2 = wood_levels[("l" + _local1)];
if (wood[(_local1 - 1)] == 0){
_local2.gotoAndStop("locked");
} else {
if (wood[(_local1 - 1)] == 1){
_local2.gotoAndStop("unlocked");
} else {
if (wood[(_local1 - 1)] == 2){
_local2.gotoAndStop("overpar");
sp++;
} else {
sp = (sp + 2);
_local2.gotoAndStop("underpar");
};
};
};
_local2 = felt_levels[("l" + _local1)];
if (felt[(_local1 - 1)] == 0){
_local2.gotoAndStop("locked");
} else {
if (felt[(_local1 - 1)] == 1){
_local2.gotoAndStop("unlocked");
} else {
if (felt[(_local1 - 1)] == 2){
_local2.gotoAndStop("overpar");
sp++;
} else {
sp = (sp + 2);
_local2.gotoAndStop("underpar");
};
};
};
_local2 = ceramic_levels[("l" + _local1)];
if (ceramic[(_local1 - 1)] == 0){
_local2.gotoAndStop("locked");
} else {
if (ceramic[(_local1 - 1)] == 1){
_local2.gotoAndStop("unlocked");
} else {
if (ceramic[(_local1 - 1)] == 2){
_local2.gotoAndStop("overpar");
sp++;
} else {
sp = (sp + 2);
_local2.gotoAndStop("underpar");
};
};
};
_local2 = metal_levels[("l" + _local1)];
if (metal[(_local1 - 1)] == 0){
_local2.gotoAndStop("locked");
} else {
if (metal[(_local1 - 1)] == 1){
_local2.gotoAndStop("unlocked");
} else {
if (metal[(_local1 - 1)] == 2){
_local2.gotoAndStop("overpar");
sp++;
} else {
sp = (sp + 2);
_local2.gotoAndStop("underpar");
};
};
};
_local1++;
};
}
}
}//package evito_ball_fla
Section 22
//missile_mc_35 (evito_ball_fla.missile_mc_35)
package evito_ball_fla {
import flash.display.*;
public dynamic class missile_mc_35 extends MovieClip {
public function missile_mc_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 23
//music_toggle_77 (evito_ball_fla.music_toggle_77)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class music_toggle_77 extends MovieClip {
public var root_mc:MovieClip;
public function music_toggle_77(){
addFrameScript(0, frame1);
}
function frame1(){
root_mc = MovieClip(root);
if (root_mc.music){
stop();
} else {
gotoAndStop(2);
};
addEventListener(MouseEvent.MOUSE_DOWN, MD);
}
public function MD(_arg1:MouseEvent){
if (root_mc.music){
gotoAndStop(2);
root_mc.muteTheme();
} else {
gotoAndStop(1);
root_mc.unmuteTheme();
};
}
}
}//package evito_ball_fla
Section 24
//nd_adlink_4 (evito_ball_fla.nd_adlink_4)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class nd_adlink_4 extends MovieClip {
public var btn:SimpleButton;
public function nd_adlink_4(){
addFrameScript(0, frame1);
}
public function btnMD(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.notdoppler.com");
navigateToURL(_local2, "_blank");
}
function frame1(){
btn.addEventListener(MouseEvent.MOUSE_DOWN, btnMD);
}
}
}//package evito_ball_fla
Section 25
//nd_logo_9 (evito_ball_fla.nd_logo_9)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class nd_logo_9 extends MovieClip {
public var btn:SimpleButton;
public function nd_logo_9(){
addFrameScript(0, frame1);
}
public function btnMD(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.notdoppler.com");
navigateToURL(_local2, "_blank");
}
function frame1(){
btn.addEventListener(MouseEvent.MOUSE_DOWN, btnMD);
}
}
}//package evito_ball_fla
Section 26
//notDoppler_intro_67 (evito_ball_fla.notDoppler_intro_67)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class notDoppler_intro_67 extends MovieClip {
public var btn:SimpleButton;
public function notDoppler_intro_67(){
addFrameScript(0, frame1, 297, frame298);
}
public function btnMD(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.notdoppler.com");
navigateToURL(_local2, "_blank");
}
function frame298(){
MovieClip(root).nextFrame();
}
function frame1(){
btn.addEventListener(MouseEvent.MOUSE_DOWN, btnMD);
}
}
}//package evito_ball_fla
Section 27
//osd_99 (evito_ball_fla.osd_99)
package evito_ball_fla {
import flash.display.*;
import flash.text.*;
public dynamic class osd_99 extends MovieClip {
public var time_txt:TextField;
public var par_mc:MovieClip;
public var info_txt:TextField;
public var par_txt:TextField;
public var lvl_txt:TextField;
public function osd_99(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 28
//overpar_mc_106 (evito_ball_fla.overpar_mc_106)
package evito_ball_fla {
import flash.display.*;
public dynamic class overpar_mc_106 extends MovieClip {
public function overpar_mc_106(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
play();
}
function frame30(){
stop();
}
}
}//package evito_ball_fla
Section 29
//par_mc_105 (evito_ball_fla.par_mc_105)
package evito_ball_fla {
import flash.display.*;
public dynamic class par_mc_105 extends MovieClip {
public function par_mc_105(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 30
//pathfinder_beam_41 (evito_ball_fla.pathfinder_beam_41)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class pathfinder_beam_41 extends MovieClip {
public function pathfinder_beam_41(){
addFrameScript(0, frame1, 47, frame48);
}
function frame1(){
stop();
visible = false;
}
function frame48(){
MovieClip(parent).fire();
}
}
}//package evito_ball_fla
Section 31
//pmg_mc_102 (evito_ball_fla.pmg_mc_102)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class pmg_mc_102 extends MovieClip {
public var btn:SimpleButton;
public function pmg_mc_102(){
addFrameScript(0, frame1);
}
public function btnMD(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.notdoppler.com");
navigateToURL(_local2, "_blank");
}
function frame1(){
btn.addEventListener(MouseEvent.MOUSE_DOWN, btnMD);
}
}
}//package evito_ball_fla
Section 32
//quality_toggle_78 (evito_ball_fla.quality_toggle_78)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
public dynamic class quality_toggle_78 extends MovieClip {
public function quality_toggle_78(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (stage.quality == "HIGH"){
stop();
} else {
if (stage.quality == "MEDIUM"){
gotoAndStop(2);
} else {
if (stage.quality == "LOW"){
gotoAndStop(3);
};
};
};
addEventListener(MouseEvent.MOUSE_DOWN, MD);
}
public function MD(_arg1:MouseEvent){
if (stage.quality == "HIGH"){
gotoAndStop(2);
stage.quality = "MEDIUM";
} else {
if (stage.quality == "MEDIUM"){
gotoAndStop(3);
stage.quality = "LOW";
} else {
if (stage.quality == "LOW"){
gotoAndStop(1);
stage.quality = "HIGH";
};
};
};
}
}
}//package evito_ball_fla
Section 33
//sboost_95 (evito_ball_fla.sboost_95)
package evito_ball_fla {
import flash.display.*;
public dynamic class sboost_95 extends MovieClip {
public function sboost_95(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 34
//scanner_beam_31 (evito_ball_fla.scanner_beam_31)
package evito_ball_fla {
import flash.display.*;
public dynamic class scanner_beam_31 extends MovieClip {
public var beam:MovieClip;
}
}//package evito_ball_fla
Section 35
//scanner_mc_30 (evito_ball_fla.scanner_mc_30)
package evito_ball_fla {
import flash.display.*;
public dynamic class scanner_mc_30 extends MovieClip {
public function scanner_mc_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 36
//silver_ach_93 (evito_ball_fla.silver_ach_93)
package evito_ball_fla {
import flash.display.*;
public dynamic class silver_ach_93 extends MovieClip {
public function silver_ach_93(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 37
//sound_effects_toggle_76 (evito_ball_fla.sound_effects_toggle_76)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class sound_effects_toggle_76 extends MovieClip {
public var root_mc:MovieClip;
public function sound_effects_toggle_76(){
addFrameScript(0, frame1);
}
function frame1(){
root_mc = MovieClip(root);
if (root_mc.sound){
stop();
} else {
gotoAndStop(2);
};
addEventListener(MouseEvent.MOUSE_DOWN, MD);
}
public function MD(_arg1:MouseEvent){
if (root_mc.sound){
gotoAndStop(2);
root_mc.sound = false;
} else {
gotoAndStop(1);
root_mc.sound = true;
};
}
}
}//package evito_ball_fla
Section 38
//sprinkler_mc_28 (evito_ball_fla.sprinkler_mc_28)
package evito_ball_fla {
import flash.display.*;
public dynamic class sprinkler_mc_28 extends MovieClip {
public function sprinkler_mc_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 39
//star_ach_91 (evito_ball_fla.star_ach_91)
package evito_ball_fla {
import flash.display.*;
public dynamic class star_ach_91 extends MovieClip {
public function star_ach_91(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 40
//underpar_mc_107 (evito_ball_fla.underpar_mc_107)
package evito_ball_fla {
import flash.display.*;
public dynamic class underpar_mc_107 extends MovieClip {
public function underpar_mc_107(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
play();
}
function frame30(){
stop();
}
}
}//package evito_ball_fla
Section 41
//unlucky_mc_104 (evito_ball_fla.unlucky_mc_104)
package evito_ball_fla {
import flash.display.*;
public dynamic class unlucky_mc_104 extends MovieClip {
public function unlucky_mc_104(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package evito_ball_fla
Section 42
//vacuum_mc_25 (evito_ball_fla.vacuum_mc_25)
package evito_ball_fla {
import flash.display.*;
public dynamic class vacuum_mc_25 extends MovieClip {
public function vacuum_mc_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package evito_ball_fla
Section 43
//while_you_wait_74 (evito_ball_fla.while_you_wait_74)
package evito_ball_fla {
import flash.display.*;
import flash.events.*;
public dynamic class while_you_wait_74 extends MovieClip {
public var next_btn:SimpleButton;
public var prev_btn:SimpleButton;
public function while_you_wait_74(){
addFrameScript(0, frame1, 1, frame2);
}
public function prevMD(_arg1:MouseEvent){
prevFrame();
}
function frame1(){
stop();
next_btn.addEventListener(MouseEvent.MOUSE_DOWN, nextMD);
prev_btn.addEventListener(MouseEvent.MOUSE_DOWN, prevMD);
prev_btn.enabled = false;
prev_btn.visible = false;
next_btn.enabled = true;
next_btn.visible = true;
}
function frame2(){
prev_btn.enabled = true;
prev_btn.visible = true;
next_btn.enabled = false;
next_btn.visible = false;
}
public function nextMD(_arg1:MouseEvent){
nextFrame();
}
}
}//package evito_ball_fla
Section 44
//Ball (Ball)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Ball extends MovieClip {
public var friction:Number;
public var xto:Number;
public var rad:Number;
public var mass:Number;
public var speed:Number;
public var maxspeed:Number;
public var inity:Number;
public var yspeed:Number;
public var initx:Number;
public var acc:Number;
public var radius:Number;
public var yto:Number;
public var xspeed:Number;
public var angle:Number;
public var game:MovieClip;
public function Ball(){
addFrameScript(0, frame1);
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
initx = x;
inity = y;
xspeed = 0;
yspeed = 0;
xto = x;
yto = y;
speed = 0;
maxspeed = 4;
angle = 0;
acc = 0.15;
friction = 0.97;
radius = 5;
mass = radius;
addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
if (!game.gpause){
if (game.left_key){
xspeed = (xspeed - acc);
} else {
if (game.right_key){
xspeed = (xspeed + acc);
} else {
xspeed = (xspeed * friction);
};
};
if (game.up_key){
yspeed = (yspeed - acc);
} else {
if (game.down_key){
yspeed = (yspeed + acc);
} else {
yspeed = (yspeed * friction);
};
};
speed = Math.sqrt((Math.pow(xspeed, 2) + Math.pow(yspeed, 2)));
angle = (Math.atan2(yspeed, xspeed) + (90 * rad));
if (speed > maxspeed){
speed = maxspeed;
xspeed = (Math.sin(angle) * maxspeed);
yspeed = (-(Math.cos(angle)) * maxspeed);
};
if (Math.abs(xspeed) < 0.1){
xspeed = 0;
};
if (Math.abs(yspeed) < 0.1){
yspeed = 0;
};
xto = (xto + xspeed);
yto = (yto + yspeed);
game.landCollision(this);
x = xto;
y = yto;
};
}
public function resetBall(){
x = (xto = initx);
y = (yto = inity);
xspeed = (yspeed = 0);
speed = (angle = 0);
visible = true;
}
}
}//package
Section 45
//Bomb (Bomb)
package {
import flash.media.*;
public dynamic class Bomb extends Sound {
}
}//package
Section 46
//Bullet (Bullet)
package {
import flash.display.*;
public dynamic class Bullet extends MovieClip {
}
}//package
Section 47
//Catapult (Catapult)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Catapult extends MovieClip {
public var ydiff:Number;
public var bshadow:MovieClip;
public var xto:Number;
public var byto:Number;
public var rad:Number;
public var xpoint:Number;
public var bxto:Number;
public var xdiff:Number;
public var radius:Number;
public var marker:MovieClip;
public var bomb:MovieClip;
public var dist:Number;
public var ypoint:Number;
public var yto:Number;
public var mc:MovieClip;
public var gangle:Number;
public var angle:Number;
public var fired:Boolean;
public var game:MovieClip;
public function Catapult(){
addFrameScript(0, frame1);
}
public function fire(){
fired = true;
bomb.visible = (marker.visible = (bshadow.visible = true));
marker.gotoAndPlay(1);
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
bxto = 0;
byto = 0;
radius = 12.5;
xpoint = x;
ypoint = y;
fired = false;
bomb.visible = (marker.visible = (bshadow.visible = false));
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
if (!game.gpause){
game.Collision(mc, game.ball);
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
dist = game.distanceBetween(game.ball.x, x, game.ball.y, y);
if (mc.currentFrame == 1){
angle = Math.atan2(ydiff, xdiff);
mc.rotation = (angle / rad);
} else {
mc.play();
};
if (!fired){
xpoint = x;
ypoint = y;
gangle = (angle + (90 * rad));
bomb.x = (bomb.y = 0);
if (mc.currentFrame == 1){
bxto = (game.ball.x - x);
byto = (game.ball.y - y);
mc.play();
};
} else {
bomb.x = (bomb.x + (Math.sin(gangle) * 6));
bomb.y = (bomb.y + (-(Math.cos(gangle)) * 6));
marker.x = bxto;
marker.y = byto;
_local2 = game.distanceBetween(bomb.x, bxto, bomb.y, byto);
_local3 = game.distanceBetween(0, bxto, 0, byto);
_local4 = (_local3 - _local2);
_local5 = (-(_local3) / 2);
_local6 = ((-(Math.pow((_local4 + _local5), 2)) + Math.pow(_local5, 2)) / 500);
bshadow.scaleX = (bshadow.scaleY = ((_local6 / 270) + 1));
bshadow.x = (bomb.x - _local6);
bshadow.y = (bomb.y + _local6);
if (_local2 <= 10){
fired = false;
bomb.visible = (marker.visible = (bshadow.visible = false));
game.explode((bxto + x), (byto + y));
};
};
} else {
mc.stop();
};
}
}
}//package
Section 48
//Coin (Coin)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Coin extends MovieClip {
public var hit:Boolean;
public var game:MovieClip;
public function Coin(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
game = MovieClip(parent);
game.coins++;
hit = false;
addEventListener(Event.ENTER_FRAME, EF);
}
function frame21(){
stop();
}
public function EF(_arg1:Event){
if (((!(hit)) && (game.ball.hitTestObject(this)))){
hit = true;
game.coins_got++;
play();
};
}
}
}//package
Section 49
//Explosion (Explosion)
package {
import flash.display.*;
public dynamic class Explosion extends MovieClip {
public function Explosion(){
addFrameScript(80, frame81);
}
function frame81(){
stop();
parent.removeChild(this);
}
}
}//package
Section 50
//Flame (Flame)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Flame extends MovieClip {
public function Flame(){
addFrameScript(60, frame61);
}
function frame61(){
stop();
if (this != null){
MovieClip(parent).remove(this);
};
}
}
}//package
Section 51
//Flamethrower (Flamethrower)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Flamethrower extends MovieClip {
public var ydiff:Number;
public var xto:Number;
public var rad:Number;
public var xpoint:Number;
public var gtimer:Number;
public var xdiff:Number;
public var radius:Number;
public var mc:MovieClip;
public var dist:Number;
public var ypoint:Number;
public var yto:Number;
public var gangle:Number;
public var angle:Number;
public var fired:Boolean;
public var game:MovieClip;
public function Flamethrower(){
addFrameScript(0, frame1);
}
public function flameEF(_arg1:Event){
var mc:MovieClip;
var bdist:Number;
var event = _arg1;
mc = MovieClip(event.target);
if (parent == null){
remove(mc);
};
if (!game.gpause){
mc.play();
var _local3 = mc;
with (_local3) {
x = (x + (Math.sin(angle) * speed));
y = (y + (-(Math.cos(angle)) * speed));
};
bdist = game.distanceBetween((mc.x + x), game.ball.x, (mc.y + y), game.ball.y);
if ((((bdist < 15)) && ((mc.currentFrame <= 48)))){
game.die();
};
} else {
mc.stop();
};
}
public function fire(){
var _local1:Flame;
_local1 = new Flame();
addChild(_local1);
addChild(mc);
_local1.x = (Math.sin((angle + (90 * rad))) * 20);
_local1.y = (-(Math.cos((angle + (90 * rad)))) * 20);
_local1.scaleX = (_local1.scaleY = ((Math.random() * 0.5) + 0.5));
_local1.angle = (angle + (90 * rad));
_local1.speed = (dist / 48);
_local1.addEventListener(Event.ENTER_FRAME, flameEF);
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
radius = 12.5;
xpoint = x;
ypoint = y;
gtimer = 48;
fired = false;
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
if (!game.gpause){
game.Collision(mc, game.ball);
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
angle = Math.atan2(ydiff, xdiff);
dist = game.distanceBetween(game.ball.x, x, game.ball.y, y);
mc.rotation = (angle / rad);
xpoint = x;
ypoint = y;
gtimer = 1;
while (!(game.land.hitTestPoint(xpoint, ypoint, true))) {
xpoint = (xpoint + (Math.sin((angle + (90 * rad))) * 5));
ypoint = (ypoint + (-(Math.cos((angle + (90 * rad)))) * 5));
if (game.ball.hitTestPoint(xpoint, ypoint, true)){
fire();
};
};
};
}
public function remove(_arg1:MovieClip){
_arg1.removeEventListener(Event.ENTER_FRAME, flameEF);
removeChild(_arg1);
}
}
}//package
Section 52
//Grenade (Grenade)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Grenade extends MovieClip {
public var ydiff:Number;
public var xto:Number;
public var rad:Number;
public var xpoint:Number;
public var grenade:MovieClip;
public var gspeed:Number;
public var xdiff:Number;
public var radius:Number;
public var mc:MovieClip;
public var dist:Number;
public var ypoint:Number;
public var yto:Number;
public var gangle:Number;
public var angle:Number;
public var fired:Boolean;
public var game:MovieClip;
public function Grenade(){
addFrameScript(0, frame1);
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
radius = 12.5;
xpoint = x;
ypoint = y;
gspeed = 10;
fired = false;
grenade.visible = false;
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
if (!game.gpause){
game.Collision(mc, game.ball);
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
angle = Math.atan2(ydiff, xdiff);
dist = game.distanceBetween(game.ball.x, x, game.ball.y, y);
mc.rotation = (angle / rad);
if (!fired){
xpoint = x;
ypoint = y;
gangle = (angle + (90 * rad));
grenade.x = (Math.sin(gangle) * 17);
grenade.y = (-(Math.cos(gangle)) * 17);
gspeed = Math.sqrt((0.2 * game.distanceBetween(game.ball.x, (grenade.x + x), game.ball.y, (grenade.y + y))));
while (!(game.land.hitTestPoint(xpoint, ypoint, true))) {
xpoint = (xpoint + (Math.sin((angle + (90 * rad))) * 5));
ypoint = (ypoint + (-(Math.cos((angle + (90 * rad)))) * 5));
if (game.ball.hitTestPoint(xpoint, ypoint, true)){
grenade.visible = true;
fired = true;
};
};
} else {
gspeed = (gspeed - 0.1);
grenade.x = (grenade.x + (Math.sin(gangle) * gspeed));
grenade.y = (grenade.y + (-(Math.cos(gangle)) * gspeed));
if ((((gspeed <= 0)) || (game.ball.hitTestObject(grenade)))){
fired = false;
game.explode((grenade.x + x), (grenade.y + y));
grenade.x = (grenade.y = 0);
grenade.visible = false;
};
};
};
}
}
}//package
Section 53
//Gun (Gun)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Gun extends MovieClip {
public var ydiff:Number;
public var xto:Number;
public var rad:Number;
public var xpoint:Number;
public var gtimer:Number;
public var xdiff:Number;
public var radius:Number;
public var mc:MovieClip;
public var dist:Number;
public var ypoint:Number;
public var yto:Number;
public var gangle:Number;
public var angle:Number;
public var fired:Boolean;
public var game:MovieClip;
public function Gun(){
addFrameScript(0, frame1);
}
public function bulletEF(_arg1:Event){
var mc:MovieClip;
var bdist:Number;
var event = _arg1;
mc = MovieClip(event.target);
if (parent == null){
removeBullet(mc);
};
if (!game.gpause){
var _local3 = mc;
with (_local3) {
x = (x + (Math.sin((angle + (90 * rad))) * 4));
y = (y + (-(Math.cos((angle + (90 * rad)))) * 4));
};
bdist = game.distanceBetween((mc.x + x), game.ball.x, (mc.y + y), game.ball.y);
if (bdist < 10){
game.die();
removeBullet(mc);
};
if (game.land.hitTestPoint((mc.x + x), (mc.y + y), true)){
removeBullet(mc);
};
};
}
public function fire(){
var _local1:Bullet;
_local1 = new Bullet();
addChild(_local1);
addChild(mc);
_local1.x = (Math.sin((angle + (90 * rad))) * 17);
_local1.y = (-(Math.cos((angle + (90 * rad)))) * 17);
_local1.angle = angle;
_local1.rotation = ((angle / Math.PI) * 180);
_local1.addEventListener(Event.ENTER_FRAME, bulletEF);
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
radius = 12.5;
xpoint = x;
ypoint = y;
gtimer = 48;
fired = false;
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
if (!game.gpause){
game.Collision(mc, game.ball);
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
angle = Math.atan2(ydiff, xdiff);
dist = game.distanceBetween(game.ball.x, x, game.ball.y, y);
mc.rotation = (angle / rad);
if (!fired){
xpoint = x;
ypoint = y;
gtimer = 24;
while (!(game.land.hitTestPoint(xpoint, ypoint, true))) {
xpoint = (xpoint + (Math.sin((angle + (90 * rad))) * 5));
ypoint = (ypoint + (-(Math.cos((angle + (90 * rad)))) * 5));
if (game.ball.hitTestPoint(xpoint, ypoint, true)){
fire();
fired = true;
};
};
} else {
gtimer--;
if (gtimer <= 0){
fired = false;
};
};
};
}
public function removeBullet(_arg1:MovieClip){
if (_arg1.parent != null){
_arg1.removeEventListener(Event.ENTER_FRAME, bulletEF);
removeChild(_arg1);
};
}
}
}//package
Section 54
//Hit (Hit)
package {
import flash.media.*;
public dynamic class Hit extends Sound {
}
}//package
Section 55
//Hole (Hole)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Hole extends MovieClip {
public var game:MovieClip;
public var ball:MovieClip;
public function Hole(){
addFrameScript(0, frame1, 20, frame21, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
game = MovieClip(parent);
ball.rotation = (game.angleBetween(x, game.ball.x, y, game.ball.y) / game.rad);
}
function frame21(){
stop();
}
}
}//package
Section 56
//Laser (Laser)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Laser extends MovieClip {
public var ydiff:Number;
public var xto:Number;
public var rad:Number;
public var xpoint:Number;
public var xdiff:Number;
public var point:MovieClip;
public var detected:Boolean;
public var radius:Number;
public var mc:MovieClip;
public var beam:MovieClip;
public var ypoint:Number;
public var yto:Number;
public var angle:Number;
public var game:MovieClip;
public function Laser(){
addFrameScript(0, frame1);
}
public function fire(){
beam.gotoAndPlay(2);
beam.width = game.distanceBetween(xpoint, x, ypoint, y);
}
function frame1(){
game = MovieClip(parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
radius = 12.5;
xpoint = x;
ypoint = y;
detected = false;
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
if (!game.gpause){
if (beam.currentFrame != 1){
beam.play();
};
if (mc.currentFrame != 1){
mc.play();
};
game.Collision(mc, game.ball);
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
angle = Math.atan2(ydiff, xdiff);
if (!detected){
xpoint = x;
ypoint = y;
while (!(game.land.hitTestPoint(xpoint, ypoint, true))) {
xpoint = (xpoint + (Math.sin((angle + (90 * rad))) * 5));
ypoint = (ypoint + (-(Math.cos((angle + (90 * rad)))) * 5));
if (game.ball.hitTestPoint(xpoint, ypoint, true)){
detected = true;
mc.play();
};
};
while (game.land.hitTestPoint(xpoint, ypoint, true)) {
xpoint = (xpoint - Math.sin((angle + (90 * rad))));
ypoint = (ypoint - -(Math.cos((angle + (90 * rad)))));
};
angle = Math.atan2(ydiff, xdiff);
rotation = (angle / rad);
} else {
if ((((beam.currentFrame >= 40)) && (beam.hitTestPoint(game.ball.x, game.ball.y, true)))){
game.die();
};
};
point.x = game.distanceBetween(xpoint, x, ypoint, y);
} else {
beam.stop();
mc.stop();
};
}
public function realign(){
if (game){
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
};
angle = Math.atan2(ydiff, xdiff);
rotation = (angle / rad);
}
}
}//package
Section 57
//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 58
//Pathfinder (Pathfinder)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Pathfinder extends MovieClip {
public var ydiff:Number;
public var bshadow:MovieClip;
public var xto:Number;
public var byto:Number;
public var rad:Number;
public var vehicle:MovieClip;
public var xpoint:Number;
public var yarr:Array;
public var bxto:Number;
public var xdiff:Number;
public var radius:Number;
public var marker:MovieClip;
public var dist:Number;
public var beam:MovieClip;
public var ypoint:Number;
public var yto:Number;
public var mc:MovieClip;
public var gangle:Number;
public var angle:Number;
public var xarr:Array;
public var fired:Boolean;
public var game:MovieClip;
public function Pathfinder(){
addFrameScript(0, frame1);
}
public function fire(){
fired = true;
vehicle.x = bxto;
vehicle.y = byto;
vehicle.visible = true;
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
bxto = 0;
byto = 0;
radius = 12.5;
xpoint = x;
ypoint = y;
fired = false;
xarr = new Array();
yarr = new Array();
vehicle.visible = (beam.visible = false);
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
if (!game.gpause){
if (beam.currentFrame != 1){
beam.play();
};
game.Collision(mc, game.ball);
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
dist = game.distanceBetween(game.ball.x, x, game.ball.y, y);
if (mc.currentFrame == 1){
angle = Math.atan2(ydiff, xdiff);
mc.rotation = (angle / rad);
};
if (!fired){
xpoint = x;
ypoint = y;
gangle = (angle + (90 * rad));
xarr.push((game.ball.x - x));
yarr.push((game.ball.y - y));
if (beam.currentFrame == 1){
bxto = (game.ball.x - x);
byto = (game.ball.y - y);
beam.visible = true;
beam.rotation = 0;
beam.width = dist;
beam.rotation = (angle / rad);
beam.play();
};
} else {
xarr.push((game.ball.x - x));
yarr.push((game.ball.y - y));
vehicle.x = xarr[0];
vehicle.y = yarr[0];
xarr.splice(0, 1);
yarr.splice(0, 1);
if (game.ball.hitTestObject(vehicle)){
game.die();
};
};
} else {
beam.stop();
};
}
}
}//package
Section 59
//RedDot (RedDot)
package {
import flash.display.*;
public dynamic class RedDot extends MovieClip {
}
}//package
Section 60
//RedLine (RedLine)
package {
import flash.display.*;
public dynamic class RedLine extends MovieClip {
}
}//package
Section 61
//Rocket (Rocket)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Rocket extends MovieClip {
public var ydiff:Number;
public var xto:Number;
public var rad:Number;
public var xpoint:Number;
public var xdiff:Number;
public var radius:Number;
public var mc:MovieClip;
public var ypoint:Number;
public var yto:Number;
public var angle:Number;
public var rocket:MovieClip;
public var fired:Boolean;
public var game:MovieClip;
public function Rocket(){
addFrameScript(0, frame1);
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
radius = 12.5;
xpoint = x;
ypoint = y;
fired = false;
rocket.visible = false;
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
var _local2:RocketTrail;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (!game.gpause){
game.Collision(mc, game.ball);
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
angle = Math.atan2(ydiff, xdiff);
mc.rotation = (angle / rad);
if (!fired){
xpoint = x;
ypoint = y;
rocket.rotation = (mc.rotation + 90);
rocket.x = (Math.sin((rocket.rotation * rad)) * 17);
rocket.y = (-(Math.cos((rocket.rotation * rad))) * 17);
while (!(game.land.hitTestPoint(xpoint, ypoint, true))) {
xpoint = (xpoint + (Math.sin((angle + (90 * rad))) * 5));
ypoint = (ypoint + (-(Math.cos((angle + (90 * rad)))) * 5));
if (game.ball.hitTestPoint(xpoint, ypoint, true)){
rocket.visible = true;
fired = true;
};
};
} else {
_local2 = new RocketTrail();
addChild(_local2);
addChild(mc);
_local2.x = rocket.x;
_local2.y = rocket.y;
_local2.scaleX = (_local2.scaleY = ((Math.random() * 0.5) + 0.5));
_local3 = ((rocket.x + x) - game.ball.x);
_local4 = ((rocket.y + y) - game.ball.y);
_local5 = Math.atan2(_local4, _local3);
_local6 = (((_local5 / rad) - rocket.rotation) - 90);
if (_local6 > 180){
_local6 = (_local6 - 360);
} else {
if (_local6 < -180){
_local6 = (_local6 + 360);
};
};
rocket.rotation = (rocket.rotation + (_local6 / 10));
_local7 = (rocket.rotation * rad);
rocket.x = (rocket.x + (Math.sin(_local7) * 3));
rocket.y = (rocket.y + (-(Math.cos(_local7)) * 3));
if (((game.land.hitTestPoint((rocket.x + x), (rocket.y + y), true)) || (game.ball.hitTestObject(rocket)))){
fired = false;
game.explode((rocket.x + x), (rocket.y + y));
rocket.visible = false;
};
};
};
}
}
}//package
Section 62
//RocketTrail (RocketTrail)
package {
import flash.display.*;
public dynamic class RocketTrail extends MovieClip {
public function RocketTrail(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
parent.removeChild(this);
}
}
}//package
Section 63
//Scanner (Scanner)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Scanner extends MovieClip {
public var ydiff:Number;
public var xto:Number;
public var rad:Number;
public var xpoint:Number;
public var cy:Number;
public var cx:Number;
public var xdiff:Number;
public var radius:Number;
public var mc:MovieClip;
public var dist:Number;
public var beam:MovieClip;
public var ypoint:Number;
public var yto:Number;
public var gangle:Number;
public var fx:Number;
public var angle:Number;
public var fy:Number;
public var fired:Boolean;
public var game:MovieClip;
public function Scanner(){
addFrameScript(0, frame1);
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
radius = 12.5;
xpoint = x;
ypoint = y;
fired = false;
cx = 0;
cy = 0;
fx = 0;
fy = 0;
beam.visible = false;
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (!game.gpause){
game.Collision(mc, game.ball);
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
dist = game.distanceBetween(game.ball.x, x, game.ball.y, y);
if (!fired){
angle = Math.atan2(ydiff, xdiff);
mc.rotation = (angle / rad);
xpoint = x;
ypoint = y;
while (!(game.land.hitTestPoint(xpoint, ypoint, true))) {
xpoint = (xpoint + Math.sin((angle + (90 * rad))));
ypoint = (ypoint + -(Math.cos((angle + (90 * rad)))));
if (game.ball.hitTestPoint(xpoint, ypoint, true)){
fired = true;
cx = (cy = (beam.x = (beam.y = 0)));
beam.visible = true;
beam.rotation = (angle / rad);
};
};
fx = xpoint;
fy = ypoint;
} else {
cx = (cx + (Math.sin((angle + (90 * rad))) * 2));
cy = (cy + (-(Math.cos((angle + (90 * rad)))) * 2));
_local2 = game.distanceBetween(fx, (cx + x), fy, (cy + y));
if (_local2 <= 4){
fired = false;
beam.visible = false;
cx = (cy = 0);
};
_local3 = cx;
_local4 = cy;
_local5 = cx;
_local6 = cy;
while (!(game.land.hitTestPoint((_local3 + x), (_local4 + y), true))) {
_local3 = (_local3 + (Math.sin(angle) * 10));
_local4 = (_local4 + (-(Math.cos(angle)) * 10));
};
while (game.land.hitTestPoint((_local3 + x), (_local4 + y), true)) {
_local3 = (_local3 - (Math.sin(angle) * 1));
_local4 = (_local4 - (-(Math.cos(angle)) * 1));
};
while (!(game.land.hitTestPoint((_local5 + x), (_local6 + y), true))) {
_local5 = (_local5 - (Math.sin(angle) * 10));
_local6 = (_local6 - (-(Math.cos(angle)) * 10));
};
while (game.land.hitTestPoint((_local5 + x), (_local6 + y), true)) {
_local5 = (_local5 + (Math.sin(angle) * 1));
_local6 = (_local6 + (-(Math.cos(angle)) * 1));
};
beam.x = (((_local3 - _local5) / 2) + _local5);
beam.y = (((_local4 - _local6) / 2) + _local6);
_local7 = game.distanceBetween(_local3, _local5, _local4, _local6);
beam.rotation = 0;
beam.height = _local7;
beam.rotation = (angle / rad);
if (beam.hitTestPoint(game.ball.x, game.ball.y, true)){
game.die();
};
};
};
}
}
}//package
Section 64
//Spad (Spad)
package {
import flash.display.*;
public dynamic class Spad extends MovieClip {
}
}//package
Section 65
//Sprinkler (Sprinkler)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Sprinkler extends MovieClip {
public var xto:Number;
public var rad:Number;
public var gtimer:Number;
public var radius:Number;
public var mc:MovieClip;
public var yto:Number;
public var angle:Number;
public var fired:Boolean;
public var game:MovieClip;
public function Sprinkler(){
addFrameScript(0, frame1);
}
public function bulletEF(_arg1:Event){
var mc:MovieClip;
var bdist:Number;
var event = _arg1;
mc = MovieClip(event.target);
if (parent == null){
removeBullet(mc);
};
if (!game.gpause){
var _local3 = mc;
with (_local3) {
x = (x + (Math.sin((angle + (90 * rad))) * 4));
y = (y + (-(Math.cos((angle + (90 * rad)))) * 4));
};
bdist = game.distanceBetween((mc.x + x), game.ball.x, (mc.y + y), game.ball.y);
if (bdist < 10){
game.die();
removeBullet(mc);
};
if (game.land.hitTestPoint((mc.x + x), (mc.y + y), true)){
removeBullet(mc);
};
};
}
public function fire(){
var _local1:Bullet;
_local1 = new Bullet();
addChild(_local1);
addChild(mc);
_local1.x = (Math.sin((angle + (90 * rad))) * 17);
_local1.y = (-(Math.cos((angle + (90 * rad)))) * 17);
_local1.angle = angle;
_local1.rotation = ((angle / Math.PI) * 180);
_local1.addEventListener(Event.ENTER_FRAME, bulletEF);
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
radius = 12.5;
angle = 0;
gtimer = 48;
fired = false;
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
if (!game.gpause){
game.Collision(mc, game.ball);
angle = (angle + (2 * rad));
mc.rotation = (angle / rad);
if (!fired){
gtimer = 4;
fire();
fired = true;
} else {
gtimer--;
if (gtimer <= 0){
fired = false;
};
};
};
}
public function removeBullet(_arg1:MovieClip){
if (_arg1.parent != null){
_arg1.removeEventListener(Event.ENTER_FRAME, bulletEF);
removeChild(_arg1);
};
}
}
}//package
Section 66
//Star (Star)
package {
import flash.display.*;
public dynamic class Star extends MovieClip {
public function Star(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
parent.removeChild(this);
}
}
}//package
Section 67
//SuckDot (SuckDot)
package {
import flash.display.*;
public dynamic class SuckDot extends MovieClip {
public function SuckDot(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 68
//Theme (Theme)
package {
import flash.media.*;
public dynamic class Theme extends Sound {
}
}//package
Section 69
//Vacuum (Vacuum)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Vacuum extends MovieClip {
public var ydiff:Number;
public var xto:Number;
public var rad:Number;
public var xpoint:Number;
public var timer:Number;
public var sucking:Boolean;
public var gspeed:Number;
public var sucker:MovieClip;
public var xdiff:Number;
public var radius:Number;
public var mc:MovieClip;
public var dist:Number;
public var ypoint:Number;
public var yto:Number;
public var gangle:Number;
public var angle:Number;
public var suckarea:MovieClip;
public var game:MovieClip;
public var fired:Boolean;
public function Vacuum(){
addFrameScript(0, frame1);
}
function frame1(){
game = MovieClip(this.parent);
rad = (Math.PI / 180);
xto = x;
yto = y;
radius = 12.5;
xpoint = x;
ypoint = y;
gspeed = 10;
fired = false;
sucking = false;
timer = (48 * 2);
suckarea.visible = false;
sucker.visible = false;
this.addEventListener(Event.ENTER_FRAME, EF);
}
public function EF(_arg1:Event){
var _local2:SuckDot;
var _local3:Number;
var _local4:Number;
if (!game.gpause){
game.Collision(mc, game.ball);
xdiff = (game.ball.x - x);
ydiff = (game.ball.y - y);
angle = Math.atan2(ydiff, xdiff);
dist = game.distanceBetween(game.ball.x, x, game.ball.y, y);
mc.rotation = (angle / rad);
if (!fired){
xpoint = x;
ypoint = y;
gangle = (angle + (90 * rad));
sucker.x = (Math.sin(gangle) * 27);
sucker.y = (-(Math.cos(gangle)) * 27);
gspeed = Math.sqrt((0.2 * game.distanceBetween(game.ball.x, (sucker.x + x), game.ball.y, (sucker.y + y))));
while (!(game.land.hitTestPoint(xpoint, ypoint, true))) {
xpoint = (xpoint + (Math.sin((angle + (90 * rad))) * 5));
ypoint = (ypoint + (-(Math.cos((angle + (90 * rad)))) * 5));
if (game.ball.hitTestPoint(xpoint, ypoint, true)){
sucker.visible = true;
fired = true;
};
};
} else {
if (!sucking){
gspeed = (gspeed - 0.1);
sucker.x = (sucker.x + (Math.sin(gangle) * gspeed));
sucker.y = (sucker.y + (-(Math.cos(gangle)) * gspeed));
if (((game.land.hitTestPoint((sucker.x + x), (sucker.y + y), true)) || ((gspeed <= 0)))){
timer = (48 * 5);
suckarea.visible = true;
sucking = true;
sucker.visible = false;
suckarea.x = sucker.x;
suckarea.y = sucker.y;
};
} else {
_local2 = new SuckDot();
addChild(_local2);
_local2.x = suckarea.x;
_local2.y = suckarea.y;
_local2.scaleX = (_local2.scaleY = ((Math.random() * 0.5) + 0.5));
_local2.rotation = (Math.random() * 360);
timer--;
_local3 = game.distanceBetween(game.ball.x, (sucker.x + x), game.ball.y, (sucker.y + y));
_local4 = (game.angleBetween(game.ball.x, (sucker.x + x), game.ball.y, (sucker.y + y)) - (90 * rad));
if (_local3 < 75){
game.ball.xspeed = (game.ball.xspeed + (((Math.sin(_local4) * 5) - game.ball.xspeed) / 20));
game.ball.yspeed = (game.ball.yspeed + (((-(Math.cos(_local4)) * 5) - game.ball.yspeed) / 20));
game.ball.xspeed = (game.ball.xspeed * 0.9);
game.ball.yspeed = (game.ball.yspeed * 0.9);
game.ball.xto = (game.ball.xto + game.ball.xspeed);
game.ball.yto = (game.ball.yto + game.ball.yspeed);
};
if (_local3 < game.ball.radius){
};
if (timer <= 0){
sucking = false;
fired = false;
suckarea.visible = false;
};
};
};
};
}
}
}//package