Section 1
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 3
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var begin:Number;// = NAN
private var _finish:Number;// = NAN
public var change:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 4
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var position:Number;// = NAN
public var time:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 5
//_info_34 (Light_fla._info_34)
package Light_fla {
import flash.display.*;
public dynamic class _info_34 extends MovieClip {
public function _info_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 6
//_mc_35 (Light_fla._mc_35)
package Light_fla {
import flash.display.*;
public dynamic class _mc_35 extends MovieClip {
public function _mc_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 7
//_mc2_66 (Light_fla._mc2_66)
package Light_fla {
import flash.display.*;
public dynamic class _mc2_66 extends MovieClip {
public function _mc2_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 8
//_sound_58 (Light_fla._sound_58)
package Light_fla {
import flash.display.*;
public dynamic class _sound_58 extends MovieClip {
public function _sound_58(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package Light_fla
Section 9
//_sound_59 (Light_fla._sound_59)
package Light_fla {
import flash.display.*;
public dynamic class _sound_59 extends MovieClip {
public function _sound_59(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11);
}
function frame1(){
stop();
}
function frame2(){
gotoAndStop(1);
}
function frame3(){
gotoAndStop(1);
}
function frame4(){
gotoAndStop(1);
}
function frame5(){
gotoAndStop(1);
}
function frame6(){
gotoAndStop(1);
}
function frame7(){
gotoAndStop(1);
}
function frame8(){
gotoAndStop(1);
}
function frame10(){
gotoAndStop(1);
}
function frame11(){
gotoAndStop(1);
}
function frame9(){
gotoAndStop(1);
}
}
}//package Light_fla
Section 10
//AJ_things_44 (Light_fla.AJ_things_44)
package Light_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.easing.*;
import fl.transitions.*;
public dynamic class AJ_things_44 extends MovieClip {
public var tween_time:Number;
public var tween_X:Function;
public var scaleXY:Number;
public var _mc:MovieClip;
public var mc_x_tween:Tween;
public var mc_y_tween:Tween;
public function AJ_things_44(){
addFrameScript(0, frame1);
}
public function MDown(_arg1:MouseEvent){
mc_x_tween.rewind();
mc_y_tween.rewind();
}
public function MOver(_arg1:MouseEvent){
mc_x_tween.continueTo(scaleXY, tween_time);
mc_y_tween.continueTo(scaleXY, tween_time);
}
function frame1(){
scaleXY = 1.3;
tween_time = 0.5;
tween_X = Strong.easeOut;
mc_x_tween = new Tween(_mc, "scaleX", tween_X, 1, scaleXY, tween_time, true);
mc_x_tween.stop();
mc_y_tween = new Tween(_mc, "scaleY", tween_X, 1, scaleXY, tween_time, true);
mc_y_tween.stop();
_mc.addEventListener(MouseEvent.MOUSE_OVER, MOver);
_mc.addEventListener(MouseEvent.MOUSE_OUT, MOut);
_mc.addEventListener(MouseEvent.MOUSE_DOWN, MDown);
_mc.addEventListener(MouseEvent.MOUSE_UP, MUp);
}
public function MUp(_arg1:MouseEvent){
mc_x_tween.fforward();
mc_y_tween.fforward();
}
public function MOut(_arg1:MouseEvent){
mc_x_tween.continueTo(1, tween_time);
mc_y_tween.continueTo(1, tween_time);
}
}
}//package Light_fla
Section 11
//back_auto_54 (Light_fla.back_auto_54)
package Light_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class back_auto_54 extends MovieClip {
public var arr:Array;
public var rn:int;
public var _back:MovieClip;
public var n:int;
public var arr2:Array;
public function back_auto_54(){
addFrameScript(0, frame1);
}
function frame1(){
n = 0;
rn = ((Math.random() * 5) + 1);
arr = new Array();
arr2 = new Array();
n = 0;
while (n <= 160) {
arr[n] = new Light_mc();
arr2[n] = new Light_mcc();
arr[n].x = (500 * Math.random());
arr[n].y = (400 * Math.random());
arr[n].scaleX = (0.4 + Math.random());
arr[n].scaleY = arr[n].scaleX;
arr[n].alpha = (0.2 + (Math.random() * 0.8));
_back.addChild(arr[n]);
arr[n]._mc.gotoAndStop(((int(((((arr[n].y / 150) + Math.random()) + 5) + rn)) % 4) + 1));
arr2[n].x = ((arr[n].x + (20 * Math.random())) - 10);
arr2[n].y = ((arr[n].y + (20 * Math.random())) - 10);
arr2[n].scaleX = (0.4 + Math.random());
arr2[n].scaleY = arr2[n].scaleX;
arr2[n].alpha = (0.2 + (Math.random() * 0.8));
if ((n % 3) == 0){
addChild(arr2[n]);
};
arr2[n]._mc.gotoAndStop(arr[n]._mc.currentFrame);
n++;
};
}
}
}//package Light_fla
Section 12
//gameslist_24 (Light_fla.gameslist_24)
package Light_fla {
import flash.display.*;
public dynamic class gameslist_24 extends MovieClip {
public function gameslist_24(){
addFrameScript(80, frame81);
}
function frame81(){
stop();
}
}
}//package Light_fla
Section 13
//he1_41 (Light_fla.he1_41)
package Light_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class he1_41 extends MovieClip {
public var x2;
public var tween_X:Function;
public var bar_tween:Tween;
public var restart_btn:MovieClip;
public var sound_btn:MovieClip;
public var level_txt:MovieClip;
public var x1;
public var menu_btn:MovieClip;
public var level_bar:MovieClip;
public function he1_41(){
addFrameScript(0, frame1);
}
public function ClickSet(_arg1:int){
level_bar._click.text = String(_arg1);
level_bar.click_light.gotoAndPlay(2);
}
function frame1(){
tween_X = Strong.easeOut;
x1 = -193.9;
x2 = -239.9;
bar_tween = new Tween(level_bar, "x", tween_X, x2, x1, 1, true);
bar_tween.stop();
sound_btn._mc.gotoAndStop(2);
restart_btn._mc.gotoAndStop(11);
}
public function BlueSet(_arg1:int){
if (_arg1 == 0){
} else {
bar_tween.continueTo(x1, 1);
};
level_bar._blue.text = String(_arg1);
level_bar.blue_light.gotoAndPlay(2);
}
}
}//package Light_fla
Section 14
//level_board_57 (Light_fla.level_board_57)
package Light_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class level_board_57 extends MovieClip {
public var arr:Array;
public var num:int;
public var n:int;
public var w:int;
public var close_board:MovieClip;
public function level_board_57(){
addFrameScript(0, frame1);
}
function frame1(){
close_board._mc.gotoAndStop(9);
num = 20;
w = 5;
n = 0;
arr = new Array();
n = 0;
while (n <= (num - 1)) {
arr[n] = new AJ_num();
arr[n]._mc._txt.text = String((n + 1));
arr[n].x = (((n % 5) * 70) + 110);
arr[n].y = ((int((n / 5)) * 50) + 80);
addChild(arr[n]);
n++;
};
}
public function LevelNow(_arg1:int){
n = 0;
while (n <= (num - 1)) {
if (n > (_arg1 - 1)){
arr[n].alpha = 0.4;
} else {
arr[n].alpha = 1;
};
n++;
};
}
}
}//package Light_fla
Section 15
//Light_mc1_71 (Light_fla.Light_mc1_71)
package Light_fla {
import flash.display.*;
public dynamic class Light_mc1_71 extends MovieClip {
public function Light_mc1_71(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 16
//Light_mcc1_73 (Light_fla.Light_mcc1_73)
package Light_fla {
import flash.display.*;
public dynamic class Light_mcc1_73 extends MovieClip {
public function Light_mcc1_73(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 17
//loading_17 (Light_fla.loading_17)
package Light_fla {
import flash.events.*;
import flash.display.*;
public dynamic class loading_17 extends MovieClip {
public var preloaderContent:MovieClip;
public var continue_btn:SimpleButton;
public var _mc:MovieClip;
public function loading_17(){
addFrameScript(0, frame1, 9, frame10);
}
public function continue_btn_handel(_arg1:Event):void{
MovieClip(this.parent).play();
}
function frame1(){
stop();
}
function frame10(){
stop();
continue_btn.addEventListener(MouseEvent.CLICK, continue_btn_handel);
}
}
}//package Light_fla
Section 18
//loadingsprite5_21 (Light_fla.loadingsprite5_21)
package Light_fla {
import flash.display.*;
public dynamic class loadingsprite5_21 extends MovieClip {
public function loadingsprite5_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 19
//MainTimeline (Light_fla.MainTimeline)
package Light_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var game_state:String;
public var v_min;
public var ball:Array;
public var loadingbox:MovieClip;
public var _sound:MovieClip;
public var sound_B:Boolean;
public var right_x;
public var _winlight:MovieClip;
public var _right:MovieClip;
public var blue_num:int;
public var _music:MovieClip;
public var back_y;
public var ball_tween:Tween;
public var mohu:BlurFilter;
public var ball_x:Array;
public var ntime:int;
public var left_x;
public var ball_container:MovieClip;
public var bar_tween:Tween;
public var level_num:int;
public var click_num:int;
public var TTimer:Timer;
public var ball_hit:Array;
public var _bar:MovieClip;
public var g:Number;
public var t:Number;
public var dg:Number;
public var tween_X:Function;
public var touch_num:int;
public var level_now:int;
public var k_v;
public var _cover:MovieClip;
public var _back:MovieClip;
public var mohu0:BlurFilter;
public var cover_tween:Tween;
public var _left:MovieClip;
public var pi:Number;
public function MainTimeline(){
addFrameScript(0, frame1, 60, frame61, 61, frame62);
}
public function loaded(_arg1:Event){
loadingbox.gotoAndPlay(2);
}
public function Pn(_arg1:Number){
if (_arg1 == 0){
return (0);
};
return ((_arg1 / Math.abs(_arg1)));
}
public function BallX(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number){
if (_arg1 == 0){
ball_x.unshift(new BallX_mc());
ball_x[0].x = _arg2;
ball_x[0].y = _arg3;
ball[0].scaleX = (_arg4 / 41.25);
ball[0].scaleY = ball[0].scaleX;
ball_container.addChild(ball_x[0]);
};
}
public function LevelDate(_arg1:int){
BallData(0, 0, 0, 0, 0, 0);
ball_container._info.gotoAndStop(1);
if (_arg1 == 0){
} else {
if (_arg1 == 1){
BallData(1, 41.45, 358.7, 41.3, 1, 0);
BallData(1, 124.15, 358.6, 41.3, 1, 0);
BallData(1, 210.3, 358.7, 41.3, 1, 0);
BallData(1, 293, 358.8, 41.3, 1, 0);
BallData(1, 375.95, 358.6, 41.3, 1, 0);
BallData(1, 458.35, 358.6, 41.3, 1, 0);
BallData(1, 167.4, 288.15, 41.3, 1, 0);
BallData(1, 82.15, 287, 41.3, 1, 0);
BallData(1, 251.85, 287.1, 41.3, 1, 2);
BallData(1, 209.1, 216.55, 41.3, 1, 0);
BallData(1, 125.3, 216.65, 41.3, 1, 0);
BallData(1, 167.1, 145.4, 41.3, 1, 1);
CtrlDate(1, 0, 1);
ball_container._info.gotoAndStop("l1");
} else {
if (_arg1 == 2){
BallData(1, 41.45, 358.9, 41.3, 1, 0);
BallData(1, 124.25, 358.8, 41.3, 1, 0);
BallData(1, 209.8, 358.7, 41.3, 1, 2);
BallData(1, 292.75, 358.8, 41.3, 1, 0);
BallData(1, 375.65, 358.7, 41.3, 1, 0);
BallData(1, 458.45, 358.7, 41.3, 1, 0);
BallData(1, 166.8, 288.15, 41.3, 1, 0);
BallData(1, 82.5, 287.2, 41.3, 1, 0);
BallData(1, 251.4, 287.3, 41.3, 1, 0);
BallData(1, 208.55, 216.8, 41.3, 1, 0);
BallData(1, 125.35, 216.7, 41.3, 1, 1);
BallData(1, 167.05, 145.4, 41.3, 1, 0);
CtrlDate(3, 0, 1);
ball_container._info.gotoAndStop("l2");
} else {
if (_arg1 == 4){
BallData(1, 123.7, 358.7, 41.3, 1, 0);
BallData(1, 206.35, 358.8, 41.3, 1, 0);
BallData(1, 288.95, 358.65, 41.3, 1, 0);
BallData(1, 375.5, 358.7, 41.3, 1, 0);
BallData(1, 458.75, 358.7, 41.3, 1, 0);
BallData(1, 164.8, 287.25, 41.3, 1, 0);
BallData(1, 247.4, 287.15, 41.3, 1, 0);
BallData(1, 332.45, 288.35, 41.3, 1, 0);
BallData(1, 417.8, 286.95, 41.3, 1, 0);
BallData(1, 290.9, 217.15, 41.3, 1, 0);
BallData(1, 205.8, 215.55, 41.3, 1, 0);
BallData(1, 374.2, 216.9, 41.3, 1, 0);
BallData(1, 249.5, 145.5, 41.3, 1, 0);
BallData(1, 334.45, 144.55, 41.3, 1, 0);
BallData(1, 291.15, 74.15, 41.3, 1, 1);
BallData(1, 82.35, 287.15, 41.3, 1, 2);
BallData(1, 41.15, 358.7, 41.3, 1, 0);
CtrlDate(2, 0, 1);
} else {
if (_arg1 == 3){
BallData(1, 124.1, 358.85, 41.3, 1, 0);
BallData(1, 207.05, 358.75, 41.3, 1, 0);
BallData(1, 290.1, 358.6, 41.3, 1, 0);
BallData(1, 376.35, 358.6, 41.3, 1, 0);
BallData(1, 458.7, 358.8, 41.3, 1, 0);
BallData(1, 165.3, 287.35, 41.3, 1, 0);
BallData(1, 248.2, 287.25, 41.3, 1, 2);
BallData(1, 333.3, 288.35, 41.3, 1, 0);
BallData(1, 417.6, 287.2, 41.3, 1, 0);
BallData(1, 291.5, 216.95, 41.3, 1, 0);
BallData(1, 206.4, 215.85, 41.3, 1, 0);
BallData(1, 374.6, 216.65, 41.3, 1, 0);
BallData(1, 249.8, 145.6, 41.3, 1, 0);
BallData(1, 332.95, 145.3, 41.3, 1, 0);
BallData(1, 291.25, 74.05, 41.3, 1, 1);
BallData(1, 82.4, 287.1, 41.3, 1, 0);
BallData(1, 41.25, 358.7, 41.3, 1, 0);
CtrlDate(2, 0, 1);
} else {
if (_arg1 == 6){
BallData(1, 123.75, 358.65, 41.3, 1, 0);
BallData(1, 207.25, 358.8, 41.3, 1, 0);
BallData(1, 293.65, 358.8, 41.3, 1, 0);
BallData(1, 376.05, 358.7, 41.3, 1, 0);
BallData(1, 458.75, 358.8, 41.3, 1, 0);
BallData(1, 165.05, 287.1, 41.3, 1, 0);
BallData(1, 250.15, 288.3, 41.3, 1, 0);
BallData(1, 334.95, 287.3, 41.3, 1, 0);
BallData(1, 417.55, 287.1, 41.3, 1, 2);
BallData(1, 291.55, 216.85, 41.3, 1, 0);
BallData(1, 208.75, 216.95, 41.3, 1, 1);
BallData(1, 123.3, 215.45, 41.3, 1, 0);
BallData(1, 167.15, 145.5, 41.3, 1, 0);
BallData(1, 250.15, 145.45, 41.3, 1, 0);
BallData(1, 208.6, 74.1, 41.3, 1, 2);
BallData(1, 81.8, 286.8, 41.3, 1, 0);
BallData(1, 41.1, 358.7, 41.3, 1, 0);
CtrlDate(2, 0, 2);
} else {
if (_arg1 == 17){
BallData(1, 123.95, 358.75, 41.3, 1, 0);
BallData(1, 206.6, 358.7, 41.3, 1, 0);
BallData(1, 292.9, 358.6, 41.3, 1, 0);
BallData(1, 375.85, 358.75, 41.3, 1, 0);
BallData(1, 458.9, 358.65, 41.3, 1, 0);
BallData(1, 165.05, 287.1, 41.3, 1, 0);
BallData(1, 249.75, 288.35, 41.3, 1, 0);
BallData(1, 334.65, 287.1, 41.3, 1, 0);
BallData(1, 417.45, 287.15, 41.3, 1, 2);
BallData(1, 291.4, 217.1, 41.3, 1, 0);
BallData(1, 208.05, 216.75, 41.3, 1, 0);
BallData(1, 376.4, 215.55, 41.3, 1, 0);
BallData(1, 122.8, 215.15, 41.3, 1, 0);
BallData(1, 166.05, 144.85, 41.3, 1, 0);
BallData(1, 250.2, 145.6, 41.3, 1, 0);
BallData(1, 332.95, 145.35, 41.3, 1, 0);
BallData(1, 291.3, 74.05, 41.3, 1, 0);
BallData(1, 208.55, 74, 41.3, 1, 1);
BallData(1, 82.3, 287.1, 41.3, 1, 0);
BallData(1, 41.2, 358.7, 41.3, 1, 0);
CtrlDate(4, 0, 1);
} else {
if (_arg1 == 7){
BallData(1, 124.1, 358.8, 41.3, 1, 0);
BallData(1, 206.85, 358.6, 41.3, 1, 0);
BallData(1, 293.05, 358.7, 41.3, 1, 0);
BallData(1, 376, 358.7, 41.3, 1, 0);
BallData(1, 458.35, 358.6, 41.3, 1, 0);
BallData(1, 165.4, 287.3, 41.3, 1, 0);
BallData(1, 250.2, 288.25, 41.3, 1, 0);
BallData(1, 334.7, 287.15, 41.3, 1, 0);
BallData(1, 291.9, 216.6, 41.3, 1, 0);
BallData(1, 208.55, 216.9, 41.3, 1, 3);
BallData(1, 123.85, 215.75, 41.3, 1, 0);
BallData(1, 167.05, 145.4, 41.3, 1, 0);
BallData(1, 250.05, 145.35, 41.3, 1, 0);
BallData(1, 208.6, 73.95, 41.3, 1, 1);
BallData(1, 82.15, 287, 41.3, 1, 2);
BallData(1, 41.2, 358.7, 41.3, 1, 0);
CtrlDate(1, 0, 1);
ball_container._info.gotoAndStop("l5");
} else {
if (_arg1 == 8){
BallData(1, 123.9, 358.6, 41.3, 1, 0);
BallData(1, 210.25, 358.75, 41.3, 1, 3);
BallData(1, 293.15, 358.65, 41.3, 1, 0);
BallData(1, 375.6, 358.6, 41.3, 1, 0);
BallData(1, 458.55, 358.6, 41.3, 1, 2);
BallData(1, 167.25, 288.25, 41.3, 1, 0);
BallData(1, 251.65, 287.15, 41.3, 1, 0);
BallData(1, 208.75, 216.65, 41.3, 1, 0);
BallData(1, 125.7, 216.75, 41.3, 1, 0);
BallData(1, 167.1, 145.3, 41.3, 1, 1);
BallData(1, 82.3, 287.05, 41.3, 1, 0);
BallData(1, 41.4, 358.65, 41.3, 1, 0);
CtrlDate(2, 0, 1);
} else {
if (_arg1 == 9){
BallData(1, 30.9, 368.65, 31.25, 1, 0);
BallData(1, 93.7, 368.75, 31.25, 1, 0);
BallData(1, 155.65, 368.7, 31.25, 1, 0);
BallData(1, 218.4, 368.85, 31.25, 1, 0);
BallData(1, 281, 368.85, 31.25, 1, 0);
BallData(1, 343.8, 368.7, 31.25, 1, 3);
BallData(1, 406.05, 368.65, 31.25, 1, 0);
BallData(1, 468.9, 368.65, 31.25, 1, 0);
BallData(1, 187.5, 314.45, 31.25, 1, 0);
BallData(1, 124.45, 314.55, 31.25, 1, 0);
BallData(1, 155.95, 260.55, 31.25, 1, 2);
BallData(1, 311.9, 314.45, 31.25, 1, 0);
BallData(1, 374.95, 314.6, 31.25, 1, 0);
BallData(1, 343.45, 260.6, 31.25, 1, 1);
CtrlDate(1, 0, 1);
} else {
if (_arg1 == 13){
BallData(1, 123.85, 358.9, 41.3, 1, 0);
BallData(1, 206.9, 358.85, 41.3, 1, 0);
BallData(1, 289.55, 358.8, 41.3, 1, 0);
BallData(1, 375.95, 358.8, 41.3, 1, 0);
BallData(1, 458.45, 358.9, 41.3, 1, 2);
BallData(1, 165.2, 287.6, 41.3, 1, 0);
BallData(1, 248.05, 287.4, 41.3, 1, 0);
BallData(1, 332.75, 288.45, 41.3, 1, 0);
BallData(1, 417.65, 287.1, 41.3, 1, 0);
BallData(1, 291.3, 217.05, 41.3, 1, 0);
BallData(1, 206.35, 216.1, 41.3, 1, 3);
BallData(1, 374.15, 217, 41.3, 1, 0);
BallData(1, 123.7, 215.9, 41.3, 1, 0);
BallData(1, 165.1, 144.5, 41.3, 1, 0);
BallData(1, 249.6, 145.8, 41.3, 1, 0);
BallData(1, 332.7, 145.6, 41.3, 1, 0);
BallData(1, 290.95, 74.4, 41.3, 1, 0);
BallData(1, 208.35, 74.2, 41.3, 1, 1);
BallData(1, 82.55, 287.45, 41.3, 1, 0);
BallData(1, 41.45, 358.8, 41.3, 1, 0);
CtrlDate(4, 0, 1);
} else {
if (_arg1 == 5){
BallData(1, 31.4, 368.7, 31.25, 1, 2);
BallData(1, 93.95, 368.8, 31.25, 1, 2);
BallData(1, 156.75, 368.7, 31.25, 1, 0);
BallData(1, 219.1, 368.6, 31.25, 1, 2);
BallData(1, 281.65, 368.75, 31.25, 1, 2);
BallData(1, 343.8, 368.65, 31.25, 1, 2);
BallData(1, 406.3, 368.65, 31.25, 1, 2);
BallData(1, 469, 368.85, 31.25, 1, 0);
BallData(1, 188.05, 314.6, 31.25, 1, 2);
BallData(1, 62.25, 314.6, 31.25, 1, 2);
BallData(1, 125.15, 314.6, 31.25, 1, 0);
BallData(1, 93.25, 260.35, 31.25, 1, 2);
BallData(1, 156.5, 260.55, 31.25, 1, 2);
BallData(1, 125, 206.55, 31.25, 1, 2);
BallData(1, 311.6, 314.15, 31.25, 1, 0);
BallData(1, 375.25, 314.65, 31.25, 1, 0);
BallData(1, 438.75, 314.15, 31.25, 1, 2);
BallData(1, 343.4, 260.4, 31.25, 1, 0);
BallData(1, 406.8, 260.55, 31.25, 1, 0);
BallData(1, 375.35, 206.7, 31.25, 1, 1);
CtrlDate(1, 0, 12);
} else {
if (_arg1 == 10){
BallData(1, 31.3, 368.7, 31.25, 1, 0);
BallData(1, 93.35, 368.65, 31.25, 1, 0);
BallData(1, 156.2, 368.65, 31.25, 1, 2);
BallData(1, 218.45, 368.65, 31.25, 1, 0);
BallData(1, 281.05, 368.7, 31.25, 1, 0);
BallData(1, 343.75, 368.95, 31.25, 1, 0);
BallData(1, 405.9, 368.75, 31.25, 1, 0);
BallData(1, 468.65, 368.75, 31.25, 1, 0);
BallData(1, 185.9, 313.55, 31.25, 1, 2);
BallData(1, 60.95, 313.85, 31.25, 1, 1);
BallData(1, 123.45, 313.55, 31.25, 1, 0);
BallData(1, 312.2, 314.85, 31.25, 1, 0);
BallData(1, 374.6, 314.85, 31.25, 1, 0);
BallData(1, 437.4, 314.65, 31.25, 1, 0);
BallData(1, 343.45, 260.7, 31.25, 1, 0);
BallData(1, 405.95, 260.75, 31.25, 1, 0);
BallData(1, 374.85, 206.55, 31.25, 1, 2);
BallData(1, 249.05, 313, 32, 1, 0);
CtrlDate(5, 0, 3);
} else {
if (_arg1 == 19){
BallData(1, 31.2, 368.85, 31.25, 1, 0);
BallData(1, 93.85, 368.7, 31.25, 1, 0);
BallData(1, 156.05, 368.7, 31.25, 1, 2);
BallData(1, 218.95, 368.75, 31.25, 1, 0);
BallData(1, 281.6, 368.85, 31.25, 1, 0);
BallData(1, 344.35, 368.85, 31.25, 1, 2);
BallData(1, 407.05, 368.8, 31.25, 1, 0);
BallData(1, 469.25, 368.65, 31.25, 1, 0);
BallData(1, 187.9, 314.6, 31.25, 1, 0);
BallData(1, 60.45, 313.6, 31.25, 1, 0);
BallData(1, 124.85, 314.65, 31.25, 1, 0);
BallData(1, 93.05, 260.45, 31.25, 1, 0);
BallData(1, 156.55, 260.5, 31.25, 1, 0);
BallData(1, 124.7, 206.65, 31.25, 1, 2);
BallData(1, 311.1, 313.9, 31.25, 1, 0);
BallData(1, 375.1, 314.7, 31.25, 1, 0);
BallData(1, 437.95, 314.55, 31.25, 1, 0);
BallData(1, 343.35, 260.5, 31.25, 1, 0);
BallData(1, 406.35, 260.7, 31.25, 1, 0);
BallData(1, 374.8, 206.55, 31.25, 1, 1);
CtrlDate(4, 0, 3);
} else {
if (_arg1 == 14){
BallData(1, 31.2, 368.8, 31.25, 1, 0);
BallData(1, 93.75, 368.8, 31.25, 1, 0);
BallData(1, 156.2, 368.8, 31.25, 1, 0);
BallData(1, 219.05, 368.75, 31.25, 1, 0);
BallData(1, 281.55, 368.75, 31.25, 1, 0);
BallData(1, 343.7, 368.65, 31.25, 1, 0);
BallData(1, 405.9, 368.75, 31.25, 1, 0);
BallData(1, 468.4, 368.8, 31.25, 1, 0);
BallData(1, 187.85, 314.7, 31.25, 1, 0);
BallData(1, 61.3, 314, 31.25, 1, 0);
BallData(1, 124.95, 314.85, 31.25, 1, 3);
BallData(1, 93.9, 260.75, 31.25, 1, 0);
BallData(1, 156.5, 260.7, 31.25, 1, 0);
BallData(1, 125.3, 206.65, 31.25, 1, 1);
BallData(1, 311.95, 314.3, 31.25, 1, 0);
BallData(1, 375.55, 314.45, 31.25, 1, 0);
BallData(1, 438.45, 314.1, 31.25, 1, 2);
BallData(1, 343.55, 260.35, 31.25, 1, 0);
BallData(1, 407.2, 260.15, 31.25, 1, 0);
BallData(1, 375.2, 206.45, 31.25, 1, 3);
CtrlDate(3, 0, 1);
} else {
if (_arg1 == 15){
BallData(1, 31.4, 368.75, 31.25, 1, 0);
BallData(1, 93.45, 368.9, 31.25, 1, 0);
BallData(1, 156.25, 368.6, 31.25, 1, 0);
BallData(1, 218.6, 368.65, 31.25, 1, 0);
BallData(1, 280.85, 368.8, 31.25, 1, 0);
BallData(1, 343.7, 368.7, 31.25, 1, 0);
BallData(1, 406.2, 368.75, 31.25, 1, 0);
BallData(1, 468.55, 368.7, 31.25, 1, 0);
BallData(1, 188.35, 314, 31.25, 1, 0);
BallData(1, 59.65, 313.2, 31.25, 1, 2);
BallData(1, 124.2, 314.4, 31.25, 1, 0);
BallData(1, 92.55, 260.1, 31.25, 1, 0);
BallData(1, 155.9, 260.55, 31.25, 1, 0);
BallData(1, 124.6, 206.5, 31.25, 1, 1);
BallData(1, 311.35, 314.3, 31.25, 1, 2);
BallData(1, 374.65, 314.65, 31.25, 1, 0);
BallData(1, 437.55, 314.6, 31.25, 1, 0);
BallData(1, 342.9, 260.45, 31.25, 1, 2);
BallData(1, 406.45, 260.4, 31.25, 1, 3);
BallData(1, 374.6, 206.65, 31.25, 1, 2);
CtrlDate(3, 0, 4);
} else {
if (_arg1 == 11){
BallData(1, 30.4, 368.65, 31.25, 1, 2);
BallData(1, 92.35, 368.65, 31.25, 1, 0);
BallData(1, 154.9, 368.75, 31.25, 1, 0);
BallData(1, 217.85, 368.8, 31.25, 1, 0);
BallData(1, 280.4, 368.65, 31.25, 1, 0);
BallData(1, 343.15, 368.7, 31.25, 1, 0);
BallData(1, 406.05, 368.75, 31.25, 1, 0);
BallData(1, 468.75, 368.8, 31.25, 1, 0);
BallData(1, 248.7, 314.35, 31.25, 1, 0);
BallData(1, 124.3, 314.45, 31.25, 1, 0);
BallData(1, 279.95, 260.35, 31.25, 1, 0);
BallData(1, 311.8, 206.6, 31.25, 1, 0);
BallData(1, 311.85, 314.65, 31.25, 1, 0);
BallData(1, 374.75, 314.75, 31.25, 1, 0);
BallData(1, 437.45, 314.65, 31.25, 1, 0);
BallData(1, 343.4, 260.65, 31.25, 1, 0);
BallData(1, 406.5, 260.5, 31.25, 1, 0);
BallData(1, 374.85, 206.6, 31.25, 1, 0);
BallData(1, 343.3, 152.65, 31.25, 1, 1);
CtrlDate(0, 1, 1);
ball_container._info.gotoAndStop("l12");
} else {
if (_arg1 == 12){
BallData(1, 31.15, 368.85, 31.25, 1, 0);
BallData(1, 93.9, 368.8, 31.25, 1, 0);
BallData(1, 155.9, 368.85, 31.25, 1, 2);
BallData(1, 218.8, 368.8, 31.25, 1, 2);
BallData(1, 280.8, 369, 31.25, 1, 2);
BallData(1, 343.6, 368.9, 31.25, 1, 0);
BallData(1, 406.2, 368.65, 31.25, 1, 0);
BallData(1, 468.75, 368.85, 31.25, 1, 0);
BallData(1, 249.65, 315.15, 31.25, 1, 0);
BallData(1, 62.15, 314.45, 31.25, 1, 0);
BallData(1, 124.65, 314.85, 31.25, 1, 0);
BallData(1, 93.7, 260.55, 31.25, 1, 1);
BallData(1, 280.75, 260.6, 31.25, 1, 0);
BallData(1, 312, 206.55, 31.25, 1, 0);
BallData(1, 312.1, 314.9, 31.25, 1, 2);
BallData(1, 374.65, 314.9, 31.25, 1, 0);
BallData(1, 437.85, 314.45, 31.25, 1, 2);
BallData(1, 343.6, 260.6, 31.25, 1, 2);
BallData(1, 406.3, 260.6, 31.25, 1, 0);
BallData(1, 375.2, 206.45, 31.25, 1, 2);
BallData(1, 343.5, 152.6, 31.25, 1, 0);
BallData(1, 187.25, 314.85, 31.25, 1, 0);
CtrlDate(1, 1, 7);
} else {
if (_arg1 == 20){
BallData(1, 31.25, 368.75, 31.25, 1, 0);
BallData(1, 93.95, 368.8, 31.25, 1, 0);
BallData(1, 156.3, 368.65, 31.25, 1, 0);
BallData(1, 219.1, 368.75, 31.25, 1, 0);
BallData(1, 281.2, 368.75, 31.25, 1, 0);
BallData(1, 343.8, 368.7, 31.25, 1, 0);
BallData(1, 406.2, 368.85, 31.25, 1, 0);
BallData(1, 468.65, 368.75, 31.25, 1, 0);
BallData(1, 249, 314.15, 31.25, 1, 0);
BallData(1, 59.65, 313.15, 31.25, 1, 0);
BallData(1, 125.1, 314.55, 31.25, 1, 0);
BallData(1, 93.85, 243.65, 46.25, 1, 3);
BallData(1, 280.6, 260.3, 31.25, 1, 1);
BallData(1, 311.9, 206.3, 31.25, 1, 0);
BallData(1, 312.65, 314.7, 31.25, 1, 0);
BallData(1, 375.7, 314.8, 31.25, 1, 0);
BallData(1, 438.3, 314.25, 31.25, 1, 0);
BallData(1, 343.6, 260.45, 31.25, 1, 0);
BallData(1, 406.65, 260.4, 31.25, 1, 0);
BallData(1, 375.2, 206.6, 31.25, 1, 2);
BallData(1, 343.6, 152.5, 31.25, 1, 0);
CtrlDate(1, 1, 1);
} else {
if (_arg1 == 16){
BallData(1, 124.05, 358.7, 41.3, 1, 0);
BallData(1, 206.75, 358.75, 41.3, 1, 0);
BallData(1, 293.3, 358.7, 41.3, 1, 2);
BallData(1, 376, 358.75, 41.3, 1, 2);
BallData(1, 458.9, 358.7, 41.3, 1, 2);
BallData(1, 165.2, 287.25, 41.3, 1, 0);
BallData(1, 249.95, 288.45, 41.3, 1, 2);
BallData(1, 334.75, 287.4, 41.3, 1, 0);
BallData(1, 417.4, 287.2, 41.3, 1, 0);
BallData(1, 291.45, 216.9, 41.3, 1, 0);
BallData(1, 208.4, 216.9, 41.3, 1, 2);
BallData(1, 376.15, 215.7, 41.3, 1, 0);
BallData(1, 123.1, 215.35, 41.3, 1, 0);
BallData(1, 166.95, 145.3, 41.3, 1, 2);
BallData(1, 250, 145.5, 41.3, 1, 0);
BallData(1, 332.85, 145.4, 41.3, 1, 0);
BallData(1, 291.35, 74, 41.3, 1, 1);
BallData(1, 208.65, 74, 41.3, 1, 0);
BallData(1, 82.25, 287, 41.3, 1, 2);
BallData(1, 41.4, 358.75, 41.3, 1, 0);
CtrlDate(1, 1, 7);
CtrlDate(1, 1, 7);
} else {
if (_arg1 == 18){
BallData(1, 31.4, 368.85, 31.25, 1, 2);
BallData(1, 93.65, 368.75, 31.25, 1, 0);
BallData(1, 156.3, 368.7, 31.25, 1, 2);
BallData(1, 218.75, 368.85, 31.25, 1, 0);
BallData(1, 281.35, 368.8, 31.25, 1, 0);
BallData(1, 344, 368.8, 31.25, 1, 0);
BallData(1, 406.4, 368.8, 31.25, 1, 0);
BallData(1, 468.55, 368.85, 31.25, 1, 0);
BallData(1, 249.5, 314.55, 31.25, 1, 0);
BallData(1, 62, 314.5, 31.25, 1, 0);
BallData(1, 124.95, 314.5, 31.25, 1, 0);
BallData(1, 93.5, 260.45, 31.25, 1, 0);
BallData(1, 280.25, 260.3, 31.25, 1, 2);
BallData(1, 311.35, 206.1, 31.25, 1, 0);
BallData(1, 312.25, 314.5, 31.25, 1, 0);
BallData(1, 374.95, 314.55, 31.25, 1, 0);
BallData(1, 437.6, 314.65, 31.25, 1, 0);
BallData(1, 343.7, 260.55, 31.25, 1, 0);
BallData(1, 407.6, 259.8, 31.25, 1, 0);
BallData(1, 375.3, 206.4, 31.25, 1, 0);
BallData(1, 343.55, 152.55, 31.25, 1, 1);
CtrlDate(3, 1, 3);
} else {
if (_arg1 == 21){
ball_container._info.gotoAndStop("end");
ball_container._cover0.visible = false;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function loading(_arg1:ProgressEvent){
var _local2:Number = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
loadingbox._mc.scaleX = (_local2 / 100);
}
public function J_J2(_arg1:Number, _arg2:Number){
return (ZhunJ2((_arg1 - _arg2)));
}
public function Pow(_arg1:Number, _arg2:Number){
return (Math.pow(_arg1, _arg2));
}
public function An(_arg1:Number){
return (((_arg1 / 180) * Math.PI));
}
public function Abs(_arg1:Number){
return (Math.abs(_arg1));
}
public function PengData(){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local1:int;
var _local2:int;
var _local3:int = ball.length;
_local1 = 0;
while (_local1 <= (_local3 - 1)) {
_local4 = ball[_local1].__x;
_local5 = ball[_local1].__y;
_local6 = ball[_local1].rr;
_local2 = 0;
while (_local2 <= (_local3 - 1)) {
if (_local1 != _local2){
_local7 = ball[_local2].__x;
_local8 = ball[_local2].__y;
_local9 = ball[_local2].type;
_local10 = ball[_local2].rr;
_local11 = Math.sqrt((((_local4 - _local7) * (_local4 - _local7)) + ((_local5 - _local8) * (_local5 - _local8))));
_local12 = Tan2((_local5 - _local8), (_local4 - _local7));
if (_local11 <= (_local6 + _local10)){
BallHitObjiect(_local1, ball[_local2].vx, ball[_local2].vy, ball[_local2].mass, ball[_local2].mass, Abs(((_local11 - _local6) - _local10)), _local9, _local12, ball[_local2].wB);
};
};
_local2++;
};
if ((_local5 + _local6) >= back_y){
BallHitObjiect(_local1, 0, 0, 1000000, 1000000, Abs(((_local5 + _local6) - back_y)), 0, (-(pi) / 2), true);
};
if ((_local4 - _local6) <= left_x){
BallHitObjiect(_local1, 0, 0, 1000000, 1000000, Abs(((_local4 - _local6) - left_x)), 0, 0, true);
};
if ((_local4 + _local6) >= right_x){
BallHitObjiect(_local1, 0, 0, 1000000, 1000000, Abs(((_local4 + _local6) - right_x)), 0, Math.PI, true);
};
_local1++;
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loading);
this.loaderInfo.addEventListener(Event.COMPLETE, loaded);
}
public function BallData(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:int){
var _local8:int;
var _local9:int;
var _local7:int;
if (_arg1 == 0){
_local8 = ball.length;
_local7 = 0;
while (_local7 <= (_local8 - 1)) {
ball_container.removeChild(ball[(ball.length - 1)]);
ball.pop();
_local7++;
};
} else {
if (_arg1 > 0){
_local9 = ball.length;
_local7 = 0;
while (_local7 <= (_arg1 - 1)) {
ball[(_local7 + _local9)] = new Ball_mc();
ball[(_local7 + _local9)].vx = 1;
ball[(_local7 + _local9)].vy = 1;
ball[(_local7 + _local9)].ax = 0;
ball[(_local7 + _local9)].ay = 0;
ball[(_local7 + _local9)].rr = _arg4;
ball[(_local7 + _local9)].scaleX = (_arg4 / 41.25);
ball[(_local7 + _local9)].scaleY = ball[(_local7 + _local9)].scaleX;
ball[(_local7 + _local9)].mass = _arg5;
ball[(_local7 + _local9)].x = _arg2;
ball[(_local7 + _local9)].y = _arg3;
ball[(_local7 + _local9)].__x = _arg2;
ball[(_local7 + _local9)].__y = _arg3;
ball[(_local7 + _local9)].en = true;
ball[(_local7 + _local9)].type = _arg6;
ball_hit[(_local7 + _local9)] = new Array();
ball_container.addChild(ball[(_local7 + _local9)]);
_local7++;
};
};
};
}
public function BallDel(_arg1:int){
ball_container.removeChild(ball[_arg1]);
ball.splice(_arg1, 1);
ball_hit.splice(_arg1, 1);
}
public function BallHitObjiect(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Boolean){
var _local10:Object = new Object();
_local10.vx = _arg2;
_local10.vy = _arg3;
_local10.m_x = _arg4;
_local10.m_y = _arg5;
_local10.xx = _arg6;
_local10.type = _arg7;
_local10.dd = _arg8;
_local10.wB = _arg9;
ball_hit[_arg1].push(_local10);
}
public function Ra(_arg1:Number){
return (((_arg1 * 180) / Math.PI));
}
public function FengJ(_arg1:Number, _arg2:Number, _arg3:Number):Object{
var _local4:Object = new Object();
var _local5:* = (_arg1 * Math.cos((_arg2 - _arg3)));
_local4.vc_fang = _local5;
_local4.dc_fang = _arg3;
_local4.dc = ZhunV(_local5, _arg3);
_local4.vc = Abs(_local5);
_local4.de = ZhunJ((_arg3 + ((LineVsJ(_arg2, _arg3) * pi) / 2)));
_local4.ve = Abs((_arg1 * Math.sin((_arg2 - _arg3))));
return (_local4);
}
public function LineVsJ(_arg1:Number, _arg2:Number):int{
var _local3:* = Math.sin((_arg1 - _arg2));
return (Pn(_local3));
}
public function aAdd(_arg1:int, _arg2:Number, _arg3:Number){
ball[_arg1].ax = Anx(_arg2, _arg3);
ball[_arg1].ay = Any(_arg2, _arg3);
}
public function ShowBallData(){
var _local1:int = ball.length;
var _local2:int;
_local2 = 0;
while (_local2 <= (_local1 - 1)) {
_local2++;
};
}
public function Peng(){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:int;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
var _local21:*;
var _local22:*;
var _local23:*;
var _local24:*;
var _local25:*;
var _local26:*;
var _local27:*;
var _local28:*;
var _local29:*;
var _local30:*;
var _local31:*;
var _local32:*;
var _local33:*;
var _local34:*;
var _local35:*;
var _local1:int;
var _local2:int;
var _local3:int = ball.length;
_local1 = 0;
while (_local1 <= (_local3 - 1)) {
ball[_local1].wB = 0;
Force(_local1);
_local4 = ball[_local1].vx;
_local5 = ball[_local1].vy;
_local6 = ball[_local1].mass;
_local7 = ball[_local1].wB;
_local8 = ball[_local1].type;
_local9 = ball_hit[_local1].length;
_local2 = 0;
while (_local2 <= (_local9 - 1)) {
_local10 = ball_hit[_local1][_local2].dd;
_local11 = ball_hit[_local1][_local2].vx;
_local12 = ball_hit[_local1][_local2].vy;
_local13 = ball_hit[_local1][_local2].m_x;
_local14 = ball_hit[_local1][_local2].m_y;
_local15 = ball_hit[_local1][_local2].xx;
_local16 = ball_hit[_local1][_local2].yy;
_local17 = ball_hit[_local1][_local2].wB;
_local18 = ball_hit[_local1][_local2].type;
_local19 = Long(_local4, _local5);
_local20 = Tan2(_local5, _local4);
_local21 = Long(_local11, _local12);
_local22 = Tan2(_local12, _local11);
_local23 = FengJ(_local19, _local20, _local10);
_local24 = FengJ(_local21, _local22, _local10);
_local25 = _local23.vc_fang;
_local26 = _local23.vc;
_local27 = _local23.dc;
_local28 = _local23.ve;
_local29 = _local23.de;
_local30 = _local24.vc_fang;
_local31 = _local24.dc;
if ((_local25 - _local30) <= 0){
if ((((_local8 == 2)) && ((_local18 == 1)))){
_sound.gotoAndPlay(int((2 + (Math.random() * 7))));
touch_num--;
ball[_local1].type = 1;
ball[_local1]._mc.gotoAndStop((ball[_local1].type + 1));
if (touch_num == 0){
if (level_num == 20){
_winlight.x = 250;
_winlight.y = 200;
_winlight.gotoAndPlay(2);
_winlight.visible = true;
_winlight.allwin = true;
} else {
_winlight.x = ball[_local1].__x;
_winlight.y = ball[_local1].__y;
_winlight.gotoAndPlay(2);
_winlight.visible = true;
_winlight.allwin = false;
if (level_now < (level_num + 1)){
level_now++;
};
};
};
};
_local32 = VPeng(_local25, _local30, (_local6 + (100000 * _local7)), (_local13 + (100000 * _local17)), _local8, _local18);
_local26 = Abs(_local32);
_local27 = ZhunV(_local32, _local10);
_local33 = Vi(_local26, _local27, _local28, _local29);
_local34 = _local33.v0;
_local35 = _local33.d0;
if (_local34 < (v_min / 4)){
_local34 = 0;
};
ball[_local1].vx = (_local34 * Math.cos(_local35));
ball[_local1].vy = (_local34 * Math.sin(_local35));
};
_local2++;
};
_local1++;
};
}
public function MDown(_arg1:MouseEvent){
if (_arg1.target.name == "_focus"){
if (_arg1.ctrlKey == true){
if ((((blue_num > 0)) && ((MovieClip(_arg1.target.parent).type == 0)))){
_sound.gotoAndPlay(10);
MovieClip(_arg1.target.parent).type = 3;
MovieClip(_arg1.target.parent)._mc.gotoAndStop((MovieClip(_arg1.target.parent).type + 1));
blue_num--;
_bar.BlueSet(blue_num);
};
} else {
if ((((click_num > 0)) && ((MovieClip(_arg1.target.parent).type == 0)))){
_sound.gotoAndPlay(9);
MovieClip(_arg1.target.parent).en = false;
click_num--;
_bar.ClickSet(click_num);
};
};
};
}
public function J_J(_arg1:Number, _arg2:Number){
var _local3:* = J_J2(_arg1, _arg2);
if (_local3 > pi){
return (((2 * pi) - _local3));
};
return (_local3);
}
public function Long(_arg1:Number, _arg2:Number){
return (Math.sqrt(((_arg1 * _arg1) + (_arg2 * _arg2))));
}
public function GameCtrl(_arg1:String){
_cover.visible = true;
if (_arg1 == "menu"){
LevelDate(0);
ball_container.visible = false;
_cover.LevelType(0);
TTimer.stop();
} else {
if (_arg1 == "start"){
_bar.level_txt._txt.text = String(level_num);
_winlight.gotoAndStop(1);
_winlight.visible = false;
_cover.visible = false;
LevelDate(level_num);
_bar.ClickSet(click_num);
_bar.BlueSet(blue_num);
ball_container.visible = true;
_bar.filters = new Array();
ball_container.filters = new Array();
bar_tween.start();
ball_tween.start();
TTimer.start();
} else {
if (_arg1 == "stop"){
_cover.LevelType(1);
cover_tween.start();
_bar.filters = new Array(mohu);
ball_container.filters = new Array(mohu);
TTimer.stop();
} else {
if (_arg1 == "continue"){
_cover.visible = false;
_bar.filters = new Array();
ball_container.filters = new Array();
TTimer.start();
} else {
if (_arg1 == "win"){
_cover.LevelType(2);
cover_tween.start();
_bar.filters = new Array(mohu);
ball_container.filters = new Array(mohu);
TTimer.stop();
} else {
if (_arg1 == "allwin"){
_cover.LevelType(3);
cover_tween.start();
_bar.filters = new Array(mohu);
ball_container.filters = new Array(mohu);
TTimer.stop();
} else {
if (_arg1 == "level"){
_cover.LevelChose(level_now);
} else {
if (_arg1 == "levelclose"){
_cover.level_board.visible = false;
} else {
if (_arg1 == "quit"){
_cover.LevelType(0);
_winlight.gotoAndStop(1);
_winlight.visible = false;
_cover.visible = true;
ball_container.visible = false;
_bar.filters = new Array();
ball_container.filters = new Array();
TTimer.stop();
};
};
};
};
};
};
};
};
};
}
public function BallAllDel(){
var _local1:int;
var _local2 = -1;
var _local3:int = ball.length;
_local1 = 0;
while (_local1 <= (_local3 - 1)) {
if (ball[_local1].en == false){
_local2 = _local1;
};
_local1++;
};
if (_local2 > -1){
BallDel(_local2);
};
}
public function Angle(_arg1:Number, _arg2:Number){
if ((((_arg1 - _arg2) + (pi * 2)) % (pi * 2)) > pi){
return ((_arg2 - (pi / 2)));
};
return ((_arg2 + (pi / 2)));
}
public function BallXClear(){
}
public function BallHitData(_arg1:String){
var _local6:int;
var _local7:int;
var _local2:int;
var _local3:int;
var _local4:int = ball.length;
var _local5:int = ball_hit.length;
if (_arg1 == "clearall"){
_local2 = 0;
while (_local2 <= (_local4 - 1)) {
ball_hit.pop();
_local2++;
};
} else {
if (_arg1 == "clear"){
_local2 = 0;
while (_local2 <= (_local4 - 1)) {
_local6 = ball_hit[_local2].length;
_local3 = 0;
while (_local3 <= (_local6 - 1)) {
ball_hit[_local2].pop();
_local3++;
};
_local2++;
};
} else {
if (_arg1 == "show"){
_local2 = 0;
while (_local2 <= (_local5 - 1)) {
_local7 = ball_hit[_local2].length;
_local3 = 0;
while (_local3 <= (_local7 - 1)) {
_local3++;
};
_local2++;
};
};
};
};
}
public function MOver(_arg1:MouseEvent){
if (_arg1.target.name == "_focus"){
if (MovieClip(_arg1.target.parent).type == 0){
MovieClip(_arg1.target.parent)._light.visible = true;
};
};
}
public function ZhunJ(_arg1:Number){
return (((((_arg1 + pi) + (1000 * pi)) % (2 * pi)) - pi));
}
public function Zero(){
var _local1:int;
var _local2:int = ball.length;
_local1 = 0;
while (_local1 <= (_local2 - 1)) {
ball[_local1].ax = 0;
ball[_local1].ay = 0;
_local1++;
};
}
public function Force(_arg1:int){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:Boolean;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:Boolean;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local2:int;
var _local3:int = ball_hit[_arg1].length;
ball[_arg1]._line.rotation = 90;
ball[_arg1]._line2.rotation = 90;
_local2 = 0;
while (_local2 <= (_local3 - 1)) {
ball[_arg1].__x = (ball[_arg1].__x + Anx((ball_hit[_arg1][_local2].xx / 2.5), ball_hit[_arg1][_local2].dd));
ball[_arg1].__y = (ball[_arg1].__y + Any((ball_hit[_arg1][_local2].xx / 2.5), ball_hit[_arg1][_local2].dd));
_local2++;
};
if (_local3 == 0){
ball[_arg1].ay = g;
ball[_arg1].wB = 0;
} else {
if (_local3 == 1){
_local4 = ball_hit[_arg1][0].dd;
if (J_J(_local4, dg) > (pi - 0.01)){
ball[_arg1].wB = 0;
} else {
ball[_arg1].wB = 0;
if (J_J(_local4, dg) <= (pi / 2)){
ball[_arg1].ay = g;
} else {
_local5 = FengJ(g, dg, _local4).de;
_local6 = FengJ(g, dg, _local4).ve;
ball[_arg1]._line.rotation = ((_local5 * 180) / pi);
ball[_arg1].ax = (ball[_arg1].ax + Anx(_local6, _local5));
ball[_arg1].ay = (ball[_arg1].ay + Any(_local6, _local5));
};
};
} else {
_local7 = false;
_local8 = 0;
_local9 = -1;
_local10 = -1;
_local14 = dg;
_local15 = dg;
_local16 = dg;
_local11 = false;
_local8 = 0;
while (_local8 <= (_local3 - 1)) {
_local17 = ball_hit[_arg1][_local8].dd;
if (J_J2(dg, _local17) < (pi - 0.01)){
if (J_J(dg, _local17) > J_J(_local15, dg)){
_local9 = _local8;
_local15 = ball_hit[_arg1][_local9].dd;
};
} else {
if (J_J(_local17, (-(pi) / 2)) <= 0.01){
_local11 = true;
} else {
if (J_J2(dg, _local17) > (pi + 0.01)){
if (J_J(_local17, dg) > J_J(_local16, dg)){
_local10 = _local8;
_local16 = ball_hit[_arg1][_local10].dd;
};
};
};
};
if (J_J(_local15, dg) > J_J(_local16, dg)){
_local14 = _local15;
} else {
_local14 = _local16;
};
_local8++;
};
if (_local11 == true){
if ((((J_J(_local15, dg) < 0.01)) && ((J_J(_local16, dg) < 0.01)))){
_local7 = true;
ball[_arg1].wB = 1;
} else {
_local7 = false;
ball[_arg1].wB = 0;
_local12 = FengJ(g, _local14, dg).de;
_local13 = FengJ(g, _local14, dg).ve;
};
} else {
if ((((J_J(_local15, dg) < 0.01)) || ((J_J(_local16, dg) < 0.01)))){
_local7 = false;
_local12 = FengJ(g, dg, _local14).de;
_local13 = (FengJ(g, dg, _local14).ve * 2);
} else {
if ((((J_J(_local15, dg) <= (pi / 2))) && ((J_J(_local16, dg) <= (pi / 2))))){
_local7 = false;
_local12 = dg;
_local13 = g;
} else {
if (J_J(_local15, _local16) >= pi){
_local7 = false;
_local12 = FengJ(g, dg, _local14).de;
_local13 = FengJ(g, dg, _local14).ve;
} else {
_local7 = true;
};
};
};
};
if (_local7 == true){
ball[_arg1].wB = 1;
} else {
ball[_arg1].wB = 0;
aAdd(_arg1, (_local13 * 5), _local12);
ball[_arg1]._line.rotation = ((_local12 * 180) / pi);
ball[_arg1]._line2.rotation = ((Tan2(ball[_arg1].vy, ball[_arg1].vx) * 180) / pi);
};
_local7 = false;
_local9 = -1;
_local10 = -1;
};
};
}
public function ZhunV(_arg1:Number, _arg2:Number){
if (_arg1 >= 0){
return (_arg2);
};
return (ZhunJ((_arg2 + pi)));
}
public function MOut(_arg1:MouseEvent){
if (_arg1.target.name == "_focus"){
MovieClip(_arg1.target.parent)._light.visible = false;
};
}
public function Tan2(_arg1:Number, _arg2:Number){
return (Math.atan2(_arg1, _arg2));
}
public function Anx(_arg1:Number, _arg2:Number){
return ((_arg1 * Math.cos(_arg2)));
}
public function Any(_arg1:Number, _arg2:Number){
return ((_arg1 * Math.sin(_arg2)));
}
public function ZhunJ2(_arg1:Number){
return (((_arg1 + (1000 * pi)) % (2 * pi)));
}
public function MUp(_arg1:MouseEvent){
var _local2:String = MovieClip(_arg1.target.parent).name;
if ((((_local2 == "start_btn")) || ((_local2 == "restart_btn")))){
GameCtrl("start");
} else {
if ((((((_local2 == "quit_btn")) || ((_local2 == "quit2_btn")))) || ((_local2 == "quit3_btn")))){
GameCtrl("quit");
} else {
if (_local2 == "menu_btn"){
GameCtrl("stop");
} else {
if (_local2 == "continue_btn"){
GameCtrl("continue");
} else {
if (_local2 == "restart_btn"){
GameCtrl("start");
} else {
if (_local2 == "next_btn"){
level_num++;
GameCtrl("start");
} else {
if ((((((((_local2 == "level_btn")) || ((_local2 == "level1_btn")))) || ((_local2 == "level2_btn")))) || ((_local2 == "level3_btn")))){
GameCtrl("level");
} else {
if (_local2 == "close_board"){
GameCtrl("levelclose");
} else {
if ((((_local2 == "wt_btn")) || ((_local2 == "wt2_btn")))){
navigateToURL(new URLRequest("http://www.gameslist.com/walkthrough/Light-Up-cheats"), "_blank");
} else {
if ((((_local2 == "mg_btn")) || ((_local2 == "mg2_btn")))){
navigateToURL(new URLRequest("http://www.gameslist.com"), "_blank");
} else {
if (_local2 == "fg_btn"){
navigateToURL(new URLRequest("http://www.gameslist.com/freegames"), "_blank");
} else {
if (_local2 == "sound_btn"){
if (sound_B == true){
sound_B = false;
MovieClip(_arg1.target.parent)._mc.gotoAndStop(10);
_music.gotoAndStop("stop");
} else {
sound_B = true;
MovieClip(_arg1.target.parent)._mc.gotoAndStop(2);
_music.gotoAndStop("play");
};
};
};
};
};
};
};
};
};
};
};
};
};
if (_arg1.target.name == "_ajnum"){
if (_arg1.target.parent.parent.alpha == 1){
level_num = int(MovieClip(_arg1.target.parent)._txt.text);
GameCtrl("start");
_cover.level_board.visible = false;
};
};
}
public function CtrlDate(_arg1:int, _arg2:int, _arg3:int){
click_num = _arg1;
blue_num = _arg2;
touch_num = _arg3;
}
public function Vi(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Object{
var _local5:Object = new Object();
var _local6:* = (Anx(_arg1, _arg2) + Anx(_arg3, _arg4));
var _local7:* = (Any(_arg1, _arg2) + Any(_arg3, _arg4));
_local5.vx = _local6;
_local5.vy = _local7;
_local5.d0 = Tan2(_local7, _local6);
_local5.v0 = Long(_local6, _local7);
return (_local5);
}
public function VPeng(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int, _arg6:int){
var _local8:*;
var _local7:* = k_v;
if ((((_arg5 == 1)) && ((_arg6 == 3)))){
_local8 = (-(Pn(_arg1)) * 150);
_sound.gotoAndPlay(11);
} else {
_local8 = (((((_arg3 - _arg4) * _arg1) + ((2 * _arg4) * _arg2)) / (_arg3 + _arg4)) / _local7);
};
if (_local8 < v_min){
return (0);
};
return (_local8);
}
function frame62(){
stop();
}
function frame61(){
MochiBot.track(this, "6300e2c4");
mohu = new BlurFilter(5, 5, 2);
mohu0 = new BlurFilter(0, 0, 0);
tween_X = Strong.easeOut;
bar_tween = new Tween(_bar, "y", tween_X, -200, 25, 1, true);
bar_tween.stop();
ball_tween = new Tween(ball_container, "y", tween_X, 500, 0, 1, true);
ball_tween.stop();
cover_tween = new Tween(_cover, "alpha", None.easeNone, 0, 1, 0.7, true);
cover_tween.stop();
_cover.alpha = 1;
sound_B = true;
level_num = 1;
level_now = 1;
game_state = "menu";
click_num = 0;
blue_num = 0;
touch_num = 0;
ball_x = new Array();
t = 0.02;
g = 100;
dg = (Math.PI / 2);
pi = Math.PI;
back_y = _back.y;
left_x = _left.x;
right_x = _right.x;
v_min = 5;
k_v = 4;
ball = new Array();
ball_hit = new Array();
ntime = 0;
TTimer = new Timer((t * 1000), 0);
TTimer.addEventListener(TimerEvent.TIMER, TTEvent);
GameCtrl("menu");
stage.addEventListener(MouseEvent.MOUSE_OUT, MOut);
stage.addEventListener(MouseEvent.MOUSE_OVER, MOver);
stage.addEventListener(MouseEvent.MOUSE_DOWN, MDown);
stage.addEventListener(MouseEvent.MOUSE_UP, MUp);
}
public function Move(){
var _local1:int;
var _local2:int = ball.length;
_local1 = 0;
while (_local1 <= (_local2 - 1)) {
ball[_local1].vx = (ball[_local1].vx + (ball[_local1].ax * t));
ball[_local1].vy = (ball[_local1].vy + (ball[_local1].ay * t));
ball[_local1].__x = (ball[_local1].__x + (ball[_local1].vx * t));
ball[_local1].__y = (ball[_local1].__y + (ball[_local1].vy * t));
ball[_local1].x = ball[_local1].__x;
ball[_local1].y = ball[_local1].__y;
ball[_local1]._txt.text = ball[_local1].__x;
ball[_local1]._txt2.text = ball[_local1].__y;
_local1++;
};
}
public function TTEvent(_arg1:TimerEvent){
if (ntime >= 1){
ntime = 1;
} else {
ntime = 1;
};
BallAllDel();
PengData();
Peng();
Move();
Zero();
BallHitData("clear");
}
public function Ran(_arg1:Number, _arg2:Number){
return ((_arg1 + (_arg2 * Math.random())));
}
}
}//package Light_fla
Section 20
//menu_52 (Light_fla.menu_52)
package Light_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class menu_52 extends MovieClip {
public var continue_btn:MovieClip;
public var _back:MovieClip;
public var level1_btn:MovieClip;
public var level2_btn:MovieClip;
public var level3_btn:MovieClip;
public var next_btn:MovieClip;
public var wt2_btn:MovieClip;
public var _title:MovieClip;
public var tween_X:Function;
public var fg_btn:MovieClip;
public var quit2_btn:MovieClip;
public var quit3_btn:MovieClip;
public var board_tween:Tween;
public var level_btn:MovieClip;
public var level_board:MovieClip;
public var quit_btn:MovieClip;
public var mg2_btn:MovieClip;
public var mg_btn:MovieClip;
public var wt_btn:MovieClip;
public var start_btn:MovieClip;
public function menu_52(){
addFrameScript(0, frame1);
}
public function LevelType(_arg1:int){
start_btn.visible = false;
mg_btn.visible = false;
mg2_btn.visible = false;
fg_btn.visible = false;
continue_btn.visible = false;
level_btn.visible = false;
level1_btn.visible = false;
quit_btn.visible = false;
quit2_btn.visible = false;
quit3_btn.visible = false;
next_btn.visible = false;
level2_btn.visible = false;
level3_btn.visible = false;
wt_btn.visible = false;
wt2_btn.visible = false;
if (_arg1 == 0){
_back.gotoAndStop(1);
_title.visible = true;
level_btn.visible = true;
start_btn.visible = true;
mg_btn.visible = true;
fg_btn.visible = true;
wt2_btn.visible = true;
} else {
if (_arg1 == 1){
_back.gotoAndStop(2);
_title.visible = false;
continue_btn.visible = true;
level1_btn.visible = true;
quit_btn.visible = true;
wt_btn.visible = true;
mg2_btn.visible = true;
} else {
if (_arg1 == 2){
_back.gotoAndStop(2);
_title.visible = false;
next_btn.visible = true;
quit2_btn.visible = true;
level2_btn.visible = true;
wt_btn.visible = true;
mg2_btn.visible = true;
} else {
if (_arg1 == 3){
_back.gotoAndStop(3);
_title.visible = false;
quit3_btn.visible = true;
level3_btn.visible = true;
mg_btn.visible = true;
fg_btn.visible = true;
wt2_btn.visible = true;
};
};
};
};
}
function frame1(){
tween_X = Strong.easeOut;
board_tween = new Tween(level_board, "alpha", None.easeNone, 0, 1, 0.4, true);
board_tween.stop();
level_board.visible = false;
start_btn._mc.gotoAndStop(3);
mg_btn._mc.gotoAndStop(12);
mg2_btn._mc.gotoAndStop(12);
fg_btn._mc.gotoAndStop(13);
continue_btn._mc.gotoAndStop(6);
level_btn._mc.gotoAndStop(4);
level1_btn._mc.gotoAndStop(4);
level2_btn._mc.gotoAndStop(4);
level3_btn._mc.gotoAndStop(4);
quit_btn._mc.gotoAndStop(5);
quit2_btn._mc.gotoAndStop(5);
quit3_btn._mc.gotoAndStop(5);
next_btn._mc.gotoAndStop(8);
wt_btn._mc.gotoAndStop(14);
wt2_btn._mc.gotoAndStop(14);
}
public function LevelChose(_arg1:int){
level_board.LevelNow(_arg1);
level_board.visible = true;
board_tween.start();
}
public function LevelClose(){
level_board.visible = false;
}
}
}//package Light_fla
Section 21
//menu_back_53 (Light_fla.menu_back_53)
package Light_fla {
import flash.display.*;
public dynamic class menu_back_53 extends MovieClip {
public var _back:MovieClip;
public function menu_back_53(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 22
//menu_bar_light0_48 (Light_fla.menu_bar_light0_48)
package Light_fla {
import flash.display.*;
public dynamic class menu_bar_light0_48 extends MovieClip {
public function menu_bar_light0_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 23
//menu_bar_light3_50 (Light_fla.menu_bar_light3_50)
package Light_fla {
import flash.display.*;
public dynamic class menu_bar_light3_50 extends MovieClip {
public function menu_bar_light3_50(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 24
//particular_30 (Light_fla.particular_30)
package Light_fla {
import flash.display.*;
public dynamic class particular_30 extends MovieClip {
public function particular_30(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package Light_fla
Section 25
//Timeline_15 (Light_fla.Timeline_15)
package Light_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Timeline_15 extends MovieClip {
public var a:SimpleButton;
public function Timeline_15(){
addFrameScript(0, frame1);
}
public function IndexUrlOK(_arg1){
var _local2 = "http://www.gameslist.com";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3, "_blank");
}
function frame1(){
a.addEventListener(MouseEvent.CLICK, IndexUrlOK);
}
}
}//package Light_fla
Section 26
//Timeline_45 (Light_fla.Timeline_45)
package Light_fla {
import flash.display.*;
public dynamic class Timeline_45 extends MovieClip {
public function Timeline_45(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 27
//Timeline_68 (Light_fla.Timeline_68)
package Light_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_68 extends MovieClip {
public var _txt:TextField;
public var _ajnum:MovieClip;
public function Timeline_68(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Light_fla
Section 28
//win_lght_39 (Light_fla.win_lght_39)
package Light_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class win_lght_39 extends MovieClip {
public var allwin:Boolean;
public function win_lght_39(){
addFrameScript(0, frame1, 1, frame2, 25, frame26);
}
function frame26(){
stop();
if (allwin == true){
MovieClip(this.parent).GameCtrl("allwin");
MovieClip(this.parent)._bar.menu_btn.enabled = true;
} else {
MovieClip(this.parent).GameCtrl("win");
MovieClip(this.parent)._bar.menu_btn.enabled = true;
};
}
function frame1(){
stop();
allwin = false;
MovieClip(this.parent)._bar.menu_btn.enabled = true;
}
function frame2(){
MovieClip(this.parent)._bar.menu_btn.enabled = false;
}
}
}//package Light_fla
Section 29
//AJ_num (AJ_num)
package {
import flash.events.*;
import flash.display.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class AJ_num extends MovieClip {
public var tween_time:Number;
public var tween_X:Function;
public var scaleXY:Number;
public var _mc:MovieClip;
public var mc_x_tween:Tween;
public var mc_y_tween:Tween;
public function AJ_num(){
addFrameScript(0, frame1);
}
public function MDown(_arg1:MouseEvent){
mc_x_tween.rewind();
mc_y_tween.rewind();
}
public function MOver(_arg1:MouseEvent){
mc_x_tween.continueTo(scaleXY, tween_time);
mc_y_tween.continueTo(scaleXY, tween_time);
}
function frame1(){
scaleXY = 1.3;
tween_time = 0.5;
tween_X = Strong.easeOut;
mc_x_tween = new Tween(_mc, "scaleX", tween_X, 1, scaleXY, tween_time, true);
mc_x_tween.stop();
mc_y_tween = new Tween(_mc, "scaleY", tween_X, 1, scaleXY, tween_time, true);
mc_y_tween.stop();
_mc._ajnum.addEventListener(MouseEvent.MOUSE_OVER, MOver);
_mc._ajnum.addEventListener(MouseEvent.MOUSE_OUT, MOut);
_mc._ajnum.addEventListener(MouseEvent.MOUSE_DOWN, MDown);
_mc._ajnum.addEventListener(MouseEvent.MOUSE_UP, MUp);
}
public function MUp(_arg1:MouseEvent){
mc_x_tween.fforward();
mc_y_tween.fforward();
}
public function MOut(_arg1:MouseEvent){
mc_x_tween.continueTo(1, tween_time);
mc_y_tween.continueTo(1, tween_time);
}
}
}//package
Section 30
//Ball_mc (Ball_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Ball_mc extends MovieClip {
public var rr:Number;
public var vy:Number;
public var num:int;
public var vx:Number;
public var _line2:MovieClip;
public var _line:MovieClip;
public var _light:MovieClip;
public var __x:Number;
public var __y:Number;
public var _focus:MovieClip;
public var _txt2:TextField;
public var en:Boolean;
public var wB:int;
public var _txt:TextField;
public var mass:Number;
public var _mc:MovieClip;
public var ax:Number;
public var ay:Number;
public var type:int;
public function Ball_mc(){
addFrameScript(0, frame1);
}
function frame1(){
__x = this.x;
__y = this.y;
wB = 0;
en = true;
_mc.gotoAndStop((type + 1));
_txt.visible = false;
_txt2.visible = false;
_line.visible = false;
_line2.visible = false;
_light.visible = false;
}
}
}//package
Section 31
//BallX_mc (BallX_mc)
package {
import flash.display.*;
public dynamic class BallX_mc extends MovieClip {
public var _mc:MovieClip;
public var en:Boolean;
public function BallX_mc(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
en = false;
}
function frame1(){
en = true;
}
}
}//package
Section 32
//Light_mc (Light_mc)
package {
import flash.display.*;
public dynamic class Light_mc extends MovieClip {
public var _mc:MovieClip;
}
}//package
Section 33
//Light_mcc (Light_mcc)
package {
import flash.display.*;
public dynamic class Light_mcc extends MovieClip {
public var _mc:MovieClip;
}
}//package
Section 34
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 35
//Tball (Tball)
package {
import flash.display.*;
public dynamic class Tball extends MovieClip {
public var bvx:Number;
public var bvy:Number;
public var bag:Number;
public var mass:Number;
public var bax:Number;
public var bay:Number;
public function Tball(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package