Section 1
//NumberSprite (minigame.dancegame.component.NumberSprite)
package minigame.dancegame.component {
import flash.display.*;
public class NumberSprite extends MovieClip {
public function NumberSprite(_arg1:uint=1){
gotoAndStop(_arg1);
}
public function set number(_arg1:uint):void{
gotoAndStop(_arg1);
}
}
}//package minigame.dancegame.component
Section 2
//AbstractCharacter (minigame.skyracinggame.char.AbstractCharacter)
package minigame.skyracinggame.char {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class AbstractCharacter extends Sprite {
public var isHit:Boolean;// = false
protected var items_sprite:Sprite;
protected var _type:int;
public var initY:Number;// = 0
protected var upBooster:MovieClip;
protected var booster:MovieClip;
protected var propeller:MovieClip;
protected var isBoosterOn:Boolean;// = false
protected var _addSpeed:int;// = 0
protected var body:MovieClip;
protected var frame_offset:int;// = 1
protected var initBodyY:Number;// = 0
protected var wings:MovieClip;
protected var shake_timer:Timer;
protected var _ax:Number;// = 0
protected var initBoosterY:Number;// = 0
protected var _az:Number;// = 0
public static var IS_BUY_PROPELLER:Boolean = false;
public static var IS_BUY_BOOSTER:Boolean = false;
public static var IS_BUY_WINGS:Boolean = false;
public function AbstractCharacter(){
frame_offset = 1;
isBoosterOn = false;
initBodyY = 0;
initBoosterY = 0;
initY = 0;
_ax = 0;
_az = 0;
_addSpeed = 0;
isHit = false;
super();
items_sprite = new Sprite();
body.gotoAndStop(1);
body.scaleY = (body.scaleX = 1.2);
booster.gotoAndStop(1);
booster.scaleY = (booster.scaleX = 1.2);
addChild(body);
addChild(items_sprite);
items_sprite.addChild(booster);
shake_timer = new Timer(40);
initY = y;
}
public function stop():void{
shake_timer.stop();
shake_timer.removeEventListener(TimerEvent.TIMER, setMotion);
}
public function set boosterOn(_arg1:Boolean):void{
isBoosterOn = _arg1;
frame_offset = (_arg1) ? (frame_offset + 4) : (frame_offset - 4);
body.gotoAndStop(frame_offset);
booster.gotoAndStop((_arg1) ? 3 : 2);
if (!_arg1){
body.y = initBodyY;
items_sprite.y = initBoosterY;
};
}
public function get addSpeed():int{
return (_addSpeed);
}
public function getWings():MovieClip{
throw (new Error("getWings 오버라이드 하세요"));
}
public function get ax():Number{
return (_ax);
}
public function get type():int{
return (_type);
}
public function get az():Number{
return (_az);
}
public function start():void{
shake_timer.addEventListener(TimerEvent.TIMER, setMotion);
shake_timer.start();
}
public function setUpbooster():void{
items_sprite.removeChild(booster);
booster = upBooster;
items_sprite.addChild(booster);
booster.gotoAndStop(1);
booster.scaleY = (booster.scaleX = 1.2);
_addSpeed = (_addSpeed + 20);
}
public function setPropeller():void{
propeller.x = 34;
propeller.y = 22;
_ax = (_ax + 0.3);
items_sprite.addChildAt(propeller, items_sprite.getChildIndex(booster));
}
public function setWings():void{
wings.x = 0;
wings.y = 55;
_az = (_az - 0.2);
wings.gotoAndStop(1);
items_sprite.addChildAt(wings, items_sprite.getChildIndex(booster));
}
public function initPosY():void{
this.y = initY;
}
public function calcAniOffset(_arg1:Number, _arg2:Number):void{
var _local3:int;
var _local4:int;
_local3 = Math.round(_arg1);
_local4 = ((Math.abs(_local3))==0) ? 1 : ((_arg2 > 0)) ? 4 : ((_local3 > 0)) ? 3 : 2;
_local4 = (isBoosterOn) ? (_local4 + 4) : (isHit) ? 9 : _local4;
if (frame_offset != _local4){
body.gotoAndStop(_local4);
frame_offset = _local4;
booster.gotoAndStop((isBoosterOn) ? 3 : ((_arg2 < 0)) ? 2 : 1);
};
}
public function set rotate(_arg1:Number):void{
throw (new Error("rotate 오버라이드 하세요"));
}
public function getUpBooster():MovieClip{
throw (new Error("getUpBooster 오버라이드 하세요"));
}
private function setMotion(_arg1:TimerEvent):void{
var _local2:Number;
_local2 = (Math.sin(shake_timer.currentCount) * 1.5);
body.y = (body.y + _local2);
items_sprite.y = (items_sprite.y + _local2);
}
public function getPropeller():MovieClip{
throw (new Error("getPropeller 오버라이드 하세요"));
}
}
}//package minigame.skyracinggame.char
Section 3
//MoonBoyCharacter (minigame.skyracinggame.char.MoonBoyCharacter)
package minigame.skyracinggame.char {
import flash.display.*;
public class MoonBoyCharacter extends AbstractCharacter {
private var OverNext:Class;
private var UpBoosterClip:Class;
private var BodyClip:Class;
private var PropellerClip:Class;
private var WingsClip:Class;
private var OnNext:Class;
private var BoosterClip:Class;
public function MoonBoyCharacter(){
BodyClip = MoonBoyCharacter_BodyClip;
BoosterClip = MoonBoyCharacter_BoosterClip;
UpBoosterClip = MoonBoyCharacter_UpBoosterClip;
PropellerClip = MoonBoyCharacter_PropellerClip;
WingsClip = MoonBoyCharacter_WingsClip;
OnNext = MoonBoyCharacter_OnNext;
OverNext = MoonBoyCharacter_OverNext;
this.body = (new BodyClip() as MovieClip);
this.booster = (new BoosterClip() as MovieClip);
this.upBooster = (new UpBoosterClip() as MovieClip);
this.propeller = (new PropellerClip() as MovieClip);
this.wings = (new WingsClip() as MovieClip);
super();
this._ax = 1.7;
this._az = -2;
this._addSpeed = 20;
this._type = 1;
initBodyY = body.y;
initBoosterY = items_sprite.y;
}
override public function getWings():MovieClip{
return ((new WingsClip() as MovieClip));
}
override public function set rotate(_arg1:Number):void{
rotation = _arg1;
}
override public function getUpBooster():MovieClip{
return ((new UpBoosterClip() as MovieClip));
}
override public function getPropeller():MovieClip{
return ((new PropellerClip() as MovieClip));
}
}
}//package minigame.skyracinggame.char
Section 4
//MoonBoyCharacter_BodyClip (minigame.skyracinggame.char.MoonBoyCharacter_BodyClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonBoyCharacter_BodyClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 5
//MoonBoyCharacter_BoosterClip (minigame.skyracinggame.char.MoonBoyCharacter_BoosterClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonBoyCharacter_BoosterClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 6
//MoonBoyCharacter_OnNext (minigame.skyracinggame.char.MoonBoyCharacter_OnNext)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonBoyCharacter_OnNext extends BitmapAsset {
}
}//package minigame.skyracinggame.char
Section 7
//MoonBoyCharacter_OverNext (minigame.skyracinggame.char.MoonBoyCharacter_OverNext)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonBoyCharacter_OverNext extends BitmapAsset {
}
}//package minigame.skyracinggame.char
Section 8
//MoonBoyCharacter_PropellerClip (minigame.skyracinggame.char.MoonBoyCharacter_PropellerClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonBoyCharacter_PropellerClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 9
//MoonBoyCharacter_UpBoosterClip (minigame.skyracinggame.char.MoonBoyCharacter_UpBoosterClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonBoyCharacter_UpBoosterClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 10
//MoonBoyCharacter_WingsClip (minigame.skyracinggame.char.MoonBoyCharacter_WingsClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonBoyCharacter_WingsClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 11
//MoonRabbitCharacter (minigame.skyracinggame.char.MoonRabbitCharacter)
package minigame.skyracinggame.char {
import flash.display.*;
public class MoonRabbitCharacter extends AbstractCharacter {
private var UpBoosterClip:Class;
private var BodyClip:Class;
private var PropellerClip:Class;
private var WingsClip:Class;
private var BoosterClip:Class;
public function MoonRabbitCharacter(){
BodyClip = MoonRabbitCharacter_BodyClip;
BoosterClip = MoonRabbitCharacter_BoosterClip;
UpBoosterClip = MoonRabbitCharacter_UpBoosterClip;
PropellerClip = MoonRabbitCharacter_PropellerClip;
WingsClip = MoonRabbitCharacter_WingsClip;
this.body = (new BodyClip() as MovieClip);
this.booster = (new BoosterClip() as MovieClip);
this.upBooster = (new UpBoosterClip() as MovieClip);
this.propeller = (new PropellerClip() as MovieClip);
this.wings = (new WingsClip() as MovieClip);
super();
this._ax = 1.9;
this._az = -1.8;
this._addSpeed = 0;
this._type = 2;
initBodyY = body.y;
initBoosterY = items_sprite.y;
}
override public function getWings():MovieClip{
return ((new WingsClip() as MovieClip));
}
override public function set rotate(_arg1:Number):void{
rotation = _arg1;
}
override public function getUpBooster():MovieClip{
return ((new UpBoosterClip() as MovieClip));
}
override public function getPropeller():MovieClip{
return ((new PropellerClip() as MovieClip));
}
}
}//package minigame.skyracinggame.char
Section 12
//MoonRabbitCharacter_BodyClip (minigame.skyracinggame.char.MoonRabbitCharacter_BodyClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonRabbitCharacter_BodyClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 13
//MoonRabbitCharacter_BoosterClip (minigame.skyracinggame.char.MoonRabbitCharacter_BoosterClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonRabbitCharacter_BoosterClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 14
//MoonRabbitCharacter_PropellerClip (minigame.skyracinggame.char.MoonRabbitCharacter_PropellerClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonRabbitCharacter_PropellerClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 15
//MoonRabbitCharacter_UpBoosterClip (minigame.skyracinggame.char.MoonRabbitCharacter_UpBoosterClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonRabbitCharacter_UpBoosterClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 16
//MoonRabbitCharacter_WingsClip (minigame.skyracinggame.char.MoonRabbitCharacter_WingsClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class MoonRabbitCharacter_WingsClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 17
//YojoCharacter (minigame.skyracinggame.char.YojoCharacter)
package minigame.skyracinggame.char {
import flash.display.*;
public class YojoCharacter extends AbstractCharacter {
private var UpBoosterClip:Class;
private var BodyClip:Class;
private var PropellerClip:Class;
private var WingsClip:Class;
private var BoosterClip:Class;
public function YojoCharacter(){
BodyClip = YojoCharacter_BodyClip;
BoosterClip = YojoCharacter_BoosterClip;
UpBoosterClip = YojoCharacter_UpBoosterClip;
PropellerClip = YojoCharacter_PropellerClip;
WingsClip = YojoCharacter_WingsClip;
this.body = (new BodyClip() as MovieClip);
this.booster = (new BoosterClip() as MovieClip);
this.upBooster = (new UpBoosterClip() as MovieClip);
this.propeller = (new PropellerClip() as MovieClip);
this.wings = (new WingsClip() as MovieClip);
super();
this._ax = 1.5;
this._az = -2.2;
this._addSpeed = 10;
this._type = 0;
initBodyY = body.y;
initBoosterY = items_sprite.y;
}
override public function getWings():MovieClip{
return ((new WingsClip() as MovieClip));
}
override public function set rotate(_arg1:Number):void{
rotation = _arg1;
}
override public function getUpBooster():MovieClip{
return ((new UpBoosterClip() as MovieClip));
}
override public function getPropeller():MovieClip{
return ((new PropellerClip() as MovieClip));
}
}
}//package minigame.skyracinggame.char
Section 18
//YojoCharacter_BodyClip (minigame.skyracinggame.char.YojoCharacter_BodyClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class YojoCharacter_BodyClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 19
//YojoCharacter_BoosterClip (minigame.skyracinggame.char.YojoCharacter_BoosterClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class YojoCharacter_BoosterClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 20
//YojoCharacter_PropellerClip (minigame.skyracinggame.char.YojoCharacter_PropellerClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class YojoCharacter_PropellerClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 21
//YojoCharacter_UpBoosterClip (minigame.skyracinggame.char.YojoCharacter_UpBoosterClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class YojoCharacter_UpBoosterClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 22
//YojoCharacter_WingsClip (minigame.skyracinggame.char.YojoCharacter_WingsClip)
package minigame.skyracinggame.char {
import mx.core.*;
public class YojoCharacter_WingsClip extends MovieClipAsset {
}
}//package minigame.skyracinggame.char
Section 23
//AbstractCoin (minigame.skyracinggame.coin.AbstractCoin)
package minigame.skyracinggame.coin {
import minigame.skyracinggame.char.*;
import minigame.skyracinggame.component.*;
import minigame.skyracinggame.event.*;
public class AbstractCoin extends Advence3DSprite {
protected var money:int;
public static var CHAR:AbstractCharacter;
public function AbstractCoin(_arg1:int=0){
this.money = _arg1;
}
public function checkHit():void{
if ((((zpos < 1)) && (CHAR.hitTestObject(this)))){
dispatchEvent(new CoinEvent(CoinEvent.HIT, money));
};
}
}
}//package minigame.skyracinggame.coin
Section 24
//CoinGenerater (minigame.skyracinggame.coin.CoinGenerater)
package minigame.skyracinggame.coin {
public class CoinGenerater {
public function getCoin():AbstractCoin{
var _local1:uint;
var _local2:AbstractCoin;
_local1 = Math.floor((Math.random() * 3));
switch (_local1){
case 0:
_local2 = new CopperCoin();
break;
case 1:
_local2 = new SilverCoin();
break;
case 2:
_local2 = new GoldCoin();
break;
};
return (_local2);
}
}
}//package minigame.skyracinggame.coin
Section 25
//CopperCoin (minigame.skyracinggame.coin.CopperCoin)
package minigame.skyracinggame.coin {
public class CopperCoin extends AbstractCoin {
public function CopperCoin(){
super(10);
}
}
}//package minigame.skyracinggame.coin
Section 26
//GoldCoin (minigame.skyracinggame.coin.GoldCoin)
package minigame.skyracinggame.coin {
public class GoldCoin extends AbstractCoin {
public function GoldCoin(){
super(100);
}
}
}//package minigame.skyracinggame.coin
Section 27
//SilverCoin (minigame.skyracinggame.coin.SilverCoin)
package minigame.skyracinggame.coin {
public class SilverCoin extends AbstractCoin {
public function SilverCoin(){
super(50);
}
}
}//package minigame.skyracinggame.coin
Section 28
//AbilityDisplayer (minigame.skyracinggame.component.AbilityDisplayer)
package minigame.skyracinggame.component {
import flash.display.*;
public class AbilityDisplayer extends Sprite {
private var greenBar:Bitmap;
private var GreenBarE:Class;
private var BlueBarE:Class;
private var BlueBarM:Class;
private var GreenBarM:Class;
private var blueBar:Bitmap;
private var initWidth:Number;
private var RedBarM:Class;
private var RedBarE:Class;
private var redBar:Bitmap;
private var greenBarEnd:Bitmap;
private var BarInit:Class;
private var redBarEnd:Bitmap;
private var blueBarEnd:Bitmap;
public function AbilityDisplayer(){
var _local1:Bitmap;
RedBarM = AbilityDisplayer_RedBarM;
RedBarE = AbilityDisplayer_RedBarE;
BlueBarM = AbilityDisplayer_BlueBarM;
BlueBarE = AbilityDisplayer_BlueBarE;
GreenBarM = AbilityDisplayer_GreenBarM;
GreenBarE = AbilityDisplayer_GreenBarE;
BarInit = AbilityDisplayer_BarInit;
super();
_local1 = new BarInit();
initWidth = _local1.width;
redBar = new RedBarM();
blueBar = new BlueBarM();
greenBar = new GreenBarM();
greenBar.x = (blueBar.x = (redBar.x = _local1.width));
redBarEnd = new RedBarE();
blueBarEnd = new BlueBarE();
greenBarEnd = new GreenBarE();
redBarEnd.y = (redBar.y = 0);
blueBarEnd.y = (blueBar.y = 21);
blueBarEnd.y = (blueBarEnd.y - 1);
greenBarEnd.y = (greenBar.y = 41);
addChild(_local1);
addChild(redBar);
addChild(blueBar);
addChild(greenBar);
addChild(redBarEnd);
addChild(blueBarEnd);
addChild(greenBarEnd);
}
public function showAbility(_arg1:Number, _arg2:Number, _arg3:Number):void{
redBar.scaleX = _arg1;
blueBar.scaleX = _arg2;
greenBar.scaleX = _arg3;
redBarEnd.x = (initWidth + redBar.width);
blueBarEnd.x = (initWidth + blueBar.width);
greenBarEnd.x = (initWidth + greenBar.width);
}
}
}//package minigame.skyracinggame.component
Section 29
//AbilityDisplayer_BarInit (minigame.skyracinggame.component.AbilityDisplayer_BarInit)
package minigame.skyracinggame.component {
import mx.core.*;
public class AbilityDisplayer_BarInit extends BitmapAsset {
}
}//package minigame.skyracinggame.component
Section 30
//AbilityDisplayer_BlueBarE (minigame.skyracinggame.component.AbilityDisplayer_BlueBarE)
package minigame.skyracinggame.component {
import mx.core.*;
public class AbilityDisplayer_BlueBarE extends BitmapAsset {
}
}//package minigame.skyracinggame.component
Section 31
//AbilityDisplayer_BlueBarM (minigame.skyracinggame.component.AbilityDisplayer_BlueBarM)
package minigame.skyracinggame.component {
import mx.core.*;
public class AbilityDisplayer_BlueBarM extends BitmapAsset {
}
}//package minigame.skyracinggame.component
Section 32
//AbilityDisplayer_GreenBarE (minigame.skyracinggame.component.AbilityDisplayer_GreenBarE)
package minigame.skyracinggame.component {
import mx.core.*;
public class AbilityDisplayer_GreenBarE extends BitmapAsset {
}
}//package minigame.skyracinggame.component
Section 33
//AbilityDisplayer_GreenBarM (minigame.skyracinggame.component.AbilityDisplayer_GreenBarM)
package minigame.skyracinggame.component {
import mx.core.*;
public class AbilityDisplayer_GreenBarM extends BitmapAsset {
}
}//package minigame.skyracinggame.component
Section 34
//AbilityDisplayer_RedBarE (minigame.skyracinggame.component.AbilityDisplayer_RedBarE)
package minigame.skyracinggame.component {
import mx.core.*;
public class AbilityDisplayer_RedBarE extends BitmapAsset {
}
}//package minigame.skyracinggame.component
Section 35
//AbilityDisplayer_RedBarM (minigame.skyracinggame.component.AbilityDisplayer_RedBarM)
package minigame.skyracinggame.component {
import mx.core.*;
public class AbilityDisplayer_RedBarM extends BitmapAsset {
}
}//package minigame.skyracinggame.component
Section 36
//Advence3DSprite (minigame.skyracinggame.component.Advence3DSprite)
package minigame.skyracinggame.component {
public class Advence3DSprite extends Display3DSprite {
public var limitY:Number;// = 0
public function Advence3DSprite(){
limitY = 0;
super();
}
}
}//package minigame.skyracinggame.component
Section 37
//AniMoneyNumberSprite (minigame.skyracinggame.component.AniMoneyNumberSprite)
package minigame.skyracinggame.component {
import yojogame.common.component.*;
public class AniMoneyNumberSprite extends AbstractAniNumberSprite {
public function AniMoneyNumberSprite(_arg1:int=10){
super(_arg1);
}
}
}//package minigame.skyracinggame.component
Section 38
//Cloud (minigame.skyracinggame.component.Cloud)
package minigame.skyracinggame.component {
public class Cloud extends Display3DSprite {
public function Cloud(_arg1:uint=0xFF8800){
var _local2:uint;
_local2 = 20;
super();
graphics.beginFill(_arg1);
graphics.drawCircle(_local2, _local2, (_local2 * 2));
graphics.endFill();
}
}
}//package minigame.skyracinggame.component
Section 39
//Display3DSprite (minigame.skyracinggame.component.Display3DSprite)
package minigame.skyracinggame.component {
import flash.display.*;
public class Display3DSprite extends Sprite {
public var ypos:Number;// = 0
public var zpos:Number;// = 0
public var xpos:Number;// = 0
public function Display3DSprite(){
xpos = 0;
ypos = 0;
zpos = 0;
super();
}
}
}//package minigame.skyracinggame.component
Section 40
//ExplainWindowContent (minigame.skyracinggame.component.ExplainWindowContent)
package minigame.skyracinggame.component {
import flash.display.*;
import yojogame.common.component.*;
public class ExplainWindowContent extends AbstractWindowContent {
private var PageImg:Class;
public function ExplainWindowContent(){
var _local1:Bitmap;
PageImg = ExplainWindowContent_PageImg;
super(450, 300);
_local1 = (new PageImg() as Bitmap);
_local1.name = "explain_bit";
addChildAt(_local1, super.getBoxIndex());
}
override public function destroy():void{
var _local1:DisplayObject;
_local1 = this.getChildByName("explain_bit");
removeChild(_local1);
_local1 = null;
super.destroy();
}
}
}//package minigame.skyracinggame.component
Section 41
//ExplainWindowContent_PageImg (minigame.skyracinggame.component.ExplainWindowContent_PageImg)
package minigame.skyracinggame.component {
import mx.core.*;
public class ExplainWindowContent_PageImg extends BitmapAsset {
}
}//package minigame.skyracinggame.component
Section 42
//RoadImage (minigame.skyracinggame.component.RoadImage)
package minigame.skyracinggame.component {
import flash.display.*;
public class RoadImage extends Advence3DSprite {
public function RoadImage(_arg1:Class){
addChild((new (_arg1) as Sprite));
}
}
}//package minigame.skyracinggame.component
Section 43
//RoadImageSupplier (minigame.skyracinggame.component.RoadImageSupplier)
package minigame.skyracinggame.component {
import flash.events.*;
import flash.display.*;
import flash.system.*;
public class RoadImageSupplier extends Sprite {
private var appDomain:ApplicationDomain;
public function RoadImageSupplier(_arg1:ApplicationDomain){
this.appDomain = _arg1;
}
public function getImageClass(_arg1:String):Class{
return (Class(appDomain.getDefinition(_arg1)));
}
private function appAssetInit(_arg1:Event):void{
appDomain = _arg1.target.content.loaderInfo.applicationDomain;
}
}
}//package minigame.skyracinggame.component
Section 44
//SkyracingGameFrontPage (minigame.skyracinggame.component.SkyracingGameFrontPage)
package minigame.skyracinggame.component {
import flash.display.*;
import yojogame.common.component.*;
public class SkyracingGameFrontPage extends AbstractFrontPage {
private var FrontpageImg:Class;
public function SkyracingGameFrontPage(){
var _local1:DisplayObject;
FrontpageImg = SkyracingGameFrontPage_FrontpageImg;
background_image = new Sprite();
_local1 = new FrontpageImg();
background_image.useHandCursor = false;
background_image.addChild(_local1);
super();
}
}
}//package minigame.skyracinggame.component
Section 45
//SkyracingGameFrontPage_FrontpageImg (minigame.skyracinggame.component.SkyracingGameFrontPage_FrontpageImg)
package minigame.skyracinggame.component {
import mx.core.*;
public class SkyracingGameFrontPage_FrontpageImg extends BitmapAsset {
}
}//package minigame.skyracinggame.component
Section 46
//SoundManager (minigame.skyracinggame.component.SoundManager)
package minigame.skyracinggame.component {
import yojogame.common.component.*;
import flash.media.*;
public class SoundManager extends AbstractSoundManager {
private var BGmusic:Class;
private var EffectSnd4:Class;
private var EffectSnd0:Class;
private var EffectSnd5:Class;
private var EffectSnd1:Class;
private var EffectSnd2:Class;
private var EffectSnd3:Class;
public function SoundManager(){
BGmusic = SoundManager_BGmusic;
EffectSnd0 = SoundManager_EffectSnd0;
EffectSnd1 = SoundManager_EffectSnd1;
EffectSnd2 = SoundManager_EffectSnd2;
EffectSnd3 = SoundManager_EffectSnd3;
EffectSnd4 = SoundManager_EffectSnd4;
EffectSnd5 = SoundManager_EffectSnd5;
super(26, 7370);
bg_sound = (new BGmusic() as Sound);
effect_sound_list = new Array(6);
effect_channel_list = new Array(6);
effect_sound_list[0] = (new EffectSnd0() as Sound);
effect_sound_list[1] = (new EffectSnd1() as Sound);
effect_sound_list[2] = (new EffectSnd2() as Sound);
effect_sound_list[3] = (new EffectSnd3() as Sound);
effect_sound_list[4] = (new EffectSnd4() as Sound);
effect_sound_list[5] = (new EffectSnd5() as Sound);
}
}
}//package minigame.skyracinggame.component
Section 47
//SoundManager_BGmusic (minigame.skyracinggame.component.SoundManager_BGmusic)
package minigame.skyracinggame.component {
import mx.core.*;
public class SoundManager_BGmusic extends SoundAsset {
}
}//package minigame.skyracinggame.component
Section 48
//SoundManager_EffectSnd0 (minigame.skyracinggame.component.SoundManager_EffectSnd0)
package minigame.skyracinggame.component {
import mx.core.*;
public class SoundManager_EffectSnd0 extends SoundAsset {
}
}//package minigame.skyracinggame.component
Section 49
//SoundManager_EffectSnd1 (minigame.skyracinggame.component.SoundManager_EffectSnd1)
package minigame.skyracinggame.component {
import mx.core.*;
public class SoundManager_EffectSnd1 extends SoundAsset {
}
}//package minigame.skyracinggame.component
Section 50
//SoundManager_EffectSnd2 (minigame.skyracinggame.component.SoundManager_EffectSnd2)
package minigame.skyracinggame.component {
import mx.core.*;
public class SoundManager_EffectSnd2 extends SoundAsset {
}
}//package minigame.skyracinggame.component
Section 51
//SoundManager_EffectSnd3 (minigame.skyracinggame.component.SoundManager_EffectSnd3)
package minigame.skyracinggame.component {
import mx.core.*;
public class SoundManager_EffectSnd3 extends SoundAsset {
}
}//package minigame.skyracinggame.component
Section 52
//SoundManager_EffectSnd4 (minigame.skyracinggame.component.SoundManager_EffectSnd4)
package minigame.skyracinggame.component {
import mx.core.*;
public class SoundManager_EffectSnd4 extends SoundAsset {
}
}//package minigame.skyracinggame.component
Section 53
//SoundManager_EffectSnd5 (minigame.skyracinggame.component.SoundManager_EffectSnd5)
package minigame.skyracinggame.component {
import mx.core.*;
public class SoundManager_EffectSnd5 extends SoundAsset {
}
}//package minigame.skyracinggame.component
Section 54
//SpeedNumber (minigame.skyracinggame.component.SpeedNumber)
package minigame.skyracinggame.component {
import yojogame.common.component.*;
public class SpeedNumber extends AbstractNumberSprite {
public function SpeedNumber(_arg1:int=10){
super(_arg1);
}
}
}//package minigame.skyracinggame.component
Section 55
//TimeNumberSprite (minigame.skyracinggame.component.TimeNumberSprite)
package minigame.skyracinggame.component {
import yojogame.common.component.*;
public class TimeNumberSprite extends AbstractNumberSprite {
public function TimeNumberSprite(_arg1:uint=10){
super(_arg1);
}
}
}//package minigame.skyracinggame.component
Section 56
//AbstractDisturber (minigame.skyracinggame.enermy.AbstractDisturber)
package minigame.skyracinggame.enermy {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class AbstractDisturber extends MovieClip {
protected var move_timer:Timer;
public static const REMOVE:String = "remove";
public function AbstractDisturber(){
gotoAndStop(1);
move_timer = new Timer(30);
move_timer.addEventListener(TimerEvent.TIMER, move);
}
public function startmove():void{
move_timer.start();
}
protected function move(_arg1:TimerEvent):void{
throw (new Error("override move 해라!!"));
}
}
}//package minigame.skyracinggame.enermy
Section 57
//AbstractEnermy (minigame.skyracinggame.enermy.AbstractEnermy)
package minigame.skyracinggame.enermy {
import flash.events.*;
import flash.display.*;
import minigame.skyracinggame.char.*;
import flash.utils.*;
import minigame.skyracinggame.component.*;
public class AbstractEnermy extends Advence3DSprite {
private var fall_timer:Timer;
private var body:MovieClip;
private var vy:Number;// = 0
public static const HIT:String = "hit";
public static const G:Number = 0.9;
public static const REMOVE_ME:String = "remove_me";
public static var CHAR:AbstractCharacter;
public function AbstractEnermy(_arg1:MovieClip){
vy = 0;
super();
this.body = _arg1;
_arg1.scaleX = (_arg1.scaleY = 1.5);
_arg1.gotoAndStop(1);
addChild(_arg1);
}
public function checkHit():void{
if ((((zpos < 1)) && (CHAR.hitTestObject(this)))){
body.gotoAndStop(2);
dispatchEvent(new Event(AbstractEnermy.HIT));
};
}
private function fall(_arg1:TimerEvent):void{
vy = (vy + G);
y = (y + vy);
if ((400 + (width * 0.5)) < y){
fall_timer.stop();
fall_timer = null;
this.dispatchEvent(new Event(AbstractEnermy.REMOVE_ME));
};
}
public function setSize():void{
body.scaleX = (body.scaleY = 3);
}
public function startFall():void{
fall_timer = new Timer(30);
fall_timer.addEventListener(TimerEvent.TIMER, fall);
fall_timer.start();
}
}
}//package minigame.skyracinggame.enermy
Section 58
//DisturberAirPlain (minigame.skyracinggame.enermy.DisturberAirPlain)
package minigame.skyracinggame.enermy {
import flash.events.*;
public class DisturberAirPlain extends AbstractDisturber {
private var vx:Number;// = 0
public function DisturberAirPlain(){
vx = 0;
super();
x = (550 + width);
y = height;
}
override protected function move(_arg1:TimerEvent):void{
vx = (vx + 0.02);
x = (x - vx);
y = (height + (Math.sin((x * 0.02)) * 5));
if (x < -(width)){
move_timer.stop();
move_timer.removeEventListener(TimerEvent.TIMER, move);
dispatchEvent(new Event(AbstractDisturber.REMOVE));
};
}
}
}//package minigame.skyracinggame.enermy
Section 59
//DisturberBatman (minigame.skyracinggame.enermy.DisturberBatman)
package minigame.skyracinggame.enermy {
import flash.events.*;
public class DisturberBatman extends AbstractDisturber {
private var vx:Number;// = 0
public function DisturberBatman(){
vx = 0;
super();
x = (550 + width);
y = height;
}
private function leaveToStage(_arg1:TimerEvent):void{
vx = (vx + 0.7);
x = (x - vx);
if (x < -(width)){
move_timer.stop();
move_timer.removeEventListener(TimerEvent.TIMER, leaveToStage);
dispatchEvent(new Event(AbstractDisturber.REMOVE));
};
}
override protected function move(_arg1:TimerEvent):void{
vx = 2;
x = (x - vx);
y = (height + (Math.sin((x * 0.05)) * 20));
if (x < 300){
vx = 0;
move_timer.stop();
move_timer.removeEventListener(TimerEvent.TIMER, move);
move_timer.addEventListener(TimerEvent.TIMER, leaveToStage);
move_timer.start();
};
}
}
}//package minigame.skyracinggame.enermy
Section 60
//DisturberSuperman (minigame.skyracinggame.enermy.DisturberSuperman)
package minigame.skyracinggame.enermy {
import flash.events.*;
public class DisturberSuperman extends AbstractDisturber {
private var vx:Number;// = 0
public function DisturberSuperman(){
vx = 0;
super();
x = (550 + width);
y = height;
}
private function leaveToStage(_arg1:TimerEvent):void{
vx = (vx + 0.7);
x = (x - vx);
if (x < -(width)){
move_timer.stop();
move_timer.removeEventListener(TimerEvent.TIMER, leaveToStage);
dispatchEvent(new Event(AbstractDisturber.REMOVE));
};
}
override protected function move(_arg1:TimerEvent):void{
vx = 2;
x = (x - vx);
y = (height + (Math.sin((x * 0.02)) * 20));
if (x < 300){
vx = 0;
move_timer.stop();
move_timer.removeEventListener(TimerEvent.TIMER, move);
move_timer.addEventListener(TimerEvent.TIMER, leaveToStage);
move_timer.start();
};
}
}
}//package minigame.skyracinggame.enermy
Section 61
//DisturberUFO (minigame.skyracinggame.enermy.DisturberUFO)
package minigame.skyracinggame.enermy {
import flash.events.*;
import flash.utils.*;
public class DisturberUFO extends AbstractDisturber {
private var vx:Number;// = 0
public function DisturberUFO(){
vx = 0;
super();
x = (550 + width);
y = (height * 3);
}
private function delay(_arg1:TimerEvent):void{
move_timer.removeEventListener(TimerEvent.TIMER_COMPLETE, delay);
move_timer = new Timer(30);
move_timer.addEventListener(TimerEvent.TIMER, leaveToStage);
move_timer.start();
}
private function leaveToStage(_arg1:TimerEvent):void{
vx = (vx + 0.7);
x = (x - vx);
if (x < -(width)){
move_timer.stop();
move_timer.removeEventListener(TimerEvent.TIMER, leaveToStage);
dispatchEvent(new Event(AbstractDisturber.REMOVE));
};
}
override protected function move(_arg1:TimerEvent):void{
x = (x - 2);
y = ((height * 2) + (Math.sin((x * 0.07)) * height));
if (x < 280){
vx = 0;
move_timer.stop();
move_timer.removeEventListener(TimerEvent.TIMER, move);
move_timer = new Timer(100, 36);
move_timer.addEventListener(TimerEvent.TIMER_COMPLETE, delay);
move_timer.start();
play();
};
}
}
}//package minigame.skyracinggame.enermy
Section 62
//EnermyAlien (minigame.skyracinggame.enermy.EnermyAlien)
package minigame.skyracinggame.enermy {
import flash.display.*;
public class EnermyAlien extends AbstractEnermy {
private var Body:Class;
public function EnermyAlien(){
Body = EnermyAlien_Body;
super((new Body() as MovieClip));
}
}
}//package minigame.skyracinggame.enermy
Section 63
//EnermyAlien_Body (minigame.skyracinggame.enermy.EnermyAlien_Body)
package minigame.skyracinggame.enermy {
import mx.core.*;
public class EnermyAlien_Body extends MovieClipAsset {
}
}//package minigame.skyracinggame.enermy
Section 64
//EnermyCrow (minigame.skyracinggame.enermy.EnermyCrow)
package minigame.skyracinggame.enermy {
import flash.display.*;
public class EnermyCrow extends AbstractEnermy {
private var Body:Class;
public function EnermyCrow(){
Body = EnermyCrow_Body;
super((new Body() as MovieClip));
}
}
}//package minigame.skyracinggame.enermy
Section 65
//EnermyCrow_Body (minigame.skyracinggame.enermy.EnermyCrow_Body)
package minigame.skyracinggame.enermy {
import mx.core.*;
public class EnermyCrow_Body extends MovieClipAsset {
}
}//package minigame.skyracinggame.enermy
Section 66
//EnermyDove (minigame.skyracinggame.enermy.EnermyDove)
package minigame.skyracinggame.enermy {
import flash.display.*;
public class EnermyDove extends AbstractEnermy {
private var Body:Class;
public function EnermyDove(){
Body = EnermyDove_Body;
super((new Body() as MovieClip));
}
}
}//package minigame.skyracinggame.enermy
Section 67
//EnermyDove_Body (minigame.skyracinggame.enermy.EnermyDove_Body)
package minigame.skyracinggame.enermy {
import mx.core.*;
public class EnermyDove_Body extends MovieClipAsset {
}
}//package minigame.skyracinggame.enermy
Section 68
//EnermyEagle (minigame.skyracinggame.enermy.EnermyEagle)
package minigame.skyracinggame.enermy {
import flash.display.*;
public class EnermyEagle extends AbstractEnermy {
private var Body:Class;
public function EnermyEagle(){
Body = EnermyEagle_Body;
super((new Body() as MovieClip));
}
}
}//package minigame.skyracinggame.enermy
Section 69
//EnermyEagle_Body (minigame.skyracinggame.enermy.EnermyEagle_Body)
package minigame.skyracinggame.enermy {
import mx.core.*;
public class EnermyEagle_Body extends MovieClipAsset {
}
}//package minigame.skyracinggame.enermy
Section 70
//EnermyGenerator (minigame.skyracinggame.enermy.EnermyGenerator)
package minigame.skyracinggame.enermy {
public class EnermyGenerator {
public function getEnermy():AbstractEnermy{
var _local1:uint;
var _local2:AbstractEnermy;
_local1 = Math.floor((Math.random() * 4));
switch (_local1){
case 0:
_local2 = new EnermyAlien();
break;
case 1:
_local2 = new EnermyCrow();
break;
case 2:
_local2 = new EnermyDove();
break;
case 3:
_local2 = new EnermyEagle();
break;
};
return (_local2);
}
public function getDisturber():AbstractDisturber{
var _local1:uint;
var _local2:AbstractDisturber;
_local1 = Math.floor((Math.random() * 4));
switch (_local1){
case 0:
_local2 = new DisturberUFO();
break;
case 1:
_local2 = new DisturberAirPlain();
break;
case 2:
_local2 = new DisturberBatman();
break;
case 3:
_local2 = new DisturberSuperman();
break;
};
return (_local2);
}
}
}//package minigame.skyracinggame.enermy
Section 71
//CoinEvent (minigame.skyracinggame.event.CoinEvent)
package minigame.skyracinggame.event {
import flash.events.*;
public class CoinEvent extends Event {
public var money:int;
public static const HIT:String = "hit";
public function CoinEvent(_arg1:String, _arg2:int=0, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.money = _arg2;
}
override public function toString():String{
return (formatToString("CoinEvent", "type", "money", "bubbles", "cancelable", "eventPhase"));
}
override public function clone():Event{
return (new CoinEvent(type, money, bubbles, cancelable));
}
}
}//package minigame.skyracinggame.event
Section 72
//Controll (minigame.skyracinggame.model.Controll)
package minigame.skyracinggame.model {
import flash.events.*;
import flash.display.*;
import minigame.skyracinggame.char.*;
import flash.ui.*;
public class Controll {
private var azBreak:Number;
private var model:Model;
private var addSpeed:int;
private var _target:Stage;
private var ax:Number;
private var az:Number;
public function Controll(_arg1:Stage, _arg2:Model){
_target = _arg1;
this.model = _arg2;
_arg2.addEventListener(Model.HIT_ENERMY, removeKeyEventListener);
_arg2.addEventListener(Model.RECOVER, addKeyEventListener);
_arg2.addEventListener(Model.GAME_OVER, removeKeyEventListener);
_arg2.addEventListener(Model.ADDCONTROLL, addKeyEventListener);
_arg2.addEventListener(Model.REMOVECONTROLL, addKeyEventListener);
}
private function removeKeyEventListener(_arg1:Event=null):void{
_target.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
_target.removeEventListener(KeyboardEvent.KEY_UP, onKeyUp);
}
private function onKeyDown(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case Keyboard.UP:
model.setRunFriction();
model.az = az;
break;
case Keyboard.DOWN:
model.az = 0.6;
break;
case Keyboard.LEFT:
model.ax = ax;
break;
case Keyboard.RIGHT:
model.ax = -(ax);
break;
case Keyboard.SHIFT:
model.boosterOn(addSpeed);
break;
};
}
public function setCharProperty(_arg1:AbstractCharacter):void{
ax = _arg1.ax;
az = _arg1.az;
addSpeed = _arg1.addSpeed;
}
private function onKeyUp(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case Keyboard.UP:
model.setStopFriction();
break;
case Keyboard.DOWN:
model.az = 0;
break;
case Keyboard.LEFT:
model.ax = 0;
break;
case Keyboard.RIGHT:
model.ax = 0;
break;
case Keyboard.SHIFT:
model.offBooster();
break;
};
}
private function addKeyEventListener(_arg1:Event=null):void{
_target.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
_target.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);
}
}
}//package minigame.skyracinggame.model
Section 73
//Model (minigame.skyracinggame.model.Model)
package minigame.skyracinggame.model {
import flash.events.*;
import flash.utils.*;
import minigame.skyracinggame.component.*;
public class Model extends EventDispatcher {
private var road_limit_left:int;// = -340
private var _score:uint;// = 0
private var road_limit_right:int;// = 300
private var recover_timer:Timer;
private var run_friction:Number;// = 0.97
public var ax:Number;// = 0
public var isHasEnergy:Boolean;// = true
public var az:Number;// = 0
public var vx:Number;// = 0
public var vy:Number;// = 0
public var vz:Number;// = 0
private var addVz:int;// = 0
public var money:uint;// = 0
private var booster_timer:Timer;
public var sumvx:Number;// = 0
private var friction:Number;// = 0
private var turn_friction:Number;// = 0.96
public static const BOOSTER_OFF:String = "booster_off";
public static const UPPER_STAGE:String = "upper_stage";
public static const RECOVER:String = "recover";
public static const HIT_ENERMY:String = "hit_enermy";
public static const GAME_OVER:String = "game_over";
public static const REMOVECONTROLL:String = "removecontroll";
public static const BOOSTER_ON:String = "booster_on";
public static const ADDCONTROLL:String = "addcontroll";
public static const END_STAGE:String = "end_stage";
public static var STAGE_NUM:int = 0;
public static var TOTAL_MONEY:uint = 0;
public function Model(){
friction = 0;
run_friction = 0.97;
turn_friction = 0.96;
road_limit_left = -340;
road_limit_right = 300;
addVz = 0;
_score = 0;
money = 0;
sumvx = 0;
ax = 0;
az = 0;
vx = 0;
vy = 0;
vz = 0;
isHasEnergy = true;
super();
booster_timer = new Timer(250, 50000);
booster_timer.addEventListener(TimerEvent.TIMER, onBooster);
booster_timer.addEventListener(TimerEvent.TIMER_COMPLETE, offBooster);
recover_timer = new Timer(100, 20);
recover_timer.addEventListener(TimerEvent.TIMER_COMPLETE, recoverFromHit);
}
private function recoverFromHit(_arg1:TimerEvent):void{
recover_timer.reset();
dispatchEvent(new Event(Model.RECOVER));
}
public function addScoreFromRemainTime(_arg1:int):void{
_score = (_score + _arg1);
}
public function get score():int{
return (_score);
}
public function deactiveControll():void{
dispatchEvent(new Event(Model.REMOVECONTROLL));
}
public function boosterOn(_arg1:int):void{
addVz = (_arg1 + 90);
if (((isHasEnergy) && (!(booster_timer.running)))){
dispatchEvent(new Event(Model.BOOSTER_ON));
booster_timer.start();
};
}
public function offBooster(_arg1:TimerEvent=null):void{
if (booster_timer.running){
booster_timer.stop();
};
booster_timer.reset();
dispatchEvent(new Event(Model.BOOSTER_OFF));
}
public function reflashMoney():int{
money = TOTAL_MONEY;
return (money);
}
public function set score(_arg1:int):void{
_score = _arg1;
}
public function setStopFriction():void{
az = 0;
}
public function buildStage():void{
ax = 0;
az = 0;
vx = 0;
vy = 0;
vz = 0;
sumvx = 0;
isHasEnergy = true;
dispatchEvent(new Event(Model.UPPER_STAGE));
}
private function onBooster(_arg1:TimerEvent):void{
friction = run_friction;
vz = -(addVz);
}
public function hitEnermy():void{
ax = (az = (vx = (vz = 0)));
offBooster();
this.dispatchEvent(new Event(Model.HIT_ENERMY));
recover_timer.start();
}
public function gameover():void{
if (booster_timer.running){
booster_timer.stop();
};
if (recover_timer.running){
recover_timer.stop();
};
_score = (_score + (money - TOTAL_MONEY));
TOTAL_MONEY = money;
dispatchEvent(new Event(Model.GAME_OVER));
}
public function calcfrictionVelocity():void{
vx = (vx * turn_friction);
vy = (vy * turn_friction);
vz = (vz * friction);
}
public function calcVelocity():void{
vx = (vx + ax);
vz = (vz + az);
vz = ((vz > 0)) ? 0 : vz;
sumvx = (sumvx + vx);
}
public function activeControll():void{
dispatchEvent(new Event(Model.ADDCONTROLL));
}
public function setVelocity(_arg1:Display3DSprite):void{
_arg1.xpos = (_arg1.xpos + vx);
_arg1.ypos = (_arg1.ypos + vy);
_arg1.zpos = (_arg1.zpos + vz);
}
public function endStage():void{
if (booster_timer.running){
booster_timer.stop();
};
if (recover_timer.running){
recover_timer.stop();
};
_score = (_score + (money - TOTAL_MONEY));
TOTAL_MONEY = money;
dispatchEvent(new Event(Model.END_STAGE));
}
public function setRunFriction():void{
friction = run_friction;
}
}
}//package minigame.skyracinggame.model
Section 74
//AbstractPage (minigame.skyracinggame.page.AbstractPage)
package minigame.skyracinggame.page {
import flash.events.*;
import flash.display.*;
public class AbstractPage extends Sprite {
public static const GO_STAGE_MAP:String = "go_stage_map";
public static const GO_GAME_STAGE:String = "go_game_stage";
protected function onClickBotton(_arg1:MouseEvent):void{
throw (new Error("override deactivate() PLZ"));
}
}
}//package minigame.skyracinggame.page
Section 75
//CharChoicePage (minigame.skyracinggame.page.CharChoicePage)
package minigame.skyracinggame.page {
import flash.events.*;
import flash.display.*;
import yojogame.common.component.*;
import minigame.skyracinggame.component.*;
public class CharChoicePage extends AbstractPage {
private var OverNext:Class;
private var _charNum:int;
private var moonboy:MovieClip;
private var Title:Class;
private var moonrabbit:MovieClip;
private var moonrabbitN:int;
private var nextBtn:ButtonSprite;
private var moonboyN:int;
private var MoonRabbitChar:Class;
private var ability_bar:AbilityDisplayer;
private var choiceChar:MovieClip;
private var OnNext:Class;
private var Box:Class;
private var yojoN:int;
private var yojo:MovieClip;
private var MoonBoyChar:Class;
private var YojoChar:Class;
public static const MOONBOY:String = "moonboy";
public static const MOONRABBIT:String = "moonrabbit";
public static const YOJO:String = "yojo";
public function CharChoicePage(){
var _local1:Bitmap;
var _local2:Bitmap;
YojoChar = CharChoicePage_YojoChar;
MoonBoyChar = CharChoicePage_MoonBoyChar;
MoonRabbitChar = CharChoicePage_MoonRabbitChar;
Title = CharChoicePage_Title;
Box = CharChoicePage_Box;
OnNext = CharChoicePage_OnNext;
OverNext = CharChoicePage_OverNext;
super();
moonboy = new MoonBoyChar();
moonboy.name = CharChoicePage.MOONBOY;
yojo = new YojoChar();
yojo.name = CharChoicePage.YOJO;
moonrabbit = new MoonRabbitChar();
moonrabbit.name = CharChoicePage.MOONRABBIT;
_local1 = new Title();
_local2 = new Box();
ability_bar = new AbilityDisplayer();
ability_bar.x = 30;
ability_bar.y = 320;
_local1.x = ((550 - _local1.width) * 0.5);
_local1.y = 20;
_local2.x = ((550 - _local2.width) * 0.5);
_local2.y = 100;
moonboy.y = (yojo.y = (moonrabbit.y = 160));
moonboy.x = ((550 - moonboy.width) * 0.83);
yojo.x = ((550 - yojo.width) * 0.5);
moonrabbit.x = ((550 - moonrabbit.width) * 0.11);
yojoN = Math.floor(yojo.x);
moonboyN = Math.floor(moonboy.x);
moonrabbitN = Math.floor(moonrabbit.x);
nextBtn = new ButtonSprite(OnNext, OverNext, 360, 330);
addChild(_local1);
addChild(_local2);
addChild(moonboy);
addChild(yojo);
addChild(moonrabbit);
addChild(nextBtn);
addChild(ability_bar);
moonboy.addEventListener(MouseEvent.CLICK, onChoice);
yojo.addEventListener(MouseEvent.CLICK, onChoice);
moonrabbit.addEventListener(MouseEvent.CLICK, onChoice);
nextBtn.addEventListener(MouseEvent.CLICK, onClickBotton);
choiceChar = yojo;
setGlowToChoiceChar(choiceChar);
showAbility(choiceChar.name);
}
private function setGlowToChoiceChar(_arg1:MovieClip):void{
var _local2:GlowEffecter;
var _local3:Array;
_local2 = new GlowEffecter(getColorByName(_arg1), 0.9, 8, 10);
_local3 = new Array();
_local3.push(_local2.getBitmapFilter());
_arg1.filters = _local3;
choiceChar = _arg1;
}
public function get charNum():int{
return (_charNum);
}
private function onChoice(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.currentTarget);
choiceChar.filters = null;
setGlowToChoiceChar(_local2);
showAbility(_local2.name);
}
private function showAbility(_arg1:String):void{
switch (_arg1){
case CharChoicePage.YOJO:
ability_bar.showAbility(4, 3, 5);
_charNum = 0;
break;
case CharChoicePage.MOONBOY:
ability_bar.showAbility(5, 4, 3);
_charNum = 1;
break;
case CharChoicePage.MOONRABBIT:
ability_bar.showAbility(3, 5, 4);
_charNum = 2;
break;
};
}
override protected function onClickBotton(_arg1:MouseEvent):void{
moonboy.removeEventListener(MouseEvent.CLICK, onChoice);
yojo.removeEventListener(MouseEvent.CLICK, onChoice);
moonrabbit.removeEventListener(MouseEvent.CLICK, onChoice);
nextBtn.removeEventListener(MouseEvent.CLICK, onClickBotton);
this.dispatchEvent(new Event(AbstractPage.GO_STAGE_MAP));
}
private function getColorByName(_arg1:MovieClip):uint{
var _local2:uint;
switch (_arg1.name){
case YOJO:
_local2 = 16733627;
break;
case MOONBOY:
_local2 = 52479;
break;
case MOONRABBIT:
_local2 = 13614332;
break;
};
return (_local2);
}
}
}//package minigame.skyracinggame.page
Section 76
//CharChoicePage_Box (minigame.skyracinggame.page.CharChoicePage_Box)
package minigame.skyracinggame.page {
import mx.core.*;
public class CharChoicePage_Box extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 77
//CharChoicePage_MoonBoyChar (minigame.skyracinggame.page.CharChoicePage_MoonBoyChar)
package minigame.skyracinggame.page {
import flash.utils.*;
import mx.core.*;
public class CharChoicePage_MoonBoyChar extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function CharChoicePage_MoonBoyChar(){
dataClass = CharChoicePage_MoonBoyChar_dataClass;
super();
initialWidth = (1754 / 20);
initialHeight = (2069 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package minigame.skyracinggame.page
Section 78
//CharChoicePage_MoonBoyChar_dataClass (minigame.skyracinggame.page.CharChoicePage_MoonBoyChar_dataClass)
package minigame.skyracinggame.page {
import mx.core.*;
public class CharChoicePage_MoonBoyChar_dataClass extends ByteArrayAsset {
}
}//package minigame.skyracinggame.page
Section 79
//CharChoicePage_MoonRabbitChar (minigame.skyracinggame.page.CharChoicePage_MoonRabbitChar)
package minigame.skyracinggame.page {
import flash.utils.*;
import mx.core.*;
public class CharChoicePage_MoonRabbitChar extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function CharChoicePage_MoonRabbitChar(){
dataClass = CharChoicePage_MoonRabbitChar_dataClass;
super();
initialWidth = (1726 / 20);
initialHeight = (2301 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package minigame.skyracinggame.page
Section 80
//CharChoicePage_MoonRabbitChar_dataClass (minigame.skyracinggame.page.CharChoicePage_MoonRabbitChar_dataClass)
package minigame.skyracinggame.page {
import mx.core.*;
public class CharChoicePage_MoonRabbitChar_dataClass extends ByteArrayAsset {
}
}//package minigame.skyracinggame.page
Section 81
//CharChoicePage_OnNext (minigame.skyracinggame.page.CharChoicePage_OnNext)
package minigame.skyracinggame.page {
import mx.core.*;
public class CharChoicePage_OnNext extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 82
//CharChoicePage_OverNext (minigame.skyracinggame.page.CharChoicePage_OverNext)
package minigame.skyracinggame.page {
import mx.core.*;
public class CharChoicePage_OverNext extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 83
//CharChoicePage_Title (minigame.skyracinggame.page.CharChoicePage_Title)
package minigame.skyracinggame.page {
import mx.core.*;
public class CharChoicePage_Title extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 84
//CharChoicePage_YojoChar (minigame.skyracinggame.page.CharChoicePage_YojoChar)
package minigame.skyracinggame.page {
import flash.utils.*;
import mx.core.*;
public class CharChoicePage_YojoChar extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function CharChoicePage_YojoChar(){
dataClass = CharChoicePage_YojoChar_dataClass;
super();
initialWidth = (2262 / 20);
initialHeight = (1879 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package minigame.skyracinggame.page
Section 85
//CharChoicePage_YojoChar_dataClass (minigame.skyracinggame.page.CharChoicePage_YojoChar_dataClass)
package minigame.skyracinggame.page {
import mx.core.*;
public class CharChoicePage_YojoChar_dataClass extends ByteArrayAsset {
}
}//package minigame.skyracinggame.page
Section 86
//StageMapPage (minigame.skyracinggame.page.StageMapPage)
package minigame.skyracinggame.page {
import flash.events.*;
import flash.display.*;
import yojogame.common.component.*;
import flash.filters.*;
import flash.utils.*;
public class StageMapPage extends AbstractPage {
private var wink_timer:Timer;
private var lastStageImage:DisplayObject;
private var Title:Class;
private var StageMap0:Class;
private var StageMap5:Class;
private var StageMap2:Class;
private var StageMap6:Class;
private var StageMap1:Class;
private var StageMap8:Class;
private var StageMap9:Class;
private var StageMap4:Class;
private var StageMap7:Class;
private var StageMap3:Class;
private var startBtn:ButtonSprite;
private var Box:Class;
private var OnStart:Class;
private var OverStart:Class;
public function StageMapPage(_arg1:int){
var _local2:Bitmap;
var _local3:Bitmap;
var _local4:int;
var _local5:Class;
var _local6:Bitmap;
var _local7:Sprite;
Title = StageMapPage_Title;
Box = StageMapPage_Box;
StageMap0 = StageMapPage_StageMap0;
StageMap1 = StageMapPage_StageMap1;
StageMap2 = StageMapPage_StageMap2;
StageMap3 = StageMapPage_StageMap3;
StageMap4 = StageMapPage_StageMap4;
StageMap5 = StageMapPage_StageMap5;
StageMap6 = StageMapPage_StageMap6;
StageMap7 = StageMapPage_StageMap7;
StageMap8 = StageMapPage_StageMap8;
StageMap9 = StageMapPage_StageMap9;
OnStart = StageMapPage_OnStart;
OverStart = StageMapPage_OverStart;
super();
_local2 = new Title();
_local3 = new Box();
_local2.x = ((550 - _local2.width) * 0.5);
_local2.y = 20;
_local3.x = ((550 - _local3.width) * 0.5);
_local3.y = 100;
addChild(_local2);
addChild(_local3);
_local4 = 0;
while (_local4 < 10) {
_local5 = this[("StageMap" + _local4)];
_local6 = new (_local5);
_local6.x = (((_local4 % 5) * 95) + 47);
_local6.y = ((Math.floor((_local4 / 5)) * 90) + 120);
if (_arg1 < _local4){
setGlowRound(_local6, 0xFFFFFF);
_local7 = new Sprite();
_local7.addChild(_local6);
_local7.filters = [new ColorMatrixFilter([0.3086, 0.6094, 0.0829, 0, 0, 0.3086, 0.6094, 0.0829, 0, 0, 0.3086, 0.6094, 0.0829, 0, 0, 0, 0, 0, 1, 0])];
addChild(_local7);
} else {
setGlowRound(_local6, 16688328);
addChild(_local6);
lastStageImage = _local6;
};
_local4++;
};
wink_timer = new Timer(500);
wink_timer.addEventListener(TimerEvent.TIMER, winkRound);
startBtn = new ButtonSprite(OnStart, OverStart, 360, 330);
startBtn.addEventListener(MouseEvent.CLICK, onClickBotton);
addChild(startBtn);
wink_timer.start();
}
override protected function onClickBotton(_arg1:MouseEvent):void{
wink_timer.stop();
wink_timer.removeEventListener(TimerEvent.TIMER, winkRound);
startBtn.removeEventListener(MouseEvent.CLICK, onClickBotton);
this.dispatchEvent(new Event(AbstractPage.GO_GAME_STAGE));
}
private function winkRound(_arg1:TimerEvent):void{
setGlowRound(lastStageImage, (((wink_timer.currentCount % 2) == 0)) ? 16688328 : 0xFF0000);
}
private function setGlowRound(_arg1:DisplayObject, _arg2:int):void{
var _local3:GlowEffecter;
var _local4:Array;
_local3 = new GlowEffecter(_arg2, 0.9, 7, 9);
_local4 = new Array();
_local4.push(_local3.getBitmapFilter());
_arg1.filters = _local4;
}
}
}//package minigame.skyracinggame.page
Section 87
//StageMapPage_Box (minigame.skyracinggame.page.StageMapPage_Box)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_Box extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 88
//StageMapPage_OnStart (minigame.skyracinggame.page.StageMapPage_OnStart)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_OnStart extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 89
//StageMapPage_OverStart (minigame.skyracinggame.page.StageMapPage_OverStart)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_OverStart extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 90
//StageMapPage_StageMap0 (minigame.skyracinggame.page.StageMapPage_StageMap0)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap0 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 91
//StageMapPage_StageMap1 (minigame.skyracinggame.page.StageMapPage_StageMap1)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap1 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 92
//StageMapPage_StageMap2 (minigame.skyracinggame.page.StageMapPage_StageMap2)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap2 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 93
//StageMapPage_StageMap3 (minigame.skyracinggame.page.StageMapPage_StageMap3)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap3 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 94
//StageMapPage_StageMap4 (minigame.skyracinggame.page.StageMapPage_StageMap4)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap4 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 95
//StageMapPage_StageMap5 (minigame.skyracinggame.page.StageMapPage_StageMap5)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap5 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 96
//StageMapPage_StageMap6 (minigame.skyracinggame.page.StageMapPage_StageMap6)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap6 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 97
//StageMapPage_StageMap7 (minigame.skyracinggame.page.StageMapPage_StageMap7)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap7 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 98
//StageMapPage_StageMap8 (minigame.skyracinggame.page.StageMapPage_StageMap8)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap8 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 99
//StageMapPage_StageMap9 (minigame.skyracinggame.page.StageMapPage_StageMap9)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_StageMap9 extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 100
//StageMapPage_Title (minigame.skyracinggame.page.StageMapPage_Title)
package minigame.skyracinggame.page {
import mx.core.*;
public class StageMapPage_Title extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 101
//StorePage (minigame.skyracinggame.page.StorePage)
package minigame.skyracinggame.page {
import flash.events.*;
import flash.display.*;
import yojogame.common.component.*;
import minigame.skyracinggame.char.*;
import minigame.skyracinggame.model.*;
public class StorePage extends AbstractPage {
private var OverNext:Class;
private var OverPurchase:Class;
private var BgImg:Class;
private var OnPurchase:Class;
private var isRemoveWingBtn:Boolean;// = false
private var wingButton:ButtonSprite;
private var char:AbstractCharacter;
private var nextBtn:ButtonSprite;
private var OnNext:Class;
private var isRemoveBoosterBtn:Boolean;// = false
private var propellerButton:ButtonSprite;
private var isRemovePropellerBtn:Boolean;// = false
private var boosterButton:ButtonSprite;
public function StorePage(){
BgImg = StorePage_BgImg;
OnPurchase = StorePage_OnPurchase;
OverPurchase = StorePage_OverPurchase;
OnNext = StorePage_OnNext;
OverNext = StorePage_OverNext;
isRemoveWingBtn = false;
isRemoveBoosterBtn = false;
isRemovePropellerBtn = false;
super();
}
public function buildStore(_arg1:AbstractCharacter):void{
var _local2:Bitmap;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
this.char = _arg1;
_local2 = (new BgImg() as Bitmap);
_local2.x = ((550 - _local2.width) * 0.5);
_local2.y = ((400 - _local2.height) * 0.5);
addChild(_local2);
isRemoveWingBtn = !(AbstractCharacter.IS_BUY_WINGS);
isRemoveBoosterBtn = !(AbstractCharacter.IS_BUY_BOOSTER);
isRemovePropellerBtn = !(AbstractCharacter.IS_BUY_PROPELLER);
if (isRemoveWingBtn){
_local3 = _arg1.getWings();
_local3.gotoAndStop(1);
_local3.x = 140;
_local3.y = 200;
addChild(_local3);
wingButton = new ButtonSprite(OnPurchase, OverPurchase);
wingButton.addEventListener(MouseEvent.CLICK, purchaseWing);
wingButton.x = 120;
wingButton.y = 225;
addChild(wingButton);
};
if (isRemoveBoosterBtn){
_local4 = _arg1.getUpBooster();
_local4.gotoAndStop(3);
_local4.x = 277;
_local4.y = 170;
addChild(_local4);
boosterButton = new ButtonSprite(OnPurchase, OverPurchase);
boosterButton.addEventListener(MouseEvent.CLICK, purchaseBooster);
boosterButton.x = 0xFF;
boosterButton.y = 225;
addChild(boosterButton);
};
if (isRemovePropellerBtn){
_local5 = _arg1.getPropeller();
_local5.x = 442;
_local5.y = 202;
addChild(_local5);
propellerButton = new ButtonSprite(OnPurchase, OverPurchase);
propellerButton.addEventListener(MouseEvent.CLICK, purchasePropeller);
propellerButton.x = 385;
propellerButton.y = 225;
addChild(propellerButton);
};
nextBtn = new ButtonSprite(OnNext, OverNext, 360, 330);
nextBtn.addEventListener(MouseEvent.CLICK, onClickBotton);
addChild(nextBtn);
}
private function purchaseBooster(_arg1:MouseEvent):void{
if (Model.TOTAL_MONEY > 2000){
boosterButton.removeEventListener(MouseEvent.CLICK, purchaseBooster);
removeChild(boosterButton);
AbstractCharacter.IS_BUY_BOOSTER = true;
isRemoveBoosterBtn = false;
char.setUpbooster();
Model.TOTAL_MONEY = (Model.TOTAL_MONEY - 2000);
};
}
override protected function onClickBotton(_arg1:MouseEvent):void{
nextBtn.removeEventListener(MouseEvent.CLICK, onClickBotton);
if (isRemoveWingBtn){
wingButton.removeEventListener(MouseEvent.CLICK, purchaseWing);
removeChild(wingButton);
};
if (isRemoveBoosterBtn){
boosterButton.removeEventListener(MouseEvent.CLICK, purchaseBooster);
removeChild(boosterButton);
};
if (isRemovePropellerBtn){
propellerButton.removeEventListener(MouseEvent.CLICK, purchasePropeller);
removeChild(propellerButton);
};
removeChild(nextBtn);
dispatchEvent(new Event(AbstractPage.GO_STAGE_MAP));
}
private function purchasePropeller(_arg1:MouseEvent):void{
if (Model.TOTAL_MONEY > 3000){
propellerButton.removeEventListener(MouseEvent.CLICK, purchasePropeller);
removeChild(propellerButton);
AbstractCharacter.IS_BUY_PROPELLER = true;
isRemovePropellerBtn = false;
char.setPropeller();
Model.TOTAL_MONEY = (Model.TOTAL_MONEY - 3000);
};
}
private function purchaseWing(_arg1:MouseEvent):void{
if (Model.TOTAL_MONEY > 4000){
wingButton.removeEventListener(MouseEvent.CLICK, purchaseWing);
removeChild(wingButton);
AbstractCharacter.IS_BUY_WINGS = true;
isRemoveWingBtn = false;
char.setWings();
Model.TOTAL_MONEY = (Model.TOTAL_MONEY - 4000);
};
}
}
}//package minigame.skyracinggame.page
Section 102
//StorePage_BgImg (minigame.skyracinggame.page.StorePage_BgImg)
package minigame.skyracinggame.page {
import mx.core.*;
public class StorePage_BgImg extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 103
//StorePage_OnNext (minigame.skyracinggame.page.StorePage_OnNext)
package minigame.skyracinggame.page {
import mx.core.*;
public class StorePage_OnNext extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 104
//StorePage_OnPurchase (minigame.skyracinggame.page.StorePage_OnPurchase)
package minigame.skyracinggame.page {
import mx.core.*;
public class StorePage_OnPurchase extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 105
//StorePage_OverNext (minigame.skyracinggame.page.StorePage_OverNext)
package minigame.skyracinggame.page {
import mx.core.*;
public class StorePage_OverNext extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 106
//StorePage_OverPurchase (minigame.skyracinggame.page.StorePage_OverPurchase)
package minigame.skyracinggame.page {
import mx.core.*;
public class StorePage_OverPurchase extends BitmapAsset {
}
}//package minigame.skyracinggame.page
Section 107
//BackGround (minigame.skyracinggame.view.BackGround)
package minigame.skyracinggame.view {
import flash.events.*;
import flash.display.*;
import minigame.skyracinggame.model.*;
public class BackGround extends Sprite {
private var cloudColors:Array;
private var model:Model;
private var image:Bitmap;// = null
private var BG5:Class;
private var BG6:Class;
private var BG3:Class;
private var BG4:Class;
private var BG7:Class;
private var BG0:Class;
private var BG1:Class;
private var BG9:Class;
private var BG2:Class;
private var BG8:Class;
public function BackGround(_arg1:Model){
BG0 = BackGround_BG0;
BG1 = BackGround_BG1;
BG2 = BackGround_BG2;
BG3 = BackGround_BG3;
BG4 = BackGround_BG4;
BG5 = BackGround_BG5;
BG6 = BackGround_BG6;
BG7 = BackGround_BG7;
BG8 = BackGround_BG8;
BG9 = BackGround_BG9;
image = null;
super();
this.model = _arg1;
_arg1.addEventListener(Model.UPPER_STAGE, setBg);
cloudColors = new Array(0xFFFFFF, 0xFFFF00, 39423, 0xFFFF00, 56831, 16738047, 15007533, 16777113, 0xFFFFFF, 15132415);
}
public function getCloudColor(_arg1:int):int{
return (cloudColors[_arg1]);
}
private function setBg(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
if (this.image != null){
removeChild(image);
image = null;
};
image = getImage((Model.STAGE_NUM % 10));
_local2 = (image.width * 0.5);
_local3 = (image.height * 0.5);
image.x = -(_local2);
image.y = -(_local3);
x = 275;
y = 200;
image.smoothing = true;
addChild(image);
}
private function getImage(_arg1:int):Bitmap{
var _local2:Bitmap;
switch (_arg1){
case 0:
_local2 = (new BG0() as Bitmap);
break;
case 1:
_local2 = (new BG1() as Bitmap);
break;
case 2:
_local2 = (new BG2() as Bitmap);
break;
case 3:
_local2 = (new BG3() as Bitmap);
break;
case 4:
_local2 = (new BG4() as Bitmap);
break;
case 5:
_local2 = (new BG5() as Bitmap);
break;
case 6:
_local2 = (new BG6() as Bitmap);
break;
case 7:
_local2 = (new BG7() as Bitmap);
break;
case 8:
_local2 = (new BG8() as Bitmap);
break;
case 9:
_local2 = (new BG9() as Bitmap);
break;
};
return (_local2);
}
}
}//package minigame.skyracinggame.view
Section 108
//BackGround_BG0 (minigame.skyracinggame.view.BackGround_BG0)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG0 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 109
//BackGround_BG1 (minigame.skyracinggame.view.BackGround_BG1)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG1 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 110
//BackGround_BG2 (minigame.skyracinggame.view.BackGround_BG2)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG2 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 111
//BackGround_BG3 (minigame.skyracinggame.view.BackGround_BG3)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG3 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 112
//BackGround_BG4 (minigame.skyracinggame.view.BackGround_BG4)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG4 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 113
//BackGround_BG5 (minigame.skyracinggame.view.BackGround_BG5)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG5 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 114
//BackGround_BG6 (minigame.skyracinggame.view.BackGround_BG6)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG6 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 115
//BackGround_BG7 (minigame.skyracinggame.view.BackGround_BG7)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG7 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 116
//BackGround_BG8 (minigame.skyracinggame.view.BackGround_BG8)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG8 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 117
//BackGround_BG9 (minigame.skyracinggame.view.BackGround_BG9)
package minigame.skyracinggame.view {
import mx.core.*;
public class BackGround_BG9 extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 118
//BoosterMeasurement (minigame.skyracinggame.view.BoosterMeasurement)
package minigame.skyracinggame.view {
import flash.display.*;
public class BoosterMeasurement extends Sprite {
private var total_energy:int;
private var Mask:Class;
private var bar:Shape;
private var BGBar:Class;
private var consump_energy:int;
public function BoosterMeasurement(_arg1:int){
var _local2:Bitmap;
var _local3:Bitmap;
BGBar = BoosterMeasurement_BGBar;
Mask = BoosterMeasurement_Mask;
super();
this.consump_energy = (this.total_energy = _arg1);
_local2 = (new BGBar() as Bitmap);
_local3 = (new Mask() as Bitmap);
_local3.x = 31;
_local3.y = 11;
bar = new Shape();
bar.graphics.beginFill(0xFF0000);
bar.graphics.drawRect(0, 0, _local3.width, _local3.height);
bar.graphics.endFill();
bar.x = _local3.x;
bar.y = _local3.y;
bar.scaleX = 1;
addChild(_local2);
addChild(_local3);
addChild(bar);
_local3.mask = bar;
}
public function reset():void{
consump_energy = total_energy;
bar.scaleX = 1;
}
public function isHasEnerge():Boolean{
return ((consump_energy > 0));
}
public function set energeSpended(_arg1:int):void{
var _local2:Number;
consump_energy = (consump_energy - _arg1);
_local2 = (consump_energy / total_energy);
bar.scaleX = ((_local2 < 0)) ? 0 : _local2;
}
}
}//package minigame.skyracinggame.view
Section 119
//BoosterMeasurement_BGBar (minigame.skyracinggame.view.BoosterMeasurement_BGBar)
package minigame.skyracinggame.view {
import mx.core.*;
public class BoosterMeasurement_BGBar extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 120
//BoosterMeasurement_Mask (minigame.skyracinggame.view.BoosterMeasurement_Mask)
package minigame.skyracinggame.view {
import mx.core.*;
public class BoosterMeasurement_Mask extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 121
//DistanceMeasurement (minigame.skyracinggame.view.DistanceMeasurement)
package minigame.skyracinggame.view {
import flash.display.*;
public class DistanceMeasurement extends Sprite {
private var bar:Shape;
private var Ball:Class;
private var BarBG:Class;
private var totalObstacleNum:int;
private var ball:Bitmap;
public function DistanceMeasurement(_arg1:int){
var _local2:Bitmap;
BarBG = DistanceMeasurement_BarBG;
Ball = DistanceMeasurement_Ball;
super();
this.totalObstacleNum = _arg1;
_local2 = (new BarBG() as Bitmap);
ball = (new Ball() as Bitmap);
bar = new Shape();
bar.graphics.beginFill(16764159);
bar.graphics.drawRect(0, 0, 135, 4);
bar.graphics.endFill();
bar.x = 20;
bar.y = 7;
bar.scaleX = 0;
ball.x = 15;
ball.y = 4;
addChild(_local2);
addChild(bar);
addChild(ball);
}
public function reset():void{
bar.scaleX = 0;
ball.x = 15;
}
public function set distance(_arg1:int):void{
bar.scaleX = (_arg1 / totalObstacleNum);
ball.x = (bar.width + 15);
}
}
}//package minigame.skyracinggame.view
Section 122
//DistanceMeasurement_Ball (minigame.skyracinggame.view.DistanceMeasurement_Ball)
package minigame.skyracinggame.view {
import mx.core.*;
public class DistanceMeasurement_Ball extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 123
//DistanceMeasurement_BarBG (minigame.skyracinggame.view.DistanceMeasurement_BarBG)
package minigame.skyracinggame.view {
import mx.core.*;
public class DistanceMeasurement_BarBG extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 124
//GameSprite (minigame.skyracinggame.view.GameSprite)
package minigame.skyracinggame.view {
import flash.events.*;
import flash.display.*;
import yojogame.common.component.*;
import minigame.skyracinggame.char.*;
import minigame.skyracinggame.model.*;
import flash.utils.*;
import minigame.skyracinggame.component.*;
import minigame.skyracinggame.event.*;
import minigame.skyracinggame.enermy.*;
import minigame.skyracinggame.coin.*;
import minigame.dancegame.component.*;
public class GameSprite extends Sprite {
private const range_width:uint = 160;
private const fl:Number = 150;
private const bg_len_half:int = 7500;
private const numObstacles:uint = 20;
private const bg_len:uint = 15000;
private const obstacle_gap:uint = 500;
private const base_time:uint = 150;
private const road_width:uint = 400;
private const range_half:uint = 100;
private var effecter:RadialEffecter;
private var enermy_generator:EnermyGenerator;
private var bg:BackGround;
private var bg_list:Array;
private var numEnermy:uint;// = 0
private var sound_manager:AbstractSoundManager;
private var coin_generator:CoinGenerater;
private var blinder:Sprite;
private var calcPathXPosition:Function;
private var shake_timer:Timer;
private var area_count:uint;// = 0
private var height_area_count:uint;// = 0
private var ClockImg:Class;
private var distance_measure:DistanceMeasurement;
private var model:Model;
private var time_count:int;// = 0
private var stage_sprite:Sprite;
private var time_num:PolyNumber;
private var numCoin:uint;// = 0
private var check_timer:Timer;
private var limit_rot:int;// = 29
private var char:AbstractCharacter;
private var origin_stage_y:uint;
private var time_count_num:NumberSprite;
private var speed_measure:SpeedMeasurement;
private var object3d_list:Array;
private var info_checktimer:Timer;
private var roadImgSupplier:RoadImageSupplier;
private var numBgObject:uint;// = 20
private var hit_times:uint;// = 0
private var money_number:MoneyDisplayer;
private var path_maker:PathMaker;
private var booster_measure:BoosterMeasurement;
private var time_count_timer:Timer;
private var calcPathYPosition:Function;
private var current_time:uint;// = 0
private var booster_sound_timer:Timer;
private var numOnRoadObj:uint;// = 20
private var stage_bg_sprite:Sprite;
public static const BOTTOM_FLOOR:int = 1000;
public function GameSprite(_arg1:Model, _arg2:BackGround, _arg3:AbstractCharacter, _arg4:RoadImageSupplier, _arg5:Sprite, _arg6:AbstractSoundManager){
var _local7:Bitmap;
numBgObject = 20;
current_time = 0;
numEnermy = 0;
numCoin = 0;
numOnRoadObj = numObstacles;
area_count = 0;
height_area_count = 0;
limit_rot = 29;
hit_times = 0;
time_count = 0;
ClockImg = GameSprite_ClockImg;
super();
this.model = _arg1;
this.bg = _arg2;
AbstractCoin.CHAR = (AbstractEnermy.CHAR = (this.char = _arg3));
this.blinder = _arg5;
this.sound_manager = _arg6;
speed_measure = new SpeedMeasurement();
speed_measure.setCharFace(_arg3.type);
speed_measure.x = 410;
speed_measure.y = 308;
_arg3.initY = _arg3.y;
path_maker = new PathMaker();
booster_measure = new BoosterMeasurement(600);
booster_measure.x = 5;
booster_measure.y = (400 - (booster_measure.height * 2));
distance_measure = new DistanceMeasurement((numObstacles * path_maker.getLenth()));
distance_measure.x = 9;
distance_measure.y = (395 - distance_measure.height);
time_num = new PolyNumber(0, 3, 28, TimeNumberSprite, 250, 5);
_local7 = (new ClockImg() as Bitmap);
_local7.x = (time_num.x - _local7.width);
_local7.y = 5;
money_number = new MoneyDisplayer();
money_number.x = (545 - money_number.width);
money_number.y = 5;
_arg5.addChild(speed_measure);
_arg5.addChild(distance_measure);
_arg5.addChild(booster_measure);
_arg5.addChild(time_num);
_arg5.addChild(_local7);
_arg5.addChild(money_number);
this.roadImgSupplier = _arg4;
enermy_generator = new EnermyGenerator();
coin_generator = new CoinGenerater();
stage_sprite = new Sprite();
stage_bg_sprite = new Sprite();
stage_bg_sprite.x = (stage_sprite.x = 275);
origin_stage_y = (stage_bg_sprite.y = (stage_sprite.y = 200));
addChild(stage_bg_sprite);
addChild(stage_sprite);
shake_timer = new Timer(30);
shake_timer.addEventListener(TimerEvent.TIMER, shakeEffect);
booster_sound_timer = new Timer(300);
booster_sound_timer.addEventListener(TimerEvent.TIMER, boosterEffectSound);
check_timer = new Timer(8, 50);
check_timer.addEventListener(TimerEvent.TIMER_COMPLETE, showOnBooster);
info_checktimer = new Timer(80);
info_checktimer.addEventListener(TimerEvent.TIMER, displayInfo);
_arg1.addEventListener(Model.BOOSTER_ON, initBoosterOn);
_arg1.addEventListener(Model.BOOSTER_OFF, showOffBooster);
_arg1.addEventListener(Model.UPPER_STAGE, bulidStage);
_arg1.addEventListener(Model.RECOVER, recoverAction);
path_maker.addEventListener(PathMaker.ROAD_END, endStage);
}
private function moveCoin(_arg1:AbstractCoin):void{
model.setVelocity(_arg1);
if (_arg1.zpos < -(fl)){
removeCoin(_arg1);
} else {
scalingObject(_arg1);
_arg1.checkHit();
};
}
private function setTimer(_arg1:TimerEvent):void{
var _local2:int;
_local2 = (current_time - Math.floor((time_count_timer.currentCount / 10)));
if (time_count != _local2){
time_count = _local2;
time_num.setNumerToNumbers(time_count);
if (time_count == 0){
gameover();
};
};
}
private function showOffBooster(_arg1:Event=null):void{
if (((!((effecter == null))) && (this.contains(effecter)))){
removeChild(effecter);
effecter = null;
};
shake_timer.stop();
booster_sound_timer.stop();
char.initPosY();
stage_bg_sprite.y = (stage_sprite.y = (bg.y = origin_stage_y));
check_timer.reset();
char.boosterOn = false;
}
private function showCount(_arg1:TimerEvent):void{
var _local2:int;
_local2 = (3 - Math.floor((time_count_timer.currentCount / 10)));
if (time_count != _local2){
time_count = _local2;
time_count_num.number = time_count;
sound_manager.playEffectSnd(3);
};
}
private function bulidStage(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:uint;
var _local6:Class;
var _local7:Display3DSprite;
var _local8:Advence3DSprite;
object3d_list = null;
bg_list = null;
money_number.number = model.reflashMoney();
speed_measure.speed = 0;
current_time = (base_time - (Model.STAGE_NUM * 7));
numBgObject = 20;
reflashObjNum();
speed_measure.setCharFace(char.type);
area_count = 0;
path_maker.distace_count = 0;
stage_sprite.rotation = (bg.rotation = 0);
stage_bg_sprite.rotation = 0;
stage_bg_sprite.x = (stage_sprite.x = 275);
stage_bg_sprite.y = (stage_sprite.y = origin_stage_y);
char.rotate = 0;
char.calcAniOffset(0, 0);
_local2 = (Model.STAGE_NUM % 10);
path_maker.setPath(_local2);
_local3 = path_maker.widthPath(area_count);
_local4 = path_maker.heightPath(height_area_count);
calcPathXPosition = path_maker.setCalcPathMethod(_local3);
calcPathYPosition = path_maker.setCalcPathMethod(_local4);
object3d_list = new Array();
bg_list = new Array();
_local5 = 0;
while (_local5 < numBgObject) {
_local7 = new Cloud(bg.getCloudColor(_local2));
bg_list.push(_local7);
_local7.xpos = randomXPosition();
_local7.ypos = BOTTOM_FLOOR;
_local7.zpos = (Math.random() * PathMaker.VIEWPOINT_LEN);
stage_bg_sprite.addChild(_local7);
moveBgObject(_local7);
_local5++;
};
_local6 = roadImgSupplier.getImageClass(("RoadImg" + _local2));
_local5 = 0;
while (_local5 < numOnRoadObj) {
_local8 = new RoadImage(_local6);
object3d_list.push(_local8);
_local8.xpos = (calcBasicRoadWidth(_local5) + calcPathXPosition());
_local8.ypos = (_local8.limitY = calcPathYPosition());
_local8.zpos = (_local5 * obstacle_gap);
stage_sprite.addChild(_local8);
moveObstacle(_local8);
_local5++;
};
}
private function initReset():void{
model.deactiveControll();
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
numEnermy = 0;
numCoin = 0;
numBgObject = 0;
model.addScoreFromRemainTime(((current_time - Math.floor((time_count_timer.currentCount / 10))) * 10));
char.stop();
info_checktimer.stop();
if (time_count_timer.running){
time_count_timer.stop();
time_count_timer.removeEventListener(TimerEvent.TIMER, setTimer);
time_count_timer = null;
};
if (check_timer.running){
check_timer.stop();
};
if (shake_timer.running){
showOffBooster();
};
clear();
booster_measure.reset();
distance_measure.reset();
time_num.setNumerToNumbers(0);
}
private function showOnBooster(_arg1:TimerEvent):void{
effecter = new RadialEffecter();
addChild(effecter);
shake_timer.start();
booster_sound_timer.start();
char.boosterOn = true;
}
private function randomXPosition():Number{
return (((Math.random() * bg_len) - bg_len_half));
}
private function shakeEffect(_arg1:TimerEvent):void{
var _local2:int;
_local2 = (((shake_timer.currentCount % 2) == 0)) ? 2 : -2;
bg.y = (bg.y + _local2);
stage_sprite.y = (stage_sprite.y + -(_local2));
stage_bg_sprite.y = (stage_bg_sprite.y + (_local2 * 0.5));
char.y = (char.y + (_local2 * 1.5));
booster_measure.energeSpended = 1;
if (!booster_measure.isHasEnerge()){
model.isHasEnergy = false;
model.offBooster();
};
}
private function calcEnermyOnRoadXPos():Number{
var _local1:Number;
_local1 = (range_width * Math.random());
return (((Math.random() > 0.499)) ? _local1 : (_local1 * 0.5));
}
private function boosterEffectSound(_arg1:TimerEvent):void{
sound_manager.playEffectSnd(2);
}
private function initBoosterOn(_arg1:Event):void{
booster_measure.energeSpended = 20;
check_timer.start();
}
public function start():void{
time_count_num = new NumberSprite(3);
time_count_num.x = ((550 - time_count_num.width) * 0.5);
time_count_num.y = ((400 - time_count_num.height) * 0.3);
blinder.addChild(time_count_num);
time_count_timer = new Timer(100, 30);
time_count_timer.addEventListener(TimerEvent.TIMER, showCount);
time_count_timer.addEventListener(TimerEvent.TIMER_COMPLETE, startgame);
time_count_timer.start();
}
private function clear():void{
var _local1:int;
var _local2:int;
var _local3:Display3DSprite;
var _local4:AbstractEnermy;
var _local5:AbstractCoin;
var _local6:Advence3DSprite;
_local1 = bg_list.length;
_local2 = 0;
while (_local2 < _local1) {
_local3 = bg_list[_local2];
stage_bg_sprite.removeChild(_local3);
_local3 = null;
bg_list[_local2] = null;
_local2++;
};
_local2 = 0;
while (_local2 < numOnRoadObj) {
if ((object3d_list[_local2] is AbstractEnermy)){
_local4 = object3d_list[_local2];
_local4.removeEventListener(AbstractEnermy.HIT, onHitAction);
_local4.removeEventListener(AbstractEnermy.REMOVE_ME, onRemoveAtBlinder);
stage_sprite.removeChild(_local4);
_local4 = null;
object3d_list[_local2] = null;
} else {
if ((object3d_list[_local2] is AbstractCoin)){
_local5 = object3d_list[_local2];
_local5.removeEventListener(CoinEvent.HIT, onHitCoinAction);
stage_sprite.removeChild(_local5);
_local5 = null;
object3d_list[_local2] = null;
} else {
_local6 = object3d_list[_local2];
stage_sprite.removeChild(_local6);
_local6 = null;
object3d_list[_local2] = null;
};
};
_local2++;
};
numOnRoadObj = 0;
}
private function moveEnermy(_arg1:AbstractEnermy):void{
model.setVelocity(_arg1);
if (_arg1.zpos < -(fl)){
removeEnermy(_arg1);
} else {
scalingObject(_arg1);
_arg1.checkHit();
};
}
private function onHitCoinAction(_arg1:CoinEvent):void{
var _local2:AbstractCoin;
model.money = (model.money + _arg1.money);
_local2 = AbstractCoin(_arg1.target);
_local2.removeEventListener(AbstractEnermy.HIT, onHitCoinAction);
removeCoinAtList(_local2);
stage_sprite.removeChild(_local2);
_local2 = null;
money_number.number = model.money;
sound_manager.playEffectSnd(1);
}
private function sortZ():void{
var _local1:uint;
object3d_list.sortOn("zpos", (Array.DESCENDING | Array.NUMERIC));
_local1 = 0;
while (_local1 < numOnRoadObj) {
stage_sprite.setChildIndex(object3d_list[_local1], _local1);
_local1++;
};
bg_list.sortOn("zpos", (Array.DESCENDING | Array.NUMERIC));
_local1 = 0;
while (_local1 < numBgObject) {
stage_bg_sprite.setChildIndex(bg_list[_local1], _local1);
_local1++;
};
}
private function displayInfo(_arg1:TimerEvent):void{
speed_measure.speed = Math.floor((Math.abs(model.vz) * 1.5));
distance_measure.distance = ((area_count * numObstacles) + path_maker.distace_count);
}
private function onHitAction(_arg1:Event):void{
var _local2:AbstractEnermy;
var _local3:Number;
var _local4:Number;
hit_times++;
model.hitEnermy();
_local2 = AbstractEnermy(_arg1.target);
_local2.removeEventListener(AbstractEnermy.HIT, onHitAction);
removeEnermyAtList(_local2);
stage_sprite.removeChild(_local2);
_local3 = _local2.width;
_local4 = _local2.height;
_local2.x = ((_local3 * 0.5) + (Math.random() * (550 - _local3)));
_local2.y = ((_local4 * 0.5) + (Math.random() * (400 - _local4)));
_local2.setSize();
char.isHit = true;
blinder.addChild(_local2);
_local2.startFall();
speed_measure.speed = 0;
sound_manager.playEffectSnd(0);
sound_manager.playEffectSnd(5);
}
private function recoverAction(_arg1:Event):void{
char.isHit = false;
}
private function onEnterFrame(_arg1:Event):void{
var _local2:uint;
var _local3:Number;
var _local4:AbstractEnermy;
var _local5:AbstractCoin;
var _local6:Advence3DSprite;
var _local7:Display3DSprite;
model.calcVelocity();
_local2 = 0;
while (_local2 < numOnRoadObj) {
if ((object3d_list[_local2] is AbstractEnermy)){
_local4 = object3d_list[_local2];
moveEnermy(_local4);
} else {
if ((object3d_list[_local2] is AbstractCoin)){
_local5 = object3d_list[_local2];
moveCoin(_local5);
} else {
_local6 = object3d_list[_local2];
moveObstacle(_local6);
};
};
_local2++;
};
_local2 = 0;
while (_local2 < numBgObject) {
_local7 = bg_list[_local2];
moveBgObject(_local7);
_local2++;
};
model.calcfrictionVelocity();
sortZ();
_local3 = model.vx;
_local3 = ((Math.abs(_local3) > limit_rot)) ? ((_local3 > 0)) ? limit_rot : -(limit_rot) : model.vx;
stage_sprite.rotation = (bg.rotation = (-(_local3) * 0.3));
stage_bg_sprite.rotation = (-(_local3) * 0.02);
char.rotate = (-(_local3) * 2);
char.calcAniOffset(model.ax, model.az);
}
private function removeDisturber(_arg1:Event):void{
var _local2:AbstractDisturber;
_local2 = AbstractDisturber(_arg1.currentTarget);
_local2.removeEventListener(AbstractDisturber.REMOVE, removeDisturber);
blinder.removeChild(_local2);
_local2 = null;
}
private function addCoin():void{
var _local1:AbstractCoin;
_local1 = coin_generator.getCoin();
object3d_list.push(_local1);
numCoin++;
reflashObjNum();
_local1.xpos = ((calcPathXPosition() + model.sumvx) + calcBasicCoinPos(path_maker.distace_count));
_local1.ypos = (_local1.limitY = calcPathYPosition());
_local1.zpos = PathMaker.VIEWPOINT_LEN;
scalingObject(_local1);
_local1.addEventListener(CoinEvent.HIT, onHitCoinAction);
stage_sprite.addChild(_local1);
}
private function moveBgObject(_arg1:Display3DSprite):void{
var _local2:Number;
model.setVelocity(_arg1);
if (_arg1.ypos > BOTTOM_FLOOR){
_arg1.ypos = BOTTOM_FLOOR;
};
if (_arg1.zpos < -(fl)){
_arg1.xpos = randomXPosition();
_arg1.ypos = BOTTOM_FLOOR;
_arg1.zpos = PathMaker.VIEWPOINT_LEN;
};
_local2 = (fl / (fl + _arg1.zpos));
_arg1.scaleX = (_arg1.scaleY = _local2);
_arg1.x = (_arg1.xpos * _local2);
_arg1.y = (_arg1.ypos * _local2);
_arg1.alpha = ((_local2 * 0.3) + 0.7);
}
public function setChar(_arg1:AbstractCharacter):void{
AbstractCoin.CHAR = (AbstractEnermy.CHAR = (this.char = _arg1));
_arg1.initY = _arg1.y;
}
private function removeEnermy(_arg1:AbstractEnermy):void{
var _local2:uint;
_local2 = 0;
while (_local2 < numOnRoadObj) {
if (object3d_list[_local2] == _arg1){
_arg1.removeEventListener(AbstractEnermy.HIT, onHitAction);
_arg1.removeEventListener(AbstractEnermy.REMOVE_ME, onRemoveAtBlinder);
stage_sprite.removeChild(_arg1);
_arg1 = null;
object3d_list.splice(_local2, 1);
numEnermy--;
reflashObjNum();
break;
};
_local2++;
};
}
private function endStage(_arg1:Event=null):void{
initReset();
model.endStage();
sound_manager.mute();
}
private function calcBasicCoinPos(_arg1:uint):int{
return ((((_arg1 % 2) == 0)) ? -(range_half) : range_width);
}
private function onGameOver(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
char.stop();
info_checktimer.stop();
time_count_timer.stop();
check_timer.stop();
showOffBooster();
}
private function removeCoinAtList(_arg1:AbstractCoin):void{
var _local2:uint;
_local2 = 0;
while (_local2 < numOnRoadObj) {
if (object3d_list[_local2] == _arg1){
object3d_list.splice(_local2, 1);
numCoin--;
reflashObjNum();
break;
};
_local2++;
};
}
private function onRemoveAtBlinder(_arg1:Event):void{
var _local2:AbstractEnermy;
_local2 = AbstractEnermy(_arg1.target);
_local2.removeEventListener(AbstractEnermy.REMOVE_ME, onRemoveAtBlinder);
blinder.removeChild(_local2);
_local2 = null;
}
private function reflashObjNum():void{
numOnRoadObj = ((numObstacles + numEnermy) + numCoin);
}
private function removeCoin(_arg1:AbstractCoin):void{
var _local2:uint;
_local2 = 0;
while (_local2 < numOnRoadObj) {
if (object3d_list[_local2] == _arg1){
_arg1.removeEventListener(CoinEvent.HIT, onHitCoinAction);
stage_sprite.removeChild(_arg1);
_arg1 = null;
object3d_list.splice(_local2, 1);
numCoin--;
reflashObjNum();
break;
};
_local2++;
};
}
private function addEnermy():void{
var _local1:AbstractEnermy;
_local1 = enermy_generator.getEnermy();
object3d_list.push(_local1);
numEnermy++;
reflashObjNum();
_local1.xpos = ((calcPathXPosition() + model.sumvx) + calcBasicCoinPos(path_maker.distace_count));
_local1.ypos = (_local1.limitY = calcPathYPosition());
_local1.zpos = PathMaker.VIEWPOINT_LEN;
scalingObject(_local1);
_local1.addEventListener(AbstractEnermy.HIT, onHitAction);
_local1.addEventListener(AbstractEnermy.REMOVE_ME, onRemoveAtBlinder);
stage_sprite.addChild(_local1);
}
private function startgame(_arg1:TimerEvent):void{
time_count_timer.removeEventListener(TimerEvent.TIMER, showCount);
time_count_timer.removeEventListener(TimerEvent.TIMER_COMPLETE, startgame);
blinder.removeChild(time_count_num);
time_count_num = null;
time_count_timer = new Timer(100, (current_time * 10));
time_count_timer.addEventListener(TimerEvent.TIMER, setTimer);
char.start();
info_checktimer.start();
time_count_timer.start();
model.activeControll();
addEventListener(Event.ENTER_FRAME, onEnterFrame);
sound_manager.playEffectSnd(4);
}
private function moveObstacle(_arg1:Advence3DSprite):void{
var _local2:int;
var _local3:int;
var _local4:AbstractDisturber;
var _local5:Number;
model.setVelocity(_arg1);
if (_arg1.zpos < -(fl)){
_arg1.xpos = ((calcBasicRoadWidth(path_maker.distace_count) + calcPathXPosition()) + model.sumvx);
_arg1.ypos = (_arg1.limitY = calcPathYPosition());
_arg1.zpos = PathMaker.VIEWPOINT_LEN;
path_maker.distace_count++;
if (path_maker.distace_count == numBgObject){
path_maker.distace_count = 0;
area_count++;
_local2 = ((PathMaker.PATH_DATA_LEN <= area_count)) ? 100 : path_maker.widthPath(area_count);
_local3 = ((PathMaker.PATH_DATA_LEN <= area_count)) ? 2 : path_maker.heightPath(area_count);
calcPathXPosition = path_maker.setCalcPathMethod(_local2);
calcPathYPosition = path_maker.setCalcPathMethod(_local3);
if (((!((_local2 == 100))) && (((area_count % 5) == 0)))){
if (hit_times == 0){
_local4 = enermy_generator.getDisturber();
_local4.addEventListener(AbstractDisturber.REMOVE, removeDisturber);
blinder.addChild(_local4);
_local4.startmove();
};
hit_times = 0;
};
};
if (area_count < 23){
_local5 = Math.random();
if (_local5 < 0.1){
addEnermy();
} else {
if (_local5 > 0.9){
addCoin();
};
};
};
} else {
scalingObject(_arg1);
};
}
private function calcBasicRoadWidth(_arg1:uint):int{
return ((((_arg1 % 2) == 0)) ? road_width : -(road_width));
}
private function scalingObject(_arg1:Display3DSprite):void{
var _local2:Number;
_local2 = (fl / (fl + _arg1.zpos));
_arg1.scaleX = (_arg1.scaleY = _local2);
_arg1.x = (_arg1.xpos * _local2);
_arg1.y = ((_arg1.ypos * _local2) * (_arg1.zpos / PathMaker.VIEWPOINT_LEN));
}
private function gameover():void{
initReset();
model.gameover();
sound_manager.mute();
}
private function removeEnermyAtList(_arg1:AbstractEnermy):void{
var _local2:uint;
_local2 = 0;
while (_local2 < numOnRoadObj) {
if (object3d_list[_local2] == _arg1){
object3d_list.splice(_local2, 1);
numEnermy--;
reflashObjNum();
break;
};
_local2++;
};
}
}
}//package minigame.skyracinggame.view
Section 125
//GameSprite_ClockImg (minigame.skyracinggame.view.GameSprite_ClockImg)
package minigame.skyracinggame.view {
import mx.core.*;
public class GameSprite_ClockImg extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 126
//MoneyDisplayer (minigame.skyracinggame.view.MoneyDisplayer)
package minigame.skyracinggame.view {
import flash.display.*;
import yojogame.common.component.*;
import minigame.skyracinggame.component.*;
public class MoneyDisplayer extends Sprite {
private var moneyNumber:PolyNumber;
private var Icon:Class;
public function MoneyDisplayer(){
var _local1:Bitmap;
Icon = MoneyDisplayer_Icon;
super();
_local1 = (new Icon() as Bitmap);
moneyNumber = new PolyNumber(0, 6, 21, AniMoneyNumberSprite, 30, 0);
addChild(_local1);
addChild(moneyNumber);
}
public function set number(_arg1:int):void{
moneyNumber.setNumerToNumbers(_arg1);
}
}
}//package minigame.skyracinggame.view
Section 127
//MoneyDisplayer_Icon (minigame.skyracinggame.view.MoneyDisplayer_Icon)
package minigame.skyracinggame.view {
import mx.core.*;
public class MoneyDisplayer_Icon extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 128
//PathMaker (minigame.skyracinggame.view.PathMaker)
package minigame.skyracinggame.view {
import flash.events.*;
public class PathMaker extends EventDispatcher {
private var _heightPath:Array;
private var _widthPath:Array;
public var distace_count:uint;// = 0
public static const VIEWPOINT_LEN:uint = 10000;
private static const PI_1_2:Number = 1.5707963267949;
private static const RADIANS_PI:Number = 0.0785398163397448;
public static const VIEWPOINT_HALF:uint = 5000;
private static const PI_3_2:Number = 4.71238898038469;
public static const VIEW_2H:uint = 10000;
public static const VIEW_1H:uint = 5000;
public static const PATH_DATA_LEN:int = 25;
public static const GAP:uint = 500;
public static const ROAD_END:String = "road_end";
public static const VIEW_1_2H:uint = 2500;
public function PathMaker(){
distace_count = 0;
super();
setPath(0);
}
public function heightPath(_arg1:int):int{
return (_heightPath[_arg1]);
}
public function widthPath(_arg1:int):int{
return (_widthPath[_arg1]);
}
public function getLenth():int{
return (_widthPath.length);
}
public function getcurrnetZposition(_arg1:int):Number{
return ((_arg1 * _slot1.RADIANS_PI));
}
public function setCalcPathMethod(_arg1:uint):Function{
var calc:Function;
var sn = _arg1;
switch (sn){
case 0:
calc = function ():int{
return (straightPath(-(_slot1.VIEWPOINT_LEN)));
};
break;
case 1:
calc = function ():int{
return (straightPath(-(_slot1.VIEWPOINT_HALF)));
};
break;
case 2:
calc = function ():int{
return (straightPath(0));
};
break;
case 3:
calc = function ():int{
return (straightPath(_slot1.VIEWPOINT_HALF));
};
break;
case 4:
calc = function ():int{
return (straightPath(_slot1.VIEWPOINT_LEN));
};
break;
case 5:
calc = function ():Number{
return (curvePath(0, -2));
};
break;
case 6:
calc = function ():Number{
return (curvePath(0, -1));
};
break;
case 7:
calc = function ():Number{
return (curvePath(0, 0));
};
break;
case 8:
calc = function ():Number{
return (curvePath(0, 1));
};
break;
case 9:
calc = function ():Number{
return (curvePath(_slot1.PI_1_2, -1));
};
break;
case 10:
calc = function ():Number{
return (curvePath(_slot1.PI_1_2, 0));
};
break;
case 11:
calc = function ():Number{
return (curvePath(_slot1.PI_1_2, 1));
};
break;
case 12:
calc = function ():Number{
return (curvePath(_slot1.PI_1_2, 2));
};
break;
case 13:
calc = function ():Number{
return (curvePath(Math.PI, -1));
};
break;
case 14:
calc = function ():Number{
return (curvePath(Math.PI, 0));
};
break;
case 15:
calc = function ():Number{
return (curvePath(Math.PI, 1));
};
break;
case 16:
calc = function ():Number{
return (curvePath(Math.PI, 2));
};
break;
case 17:
calc = function ():Number{
return (curvePath(_slot1.PI_3_2, -2));
};
break;
case 18:
calc = function ():Number{
return (curvePath(_slot1.PI_3_2, -1));
};
break;
case 19:
calc = function ():Number{
return (curvePath(_slot1.PI_3_2, 0));
};
break;
case 20:
calc = function ():Number{
return (curvePath(_slot1.PI_3_2, 1));
};
break;
case 100:
calc = function ():void{
dispatchEvent(new Event(_slot1.ROAD_END));
};
break;
};
return (calc);
}
public function setPath(_arg1:int):void{
switch (_arg1){
case 0:
_widthPath = new Array(2, 6, 9, 0, 0, 0, 17, 1, 1, 1, 14, 2, 2, 2, 15, 20, 4, 4, 4, 8, 11, 2, 2, 2, 2);
_heightPath = new Array(6, 9, 13, 1, 1, 18, 2, 6, 1, 5, 0, 13, 18, 6, 9, 0, 17, 5, 0, 13, 18, 6, 14, 2, 2);
break;
case 1:
_widthPath = new Array(15, 20, 4, 4, 8, 3, 7, 2, 2, 2, 10, 1, 14, 19, 3, 3, 7, 2, 10, 1, 5, 0, 13, 18, 2);
_heightPath = new Array(2, 6, 9, 0, 13, 18, 2, 10, 5, 13, 1, 1, 14, 2, 6, 9, 13, 18, 2, 6, 9, 13, 18, 2, 2);
break;
case 2:
_widthPath = new Array(2, 6, 1, 5, 13, 1, 9, 0, 0, 13, 18, 15, 20, 8, 7, 2, 10, 1, 5, 0, 0, 17, 14, 2, 2);
_heightPath = new Array(10, 5, 13, 18, 6, 9, 13, 18, 10, 1, 5, 0, 13, 18, 2, 6, 9, 0, 0, 13, 1, 9, 13, 18, 2);
break;
case 3:
_widthPath = new Array(15, 20, 4, 8, 11, 2, 10, 5, 0, 13, 18, 2, 15, 3, 7, 10, 14, 19, 7, 10, 14, 19, 7, 2, 2);
_heightPath = new Array(10, 14, 19, 7, 10, 5, 0, 13, 1, 14, 2, 6, 9, 0, 13, 18, 6, 1, 14, 19, 7, 10, 14, 2, 2);
break;
case 4:
_widthPath = new Array(6, 9, 13, 18, 2, 15, 7, 10, 5, 0, 13, 18, 15, 20, 8, 11, 2, 2, 6, 9, 0, 13, 18, 2, 2);
_heightPath = new Array(15, 11, 6, 9, 13, 18, 6, 9, 13, 18, 15, 7, 10, 5, 13, 18, 6, 9, 13, 18, 15, 7, 10, 14, 2);
break;
case 5:
_widthPath = new Array(15, 20, 8, 11, 6, 9, 13, 18, 2, 2, 19, 7, 10, 14, 19, 7, 10, 14, 2, 2, 15, 20, 8, 11, 2);
_heightPath = new Array(10, 14, 19, 7, 6, 9, 13, 18, 15, 11, 6, 9, 13, 14, 19, 7, 10, 5, 0, 13, 18, 15, 7, 2, 2);
break;
case 6:
_widthPath = new Array(2, 6, 1, 5, 13, 18, 15, 20, 8, 11, 6, 9, 13, 18, 15, 20, 12, 11, 6, 1, 14, 19, 11, 2, 2);
_heightPath = new Array(6, 5, 17, 18, 15, 11, 6, 9, 13, 18, 6, 9, 13, 18, 15, 11, 10, 5, 17, 18, 15, 11, 6, 18, 2);
break;
case 7:
_widthPath = new Array(2, 6, 5, 17, 14, 19, 3, 16, 12, 7, 6, 5, 13, 14, 19, 3, 16, 12, 3, 3, 11, 6, 18, 2, 2);
_heightPath = new Array(6, 9, 13, 18, 15, 7, 10, 14, 19, 7, 10, 5, 13, 18, 6, 9, 13, 18, 10, 9, 13, 14, 2, 2, 2);
break;
case 8:
_widthPath = new Array(6, 5, 13, 18, 15, 20, 8, 11, 6, 9, 13, 18, 15, 20, 8, 11, 6, 9, 13, 18, 15, 20, 8, 11, 2);
_heightPath = new Array(15, 11, 6, 9, 17, 14, 19, 11, 6, 9, 13, 18, 6, 18, 6, 9, 13, 18, 6, 18, 6, 14, 2);
break;
case 9:
_widthPath = new Array(6, 18, 15, 11, 6, 18, 15, 11, 6, 9, 17, 14, 19, 16, 12, 7, 10, 5, 17, 14, 15, 11, 6, 18, 2);
_heightPath = new Array(6, 9, 13, 18, 15, 11, 6, 14, 19, 7, 10, 14, 19, 7, 10, 5, 17, 14, 19, 7, 10, 14, 15, 11, 2);
break;
};
}
private function getZposition():Number{
return ((distace_count * _slot1.RADIANS_PI));
}
private function curvePath(_arg1:Number=0, _arg2:Number=0):Number{
return (((Math.cos((_arg1 + getZposition())) + _arg2) * _slot1.VIEW_1H));
}
private function straightPath(_arg1:int=0):int{
return (_arg1);
}
}
}//package minigame.skyracinggame.view
Section 129
//RadialEffecter (minigame.skyracinggame.view.RadialEffecter)
package minigame.skyracinggame.view {
import flash.display.*;
public class RadialEffecter extends MovieClip {
}
}//package minigame.skyracinggame.view
Section 130
//SpeedMeasurement (minigame.skyracinggame.view.SpeedMeasurement)
package minigame.skyracinggame.view {
import flash.display.*;
import yojogame.common.component.*;
import minigame.skyracinggame.component.*;
public class SpeedMeasurement extends Sprite {
private var apx:int;// = 62
private var apy:int;// = 56
private var speed_number:PolyNumber;
private var BgMeasure:Class;
private var face:Bitmap;// = null
private var Bg:Class;
private var maskee:Sprite;
private var bgHeight:int;
private var FaceMB:Class;
private var FaceMR:Class;
private var FaceYojo:Class;
public function SpeedMeasurement(){
var _local1:Bitmap;
var _local2:Bitmap;
Bg = SpeedMeasurement_Bg;
BgMeasure = SpeedMeasurement_BgMeasure;
FaceYojo = SpeedMeasurement_FaceYojo;
FaceMR = SpeedMeasurement_FaceMR;
FaceMB = SpeedMeasurement_FaceMB;
apx = 62;
apy = 56;
face = null;
super();
_local1 = (new Bg() as Bitmap);
bgHeight = _local1.height;
maskee = new Sprite();
_local2 = (new BgMeasure() as Bitmap);
maskee.x = (_local2.x = 8);
maskee.y = (_local2.y = 6);
speed_number = new PolyNumber(0, 3, 16, SpeedNumber, 30, 42);
addChild(_local1);
addChild(_local2);
addChild(maskee);
addChild(speed_number);
_local2.mask = maskee;
}
private function drawArc(_arg1:int):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
maskee.graphics.clear();
maskee.graphics.beginFill(0);
maskee.graphics.moveTo(0, 0);
maskee.graphics.lineTo(0, apy);
maskee.graphics.lineTo(apx, apy);
_local2 = ((_arg1 * Math.PI) / 180);
_local3 = (apx + (Math.sin(_local2) * apx));
_local4 = (apy + (Math.cos(_local2) * apy));
maskee.graphics.lineTo(_local3, _local4);
maskee.graphics.lineTo(_local3, 0);
maskee.graphics.endFill();
}
public function setCharFace(_arg1:int):void{
if (face != null){
removeChild(face);
face = null;
};
switch (_arg1){
case 0:
face = (new FaceYojo() as Bitmap);
break;
case 1:
face = (new FaceMB() as Bitmap);
break;
case 2:
face = (new FaceMR() as Bitmap);
break;
};
face.x = (-(face.width) * 0.5);
face.y = (bgHeight - (face.height * 0.8));
addChild(face);
}
public function set speed(_arg1:int):void{
speed_number.setNumerToNumbers(_arg1);
drawArc(-((_arg1 + 96)));
}
}
}//package minigame.skyracinggame.view
Section 131
//SpeedMeasurement_Bg (minigame.skyracinggame.view.SpeedMeasurement_Bg)
package minigame.skyracinggame.view {
import mx.core.*;
public class SpeedMeasurement_Bg extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 132
//SpeedMeasurement_BgMeasure (minigame.skyracinggame.view.SpeedMeasurement_BgMeasure)
package minigame.skyracinggame.view {
import mx.core.*;
public class SpeedMeasurement_BgMeasure extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 133
//SpeedMeasurement_FaceMB (minigame.skyracinggame.view.SpeedMeasurement_FaceMB)
package minigame.skyracinggame.view {
import mx.core.*;
public class SpeedMeasurement_FaceMB extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 134
//SpeedMeasurement_FaceMR (minigame.skyracinggame.view.SpeedMeasurement_FaceMR)
package minigame.skyracinggame.view {
import mx.core.*;
public class SpeedMeasurement_FaceMR extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 135
//SpeedMeasurement_FaceYojo (minigame.skyracinggame.view.SpeedMeasurement_FaceYojo)
package minigame.skyracinggame.view {
import mx.core.*;
public class SpeedMeasurement_FaceYojo extends BitmapAsset {
}
}//package minigame.skyracinggame.view
Section 136
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "2.0.1.0";
public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 137
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "2.0.1.0";
}
}//package mx.core
Section 138
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "2.0.1.0";
public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
var bitmapData = _arg1;
var pixelSnapping = _arg2;
var smoothing = _arg3;
super(bitmapData, pixelSnapping, smoothing);
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 139
//FlexMovieClip (mx.core.FlexMovieClip)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexMovieClip extends MovieClip {
mx_internal static const VERSION:String = "2.0.1.0";
public function FlexMovieClip(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 140
//FontAsset (mx.core.FontAsset)
package mx.core {
import flash.text.*;
public class FontAsset extends Font implements IFlexAsset {
mx_internal static const VERSION:String = "2.0.1.0";
}
}//package mx.core
Section 141
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 142
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function set height(_arg1:Number):void;
function get scaleY():Number;
function move(_arg1:Number, _arg2:Number):void;
function get scaleX():Number;
function set mask(_arg1:DisplayObject):void;
function set scaleX(_arg1:Number):void;
function set name(_arg1:String):void;
function set scaleY(_arg1:Number):void;
function get visible():Boolean;
function get measuredWidth():Number;
function set visible(_arg1:Boolean):void;
function get alpha():Number;
function get height():Number;
function get width():Number;
function get parent():DisplayObjectContainer;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set y(_arg1:Number):void;
function get x():Number;
function get y():Number;
function set alpha(_arg1:Number):void;
}
}//package mx.core
Section 143
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function get repeaters():Array;
function get instanceIndices():Array;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 144
//MovieClipAsset (mx.core.MovieClipAsset)
package mx.core {
public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject {
private var _measuredWidth:Number;
private var _measuredHeight:Number;
mx_internal static const VERSION:String = "2.0.1.0";
public function MovieClipAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 145
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject {
private var requestedWidth:Number;
private var loader:Loader;// = null
private var requestedHeight:Number;
private var initialized:Boolean;// = false
protected var initialWidth:Number;// = 0
protected var initialHeight:Number;// = 0
mx_internal static const VERSION:String = "2.0.1.0";
public function MovieClipLoaderAsset(){
var _local1:LoaderContext;
loader = null;
initialized = false;
initialWidth = 0;
initialHeight = 0;
super();
_local1 = new LoaderContext();
_local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.loadBytes(movieClipData, _local1);
addChild(loader);
}
private function completeHandler(_arg1:Event):void{
initialized = true;
initialWidth = loader.width;
initialHeight = loader.height;
if (!isNaN(requestedWidth)){
loader.width = requestedWidth;
};
if (!isNaN(requestedHeight)){
loader.height = requestedHeight;
};
dispatchEvent(_arg1);
}
override public function get height():Number{
if (!initialized){
return (initialHeight);
};
return (super.height);
}
override public function set height(_arg1:Number):void{
if (!initialized){
requestedHeight = _arg1;
} else {
loader.height = _arg1;
};
}
public function get movieClipData():ByteArray{
return (null);
}
override public function set width(_arg1:Number):void{
if (!initialized){
requestedWidth = _arg1;
} else {
loader.width = _arg1;
};
}
override public function get measuredWidth():Number{
return (initialWidth);
}
override public function get measuredHeight():Number{
return (initialHeight);
}
override public function get width():Number{
if (!initialized){
return (initialWidth);
};
return (super.width);
}
}
}//package mx.core
Section 146
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 147
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "2.0.1.0";
}
}//package mx.core
Section 148
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import flash.utils.*;
import mx.core.*;
public class NameUtil {
mx_internal static const VERSION:String = "2.0.1.0";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var _local2:String;
var _local3:DisplayObject;
var _local4:String;
var _local5:Array;
_local3 = _arg1;
while (_local3 != null) {
if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){
break;
};
_local4 = _local3.name;
if ((_local3 is IRepeaterClient)){
_local5 = IRepeaterClient(_local3).instanceIndices;
if (_local5){
_local4 = (_local4 + (("[" + _local5.join("][")) + "]"));
};
};
_local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2);
_local3 = _local3.parent;
};
return (_local2);
}
public static function createUniqueName(_arg1:Object):String{
var _local2:String;
var _local3:int;
var _local4:int;
if (!_arg1){
return (null);
};
_local2 = getQualifiedClassName(_arg1);
_local3 = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
_local4 = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 149
//AbstractAniNumberSprite (yojogame.common.component.AbstractAniNumberSprite)
package yojogame.common.component {
import flash.events.*;
import flash.utils.*;
public class AbstractAniNumberSprite extends AbstractNumberSprite {
protected var stopTimer:Timer;
protected var num:uint;
public function AbstractAniNumberSprite(_arg1:uint=1){
stopTimer = new Timer((Math.round((Math.random() * 900)) + 300), 1);
stopTimer.addEventListener(TimerEvent.TIMER, stopToNumFrame);
super(_arg1);
}
override public function set number(_arg1:uint):void{
num = _arg1;
if (stopTimer.running){
stopTimer.stop();
gotoAndStop(num);
} else {
stopTimer.start();
play();
};
}
private function stopToNumFrame(_arg1:TimerEvent):void{
gotoAndStop(num);
}
}
}//package yojogame.common.component
Section 150
//AbstractFrontPage (yojogame.common.component.AbstractFrontPage)
package yojogame.common.component {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public class AbstractFrontPage extends Sprite {
protected var background_image:Sprite;
protected var explain_btn:ButtonSprite;
private var OverHelp:Class;
private var OverSound:Class;
protected var execute_btn:ButtonSprite;
private var OnStart:Class;
private var OverStart:Class;
private var OnHelp:Class;
public static const SHOW_EXPLAIN:String = "show_explain";
public static const EXECUTE:String = "execute";
public function AbstractFrontPage(){
OverStart = AbstractFrontPage_OverStart;
OnStart = AbstractFrontPage_OnStart;
OverHelp = AbstractFrontPage_OverHelp;
OnHelp = AbstractFrontPage_OnHelp;
OverSound = AbstractFrontPage_OverSound;
super();
execute_btn = new ButtonSprite(OnStart, OverStart, 280, 340);
explain_btn = new ButtonSprite(OnHelp, OverHelp, 420, 340);
execute_btn.addEventListener(MouseEvent.CLICK, execute);
explain_btn.addEventListener(MouseEvent.CLICK, showExplain);
execute_btn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
explain_btn.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
addChild(background_image);
addChild(execute_btn);
addChild(explain_btn);
}
public function destroy():void{
execute_btn.removeEventListener(MouseEvent.CLICK, execute);
explain_btn.removeEventListener(MouseEvent.CLICK, showExplain);
execute_btn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
explain_btn.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
}
protected function showExplain(_arg1:Event):void{
this.dispatchEvent(new Event(_slot1.SHOW_EXPLAIN));
}
protected function execute(_arg1:Event):void{
this.dispatchEvent(new Event(_slot1.EXECUTE));
}
protected function onMouseOver(_arg1:Event):void{
var _local2:Sound;
_local2 = (new OverSound() as Sound);
_local2.play();
}
}
}//package yojogame.common.component
Section 151
//AbstractFrontPage_OnHelp (yojogame.common.component.AbstractFrontPage_OnHelp)
package yojogame.common.component {
import mx.core.*;
public class AbstractFrontPage_OnHelp extends BitmapAsset {
}
}//package yojogame.common.component
Section 152
//AbstractFrontPage_OnStart (yojogame.common.component.AbstractFrontPage_OnStart)
package yojogame.common.component {
import mx.core.*;
public class AbstractFrontPage_OnStart extends BitmapAsset {
}
}//package yojogame.common.component
Section 153
//AbstractFrontPage_OverHelp (yojogame.common.component.AbstractFrontPage_OverHelp)
package yojogame.common.component {
import mx.core.*;
public class AbstractFrontPage_OverHelp extends BitmapAsset {
}
}//package yojogame.common.component
Section 154
//AbstractFrontPage_OverSound (yojogame.common.component.AbstractFrontPage_OverSound)
package yojogame.common.component {
import mx.core.*;
public class AbstractFrontPage_OverSound extends SoundAsset {
}
}//package yojogame.common.component
Section 155
//AbstractFrontPage_OverStart (yojogame.common.component.AbstractFrontPage_OverStart)
package yojogame.common.component {
import mx.core.*;
public class AbstractFrontPage_OverStart extends BitmapAsset {
}
}//package yojogame.common.component
Section 156
//AbstractNumberSprite (yojogame.common.component.AbstractNumberSprite)
package yojogame.common.component {
import flash.display.*;
public class AbstractNumberSprite extends MovieClip {
public function AbstractNumberSprite(_arg1:uint=10){
gotoAndStop(_arg1);
}
public function set number(_arg1:uint):void{
gotoAndStop(_arg1);
}
}
}//package yojogame.common.component
Section 157
//AbstractSoundManager (yojogame.common.component.AbstractSoundManager)
package yojogame.common.component {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class AbstractSoundManager {
protected var bg_sound_volume:Number;
protected var effect_channel_list:Array;
protected var bg_channel:SoundChannel;
protected var duration:uint;
protected var bg_sound:Sound;
protected var default_volume:Number;// = 0.4
protected var startTime:uint;
protected var effect_sound_list:Array;
protected var effect_sound_volume:Number;
public function AbstractSoundManager(_arg1:uint, _arg2:uint){
default_volume = 0.4;
bg_sound_volume = default_volume;
effect_sound_volume = default_volume;
super();
this.startTime = _arg1;
this.duration = _arg2;
}
public function getEffectSoundVolume():Number{
return (effect_sound_volume);
}
protected function repeatBgMusic(_arg1:TimerEvent):void{
bg_channel = bg_sound.play(startTime);
setVolume(bg_channel, bg_sound_volume);
}
public function playEffectSnd(_arg1:uint):void{
effect_channel_list[_arg1] = effect_sound_list[_arg1].play(0, 1);
setVolume(effect_channel_list[_arg1], effect_sound_volume);
}
public function playBGmusic():void{
var _local1:Timer;
var _local2:Timer;
_local1 = new Timer(duration);
_local1.addEventListener(TimerEvent.TIMER, repeatBgMusic);
_local1.start();
_local2 = new Timer((startTime + 100), 1);
_local2.addEventListener(TimerEvent.TIMER, repeatBgMusic);
_local2.start();
}
public function mute():void{
setBGSoundVolume(0);
}
protected function setVolume(_arg1:SoundChannel, _arg2:Number):void{
var _local3:SoundTransform;
_local3 = _arg1.soundTransform;
_local3.volume = _arg2;
_arg1.soundTransform = _local3;
}
public function resetVolume():void{
setBGSoundVolume(default_volume);
}
public function setBGSoundVolume(_arg1:Number):void{
bg_sound_volume = _arg1;
setVolume(bg_channel, _arg1);
}
public function getBGSoundVolume():Number{
return (bg_sound_volume);
}
public function setEffectSoundVolume(_arg1:Number):void{
effect_sound_volume = _arg1;
}
}
}//package yojogame.common.component
Section 158
//AbstractWindowContent (yojogame.common.component.AbstractWindowContent)
package yojogame.common.component {
import flash.display.*;
public class AbstractWindowContent extends Sprite {
protected var windowBoxLine:Shape;
protected var windowBox:Shape;
public function AbstractWindowContent(_arg1:uint, _arg2:uint){
windowBox = new Shape();
windowBox.graphics.beginFill(0xFFFFFF);
windowBox.graphics.drawRect(0, 0, _arg1, _arg2);
windowBox.graphics.endFill();
addChild(windowBox);
windowBoxLine = new Shape();
windowBoxLine.graphics.lineStyle(1, 0x9900);
windowBoxLine.graphics.drawRect(0, 0, _arg1, _arg2);
addChild(windowBoxLine);
}
protected function getBoxIndex():int{
return (getChildIndex(windowBoxLine));
}
public function destroy():void{
removeChild(windowBox);
removeChild(windowBoxLine);
windowBox = null;
windowBoxLine = null;
}
}
}//package yojogame.common.component
Section 159
//ButtonSprite (yojogame.common.component.ButtonSprite)
package yojogame.common.component {
import flash.display.*;
public class ButtonSprite extends SimpleButton {
private var onImage:DisplayObject;
private var overImage:DisplayObject;
public function ButtonSprite(_arg1:Class, _arg2:Class, _arg3:int=0, _arg4:int=0):void{
this.x = _arg3;
this.y = _arg4;
onImage = new (_arg1);
overImage = new (_arg2);
downState = drawOnButton();
overState = drawOverButton();
upState = drawOnButton();
hitTestState = drawOverButton();
useHandCursor = true;
}
private function drawOverButton():DisplayObject{
return (overImage);
}
private function drawOnButton():DisplayObject{
return (onImage);
}
}
}//package yojogame.common.component
Section 160
//GlowEffecter (yojogame.common.component.GlowEffecter)
package yojogame.common.component {
import flash.filters.*;
public class GlowEffecter {
private var _strength:uint;
private var _color:uint;
private var _thickness:uint;
private var _alpha:Number;
public function GlowEffecter(_arg1:uint=0xFFFFFF, _arg2:Number=0.9, _arg3:uint=5, _arg4:uint=8){
_color = _arg1;
_alpha = _arg2;
_thickness = _arg3;
_strength = _arg4;
}
public function set strength(_arg1:uint):void{
_strength = _arg1;
}
public function set color(_arg1:uint):void{
_color = _arg1;
}
public function set thickness(_arg1:uint):void{
_thickness = _arg1;
}
public function set alpha(_arg1:Number):void{
_alpha = _arg1;
}
public function getBitmapFilter():BitmapFilter{
return (new GlowFilter(_color, _alpha, _thickness, _thickness, _strength, BitmapFilterQuality.MEDIUM, false, false));
}
}
}//package yojogame.common.component
Section 161
//MassageWindowContent (yojogame.common.component.MassageWindowContent)
package yojogame.common.component {
import yojogame.common.font.*;
import flash.text.*;
public class MassageWindowContent extends AbstractWindowContent {
private var msg_tfd:TextField;
public function MassageWindowContent(_arg1:String){
super(250, 100);
msg_tfd = HangulTextField.getInstance().getTextBox(_arg1, 200, 80, 0x6600);
msg_tfd.x = Math.floor(((250 - msg_tfd.width) * 0.5));
msg_tfd.y = Math.floor(((100 - msg_tfd.height) * 0.5));
addChild(msg_tfd);
}
override public function destroy():void{
removeChild(msg_tfd);
msg_tfd = null;
super.destroy();
}
}
}//package yojogame.common.component
Section 162
//PercentageBar (yojogame.common.component.PercentageBar)
package yojogame.common.component {
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class PercentageBar extends Sprite {
private var _emphasize_color:uint;
public function PercentageBar(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint){
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Boolean;
var _local13:Boolean;
var _local14:Number;
var _local15:BitmapFilter;
var _local16:Array;
super();
this.x = _arg1;
this.y = _arg2;
this._emphasize_color = _arg6;
graphics.beginFill(_arg5);
graphics.drawRect(0, 0, _arg3, _arg4);
graphics.endFill();
_local8 = 0.9;
_local9 = 2;
_local10 = 2;
_local11 = 3;
_local12 = false;
_local13 = false;
_local14 = BitmapFilterQuality.HIGH;
_local15 = new GlowFilter(_arg7, _local8, _local9, _local10, _local11, _local14, _local12, _local13);
_local16 = new Array();
_local16.push(_local15);
filters = _local16;
}
private function getBarColorTransform(_arg1:uint):ColorTransform{
var _local2:uint;
var _local3:uint;
var _local4:uint;
_arg1 = (100 - _arg1);
_local2 = ((_emphasize_color >> 16) & 0xFF);
_local3 = ((_emphasize_color >> 8) & 0xFF);
_local4 = (_emphasize_color & 0xFF);
return (new ColorTransform(1, 1, 1, 1, (_local2 + _arg1), (_local3 + _arg1), (_local4 + _arg1), 0));
}
public function set barLength(_arg1:uint):void{
var _local2:ColorTransform;
scaleX = (_arg1 / 100);
_local2 = new ColorTransform();
transform.colorTransform = getBarColorTransform(_arg1);
}
}
}//package yojogame.common.component
Section 163
//PolyNumber (yojogame.common.component.PolyNumber)
package yojogame.common.component {
import flash.display.*;
public class PolyNumber extends Sprite {
protected var numbers:Array;
protected var old_strlen:uint;// = 0
public function PolyNumber(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Class, _arg5:uint=0, _arg6:uint=0){
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:AbstractNumberSprite;
old_strlen = 0;
super();
this.x = _arg5;
this.y = _arg6;
_local7 = _arg2;
numbers = new Array(_local7);
_local8 = (_local7 * _arg3);
_local9 = 0;
while (_local9 < 7) {
_local10 = new _arg4(10);
_local10.x = (_local8 - ((_local9 + 1) * _arg3));
if (_local9 == 0){
addChild(_local10);
};
numbers[_local9] = _local10;
_local9++;
};
setNumerToNumbers(_arg1);
}
private function removeNumberSprite(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
_local3 = (_arg1 - _arg2);
_local4 = _local3;
while (_local4 > 0) {
removeChildAt(_arg1);
_arg1--;
_local4--;
};
}
public function initNumber():void{
var _local1:uint;
var _local2:uint;
var _local3:int;
var _local4:AbstractNumberSprite;
_local1 = 0;
_local2 = (numbers.length - 1);
_local3 = _local2;
while (_local3 >= 0) {
_local4 = numbers[_local1];
if (((!((_local3 == 0))) && (contains(_local4)))){
removeChild(_local4);
};
_local3--;
_local1++;
};
old_strlen = 0;
}
public function setNumerToNumbers(_arg1:uint):void{
var _local2:String;
var _local3:uint;
var _local4:int;
var _local5:int;
var _local6:uint;
var _local7:AbstractNumberSprite;
_local2 = _arg1.toString();
_local3 = 0;
_local4 = (_local2.length - 1);
_local5 = _local4;
while (_local5 >= 0) {
_local6 = parseInt(_local2.charAt(_local5));
_local6 = ((_local6 == 0)) ? 10 : _local6;
_local7 = numbers[_local3];
_local7.number = _local6;
if (!contains(_local7)){
addChild(_local7);
};
_local5--;
_local3++;
};
if (old_strlen > _local4){
removeNumberSprite(old_strlen, _local4);
};
old_strlen = _local4;
}
}
}//package yojogame.common.component
Section 164
//ScreenCover (yojogame.common.component.ScreenCover)
package yojogame.common.component {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class ScreenCover extends Sprite {
private var total_msg:uint;// = 0
private var px:uint;// = 0
private var tile_count:uint;// = 0
private var widthTiles:uint;
private var height_start:uint;// = 0
private var tile_list:Array;
private var heightTiles:uint;
private var tilesize:uint;
private var total_tiles:uint;
public static const REMOVE_COMP:String = "remove_comp";
public static const COVER_COMP:String = "cover_comp";
public function ScreenCover(_arg1:uint=50, _arg2:uint=11, _arg3:uint=8){
var _local4:Timer;
px = 0;
height_start = 0;
tile_count = 0;
total_msg = 0;
super();
this.tilesize = _arg1;
this.widthTiles = _arg2;
this.heightTiles = _arg3;
this.total_tiles = (_arg2 * _arg3);
tile_list = new Array(total_tiles);
_local4 = new Timer(30, ((_arg3 * 2) + 2));
_local4.addEventListener(TimerEvent.TIMER, makeTile);
_local4.start();
}
private function sendBuildCompMSG(_arg1:Event):void{
total_msg++;
if (tile_count == total_msg){
this.dispatchEvent(new Event(_slot1.COVER_COMP));
};
}
private function removeTile(_arg1:Event):void{
var _local2:ScreenTile;
_local2 = (_arg1.target as _slot2);
removeChild(_local2);
_local2 = null;
total_msg++;
if (total_msg == total_tiles){
this.dispatchEvent(new Event(_slot1.REMOVE_COMP));
};
}
public function startRemoveTiles():void{
var _local1:Timer;
px = 0;
height_start = 0;
tile_count = 0;
total_msg = 0;
_local1 = new Timer(30, ((heightTiles * 2) + 2));
_local1.addEventListener(TimerEvent.TIMER, clearTile);
_local1.start();
}
private function clearTile(_arg1:TimerEvent):void{
var _local2:uint;
var _local3:int;
height_start = (height_start + ((px >= widthTiles)) ? 1 : 0);
_local2 = height_start;
while (_local2 < heightTiles) {
_local3 = (px - _local2);
if (_local3 >= 0){
tile_list[tile_count].clear();
tile_count++;
} else {
break;
};
_local2++;
};
px++;
}
private function makeTile(_arg1:TimerEvent):void{
var _local2:uint;
var _local3:int;
var _local4:ScreenTile;
height_start = (height_start + ((px >= widthTiles)) ? 1 : 0);
_local2 = height_start;
while (_local2 < heightTiles) {
_local3 = (px - _local2);
if (_local3 >= 0){
_local4 = new ScreenTile((_local3 * tilesize), (_local2 * tilesize));
_local4.addEventListener(_slot2.REMOVE_ME, removeTile);
_local4.addEventListener(_slot2.CREATE_COMP, sendBuildCompMSG);
addChild(_local4);
tile_list[tile_count] = _local4;
tile_count++;
} else {
break;
};
_local2++;
};
px++;
}
}
}//package yojogame.common.component
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
class ScreenTile extends Sprite {
private var alpha_val:Number;// = 0.1
public static const CREATE_COMP:String = "create_comp";
public static const REMOVE_ME:String = "remove_me";
private static var GLOW_EFFECT:GlowEffecter = new GlowEffecter();
private function ScreenTile(_arg1:uint, _arg2:uint){
var _local3:Timer;
alpha_val = 0.1;
super();
this.x = _arg1;
this.y = _arg2;
this.name = name;
this.alpha = 0;
this.graphics.beginFill(0xFFFFFF, 1);
this.graphics.drawRect(0, 0, 50, 50);
this.graphics.endFill();
this.useHandCursor = false;
_local3 = new Timer(10, 10);
_local3.addEventListener(TimerEvent.TIMER, modifyAlpha);
_local3.addEventListener(TimerEvent.TIMER_COMPLETE, setGlowEffet);
_local3.start();
}
private function clear():void{
var _local1:Timer;
alpha_val = -(alpha_val);
this.filters = null;
_local1 = new Timer(10, 10);
_local1.addEventListener(TimerEvent.TIMER, modifyAlpha);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, sendRemoveMassage);
_local1.start();
}
private function setGlowEffet(_arg1:TimerEvent):void{
var _local2:BitmapFilter;
var _local3:Array;
_local2 = GLOW_EFFECT.getBitmapFilter();
_local3 = new Array();
_local3.push(_local2);
this.filters = _local3;
this.dispatchEvent(new Event(_slot2.CREATE_COMP));
}
private function sendRemoveMassage(_arg1:TimerEvent):void{
this.dispatchEvent(new Event(_slot2.REMOVE_ME));
}
private function modifyAlpha(_arg1:TimerEvent):void{
this.alpha = (this.alpha + alpha_val);
}
}
Section 165
//SingleButtonSprite (yojogame.common.component.SingleButtonSprite)
package yojogame.common.component {
import flash.display.*;
public class SingleButtonSprite extends SimpleButton {
public function SingleButtonSprite(_arg1:Class, _arg2:int=0, _arg3:int=0){
var _local4:DisplayObject;
super();
this.x = _arg2;
this.y = _arg3;
_local4 = new (_arg1);
hitTestState = (upState = (overState = (downState = _local4)));
useHandCursor = true;
}
}
}//package yojogame.common.component
Section 166
//SoundConfigWindowContent (yojogame.common.component.SoundConfigWindowContent)
package yojogame.common.component {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import yojogame.common.font.*;
import flash.text.*;
public class SoundConfigWindowContent extends AbstractWindowContent {
private var startX:uint;// = 35
private var sound_manager:AbstractSoundManager;
private var bg_sound_controller:Sprite;
private var effect_sound_controller:Sprite;
private var SpeakerController:Class;
private var endX:uint;// = 135
public function SoundConfigWindowContent(_arg1:AbstractSoundManager){
var _local2:Shape;
var _local3:Shape;
var _local4:Bitmap;
var _local5:Bitmap;
var _local6:TextField;
var _local7:TextField;
SpeakerController = SoundConfigWindowContent_SpeakerController;
startX = 35;
endX = 135;
this.sound_manager = _arg1;
_local2 = new Shape();
_local3 = new Shape();
_local2.graphics.lineStyle(1, 16764108);
_local2.graphics.moveTo(startX, 30);
_local2.graphics.lineTo(endX, 30);
_local3.graphics.lineStyle(1, 16764108);
_local3.graphics.moveTo(startX, 70);
_local3.graphics.lineTo(endX, 70);
bg_sound_controller = new Sprite();
_local4 = (new SpeakerController() as Bitmap);
_local4.x = -10;
_local4.y = -5;
bg_sound_controller.addChild(_local4);
bg_sound_controller.x = (startX + (_arg1.getBGSoundVolume() * 100));
bg_sound_controller.y = 30;
bg_sound_controller.name = "bg";
effect_sound_controller = new Sprite();
_local5 = (new SpeakerController() as Bitmap);
_local5.x = -10;
_local5.y = -5;
effect_sound_controller.addChild(_local5);
effect_sound_controller.x = (startX + (_arg1.getEffectSoundVolume() * 100));
effect_sound_controller.y = 70;
effect_sound_controller.name = "effect";
super(170, 100);
_local6 = HangulTextField.getInstance().getTextField("배경음", 0x6600, 20, 8);
_local7 = HangulTextField.getInstance().getTextField("효과음", 0x6600, 20, 48);
addChild(_local6);
addChild(_local7);
addChild(_local2);
addChild(_local3);
addChild(bg_sound_controller);
addChild(effect_sound_controller);
bg_sound_controller.addEventListener(MouseEvent.MOUSE_DOWN, onMove);
bg_sound_controller.addEventListener(MouseEvent.MOUSE_UP, onStopMove);
effect_sound_controller.addEventListener(MouseEvent.MOUSE_DOWN, onMove);
effect_sound_controller.addEventListener(MouseEvent.MOUSE_UP, onStopMove);
bg_sound_controller.addEventListener(MouseEvent.MOUSE_OUT, onStopMove);
effect_sound_controller.addEventListener(MouseEvent.MOUSE_OUT, onStopMove);
}
private function onMove(_arg1:MouseEvent):void{
var _local2:Sprite;
var _local3:Number;
_local2 = (_arg1.target as Sprite);
_local3 = _local2.y;
_local2.startDrag(false, new Rectangle(startX, _local3, 100, 0));
}
private function onStopMove(_arg1:MouseEvent):void{
var _local2:Sprite;
var _local3:Number;
_local2 = (_arg1.target as Sprite);
_local3 = (Math.floor((_local2.x - startX)) * 0.01);
_local2.stopDrag();
if (_local2.name == "bg"){
sound_manager.setBGSoundVolume(_local3);
} else {
if (_local2.name == "effect"){
sound_manager.setEffectSoundVolume(_local3);
};
};
}
override public function destroy():void{
bg_sound_controller.removeEventListener(MouseEvent.MOUSE_DOWN, onMove);
bg_sound_controller.removeEventListener(MouseEvent.MOUSE_UP, onStopMove);
effect_sound_controller.removeEventListener(MouseEvent.MOUSE_DOWN, onMove);
effect_sound_controller.removeEventListener(MouseEvent.MOUSE_UP, onStopMove);
bg_sound_controller.removeEventListener(MouseEvent.MOUSE_OUT, onStopMove);
effect_sound_controller.removeEventListener(MouseEvent.MOUSE_OUT, onStopMove);
removeChild(bg_sound_controller);
removeChild(effect_sound_controller);
super.destroy();
}
}
}//package yojogame.common.component
Section 167
//SoundConfigWindowContent_SpeakerController (yojogame.common.component.SoundConfigWindowContent_SpeakerController)
package yojogame.common.component {
import mx.core.*;
public class SoundConfigWindowContent_SpeakerController extends BitmapAsset {
}
}//package yojogame.common.component
Section 168
//WindowSprite (yojogame.common.component.WindowSprite)
package yojogame.common.component {
import flash.events.*;
import flash.display.*;
import yojogame.common.font.*;
import flash.text.*;
import flash.filters.*;
public class WindowSprite extends Sprite {
private var bar:Sprite;
private var BarPattern:Class;
private var OnOk:Class;
private var confirm_btn:ButtonSprite;
private var content:AbstractWindowContent;
private var close_btn:SingleButtonSprite;
private var BarLeft:Class;
private var CloseBtnImg:Class;
private var BarRight:Class;
private var OverOk:Class;
public static const DESTROY:String = "destroy";
public function WindowSprite(_arg1:AbstractWindowContent, _arg2:String, _arg3:String){
BarPattern = WindowSprite_BarPattern;
BarLeft = WindowSprite_BarLeft;
BarRight = WindowSprite_BarRight;
CloseBtnImg = WindowSprite_CloseBtnImg;
OnOk = WindowSprite_OnOk;
OverOk = WindowSprite_OverOk;
super();
this.content = _arg1;
this.name = _arg3;
drawWindow(_arg2);
}
private function onStopMove(_arg1:MouseEvent):void{
this.stopDrag();
}
private function onMove(_arg1:MouseEvent):void{
this.startDrag();
}
private function drawWindow(_arg1:String):void{
var _local2:TextField;
var _local3:Bitmap;
var _local4:Bitmap;
var _local5:Bitmap;
var _local6:GlowEffecter;
var _local7:BitmapFilter;
var _local8:Array;
bar = new Sprite();
_local2 = HangulTextField.getInstance().getTextField(_arg1, 0x6600, 5, 2);
_local3 = new BarLeft();
_local4 = new BarRight();
_local4.x = (content.width - _local4.width);
_local4.y = (_local3.y = 0);
content.y = _local3.height;
_local5 = new BarPattern();
_local5.scaleX = (((content.width - _local4.width) - _local3.width) + 2);
_local5.x = (_local3.width - 1);
close_btn = new SingleButtonSprite(CloseBtnImg, (_local4.x - 14), 2);
confirm_btn = new ButtonSprite(OverOk, OnOk, (_local4.x - 20), (content.height + 1));
bar.addChild(_local3);
bar.addChild(_local5);
bar.addChild(_local4);
bar.addChild(_local2);
_local6 = new GlowEffecter();
_local6.strength = 2;
_local6.alpha = 0.6;
_local6.thickness = 7;
_local7 = _local6.getBitmapFilter();
_local8 = new Array();
_local8.push(_local7);
this.filters = _local8;
addChild(content);
addChild(bar);
addChild(close_btn);
addChild(confirm_btn);
bar.addEventListener(MouseEvent.MOUSE_DOWN, onMove);
bar.addEventListener(MouseEvent.MOUSE_UP, onStopMove);
close_btn.addEventListener(MouseEvent.CLICK, destroy);
confirm_btn.addEventListener(MouseEvent.CLICK, destroy);
}
private function destroy(_arg1:MouseEvent):void{
bar.removeEventListener(MouseEvent.MOUSE_DOWN, onMove);
bar.removeEventListener(MouseEvent.MOUSE_UP, onStopMove);
close_btn.removeEventListener(MouseEvent.CLICK, destroy);
confirm_btn.removeEventListener(MouseEvent.CLICK, destroy);
content.destroy();
this.dispatchEvent(new Event(_slot1.DESTROY));
}
}
}//package yojogame.common.component
Section 169
//WindowSprite_BarLeft (yojogame.common.component.WindowSprite_BarLeft)
package yojogame.common.component {
import mx.core.*;
public class WindowSprite_BarLeft extends BitmapAsset {
}
}//package yojogame.common.component
Section 170
//WindowSprite_BarPattern (yojogame.common.component.WindowSprite_BarPattern)
package yojogame.common.component {
import mx.core.*;
public class WindowSprite_BarPattern extends BitmapAsset {
}
}//package yojogame.common.component
Section 171
//WindowSprite_BarRight (yojogame.common.component.WindowSprite_BarRight)
package yojogame.common.component {
import mx.core.*;
public class WindowSprite_BarRight extends BitmapAsset {
}
}//package yojogame.common.component
Section 172
//WindowSprite_CloseBtnImg (yojogame.common.component.WindowSprite_CloseBtnImg)
package yojogame.common.component {
import mx.core.*;
public class WindowSprite_CloseBtnImg extends BitmapAsset {
}
}//package yojogame.common.component
Section 173
//WindowSprite_OnOk (yojogame.common.component.WindowSprite_OnOk)
package yojogame.common.component {
import mx.core.*;
public class WindowSprite_OnOk extends BitmapAsset {
}
}//package yojogame.common.component
Section 174
//WindowSprite_OverOk (yojogame.common.component.WindowSprite_OverOk)
package yojogame.common.component {
import mx.core.*;
public class WindowSprite_OverOk extends BitmapAsset {
}
}//package yojogame.common.component
Section 175
//HangulTextField (yojogame.common.font.HangulTextField)
package yojogame.common.font {
import flash.text.*;
public class HangulTextField {
private var fontFromSWF:Class;
private var yOffset:uint;// = 0
private var toggleSWFFont:String;// = "포티니트8"
private static var _instance:HangulTextField = null;
public function HangulTextField(){
fontFromSWF = HangulTextField_fontFromSWF;
toggleSWFFont = "포티니트8";
yOffset = 0;
super();
}
public function getTextBox(_arg1:String, _arg2:uint, _arg3:uint, _arg4:uint=0, _arg5:Number=0, _arg6:Number=0, _arg7:uint=12, _arg8:Boolean=false):TextField{
var _local9:TextFormat;
var _local10:TextField;
_local9 = new TextFormat();
_local9.font = toggleSWFFont;
_local9.color = _arg4;
_local9.size = _arg7;
_local9.bold = _arg8;
_local10 = new TextField();
_local10.x = _arg5;
_local10.y = _arg6;
_local10.width = _arg2;
_local10.height = _arg3;
_local10.embedFonts = true;
_local10.defaultTextFormat = _local9;
_local10.antiAliasType = AntiAliasType.ADVANCED;
_local10.autoSize = TextFieldAutoSize.LEFT;
_local10.selectable = false;
_local10.background = false;
_local10.border = false;
_local10.multiline = true;
_local10.wordWrap = true;
_local10.text = _arg1;
return (_local10);
}
public function getTextField(_arg1:String, _arg2:uint=0, _arg3:Number=0, _arg4:Number=0, _arg5:uint=12, _arg6:Boolean=false):TextField{
var _local7:TextFormat;
var _local8:TextField;
_local7 = new TextFormat();
_local7.font = toggleSWFFont;
_local7.color = _arg2;
_local7.size = _arg5;
_local7.bold = _arg6;
_local8 = new TextField();
_local8.embedFonts = true;
_local8.defaultTextFormat = _local7;
_local8.antiAliasType = AntiAliasType.ADVANCED;
_local8.autoSize = TextFieldAutoSize.LEFT;
_local8.selectable = false;
_local8.text = _arg1;
_local8.x = _arg3;
_local8.y = _arg4;
return (_local8);
}
public function getInputTextField(_arg1:String, _arg2:uint=0, _arg3:Number=0, _arg4:Number=0, _arg5:uint=12, _arg6:Boolean=false):TextField{
var _local7:TextFormat;
var _local8:TextField;
_local7 = new TextFormat();
_local7.font = toggleSWFFont;
_local7.color = _arg2;
_local7.size = _arg5;
_local7.bold = _arg6;
_local8 = new TextField();
_local8.embedFonts = true;
_local8.type = TextFieldType.INPUT;
_local8.defaultTextFormat = _local7;
_local8.antiAliasType = AntiAliasType.ADVANCED;
_local8.autoSize = TextFieldAutoSize.LEFT;
_local8.selectable = true;
_local8.text = _arg1;
_local8.x = _arg3;
_local8.y = _arg4;
return (_local8);
}
public static function getInstance():HangulTextField{
if (HangulTextField._instance == null){
HangulTextField._instance = new (HangulTextField);
};
return (HangulTextField._instance);
}
}
}//package yojogame.common.font
Section 176
//HangulTextField_fontFromSWF (yojogame.common.font.HangulTextField_fontFromSWF)
package yojogame.common.font {
import mx.core.*;
public class HangulTextField_fontFromSWF extends FontAsset {
}
}//package yojogame.common.font
Section 177
//AbstractEmbedGame (AbstractEmbedGame)
package {
import flash.events.*;
import flash.display.*;
import yojogame.common.component.*;
import yojogame.common.font.*;
import flash.text.*;
import flash.system.*;
public class AbstractEmbedGame extends Sprite {
protected var progress_bar:PercentageBar;
protected var loaded_tfd:TextField;
protected var Game:Class;
protected var _movie:AbstractMovie;
protected var screen_cover:ScreenCover;
protected var RetryOver:Class;
protected var RetryOn:Class;
protected var _game:AbstractMiniGame;
public function AbstractEmbedGame(_arg1:Class){
RetryOn = AbstractEmbedGame_RetryOn;
RetryOver = AbstractEmbedGame_RetryOver;
super();
System.useCodePage = true;
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
this.Game = _arg1;
_movie = new LogoMovie();
_movie.addEventListener(AbstractMovie.PLAY_COMPLETE, buildScreen);
_movie.x = 275;
_movie.y = 200;
addChild(_movie);
progress_bar = new PercentageBar(175, 300, 200, 1, 16742399, 0xFF0000, 16724940);
progress_bar.barLength = 0;
loaded_tfd = HangulTextField.getInstance().getTextField("0%", 16742399, 175, 280);
addChild(progress_bar);
addChild(loaded_tfd);
this.addEventListener(Event.ENTER_FRAME, onProgress);
}
protected function showSaveQurey(_arg1:Event):void{
var _local2:ButtonSprite;
_local2 = new ButtonSprite(RetryOn, RetryOver);
_local2.name = "retry";
_local2.addEventListener(MouseEvent.CLICK, gameRestart);
_local2.x = ((550 - _local2.width) * 0.5);
_local2.y = ((400 - _local2.height) * 0.5);
addChild(_local2);
}
protected function clearScreen(_arg1:Event):void{
removeChild(screen_cover);
screen_cover = null;
}
protected function initMiniGame(_arg1:Event):void{
removeChild(_movie);
_movie = null;
addChildAt(_game, this.getChildIndex(screen_cover));
screen_cover.startRemoveTiles();
}
protected function onProgress(_arg1:Event):void{
var _local2:LoaderInfo;
var _local3:uint;
_local2 = this.root.loaderInfo;
_local3 = Math.floor(((_local2.bytesLoaded * 100) / _local2.bytesTotal));
progress_bar.barLength = _local3;
loaded_tfd.text = (_local3 + "%");
loaded_tfd.x = (175 + (_local3 * 2));
if (_local3 == 100){
this.removeEventListener(Event.ENTER_FRAME, onProgress);
onComplete();
};
}
protected function onComplete():void{
removeChild(loaded_tfd);
removeChild(progress_bar);
_movie.play();
}
protected function removeSoundConfigWindow(_arg1:Event):void{
removeWindow(_arg1);
_game.restart();
}
protected function makeCover():Sprite{
var _local1:Sprite;
_local1 = new Sprite();
_local1.graphics.beginFill(0x333333, 0.5);
_local1.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
_local1.graphics.endFill();
_local1.name = "cover";
_local1.useHandCursor = false;
return (_local1);
}
protected function showConfigWindow(_arg1:Event):void{
var _local2:AbstractWindowContent;
var _local3:WindowSprite;
var _local4:Sprite;
_local2 = new SoundConfigWindowContent(_game.soundManager);
_local3 = new WindowSprite(_local2, "환경 설정", "config_window");
_local3.x = ((550 - _local3.width) * 0.5);
_local3.y = ((400 - _local3.height) * 0.5);
_local4 = makeCover();
addChild(_local4);
addChild(_local3);
_local3.addEventListener(WindowSprite.DESTROY, removeSoundConfigWindow);
}
protected function showMassageWindow(_arg1:String):void{
var _local2:AbstractWindowContent;
var _local3:WindowSprite;
_local2 = new MassageWindowContent(_arg1);
_local3 = new WindowSprite(_local2, "알림", "msg_window");
_local3.x = ((550 - _local3.width) * 0.5);
_local3.y = ((400 - _local3.height) * 0.5);
addChild(_local3);
_local3.addEventListener(WindowSprite.DESTROY, removeWindow);
}
protected function buildScreen(_arg1:Event):void{
_game = new Game(stage);
_game.addEventListener(AbstractMiniGame.SHOW_SAVE_QUERY, showSaveQurey);
_game.addEventListener(AbstractMiniGame.SHOW_CONFIG, showConfigWindow);
_game.addEventListener(AbstractMiniGame.SHOW_EXPLAIN, showExplainWindow);
screen_cover = new ScreenCover();
screen_cover.addEventListener(ScreenCover.COVER_COMP, initMiniGame);
screen_cover.addEventListener(ScreenCover.REMOVE_COMP, clearScreen);
addChild(screen_cover);
this.Game = null;
}
protected function removeWindow(_arg1:Event):void{
this.removeChild(getChildByName(_arg1.target.name));
this.removeChild(getChildByName("cover"));
}
protected function removeExplainWindow(_arg1:Event):void{
removeWindow(_arg1);
if (_game.isStart()){
_game.restart();
};
}
public function gameRestart(_arg1:Event):void{
var _local2:DisplayObject;
_local2 = this.getChildByName("retry");
_local2.removeEventListener(MouseEvent.CLICK, gameRestart);
clearDisplayObjectByName("retry");
_game.initGame();
}
protected function showExplainWindow(_arg1:Event):void{
var _local2:AbstractWindowContent;
var _local3:WindowSprite;
var _local4:Sprite;
_local2 = _game.explainWindowContent;
_local3 = new WindowSprite(_local2, "게임 설명", "explain_window");
_local3.x = ((550 - _local3.width) * 0.5);
_local3.y = ((400 - _local3.height) * 0.5);
_local4 = makeCover();
addChild(_local4);
addChild(_local3);
_local3.addEventListener(WindowSprite.DESTROY, removeExplainWindow);
}
protected function clearDisplayObjectByName(_arg1:String):void{
var _local2:DisplayObject;
_local2 = getChildByName(_arg1);
removeChild(_local2);
_local2 = null;
}
}
}//package
Section 178
//AbstractEmbedGame_RetryOn (AbstractEmbedGame_RetryOn)
package {
import mx.core.*;
public class AbstractEmbedGame_RetryOn extends BitmapAsset {
}
}//package
Section 179
//AbstractEmbedGame_RetryOver (AbstractEmbedGame_RetryOver)
package {
import mx.core.*;
public class AbstractEmbedGame_RetryOver extends BitmapAsset {
}
}//package
Section 180
//AbstractMiniGame (AbstractMiniGame)
package {
import flash.events.*;
import flash.display.*;
import yojogame.common.component.*;
public class AbstractMiniGame extends Sprite {
protected var frontpage:AbstractFrontPage;
protected var sound_manager:AbstractSoundManager;
public var ExplainWindow:Class;
public static const SHOW_CONFIG:String = "show_config";
public static const SHOW_EXPLAIN:String = "show_explain";
public static const SHOW_SAVE_QUERY:String = "show_save_query";
public function restart():void{
throw (new Error("restart 오버라이드 해라"));
}
public function initGame():void{
throw (new Error("initGame 오버라이드 해라"));
}
public function isStart():Boolean{
throw (new Error("isStart 오버라이드 해라"));
}
protected function execute(_arg1:Event):void{
throw (new Error("execute 오버라이드 해라"));
}
public function get soundManager():AbstractSoundManager{
return (sound_manager);
}
public function get explainWindowContent():AbstractWindowContent{
return (new ExplainWindow());
}
protected function showExplainWindow(_arg1:Event):void{
throw (new Error("showExplainWindow 오버라이드 해라"));
}
protected function showSaveQuery(_arg1:Event):void{
throw (new Error("showSaveQuery 오버라이드 해라"));
}
protected function showConfigWidow(_arg1:Event):void{
throw (new Error("showConfigWidow 오버라이드 해라"));
}
public function getScore():uint{
throw (new Error("getScore 오버라이드 해라"));
}
}
}//package
Section 181
//AbstractMovie (AbstractMovie)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class AbstractMovie extends MovieClip {
protected var end_check_timer:Timer;
public static const PLAY_COMPLETE:String = "play_complete";
public function AbstractMovie(){
end_check_timer = new Timer(10);
end_check_timer.addEventListener(TimerEvent.TIMER, checkEnd);
end_check_timer.start();
gotoAndStop(1);
}
public function checkEnd(_arg1:TimerEvent):void{
if (currentFrame == totalFrames){
gotoAndStop(totalFrames);
end_check_timer.stop();
end_check_timer.removeEventListener(TimerEvent.TIMER, checkEnd);
dispatchEvent(new Event(AbstractMovie.PLAY_COMPLETE));
};
}
}
}//package
Section 182
//EmbedSkyRacingGame (EmbedSkyRacingGame)
package {
public class EmbedSkyRacingGame extends AbstractEmbedGame {
private var GameData:Class;
public function EmbedSkyRacingGame(){
GameData = SkyRacingGameMain;
super(GameData);
}
}
}//package
Section 183
//LogoMovie (LogoMovie)
package {
public class LogoMovie extends AbstractMovie {
}
}//package
Section 184
//SkyRacingGameMain (SkyRacingGameMain)
package {
import flash.events.*;
import flash.display.*;
import yojogame.common.component.*;
import minigame.skyracinggame.char.*;
import minigame.skyracinggame.model.*;
import minigame.skyracinggame.view.*;
import minigame.skyracinggame.component.*;
import mx.core.*;
import minigame.skyracinggame.page.*;
public class SkyRacingGameMain extends AbstractMiniGame {
private var roadImageSupplier:RoadImageSupplier;
private var storePage:StorePage;
private var model:Model;
private var stageMapPage:AbstractPage;
private var BG:Class;
private var char:AbstractCharacter;
private var ImageData:Class;
private var charChoicepage:AbstractPage;
private var controll:Controll;
private var game_sprite:GameSprite;
private var blinder:Sprite;
private var bg_img:BackGround;
private var mainBg:Bitmap;
private var targetStage:Stage;
public function SkyRacingGameMain(_arg1:Stage){
var _local2:MovieClipLoaderAsset;
ImageData = SkyRacingGameMain_ImageData;
BG = SkyRacingGameMain_BG;
super();
ExplainWindow = ExplainWindowContent;
_arg1.align = StageAlign.TOP_LEFT;
_arg1.scaleMode = StageScaleMode.NO_SCALE;
this.targetStage = _arg1;
_local2 = (new ImageData() as MovieClipLoaderAsset);
Loader(_local2.getChildAt(0)).contentLoaderInfo.addEventListener(Event.INIT, appAssetInit);
frontpage = new SkyracingGameFrontPage();
frontpage.addEventListener(AbstractFrontPage.EXECUTE, execute);
frontpage.addEventListener(AbstractFrontPage.SHOW_EXPLAIN, showExplainWindow);
addChild(frontpage);
}
private function showStore(_arg1:Event):void{
addChild(mainBg);
storePage = new StorePage();
storePage.buildStore(char);
storePage.addEventListener(AbstractPage.GO_STAGE_MAP, reshowMapStage);
addChild(storePage);
removeChild(blinder);
removeChild(char);
removeChild(game_sprite);
}
override public function restart():void{
}
override public function initGame():void{
charChoicepage = new CharChoicePage();
charChoicepage.addEventListener(AbstractPage.GO_STAGE_MAP, retryShowMapStage);
addChild(charChoicepage);
}
private function showMapStage(_arg1:Event):void{
charChoicepage.removeEventListener(AbstractPage.GO_STAGE_MAP, showMapStage);
stageMapPage = new StageMapPage(Model.STAGE_NUM);
stageMapPage.addEventListener(AbstractPage.GO_GAME_STAGE, initBuildGame);
addChild(stageMapPage);
removeChild(charChoicepage);
charChoicepage = null;
char = getChar(_arg1.target.charNum);
}
private function createGame():void{
model.buildStage();
addChildAt(char, getChildIndex(mainBg));
addChildAt(game_sprite, getChildIndex(char));
addChildAt(bg_img, getChildIndex(game_sprite));
removeChild(stageMapPage);
stageMapPage = null;
removeChild(mainBg);
addChild(blinder);
game_sprite.start();
}
private function initBuildGame(_arg1:Event):void{
stageMapPage.removeEventListener(AbstractPage.GO_GAME_STAGE, initBuildGame);
char.x = 275;
char.y = 320;
sound_manager = new SoundManager();
blinder = new Sprite();
model = new Model();
model.addEventListener(Model.END_STAGE, showStore);
model.addEventListener(Model.GAME_OVER, showSaveQuery);
bg_img = new BackGround(model);
controll = new Controll(stage, model);
controll.setCharProperty(char);
game_sprite = new GameSprite(model, bg_img, char, roadImageSupplier, blinder, sound_manager);
model.buildStage();
addChildAt(char, getChildIndex(mainBg));
addChildAt(game_sprite, getChildIndex(char));
addChildAt(bg_img, getChildIndex(game_sprite));
removeChild(stageMapPage);
stageMapPage = null;
removeChild(mainBg);
addChild(blinder);
game_sprite.start();
stage.focus = targetStage;
sound_manager.playBGmusic();
}
override public function isStart():Boolean{
return (true);
}
override protected function execute(_arg1:Event):void{
mainBg = (new BG() as Bitmap);
addChildAt(mainBg, getChildIndex(frontpage));
charChoicepage = new CharChoicePage();
charChoicepage.addEventListener(AbstractPage.GO_STAGE_MAP, showMapStage);
addChildAt(charChoicepage, getChildIndex(frontpage));
frontpage.destroy();
removeChild(frontpage);
frontpage = null;
}
private function gameAssetInitStart(_arg1:Event):void{
stageMapPage.removeEventListener(AbstractPage.GO_GAME_STAGE, gameAssetInitStart);
model.buildStage();
addChildAt(blinder, getChildIndex(stageMapPage));
addChildAt(char, getChildIndex(blinder));
addChildAt(game_sprite, getChildIndex(char));
controll.setCharProperty(char);
removeChild(stageMapPage);
stageMapPage = null;
removeChild(mainBg);
game_sprite.start();
stage.focus = targetStage;
sound_manager.resetVolume();
}
private function retryBuildGame(_arg1:Event):void{
model.score = 0;
stageMapPage.removeEventListener(AbstractPage.GO_GAME_STAGE, retryBuildGame);
char.x = 275;
char.y = 320;
AbstractCharacter.IS_BUY_BOOSTER = false;
AbstractCharacter.IS_BUY_PROPELLER = false;
AbstractCharacter.IS_BUY_WINGS = false;
controll.setCharProperty(char);
game_sprite.setChar(char);
addChildAt(blinder, getChildIndex(stageMapPage));
addChildAt(char, getChildIndex(blinder));
addChildAt(game_sprite, getChildIndex(char));
model.buildStage();
removeChild(stageMapPage);
stageMapPage = null;
removeChild(mainBg);
addChild(blinder);
game_sprite.start();
stage.focus = targetStage;
sound_manager.resetVolume();
}
override protected function showExplainWindow(_arg1:Event):void{
dispatchEvent(new Event(AbstractMiniGame.SHOW_EXPLAIN));
}
private function getChar(_arg1:int):AbstractCharacter{
var _local2:AbstractCharacter;
switch (_arg1){
case 0:
_local2 = new YojoCharacter();
break;
case 1:
_local2 = new MoonBoyCharacter();
break;
case 2:
_local2 = new MoonRabbitCharacter();
break;
};
return (_local2);
}
override protected function showSaveQuery(_arg1:Event):void{
addChild(mainBg);
removeChild(blinder);
removeChild(char);
char = null;
removeChild(game_sprite);
dispatchEvent(new Event(AbstractMiniGame.SHOW_SAVE_QUERY));
}
private function reshowMapStage(_arg1:Event):void{
Model.STAGE_NUM++;
stageMapPage = new StageMapPage(Model.STAGE_NUM);
stageMapPage.addEventListener(AbstractPage.GO_GAME_STAGE, gameAssetInitStart);
addChild(stageMapPage);
storePage.removeEventListener(AbstractPage.GO_STAGE_MAP, reshowMapStage);
removeChild(storePage);
storePage = null;
}
override protected function showConfigWidow(_arg1:Event):void{
}
override public function getScore():uint{
return (model.score);
}
private function retryShowMapStage(_arg1:Event):void{
Model.STAGE_NUM = 0;
Model.TOTAL_MONEY = 0;
model.money = 0;
charChoicepage.removeEventListener(AbstractPage.GO_STAGE_MAP, retryShowMapStage);
stageMapPage = new StageMapPage(Model.STAGE_NUM);
stageMapPage.addEventListener(AbstractPage.GO_GAME_STAGE, retryBuildGame);
addChild(stageMapPage);
removeChild(charChoicepage);
charChoicepage = null;
char = getChar(_arg1.target.charNum);
}
private function appAssetInit(_arg1:Event):void{
roadImageSupplier = new RoadImageSupplier(_arg1.target.content.loaderInfo.applicationDomain);
}
}
}//package
Section 185
//SkyRacingGameMain_BG (SkyRacingGameMain_BG)
package {
import mx.core.*;
public class SkyRacingGameMain_BG extends BitmapAsset {
}
}//package
Section 186
//SkyRacingGameMain_ImageData (SkyRacingGameMain_ImageData)
package {
import flash.utils.*;
import mx.core.*;
public class SkyRacingGameMain_ImageData extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function SkyRacingGameMain_ImageData(){
dataClass = SkyRacingGameMain_ImageData_dataClass;
super();
initialWidth = (100 / 20);
initialHeight = (100 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package
Section 187
//SkyRacingGameMain_ImageData_dataClass (SkyRacingGameMain_ImageData_dataClass)
package {
import mx.core.*;
public class SkyRacingGameMain_ImageData_dataClass extends ByteArrayAsset {
}
}//package