Section 1
//manuverLevel_64 (Airshow_fla.manuverLevel_64)
package Airshow_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class manuverLevel_64 extends MovieClip {
public var planeStore:MovieClip;
public function manuverLevel_64(){
addFrameScript(0, frame1, 34, frame35, 109, frame110, 195, frame196, 299, frame300);
}
function frame1(){
stop();
}
function frame110(){
planeStore.f16.gotoAndPlay("normal2");
}
function frame196(){
planeStore.f16.gotoAndPlay("fighter270");
}
function frame35(){
planeStore.f16.gotoAndPlay("fighter180");
}
function frame300(){
stop();
}
}
}//package Airshow_fla
Section 2
//manuverLevel_67 (Airshow_fla.manuverLevel_67)
package Airshow_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class manuverLevel_67 extends MovieClip {
public var planeStore:MovieClip;
public var planeStore2:MovieClip;
public function manuverLevel_67(){
addFrameScript(0, frame1, 79, frame80, 269, frame270);
}
function frame270(){
stop();
}
function frame80(){
planeStore2.redShip.gotoAndPlay("merah270");
}
function frame1(){
stop();
}
}
}//package Airshow_fla
Section 3
//manuverLevel_71 (Airshow_fla.manuverLevel_71)
package Airshow_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class manuverLevel_71 extends MovieClip {
public var planeStore:MovieClip;
public function manuverLevel_71(){
addFrameScript(0, frame1, 100, frame101, 140, frame141, 199, frame200);
}
function frame200(){
stop();
}
function frame1(){
stop();
}
function frame101(){
planeStore.f16.gotoAndPlay("fighter270");
}
function frame141(){
planeStore.f16.gotoAndPlay("normal1");
}
}
}//package Airshow_fla
Section 4
//manuverLevel_73 (Airshow_fla.manuverLevel_73)
package Airshow_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class manuverLevel_73 extends MovieClip {
public var planeStore:MovieClip;
public function manuverLevel_73(){
addFrameScript(0, frame1, 19, frame20, 29, frame30, 44, frame45, 149, frame150, 194, frame195, 249, frame250);
}
function frame1(){
stop();
}
function frame20(){
planeStore.fa.gotoAndPlay("fighter180");
}
function frame195(){
planeStore.fa.gotoAndPlay("normal1");
planeStore.fb.gotoAndPlay("normal1");
}
function frame30(){
planeStore.fb.gotoAndPlay("fighter180");
}
function frame45(){
planeStore.fa.gotoAndPlay("normal2");
planeStore.fb.gotoAndPlay("normal2");
}
function frame250(){
stop();
}
function frame150(){
planeStore.fa.gotoAndPlay("fighter270");
planeStore.fb.gotoAndPlay("fighter270");
}
}
}//package Airshow_fla
Section 5
//manuverLevel_75 (Airshow_fla.manuverLevel_75)
package Airshow_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class manuverLevel_75 extends MovieClip {
public var planeStore:MovieClip;
public function manuverLevel_75(){
addFrameScript(0, frame1, 59, frame60, 122, frame123, 180, frame181, 260, frame261, 334, frame335, 414, frame415);
}
function frame335(){
planeStore.migA.gotoAndPlay("mig180");
planeStore.migB.gotoAndPlay("mig180");
}
function frame181(){
planeStore.migA.gotoAndPlay("normal2");
planeStore.migB.gotoAndPlay("normal2");
}
function frame1(){
stop();
}
function frame123(){
planeStore.migA.gotoAndPlay("mig180");
planeStore.migB.gotoAndPlay("mig180");
}
function frame415(){
stop();
}
function frame261(){
planeStore.migA.gotoAndPlay("mig270");
planeStore.migB.gotoAndPlay("mig270");
}
function frame60(){
planeStore.migA.gotoAndPlay("mig90");
planeStore.migB.gotoAndPlay("mig270");
}
}
}//package Airshow_fla
Section 6
//mcF16_66 (Airshow_fla.mcF16_66)
package Airshow_fla {
import flash.display.*;
public dynamic class mcF16_66 extends MovieClip {
public function mcF16_66(){
addFrameScript(0, frame1, 9, frame10, 11, frame12, 20, frame21, 22, frame23, 36, frame37, 38, frame39, 52, frame53, 54, frame55, 64, frame65, 66, frame67, 75, frame76);
}
function frame65(){
stop();
}
function frame76(){
stop();
}
function frame10(){
stop();
}
function frame12(){
stop();
}
function frame1(){
stop();
}
function frame23(){
stop();
}
function frame21(){
stop();
}
function frame37(){
stop();
}
function frame39(){
stop();
}
function frame55(){
stop();
}
function frame53(){
stop();
}
function frame67(){
stop();
}
}
}//package Airshow_fla
Section 7
//mcFullspades_82 (Airshow_fla.mcFullspades_82)
package Airshow_fla {
import flash.display.*;
public dynamic class mcFullspades_82 extends MovieClip {
public function mcFullspades_82(){
addFrameScript(252, frame253);
}
function frame253(){
stop();
}
}
}//package Airshow_fla
Section 8
//newLevel_61 (Airshow_fla.newLevel_61)
package Airshow_fla {
import flash.display.*;
public dynamic class newLevel_61 extends MovieClip {
public var planeStore:MovieClip;
public function newLevel_61(){
addFrameScript(0, frame1, 189, frame190);
}
function frame1(){
stop();
}
function frame190(){
stop();
}
}
}//package Airshow_fla
Section 9
//planeStore_74 (Airshow_fla.planeStore_74)
package Airshow_fla {
import flash.display.*;
public dynamic class planeStore_74 extends MovieClip {
public var planeArea:CPlaneArea;
public var fa:MovieClip;
public var fb:MovieClip;
}
}//package Airshow_fla
Section 10
//planeStore10_72 (Airshow_fla.planeStore10_72)
package Airshow_fla {
import flash.display.*;
public dynamic class planeStore10_72 extends MovieClip {
public var planeArea:CPlaneArea;
public var f16:MovieClip;
}
}//package Airshow_fla
Section 11
//planeStore12_70 (Airshow_fla.planeStore12_70)
package Airshow_fla {
import flash.display.*;
public dynamic class planeStore12_70 extends MovieClip {
public var planeArea:CPlaneArea;
}
}//package Airshow_fla
Section 12
//planeStore6_62 (Airshow_fla.planeStore6_62)
package Airshow_fla {
import flash.display.*;
public dynamic class planeStore6_62 extends MovieClip {
public var planeArea:CPlaneArea;
public var migB:MovieClip;
public var migA:MovieClip;
}
}//package Airshow_fla
Section 13
//planeStore7_68 (Airshow_fla.planeStore7_68)
package Airshow_fla {
import flash.display.*;
public dynamic class planeStore7_68 extends MovieClip {
public var planeArea:CPlaneArea;
public var redShip:MovieClip;
}
}//package Airshow_fla
Section 14
//planeStore8_65 (Airshow_fla.planeStore8_65)
package Airshow_fla {
import flash.display.*;
public dynamic class planeStore8_65 extends MovieClip {
public var planeArea:CPlaneArea;
public var f16:MovieClip;
}
}//package Airshow_fla
Section 15
//progressbar_2 (Airshow_fla.progressbar_2)
package Airshow_fla {
import flash.display.*;
public dynamic class progressbar_2 extends MovieClip {
public function progressbar_2(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package Airshow_fla
Section 16
//redShip_69 (Airshow_fla.redShip_69)
package Airshow_fla {
import flash.display.*;
public dynamic class redShip_69 extends MovieClip {
public function redShip_69(){
addFrameScript(0, frame1, 12, frame13, 14, frame15, 26, frame27, 28, frame29, 40, frame41, 42, frame43, 54, frame55, 56, frame57, 63, frame64, 65, frame66, 72, frame73);
}
function frame73(){
stop();
}
function frame64(){
stop();
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame29(){
stop();
}
function frame27(){
stop();
}
function frame43(){
stop();
}
function frame41(){
stop();
}
function frame55(){
stop();
}
function frame57(){
stop();
}
function frame66(){
stop();
}
}
}//package Airshow_fla
Section 17
//ship3_63 (Airshow_fla.ship3_63)
package Airshow_fla {
import flash.display.*;
public dynamic class ship3_63 extends MovieClip {
public function ship3_63(){
addFrameScript(0, frame1, 7, frame8, 9, frame10, 16, frame17, 18, frame19, 32, frame33, 34, frame35, 48, frame49, 50, frame51, 56, frame57, 58, frame59, 65, frame66);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame19(){
stop();
}
function frame17(){
stop();
}
function frame8(){
stop();
}
function frame35(){
stop();
}
function frame33(){
stop();
}
function frame49(){
stop();
}
function frame51(){
stop();
}
function frame57(){
stop();
}
function frame59(){
stop();
}
function frame66(){
stop();
}
}
}//package Airshow_fla
Section 18
//subline_83 (Airshow_fla.subline_83)
package Airshow_fla {
import flash.display.*;
public dynamic class subline_83 extends MovieClip {
public function subline_83(){
addFrameScript(45, frame46);
}
function frame46(){
stop();
}
}
}//package Airshow_fla
Section 19
//CBackgroundSky (ascendPoints.airShow.sources.gameClass.CBackgroundSky)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
public class CBackgroundSky extends MovieClip {
public function CBackgroundSky():void{
}
public function initChild(_arg1:MovieClip){
_arg1.addChild(this);
gotoAndStop(Math.ceil((Math.random() * 3)));
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 20
//CGame (ascendPoints.airShow.sources.gameClass.CGame)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.geom.*;
public class CGame extends MovieClip {
public var isFailed:Boolean;// = false
public var cheatUpLevel:Boolean;// = false
public var finishManuver:Boolean;// = false
public var maxLevel:int;// = 15
public var startManuver:Boolean;// = false
public var totalRing:int;
public var restartLevel:Boolean;// = false
public var timeLevel:int;
public function CGame(){
startManuver = false;
finishManuver = false;
maxLevel = 15;
isFailed = false;
restartLevel = false;
cheatUpLevel = false;
super();
}
public function scorringInFormation(_arg1:MovieClip){
var _local2:*;
var _local3:Point;
var _local4:Point;
_local3 = new Point(_arg1.mainShip.x, _arg1.mainShip.y);
_local4 = _arg1.shipLayer.localToGlobal(_local3);
if (_arg1.path1.test.planeStore.planeArea.hitTestPoint(_local4.x, _local4.y, true)){
CGameSession.getInstance().score = (CGameSession.getInstance().score + 1);
_arg1.allStatus.curScore.text = String(CGameSession.getInstance().score);
};
}
public function tabrakanKeurFormasi(_arg1:MovieClip){
var _local2:*;
var _local3:Point;
var _local4:Point;
var _local5:int;
var _local6:MovieClip;
_local3 = new Point(_arg1.mainShip.x, _arg1.mainShip.y);
_local4 = _arg1.shipLayer.localToGlobal(_local3);
_local5 = 0;
while (_local5 < _arg1.path1.test.planeStore.numChildren) {
_local2 = _arg1.path1.test.planeStore.getChildAt(_local5);
if (((!((_local2 is CPlaneArea))) && (_local2.hitTestPoint(_local4.x, _local4.y, true)))){
CSound.getInstance().playSound(CSound.explode);
startManuver = false;
isFailed = true;
_local6 = new CExplode();
_local6.x = _local4.x;
_local6.y = _local4.y;
_arg1.addChild(_local6);
_arg1.shipLayer.removeChild(_arg1.mainShip);
_arg1.mainShip = null;
_arg1.path1.test.planeStore.removeChild(_local2);
_arg1.path1.test.stop();
_arg1.addConfirmation("CRASSHED.\nPRESS SPACE TO RESTART");
if (_arg1.shipFrame == 1){
CSound.getInstance().stopSound("plane1");
};
if (_arg1.shipFrame == 2){
CSound.getInstance().stopSound("plane2");
};
if (_arg1.shipFrame == 0){
CSound.getInstance().stopSound("plane3");
};
CGameSession.getInstance().changeManuver = (CGameSession.getInstance().changeManuver - 1);
_arg1.clearTimerEvent();
_arg1.removeEventListener(Event.ENTER_FRAME, _arg1.loop);
};
_local5++;
};
}
public function ceckPointScorring(_arg1:MovieClip){
if (startManuver){
_arg1.checkPointScore();
_arg1.allStatus.curScore.text = String(CGameSession.getInstance().score);
};
}
public function startTheManuver(_arg1:MovieClip){
var _local2:Point;
var _local3:Point;
_local2 = new Point(_arg1.mainShip.x, _arg1.mainShip.y);
_local3 = _arg1.shipLayer.localToGlobal(_local2);
if (_arg1.path1.startManuver.hitTestPoint(_local3.x, _local3.y, false)){
startManuver = true;
if (_arg1.path1.test){
_arg1.path1.test.play();
};
_arg1.initTimeToStart();
_arg1.path1.removeChild(_arg1.path1.startManuver);
_arg1.startTimeCheckPoint();
};
}
public function finishTheManuver(_arg1:MovieClip){
var _local2:MovieClip;
var _local3:Point;
var _local4:Point;
if (((((((startManuver) && (_arg1.path1.finishManuver.hitTestObject(_arg1.mainShip)))) && ((totalRing == 0)))) || (((startManuver) && (cheatUpLevel))))){
CGameSession.getInstance().score = (CGameSession.getInstance().score + _arg1.count);
if (!cheatUpLevel){
_arg1.timer.removeEventListener(TimerEvent.TIMER, _arg1.countdown);
};
startManuver = false;
_arg1.screen.gotoAndPlay("tutup");
_arg1.removeEventListener(Event.ENTER_FRAME, _arg1.loop);
_arg1.setScreenLevel();
_arg1.initTimeAnimation();
finishManuver = true;
if (_arg1.shipFrame == 1){
CSound.getInstance().stopSound("plane1");
};
if (_arg1.shipFrame == 2){
CSound.getInstance().stopSound("plane2");
};
if (_arg1.shipFrame == 0){
CSound.getInstance().stopSound("plane3");
};
return;
} else {
if (((((startManuver) && (_arg1.path1.finishManuver.hitTestObject(_arg1.mainShip)))) && ((totalRing > 0)))){
CSound.getInstance().playSound(CSound.explode);
startManuver = false;
isFailed = true;
_arg1.clearTimerEvent();
_arg1.path1.removeChild(_arg1.path1.finishManuver);
_local2 = new CExplode();
_local3 = new Point(_arg1.path1.finishManuver.x, _arg1.path1.finishManuver.y);
_local4 = _arg1.path1.localToGlobal(_local3);
_local2.x = _local4.x;
_local2.y = _local4.y;
_arg1.addChild(_local2);
if (_arg1.mainShip){
_arg1.shipLayer.removeChild(_arg1.mainShip);
};
_arg1.mainShip = null;
if (_arg1.path1.test){
_arg1.path1.test.stop();
};
_arg1.addConfirmation("Failed Checkpoint!!.\nPRESS SPACE TO RESTART");
CGameSession.getInstance().changeManuver = (CGameSession.getInstance().changeManuver - 1);
if (_arg1.shipFrame == 1){
CSound.getInstance().stopSound("plane1");
};
if (_arg1.shipFrame == 2){
CSound.getInstance().stopSound("plane2");
};
if (_arg1.shipFrame == 0){
CSound.getInstance().stopSound("plane3");
};
_arg1.removeEventListener(Event.ENTER_FRAME, _arg1.loop);
return;
};
};
}
public function nepiBatasHandap(_arg1:MovieClip){
var _local2:Point;
var _local3:Point;
var _local4:MovieClip;
_local2 = new Point(_arg1.mainShip.x, _arg1.mainShip.y);
_local3 = _arg1.shipLayer.localToGlobal(_local2);
if (_arg1.groundLayer1.groundBoundary.hitTestPoint(_local3.x, _local3.y, false)){
CSound.getInstance().playSound(CSound.explode);
startManuver = false;
isFailed = true;
_local4 = new CExplode();
_local4.x = _local3.x;
_local4.y = _local3.y;
_arg1.addChild(_local4);
_arg1.shipLayer.removeChild(_arg1.mainShip);
_arg1.mainShip = null;
_arg1.addConfirmation("CRASSHED.\nPRESS SPACE TO RESTART");
CGameSession.getInstance().changeManuver = (CGameSession.getInstance().changeManuver - 1);
_arg1.clearTimerEvent();
if (_arg1.shipFrame == 1){
CSound.getInstance().stopSound("plane1");
};
if (_arg1.shipFrame == 2){
CSound.getInstance().stopSound("plane2");
};
if (_arg1.shipFrame == 0){
CSound.getInstance().stopSound("plane3");
};
_arg1.removeEventListener(Event.ENTER_FRAME, _arg1.loop);
};
}
public function failedTheManuver(_arg1:MovieClip){
if (((startManuver) && ((((_arg1.mainShip.status == "out")) || ((_arg1.count == 0)))))){
if (CGameSession.getInstance().changeManuver >= 1){
_arg1.timer.removeEventListener(TimerEvent.TIMER, _arg1.countdown);
startManuver = false;
isFailed = true;
_arg1.failedConfirmation = new CFailed();
if (_arg1.mainShip.status == "out"){
_arg1.addConfirmation("OUT OF PATH.\nPRESS SPACE TO RESTART");
} else {
if (_arg1.count == 0){
_arg1.addConfirmation("TIME IS OVER.\nPRESS SPACE TO RESTART");
};
};
CGameSession.getInstance().changeManuver = (CGameSession.getInstance().changeManuver - 1);
_arg1.clearTimerEvent();
if (_arg1.shipFrame == 1){
CSound.getInstance().stopSound("plane1");
};
if (_arg1.shipFrame == 2){
CSound.getInstance().stopSound("plane2");
};
if (_arg1.shipFrame == 0){
CSound.getInstance().stopSound("plane3");
};
_arg1.removeEventListener(Event.ENTER_FRAME, _arg1.loop);
};
};
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 21
//CGroundLayer1 (ascendPoints.airShow.sources.gameClass.CGroundLayer1)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
public class CGroundLayer1 extends MovieClip {
public var frame:int;
public var groundBoundary:MovieClip;
public function CGroundLayer1():void{
}
public function initChild(_arg1:MovieClip){
if ((CGameSession.getInstance().level % 3) == 1){
this.y = -930;
frame = 1;
};
if ((CGameSession.getInstance().level % 3) == 2){
this.y = 426.15;
frame = 2;
};
if ((CGameSession.getInstance().level % 3) == 0){
this.y = 1231.55;
frame = 3;
};
this.gotoAndStop(frame);
_arg1.addChild(this);
}
public function moveMeY(_arg1:MovieClip, _arg2:Number){
this.y = (this.y - (_arg1.dy * _arg2));
}
public function moveMeX(_arg1:MovieClip, _arg2:Number){
this.x = (this.x - (_arg1.dx * _arg2));
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 22
//CGroundLayer2 (ascendPoints.airShow.sources.gameClass.CGroundLayer2)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
public class CGroundLayer2 extends MovieClip {
public var frame:int;
public function CGroundLayer2():void{
}
public function initChild(_arg1:MovieClip){
if ((CGameSession.getInstance().level % 3) == 1){
this.y = -930;
frame = 1;
};
if ((CGameSession.getInstance().level % 3) == 2){
this.y = 426.15;
frame = 2;
};
if ((CGameSession.getInstance().level % 3) == 0){
this.y = 1231.55;
frame = 3;
};
this.gotoAndStop(frame);
_arg1.addChild(this);
}
public function moveMeY(_arg1:MovieClip, _arg2:Number){
this.y = (this.y - (_arg1.dy * _arg2));
}
public function moveMeX(_arg1:MovieClip, _arg2:Number){
this.x = (this.x - (_arg1.dx * _arg2));
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 23
//CLeveling (ascendPoints.airShow.sources.gameClass.CLeveling)
package ascendPoints.airShow.sources.gameClass {
public class CLeveling {
private var time_28:int;// = 1000
private var time_29:int;// = 1000
private var time_30:int;// = 1000
private var level_1:int;// = 30
private var level_2:int;// = 15
private var level_3:int;// = 20
private var level_4:int;// = 11
private var level_5:int;// = 12
private var level_6:int;// = 13
private var level_7:int;// = 15
private var level_8:int;// = 15
private var level_9:int;// = 15
private var time_1:int;// = 1000
private var time_2:int;// = 1500
private var time_3:int;// = 1500
private var time_4:int;// = 1500
private var time_5:int;// = 1500
private var time_6:int;// = 1500
private var time_7:int;// = 1500
private var time_8:int;// = 1500
private var time_9:int;// = 1500
private var level_10:int;// = 20
private var level_11:int;// = 20
private var level_12:int;// = 20
private var level_13:int;// = 20
private var level_14:int;// = 20
private var level_15:int;// = 20
private var level_16:int;// = 15
private var level_17:int;// = 15
private var level_18:int;// = 15
private var level_19:int;// = 15
private var time_10:int;// = 1000
private var time_12:int;// = 1000
private var time_13:int;// = 1000
private var time_14:int;// = 1000
private var time_15:int;// = 1000
private var time_16:int;// = 1000
private var time_17:int;// = 1000
private var level_20:int;// = 15
private var level_21:int;// = 15
private var level_22:int;// = 15
private var level_23:int;// = 15
private var level_24:int;// = 15
private var level_25:int;// = 15
private var level_26:int;// = 15
private var level_27:int;// = 15
private var level_28:int;// = 15
private var level_29:int;// = 15
private var time_18:int;// = 1000
private var time_19:int;// = 1000
private var time_11:int;// = 1000
private var ship_1:Number;// = 0.1
private var ship_2:Number;// = 0.12
private var ship_3:Number;// = 0.15
private var time_21:int;// = 1000
private var time_22:int;// = 1000
private var time_23:int;// = 1000
private var time_24:int;// = 1000
private var time_25:int;// = 1000
private var time_26:int;// = 1000
private var level_30:int;// = 15
private var time_27:int;// = 1000
private var time_20:int;// = 1000
public function CLeveling(){
level_1 = 30;
level_2 = 15;
level_3 = 20;
level_4 = 11;
level_5 = 12;
level_6 = 13;
level_7 = 15;
level_8 = 15;
level_9 = 15;
level_10 = 20;
level_11 = 20;
level_12 = 20;
level_13 = 20;
level_14 = 20;
level_15 = 20;
level_16 = 15;
level_17 = 15;
level_18 = 15;
level_19 = 15;
level_20 = 15;
level_21 = 15;
level_22 = 15;
level_23 = 15;
level_24 = 15;
level_25 = 15;
level_26 = 15;
level_27 = 15;
level_28 = 15;
level_29 = 15;
level_30 = 15;
ship_1 = 0.1;
ship_2 = 0.12;
ship_3 = 0.15;
time_1 = 1000;
time_2 = 1500;
time_3 = 1500;
time_4 = 1500;
time_5 = 1500;
time_6 = 1500;
time_7 = 1500;
time_8 = 1500;
time_9 = 1500;
time_10 = 1000;
time_11 = 1000;
time_12 = 1000;
time_13 = 1000;
time_14 = 1000;
time_15 = 1000;
time_16 = 1000;
time_17 = 1000;
time_18 = 1000;
time_19 = 1000;
time_20 = 1000;
time_21 = 1000;
time_22 = 1000;
time_23 = 1000;
time_24 = 1000;
time_25 = 1000;
time_26 = 1000;
time_27 = 1000;
time_28 = 1000;
time_29 = 1000;
time_30 = 1000;
super();
}
public function getTimeLevel(_arg1:int){
switch (_arg1){
case 1:
return (level_1);
case 2:
return (level_2);
case 3:
return (level_3);
case 4:
return (level_4);
case 5:
return (level_5);
case 6:
return (level_6);
case 7:
return (level_7);
case 8:
return (level_8);
case 9:
return (level_9);
case 10:
return (level_10);
case 11:
return (level_11);
case 12:
return (level_12);
case 13:
return (level_13);
case 14:
return (level_14);
case 15:
return (level_15);
case 16:
return (level_16);
case 17:
return (level_17);
case 18:
return (level_18);
case 19:
return (level_19);
case 20:
return (level_20);
case 21:
return (level_21);
case 22:
return (level_22);
case 23:
return (level_23);
case 24:
return (level_24);
case 25:
return (level_25);
case 26:
return (level_26);
case 27:
return (level_27);
case 28:
return (level_28);
case 29:
return (level_29);
case 30:
return (level_30);
};
}
public function getTimeRingLevel(_arg1:int){
switch (_arg1){
case 1:
return (time_1);
case 2:
return (time_2);
case 3:
return (time_3);
case 4:
return (time_4);
case 5:
return (time_5);
case 6:
return (time_6);
case 7:
return (time_7);
case 8:
return (time_8);
case 9:
return (time_9);
case 10:
return (time_10);
case 11:
return (time_11);
case 12:
return (time_12);
case 13:
return (time_13);
case 14:
return (time_14);
case 15:
return (time_15);
case 16:
return (time_16);
case 17:
return (time_17);
case 18:
return (time_18);
case 19:
return (time_19);
case 20:
return (time_20);
case 21:
return (time_21);
case 22:
return (time_22);
case 23:
return (time_23);
case 24:
return (time_24);
case 25:
return (time_25);
case 26:
return (time_26);
case 27:
return (time_27);
case 28:
return (time_28);
case 29:
return (time_29);
case 30:
return (time_30);
};
}
public function getSpeedShip(_arg1:int){
var _local2:int;
_local2 = (_arg1 % 3);
switch (_local2){
case 0:
return (ship_3);
case 1:
return (ship_1);
case 2:
return (ship_2);
};
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 24
//CMainShip (ascendPoints.airShow.sources.gameClass.CMainShip)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.geom.*;
public class CMainShip extends MovieClip {
public var easing:Number;
public var startFrame:String;
public var rotate1:Boolean;// = false
public var rotate2:Boolean;// = true
public var manuverActionStart:String;
public var action:String;// = "aaaa"
public var frame:int;
public var target_rotation:Number;
public var manuver:Boolean;// = false
public var dy;
public var dx;
public var posisi:String;
public var shipPoint:Point;
public var manuverAction:String;
public var status:String;// = "on the way"
public function CMainShip(){
rotate1 = false;
rotate2 = true;
status = "on the way";
manuver = false;
action = "aaaa";
super();
}
public function initChild(_arg1:MovieClip){
frame = (CGameSession.getInstance().level % 3);
this.x = 200;
if (frame == 1){
this.y = 2740;
startFrame = "normal1";
};
if (frame == 2){
this.y = 1219;
startFrame = "normal2";
};
if (frame == 0){
frame = 3;
this.y = 415;
this.x = 200;
startFrame = "normal3";
};
easing = new CLeveling().getSpeedShip(CGameSession.getInstance().level);
gotoAndStop(startFrame);
_arg1.addChild(this);
}
private function flipAndRotate(){
if (dx <= 0){
if (!rotate1){
rotate1 = true;
gotoAndPlay(("kapal" + frame.toString()));
this.scaleY = -1;
};
rotate2 = false;
};
if (dx > 0){
if (!rotate2){
rotate2 = true;
gotoAndPlay(("kapal" + frame.toString()));
this.scaleY = 1;
};
rotate1 = false;
};
}
public function moveMe(_arg1:MovieClip){
initialMoveAndRotate(_arg1);
if (action != "manuver"){
flipAndRotate();
};
goMove();
}
private function initialMoveAndRotate(_arg1:MovieClip){
dx = ((_arg1.mouseX - this.x) * easing);
dy = ((_arg1.mouseY - this.y) * easing);
this.rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
}
public function manuverShipUp(){
gotoAndPlay(manuverAction);
}
public function manuverShip(){
if (this.currentLabel == manuverAction){
this.gotoAndStop(manuverAction);
};
if (action == "manuver"){
return;
};
action = "manuver";
gotoAndPlay(manuverActionStart);
}
private function goMove(){
this.x = (this.x + dx);
this.y = (this.y + dy);
}
public function checkTheManuver(_arg1:MovieClip){
var _local2:Point;
shipPoint = new Point(this.x, this.y);
_local2 = this.parent.localToGlobal(shipPoint);
if (_arg1.hitTestPoint(_local2.x, _local2.y, true)){
status = "on the way";
} else {
status = "out";
};
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 25
//CManuverStatus (ascendPoints.airShow.sources.gameClass.CManuverStatus)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class CManuverStatus extends MovieClip {
public function init(_arg1:Point, _arg2:String){
this.gotoAndPlay(_arg2);
x = _arg1.x;
y = _arg1.y;
addEventListener(Event.ENTER_FRAME, doEnterFrame);
this.alpha = 0.7;
return (this);
}
public function doEnterFrame(_arg1:Event):void{
y = (y - 3);
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, doEnterFrame);
};
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 26
//CPath1 (ascendPoints.airShow.sources.gameClass.CPath1)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
public class CPath1 extends MovieClip {
public var finishManuver:MovieClip;
public var test:MovieClip;
public var startManuver:CStartManuver;
public var btn_start:CTest;
public function CPath1():void{
}
public function initChild(_arg1:MovieClip){
_arg1.addChild(this);
if ((CGameSession.getInstance().level % 3) == 1){
this.y = -2478;
};
if ((CGameSession.getInstance().level % 3) == 2){
this.y = -1101.4;
};
if ((CGameSession.getInstance().level % 3) == 0){
this.y = -305.55;
};
gotoAndStop(CGameSession.getInstance().level);
}
public function moveMeY(_arg1:MovieClip, _arg2:Number){
this.y = (this.y - (_arg1.dy * _arg2));
}
public function moveMeX(_arg1:MovieClip, _arg2:Number){
this.x = (this.x - (_arg1.dx * _arg2));
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 27
//CPlay (ascendPoints.airShow.sources.gameClass.CPlay)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
public class CPlay extends SimpleButton {
private var playGame:String;
}
}//package ascendPoints.airShow.sources.gameClass
Section 28
//CPlusLife (ascendPoints.airShow.sources.gameClass.CPlusLife)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class CPlusLife extends MovieClip {
public function init(_arg1:Point){
x = _arg1.x;
y = _arg1.y;
addEventListener(Event.ENTER_FRAME, doEnterFrame);
this.alpha = 0.7;
return (this);
}
public function doEnterFrame(_arg1:Event):void{
y = (y - 3);
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, doEnterFrame);
};
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 29
//CPlusPoint (ascendPoints.airShow.sources.gameClass.CPlusPoint)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
public class CPlusPoint extends MovieClip {
public var txtPoint:TextField;
public function init(_arg1:Point, _arg2:int){
x = _arg1.x;
y = _arg1.y;
txtPoint.text = _arg2.toString();
addEventListener(Event.ENTER_FRAME, doEnterFrame);
this.alpha = 0.7;
return (this);
}
public function doEnterFrame(_arg1:Event):void{
y = (y - 3);
this.alpha = (this.alpha - 0.01);
if (this.alpha <= 0){
this.parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, doEnterFrame);
};
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 30
//CRing (ascendPoints.airShow.sources.gameClass.CRing)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.utils.*;
public class CRing extends MovieClip {
public var timer:Timer;
public var maxTime:int;// = 0
public var manuver:MovieClip;
public var timeCount:MovieClip;
public var point:int;// = 1
public var degree:String;
public var index:int;// = 0
public function CRing():void{
maxTime = 0;
index = 0;
point = 1;
super();
startTime();
}
public function countdown(_arg1:TimerEvent){
point = (maxTime - timer.currentCount);
timeCount.textTime.text = String(point);
if (timer.currentCount == maxTime){
timer.removeEventListener(TimerEvent.TIMER, countdown);
};
}
public function startTime(){
timer = new Timer(new CLeveling().getTimeRingLevel(CGameSession.getInstance().level));
timer.addEventListener(TimerEvent.TIMER, countdown);
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 31
//CRingBonus (ascendPoints.airShow.sources.gameClass.CRingBonus)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.utils.*;
public class CRingBonus extends MovieClip {
public var timer:Timer;
public var maxTime:int;// = 0
public var timeCount:MovieClip;
public var point:int;// = 60
public var index:int;// = 0
public function CRingBonus():void{
maxTime = 0;
index = 0;
point = 60;
super();
startTime();
}
public function countdown(_arg1:TimerEvent){
point = (maxTime - timer.currentCount);
timeCount.textTime.text = String(point);
if (timer.currentCount == maxTime){
timer.removeEventListener(TimerEvent.TIMER, countdown);
};
}
public function startTime(){
timer = new Timer(new CLeveling().getTimeRingLevel(CGameSession.getInstance().level));
timer.addEventListener(TimerEvent.TIMER, countdown);
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 32
//CRingLife (ascendPoints.airShow.sources.gameClass.CRingLife)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.utils.*;
public class CRingLife extends MovieClip {
public var timer:Timer;
public var maxTime:int;// = 0
public var timeCount:MovieClip;
public var point:int;// = 60
public var index:int;// = 0
public function CRingLife():void{
maxTime = 0;
index = 0;
point = 60;
super();
startTime();
}
public function countdown(_arg1:TimerEvent){
point = (maxTime - timer.currentCount);
timeCount.textTime.text = String(point);
if (timer.currentCount == maxTime){
timer.removeEventListener(TimerEvent.TIMER, countdown);
};
}
public function startTime(){
timer = new Timer(new CLeveling().getTimeRingLevel(CGameSession.getInstance().level));
timer.addEventListener(TimerEvent.TIMER, countdown);
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 33
//CShipLayer (ascendPoints.airShow.sources.gameClass.CShipLayer)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
public class CShipLayer extends MovieClip {
public function initChild(_arg1:MovieClip){
if ((CGameSession.getInstance().level % 3) == 1){
this.y = -2400;
};
if ((CGameSession.getInstance().level % 3) == 2){
this.y = -1021.2;
};
if ((CGameSession.getInstance().level % 3) == 0){
this.y = -225.35;
};
_arg1.addChild(this);
}
public function moveMeY(_arg1:MovieClip, _arg2:Number){
this.y = (this.y - (_arg1.dy * _arg2));
}
public function moveMeX(_arg1:MovieClip, _arg2:Number){
this.x = (this.x - (_arg1.dx * _arg2));
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 34
//CSkyLayer1 (ascendPoints.airShow.sources.gameClass.CSkyLayer1)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
public class CSkyLayer1 extends MovieClip {
public function initChild(_arg1:MovieClip){
if ((CGameSession.getInstance().level % 3) == 1){
this.y = -2475;
};
if ((CGameSession.getInstance().level % 3) == 2){
this.y = -1104;
};
if ((CGameSession.getInstance().level % 3) == 0){
this.y = -308.15;
};
_arg1.addChild(this);
}
public function moveMeY(_arg1:MovieClip, _arg2:Number){
this.y = (this.y - (_arg1.dy * _arg2));
}
public function moveMeX(_arg1:MovieClip, _arg2:Number){
this.x = (this.x - (_arg1.dx * _arg2));
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 35
//CSkyLayer2 (ascendPoints.airShow.sources.gameClass.CSkyLayer2)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
public class CSkyLayer2 extends MovieClip {
private var playGame:String;
public function initChild(_arg1:MovieClip){
if ((CGameSession.getInstance().level % 3) == 1){
this.y = -1977;
};
if ((CGameSession.getInstance().level % 3) == 2){
this.y = -870.7;
};
if ((CGameSession.getInstance().level % 3) == 0){
this.y = -234.5;
};
_arg1.addChild(this);
}
public function moveMeY(_arg1:MovieClip, _arg2:Number){
this.y = (this.y - (_arg1.dy * _arg2));
}
public function moveMeX(_arg1:MovieClip, _arg2:Number){
this.x = (this.x - (_arg1.dx * _arg2));
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 36
//CSkyLayer3 (ascendPoints.airShow.sources.gameClass.CSkyLayer3)
package ascendPoints.airShow.sources.gameClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
public class CSkyLayer3 extends MovieClip {
public var stopMove:Boolean;// = false
public function CSkyLayer3(){
stopMove = false;
super();
}
public function initChild(_arg1:MovieClip){
if ((CGameSession.getInstance().level % 3) == 1){
this.y = -986;
};
if ((CGameSession.getInstance().level % 3) == 2){
this.y = -428.9;
};
if ((CGameSession.getInstance().level % 3) == 0){
this.y = -111.75;
};
_arg1.addChild(this);
}
public function moveMeY(_arg1:MovieClip, _arg2:Number){
this.y = (this.y - (_arg1.dy * _arg2));
}
public function moveMeX(_arg1:MovieClip, _arg2:Number){
this.x = (this.x - (_arg1.dx * _arg2));
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 37
//CSpeedManager (ascendPoints.airShow.sources.gameClass.CSpeedManager)
package ascendPoints.airShow.sources.gameClass {
public class CSpeedManager {
public const skyLayer3:Number = 0.4;
public const path:Number = 1;
public const skyLayer1:Number = 0.1;
public const skyLayer2:Number = 0.8;
public const groundLayer1:Number = 0.3;
public const mainShip:Number = 0.3;
public const groundLayer2:Number = 0.2;
public function CspeedManager():void{
}
}
}//package ascendPoints.airShow.sources.gameClass
Section 38
//CGameSession (ascendPoints.airShow.sources.globalClass.CGameSession)
package ascendPoints.airShow.sources.globalClass {
public class CGameSession {
public var level:int;// = 1
public var totalScore:int;// = 0
public var score:int;// = 0
public var fromScreen:String;
public var changeManuver:int;// = 3
public var completeGame:Boolean;
private static var instance:CGameSession = new (CGameSession);
;
public function CGameSession(){
changeManuver = 3;
score = 0;
totalScore = 0;
level = 1;
super();
if (instance){
throw (new Error("It is a Singleton and can only be accessed through Singleton.getInstance()"));
};
}
public function startNewGame(){
changeManuver = 3;
score = 0;
totalScore = 0;
level = 1;
completeGame = false;
}
public static function getInstance():CGameSession{
return (instance);
}
}
}//package ascendPoints.airShow.sources.globalClass
Section 39
//CScreen (ascendPoints.airShow.sources.globalClass.CScreen)
package ascendPoints.airShow.sources.globalClass {
import flash.display.*;
public class CScreen extends MovieClip {
public var screenName:String;
public var nextScreenName:String;
public var modal:Boolean;
public function destroy(){
}
public function init(){
}
public function hideScreen(){
}
public function showScreen(){
}
}
}//package ascendPoints.airShow.sources.globalClass
Section 40
//CScreenManager (ascendPoints.airShow.sources.globalClass.CScreenManager)
package ascendPoints.airShow.sources.globalClass {
import flash.display.*;
import flash.events.*;
public class CScreenManager {
private var stageRoot:Stage;
private var screens:Array;
public function CScreenManager(_arg1:Stage){
stageRoot = _arg1;
init();
}
public function start(_arg1:String){
showScreen(_arg1);
}
public function fadeScreen(_arg1:int){
}
public function showScreen(_arg1:String){
var _local2:MovieClip;
_local2 = screens[_arg1];
stageRoot.addChild(_local2);
_local2.init();
}
public function addScreen(_arg1:String, _arg2:CScreen, _arg3:Boolean){
_arg2.modal = _arg3;
screens[_arg1] = _arg2;
_arg2.screenName = _arg1;
_arg2.addEventListener("endScreen", onEndScreen);
_arg2.addEventListener("callNextScreen", onCallNextScreen);
}
private function init(){
screens = new Array();
}
public function getScreen(_arg1:String){
return (screens[_arg1]);
}
public function removeScreen(_arg1:String){
var _local2:MovieClip;
_local2 = screens[_arg1];
stageRoot.removeChild(_local2);
_local2.destroy();
}
private function onEndScreen(_arg1:Event):void{
removeScreen(_arg1.target.screenName);
}
public function destroy(){
screens = null;
}
private function onCallNextScreen(_arg1:Event):void{
showScreen(_arg1.target.nextScreenName);
}
public function hideScreen(){
}
public function nextScreen(_arg1:String, _arg2:String){
screens[_arg1].nextScreenName = _arg2;
}
}
}//package ascendPoints.airShow.sources.globalClass
Section 41
//CSound (ascendPoints.airShow.sources.globalClass.CSound)
package ascendPoints.airShow.sources.globalClass {
import flash.media.*;
public class CSound {
private var sdPlane1:SAeroplane_1;
private var sdPlane2:SAeroplane_2;
private var sdPlane3:SAeroplane_3;
private var sdGmOver:SGame_over;
private var channel2:SoundChannel;
private var channel4:SoundChannel;
private var channel5:SoundChannel;
private var channel6:SoundChannel;
private var sdMusic:SBg_Music;
private var channel1:SoundChannel;
private var sdExplode:CExplode_3;
private var sdCheckpointFailed:CCheckpointFailed;
private var clickBtn:CClickSound;
private var sdCheckpoint:CCheckpoint;
private var channel3:SoundChannel;
public static const explode:String = "explode";
public static const check_point_filed:String = "check_point_filed";
public static const game_over:String = "game_over";
public static const click_button:String = "click";
public static const bg_music:String = "bg_music";
public static const plane1:String = "plane1";
public static const plane2:String = "plane2";
public static const plane3:String = "plane3";
public static const check_point:String = "check_point";
private static var instance:CSound = new (CSound);
;
public function CSound(){
sdPlane1 = new SAeroplane_1();
sdPlane2 = new SAeroplane_2();
sdPlane3 = new SAeroplane_3();
sdMusic = new SBg_Music();
clickBtn = new CClickSound();
sdExplode = new CExplode_3();
sdCheckpoint = new CCheckpoint();
sdCheckpointFailed = new CCheckpointFailed();
sdGmOver = new SGame_over();
channel1 = new SoundChannel();
channel2 = new SoundChannel();
channel3 = new SoundChannel();
channel4 = new SoundChannel();
channel5 = new SoundChannel();
channel6 = new SoundChannel();
super();
if (instance){
throw (new Error("It is a Singleton and can only be accessed through Singleton.getInstance()"));
};
}
public function stopSound(_arg1:String){
if (_arg1 == plane1){
channel2.stop();
};
if (_arg1 == plane2){
channel2.stop();
};
if (_arg1 == plane3){
channel2.stop();
};
if (_arg1 == bg_music){
channel1.stop();
};
if (_arg1 == click_button){
channel3.stop();
};
if (_arg1 == explode){
channel1.stop();
};
if (_arg1 == check_point){
channel6.stop();
};
if (_arg1 == check_point_filed){
channel6.stop();
};
if (_arg1 == game_over){
channel5.stop();
};
}
public function playSound(_arg1:String){
if (_arg1 == plane1){
channel2 = sdPlane1.play(0, 100);
channel2.soundTransform.volume = 1;
};
if (_arg1 == plane2){
channel2 = sdPlane2.play(0, 100);
channel2.soundTransform.volume = 1;
};
if (_arg1 == plane3){
channel2 = sdPlane3.play(0, 100);
channel2.soundTransform.volume = 1;
};
if (_arg1 == bg_music){
channel1.stop();
channel1 = sdMusic.play(0, 100);
channel1.soundTransform.volume = 1;
};
if (_arg1 == click_button){
channel3 = clickBtn.play();
};
if (_arg1 == explode){
channel4 = sdExplode.play();
};
if (_arg1 == check_point){
channel6 = sdCheckpoint.play();
};
if (_arg1 == check_point_filed){
channel6 = sdCheckpointFailed.play();
};
if (_arg1 == game_over){
channel5 = sdGmOver.play(0, 100);
channel1.soundTransform.volume = 1;
};
}
public function hideSound(_arg1:String){
var _local2:SoundTransform;
if (_arg1 == bg_music){
_local2 = channel4.soundTransform;
_local2.volume = 0.01;
channel4.soundTransform = _local2;
};
}
public static function getInstance():CSound{
return (instance);
}
}
}//package ascendPoints.airShow.sources.globalClass
Section 42
//Application (ascendPoints.airShow.sources.screenClass.Application)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
public class Application extends MovieClip {
private var SC_BUYSCREEN;// = "buyscreen"
private var SC_MISSIONSCREEN;// = "missionscreen"
private var SC_TITLINGSCREEN;// = "titlingscreen"
private var scm:CScreenManager;
private var SC_GAMESCREEN;// = "gamescreen"
public var _mochiad:MovieClip;
private var SC_CREDITSCREEN;// = "creditsscreen"
private var SC_HELPSCREEN;// = "helpscreen"
public var _mochiad_loaded:Boolean;
public var clip:MovieClip;
private var SC_PRELOADERSCREEN;// = "preloaderscreen"
private var preloader:CPreLoaderScreen;
private var SC_LEVELUPSCREEN;// = "levelupscreen"
private var SC_GAMEOVERSCREEN;// = "gameoverscreen"
public var progressBar:MovieClip;
private var SC_HIGHSCORESCREEN;// = "highscorescreen"
private var SC_ENDSCREEN;// = "endscreen"
private var SC_MAINMENUSCREEN;// = "mainmenuscreen"
private var SC_WINSCREEN;// = "winscreen"
public static const ENTRY_FRAME:Number = 3;
public static const DocCGameOverScreen:String = "CGameOverScreen";
public static const DocCGameScreen:String = "CGameScreen";
public static const DocCMainMenuScreen:String = "CMainMenuScreen";
public static const DocCCreditScreen:String = "CCreditsScreen";
public static const DocCPreloaderScreen:String = "CPreloaderScreen";
public static const DocCHelpScreen:String = "CHelpScreen";
public static const DocCLevelUpScreen:String = "CLevelUpScreen";
public static const DocCBuyScreen:String = "CBuyScreen";
public static const DocCMissionScreen:String = "CMissionScreen";
public static const DocCHighScoreScreen:String = "CHighScoreScreen";
public static const DocCTitlingScreen:String = "CTitlingScreen";
public static const DocCEndScreen:String = "CEndScreen";
public static const DocCWinScreen:String = "CWinScreen";
public function Application(){
SC_BUYSCREEN = "buyscreen";
SC_ENDSCREEN = "endscreen";
SC_GAMESCREEN = "gamescreen";
SC_HELPSCREEN = "helpscreen";
SC_HIGHSCORESCREEN = "highscorescreen";
SC_MAINMENUSCREEN = "mainmenuscreen";
SC_PRELOADERSCREEN = "preloaderscreen";
SC_GAMEOVERSCREEN = "gameoverscreen";
SC_LEVELUPSCREEN = "levelupscreen";
SC_MISSIONSCREEN = "missionscreen";
SC_WINSCREEN = "winscreen";
SC_CREDITSCREEN = "creditsscreen";
SC_TITLINGSCREEN = "titlingscreen";
super();
stop();
stop();
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
loaderInfo.addEventListener(Event.COMPLETE, completeHandler);
scm = new CScreenManager(stage);
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
private function enterFrameHandler(_arg1:Event):void{
if (currentFrame >= _slot1.ENTRY_FRAME){
removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
stop();
RegisterScreens();
StartApp();
};
}
private function RegisterScreens(){
var _local1:Class;
var _local2:CTitlingScreen;
var _local3:Class;
var _local4:CMainMenuScreen;
var _local5:Class;
var _local6:CCreditsScreen;
var _local7:Class;
var _local8:CHighScoreScreen;
var _local9:Class;
var _local10:CMissionScreen;
var _local11:Class;
var _local12:CGameScreen;
var _local13:Class;
var _local14:CLevelUpScreen;
var _local15:Class;
var _local16:CGameOverScreen;
var _local17:Class;
var _local18:CWinScreen;
_local1 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCTitlingScreen) as Class);
_local2 = (new (_local1) as CTitlingScreen);
scm.addScreen(SC_TITLINGSCREEN, (_local2 as CScreen), true);
_local3 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCMainMenuScreen) as Class);
_local4 = (new (_local3) as CMainMenuScreen);
scm.addScreen(SC_MAINMENUSCREEN, (_local4 as CScreen), true);
_local5 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCCreditScreen) as Class);
_local6 = (new (_local5) as CCreditsScreen);
scm.addScreen(SC_CREDITSCREEN, (_local6 as CScreen), true);
_local7 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCHighScoreScreen) as Class);
_local8 = (new (_local7) as CHighScoreScreen);
scm.addScreen(SC_HIGHSCORESCREEN, (_local8 as CScreen), true);
_local9 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCMissionScreen) as Class);
_local10 = (new (_local9) as CMissionScreen);
scm.addScreen(SC_MISSIONSCREEN, (_local10 as CScreen), true);
_local11 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCGameScreen) as Class);
_local12 = (new (_local11) as CGameScreen);
scm.addScreen(SC_GAMESCREEN, (_local12 as CScreen), true);
_local13 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCLevelUpScreen) as Class);
_local14 = (new (_local13) as CLevelUpScreen);
scm.addScreen(SC_LEVELUPSCREEN, (_local14 as CScreen), true);
_local15 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCGameOverScreen) as Class);
_local16 = (new (_local15) as CGameOverScreen);
scm.addScreen(SC_GAMEOVERSCREEN, (_local16 as CScreen), true);
_local17 = (loaderInfo.applicationDomain.getDefinition(_slot1.DocCWinScreen) as Class);
_local18 = (new (_local17) as CWinScreen);
scm.addScreen(SC_WINSCREEN, (_local18 as CScreen), true);
}
private function progressHandler(_arg1:ProgressEvent):void{
var _local2:int;
_local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
progressBar.gotoAndStop(_local2);
}
private function StartApp(){
scm.start(SC_TITLINGSCREEN);
}
private function completeHandler(_arg1:Event):void{
play();
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 43
//CCreditsScreen (ascendPoints.airShow.sources.screenClass.CCreditsScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
public class CCreditsScreen extends CScreen {
private var naik:int;// = 486
public var bt_menu:SimpleButton;
public function CCreditsScreen(){
naik = 486;
super();
bt_menu.addEventListener(MouseEvent.CLICK, onQuit);
}
override public function init(){
gotoAndPlay("buka");
bt_menu.addEventListener(MouseEvent.CLICK, onQuit);
}
public function nextScreen(){
nextScreenName = "mainmenuscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
function onQuit(_arg1:MouseEvent){
gotoAndPlay("tutup");
bt_menu.removeEventListener(MouseEvent.CLICK, onQuit);
}
override public function destroy(){
gotoAndStop(1);
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 44
//CGameOverScreen (ascendPoints.airShow.sources.screenClass.CGameOverScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
public class CGameOverScreen extends CScreen {
public var txtScore:TextField;
public var txCongratulations:TextField;
public var txGameOver:TextField;
public var bt_submit:SimpleButton;
public var bt_playmoregames:SimpleButton;
public var toScreen:String;
public var bt_mainmenu:SimpleButton;
override public function init(){
CSound.getInstance().playSound(CSound.game_over);
gotoAndPlay("buka");
txCongratulations.visible = false;
txGameOver.visible = false;
if (CGameSession.getInstance().completeGame){
txCongratulations.visible = true;
} else {
txGameOver.visible = true;
};
bt_submit.visible = true;
setButtonListeners();
txtScore.text = String(CGameSession.getInstance().totalScore);
}
public function nextScreen(){
nextScreenName = "mainmenuscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
private function setButtonListeners(){
bt_playmoregames.addEventListener(MouseEvent.CLICK, clickPlayMoreGames);
bt_mainmenu.addEventListener(MouseEvent.CLICK, mainMenu);
bt_submit.addEventListener(MouseEvent.CLICK, submitScore);
}
private function submitScore(_arg1:MouseEvent){
CSound.getInstance().stopSound(CSound.game_over);
nextScreenName = "highscorescreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
private function mainMenu(_arg1:MouseEvent){
gotoAndPlay("tutup");
CSound.getInstance().stopSound(CSound.game_over);
}
private function clickPlayMoreGames(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.play4all.net"), "_blank");
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 45
//CGameScreen (ascendPoints.airShow.sources.screenClass.CGameScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.geom.*;
import ascendPoints.airShow.sources.gameClass.*;
import flash.utils.*;
import flash.net.*;
public class CGameScreen extends CScreen {
public var ring:MovieClip;
public var minX:Boolean;// = true
public var speed:CSpeedManager;
public var minY:Boolean;// = true
public var manuvStat:CManuverStatus;
public var screen:MovieClip;
public var shipLayer:MovieClip;
public var shipFrame:int;
private var ringIndex:int;
public var bgSky:CBackgroundSky;
public var path1:MovieClip;
private var toScreen:String;
public var ringCollection:Array;
public var allStatus:MovieClip;
public var failedConfirmation:MovieClip;
public var count:int;// = 200
public var chance:MovieClip;
public var timer:Timer;
public var wingMan:MovieClip;
public var timeCollection:Array;
public var menu:MovieClip;
public var groundLayer1:MovieClip;
public var groundLayer2:MovieClip;
public var maxY:Boolean;// = true
public var maxX:Boolean;// = true
public var skyLayer1:CSkyLayer1;
public var skyLayer2:CSkyLayer2;
public var skyLayer3:CSkyLayer3;
public var mainShip:CMainShip;
public var timerAnimation:Timer;
private var game:CGame;
public function CGameScreen(){
count = 200;
maxX = true;
maxY = true;
minX = true;
minY = true;
super();
}
private function setYtoMin(){
shipLayer.y = -51.4;
path1.y = -131.6;
skyLayer1.y = -134.2;
skyLayer2.y = -96.95;
skyLayer3.y = -46.8;
groundLayer1.y = 1401.6;
groundLayer2.y = 1401.6;
}
public function initTimeAnimation(){
timerAnimation = new Timer(1000);
timerAnimation.addEventListener(TimerEvent.TIMER, countdown2);
timerAnimation.start();
}
private function clickbtPlay4All(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.play4all.net"), "_blank");
}
private function countdown2(_arg1:TimerEvent){
if (timerAnimation.currentCount == 1){
removeChild(screen);
screen = null;
removeAllEventAndMC();
if (game.restartLevel){
game.restartLevel = false;
CGameSession.getInstance().score = 0;
init();
} else {
nextScreen(toScreen);
};
timerAnimation.removeEventListener(TimerEvent.TIMER, countdown2);
};
}
public function checkPointScore(){
var _local1:*;
var _local2:int;
var _local3:Point;
var _local4:Point;
var _local5:int;
_local2 = 0;
while (_local2 < path1.numChildren) {
_local1 = path1.getChildAt(_local2);
if ((((((_local1 is CRing)) || ((_local1 is CRingBonus)))) || ((_local1 is CRingLife)))){
_local3 = new Point(_local1.x, _local1.y);
_local4 = path1.localToGlobal(_local3);
if (((((mainShip.hitTestPoint(_local4.x, _local4.y, true)) && ((_local1.index == ringIndex)))) && ((_local1.point > 0)))){
if ((((_local1 is CRing)) && ((mainShip.posisi == _local1.degree)))){
CGameSession.getInstance().score = (CGameSession.getInstance().score + 100);
allStatus.curScore.text = String(CGameSession.getInstance().score);
addChild(new CPlusPoint().init(_local4, 100));
addChild(new CManuverStatus().init(_local4, "success"));
CSound.getInstance().playSound(CSound.check_point);
} else {
if ((((_local1 is CRing)) && (!((mainShip.posisi == _local1.degree))))){
addChild(new CManuverStatus().init(_local4, "failed"));
CSound.getInstance().playSound(CSound.check_point_filed);
};
};
if ((((_local1 is CRingBonus)) && ((mainShip.posisi == _local1.degree)))){
_local5 = (_local1.point * 100);
CGameSession.getInstance().score = (CGameSession.getInstance().score + _local5);
allStatus.curScore.text = String(CGameSession.getInstance().score);
addChild(new CPlusPoint().init(_local4, _local5));
addChild(new CManuverStatus().init(_local4, "success"));
CSound.getInstance().playSound(CSound.check_point);
} else {
if ((((_local1 is CRingBonus)) && (!((mainShip.posisi == _local1.degree))))){
addChild(new CManuverStatus().init(_local4, "failed"));
CSound.getInstance().playSound(CSound.check_point_filed);
};
};
if ((((((_local1 is CRingLife)) && ((CGameSession.getInstance().changeManuver < 6)))) && ((mainShip.posisi == _local1.degree)))){
CGameSession.getInstance().changeManuver = (CGameSession.getInstance().changeManuver + 1);
addChild(new CPlusLife().init(_local4));
addChild(new CManuverStatus().init(_local4, "success"));
CSound.getInstance().playSound(CSound.check_point);
} else {
if ((((_local1 is CRingLife)) && (!((mainShip.posisi == _local1.degree))))){
addChild(new CManuverStatus().init(_local4, "failed"));
CSound.getInstance().playSound(CSound.check_point_filed);
};
};
_local1.removeEventListener(TimerEvent.TIMER, _local1.countdown);
path1.removeChild(_local1.timeCount);
path1.removeChild(_local1.manuver);
path1.removeChild(_local1);
ringIndex = (ringIndex + 1);
game.totalRing = (game.totalRing - 1);
return;
} else {
if (((mainShip.hitTestPoint(_local4.x, _local4.y, true)) && (!((_local1.index == ringIndex))))){
explodeFailedCheckPoint(_local1, _local4);
return;
};
if (((mainShip.hitTestPoint(_local4.x, _local4.y, true)) && ((_local1.point == 0)))){
_local1.removeEventListener(TimerEvent.TIMER, _local1.countdown);
path1.removeChild(_local1.timeCount);
path1.removeChild(_local1.manuver);
path1.removeChild(_local1);
ringIndex = (ringIndex + 1);
game.totalRing = (game.totalRing - 1);
addChild(new CManuverStatus().init(_local4, "failed"));
return;
};
};
};
_local2++;
};
}
public function countdown(_arg1:TimerEvent){
count = (game.timeLevel - timer.currentCount);
allStatus.LeftTime.text = String((game.timeLevel - timer.currentCount));
}
public function setMCToNull(){
bgSky = null;
skyLayer1 = null;
skyLayer2 = null;
skyLayer3 = null;
groundLayer1 = null;
groundLayer2 = null;
path1 = null;
mainShip = null;
shipLayer = null;
chance = null;
failedConfirmation = null;
allStatus = null;
menu = null;
}
private function initSkyLayer2(){
skyLayer2 = new CSkyLayer2();
skyLayer2.initChild(this);
}
private function initSkyLayer1(){
skyLayer1 = new CSkyLayer1();
skyLayer1.initChild(this);
}
private function initAnimation(){
screen = new CTutupBuka();
addChild(screen);
screen.gotoAndPlay("buka");
}
private function initSkyLayer3(){
skyLayer3 = new CSkyLayer3();
skyLayer3.initChild(this);
}
public function keyDownHandler(_arg1:KeyboardEvent, _arg2:Boolean=true):void{
var _local3:*;
_local3 = _arg1.keyCode;
switch (_local3){
case 32:
if (failedConfirmation != null){
removeChild(failedConfirmation);
failedConfirmation = null;
};
if (game.isFailed){
screen.gotoAndPlay("tutup");
if (CGameSession.getInstance().changeManuver == 0){
toScreen = "gameoverscreen";
initTimeAnimation();
} else {
if (CGameSession.getInstance().changeManuver > 0){
game.restartLevel = true;
initTimeAnimation();
};
};
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
};
break;
case 65:
mainShip.manuver = true;
if (mainShip.frame == 1){
mainShip.manuverActionStart = "a90";
mainShip.manuverAction = "ap90";
};
if (mainShip.frame == 2){
mainShip.manuverActionStart = "b90";
mainShip.manuverAction = "bp90";
};
if (mainShip.frame == 3){
mainShip.manuverActionStart = "c90";
mainShip.manuverAction = "cp90";
};
break;
case 83:
mainShip.manuver = true;
if (mainShip.frame == 1){
mainShip.manuverActionStart = "a180";
mainShip.manuverAction = "ap180";
};
if (mainShip.frame == 2){
mainShip.manuverActionStart = "b180";
mainShip.manuverAction = "bp180";
};
if (mainShip.frame == 3){
mainShip.manuverActionStart = "c180";
mainShip.manuverAction = "cp180";
};
break;
case 68:
mainShip.manuver = true;
if (mainShip.frame == 1){
mainShip.manuverActionStart = "a270";
mainShip.manuverAction = "ap270";
};
if (mainShip.frame == 2){
mainShip.manuverActionStart = "b270";
mainShip.manuverAction = "bp270";
};
if (mainShip.frame == 3){
mainShip.manuverActionStart = "c270";
mainShip.manuverAction = "cp270";
};
break;
case 220:
game.cheatUpLevel = true;
break;
};
}
function initializePathChild(_arg1:Event):void{
var _local2:*;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local6 = 0;
while (_local6 < path1.numChildren) {
_local2 = path1.getChildAt(_local6);
if ((_local2 is CTest)){
_local2.addEventListener(MouseEvent.CLICK, clickStart);
};
if ((((((_local2 is CRing)) || ((_local2 is CRingBonus)))) || ((_local2 is CRingLife)))){
ringCollection.push(_local2);
_local2.index = _local3;
_local3 = (_local3 + 1);
};
if ((_local2 is CTimeRing)){
ringCollection[_local4].timeCount = _local2;
_local4 = (_local4 + 1);
};
if ((((((((_local2 is CManuver90)) || ((_local2 is CManuver180)))) || ((_local2 is CManuver270)))) || ((_local2 is CWithoutManuver)))){
ringCollection[_local5].manuver = _local2;
setDegree(_local2, _local5);
_local5 = (_local5 + 1);
};
_local6++;
};
game.totalRing = ringCollection.length;
setCheckPointTime();
}
public function explodeFailedCheckPoint(_arg1, _arg2:Point){
var _local3:MovieClip;
CSound.getInstance().playSound(CSound.explode);
game.startManuver = false;
game.isFailed = true;
clearTimerEvent();
path1.removeChild(_arg1.timeCount);
path1.removeChild(_arg1);
_local3 = new CExplode();
_local3.x = _arg2.x;
_local3.y = _arg2.y;
addChild(_local3);
if (mainShip){
shipLayer.removeChild(mainShip);
};
mainShip = null;
if (path1.test){
path1.test.stop();
};
addConfirmation("Failed Checkpoint!!.\nPRESS SPACE TO RESTART");
if (shipFrame == 1){
CSound.getInstance().stopSound("plane1");
};
if (shipFrame == 2){
CSound.getInstance().stopSound("plane2");
};
if (shipFrame == 0){
CSound.getInstance().stopSound("plane3");
};
CGameSession.getInstance().changeManuver = (CGameSession.getInstance().changeManuver - 1);
removeEventListener(Event.ENTER_FRAME, loop);
}
public function keyUpHandler(_arg1:KeyboardEvent, _arg2:Boolean=true):void{
var _local3:*;
_local3 = _arg1.keyCode;
switch (_local3){
case 65:
mainShip.manuver = false;
mainShip.action = "assadsad";
mainShip.manuverShipUp();
break;
case 83:
mainShip.manuver = false;
mainShip.action = "assadsad";
mainShip.manuverShipUp();
break;
case 68:
mainShip.manuver = false;
mainShip.action = "assadsad";
mainShip.manuverShipUp();
break;
};
}
private function initGroundLayer1(){
groundLayer1 = new CGroundLayer1();
groundLayer1.initChild(this);
}
private function initGroundLayer2(){
groundLayer2 = new CGroundLayer2();
groundLayer2.initChild(this);
}
public function removeAllChild(){
var _local1:int;
if (failedConfirmation != null){
removeChild(failedConfirmation);
};
if (bgSky != null){
removeChild(bgSky);
};
if (skyLayer1 != null){
removeChild(skyLayer1);
};
if (skyLayer2 != null){
removeChild(skyLayer2);
};
if (skyLayer3 != null){
removeChild(skyLayer3);
};
if (groundLayer1 != null){
removeChild(groundLayer1);
};
if (groundLayer2 != null){
removeChild(groundLayer2);
};
if (path1 != null){
_local1 = 0;
while (_local1 < path1.numChildren) {
path1.removeChild(path1.getChildAt(_local1));
_local1++;
};
removeChild(path1);
};
if (shipLayer != null){
if (mainShip){
shipLayer.removeChild(mainShip);
};
removeChild(shipLayer);
};
if (allStatus != null){
removeChild(allStatus);
};
if (chance != null){
removeChild(chance);
};
if (menu){
removeChild(menu);
};
}
public function loop(_arg1:Event){
if (mainShip){
game.startTheManuver(this);
game.finishTheManuver(this);
game.failedTheManuver(this);
if (mainShip){
game.ceckPointScorring(this);
};
if (((mainShip) && (path1.test))){
game.tabrakanKeurFormasi(this);
};
if (mainShip){
game.nepiBatasHandap(this);
};
if (((((mainShip) && (game.startManuver))) && (path1.test))){
game.scorringInFormation(this);
};
if (((game.finishManuver) || (game.isFailed))){
return;
};
mainShip.checkTheManuver(path1);
mainShip.moveMe(shipLayer);
if (mainShip.manuver){
mainShip.manuverShip();
};
setBoundary();
moveScreen();
};
}
public function clearTimerEvent(){
var _local1:int;
_local1 = 0;
while (_local1 < ringCollection.length) {
ringCollection[_local1].timer.stop();
ringCollection[_local1].removeEventListener(TimerEvent.TIMER, ringCollection[_local1].countdown);
_local1++;
};
if (timer){
timer.removeEventListener(TimerEvent.TIMER, countdown);
};
}
private function setBoundary(){
setBoundaryX();
setBoundaryY();
}
private function setXtoMax(){
shipLayer.x = -3652.65;
skyLayer1.x = -3658.1;
skyLayer2.x = -2919.5;
skyLayer3.x = -1469.5;
groundLayer1.x = -2175.95;
groundLayer2.x = -729.5;
path1.x = -3663.8;
}
public function setScreenLevel(){
if (CGameSession.getInstance().level == game.maxLevel){
CGameSession.getInstance().completeGame = true;
toScreen = "winscreen";
} else {
if (CGameSession.getInstance().level < game.maxLevel){
toScreen = "levelupscreen";
};
};
}
private function initMainShip(){
mainShip = new CMainShip();
mainShip.initChild(shipLayer);
}
override public function init(){
shipFrame = (CGameSession.getInstance().level % 3);
CSound.getInstance().stopSound(CSound.bg_music);
speed = new CSpeedManager();
game = new CGame();
ringCollection = new Array();
timeCollection = new Array();
ringIndex = 0;
game.timeLevel = new CLeveling().getTimeLevel(CGameSession.getInstance().level);
initScreen();
}
private function setYtoMax(){
shipLayer.y = -2400;
skyLayer1.y = -2475;
skyLayer2.y = -1977;
skyLayer3.y = -986;
groundLayer1.y = -930;
groundLayer2.y = -930;
path1.y = -2478;
}
public function startTimeCheckPoint(){
var _local1:int;
_local1 = 0;
while (_local1 < ringCollection.length) {
ringCollection[_local1].timer.start();
_local1++;
};
}
private function initStatus(){
allStatus = new CAllStatus();
addChild(allStatus);
allStatus.btPlay4All.addEventListener(MouseEvent.CLICK, clickbtPlay4All);
allStatus.LeftTime.text = String(game.timeLevel);
allStatus.totalScore.text = String(CGameSession.getInstance().totalScore);
allStatus.curScore.text = String(CGameSession.getInstance().score);
allStatus.chanceManuver.gotoAndStop(CGameSession.getInstance().changeManuver);
}
private function setBoundaryX(){
if (mainShip.x >= (bgSky.width / 2)){
minX = false;
} else {
setXtoMin();
minX = true;
};
if (mainShip.x >= groundLayer1.width){
maxX = false;
setXtoMax();
} else {
maxX = true;
};
}
private function setBoundaryY(){
if (mainShip.y >= (bgSky.height / 2)){
minY = false;
} else {
setYtoMin();
minY = true;
};
if (mainShip.y >= (shipLayer.height - 400)){
maxY = false;
setYtoMax();
} else {
maxY = true;
};
}
public function nextScreen(_arg1:String){
nextScreenName = _arg1;
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
public function initialVar(){
game.isFailed = false;
game.startManuver = false;
game.finishManuver = false;
count = 200;
maxX = true;
maxY = true;
minX = true;
minY = true;
game.isFailed = false;
}
private function initShipLayer(){
shipLayer = new CShipLayer();
shipLayer.initChild(this);
}
private function initPath(){
path1 = new CPath1();
path1.initChild(this);
}
public function setCheckPointTime(){
var _local1:int;
var _local2:int;
_local1 = Math.round((10 / (ringCollection.length + 1)));
_local2 = 0;
while (_local2 < ringCollection.length) {
ringCollection[_local2].maxTime = ((_local2 + 1) * _local1);
ringCollection[_local2].timeCount.textTime.text = String(ringCollection[_local2].maxTime);
_local2++;
};
}
private function setXtoMin(){
shipLayer.x = 0;
path1.x = 0;
skyLayer1.x = 0;
skyLayer2.x = 0;
skyLayer3.x = 0;
groundLayer1.x = 0;
groundLayer2.x = 0;
}
private function initBgSky(){
bgSky = new CBackgroundSky();
bgSky.initChild(this);
}
public function addConfirmation(_arg1:String){
failedConfirmation = new CFailed();
failedConfirmation.textFailed.text = _arg1;
failedConfirmation.x = 200;
failedConfirmation.y = 150;
addChild(failedConfirmation);
}
public function removeAllEventAndMC(){
this.parent.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
if (timer){
timer.removeEventListener(TimerEvent.TIMER, countdown);
};
this.removeEventListener(Event.ENTER_FRAME, loop);
removeAllChild();
setMCToNull();
initialVar();
ringCollection.splice(0, ringCollection.length);
}
private function initScreen(){
initBgSky();
initGroundLayer2();
initSkyLayer3();
initSkyLayer2();
initGroundLayer1();
initShipLayer();
initMainShip();
initSkyLayer1();
initPath();
initStatus();
initAnimation();
path1.addEventListener(Event.RENDER, initializePathChild);
stage.invalidate();
menu = new CMenu();
addChild(menu);
}
private function moveScreen(){
if (((!(minX)) && (maxX))){
shipLayer.moveMeX(mainShip, 1);
skyLayer3.moveMeX(mainShip, speed.skyLayer3);
skyLayer2.moveMeX(mainShip, speed.skyLayer2);
skyLayer1.moveMeX(mainShip, 1);
path1.moveMeX(mainShip, 1);
groundLayer2.moveMeX(mainShip, 0.2);
groundLayer1.moveMeX(mainShip, 0.6);
};
if (((!(minY)) && (maxY))){
shipLayer.moveMeY(mainShip, 1);
skyLayer3.moveMeY(mainShip, speed.skyLayer3);
skyLayer2.moveMeY(mainShip, speed.skyLayer2);
skyLayer1.moveMeY(mainShip, 1);
path1.moveMeY(mainShip, 1);
groundLayer2.moveMeY(mainShip, 1);
groundLayer1.moveMeY(mainShip, 1);
};
}
private function clickStart(_arg1:Event){
this.addEventListener(Event.ENTER_FRAME, loop);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
stage.focus = this;
path1.btn_start.removeEventListener(MouseEvent.CLICK, clickStart);
if (shipFrame == 1){
CSound.getInstance().playSound("plane1");
};
if (shipFrame == 2){
CSound.getInstance().playSound("plane2");
};
if (shipFrame == 0){
CSound.getInstance().playSound("plane3");
};
path1.removeChild(path1.btn_start);
}
private function setDegree(_arg1, _arg2:int){
if ((_arg1 is CManuver90)){
ringCollection[_arg2].degree = "90";
} else {
if ((_arg1 is CManuver180)){
ringCollection[_arg2].degree = "180";
} else {
if ((_arg1 is CManuver270)){
ringCollection[_arg2].degree = "270";
} else {
if ((_arg1 is CWithoutManuver)){
ringCollection[_arg2].degree = "normal";
};
};
};
};
}
public function initTimeToStart(){
timer = new Timer(1000, game.timeLevel);
timer.addEventListener(TimerEvent.TIMER, countdown);
timer.start();
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 46
//CHighScoreScreen (ascendPoints.airShow.sources.screenClass.CHighScoreScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
import mochi.*;
public class CHighScoreScreen extends CScreen {
public var txError:TextField;
public var txtScore:TextField;
public var iName:TextField;
public var bt_playmoregames:SimpleButton;
public var bt_submit:SimpleButton;
public var issubmit:Boolean;// = false
public var bt_mainmenu:SimpleButton;
public function CHighScoreScreen(){
issubmit = false;
super();
}
override public function init(){
setButtonListeners();
txtScore.text = String(CGameSession.getInstance().totalScore);
iName.text = "";
CSound.getInstance().playSound(CSound.game_over);
}
private function setButtonListeners(){
bt_playmoregames.addEventListener(MouseEvent.CLICK, clickPlayMoreGames);
bt_mainmenu.addEventListener(MouseEvent.CLICK, mainMenu);
bt_submit.addEventListener(MouseEvent.CLICK, submitScore);
}
private function submitScore(_arg1:MouseEvent){
var _local2:String;
var _local3:String;
var _local4:URLRequest;
var _local5:*;
var _local6:URLLoader;
_local2 = iName.text;
if (_local2 == ""){
return;
};
_local3 = "http://www.play4all.net/highscores/submit/play4scores.php";
_local4 = new URLRequest(_local3);
_local4.method = URLRequestMethod.POST;
_local5 = new URLVariables();
_local5.game_id = "459";
_local5.user_id = _local2.substr(0, 15);
_local5.score = CGameSession.getInstance().totalScore;
_local4.data = _local5;
_local6 = new URLLoader();
_local6.addEventListener(Event.COMPLETE, completeHandler);
_local6.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_local6.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_local6.load(_local4);
bt_submit.visible = false;
iName.visible = false;
trace("submit");
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
trace(("ioErrorHandler: " + _arg1));
nextScreenName = "mainmenuscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
private function securityErrorHandler(_arg1:SecurityErrorEvent):void{
trace(("securityErrorHandler: " + _arg1));
nextScreenName = "mainmenuscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
private function mainMenu(_arg1:MouseEvent){
CSound.getInstance().stopSound(CSound.game_over);
nextScreenName = "mainmenuscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
private function completeHandler(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.play4all.net/highscores_tmp.php?gameid=459&type=daily");
_local2.method = URLRequestMethod.POST;
navigateToURL(_local2, "_blank");
CSound.getInstance().stopSound(CSound.game_over);
nextScreenName = "mainmenuscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
override public function destroy(){
}
private function clickPlayMoreGames(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.play4all.net"), "_blank");
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 47
//CLevelUpScreen (ascendPoints.airShow.sources.screenClass.CLevelUpScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.text.*;
public class CLevelUpScreen extends CScreen {
public var txtScore:TextField;
public var menu:MovieClip;
public var txtScoreTotal:TextField;
public var animation:MovieClip;
public var toScreen:String;
public var bt_nextlevel:SimpleButton;
override public function init(){
CSound.getInstance().playSound(CSound.bg_music);
setButtonListeners();
CGameSession.getInstance().totalScore = (CGameSession.getInstance().totalScore + CGameSession.getInstance().score);
CGameSession.getInstance().level = (CGameSession.getInstance().level + 1);
gotoAndPlay("buka");
}
public function nextScreen(){
nextScreenName = "missionscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
public function setScore(){
txtScore.text = String(CGameSession.getInstance().score);
txtScoreTotal.text = String(CGameSession.getInstance().totalScore);
CGameSession.getInstance().score = 0;
}
private function setButtonListeners(){
CSound.getInstance().playSound(CSound.click_button);
bt_nextlevel.addEventListener(MouseEvent.CLICK, nextLevel);
}
private function nextLevel(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
gotoAndPlay("tutup");
bt_nextlevel.removeEventListener(MouseEvent.CLICK, nextLevel);
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 48
//CMainMenuScreen (ascendPoints.airShow.sources.screenClass.CMainMenuScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.net.*;
public class CMainMenuScreen extends CScreen {
public var bt_play:SimpleButton;
public var bt_moregame:SimpleButton;
public var bt_add:SimpleButton;
public var bt_highscore:SimpleButton;
public var btPlay4All:MovieClip;
public var bt_credits:SimpleButton;
public var toScreen:String;
override public function init(){
CSound.getInstance().playSound(CSound.bg_music);
CGameSession.getInstance().startNewGame();
setButtonListeners();
gotoAndPlay("buka");
}
private function clickPlay(_arg1:MouseEvent){
toScreen = "missionscreen";
CSound.getInstance().playSound(CSound.click_button);
gotoAndPlay("tutup");
CGameSession.getInstance().fromScreen = "mainmenu";
bt_play.removeEventListener(MouseEvent.CLICK, clickPlay);
}
public function nextScreen(){
nextScreenName = toScreen;
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
private function setButtonListeners(){
bt_highscore.addEventListener(MouseEvent.CLICK, clickHighScore);
bt_add.addEventListener(MouseEvent.CLICK, clickAddThisGame);
bt_moregame.addEventListener(MouseEvent.CLICK, clickPlayMoreGames);
bt_play.addEventListener(MouseEvent.CLICK, clickPlay);
bt_credits.addEventListener(MouseEvent.CLICK, clickCredit);
btPlay4All.addEventListener(MouseEvent.CLICK, clickbtPlay4All);
}
private function clickbtPlay4All(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
navigateToURL(new URLRequest("http://www.play4all.net"), "_blank");
}
private function clickHighScore(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
navigateToURL(new URLRequest("http://www.play4all.net/highscores_tmp.php?gameid=459&type=daily"), "_blank");
}
private function clickCredit(_arg1:MouseEvent){
toScreen = "creditsscreen";
CSound.getInstance().playSound(CSound.click_button);
gotoAndPlay("tutup");
bt_credits.removeEventListener(MouseEvent.CLICK, clickCredit);
}
private function clickAddThisGame(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
navigateToURL(new URLRequest("http://www.play4all.net/download.php"), "_blank");
}
private function clickHelp(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
nextScreenName = "helpscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
private function clickPlayMoreGames(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
navigateToURL(new URLRequest("http://www.play4all.net"), "_blank");
trace("clickPlayMoreGames");
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 49
//CMissionScreen (ascendPoints.airShow.sources.screenClass.CMissionScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.text.*;
public class CMissionScreen extends CScreen {
public var bt_play:SimpleButton;
public var txtLevel:TextField;
public var objective:MovieClip;
public function setObjective(){
objective = new CObjective();
addChild(objective);
objective.x = 270;
objective.y = 170;
objective.gotoAndStop(CGameSession.getInstance().level);
setChildIndex(objective, 1);
}
override public function init(){
bt_play.addEventListener(MouseEvent.CLICK, clickPlay);
gotoAndPlay("buka");
}
public function removeObjective(){
if (objective){
removeChild(objective);
};
objective = null;
}
private function clickPlay(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
gotoAndPlay("tutup");
}
public function nextScreen(){
nextScreenName = "gamescreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
public function removeEvent(){
bt_play.removeEventListener(MouseEvent.CLICK, clickPlay);
}
public function setLevel(){
txtLevel.text = ("LEVEL " + String(CGameSession.getInstance().level));
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 50
//CPreLoaderScreen (ascendPoints.airShow.sources.screenClass.CPreLoaderScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
public class CPreLoaderScreen extends CScreen {
public function CPreLoaderScreen(){
trace("preloader");
}
override public function init(){
addEventListener(Event.ENTER_FRAME, onEnterFrame);
startLoading();
}
private function startLoading(){
}
private function onEnterFrame(_arg1:Event){
var _local2:MovieClip;
_local2 = MovieClip(_arg1.target);
if (_local2.wadahProgressBar.currentFrame >= 100){
_local2.wadahProgressBar.gotoAndStop(1);
_local2.stopLoading();
_local2.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
};
}
public function stopLoading(){
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
override public function destroy(){
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 51
//CTitlingScreen (ascendPoints.airShow.sources.screenClass.CTitlingScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class CTitlingScreen extends CScreen {
var mytimer:Timer;
public var mcTitling:MovieClip;
public function endAnimation(){
stop();
nextScreenName = "mainmenuscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
override public function init(){
gotoAndPlay(2);
}
public function daftarButtons(){
}
private function onClick(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.play4all.net"), "_blank");
}
override public function destroy(){
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 52
//CWinScreen (ascendPoints.airShow.sources.screenClass.CWinScreen)
package ascendPoints.airShow.sources.screenClass {
import flash.display.*;
import ascendPoints.airShow.sources.globalClass.*;
import flash.events.*;
import flash.text.*;
import flash.net.*;
public class CWinScreen extends CScreen {
public var txtScore:TextField;
public var bt_submit:SimpleButton;
public var bt_playmoregames:SimpleButton;
public var toScreen:String;
public var bt_mainmenu:SimpleButton;
override public function init(){
gotoAndPlay("buka");
CSound.getInstance().playSound(CSound.bg_music);
setButtonListeners();
txtScore.text = String(CGameSession.getInstance().totalScore);
}
public function nextScreen(){
nextScreenName = "mainmenuscreen";
dispatchEvent(new Event("callNextScreen"));
dispatchEvent(new Event("endScreen"));
}
private function setButtonListeners(){
bt_playmoregames.addEventListener(MouseEvent.CLICK, clickPlayMoreGames);
bt_mainmenu.addEventListener(MouseEvent.CLICK, mainMenu);
bt_submit.addEventListener(MouseEvent.CLICK, submitScore);
}
private function submitScore(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
trace("submit");
}
private function mainMenu(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
gotoAndPlay("tutup");
}
private function clickPlayMoreGames(_arg1:MouseEvent){
CSound.getInstance().playSound(CSound.click_button);
navigateToURL(new URLRequest("http://www.play4all.net"), "_blank");
}
}
}//package ascendPoints.airShow.sources.screenClass
Section 53
//CAllStatus (CAllStatus)
package {
import flash.display.*;
import flash.text.*;
public dynamic class CAllStatus extends MovieClip {
public var curScore:TextField;
public var btPlay4All:MovieClip;
public var chanceManuver:MovieClip;
public var totalScore:TextField;
public var LeftTime:TextField;
}
}//package
Section 54
//CBackgroundSky (CBackgroundSky)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CBackgroundSky extends CBackgroundSky {
}
}//package
Section 55
//CCheckpoint (CCheckpoint)
package {
import flash.media.*;
public dynamic class CCheckpoint extends Sound {
}
}//package
Section 56
//CCheckpointFailed (CCheckpointFailed)
package {
import flash.media.*;
public dynamic class CCheckpointFailed extends Sound {
}
}//package
Section 57
//CClickSound (CClickSound)
package {
import flash.media.*;
public dynamic class CClickSound extends Sound {
}
}//package
Section 58
//CCreditsScreen (CCreditsScreen)
package {
import ascendPoints.airShow.sources.screenClass.*;
public dynamic class CCreditsScreen extends CCreditsScreen {
public function CCreditsScreen(){
addFrameScript(0, frame1, 29, frame30, 61, frame62);
}
function frame1(){
stop();
}
function frame30(){
nextScreen();
stop();
}
function frame62(){
gotoAndStop(1);
}
}
}//package
Section 59
//CExplode (CExplode)
package {
import flash.display.*;
public dynamic class CExplode extends MovieClip {
public function CExplode(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 60
//CExplode_3 (CExplode_3)
package {
import flash.media.*;
public dynamic class CExplode_3 extends Sound {
}
}//package
Section 61
//CFailed (CFailed)
package {
import flash.display.*;
import flash.text.*;
public dynamic class CFailed extends MovieClip {
public var textFailed:TextField;
}
}//package
Section 62
//CGameOverScreen (CGameOverScreen)
package {
import ascendPoints.airShow.sources.screenClass.*;
public dynamic class CGameOverScreen extends CGameOverScreen {
public function CGameOverScreen(){
addFrameScript(0, frame1, 29, frame30, 61, frame62);
}
function frame1(){
stop();
}
function frame30(){
nextScreen();
stop();
}
function frame62(){
gotoAndStop(1);
}
}
}//package
Section 63
//CGameScreen (CGameScreen)
package {
import ascendPoints.airShow.sources.screenClass.*;
public dynamic class CGameScreen extends CGameScreen {
}
}//package
Section 64
//CGroundLayer1 (CGroundLayer1)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CGroundLayer1 extends CGroundLayer1 {
public function CGroundLayer1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 65
//CGroundLayer2 (CGroundLayer2)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CGroundLayer2 extends CGroundLayer2 {
public function CGroundLayer2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 66
//CHighScoreScreen (CHighScoreScreen)
package {
import ascendPoints.airShow.sources.screenClass.*;
public dynamic class CHighScoreScreen extends CHighScoreScreen {
}
}//package
Section 67
//CLevelUpScreen (CLevelUpScreen)
package {
import ascendPoints.airShow.sources.screenClass.*;
public dynamic class CLevelUpScreen extends CLevelUpScreen {
public function CLevelUpScreen(){
addFrameScript(0, frame1, 29, frame30, 30, frame31, 61, frame62);
}
function frame1(){
stop();
}
function frame30(){
nextScreen();
stop();
}
function frame31(){
setScore();
}
function frame62(){
stop();
}
}
}//package
Section 68
//CMainMenuScreen (CMainMenuScreen)
package {
import ascendPoints.airShow.sources.screenClass.*;
public dynamic class CMainMenuScreen extends CMainMenuScreen {
public function CMainMenuScreen(){
addFrameScript(0, frame1, 29, frame30, 61, frame62);
}
function frame1(){
stop();
}
function frame30(){
nextScreen();
stop();
}
function frame62(){
gotoAndStop(1);
}
}
}//package
Section 69
//CMainShip (CMainShip)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CMainShip extends CMainShip {
public function CMainShip(){
addFrameScript(0, frame1, 16, frame17, 36, frame37, 38, frame39, 42, frame43, 55, frame56, 57, frame58, 66, frame67, 74, frame75, 76, frame77, 81, frame82, 82, frame83, 83, frame84, 97, frame98, 123, frame124, 125, frame126, 132, frame133, 148, frame149, 150, frame151, 162, frame163, 174, frame175, 176, frame177, 183, frame184, 184, frame185, 185, frame186, 198, frame199, 222, frame223, 224, frame225, 229, frame230, 245, frame246, 247, frame248, 259, frame260, 268, frame269, 270, frame271, 278, frame279, 279, frame280);
}
function frame151(){
posisi = "normal";
}
function frame271(){
posisi = "normal";
}
function frame75(){
posisi = "270";
}
function frame77(){
posisi = "normal";
}
function frame279(){
gotoAndPlay("normal3");
}
function frame280(){
gotoAndPlay("kapal3");
}
function frame84(){
stop();
}
function frame82(){
gotoAndPlay("normal1");
}
function frame260(){
gotoAndPlay("normal3");
}
function frame163(){
gotoAndPlay("normal2");
}
function frame98(){
posisi = "normal";
stop();
}
function frame177(){
posisi = "normal";
}
function frame186(){
stop();
}
function frame1(){
stop();
}
function frame185(){
gotoAndPlay("kapal2");
}
function frame17(){
posisi = "normal";
stop();
}
function frame225(){
posisi = "normal";
}
function frame37(){
posisi = "90";
}
function frame184(){
gotoAndPlay("normal2");
}
function frame223(){
posisi = "90";
}
function frame124(){
posisi = "90";
}
function frame246(){
posisi = "180";
}
function frame126(){
posisi = "normal";
}
function frame248(){
posisi = "normal";
}
function frame230(){
gotoAndPlay("normal3");
}
function frame43(){
gotoAndPlay("normal1");
}
function frame39(){
posisi = "normal";
}
function frame199(){
posisi = "normal";
stop();
}
function frame56(){
posisi = "180";
}
function frame83(){
gotoAndPlay("kapal1");
}
function frame58(){
posisi = "normal";
}
function frame269(){
posisi = "270";
}
function frame149(){
posisi = "180";
}
function frame67(){
gotoAndPlay("normal1");
}
function frame133(){
gotoAndPlay("normal2");
}
function frame175(){
posisi = "270";
}
}
}//package
Section 70
//CMainShip4 (CMainShip4)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CMainShip4 extends CMainShip {
public function CMainShip4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 71
//CMainShip5 (CMainShip5)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CMainShip5 extends CMainShip {
public function CMainShip5(){
addFrameScript(0, frame1, 5, frame6, 14, frame15, 15, frame16);
}
function frame6(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame15(){
stop();
}
}
}//package
Section 72
//CMainShip6 (CMainShip6)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CMainShip6 extends CMainShip {
public function CMainShip6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 73
//CManuver180 (CManuver180)
package {
import flash.display.*;
public dynamic class CManuver180 extends MovieClip {
}
}//package
Section 74
//CManuver270 (CManuver270)
package {
import flash.display.*;
public dynamic class CManuver270 extends MovieClip {
}
}//package
Section 75
//CManuver90 (CManuver90)
package {
import flash.display.*;
public dynamic class CManuver90 extends MovieClip {
}
}//package
Section 76
//CManuverStatus (CManuverStatus)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CManuverStatus extends CManuverStatus {
public function CManuverStatus(){
addFrameScript(3, frame4, 7, frame8);
}
function frame8(){
gotoAndPlay("failed");
}
function frame4(){
gotoAndPlay("success");
}
}
}//package
Section 77
//CMenu (CMenu)
package {
import flash.display.*;
public dynamic class CMenu extends MovieClip {
}
}//package
Section 78
//CMissionScreen (CMissionScreen)
package {
import ascendPoints.airShow.sources.screenClass.*;
public dynamic class CMissionScreen extends CMissionScreen {
public function CMissionScreen(){
addFrameScript(0, frame1, 29, frame30, 30, frame31, 61, frame62);
}
function frame1(){
stop();
}
function frame30(){
nextScreen();
removeObjective();
stop();
}
function frame31(){
setLevel();
setObjective();
}
function frame62(){
gotoAndStop(1);
}
}
}//package
Section 79
//CObjective (CObjective)
package {
import flash.display.*;
public dynamic class CObjective extends MovieClip {
public var finishManuver:MovieClip;
public var startManuver:CStartManuver;
public function CObjective(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15);
}
function frame14(){
stop();
}
function frame10(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame11(){
stop();
}
}
}//package
Section 80
//CPath1 (CPath1)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CPath1 extends CPath1 {
}
}//package
Section 81
//CPlaneArea (CPlaneArea)
package {
import flash.display.*;
public dynamic class CPlaneArea extends MovieClip {
}
}//package
Section 82
//CPlay (CPlay)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CPlay extends CPlay {
}
}//package
Section 83
//CPlusLife (CPlusLife)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CPlusLife extends CPlusLife {
}
}//package
Section 84
//CPlusPoint (CPlusPoint)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CPlusPoint extends CPlusPoint {
}
}//package
Section 85
//CRing (CRing)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CRing extends CRing {
}
}//package
Section 86
//CRingBonus (CRingBonus)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CRingBonus extends CRingBonus {
}
}//package
Section 87
//CRingLife (CRingLife)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CRingLife extends CRingLife {
}
}//package
Section 88
//CShipLayer (CShipLayer)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CShipLayer extends CShipLayer {
}
}//package
Section 89
//CSkyLayer1 (CSkyLayer1)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CSkyLayer1 extends CSkyLayer1 {
}
}//package
Section 90
//CSkyLayer2 (CSkyLayer2)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CSkyLayer2 extends CSkyLayer2 {
}
}//package
Section 91
//CSkyLayer3 (CSkyLayer3)
package {
import ascendPoints.airShow.sources.gameClass.*;
public dynamic class CSkyLayer3 extends CSkyLayer3 {
}
}//package
Section 92
//CStartManuver (CStartManuver)
package {
import flash.display.*;
public dynamic class CStartManuver extends MovieClip {
}
}//package
Section 93
//CTest (CTest)
package {
import flash.display.*;
public dynamic class CTest extends SimpleButton {
}
}//package
Section 94
//CTimeRing (CTimeRing)
package {
import flash.display.*;
import flash.text.*;
public dynamic class CTimeRing extends MovieClip {
public var textTime:TextField;
}
}//package
Section 95
//CTitlingScreen (CTitlingScreen)
package {
import ascendPoints.airShow.sources.screenClass.*;
public dynamic class CTitlingScreen extends CTitlingScreen {
public function CTitlingScreen(){
addFrameScript(0, frame1, 2, frame3, 150, frame151, 151, frame152, 180, frame181);
}
function frame151(){
}
function frame152(){
}
function frame3(){
daftarButtons();
}
function frame1(){
stop();
}
function frame181(){
stop();
endAnimation();
}
}
}//package
Section 96
//CTutupBuka (CTutupBuka)
package {
import flash.display.*;
public dynamic class CTutupBuka extends MovieClip {
public function CTutupBuka(){
addFrameScript(0, frame1, 29, frame30, 61, frame62);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
function frame62(){
stop();
}
}
}//package
Section 97
//CWinScreen (CWinScreen)
package {
import ascendPoints.airShow.sources.screenClass.*;
public dynamic class CWinScreen extends CWinScreen {
public function CWinScreen(){
addFrameScript(0, frame1, 29, frame30, 61, frame62);
}
function frame1(){
stop();
}
function frame30(){
nextScreen();
stop();
}
function frame62(){
gotoAndStop(1);
}
}
}//package
Section 98
//CWithoutManuver (CWithoutManuver)
package {
import flash.display.*;
import flash.text.*;
public dynamic class CWithoutManuver extends MovieClip {
public var textManuver:TextField;
}
}//package
Section 99
//SAeroplane_1 (SAeroplane_1)
package {
import flash.media.*;
public dynamic class SAeroplane_1 extends Sound {
}
}//package
Section 100
//SAeroplane_1a (SAeroplane_1a)
package {
import flash.media.*;
public dynamic class SAeroplane_1a extends Sound {
}
}//package
Section 101
//SAeroplane_2 (SAeroplane_2)
package {
import flash.media.*;
public dynamic class SAeroplane_2 extends Sound {
}
}//package
Section 102
//SAeroplane_2a (SAeroplane_2a)
package {
import flash.media.*;
public dynamic class SAeroplane_2a extends Sound {
}
}//package
Section 103
//SAeroplane_3 (SAeroplane_3)
package {
import flash.media.*;
public dynamic class SAeroplane_3 extends Sound {
}
}//package
Section 104
//SBg_Music (SBg_Music)
package {
import flash.media.*;
public dynamic class SBg_Music extends Sound {
}
}//package
Section 105
//SBg_Music_a (SBg_Music_a)
package {
import flash.media.*;
public dynamic class SBg_Music_a extends Sound {
}
}//package
Section 106
//SBg_Music_b (SBg_Music_b)
package {
import flash.media.*;
public dynamic class SBg_Music_b extends Sound {
}
}//package
Section 107
//SGame_over (SGame_over)
package {
import flash.media.*;
public dynamic class SGame_over extends Sound {
}
}//package