Section 1
//BG_137 (war_fla.BG_137)
package war_fla {
import flash.display.*;
public dynamic class BG_137 extends MovieClip {
public function BG_137(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(Var.lev_up);
}
}
}//package war_fla
Section 2
//continuecopy_16 (war_fla.continuecopy_16)
package war_fla {
import flash.display.*;
public dynamic class continuecopy_16 extends MovieClip {
public function continuecopy_16(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package war_fla
Section 3
//GOhkbk_209 (war_fla.GOhkbk_209)
package war_fla {
import flash.display.*;
public dynamic class GOhkbk_209 extends MovieClip {
public function GOhkbk_209(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package war_fla
Section 4
//GOhkbkcopy_210 (war_fla.GOhkbkcopy_210)
package war_fla {
import flash.display.*;
public dynamic class GOhkbkcopy_210 extends MovieClip {
public function GOhkbkcopy_210(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package war_fla
Section 5
//GOjfgjv_202 (war_fla.GOjfgjv_202)
package war_fla {
import flash.display.*;
public dynamic class GOjfgjv_202 extends MovieClip {
public function GOjfgjv_202(){
addFrameScript(0, frame1);
}
function frame1(){
if (Var.game_stu == "Cong"){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
}
}
}//package war_fla
Section 6
//hjghjghj890890890890890_70 (war_fla.hjghjghj890890890890890_70)
package war_fla {
import flash.display.*;
public dynamic class hjghjghj890890890890890_70 extends MovieClip {
public var gun:MovieClip;
public var hit:MovieClip;
public function hjghjghj890890890890890_70(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package war_fla
Section 7
//hkbk_63 (war_fla.hkbk_63)
package war_fla {
import flash.display.*;
public dynamic class hkbk_63 extends MovieClip {
public function hkbk_63(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package war_fla
Section 8
//hkbkcopy_64 (war_fla.hkbkcopy_64)
package war_fla {
import flash.display.*;
public dynamic class hkbkcopy_64 extends MovieClip {
public function hkbkcopy_64(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package war_fla
Section 9
//levhkbk_198 (war_fla.levhkbk_198)
package war_fla {
import flash.display.*;
public dynamic class levhkbk_198 extends MovieClip {
public function levhkbk_198(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package war_fla
Section 10
//levhkbkcopy_199 (war_fla.levhkbkcopy_199)
package war_fla {
import flash.display.*;
public dynamic class levhkbkcopy_199 extends MovieClip {
public function levhkbkcopy_199(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package war_fla
Section 11
//load_playSymbol53_12547_4 (war_fla.load_playSymbol53_12547_4)
package war_fla {
import flash.display.*;
public dynamic class load_playSymbol53_12547_4 extends MovieClip {
public function load_playSymbol53_12547_4(){
addFrameScript(149, frame150);
}
function frame150(){
gotoAndPlay(1);
}
}
}//package war_fla
Section 12
//loadDogjump_12547_6 (war_fla.loadDogjump_12547_6)
package war_fla {
import flash.display.*;
public dynamic class loadDogjump_12547_6 extends MovieClip {
public function loadDogjump_12547_6(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package war_fla
Section 13
//MainTimeline (war_fla.MainTimeline)
package war_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var trys:SimpleButton;
public var EneId2:int;
public var ringNo:int;
public var Path:String;
public var userId:int;
public var sco_txt:TextField;
public var Mute:Boolean;
public var sec:int;
public var i:int;
public var j:int;
public var k:int;
public var m:Number;
public var Enemes2:Array;
public var bow_txt:TextField;
public var lodingper:TextField;
public var eshoot$:EshootS;
public var bowId:int;
public var test:Boolean;
public var contestMenu:ContextMenu;
public var ringupCont:MovieClip;
public var logo_mc:SimpleButton;
public var Bulets:Array;
public var BitsLoaded:TextField;
public var time:Timer;
public var EneShodur:Number;
public var HBulets:Array;
public var EneId:int;
public var Clouds:Array;
public var sndon:MovieClip;
public var bullet:backscore;
public var lod1:MovieClip;
public var peppyMc:MovieClip;
public var scoBou:int;
public var ringdownCont:MovieClip;
public var Bolweens:Array;
public var plyBtn:SimpleButton;
public var RelativePath:String;
public var bowNo:int;
public var pets:MovieClip;
public var EneDur2:Number;
public var Ringsdown:Array;
public var lev_txt:TextField;
public var more:SimpleButton;
public var char:MovieClip;
public var bulSpeed:int;
public var sndoff:MovieClip;
public var ringId:int;
public var myService:NetConnection;
public var msg:MovieClip;
public var sec_txt:TextField;
public var snow:MovieClip;
public var insBtn:SimpleButton;
public var couldCont:MovieClip;
public var Enemes:Array;
public var nex:SimpleButton;
public var bow$:BolweenS;
public var EneDur:Number;
public var bulletChannel:SoundChannel;
public var ringDur:Number;
public var Submit_Btn:SimpleButton;
public var myResponder:Responder;
public var spr:Number;
public var insDis:MovieClip;
public var contextmenuItem:ContextMenuItem;
public var gid:int;
public var cont_btn:SimpleButton;
public var user:TextField;
public var bowDur:Number;
public var ring_txt:TextField;
public var enemCont:MovieClip;
public var Ringsup:Array;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function l51(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.pets2play.com");
navigateToURL(_local2, "_blank");
}
public function enFun(_arg1:Event):void{
if (!Var.pauseGame){
forMovement();
forCloudMove();
forRings();
forEneme();
forBolweens();
forBulets();
if (sec < 1){
if (Var.lev_sco > scoBou){
Var.game_stu = "Next";
} else {
Var.game_stu = "Timeup";
};
};
if (Var.game_stu != ""){
stopAll();
};
};
}
public function forEneme(){
var _local1:*;
var _local2:*;
i = 0;
while (i < Enemes.length) {
_local1 = Enemes[i];
_local1.x = (_local1.x - Var.bgSpeed);
if (_local1.x < -5){
clearInterval(_local1.id);
Enemes.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
};
i++;
};
i = 0;
while (i < Enemes2.length) {
_local2 = Enemes2[i];
_local2.x = (_local2.x - (Var.bgSpeed / 2));
_local2.y = (_local2.y + ((char.y - _local2.y) * 0.05));
if (_local2.x < -5){
clearInterval(_local2.id);
Enemes2.splice(i, 1);
_local2.parent.removeChild(DisplayObject(_local2));
};
i++;
};
}
public function forSetBow(){
var _local1:Bolween;
if (!Var.pauseGame){
_local1 = new Bolween();
_local1.x = 680;
_local1.y = ((Math.random() * 170) + 80);
_local1.tach = false;
_local1.ax = 0.1;
_local1.ay = 0.1;
enemCont.addChild(DisplayObject(_local1));
Bolweens.push(_local1);
};
}
public function stopAll(){
clearInterval(ringId);
clearInterval(EneId);
clearInterval(EneId2);
clearInterval(bowId);
i = 0;
while (i < Enemes.length) {
clearInterval(Enemes[i].id);
i++;
};
i = 0;
while (i < Enemes2.length) {
clearInterval(Enemes2[i].id);
i++;
};
stage.removeEventListener(Event.ENTER_FRAME, enFun);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, chShoot);
time.removeEventListener(TimerEvent.TIMER, countDown);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, downKey);
time.stop();
if (Var.game_stu == "Next"){
gotoAndStop("Next");
} else {
gotoAndStop("Over");
};
}
public function frontPage(_arg1:MouseEvent):void{
insDis.visible = false;
}
public function link_pets(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.pets2play.com");
navigateToURL(_local2, "_blank");
}
function frame2(){
stop();
if (bulletChannel){
bulletChannel.stop();
};
insDis.visible = false;
plyBtn.addEventListener(MouseEvent.CLICK, gamePage);
insBtn.addEventListener(MouseEvent.CLICK, insPage);
insDis.backBtn.addEventListener(MouseEvent.CLICK, frontPage);
}
function frame3(){
MochiBot.track(this, "6c0c2e77");
stop();
Var.game_stu = "";
Var.lev_sco = 0;
Var.pauseGame = false;
spr = 0.15;
sec = 60;
scoBou = 600;
ringId = 0;
bowId = 0;
EneId = 0;
EneId2 = 0;
bowNo = 0;
ringNo = 0;
bulSpeed = 10;
time = new Timer(800);
Clouds = new Array();
Ringsup = new Array();
Ringsdown = new Array();
Enemes = new Array();
Enemes2 = new Array();
Bulets = new Array();
HBulets = new Array();
Bolweens = new Array();
test = false;
bow$ = new BolweenS();
eshoot$ = new EshootS();
char.x = 50;
char.mouseEnabled = false;
char.mouseChildren = false;
char.X = char.x;
forsetCloud();
switch (Var.lev_up){
case 1:
Var.bgSpeed = 9;
ringDur = 2500;
bowDur = 4500;
break;
case 2:
Var.bgSpeed = 10;
ringDur = 3000;
bowDur = 5000;
EneDur2 = 7000;
EneShodur = 800;
EneId2 = setInterval(forSetEnem2, EneDur2);
break;
case 3:
Var.bgSpeed = 11;
ringDur = 3000;
bowDur = 6000;
EneDur = 8000;
EneShodur = 600;
EneId = setInterval(forSetEnem, EneDur);
break;
case 4:
Var.bgSpeed = 11;
ringDur = 4000;
bowDur = 7000;
EneDur = 6000;
EneDur2 = 9000;
EneShodur = 500;
EneId = setInterval(forSetEnem, EneDur);
EneId2 = setInterval(forSetEnem2, EneDur2);
break;
case 5:
Var.bgSpeed = 12;
ringDur = 4000;
bowDur = 7000;
EneDur = 5000;
EneDur2 = 8000;
EneShodur = 400;
EneId = setInterval(forSetEnem, EneDur);
EneId2 = setInterval(forSetEnem2, EneDur2);
break;
};
ringId = setInterval(forsetRing, ringDur);
bowId = setInterval(forSetBow, bowDur);
stage.addEventListener(Event.ENTER_FRAME, enFun);
stage.addEventListener(MouseEvent.MOUSE_DOWN, chShoot);
time.addEventListener(TimerEvent.TIMER, countDown);
stage.addEventListener(KeyboardEvent.KEY_DOWN, downKey);
time.start();
sco_txt.text = Var.lev_sco.toString();
lev_txt.text = Var.lev_up.toString();
sec_txt.text = sec.toString();
ring_txt.text = ringNo.toString();
bow_txt.text = bowNo.toString();
logo_mc.addEventListener(MouseEvent.CLICK, link);
Mute = false;
bullet = new backscore();
if (bulletChannel){
bulletChannel.stop();
};
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.addEventListener(MouseEvent.CLICK, sndop);
sndon.addEventListener(MouseEvent.CLICK, sndst);
}
function frame4(){
sco_txt.text = (Var.game_sco + Var.lev_sco).toString();
lev_txt.text = Var.lev_up.toString();
nex.addEventListener(MouseEvent.CLICK, nex_level);
}
function frame5(){
stop();
user.text = "Guest";
sco_txt.text = (Var.game_sco + Var.lev_sco).toString();
trys.addEventListener(MouseEvent.CLICK, trys_ply);
more.addEventListener(MouseEvent.CLICK, link_pets);
gid = 1494;
RelativePath = root.loaderInfo.url;
Path = RelativePath.slice(0, (RelativePath.indexOf("com") + 3));
myService = new NetConnection();
myService.objectEncoding = ObjectEncoding.AMF0;
myService.connect("http://www.pets2play.com/services/amfphp");
if (Path == "http://games.pets2play.com"){
msg.visible = false;
myResponder = new Responder(getSessID, onFault);
myService.call("system.connect", myResponder);
} else {
msg.visible = true;
userId = 0;
};
sco_txt.text = (Var.game_sco + Var.lev_sco).toString();
user.text = "";
Security.allowDomain("*.123peppy.com");
Security.allowInsecureDomain("*.123peppy.com");
Security.allowDomain("*.123bee.com");
Security.allowInsecureDomain("*.123bee.com");
m = 0;
Submit_Btn.addEventListener(MouseEvent.CLICK, sendScore);
}
public function downKey(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
Var.pauseGame = !(Var.pauseGame);
};
}
public function countDown(_arg1:TimerEvent):void{
if (!Var.pauseGame){
if (!test){
test = true;
};
sec--;
sec_txt.text = sec.toString();
};
}
function frame1(){
stop();
cont_btn.visible = false;
stage.addEventListener(Event.ENTER_FRAME, loaderfun);
cont_btn.addEventListener(MouseEvent.CLICK, playgame);
contestMenu = new ContextMenu();
contestMenu.hideBuiltInItems();
contextmenuItem = new ContextMenuItem("www.pets2play.com");
contextmenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, Site);
contestMenu.customItems.push(contextmenuItem);
this.contextMenu = contestMenu;
pets.addEventListener(MouseEvent.CLICK, l51);
}
public function loaderfun(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = loaderInfo.bytesLoaded;
_local3 = loaderInfo.bytesTotal;
_local4 = Math.round(((_local2 / _local3) * 100));
lod1.gotoAndStop(_local4);
lodingper.text = (_local4.toString() + "%");
if ((((_local4 == 100)) && ((peppyMc.currentFrame == 100)))){
stage.removeEventListener(Event.ENTER_FRAME, loaderfun);
cont_btn.visible = true;
};
}
public function forMovement(){
var _local1:Number;
var _local2:Number;
_local1 = (mouseX - char.x);
_local2 = (mouseY - char.y);
char.x = (char.x + (_local1 * spr));
char.y = (char.y + (_local2 * spr));
if (char.x >= 580){
char.x = 580;
} else {
if (char.x <= 80){
char.x = 80;
} else {
if (char.y < 40){
char.y = 40;
} else {
if (char.y > 350){
if (test){
addBoom();
};
};
};
};
};
}
public function eneShoot(_arg1:MovieClip){
var _local2:Bulet;
var _local3:Number;
var _local4:Number;
var _local5:Number;
if (!Var.pauseGame){
if ((((_arg1.x < 550)) && ((_arg1.x > 50)))){
if (!Mute){
eshoot$.play(0, 1);
};
_local2 = new Bulet();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
_local3 = (_arg1.x - char.x);
_local4 = (_arg1.y - char.y);
_local5 = Math.atan2(-(_local4), -(_local3));
_local2.vx = (Math.cos(_local5) * bulSpeed);
_local2.vy = (Math.sin(_local5) * bulSpeed);
enemCont.addChild(DisplayObject(_local2));
Bulets.push(_local2);
};
};
}
public function chShoot(_arg1:MouseEvent):void{
var _local2:HBulet;
var _local3:HshootS;
if (!Var.pauseGame){
if (char.currentFrame == 1){
char.gotoAndPlay(2);
};
if (!Mute){
_local3 = new HshootS();
_local3.play(0, 1);
};
_local2 = new HBulet();
_local2.x = (char.x + char.gun.x);
_local2.y = (char.y + char.gun.y);
_local2.vx = (bulSpeed + 4);
enemCont.addChild(DisplayObject(_local2));
HBulets.push(_local2);
};
}
public function forsetCloud(){
var _local1:Cloud;
var _local2:Number;
if (!Var.pauseGame){
i = 1;
while (i < 6) {
_local1 = new Cloud();
_local1.y = ((Math.random() * 250) + 35);
_local1.x = (i * 120);
_local2 = ((Math.random() * 0.3) + 0.7);
_local1.scaleX = _local2;
_local1.scaleY = _local2;
_local1.rotation = ((Math.random() * 30) - 30);
couldCont.addChild(DisplayObject(_local1));
Clouds.push(_local1);
i++;
};
};
}
public function forsetRing(){
var _local1:Ringup;
var _local2:Ringdown;
var _local3:Number;
var _local4:Number;
if (!Var.pauseGame){
_local1 = new Ringup();
_local2 = new Ringdown();
_local3 = ((Math.random() * 250) + 35);
_local4 = 680;
_local1.x = (_local2.x = _local4);
_local2.y = (_local1.y = _local3);
_local1.scaleX = 0.9;
_local1.scaleY = 0.9;
_local2.scaleX = 0.9;
_local2.scaleY = 0.9;
ringupCont.addChild(DisplayObject(_local1));
ringdownCont.addChild(DisplayObject(_local2));
Ringsup.push(_local1);
Ringsdown.push(_local2);
};
}
public function forBulets(){
var _local1:*;
var _local2:*;
var _local3:*;
i = 0;
while (i < Bulets.length) {
_local1 = Bulets[i];
_local1.x = (_local1.x + _local1.vx);
_local1.y = (_local1.y + _local1.vy);
if (HitTest.complexHitTestObject(char, _local1, 1)){
addBoom();
Bulets.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
} else {
if ((((((((_local1.x < 0)) || ((_local1.y < 0)))) || ((_local1.y > 500)))) || ((_local1.x > 660)))){
Bulets.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
};
};
i++;
};
i = 0;
while (i < HBulets.length) {
_local2 = HBulets[i];
_local2.x = (_local2.x + _local2.vx);
if (_local2.x > 660){
HBulets.splice(i, 1);
_local2.parent.removeChild(DisplayObject(_local2));
};
k = 0;
while (k < Bolweens.length) {
_local3 = Bolweens[k];
if (HitTest.complexHitTestObject(_local3, _local2, 1)){
if (!Mute){
bow$.play(0, 1);
};
bowNo++;
Var.lev_sco = (Var.lev_sco + 50);
sco_txt.text = Var.lev_sco.toString();
bow_txt.text = bowNo.toString();
Bolweens.splice(k, 1);
_local3.gotoAndPlay(2);
HBulets.splice(i, 1);
_local2.parent.removeChild(DisplayObject(_local2));
break;
};
k++;
};
j = 0;
while (j < Enemes2.length) {
if (HitTest.complexHitTestObject(Enemes2[j], _local2, 1)){
if (!Mute){
bow$.play(0, 1);
};
Enemes2[j].gotoAndPlay(2);
clearInterval(Enemes2[j].id);
Enemes2.splice(j, 1);
};
j++;
};
i++;
};
}
public function forBolweens(){
var _local1:*;
i = 0;
while (i < Bolweens.length) {
_local1 = Bolweens[i];
_local1.x = (_local1.x - (Var.bgSpeed / 1.5));
Ani("bow", _local1);
if (HitTest.complexHitTestObject(char, _local1, 1)){
addBoom();
Bolweens.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
} else {
if (_local1.x < -5){
Bolweens.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
};
};
i++;
};
}
public function forCloudMove(){
var _local1:*;
var _local2:Number;
i = 0;
while (i < Clouds.length) {
_local1 = Clouds[i];
_local1.x = (_local1.x - (Var.bgSpeed / 2));
if (_local1.x < -20){
_local2 = ((Math.random() * 0.5) + 0.5);
_local1.x = 740;
_local1.y = ((Math.random() * 250) + 35);
_local1.scaleX = _local2;
_local1.scaleY = _local2;
_local1.rotation = ((Math.random() * 30) - 30);
};
i++;
};
}
public function forRings(){
var _local1:*;
var _local2:*;
i = 0;
while (i < Ringsup.length) {
_local1 = Ringsup[i];
_local2 = Ringsdown[i];
_local1.x = (_local1.x - (Var.bgSpeed + 1));
_local2.x = (_local2.x - (Var.bgSpeed + 1));
if (((char.hit.hitTestObject(_local1.hit1)) || (((char.hit.hitTestObject(_local1.hit2)) && ((_local1.currentFrame == 1)))))){
addBoom();
} else {
if (((char.hit.hitTestObject(_local1.point)) && ((_local1.currentFrame == 1)))){
ringNo++;
Var.lev_sco = (Var.lev_sco + 25);
ring_txt.text = ringNo.toString();
sco_txt.text = Var.lev_sco.toString();
_local1.gotoAndStop(2);
_local2.gotoAndStop(2);
} else {
if (_local1.x < -5){
_local1.parent.removeChild(DisplayObject(_local1));
_local2.parent.removeChild(DisplayObject(_local2));
Ringsup.splice(i, 1);
Ringsdown.splice(i, 1);
};
};
};
i++;
};
}
public function SaveHighScore(_arg1):void{
trace("Scoredsaved");
navigateToURL(new URLRequest(("http://www.pets2play.com/highscore-games.html?gameid=" + gid)), "_blank");
gotoAndStop("front");
}
public function sndop(_arg1:MouseEvent):void{
Mute = true;
if (bulletChannel){
bulletChannel.stop();
};
sndon.visible = true;
sndoff.visible = false;
}
public function playgame(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function addBoom(){
var _local1:Boom;
var _local2:BoomS;
if (!Var.pauseGame){
if (!Mute){
_local2 = new BoomS();
_local2.play(0, 1);
};
_local1 = new Boom();
_local1.x = char.x;
_local1.y = char.y;
_local1.gotoAndPlay(1);
enemCont.addChild(DisplayObject(_local1));
char.alpha = 0;
};
}
public function nex_level(_arg1:MouseEvent):void{
Var.game_sco = (Var.game_sco + Var.lev_sco);
Var.lev_up++;
gotoAndStop("game");
}
public function Site(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.pets2play.com");
navigateToURL(_local2, "_blank");
}
public function trys_ply(_arg1:MouseEvent):void{
if (Var.game_stu == "Cong"){
gotoAndStop("front");
} else {
gotoAndStop("game");
};
}
public function forSetEnem(){
var _local1:Enemy;
if (!Var.pauseGame){
_local1 = new Enemy();
_local1.x = 670;
_local1.y = 425;
_local1.id = setInterval(eneShoot, EneShodur, _local1);
enemCont.addChild(DisplayObject(_local1));
Enemes.push(_local1);
};
}
public function sndst(_arg1:MouseEvent):void{
Mute = false;
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.visible = true;
sndon.visible = false;
}
public function onFault(_arg1){
var _local2:*;
for (_local2 in _arg1) {
trace(((_local2 + ": ") + _arg1[_local2]));
};
}
public function insPage(_arg1:MouseEvent):void{
insDis.visible = true;
}
public function gamePage(_arg1:MouseEvent):void{
Var.lev_up = 1;
Var.lev_sco = 0;
Var.game_sco = 0;
gotoAndStop("game");
}
public function getSessID(_arg1){
if (_arg1.user.userid != 0){
user.text = _arg1.user.name;
userId = _arg1.user.userid;
trace(userId);
} else {
user.text = "Guest";
userId = 0;
trace(userId);
};
}
public function Ani(_arg1:String, _arg2:MovieClip):void{
var _local3:*;
_local3 = _arg2.getChildAt(0);
_local3.x = (0 + (Math.cos(_arg2.ax) * 80));
_local3.y = (0 + (Math.sin(_arg2.ay) * 40));
_arg2.ax = (_arg2.ax + 0.01);
_arg2.ay = (_arg2.ay + 0.05);
}
public function forSetEnem2(){
var _local1:Enemy2;
if (!Var.pauseGame){
_local1 = new Enemy2();
_local1.x = 670;
_local1.y = char.y;
_local1.id = setInterval(eneShoot2, EneShodur, _local1);
enemCont.addChild(DisplayObject(_local1));
Enemes2.push(_local1);
};
}
public function eneShoot2(_arg1:MovieClip){
var _local2:Bulet;
var _local3:Number;
var _local4:Number;
var _local5:Number;
if (!Var.pauseGame){
if ((((_arg1.x < 660)) && ((_arg1.x > 10)))){
if (!Mute){
eshoot$.play(0, 1);
};
_local2 = new Bulet();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
_local2.scaleX = 0.8;
_local2.scaleY = 0.8;
_local3 = (_arg1.x - char.x);
_local4 = (_arg1.y - char.y);
_local5 = Math.atan2(-(_local4), -(_local3));
_local2.vx = (Math.cos(_local5) * bulSpeed);
_local2.vy = (Math.sin(_local5) * bulSpeed);
enemCont.addChild(DisplayObject(_local2));
Bulets.push(_local2);
};
};
}
public function sendScore(_arg1:MouseEvent){
var _local2:Object;
var _local3:Responder;
Submit_Btn.removeEventListener(MouseEvent.CLICK, sendScore);
if (user.text == ""){
user.text = "guest";
};
_local2 = new Object();
_local2.gid = gid;
_local2.userid = userId;
_local2.player = user.text;
_local2.Score = (Var.lev_sco + Var.game_sco).toString();
_local2.Level = Var.lev_up.toString();
_local3 = new Responder(SaveHighScore, onFault);
trace(("level" + _local2.Score));
myService.call("highscore.set", _local3, _local2.gid, _local2.userid, _local2.player, _local2.Score, _local2.Level);
}
public function link(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.pets2play.com");
navigateToURL(_local2, "_blank");
}
}
}//package war_fla
Section 14
//Symbol14_116 (war_fla.Symbol14_116)
package war_fla {
import flash.display.*;
public dynamic class Symbol14_116 extends MovieClip {
public var e:Enemy;
}
}//package war_fla
Section 15
//Symbol17_69 (war_fla.Symbol17_69)
package war_fla {
import flash.display.*;
public dynamic class Symbol17_69 extends MovieClip {
public var char:MovieClip;
}
}//package war_fla
Section 16
//Symbol18_68 (war_fla.Symbol18_68)
package war_fla {
import flash.display.*;
public dynamic class Symbol18_68 extends MovieClip {
public var bollween:MovieClip;
}
}//package war_fla
Section 17
//Symbol32_55 (war_fla.Symbol32_55)
package war_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol32_55 extends MovieClip {
public var Rect:MovieClip;
public var backBtn:SimpleButton;
public var yPos:Number;
public var bottom:Number;
public var top:Number;
public var Inc:MovieClip;
public var yPosition:Number;
public var Dec:MovieClip;
public function Symbol32_55(){
addFrameScript(0, frame1);
}
public function functionTwo(_arg1:MouseEvent):void{
if (yPos < 0){
yPos = (yPos * -1);
//unresolved jump
};
addEventListener(Event.ENTER_FRAME, AlphaCol);
}
public function AlphaCol(_arg1:Event){
if (Rect.y > bottom){
Rect.y = bottom;
} else {
if (Rect.y < top){
Rect.y = top;
//unresolved jump
};
};
Rect.y = (Rect.y + yPos);
}
function frame1(){
yPosition = Rect.y;
yPos = 5;
top = -600;
bottom = yPosition;
Inc.buttonMode = true;
Dec.buttonMode = true;
Dec.addEventListener(MouseEvent.MOUSE_DOWN, functionOne);
Inc.addEventListener(MouseEvent.MOUSE_DOWN, functionTwo);
Dec.addEventListener(MouseEvent.MOUSE_UP, functionThree);
Inc.addEventListener(MouseEvent.MOUSE_UP, functionThree);
}
public function functionOne(_arg1:MouseEvent):void{
if (yPos > 0){
yPos = (yPos * -1);
//unresolved jump
};
addEventListener(Event.ENTER_FRAME, AlphaCol);
}
public function functionThree(_arg1:MouseEvent):void{
removeEventListener(Event.ENTER_FRAME, AlphaCol);
}
}
}//package war_fla
Section 18
//Symbol5_136 (war_fla.Symbol5_136)
package war_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Symbol5_136 extends MovieClip {
public var buf:Number;
public function Symbol5_136(){
addFrameScript(0, frame1);
}
function frame1(){
mouseEnabled = false;
mouseChildren = false;
stage.addEventListener(Event.ENTER_FRAME, stageEnter);
buf = 50;
}
public function stageEnter(_arg1:Event):void{
var _local2:uint;
var _local3:*;
if (!Var.pauseGame){
_local2 = 0;
while (_local2 < numChildren) {
getChildAt(_local2).x = (getChildAt(_local2).x - Var.bgSpeed);
if (getChildAt(_local2).x < (-(getChildAt(_local2).width) + 50)){
if (_local2 == 0){
_local3 = getChildAt((_local2 + 1));
} else {
_local3 = getChildAt((_local2 - 1));
};
getChildAt(_local2).x = ((_local3.width + buf) + _local3.x);
};
_local2++;
};
};
}
}
}//package war_fla
Section 19
//Symbol8_123 (war_fla.Symbol8_123)
package war_fla {
import flash.display.*;
public dynamic class Symbol8_123 extends MovieClip {
public function Symbol8_123(){
addFrameScript(0, frame1);
}
function frame1(){
mouseEnabled = false;
mouseChildren = false;
gotoAndStop(Var.lev_up);
}
}
}//package war_fla
Section 20
//Symbol9_97 (war_fla.Symbol9_97)
package war_fla {
import flash.display.*;
public dynamic class Symbol9_97 extends MovieClip {
public var bollween:MovieClip;
public function Symbol9_97(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop((int((Math.random() * totalFrames)) + 1));
}
}
}//package war_fla
Section 21
//vcvxcvxcvxcvxcEnemy2_37 (war_fla.vcvxcvxcvxcvxcEnemy2_37)
package war_fla {
import flash.display.*;
public dynamic class vcvxcvxcvxcvxcEnemy2_37 extends MovieClip {
public function vcvxcvxcvxcvxcEnemy2_37(){
addFrameScript(0, frame1, 13, frame14);
}
function frame14(){
stop();
this.parent.removeChild(DisplayObject(this));
}
function frame1(){
stop();
}
}
}//package war_fla
Section 22
//vcvxcvxcvxcvxcSymbol14_38 (war_fla.vcvxcvxcvxcvxcSymbol14_38)
package war_fla {
import flash.display.*;
public dynamic class vcvxcvxcvxcvxcSymbol14_38 extends MovieClip {
public var e:MovieClip;
}
}//package war_fla
Section 23
//backscore (backscore)
package {
import flash.media.*;
public dynamic class backscore extends Sound {
}
}//package
Section 24
//Bolween (Bolween)
package {
import flash.display.*;
public dynamic class Bolween extends MovieClip {
public var bollween:MovieClip;
public function Bolween(){
addFrameScript(0, frame1, 13, frame14);
}
function frame14(){
stop();
this.parent.removeChild(DisplayObject(this));
}
function frame1(){
stop();
}
}
}//package
Section 25
//BolweenS (BolweenS)
package {
import flash.media.*;
public dynamic class BolweenS extends Sound {
}
}//package
Section 26
//Boom (Boom)
package {
import flash.display.*;
public dynamic class Boom extends MovieClip {
public function Boom(){
addFrameScript(31, frame32);
}
function frame32(){
stop();
Var.game_stu = "Over";
this.parent.removeChild(DisplayObject(this));
}
}
}//package
Section 27
//BoomS (BoomS)
package {
import flash.media.*;
public dynamic class BoomS extends Sound {
}
}//package
Section 28
//Bulet (Bulet)
package {
import flash.display.*;
public dynamic class Bulet extends MovieClip {
}
}//package
Section 29
//Cloud (Cloud)
package {
import flash.display.*;
public dynamic class Cloud extends MovieClip {
}
}//package
Section 30
//Enemy (Enemy)
package {
import flash.display.*;
public dynamic class Enemy extends MovieClip {
}
}//package
Section 31
//Enemy2 (Enemy2)
package {
import flash.display.*;
public dynamic class Enemy2 extends MovieClip {
public function Enemy2(){
addFrameScript(0, frame1, 13, frame14);
}
function frame14(){
stop();
this.parent.removeChild(DisplayObject(this));
}
function frame1(){
stop();
}
}
}//package
Section 32
//EshootS (EshootS)
package {
import flash.media.*;
public dynamic class EshootS extends Sound {
}
}//package
Section 33
//HBulet (HBulet)
package {
import flash.display.*;
public dynamic class HBulet extends MovieClip {
}
}//package
Section 34
//HitTest (HitTest)
package {
import flash.display.*;
import flash.geom.*;
public class HitTest {
protected static function getDrawMatrix(_arg1:DisplayObject, _arg2:Rectangle, _arg3:Number):Matrix{
var _local4:Point;
var _local5:Matrix;
var _local6:Matrix;
_local6 = _arg1.root.transform.concatenatedMatrix;
_local4 = _arg1.localToGlobal(new Point());
_local5 = _arg1.transform.concatenatedMatrix;
_local5.tx = (_local4.x - _arg2.x);
_local5.ty = (_local4.y - _arg2.y);
_local5.a = (_local5.a / _local6.a);
_local5.d = (_local5.d / _local6.d);
if (_arg3 != 1){
_local5.scale(_arg3, _arg3);
};
return (_local5);
}
public static function complexHitTestObject(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Boolean{
return (!((complexIntersectionRectangle(_arg1, _arg2, _arg3).width == 0)));
}
public static function complexIntersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Rectangle{
var _local4:Rectangle;
var _local5:BitmapData;
var _local6:Rectangle;
if (_arg3 <= 0){
throw (new Error("ArgumentError: Error #5001: Invalid value for accurracy", 5001));
};
if (!_arg1.hitTestObject(_arg2)){
return (new Rectangle());
};
_local4 = intersectionRectangle(_arg1, _arg2);
if (((((_local4.width * _arg3) < 1)) || (((_local4.height * _arg3) < 1)))){
return (new Rectangle());
};
_local5 = new BitmapData((_local4.width * _arg3), (_local4.height * _arg3), false, 0);
_local5.draw(_arg1, HitTest.getDrawMatrix(_arg1, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, 0xFF));
_local5.draw(_arg2, HitTest.getDrawMatrix(_arg2, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF), BlendMode.DIFFERENCE);
_local6 = _local5.getColorBoundsRect(4294967295, 4278255615);
_local5.dispose();
if (_arg3 != 1){
_local6.x = (_local6.x / _arg3);
_local6.y = (_local6.y / _arg3);
_local6.width = (_local6.width / _arg3);
_local6.height = (_local6.height / _arg3);
};
_local6.x = (_local6.x + _local4.x);
_local6.y = (_local6.y + _local4.y);
return (_local6);
}
public static function intersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject):Rectangle{
var _local3:Rectangle;
var _local4:Rectangle;
var _local5:Rectangle;
if (((((!(_arg1.root)) || (!(_arg2.root)))) || (!(_arg1.hitTestObject(_arg2))))){
return (new Rectangle());
};
_local3 = _arg1.getBounds(_arg1.root);
_local4 = _arg2.getBounds(_arg2.root);
_local5 = new Rectangle();
_local5.x = Math.max(_local3.x, _local4.x);
_local5.y = Math.max(_local3.y, _local4.y);
_local5.width = Math.min(((_local3.x + _local3.width) - _local5.x), ((_local4.x + _local4.width) - _local5.x));
_local5.height = Math.min(((_local3.y + _local3.height) - _local5.y), ((_local4.y + _local4.height) - _local5.y));
return (_local5);
}
}
}//package
Section 35
//HshootS (HshootS)
package {
import flash.media.*;
public dynamic class HshootS extends Sound {
}
}//package
Section 36
//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 37
//Ringdown (Ringdown)
package {
import flash.display.*;
public dynamic class Ringdown extends MovieClip {
public var m:MovieClip;
public function Ringdown(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 38
//Ringup (Ringup)
package {
import flash.display.*;
public dynamic class Ringup extends MovieClip {
public var hit1:MovieClip;
public var point:MovieClip;
public var hit2:MovieClip;
public function Ringup(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 39
//Var (Var)
package {
public class Var {
public static var game_stu:String = "";
public static var pauseGame:Boolean = false;
public static var bgSpeed:Number = 0;
public static var lev_sco:Number = 0;
public static var game_sco:Number = 0;
public static var w:int;
public static var lev_up:Number = 1;
}
}//package