Section 1
//ARROW_47 (arrowstick_fla.ARROW_47)
package arrowstick_fla {
import flash.display.*;
public dynamic class ARROW_47 extends MovieClip {
public function ARROW_47(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
Var.fireArrow = true;
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package arrowstick_fla
Section 2
//BOWBOXF_78 (arrowstick_fla.BOWBOXF_78)
package arrowstick_fla {
import flash.display.*;
public dynamic class BOWBOXF_78 extends MovieClip {
public var lif:MovieClip;
}
}//package arrowstick_fla
Section 3
//circlerota_67 (arrowstick_fla.circlerota_67)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class circlerota_67 extends MovieClip {
public function circlerota_67(){
addFrameScript(0, frame1);
}
public function roteFun(_arg1:Event):void{
this.rotation = (this.rotation + Var.roteSpeed);
}
function frame1(){
stage.addEventListener(Event.ENTER_FRAME, roteFun);
}
}
}//package arrowstick_fla
Section 4
//continuecopy_16 (arrowstick_fla.continuecopy_16)
package arrowstick_fla {
import flash.display.*;
public dynamic class continuecopy_16 extends MovieClip {
public function continuecopy_16(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package arrowstick_fla
Section 5
//e1_m_160 (arrowstick_fla.e1_m_160)
package arrowstick_fla {
import flash.display.*;
import flash.text.*;
public dynamic class e1_m_160 extends MovieClip {
public var tex:TextField;
public var okBtn:MovieClip;
}
}//package arrowstick_fla
Section 6
//load_playSymbol53_12547_4 (arrowstick_fla.load_playSymbol53_12547_4)
package arrowstick_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 arrowstick_fla
Section 7
//loadDogjump_12547_6 (arrowstick_fla.loadDogjump_12547_6)
package arrowstick_fla {
import flash.display.*;
public dynamic class loadDogjump_12547_6 extends MovieClip {
public function loadDogjump_12547_6(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package arrowstick_fla
Section 8
//MainTimeline (arrowstick_fla.MainTimeline)
package arrowstick_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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var left:Number;
public var arrow:Arrow;
public var trys:SimpleButton;
public var right:Number;
public var bottom:Number;
public var Path:String;
public var userId:int;
public var sco_txt:TextField;
public var f:MovieClip;
public var i:Number;
public var j:Number;
public var m:Number;
public var s:MovieClip;
public var lodingper:TextField;
public var arrowHome:MovieClip;
public var finalscore_txt:TextField;
public var dis:MovieClip;
public var contestMenu:ContextMenu;
public var logo_mc:SimpleButton;
public var firDuration:Number;
public var catch$:Catch;
public var BitsLoaded:TextField;
public var time:Timer;
public var gra:Number;
public var tach$:Tach;
public var rectHome:MovieClip;
public var back:SimpleButton;
public var sndon:SimpleButton;
public var bullet:backscore;
public var fruitHome:MovieClip;
public var fra:Number;
public var lod1:MovieClip;
public var noLif:Number;
public var peppyMc:MovieClip;
public var RelativePath:String;
public var pets:MovieClip;
public var lev_txt:TextField;
public var more:SimpleButton;
public var top:Number;
public var sndoff:SimpleButton;
public var myService:NetConnection;
public var msg:MovieClip;
public var snow:MovieClip;
public var nex:SimpleButton;
public var bowBox:MovieClip;
public var Arrows:Array;
public var bulletChannel:SoundChannel;
public var Submit_Btn:SimpleButton;
public var myResponder:Responder;
public var lif_txt:TextField;
public var contextmenuItem:ContextMenuItem;
public var takeArrow:Boolean;
public var bou:Number;
public var gid:int;
public var bow:MovieClip;
public var cont_btn:SimpleButton;
public var user:TextField;
public var ins:MovieClip;
public var firInterval:Number;
public var ply:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
public function link(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.pets2play.com");
navigateToURL(_local2, "_blank");
}
public function l51(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.pets2play.com");
navigateToURL(_local2, "_blank");
}
public function go_ins(_arg1:MouseEvent):void{
gotoAndStop("ins");
}
public function go_front(_arg1:MouseEvent):void{
gotoAndStop("front");
}
public function border(_arg1:MovieClip, _arg2:Number){
if ((_arg1.x - (_arg1.width / 2)) < left){
tach$.play(0, 1);
_arg1.x = (left + (_arg1.width / 2));
_arg1.vx = (_arg1.vx * bou);
_arg1.rotation = (_arg1.rotation * -1);
_arg1.scaleX = (_arg1.scaleX * -1);
};
if ((_arg1.x + (_arg1.width / 2)) > right){
tach$.play(0, 1);
_arg1.x = (right - (_arg1.width / 2));
_arg1.vx = (_arg1.vx * bou);
_arg1.rotation = (_arg1.rotation * -1);
_arg1.scaleX = (_arg1.scaleX * -1);
};
if ((_arg1.y - (_arg1.height / 2)) < top){
tach$.play(0, 1);
_arg1.y = (top + (_arg1.height / 2));
_arg1.vy = (_arg1.vy * bou);
_arg1.rotation = (_arg1.rotation * -1);
};
if (((((_arg1.y + (_arg1.height / 2)) > bottom)) && ((_arg1.currentFrame == 2)))){
tach$.play(0, 1);
_arg1.y = (bottom - (_arg1.height / 2));
_arg1.vy = (_arg1.vy * bou);
_arg1.rotation = (_arg1.rotation * -1);
};
if ((_arg1.y + (_arg1.height / 2)) > (bottom + 15)){
Arrows.splice(_arg2, 1);
takeArrow = true;
noLif--;
};
}
public function enfun(_arg1:Event):void{
var _local2:*;
if (Var.fireArrow){
Var.fireArrow = false;
takeArrow = false;
addArrow();
};
i = 0;
while (i < Arrows.length) {
_local2 = Arrows[i];
_local2.y = (_local2.y + gra);
if (_local2.currentFrame == 1){
_local2.x = (_local2.x + _local2.vx);
_local2.y = (_local2.y + _local2.vy);
} else {
if (_local2.currentFrame == 2){
_local2.x = (_local2.x + (_local2.vx * 2));
_local2.y = (_local2.y + (_local2.vy * 2));
};
};
border(_local2, i);
fruitTest(_local2);
refecTest(_local2);
i++;
};
if (noLif < 1){
Var.game_stu = "over";
stopAll();
} else {
if (fruitHome.numChildren < 1){
if (Var.lev_up == 12){
Var.game_stu = "cong";
} else {
Var.game_stu = "next";
};
stopAll();
};
};
}
public function stopAll(){
var _local1:*;
stage.removeEventListener(MouseEvent.CLICK, fireFun);
stage.removeEventListener(Event.ENTER_FRAME, enfun);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveMouse);
time.removeEventListener(TimerEvent.TIMER, counter);
time.stop();
i = 0;
while (i < Arrows.length) {
_local1 = Arrows[i];
Arrows.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
i++;
};
if (Var.game_stu == "next"){
gotoAndStop("next");
} else {
if ((((Var.game_stu == "over")) || ((Var.game_stu == "cong")))){
gotoAndStop("over");
};
};
}
public function msgHide(_arg1:MouseEvent){
msg.visible = false;
}
function frame2(){
stop();
ply.addEventListener(MouseEvent.CLICK, go_game);
ins.addEventListener(MouseEvent.CLICK, go_ins);
}
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 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);
}
function frame5(){
stop();
gid = 0;
RelativePath = root.loaderInfo.url;
Path = RelativePath.slice(0, (RelativePath.indexOf("com") + 3));
trace(("Path:" + Path));
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;
gid = 0;
userId = 0;
};
finalscore_txt.text = (Var.game_sco + Var.lev_sco).toString();
user.text = "";
trys.addEventListener(MouseEvent.CLICK, trys_ply);
more.addEventListener(MouseEvent.CLICK, lin);
Security.allowDomain("*.123peppy.com");
Security.allowInsecureDomain("*.123peppy.com");
Security.allowDomain("*.123bee.com");
Security.allowInsecureDomain("*.123bee.com");
m = 0;
Submit_Btn.addEventListener(MouseEvent.CLICK, sendScore);
msg.okBtn.addEventListener(MouseEvent.CLICK, msgHide);
}
function frame6(){
back.addEventListener(MouseEvent.CLICK, go_front);
}
function frame3(){
stop();
Arrows = new Array();
Var.fireArrow = false;
bou = -1;
takeArrow = true;
firDuration = 0;
firInterval = 3;
noLif = bowBox.lif.numChildren;
fra = 0.98;
gra = 3;
left = 0;
right = 800;
top = 50;
bottom = 600;
time = new Timer(800);
fruitHome.gotoAndStop(Var.lev_up);
rectHome.gotoAndStop(Var.lev_up);
Var.lev_sco = 0;
sco_txt.text = (Var.game_sco + Var.lev_sco).toString();
lev_txt.text = Var.lev_up.toString();
lif_txt.text = noLif.toString();
tach$ = new Tach();
catch$ = new Catch();
stage.addEventListener(MouseEvent.CLICK, fireFun);
stage.addEventListener(Event.ENTER_FRAME, enfun);
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveMouse);
time.addEventListener(TimerEvent.TIMER, counter);
time.start();
if (bulletChannel){
bulletChannel.stop();
};
bullet = new backscore();
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.addEventListener(MouseEvent.CLICK, sndop);
sndon.addEventListener(MouseEvent.CLICK, sndst);
logo_mc.addEventListener(MouseEvent.CLICK, link);
}
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 lin(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.pets2play.com");
navigateToURL(_local2, "_blank");
}
public function refecTest(_arg1:MovieClip){
var _local2:*;
i = 0;
while (i < rectHome.numChildren) {
_local2 = rectHome.getChildAt(i);
if (HitTest.complexHitTestObject(_arg1.head, _local2, 1)){
if (arrow.y > _local2.y){
tach$.play(0, 1);
_arg1.vy = (_arg1.vy * bou);
};
if (arrow.y < _local2.y){
tach$.play(0, 1);
_arg1.vy = (_arg1.vy * bou);
};
if (arrow.x > _local2.x){
tach$.play(0, 1);
_arg1.vx = (_arg1.vx * bou);
_arg1.scaleX = (_arg1.scaleX * -1);
};
if (arrow.x < _local2.x){
tach$.play(0, 1);
_arg1.vx = (_arg1.vx * bou);
_arg1.scaleX = (_arg1.scaleX * -1);
};
};
i++;
};
}
public function fruitTest(_arg1:MovieClip){
var _local2:*;
i = 0;
while (i < fruitHome.numChildren) {
_local2 = fruitHome.getChildAt(i);
if (((HitTest.complexHitTestObject(_arg1.head, _local2, 1)) && ((_local2.currentFrame == 1)))){
catch$.play(0, 1);
_local2.gotoAndPlay(2);
if (_local2.name == "f"){
Var.lev_sco = (Var.lev_sco + 15);
_arg1.gotoAndStop(2);
firDuration = firInterval;
} else {
if (_local2.name == "g"){
Var.lev_sco = (Var.lev_sco + 35);
} else {
if (_local2.name == "s"){
Var.lev_sco = (Var.lev_sco + 25);
} else {
Var.lev_sco = (Var.lev_sco + 15);
};
};
};
sco_txt.text = (Var.game_sco + Var.lev_sco).toString();
};
i++;
};
}
public function go_game(_arg1:MouseEvent):void{
Var.lev_up = 1;
Var.game_sco = 0;
gotoAndStop("game");
}
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{
bulletChannel.stop();
sndon.visible = true;
sndoff.visible = false;
}
public function playgame(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function trys_ply(_arg1:MouseEvent):void{
if (Var.game_stu == "cong"){
gotoAndStop("front");
} else {
if (Var.game_stu == "over"){
gotoAndStop("game");
};
};
}
public function moveMouse(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = (mouseX - bow.x);
_local3 = (mouseY - bow.y);
_local4 = Math.atan2(_local3, _local2);
bow.rotation = ((_local4 * 180) / Math.PI);
}
public function fireFun(_arg1:MouseEvent):void{
if ((((bow.currentFrame == 1)) && (takeArrow))){
bow.gotoAndPlay(2);
};
}
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 sndst(_arg1:MouseEvent):void{
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.visible = true;
sndon.visible = false;
}
public function onFault(_arg1){
var _local2:*;
trace(("Error" + _arg1));
for (_local2 in _arg1) {
trace(((_local2 + ": ") + _arg1[_local2]));
};
}
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 addArrow(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:*;
arrow = new Arrow();
arrow.x = bow.x;
arrow.y = bow.y;
arrow.rotation = bow.rotation;
_local1 = (mouseX - bow.x);
_local2 = (mouseY - bow.y);
_local3 = Math.atan2(_local2, _local1);
arrow.vx = (Math.cos(_local3) * Var.speed);
arrow.vy = (Math.sin(_local3) * Var.speed);
_local4 = bowBox.lif.getChildAt((noLif - 1));
_local4.parent.removeChild(DisplayObject(_local4));
lif_txt.text = (noLif - 1).toString();
Arrows.push(arrow);
arrowHome.addChild(DisplayObject(arrow));
}
public function sendScore(_arg1:MouseEvent){
var _local2:Object;
var _local3:Responder;
_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 counter(_arg1:TimerEvent):void{
var _local2:*;
i = 0;
while (i < Arrows.length) {
_local2 = Arrows[i];
if (firDuration < 1){
_local2.gotoAndStop(1);
} else {
_local2.gotoAndStop(2);
firDuration--;
};
i++;
};
}
}
}//package arrowstick_fla
Section 9
//overgameover_150 (arrowstick_fla.overgameover_150)
package arrowstick_fla {
import flash.display.*;
public dynamic class overgameover_150 extends MovieClip {
public function overgameover_150(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(Var.game_stu);
}
}
}//package arrowstick_fla
Section 10
//STABERRY1_50 (arrowstick_fla.STABERRY1_50)
package arrowstick_fla {
import flash.display.*;
public dynamic class STABERRY1_50 extends MovieClip {
public function STABERRY1_50(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
trace(this.parent.numChildren);
this.parent.removeChild(DisplayObject(this));
}
function frame1(){
stop();
}
}
}//package arrowstick_fla
Section 11
//STABERRY1copy_58 (arrowstick_fla.STABERRY1copy_58)
package arrowstick_fla {
import flash.display.*;
public dynamic class STABERRY1copy_58 extends MovieClip {
public function STABERRY1copy_58(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
this.parent.removeChild(DisplayObject(this));
}
function frame1(){
stop();
}
}
}//package arrowstick_fla
Section 12
//STABERRY1copy2_52 (arrowstick_fla.STABERRY1copy2_52)
package arrowstick_fla {
import flash.display.*;
public dynamic class STABERRY1copy2_52 extends MovieClip {
public function STABERRY1copy2_52(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
this.parent.removeChild(DisplayObject(this));
}
function frame1(){
stop();
}
}
}//package arrowstick_fla
Section 13
//STABERRY1copy3_56 (arrowstick_fla.STABERRY1copy3_56)
package arrowstick_fla {
import flash.display.*;
public dynamic class STABERRY1copy3_56 extends MovieClip {
public function STABERRY1copy3_56(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
this.parent.removeChild(DisplayObject(this));
}
function frame1(){
stop();
}
}
}//package arrowstick_fla
Section 14
//Symbol12_68 (arrowstick_fla.Symbol12_68)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12_68 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12_68(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.x = (w.x + (Var.staSpeed * Sbou));
if ((w.x - (w.width / 2)) < 0){
w.x = (w.width / 2);
Sbou = (Sbou * -1);
};
if ((w.x + (w.width / 2)) > 800){
w.x = (800 - (w.width / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 15
//Symbol12copy_69 (arrowstick_fla.Symbol12copy_69)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12copy_69 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12copy_69(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.x = (w.x + (Var.staSpeed * Sbou));
if ((w.x - (w.width / 2)) < 0){
w.x = (w.width / 2);
Sbou = (Sbou * -1);
};
if ((w.x + (w.width / 2)) > 800){
w.x = (800 - (w.width / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 16
//Symbol12copy10_76 (arrowstick_fla.Symbol12copy10_76)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12copy10_76 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12copy10_76(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.y = (w.y + (-(Var.staSpeed) * Sbou));
if ((w.y - (w.height / 2)) < 50){
w.y = (50 + (w.height / 2));
Sbou = (Sbou * -1);
};
if ((w.y + (w.height / 2)) > 600){
w.y = (600 - (w.height / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 17
//Symbol12copy12_77 (arrowstick_fla.Symbol12copy12_77)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12copy12_77 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12copy12_77(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.x = (w.x + (-(Var.staSpeed) * Sbou));
if ((w.x - (w.width / 2)) < 0){
w.x = (w.width / 2);
Sbou = (Sbou * -1);
};
if ((w.x + (w.width / 2)) > 800){
w.x = (800 - (w.width / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 18
//Symbol12copy3_70 (arrowstick_fla.Symbol12copy3_70)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12copy3_70 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12copy3_70(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.y = (w.y + (Var.staSpeed * Sbou));
if ((w.y - (w.height / 2)) < 50){
w.y = (50 + (w.height / 2));
Sbou = (Sbou * -1);
};
if ((w.y + (w.height / 2)) > 600){
w.y = (600 - (w.height / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 19
//Symbol12copy4_66 (arrowstick_fla.Symbol12copy4_66)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12copy4_66 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12copy4_66(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.x = (w.x + (Var.staSpeed * Sbou));
if ((w.x - (w.width / 2)) < 0){
w.x = (w.width / 2);
Sbou = (Sbou * -1);
};
if ((w.x + (w.width / 2)) > 800){
w.x = (800 - (w.width / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 20
//Symbol12copy5_64 (arrowstick_fla.Symbol12copy5_64)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12copy5_64 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12copy5_64(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.x = (w.x + (-(Var.staSpeed) * Sbou));
if ((w.x - (w.width / 2)) < 0){
w.x = (w.width / 2);
Sbou = (Sbou * -1);
};
if ((w.x + (w.width / 2)) > 800){
w.x = (800 - (w.width / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 21
//Symbol12copy6_73 (arrowstick_fla.Symbol12copy6_73)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12copy6_73 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12copy6_73(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.x = (w.x + (-(Var.staSpeed) * Sbou));
if ((w.x - (w.width / 2)) < 0){
w.x = (w.width / 2);
Sbou = (Sbou * -1);
};
if ((w.x + (w.width / 2)) > 800){
w.x = (800 - (w.width / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 22
//Symbol12copy8_74 (arrowstick_fla.Symbol12copy8_74)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12copy8_74 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12copy8_74(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.y = (w.y + (Var.staSpeed * Sbou));
if ((w.y - (w.height / 2)) < 50){
w.y = (50 + (w.height / 2));
Sbou = (Sbou * -1);
};
if ((w.y + (w.height / 2)) > 600){
w.y = (600 - (w.height / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 23
//Symbol12copy9_75 (arrowstick_fla.Symbol12copy9_75)
package arrowstick_fla {
import flash.display.*;
import flash.events.*;
public dynamic class Symbol12copy9_75 extends MovieClip {
public var w:MovieClip;
public var Sbou:Number;
public function Symbol12copy9_75(){
addFrameScript(0, frame1);
}
public function movefun(_arg1:Event):void{
w.y = (w.y + (-(Var.staSpeed) * Sbou));
if ((w.y - (w.height / 2)) < 50){
w.y = (50 + (w.height / 2));
Sbou = (Sbou * -1);
};
if ((w.y + (w.height / 2)) > 600){
w.y = (600 - (w.height / 2));
Sbou = (Sbou * -1);
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, movefun);
Sbou = -1;
}
}
}//package arrowstick_fla
Section 24
//Symbol17_173 (arrowstick_fla.Symbol17_173)
package arrowstick_fla {
import flash.display.*;
public dynamic class Symbol17_173 extends MovieClip {
public var head:MovieClip;
}
}//package arrowstick_fla
Section 25
//Symbol3_49 (arrowstick_fla.Symbol3_49)
package arrowstick_fla {
import flash.display.*;
public dynamic class Symbol3_49 extends MovieClip {
public var f:MovieClip;
public var s:MovieClip;
}
}//package arrowstick_fla
Section 26
//Arrow (Arrow)
package {
import flash.display.*;
public dynamic class Arrow extends MovieClip {
public var head:MovieClip;
public function Arrow(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 27
//backscore (backscore)
package {
import flash.media.*;
public dynamic class backscore extends Sound {
}
}//package
Section 28
//Catch (Catch)
package {
import flash.media.*;
public dynamic class Catch extends Sound {
}
}//package
Section 29
//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 30
//Tach (Tach)
package {
import flash.media.*;
public dynamic class Tach extends Sound {
}
}//package
Section 31
//Var (Var)
package {
public class Var {
public static var game_stu:String;
public static var lev_sco:Number = 0;
public static var game_sco:Number = 0;
public static var fireArrow:Boolean = false;
public static var speed:Number = 28;
public static var roteSpeed:Number = 2;
public static var lev_up:Number = 1;
public static var staSpeed:Number = 10;
}
}//package