Section 1
//TweenLite (com.Tween.TweenLite)
package com.Tween {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
public class TweenLite {
public var delay:Number;
protected var _initted:Boolean;
protected var _subTweens:Array;
public var startTime:uint;
public var target:Object;
public var duration:Number;
protected var _hst:Boolean;
protected var _active:Boolean;
public var tweens:Object;
public var vars:Object;
public var initTime:uint;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public static var defaultEase:Function = TweenLite.easeOut;
public static var version:Number = 6.1;
private static var _sprite:Sprite = new Sprite();
protected static var _all:Dictionary = new Dictionary();
public static var killDelayedCallsTo:Function = killTweensOf;
protected static var _curTime:uint;
private static var _listening:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
if (_arg1 == null){
return;
};
if (((((!((_arg3.overwrite == false))) && (!((_arg1 == null))))) || ((_all[_arg1] == undefined)))){
delete _all[_arg1];
_all[_arg1] = new Dictionary();
};
_all[_arg1][this] = this;
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.target = _arg1;
if (!(this.vars.ease is Function)){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
if (!isNaN(Number(this.vars.autoAlpha))){
this.vars.alpha = Number(this.vars.autoAlpha);
};
this.tweens = {};
_subTweens = [];
_hst = (_initted = false);
_active = (((_arg2 == 0)) && ((this.delay == 0)));
if (!_classInitted){
_curTime = getTimer();
_sprite.addEventListener(Event.ENTER_FRAME, executeAll);
_classInitted = true;
};
this.initTime = _curTime;
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (_active))){
initTweenVals();
this.startTime = _curTime;
if (_active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
};
if (((!(_listening)) && (!(_active)))){
_timer.addEventListener("timer", killGarbage);
_timer.start();
_listening = true;
};
}
protected function addSubTween(_arg1:Function, _arg2:Object, _arg3:Object, _arg4:Object=null):void{
var _local5:String;
_subTweens.push({proxy:_arg1, target:_arg2, info:_arg4});
for (_local5 in _arg3) {
if (_arg2.hasOwnProperty(_local5)){
if (typeof(_arg3[_local5]) == "number"){
this.tweens[((("st" + _subTweens.length) + "_") + _local5)] = {o:_arg2, p:_local5, s:_arg2[_local5], c:(_arg3[_local5] - _arg2[_local5])};
} else {
this.tweens[((("st" + _subTweens.length) + "_") + _local5)] = {o:_arg2, p:_local5, s:_arg2[_local5], c:Number(_arg3[_local5])};
};
};
};
_hst = true;
}
public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local4:String;
var _local5:Array;
var _local6:int;
var _local7:ColorTransform;
var _local8:ColorTransform;
var _local9:Object;
var _local3 = (this.target is DisplayObject);
if ((this.target is Array)){
_local5 = ((this.vars.endArray) || ([]));
_local6 = 0;
while (_local6 < _local5.length) {
if (((!((this.target[_local6] == _local5[_local6]))) && (!((this.target[_local6] == undefined))))){
this.tweens[_local6.toString()] = {o:this.target, p:_local6.toString(), s:this.target[_local6], c:(_local5[_local6] - this.target[_local6])};
};
_local6++;
};
} else {
for (_local4 in this.vars) {
if ((((((((((((((((((((((((((((((((((_local4 == "ease")) || ((_local4 == "delay")))) || ((_local4 == "overwrite")))) || ((_local4 == "onComplete")))) || ((_local4 == "onCompleteParams")))) || ((_local4 == "onCompleteScope")))) || ((_local4 == "runBackwards")))) || ((_local4 == "onUpdate")))) || ((_local4 == "onUpdateParams")))) || ((_local4 == "onUpdateScope")))) || ((_local4 == "autoAlpha")))) || ((_local4 == "onStart")))) || ((_local4 == "onStartParams")))) || ((_local4 == "onStartScope")))) || ((_local4 == "renderOnStart")))) || ((_local4 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local4) + " ")) == -1))))))){
} else {
if ((((_local4 == "tint")) && (_local3))){
_local7 = this.target.transform.colorTransform;
_local8 = new ColorTransform();
if (this.vars.alpha != undefined){
_local8.alphaMultiplier = this.vars.alpha;
delete this.vars.alpha;
delete this.tweens.alpha;
} else {
_local8.alphaMultiplier = this.target.alpha;
};
if (((!((this.vars[_local4] == null))) && (!((this.vars[_local4] == ""))))){
_local8.color = this.vars[_local4];
};
addSubTween(tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local7, endColor:_local8});
} else {
if ((((_local4 == "frame")) && (_local3))){
addSubTween(frameProxy, {frame:this.target.currentFrame}, {frame:this.vars[_local4]}, {target:this.target});
} else {
if ((((_local4 == "volume")) && (((_local3) || ((this.target is SoundChannel)))))){
addSubTween(volumeProxy, this.target.soundTransform, {volume:this.vars[_local4]}, {target:this.target});
} else {
if (this.target.hasOwnProperty(_local4)){
if (typeof(this.vars[_local4]) == "number"){
this.tweens[_local4] = {o:this.target, p:_local4, s:this.target[_local4], c:(this.vars[_local4] - this.target[_local4])};
} else {
this.tweens[_local4] = {o:this.target, p:_local4, s:this.target[_local4], c:Number(this.vars[_local4])};
};
};
};
};
};
};
};
};
if (this.vars.runBackwards == true){
for (_local4 in this.tweens) {
_local9 = this.tweens[_local4];
this.tweens[_local4].s = (_local9.s + _local9.c);
_local9.c = (_local9.c * -1);
};
};
if (typeof(this.vars.autoAlpha) == "number"){
this.target.visible = !((((this.vars.runBackwards == true)) && ((this.target.alpha == 0))));
};
_initted = true;
}
public function get active():Boolean{
if (_active){
return (true);
};
if (((_curTime - this.initTime) / 1000) > this.delay){
_active = true;
this.startTime = (this.initTime + (this.delay * 1000));
if (!_initted){
initTweenVals();
} else {
if (typeof(this.vars.autoAlpha) == "number"){
this.target.visible = true;
};
};
if (this.vars.onStart != null){
this.vars.onStart.apply(this.vars.onStartScope, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function render(_arg1:uint):void{
var _local4:Object;
var _local5:String;
var _local6:uint;
var _local2:Number = ((_arg1 - this.startTime) / 1000);
if (_local2 > this.duration){
_local2 = this.duration;
};
var _local3:Number = this.vars.ease(_local2, 0, 1, this.duration);
for (_local5 in this.tweens) {
_local4 = this.tweens[_local5];
_local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c));
};
if (_hst){
_local6 = 0;
while (_local6 < _subTweens.length) {
_subTweens[_local6].proxy(_subTweens[_local6]);
_local6++;
};
};
if (this.vars.onUpdate != null){
this.vars.onUpdate.apply(this.vars.onUpdateScope, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(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 complete(_arg1:Boolean=false):void{
if (!_arg1){
if (!_initted){
initTweenVals();
};
render((this.startTime + (this.duration * 1000)));
return;
};
if ((((typeof(this.vars.autoAlpha) == "number")) && ((this.target.alpha == 0)))){
this.target.visible = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(this.vars.onCompleteScope, this.vars.onCompleteParams);
};
removeTween(this);
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function frameProxy(_arg1:Object):void{
_arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame));
}
public static function removeTween(_arg1:TweenLite=null):void{
if (((!((_arg1 == null))) && (!((_all[_arg1.target] == undefined))))){
delete _all[_arg1.target][_arg1];
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Object;
var _local4:*;
if (((!((_arg1 == null))) && (!((_all[_arg1] == undefined))))){
if (_arg2){
_local3 = _all[_arg1];
for (_local4 in _local3) {
_local3[_local4].complete(false);
};
};
delete _all[_arg1];
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, onCompleteScope:_arg4, overwrite:false}));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function executeAll(_arg1:Event=null):void{
var _local4:Object;
var _local5:Object;
var _local2:Dictionary = _all;
var _local3:uint = (_curTime = getTimer());
if (_listening){
for (_local4 in _local2) {
for (_local5 in _local2[_local4]) {
if (((!((_local2[_local4][_local5] == undefined))) && (_local2[_local4][_local5].active))){
_local2[_local4][_local5].render(_local3);
if (_local2[_local4] == undefined){
break;
};
};
};
};
};
}
public static function volumeProxy(_arg1:Object):void{
_arg1.info.target.soundTransform = _arg1.target;
}
public static function killGarbage(_arg1:TimerEvent):void{
var _local3:Boolean;
var _local4:Object;
var _local5:Object;
var _local6:Object;
var _local2:uint;
for (_local4 in _all) {
_local3 = false;
for (_local5 in _all[_local4]) {
_local3 = true;
break;
};
if (!_local3){
delete _all[_local4];
} else {
_local2++;
};
};
if (_local2 == 0){
_timer.removeEventListener("timer", killGarbage);
_timer.stop();
_listening = false;
};
}
public static function tintProxy(_arg1:Object):void{
var _local2:Number = _arg1.target.progress;
var _local3:Number = (1 - _local2);
_arg1.info.target.transform.colorTransform = new ColorTransform(((_arg1.info.color.redMultiplier * _local3) + (_arg1.info.endColor.redMultiplier * _local2)), ((_arg1.info.color.greenMultiplier * _local3) + (_arg1.info.endColor.greenMultiplier * _local2)), ((_arg1.info.color.blueMultiplier * _local3) + (_arg1.info.endColor.blueMultiplier * _local2)), ((_arg1.info.color.alphaMultiplier * _local3) + (_arg1.info.endColor.alphaMultiplier * _local2)), ((_arg1.info.color.redOffset * _local3) + (_arg1.info.endColor.redOffset * _local2)), ((_arg1.info.color.greenOffset * _local3) + (_arg1.info.endColor.greenOffset * _local2)), ((_arg1.info.color.blueOffset * _local3) + (_arg1.info.endColor.blueOffset * _local2)), ((_arg1.info.color.alphaOffset * _local3) + (_arg1.info.endColor.alphaOffset * _local2)));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.Tween
Section 2
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var cpmstarLoader:Loader;
private var contentspotid:String;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
var _local2 = "http://server.cpmstar.com/adviewas3.swf";
var _local3:DisplayObjectContainer = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
}
}//package CPMStar
Section 3
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 4
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 5
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 6
//bbx_btn_5 (preload_fla.bbx_btn_5)
package preload_fla {
import flash.display.*;
public dynamic class bbx_btn_5 extends MovieClip {
public function bbx_btn_5(){
addFrameScript(0, this.frame1, 53, this.frame54);
}
function frame54(){
stop();
}
function frame1(){
stop();
}
}
}//package preload_fla
Section 7
//bubble_logo3_10 (preload_fla.bubble_logo3_10)
package preload_fla {
import flash.display.*;
public dynamic class bubble_logo3_10 extends MovieClip {
public function bubble_logo3_10(){
addFrameScript(0, this.frame1, 9, this.frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package preload_fla
Section 8
//ad_anm (ad_anm)
package {
import flash.display.*;
public dynamic class ad_anm extends MovieClip {
public var mc:MovieClip;
}
}//package
Section 9
//ad_side (ad_side)
package {
import flash.display.*;
public dynamic class ad_side extends MovieClip {
}
}//package
Section 10
//bubblebox_logo (bubblebox_logo)
package {
import flash.display.*;
public dynamic class bubblebox_logo extends SimpleButton {
}
}//package
Section 11
//BubbleBoxSplash (BubbleBoxSplash)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class BubbleBoxSplash extends MovieClip {
public var play_latest_text:MovieClip;
public var link:MovieClip;
public function BubbleBoxSplash(){
addFrameScript(0, this.frame1, 160, this.frame161);
}
public function Bubblebox_fnc(_arg1:MouseEvent):void{
var _local2 = "http://www.bubblebox.com/clickreg.php?type=gamestats&id=1836&subid=splash";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_blank");
}
function frame1(){
play();
this.link.addEventListener(MouseEvent.CLICK, this.Bubblebox_fnc);
}
function frame161(){
MovieClip(parent).nextFrame();
stop();
}
}
}//package
Section 12
//InkBallBubbleBoxPreload (InkBallBubbleBoxPreload)
package {
import flash.events.*;
import com.Tween.*;
import flash.display.*;
import CPMStar.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
public class InkBallBubbleBoxPreload extends MovieClip {
private var bubblebox:SimpleButton;
private var adbox:MovieClip;
private var bp:Bitmap;
private var sp:MovieClip;
private var CPMStarContentSpotID:String;// = "2498Q4F40ECFD"
public var adtime:uint;// = 0
private var adside:MovieClip;
private var adAnm:MovieClip;
private var ball:MovieClip;
public function InkBallBubbleBoxPreload(){
stop();
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function gotoBubbleBox(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1836&subid=splash"), "blank");
}
private function init(_arg1:Event):void{
var nToURL0:Function;
var evt = _arg1;
nToURL0 = function (_arg1:ContextMenuEvent){
var _local2:URLRequest = new URLRequest("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1836&subid=mainmenu");
navigateToURL(_local2);
};
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
createLoading();
removeEventListener(Event.ADDED_TO_STAGE, init);
addEventListener(Event.ENTER_FRAME, eventsHandler);
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
contextMenu = myMenu;
var menuItem0:ContextMenuItem = new ContextMenuItem("BubbleBox.com");
var menuItem1:ContextMenuItem = new ContextMenuItem("developed by zihyfw");
myMenu.customItems.push(menuItem0);
myMenu.customItems.push(menuItem1);
menuItem0.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, nToURL0);
}
private function logoalpha():void{
TweenLite.to(adAnm, 0.6, {scaleX:0, scaleY:0});
}
private function startgame():void{
adAnm.removeEventListener(MouseEvent.CLICK, gotoBubbleBox);
bubblebox.removeEventListener(MouseEvent.CLICK, gotoBubbleBox);
removeChild(adbox);
removeChild(adside);
removeChild(bubblebox);
stage.frameRate = 60;
nextFrame();
initApp();
}
private function splashalpha():void{
TweenLite.to(sp, 0.5, {alpha:0});
}
private function playlogo():void{
adAnm.mc.gotoAndPlay(2);
}
private function createLoading():void{
bp = new Bitmap(new preload_bg(640, 480));
addChild(bp);
ball = new preload_ball();
addChild(ball);
bubblebox = new bubblebox_logo();
bubblebox.addEventListener(MouseEvent.CLICK, gotoBubbleBox);
addChild(bubblebox);
bubblebox.x = 1600;
bubblebox.y = 328;
adAnm = new ad_anm();
adAnm.buttonMode = true;
addChild(adAnm);
adAnm.addEventListener(MouseEvent.CLICK, gotoBubbleBox);
adAnm.x = 320;
adAnm.y = 192;
setTimeout(admove, 1000);
adbox = new preload_adBox();
addChild(adbox);
adbox.x = 170;
adbox.y = -500;
adside = new ad_side();
addChild(adside);
adside.x = 170;
adside.y = -500;
var _local1:DisplayObject = new AdLoader(CPMStarContentSpotID);
adbox.addChild(_local1);
ball.x = 610;
ball.y = 450;
}
private function eventsHandler(_arg1:Event):void{
ball.mc.rotation = (ball.mc.rotation - 5);
var _local2 = (((loaderInfo.bytesLoaded / loaderInfo.bytesTotal) * 100) >> 0);
ball.bfb.text = _local2;
if (adtime < 1000){
adtime++;
};
if ((((loaderInfo.bytesLoaded == loaderInfo.bytesTotal)) && ((adtime > 150)))){
removeEventListener(Event.ENTER_FRAME, eventsHandler);
removeChild(ball);
TweenLite.to(adAnm, 0.5, {y:-500});
TweenLite.to(adbox, 0.5, {y:-500});
TweenLite.to(adside, 0.5, {y:-500});
TweenLite.to(bubblebox, 1, {y:-400});
sp = new BubbleBoxSplash();
addChild(sp);
sp.x = 320;
sp.y = -500;
TweenLite.to(sp, 0.5, {y:240});
setTimeout(splashalpha, 6000);
setTimeout(startgame, 6500);
};
}
private function initApp():void{
var _local2:Object;
var _local1:Class = (getDefinitionByName("protect") as Class);
if (_local1 != null){
_local2 = new (_local1);
addChild((_local2 as DisplayObject));
};
}
private function admove():void{
TweenLite.to(adbox, 0.6, {y:68});
TweenLite.to(adside, 0.6, {y:68});
TweenLite.to(adAnm, 0.6, {y:370});
adAnm.mc.gotoAndPlay(2);
}
private function logomove():void{
TweenLite.to(adAnm, 0.6, {y:192});
}
}
}//package
Section 13
//preload_adBox (preload_adBox)
package {
import flash.display.*;
public dynamic class preload_adBox extends MovieClip {
}
}//package
Section 14
//preload_ball (preload_ball)
package {
import flash.display.*;
import flash.text.*;
public dynamic class preload_ball extends MovieClip {
public var mc:MovieClip;
public var bfb:TextField;
}
}//package
Section 15
//preload_bg (preload_bg)
package {
import flash.display.*;
public dynamic class preload_bg extends BitmapData {
public function preload_bg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 16
//protect (protect)
package {
import flash.display.*;
import flash.system.*;
public class protect extends MovieClip {
private var content:Class;
private var content7:Class;
public function protect():void{
content7 = protect_content7;
super();
var _local1:Loader = new Loader();
addChild(_local1);
_local1.loadBytes(new content7(), new LoaderContext(false, new ApplicationDomain()));
}
}
}//package
Section 17
//protect_content7 (protect_content7)
package {
import mx.core.*;
public class protect_content7 extends ByteArrayAsset {
}
}//package