Section 1
//90890_133 (drive_fla.90890_133)
package drive_fla {
import flash.display.*;
public dynamic class 90890_133 extends MovieClip {
public function 90890_133(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(Var.game_stu);
}
}
}//package drive_fla
Section 2
//continuecopy_16 (drive_fla.continuecopy_16)
package drive_fla {
import flash.display.*;
public dynamic class continuecopy_16 extends MovieClip {
public function continuecopy_16(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package drive_fla
Section 3
//ins_32 (drive_fla.ins_32)
package drive_fla {
import flash.display.*;
public dynamic class ins_32 extends MovieClip {
public var back:SimpleButton;
public function ins_32(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package drive_fla
Section 4
//load_playSymbol53_12547_4 (drive_fla.load_playSymbol53_12547_4)
package drive_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 drive_fla
Section 5
//loadDogjump_12547_6 (drive_fla.loadDogjump_12547_6)
package drive_fla {
import flash.display.*;
public dynamic class loadDogjump_12547_6 extends MovieClip {
public function loadDogjump_12547_6(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package drive_fla
Section 6
//LUIP_21 (drive_fla.LUIP_21)
package drive_fla {
import flash.display.*;
import flash.events.*;
public dynamic class LUIP_21 extends MovieClip {
public function LUIP_21(){
addFrameScript(0, frame1);
}
public function enfun(_arg1:Event):void{
if (currentFrame == 1){
if (Var.fireAni){
gotoAndPlay(2);
} else {
gotoAndStop(1);
};
};
}
function frame1(){
stop();
stage.addEventListener(Event.ENTER_FRAME, enfun);
}
}
}//package drive_fla
Section 7
//MainTimeline (drive_fla.MainTimeline)
package drive_fla {
import flash.display.*;
import flash.geom.*;
import gs.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
import gs.easing.*;
public dynamic class MainTimeline extends MovieClip {
public var coins:Array;
public var km_txt:TextField;
public var trys:SimpleButton;
public var jumpVal:Number;
public var Path:String;
public var onGround:Boolean;
public var sco_txt:TextField;
public var ins_page:MovieClip;
public var help_btn:SimpleButton;
public var i:Number;
public var m:Number;
public var accSpeed:Number;
public var lodingper:TextField;
public var userId:int;
public var coin:Coin;
public var Jvy:Number;
public var pause_btn:SimpleButton;
public var disBar:MovieClip;
public var contestMenu:ContextMenu;
public var logo_mc:SimpleButton;
public var lifBar:MovieClip;
public var BitsLoaded:TextField;
public var gra:Number;
public var pausedis:MovieClip;
public var bikeSpeed:Number;
public var thing:Thing;
public var sndon:SimpleButton;
public var bullet:backscore;
public var lod1:MovieClip;
public var fra:Number;
public var numThing:uint;
public var peppyMc:MovieClip;
public var minSpeed:Number;
public var road:MovieClip;
public var clk:MovieClip;
public var blast$:BlstS;
public var cont:MovieClip;
public var RelativePath:String;
public var pets:MovieClip;
public var dollYpos:Number;
public var maxSpeed:Number;
public var things:Array;
public var lev_txt:TextField;
public var numCoin:int;
public var doll:MovieClip;
public var more:SimpleButton;
public var sndoff:SimpleButton;
public var myService:NetConnection;
public var dieDur:Number;
public var msg:MovieClip;
public var snow:MovieClip;
public var nex:SimpleButton;
public var bulletChannel:SoundChannel;
public var coin$:CoinS;
public var Submit_Btn:SimpleButton;
public var jump$:JumpS;
public var dieId:int;
public var spr:Number;
public var myResponder:Responder;
public var contextmenuItem:ContextMenuItem;
public var gid:int;
public var cont_btn:SimpleButton;
public var user:TextField;
public var ins:SimpleButton;
public var ply:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
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_front(_arg1:MouseEvent):void{
ins_page.visible = false;
}
public function go_ins(_arg1:MouseEvent):void{
ins_page.visible = true;
}
public function moveCoin(){
var coin:*;
var takeFun:Function;
i = 0;
while (i < coins.length) {
coin = coins[i];
coin.x = (coin.x - bikeSpeed);
if (coin.x < -50){
coins.splice(i, 1);
coin.parent.removeChild(DisplayObject(coin));
addCoin(false);
lifBar.nextFrame();
} else {
if (((HitTest.complexHitTestObject(doll, coin, 1)) && (!(coin.tach)))){
takeFun = function (_arg1:MovieClip){
_arg1.parent.removeChild(DisplayObject(_arg1));
addCoin(true);
};
coin$.play(0, 1);
coin.tach = true;
coins.splice(i, 1);
Var.lev_sco = (Var.lev_sco + 10);
sco_txt.text = Var.lev_sco.toString();
TweenLite.to(coin, 0.3, {scaleX:3, scaleY:3, onComplete:takeFun, onCompleteParams:[coin]});
};
};
i++;
};
}
public function stopAll(){
var _local1:*;
var _local2:*;
clearInterval(dieId);
stage.removeEventListener(Event.ENTER_FRAME, enterFun);
clk.removeEventListener(MouseEvent.MOUSE_DOWN, jumpFun);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, downKey);
i = 0;
while (i < coins.length) {
_local1 = coins[i];
coins.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
i++;
};
i = 0;
while (i < things.length) {
_local2 = things[i];
things.splice(i, 1);
_local2.parent.removeChild(DisplayObject(_local2));
i++;
};
if (Var.game_stu == "Next"){
gotoAndStop("Next");
} else {
gotoAndStop("Over");
};
}
public function downKey(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
pauseGame();
};
}
public function msgHide(_arg1:MouseEvent){
msg.visible = false;
}
function frame3(){
MochiBot.track(this, "b60553cf");
stop();
i = 0;
spr = 0.1;
jumpVal = 35;
Jvy = 0;
gra = -3;
fra = 0.998;
dollYpos = doll.y;
onGround = true;
coins = new Array();
numCoin = 2;
things = new Array();
numThing = 1;
minSpeed = 0;
maxSpeed = 0;
accSpeed = 1.5;
Var.bgSpeed = minSpeed;
jump$ = new JumpS();
coin$ = new CoinS();
blast$ = new BlstS();
switch (Var.lev_up){
case 1:
minSpeed = 12;
maxSpeed = 18;
break;
case 2:
minSpeed = 14;
maxSpeed = 20;
break;
case 3:
minSpeed = 16;
maxSpeed = 22;
break;
case 4:
minSpeed = 18;
maxSpeed = 24;
break;
};
dieDur = 600;
Var.lev_sco = 0;
Var.lif_no = 4;
init_game();
help_btn.addEventListener(MouseEvent.CLICK, trueIns);
ins_page.back.addEventListener(MouseEvent.CLICK, insfalse);
pause_btn.addEventListener(MouseEvent.CLICK, truepause);
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);
}
function frame4(){
stop();
gid = 822;
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;
userId = 0;
};
sco_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 frame5(){
sco_txt.text = (Var.game_sco + Var.lev_sco).toString();
lev_txt.text = Var.lev_up.toString();
nex.addEventListener(MouseEvent.CLICK, nex_level);
}
public function jumpFun(_arg1:MouseEvent):void{
if (onGround){
jump$.play(0, 1);
onGround = false;
Jvy = jumpVal;
if (doll.currentLabel != "up"){
doll.gotoAndPlay("up");
};
};
}
function frame2(){
stop();
ply.addEventListener(MouseEvent.CLICK, go_game);
ins.addEventListener(MouseEvent.CLICK, go_ins);
ins_page.back.addEventListener(MouseEvent.CLICK, go_front);
}
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 forJump(){
if (!onGround){
Jvy = (Jvy + gra);
Jvy = (Jvy * fra);
doll.y = (doll.y - Jvy);
if (Jvy < 0){
if (HitTest.complexHitTestObject(doll, road, 1)){
onGround = true;
};
};
} else {
doll.y = dollYpos;
if (doll.currentFrame != 1){
doll.gotoAndStop(1);
};
};
}
public function forMovement(){
var _local1:Number;
_local1 = (mouseX - doll.x);
if ((((_local1 > 0)) && ((Var.bgSpeed < maxSpeed)))){
Var.fireAni = false;
Var.bgSpeed = (Var.bgSpeed + accSpeed);
} else {
if (Var.bgSpeed > minSpeed){
Var.fireAni = true;
Var.bgSpeed = (Var.bgSpeed - accSpeed);
};
};
doll.x = (doll.x + (_local1 * spr));
if (doll.x > 380){
doll.x = 380;
};
}
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 lin(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.pets2play.com");
navigateToURL(_local2, "_blank");
}
public function addThing(_arg1:Boolean){
thing = new Thing();
if (_arg1){
thing.x = 3000;
} else {
thing.x = 700;
};
thing.y = 465;
thing.tach = false;
cont.addChild(DisplayObject(thing));
things.push(thing);
}
public function addCoin(_arg1:Boolean){
var tst = _arg1;
coin = new Coin();
var _local3 = coin;
with (_local3) {
if (tst){
x = ((Math.random() * 400) + 900);
} else {
x = ((Math.random() * 400) + 700);
};
y = ((Math.random() * 200) + 200);
tach = false;
};
cont.addChild(DisplayObject(coin));
coins.push(coin);
}
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 pauseGame(){
if (!pausedis.visible){
Var.pauseAni = true;
pausedis.visible = true;
stage.removeEventListener(Event.ENTER_FRAME, enterFun);
clk.removeEventListener(MouseEvent.MOUSE_DOWN, jumpFun);
} else {
Var.pauseAni = false;
pausedis.visible = false;
stage.addEventListener(Event.ENTER_FRAME, enterFun);
clk.addEventListener(MouseEvent.MOUSE_DOWN, jumpFun);
};
}
public function playgame(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function truepause(_arg1:MouseEvent):void{
pauseGame();
}
public function trys_ply(_arg1:MouseEvent):void{
if (Var.game_stu == "Cong"){
gotoAndStop("front");
} else {
if (Var.game_stu == "Over"){
gotoAndStop("game");
};
};
}
public function Site(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.pets2play.com");
navigateToURL(_local2, "_blank");
}
public function nex_level(_arg1:MouseEvent):void{
Var.game_sco = (Var.game_sco + Var.lev_sco);
Var.lev_up++;
gotoAndStop("game");
}
public function enterFun(_arg1:Event):void{
forJump();
forMovement();
moveCoin();
moveThing();
bikeSpeed = (Var.bgSpeed + 5);
lifBar.gotoAndStop((Var.lif_no + 1));
gameCheak();
}
public function sndst(_arg1:MouseEvent):void{
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.visible = true;
sndon.visible = false;
}
public function trueIns(_arg1:MouseEvent):void{
ins_page.visible = true;
Var.pauseAni = true;
pausedis.visible = true;
stage.removeEventListener(Event.ENTER_FRAME, enterFun);
clk.removeEventListener(MouseEvent.MOUSE_DOWN, jumpFun);
}
public function onFault(_arg1){
var _local2:*;
trace(("Error" + _arg1));
for (_local2 in _arg1) {
trace(((_local2 + ": ") + _arg1[_local2]));
};
}
public function moveThing(){
var _local1:*;
i = 0;
while (i < things.length) {
_local1 = things[i];
_local1.x = (_local1.x - bikeSpeed);
if (_local1.x < -50){
things.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
addThing(false);
disBar.nextFrame();
km_txt.text = (disBar.currentFrame - 1).toString();
} else {
if (HitTest.complexHitTestObject(doll, _local1, 1)){
things.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
addThing(false);
stage.removeEventListener(Event.ENTER_FRAME, enterFun);
clk.removeEventListener(MouseEvent.MOUSE_DOWN, jumpFun);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, downKey);
buttonMode = false;
blast$.play(0, 1);
doll.gotoAndPlay("die");
if (Var.lif_no <= 1){
Var.game_stu = "Over";
dieId = setInterval(stopAll, dieDur);
} else {
Var.lif_no--;
trace(Var.lif_no);
dieId = setInterval(init_game, dieDur);
};
};
};
i++;
};
}
public function init_game(){
var _local1:*;
var _local2:*;
Var.game_stu = "";
clearInterval(dieId);
km_txt.text = (disBar.currentFrame - 1).toString();
i = 0;
while (i < coins.length) {
_local1 = coins[i];
coins.splice(i, 1);
_local1.parent.removeChild(DisplayObject(_local1));
i++;
};
i = 0;
while (i < things.length) {
_local2 = things[i];
things.splice(i, 1);
_local2.parent.removeChild(DisplayObject(_local2));
i++;
};
addCoin(false);
addThing(true);
bikeSpeed = (Var.bgSpeed + 5);
stage.addEventListener(Event.ENTER_FRAME, enterFun);
stage.addEventListener(KeyboardEvent.KEY_DOWN, downKey);
clk.addEventListener(MouseEvent.MOUSE_DOWN, jumpFun);
}
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 sendScore(_arg1:MouseEvent){
var _local2:Object;
var _local3:Responder;
Submit_Btn.removeEventListener(MouseEvent.CLICK, sendScore);
_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);
gotoAndStop("front");
}
public function gameCheak(){
if (disBar.currentFrame == disBar.totalFrames){
if (Var.lev_up >= 4){
Var.game_stu = "Cong";
} else {
Var.game_stu = "Next";
};
stopAll();
} else {
if (Var.lif_no < 1){
Var.game_stu = "Over";
stopAll();
};
};
}
public function insfalse(_arg1:MouseEvent){
ins_page.visible = false;
Var.pauseAni = false;
pausedis.visible = false;
stage.addEventListener(Event.ENTER_FRAME, enterFun);
clk.addEventListener(MouseEvent.MOUSE_DOWN, jumpFun);
}
}
}//package drive_fla
Section 8
//pausebtn_60 (drive_fla.pausebtn_60)
package drive_fla {
import flash.display.*;
public dynamic class pausebtn_60 extends MovieClip {
public function pausebtn_60(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package drive_fla
Section 9
//sprite159_53 (drive_fla.sprite159_53)
package drive_fla {
import flash.display.*;
public dynamic class sprite159_53 extends MovieClip {
public function sprite159_53(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package drive_fla
Section 10
//start_176 (drive_fla.start_176)
package drive_fla {
import flash.display.*;
public dynamic class start_176 extends MovieClip {
public function start_176(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay(Math.round((Math.random() * 20)));
}
}
}//package drive_fla
Section 11
//Symbol14_140 (drive_fla.Symbol14_140)
package drive_fla {
import flash.display.*;
public dynamic class Symbol14_140 extends MovieClip {
public var okBtn:SimpleButton;
}
}//package drive_fla
Section 12
//Symbol16copy_58 (drive_fla.Symbol16copy_58)
package drive_fla {
import flash.display.*;
public dynamic class Symbol16copy_58 extends MovieClip {
public function Symbol16copy_58(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
}
}//package drive_fla
Section 13
//Symbol26_24 (drive_fla.Symbol26_24)
package drive_fla {
import flash.display.*;
public dynamic class Symbol26_24 extends MovieClip {
public var doll1:MovieClip;
}
}//package drive_fla
Section 14
//Symbol3_51 (drive_fla.Symbol3_51)
package drive_fla {
import flash.display.*;
public dynamic class Symbol3_51 extends MovieClip {
public function Symbol3_51(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(Var.lev_up);
}
}
}//package drive_fla
Section 15
//Symbol4_50 (drive_fla.Symbol4_50)
package drive_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
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 Symbol4_50 extends MovieClip {
public var bg:MovieClip;
public var buf:Number;
public function Symbol4_50(){
addFrameScript(0, frame1);
}
function frame1(){
stage.addEventListener(Event.ENTER_FRAME, stageEnter);
buf = -40;
}
public function stageEnter(_arg1:Event):void{
var _local2:uint;
var _local3:*;
if (!Var.pauseAni){
_local2 = 0;
while (_local2 < numChildren) {
getChildAt(_local2).x = (getChildAt(_local2).x - Var.bgSpeed);
if (getChildAt(_local2).x < -(getChildAt(_local2).width)){
if (_local2 == 0){
_local3 = getChildAt((_local2 + 1));
} else {
_local3 = getChildAt((_local2 - 1));
};
getChildAt(_local2).x = ((_local3.width + buf) + _local3.x);
};
_local2++;
};
};
}
}
}//package drive_fla
Section 16
//Symbol9_52 (drive_fla.Symbol9_52)
package drive_fla {
import flash.display.*;
public dynamic class Symbol9_52 extends MovieClip {
public var doll1:MovieClip;
public function Symbol9_52(){
addFrameScript(0, frame1, 1, frame2, 13, frame14, 27, frame28);
}
function frame14(){
stop();
}
function frame1(){
stop();
}
function frame2(){
Var.fireAni = true;
}
function frame28(){
gotoAndStop(1);
}
}
}//package drive_fla
Section 17
//uiuyi_71 (drive_fla.uiuyi_71)
package drive_fla {
import flash.display.*;
public dynamic class uiuyi_71 extends MovieClip {
public function uiuyi_71(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package drive_fla
Section 18
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 19
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
}
}//package gs.plugins
Section 20
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
}
}//package gs.plugins
Section 21
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 22
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import flash.display.*;
import flash.geom.*;
import gs.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 23
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 24
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
}
}//package gs.plugins
Section 25
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
}
}//package gs.plugins
Section 26
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 27
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 28
//TweenLite (gs.TweenLite)
package gs {
import flash.display.*;
import flash.events.*;
import gs.utils.tween.*;
import gs.plugins.*;
import flash.utils.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.09;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && ((this.target is TweenLite)))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 29
//backscore (backscore)
package {
import flash.media.*;
public dynamic class backscore extends Sound {
}
}//package
Section 30
//BlstS (BlstS)
package {
import flash.media.*;
public dynamic class BlstS extends Sound {
}
}//package
Section 31
//Coin (Coin)
package {
import flash.display.*;
public dynamic class Coin extends MovieClip {
}
}//package
Section 32
//CoinS (CoinS)
package {
import flash.media.*;
public dynamic class CoinS extends Sound {
}
}//package
Section 33
//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 34
//JumpS (JumpS)
package {
import flash.media.*;
public dynamic class JumpS extends Sound {
}
}//package
Section 35
//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 36
//Thing (Thing)
package {
import flash.display.*;
public dynamic class Thing extends MovieClip {
public function Thing(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
switch (Var.lev_up){
case 1:
gotoAndStop((Math.round((Math.random() * 1)) + 1));
break;
case 2:
gotoAndStop((Math.round((Math.random() * 1)) + 3));
break;
case 3:
gotoAndStop((Math.round((Math.random() * 1)) + 5));
break;
case 4:
gotoAndStop((Math.round((Math.random() * 1)) + 7));
break;
};
}
}
}//package
Section 37
//Var (Var)
package {
public class Var {
public static var bgSpeed:Number = 10;
public static var fireAni:Boolean = false;
public static var game_stu:String;
public static var lev_up:Number = 1;
public static var pauseAni:Boolean = false;
public static var game_sco:Number = 0;
public static var lif_no:Number = 1;
public static var lev_sco:Number = 1;
}
}//package