Section 1
//AbstractAniNumberSprite (minigame.common.component.AbstractAniNumberSprite)
package minigame.common.component {
import flash.events.*;
import flash.utils.*;
import util.*;
public class AbstractAniNumberSprite extends AbstractNumberSprite {
protected var stopTimer:Timer;
protected var num:uint;
public function AbstractAniNumberSprite(_arg1:uint=1){
stopTimer = new Timer(NumberUtilities.random(300, 1500), 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 minigame.common.component
Section 2
//AbstractFrontPage (minigame.common.component.AbstractFrontPage)
package minigame.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(AbstractFrontPage.SHOW_EXPLAIN));
}
protected function execute(_arg1:Event):void{
this.dispatchEvent(new Event(AbstractFrontPage.EXECUTE));
}
protected function onMouseOver(_arg1:Event):void{
var _local2:Sound;
_local2 = (new OverSound() as Sound);
_local2.play();
}
}
}//package minigame.common.component
Section 3
//AbstractFrontPage_OnHelp (minigame.common.component.AbstractFrontPage_OnHelp)
package minigame.common.component {
import mx.core.*;
public class AbstractFrontPage_OnHelp extends BitmapAsset {
}
}//package minigame.common.component
Section 4
//AbstractFrontPage_OnStart (minigame.common.component.AbstractFrontPage_OnStart)
package minigame.common.component {
import mx.core.*;
public class AbstractFrontPage_OnStart extends BitmapAsset {
}
}//package minigame.common.component
Section 5
//AbstractFrontPage_OverHelp (minigame.common.component.AbstractFrontPage_OverHelp)
package minigame.common.component {
import mx.core.*;
public class AbstractFrontPage_OverHelp extends BitmapAsset {
}
}//package minigame.common.component
Section 6
//AbstractFrontPage_OverSound (minigame.common.component.AbstractFrontPage_OverSound)
package minigame.common.component {
import mx.core.*;
public class AbstractFrontPage_OverSound extends SoundAsset {
}
}//package minigame.common.component
Section 7
//AbstractFrontPage_OverStart (minigame.common.component.AbstractFrontPage_OverStart)
package minigame.common.component {
import mx.core.*;
public class AbstractFrontPage_OverStart extends BitmapAsset {
}
}//package minigame.common.component
Section 8
//AbstractNumberSprite (minigame.common.component.AbstractNumberSprite)
package minigame.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 minigame.common.component
Section 9
//AbstractSoundManager (minigame.common.component.AbstractSoundManager)
package minigame.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 minigame.common.component
Section 10
//AbstractWindowContent (minigame.common.component.AbstractWindowContent)
package minigame.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 minigame.common.component
Section 11
//AniNumberSprite (minigame.common.component.AniNumberSprite)
package minigame.common.component {
public class AniNumberSprite extends AbstractAniNumberSprite {
public function AniNumberSprite(_arg1:uint=1){
super(_arg1);
}
}
}//package minigame.common.component
Section 12
//ButtonSprite (minigame.common.component.ButtonSprite)
package minigame.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 minigame.common.component
Section 13
//ComboNumberSprite (minigame.common.component.ComboNumberSprite)
package minigame.common.component {
public class ComboNumberSprite extends AbstractAniNumberSprite {
public function ComboNumberSprite(_arg1:uint=1){
super(_arg1);
}
}
}//package minigame.common.component
Section 14
//FireFlower (minigame.common.component.FireFlower)
package minigame.common.component {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class FireFlower extends Sprite {
private var ratio:int;// = 0
private var moveTimer:Timer;
private var _speed:Number;
private var gravity:Number;// = 0.5
private var callTime:uint;// = 0
private var angle_unit:int;
private var _list:Array;
private var num:uint;
private var mutation:uint;// = 0
private var _target:Sprite;
public function FireFlower(_arg1:Class, _arg2:Sprite, _arg3:int, _arg4:int, _arg5:int=4, _arg6:Number=10, _arg7:uint=80, _arg8:uint=20){
var _local9:uint;
var _local10:Bitmap;
gravity = 0.5;
ratio = 0;
mutation = 0;
callTime = 0;
super();
num = _arg8;
_target = _arg2;
this.x = _arg3;
this.y = _arg4;
this.ratio = _arg5;
this.callTime = _arg7;
_list = new Array(num);
_speed = _arg6;
angle_unit = Math.floor((360 / num));
_local9 = 0;
while (_local9 < num) {
_local10 = (new (_arg1) as Bitmap);
_local10.x = 16;
_local10.y = -16;
addChild(_local10);
_list[_local9] = _local10;
_local9++;
};
moveTimer = new Timer(20, _arg7);
moveTimer.addEventListener(TimerEvent.TIMER, fire);
moveTimer.addEventListener(TimerEvent.TIMER_COMPLETE, clearFire);
_target.addChild(this);
moveTimer.start();
}
private function clearFire(_arg1:TimerEvent):void{
moveTimer.removeEventListener(TimerEvent.TIMER, fire);
moveTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, clearFire);
_target.removeChild(this);
}
private function fire(_arg1:TimerEvent):void{
var _local2:uint;
_local2 = 0;
while (_local2 < num) {
move(_list[_local2], ((_local2 * angle_unit) + mutation));
_local2++;
};
mutation = (mutation + ratio);
}
private function move(_arg1:DisplayObject, _arg2:uint):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local3 = ((_arg2 * Math.PI) / 180);
_local4 = (Math.cos(_local3) * _speed);
_local5 = (Math.sin(_local3) * _speed);
_arg1.x = (_arg1.x + _local4);
_arg1.y = (_arg1.y + _local5);
_speed = (_speed * 0.999);
}
}
}//package minigame.common.component
Section 15
//MassageWindowContent (minigame.common.component.MassageWindowContent)
package minigame.common.component {
import minigame.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 minigame.common.component
Section 16
//PercentageBar (minigame.common.component.PercentageBar)
package minigame.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 minigame.common.component
Section 17
//PolyNumber (minigame.common.component.PolyNumber)
package minigame.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);
}
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){
removeChildAt(old_strlen);
};
old_strlen = _local4;
}
}
}//package minigame.common.component
Section 18
//ScreenCover (minigame.common.component.ScreenCover)
package minigame.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(ScreenCover.COVER_COMP));
};
}
private function removeTile(_arg1:Event):void{
var _local2:ScreenTile;
_local2 = (_arg1.target as ScreenTile);
removeChild(_local2);
_local2 = null;
total_msg++;
if (total_msg == total_tiles){
this.dispatchEvent(new Event(ScreenCover.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(ScreenTile.REMOVE_ME, removeTile);
_local4.addEventListener(ScreenTile.CREATE_COMP, sendBuildCompMSG);
addChild(_local4);
tile_list[tile_count] = _local4;
tile_count++;
} else {
break;
};
_local2++;
};
px++;
}
}
}//package minigame.common.component
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
import util.*;
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(ScreenTile.CREATE_COMP));
}
private function sendRemoveMassage(_arg1:TimerEvent):void{
this.dispatchEvent(new Event(ScreenTile.REMOVE_ME));
}
private function modifyAlpha(_arg1:TimerEvent):void{
this.alpha = (this.alpha + alpha_val);
}
}
Section 19
//SingleButtonSprite (minigame.common.component.SingleButtonSprite)
package minigame.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 minigame.common.component
Section 20
//SoundConfigWindowContent (minigame.common.component.SoundConfigWindowContent)
package minigame.common.component {
import flash.events.*;
import flash.display.*;
import minigame.common.font.*;
import flash.text.*;
import flash.geom.*;
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 minigame.common.component
Section 21
//SoundConfigWindowContent_SpeakerController (minigame.common.component.SoundConfigWindowContent_SpeakerController)
package minigame.common.component {
import mx.core.*;
public class SoundConfigWindowContent_SpeakerController extends BitmapAsset {
}
}//package minigame.common.component
Section 22
//WindowSprite (minigame.common.component.WindowSprite)
package minigame.common.component {
import flash.events.*;
import flash.display.*;
import minigame.common.font.*;
import flash.text.*;
import flash.filters.*;
import util.*;
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(WindowSprite.DESTROY));
}
}
}//package minigame.common.component
Section 23
//WindowSprite_BarLeft (minigame.common.component.WindowSprite_BarLeft)
package minigame.common.component {
import mx.core.*;
public class WindowSprite_BarLeft extends BitmapAsset {
}
}//package minigame.common.component
Section 24
//WindowSprite_BarPattern (minigame.common.component.WindowSprite_BarPattern)
package minigame.common.component {
import mx.core.*;
public class WindowSprite_BarPattern extends BitmapAsset {
}
}//package minigame.common.component
Section 25
//WindowSprite_BarRight (minigame.common.component.WindowSprite_BarRight)
package minigame.common.component {
import mx.core.*;
public class WindowSprite_BarRight extends BitmapAsset {
}
}//package minigame.common.component
Section 26
//WindowSprite_CloseBtnImg (minigame.common.component.WindowSprite_CloseBtnImg)
package minigame.common.component {
import mx.core.*;
public class WindowSprite_CloseBtnImg extends BitmapAsset {
}
}//package minigame.common.component
Section 27
//WindowSprite_OnOk (minigame.common.component.WindowSprite_OnOk)
package minigame.common.component {
import mx.core.*;
public class WindowSprite_OnOk extends BitmapAsset {
}
}//package minigame.common.component
Section 28
//WindowSprite_OverOk (minigame.common.component.WindowSprite_OverOk)
package minigame.common.component {
import mx.core.*;
public class WindowSprite_OverOk extends BitmapAsset {
}
}//package minigame.common.component
Section 29
//HangulTextField (minigame.common.font.HangulTextField)
package minigame.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 minigame.common.font
Section 30
//HangulTextField_fontFromSWF (minigame.common.font.HangulTextField_fontFromSWF)
package minigame.common.font {
import mx.core.*;
public class HangulTextField_fontFromSWF extends FontAsset {
}
}//package minigame.common.font
Section 31
//AbstractDancer (minigame.dancegame.component.AbstractDancer)
package minigame.dancegame.component {
import flash.events.*;
import flash.display.*;
import minigame.dancegame.model.*;
import minigame.dancegame.view.*;
public class AbstractDancer extends MovieClip {
protected var model:Model;
protected var currentActType:String;
protected var assembler:AssembleArrowTimeBarView;
public function AbstractDancer(_arg1:Model, _arg2:AssembleArrowTimeBarView){
this.model = _arg1;
this.assembler = _arg2;
gotoAndStop(1);
_arg1.addEventListener(Model.PERFECT, showDance);
_arg1.addEventListener(Model.GREAT, showDance);
_arg1.addEventListener(Model.COOL, showDance);
_arg1.addEventListener(Model.BAD, onStatus);
_arg1.addEventListener(Model.END, onStatus);
_arg1.addEventListener(Model.MISS, onStatus);
_arg1.addEventListener(Model.INIT_GAME, setRestart);
_arg1.addEventListener(Model.STOP, stopAni);
_arg1.addEventListener(Model.RESTART, restart);
_arg2.addEventListener(AssembleArrowTimeBarView.PREPARE, onPrepare);
}
protected function restart(_arg1:Event):void{
this.visible = true;
gotoAndStop(currentActType);
}
protected function onPrepare(_arg1:Event):void{
gotoAndStop(_arg1.type);
}
protected function setRestart(_arg1:Event):void{
gotoAndStop("prepare");
}
protected function stopAni(_arg1:Event):void{
this.visible = false;
currentActType = this.currentLabel;
}
protected function onStatus(_arg1:Event):void{
gotoAndStop(_arg1.type);
}
protected function showDance(_arg1:Event):void{
gotoAndStop("dance");
}
}
}//package minigame.dancegame.component
Section 32
//AbstractSpeaker (minigame.dancegame.component.AbstractSpeaker)
package minigame.dancegame.component {
import flash.events.*;
import flash.display.*;
import minigame.dancegame.model.*;
public class AbstractSpeaker extends MovieClip {
public function AbstractSpeaker(_arg1:Model){
gotoAndStop("act");
_arg1.addEventListener(Model.STOP, actStop);
_arg1.addEventListener(Model.RESTART, actStart);
}
public function actStop(_arg1:Event):void{
gotoAndStop("stop");
}
public function actStart(_arg1:Event):void{
gotoAndStop("act");
}
}
}//package minigame.dancegame.component
Section 33
//DanceGameFrontPage (minigame.dancegame.component.DanceGameFrontPage)
package minigame.dancegame.component {
import flash.display.*;
import minigame.common.component.*;
public class DanceGameFrontPage extends AbstractFrontPage {
private var FrontpageImg:Class;
public function DanceGameFrontPage(){
var _local1:DisplayObject;
FrontpageImg = DanceGameFrontPage_FrontpageImg;
background_image = new Sprite();
_local1 = new FrontpageImg();
background_image.useHandCursor = false;
background_image.addChild(_local1);
super();
}
}
}//package minigame.dancegame.component
Section 34
//DanceGameFrontPage_FrontpageImg (minigame.dancegame.component.DanceGameFrontPage_FrontpageImg)
package minigame.dancegame.component {
import mx.core.*;
public class DanceGameFrontPage_FrontpageImg extends BitmapAsset {
}
}//package minigame.dancegame.component
Section 35
//DancerMoonBoy (minigame.dancegame.component.DancerMoonBoy)
package minigame.dancegame.component {
import minigame.dancegame.model.*;
import minigame.dancegame.view.*;
public class DancerMoonBoy extends AbstractDancer {
public function DancerMoonBoy(_arg1:Model, _arg2:AssembleArrowTimeBarView){
super(_arg1, _arg2);
}
}
}//package minigame.dancegame.component
Section 36
//DancerMoonRabbit (minigame.dancegame.component.DancerMoonRabbit)
package minigame.dancegame.component {
import minigame.dancegame.model.*;
import minigame.dancegame.view.*;
public class DancerMoonRabbit extends AbstractDancer {
public function DancerMoonRabbit(_arg1:Model, _arg2:AssembleArrowTimeBarView){
super(_arg1, _arg2);
}
}
}//package minigame.dancegame.component
Section 37
//DancerYojo (minigame.dancegame.component.DancerYojo)
package minigame.dancegame.component {
import flash.events.*;
import minigame.dancegame.model.*;
import minigame.dancegame.view.*;
import flash.utils.*;
import util.*;
public class DancerYojo extends AbstractDancer {
private var dancerTimer:Timer;
public function DancerYojo(_arg1:Model, _arg2:AssembleArrowTimeBarView){
super(_arg1, _arg2);
}
private function shutDownDancerTimer():void{
if (((!((dancerTimer == null))) && (dancerTimer.running))){
dancerTimer.stop();
dancerTimer.removeEventListener(TimerEvent.TIMER, showDance);
dancerTimer = null;
};
}
override protected function restart(_arg1:Event):void{
super.restart(_arg1);
if (((!((dancerTimer == null))) && (!(dancerTimer.running)))){
dancerTimer.start();
};
}
private function getDanceTime(_arg1:uint):uint{
var _local2:uint;
switch (_arg1){
case 0:
_local2 = 1000;
break;
case 1:
_local2 = 800;
break;
case 2:
_local2 = 1100;
break;
case 3:
_local2 = 1600;
break;
case 4:
_local2 = 1000;
break;
case 5:
_local2 = 700;
break;
case 6:
_local2 = 1100;
break;
case 7:
_local2 = 400;
break;
case 8:
_local2 = 400;
break;
case 9:
_local2 = 800;
break;
};
return (_local2);
}
override protected function onPrepare(_arg1:Event):void{
shutDownDancerTimer();
gotoAndStop(_arg1.type);
}
override protected function stopAni(_arg1:Event):void{
super.stopAni(_arg1);
if (((!((dancerTimer == null))) && (dancerTimer.running))){
dancerTimer.stop();
};
}
override protected function onStatus(_arg1:Event):void{
shutDownDancerTimer();
gotoAndStop(_arg1.type);
}
override protected function showDance(_arg1:Event):void{
var _local2:uint;
shutDownDancerTimer();
_local2 = NumberUtilities.random(0, 9);
gotoAndStop(("dance" + _local2));
dancerTimer = new Timer(getDanceTime(_local2), 1);
dancerTimer.addEventListener(TimerEvent.TIMER, showDance);
dancerTimer.start();
}
}
}//package minigame.dancegame.component
Section 38
//ExplainWindowContent (minigame.dancegame.component.ExplainWindowContent)
package minigame.dancegame.component {
import flash.display.*;
import minigame.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.dancegame.component
Section 39
//ExplainWindowContent_PageImg (minigame.dancegame.component.ExplainWindowContent_PageImg)
package minigame.dancegame.component {
import mx.core.*;
public class ExplainWindowContent_PageImg extends BitmapAsset {
}
}//package minigame.dancegame.component
Section 40
//LeftSpeaker (minigame.dancegame.component.LeftSpeaker)
package minigame.dancegame.component {
import minigame.dancegame.model.*;
public class LeftSpeaker extends AbstractSpeaker {
public function LeftSpeaker(_arg1:Model){
super(_arg1);
}
}
}//package minigame.dancegame.component
Section 41
//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 42
//RightSpeaker (minigame.dancegame.component.RightSpeaker)
package minigame.dancegame.component {
import minigame.dancegame.model.*;
public class RightSpeaker extends AbstractSpeaker {
public function RightSpeaker(_arg1:Model){
super(_arg1);
}
}
}//package minigame.dancegame.component
Section 43
//SoundManager (minigame.dancegame.component.SoundManager)
package minigame.dancegame.component {
import flash.events.*;
import minigame.common.component.*;
import flash.media.*;
import minigame.dancegame.view.*;
public class SoundManager extends AbstractSoundManager {
private var BGmusic:Class;
private var EffectSnd0:Class;
private var EffectSnd1:Class;
public function SoundManager(_arg1:MassageDisplayer){
BGmusic = SoundManager_BGmusic;
EffectSnd0 = SoundManager_EffectSnd0;
EffectSnd1 = SoundManager_EffectSnd1;
super(26, 7370);
bg_sound = (new BGmusic() as Sound);
effect_sound_list = new Array(2);
effect_channel_list = new Array(2);
effect_sound_list[0] = (new EffectSnd0() as Sound);
effect_sound_list[1] = (new EffectSnd1() as Sound);
_arg1.addEventListener(MassageDisplayer.SHOW_EFFECT, massageEffect);
}
private function massageEffect(_arg1:Event):void{
playEffectSnd(_arg1.target.soundtype);
}
}
}//package minigame.dancegame.component
Section 44
//SoundManager_BGmusic (minigame.dancegame.component.SoundManager_BGmusic)
package minigame.dancegame.component {
import mx.core.*;
public class SoundManager_BGmusic extends SoundAsset {
}
}//package minigame.dancegame.component
Section 45
//SoundManager_EffectSnd0 (minigame.dancegame.component.SoundManager_EffectSnd0)
package minigame.dancegame.component {
import mx.core.*;
public class SoundManager_EffectSnd0 extends SoundAsset {
}
}//package minigame.dancegame.component
Section 46
//SoundManager_EffectSnd1 (minigame.dancegame.component.SoundManager_EffectSnd1)
package minigame.dancegame.component {
import mx.core.*;
public class SoundManager_EffectSnd1 extends SoundAsset {
}
}//package minigame.dancegame.component
Section 47
//Controll (minigame.dancegame.model.Controll)
package minigame.dancegame.model {
import flash.events.*;
import flash.display.*;
import minigame.dancegame.view.*;
public class Controll extends EventDispatcher {
private var assembler:AssembleArrowTimeBarView;
private var model:Model;
private var _target:Stage;
public static const CHECK_BALL:String = "check_ball";
public function Controll(_arg1:Stage, _arg2:Model){
_target = _arg1;
this.model = _arg2;
_arg2.addEventListener(Model.MISS, clearKeyEventListener);
_arg2.addEventListener(Model.END, clearKeyEventListener);
_arg2.addEventListener(Model.STOP, clearKeyEventListener);
_arg2.addEventListener(Model.RESTART, addKeyEventListener);
}
private function clearKeyEventListener(_arg1:Event):void{
_target.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
}
private function addKeyEventListener(_arg1:Event):void{
if (((!(Model.IS_OVER)) && (assembler.isKeyActive))){
_target.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
};
}
private function onKeyDown(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case 37:
model.checkIsCorrectOrder(0);
break;
case 38:
model.checkIsCorrectOrder(1);
break;
case 39:
model.checkIsCorrectOrder(2);
break;
case 40:
model.checkIsCorrectOrder(3);
break;
case 32:
_target.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
dispatchEvent(new Event(Controll.CHECK_BALL));
break;
};
}
public function setAssembler(_arg1:AssembleArrowTimeBarView):void{
this.assembler = _arg1;
_arg1.addEventListener(AssembleArrowTimeBarView.RESTART, addKeyEventListener);
}
}
}//package minigame.dancegame.model
Section 48
//Model (minigame.dancegame.model.Model)
package minigame.dancegame.model {
import flash.events.*;
import minigame.dancegame.view.*;
import util.*;
public class Model extends EventDispatcher {
private var _level:uint;// = 1
private var _score:uint;// = 0
private var _combo:uint;// = 0
private var _life:int;// = 3
private var assembler:AssembleArrowTimeBarView;
private var order_len:uint;// = 4
private var _isStart:Boolean;// = false
private var order_offset:uint;// = 0
private var order_list:Array;
private var game_times:uint;// = 0
public static const INIT_GAME:String = "init_game";
public static const STOP:String = "stop";
public static const COOL:String = "cool";
public static const LEVEL_UP:String = "level_up";
public static const BAD:String = "bad";
public static const PREPARE:String = "prepare";
public static const GREAT:String = "great";
public static const COMBO:String = "combo";
public static const RESTART:String = "restart";
public static const PERFECT:String = "perfect";
public static const END:String = "end";
public static const MISS:String = "miss";
public static var IS_OVER:Boolean = false;
public function Model(){
order_len = 4;
order_offset = 0;
_life = 3;
_level = 1;
_score = 0;
game_times = 0;
_isStart = false;
_combo = 0;
super();
}
public function stop():void{
if (_isStart){
this.dispatchEvent(new Event(Model.STOP));
};
}
public function get level():uint{
return (_level);
}
public function makeOrders():Array{
var _local1:uint;
var _local2:uint;
var _local3:uint;
order_list = null;
order_offset = 0;
_local1 = Math.min(order_len, 8);
order_list = new Array(_local1);
_local2 = 0;
while (_local2 < _local1) {
_local3 = NumberUtilities.random(0, 3);
order_list[_local2] = _local3;
_local2++;
};
return (order_list);
}
public function checkResult(_arg1:uint):void{
switch (_arg1){
case 1:
_combo++;
if (_combo > 1){
_score = (_score + ((_level * 30) * (_combo - 1)));
dispatchEvent(new Event(Model.COMBO));
};
_score = (_score + (_level * 100));
calcLevel();
dispatchEvent(new Event(Model.PERFECT));
break;
case 2:
_score = (_score + (_level * 80));
calcLevel();
dispatchEvent(new Event(Model.GREAT));
_combo = 0;
break;
case 3:
_score = (_score + (_level * 60));
calcLevel();
dispatchEvent(new Event(Model.COOL));
_combo = 0;
break;
case 4:
dispatchEvent(new Event(Model.BAD));
_combo = 0;
break;
case 5:
checkEnd();
_combo = 0;
break;
};
}
public function orderOffset():uint{
return ((order_offset - 1));
}
public function get score():uint{
return (_score);
}
public function get combo():uint{
return ((_combo - 1));
}
public function initGame():void{
IS_OVER = false;
_life = 3;
order_len = 4;
order_offset = 0;
_level = 1;
_score = 0;
game_times = 0;
dispatchEvent(new Event(INIT_GAME));
}
public function get isStart():Boolean{
return (_isStart);
}
public function setAssembler(_arg1:AssembleArrowTimeBarView):void{
this.assembler = _arg1;
}
public function restart():void{
this.dispatchEvent(new Event(Model.RESTART));
}
public function initStart():void{
_isStart = true;
assembler.initStart();
}
private function checkEnd():void{
_life--;
_combo = 0;
if (_life < 0){
IS_OVER = true;
dispatchEvent(new Event(Model.END));
} else {
dispatchEvent(new Event(Model.MISS));
};
}
public function get life():uint{
return (_life);
}
public function checkIsCorrectOrder(_arg1:uint):void{
if (order_list[order_offset] != _arg1){
checkEnd();
} else {
assembler.setGlowToArrow(order_offset, _arg1);
order_offset++;
};
}
private function calcLevel():void{
game_times++;
if ((game_times % 4) == 0){
_level++;
order_len = (order_len + ((((order_len < 8)) && (((_level % 3) == 0)))) ? 1 : 0);
dispatchEvent(new Event(LEVEL_UP));
};
}
}
}//package minigame.dancegame.model
Section 49
//AssembleArrowTimeBarView (minigame.dancegame.view.AssembleArrowTimeBarView)
package minigame.dancegame.view {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import minigame.dancegame.model.*;
import flash.utils.*;
import util.*;
import minigame.dancegame.component.*;
public class AssembleArrowTimeBarView extends Sprite {
private var arrow_left_img:Class;
private var arrow_up_img:Class;
private var count:uint;
private var box_height:uint;// = 10
private var arrow_down_img:Class;
private var model:Model;
private var assemblerTimer:Timer;
private var callTime:uint;// = 30
private var arrow_right_img:Class;
private var last_offset:uint;
private var glow_effecter:GlowEffecter;
private var box_width:uint;// = 200
private var arrow_size:uint;// = 25
private var number_sprite:NumberSprite;
private var _isKeyActive:Boolean;// = false
private var ball_img:Class;
private var grow_list:Array;
private var arrows:Sprite;
private var _ball_speed:Number;// = 0.05
private var arrow_gap:uint;// = 5
private var rounding:uint;// = 8
private var controll:Controll;
private var vx:Number;// = 0
private var ball:Sprite;
public static const PREPARE:String = "prepare";
public static const RESTART:String = "restart";
public function AssembleArrowTimeBarView(_arg1:Controll, _arg2:Model){
var _local3:uint;
var _local4:Shape;
var _local5:String;
var _local6:Array;
var _local7:Array;
var _local8:Array;
var _local9:Matrix;
var _local10:String;
var _local11:Shape;
var _local12:Shape;
arrow_left_img = AssembleArrowTimeBarView_arrow_left_img;
arrow_up_img = AssembleArrowTimeBarView_arrow_up_img;
arrow_right_img = AssembleArrowTimeBarView_arrow_right_img;
arrow_down_img = AssembleArrowTimeBarView_arrow_down_img;
ball_img = AssembleArrowTimeBarView_ball_img;
_ball_speed = 0.05;
vx = 0;
arrow_size = 25;
box_width = 200;
box_height = 10;
arrow_gap = 5;
rounding = 8;
callTime = 30;
_isKeyActive = false;
super();
this.controll = _arg1;
this.model = _arg2;
this.x = 175;
this.y = 90;
grow_list = new Array(3407871, 0xFFFF00, 12428286, 16751103);
glow_effecter = new GlowEffecter();
_local3 = 49128;
_local4 = new Shape();
_local4.graphics.beginFill(_local3, 0.5);
_local4.graphics.drawRoundRect(0, 0, box_width, box_height, rounding, rounding);
_local4.graphics.endFill();
addChild(_local4);
_local5 = GradientType.LINEAR;
_local6 = [_local3, _local3, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, _local3, _local3];
_local7 = [0, 1, 1, 1, 1, 1, 0];
_local8 = [0, 51, 107, 127, 147, 204, 0xFF];
_local9 = new Matrix();
_local9.createGradientBox(50, 50, 0, 0, 0);
_local10 = SpreadMethod.PAD;
_local11 = new Shape();
_local11.graphics.beginGradientFill(_local5, _local6, _local7, _local8, _local9, _local10);
_local11.graphics.drawRect(0, 0, 50, box_height);
_local11.graphics.endFill();
_local11.x = 140;
addChild(_local11);
_local12 = new Shape();
_local12.graphics.lineStyle(2, 0xFFFFFF);
_local12.graphics.drawRoundRect(0, 0, box_width, box_height, rounding, rounding);
addChild(_local12);
ball = new Sprite();
ball.addChild(new ball_img());
_arg1.addEventListener(Controll.CHECK_BALL, checkBallPos);
_arg2.addEventListener(Model.PERFECT, initNextDanceCount);
_arg2.addEventListener(Model.GREAT, initNextDanceCount);
_arg2.addEventListener(Model.COOL, initNextDanceCount);
_arg2.addEventListener(Model.BAD, initProcedure);
_arg2.addEventListener(Model.MISS, initStatus);
_arg2.addEventListener(Model.END, initStatus);
_arg2.addEventListener(Model.LEVEL_UP, adaptLevel);
_arg2.addEventListener(Model.INIT_GAME, initGame);
_arg2.addEventListener(Model.STOP, stopTimer);
_arg2.addEventListener(Model.RESTART, restartTimer);
number_sprite = new NumberSprite();
number_sprite.x = ((this.width - number_sprite.width) * 0.5);
number_sprite.y = 20;
arrows = new Sprite();
addChild(arrows);
}
private function showCount(_arg1:TimerEvent):void{
count--;
if (count == 0){
removeChild(number_sprite);
} else {
number_sprite.number = count;
};
}
private function showArrows():void{
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:DisplayObject;
_local1 = model.makeOrders();
_local2 = _local1.length;
arrows.x = ((box_width - ((arrow_size * _local2) + (_local2 * arrow_gap))) * 0.5);
arrows.y = 33;
_local3 = 0;
while (_local3 < _local2) {
_local4 = attachArrowImage(_local1[_local3]);
_local4.x = ((_local3 * arrow_size) + (arrow_gap * _local3));
arrows.addChild(_local4);
_local3++;
};
}
public function initStart():void{
number_sprite.number = (count = 3);
addChild(number_sprite);
assemblerTimer = new Timer(500, 3);
assemblerTimer.addEventListener(TimerEvent.TIMER, showCount);
assemblerTimer.addEventListener(TimerEvent.TIMER_COMPLETE, restartBall);
assemblerTimer.start();
}
public function get isKeyActive():Boolean{
return (_isKeyActive);
}
public function setGlowToArrow(_arg1:uint, _arg2:uint):void{
var _local3:DisplayObject;
var _local4:BitmapFilter;
var _local5:Array;
_local3 = arrows.getChildAt(_arg1);
glow_effecter.thickness = 6;
glow_effecter.color = grow_list[_arg2];
_local4 = glow_effecter.getBitmapFilter();
_local5 = new Array();
_local5.push(_local4);
_local3.filters = _local5;
last_offset = _arg1;
}
private function initGame(_arg1:Event):void{
callTime = 30;
initProcedure(_arg1);
}
private function prepareNextDance(_arg1:TimerEvent):void{
assemblerTimer.removeEventListener(TimerEvent.TIMER, prepareCount);
initStart();
}
private function prepareCount(_arg1:TimerEvent):void{
assemblerTimer.removeEventListener(TimerEvent.TIMER, prepareCount);
dispatchEvent(new Event(AssembleArrowTimeBarView.PREPARE));
initStart();
}
private function initStatus(_arg1:Event):void{
assemblerTimer.stop();
if (_arg1.type == Model.MISS){
initProcedure(_arg1);
};
}
private function removeAllArrows():void{
var _local1:int;
var _local2:int;
_local1 = arrows.numChildren;
_local2 = 0;
while (_local2 < _local1) {
arrows.removeChildAt(0);
_local2++;
};
}
private function moveBall(_arg1:TimerEvent):void{
var _local2:Number;
var _local3:BitmapFilter;
var _local4:Array;
vx = (vx + _ball_speed);
ball.x = (ball.x + vx);
if (ball.x > 190){
assemblerTimer.stop();
model.checkResult(5);
_isKeyActive = false;
} else {
if ((((ball.x > 140)) && ((ball.x < 180)))){
_local2 = ((ball.x - 140) * 4.5);
glow_effecter.thickness = (Math.sin(((_local2 * Math.PI) / 180)) * 20);
glow_effecter.color = 0xFFFF00;
_local3 = glow_effecter.getBitmapFilter();
_local4 = new Array();
_local4.push(_local3);
ball.filters = _local4;
};
};
}
private function adaptLevel(_arg1:Event):void{
callTime = ((callTime > 10)) ? (callTime - 2) : callTime;
}
private function restartTimer(_arg1:Event):void{
if (!Model.IS_OVER){
assemblerTimer.start();
};
}
private function initBallArrows():void{
if (contains(ball)){
removeChild(ball);
};
removeAllArrows();
vx = 0;
last_offset = 0;
}
private function initNextDanceCount(_arg1:Event):void{
initBallArrows();
assemblerTimer = new Timer(4500, 1);
assemblerTimer.addEventListener(TimerEvent.TIMER, prepareNextDance);
assemblerTimer.start();
}
private function stopTimer(_arg1:Event):void{
assemblerTimer.stop();
}
private function checkBallPos(_arg1:Event):void{
var _local2:Number;
var _local3:uint;
_local2 = ball.x;
assemblerTimer.stop();
_local3 = Math.floor(Math.abs(((_local2 - 160) * 0.5)));
model.checkResult(((last_offset == model.orderOffset())) ? ((_local3 < 3)) ? 1 : ((_local3 < 6)) ? 2 : ((_local3 < 9)) ? 3 : ((_local3 < 12)) ? 4 : 5 : 5);
_isKeyActive = false;
}
private function restartBall(_arg1:TimerEvent):void{
_isKeyActive = true;
dispatchEvent(new Event(AssembleArrowTimeBarView.RESTART));
assemblerTimer.removeEventListener(TimerEvent.TIMER, showCount);
assemblerTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, restartBall);
ball.x = 0;
ball.filters = null;
startMoveBall();
}
private function initProcedure(_arg1:Event):void{
initBallArrows();
assemblerTimer = new Timer(3000, 1);
assemblerTimer.addEventListener(TimerEvent.TIMER, prepareCount);
assemblerTimer.start();
}
private function attachArrowImage(_arg1:uint):DisplayObject{
var _local2:Sprite;
var _local3:Bitmap;
_local2 = new Sprite();
switch (_arg1){
case 0:
_local3 = new arrow_left_img();
break;
case 1:
_local3 = new arrow_up_img();
break;
case 2:
_local3 = new arrow_right_img();
break;
case 3:
_local3 = new arrow_down_img();
break;
};
_local2.addChild(_local3);
return (_local2);
}
private function startMoveBall():void{
addChild(ball);
assemblerTimer = new Timer(callTime);
assemblerTimer.addEventListener(TimerEvent.TIMER, moveBall);
assemblerTimer.start();
showArrows();
}
}
}//package minigame.dancegame.view
Section 50
//AssembleArrowTimeBarView_arrow_down_img (minigame.dancegame.view.AssembleArrowTimeBarView_arrow_down_img)
package minigame.dancegame.view {
import mx.core.*;
public class AssembleArrowTimeBarView_arrow_down_img extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 51
//AssembleArrowTimeBarView_arrow_left_img (minigame.dancegame.view.AssembleArrowTimeBarView_arrow_left_img)
package minigame.dancegame.view {
import mx.core.*;
public class AssembleArrowTimeBarView_arrow_left_img extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 52
//AssembleArrowTimeBarView_arrow_right_img (minigame.dancegame.view.AssembleArrowTimeBarView_arrow_right_img)
package minigame.dancegame.view {
import mx.core.*;
public class AssembleArrowTimeBarView_arrow_right_img extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 53
//AssembleArrowTimeBarView_arrow_up_img (minigame.dancegame.view.AssembleArrowTimeBarView_arrow_up_img)
package minigame.dancegame.view {
import mx.core.*;
public class AssembleArrowTimeBarView_arrow_up_img extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 54
//AssembleArrowTimeBarView_ball_img (minigame.dancegame.view.AssembleArrowTimeBarView_ball_img)
package minigame.dancegame.view {
import mx.core.*;
public class AssembleArrowTimeBarView_ball_img extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 55
//GameUIView (minigame.dancegame.view.GameUIView)
package minigame.dancegame.view {
import flash.events.*;
import flash.display.*;
import minigame.common.component.*;
import minigame.dancegame.model.*;
public class GameUIView extends Sprite {
private var life_number:AniNumberSprite;
private var PauseImg:Class;
private var LifeImg:Class;
private var explain_btn:ButtonSprite;
private var model:Model;
private var OverHelpImg:Class;
private var sound_btn:SingleButtonSprite;
private var SoundImg:Class;
private var level_number:PolyNumber;
private var pause_btn:SingleButtonSprite;
private var score_number:PolyNumber;
private var OnHelpImg:Class;
private var LevelImg:Class;
private var BarImg:Class;
private var ScoreImg:Class;
public static const SHOW_CONFIG:String = "show_config";
public static const SHOW_EXPLAIN:String = "show_explain";
public function GameUIView(_arg1:Model){
var _local2:Bitmap;
var _local3:Bitmap;
var _local4:Bitmap;
var _local5:Bitmap;
var _local6:uint;
ScoreImg = GameUIView_ScoreImg;
LevelImg = GameUIView_LevelImg;
BarImg = GameUIView_BarImg;
LifeImg = GameUIView_LifeImg;
PauseImg = GameUIView_PauseImg;
SoundImg = GameUIView_SoundImg;
OnHelpImg = GameUIView_OnHelpImg;
OverHelpImg = GameUIView_OverHelpImg;
super();
this.model = _arg1;
_local2 = (new ScoreImg() as Bitmap);
_local3 = (new LevelImg() as Bitmap);
_local4 = (new BarImg() as Bitmap);
_local5 = (new LifeImg() as Bitmap);
_local2.x = 30;
_local3.x = 165;
_local5.x = 228;
_local5.y = (_local2.y = (_local3.y = 381));
_local6 = _local5.y;
_local4.x = 0;
_local4.y = 372;
addChild(_local4);
score_number = new PolyNumber(0, 7, 11, AniNumberSprite, ((_local2.x + _local2.width) + 5), _local6);
level_number = new PolyNumber(1, 2, 11, AniNumberSprite, ((_local3.x + _local3.width) + 5), _local6);
life_number = new AniNumberSprite(_arg1.life);
life_number.x = ((_local5.x + _local5.width) + 5);
life_number.y = _local6;
explain_btn = new ButtonSprite(OnHelpImg, OverHelpImg, 460, 379);
pause_btn = new SingleButtonSprite(PauseImg, 505, 379);
sound_btn = new SingleButtonSprite(SoundImg, 525, 379);
addChild(_local2);
addChild(_local3);
addChild(_local5);
addChild(score_number);
addChild(level_number);
addChild(life_number);
addChild(explain_btn);
addChild(pause_btn);
addChild(sound_btn);
_arg1.addEventListener(Model.PERFECT, showScore);
_arg1.addEventListener(Model.GREAT, showScore);
_arg1.addEventListener(Model.COOL, showScore);
_arg1.addEventListener(Model.LEVEL_UP, showLevel);
_arg1.addEventListener(Model.MISS, showLife);
_arg1.addEventListener(Model.INIT_GAME, initUI);
explain_btn.addEventListener(MouseEvent.CLICK, showExplainWindow);
pause_btn.addEventListener(MouseEvent.CLICK, showConfigWindow);
sound_btn.addEventListener(MouseEvent.CLICK, showConfigWindow);
}
private function showConfigWindow(_arg1:MouseEvent):void{
this.dispatchEvent(new Event(GameUIView.SHOW_CONFIG));
}
private function showLife(_arg1:Event):void{
var _local2:uint;
_local2 = _arg1.target.life;
life_number.number = ((_local2 == 0)) ? 10 : _local2;
}
private function showLevel(_arg1:Event):void{
var _local2:uint;
_local2 = _arg1.target.level;
level_number.setNumerToNumbers(_local2);
}
private function initUI(_arg1:Event):void{
score_number.initNumber();
score_number.setNumerToNumbers(model.score);
level_number.initNumber();
level_number.setNumerToNumbers(model.level);
life_number.number = model.life;
}
private function showScore(_arg1:Event):void{
var _local2:uint;
_local2 = _arg1.target.score;
score_number.setNumerToNumbers(_local2);
}
private function showExplainWindow(_arg1:MouseEvent):void{
this.dispatchEvent(new Event(GameUIView.SHOW_EXPLAIN));
}
}
}//package minigame.dancegame.view
Section 56
//GameUIView_BarImg (minigame.dancegame.view.GameUIView_BarImg)
package minigame.dancegame.view {
import mx.core.*;
public class GameUIView_BarImg extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 57
//GameUIView_LevelImg (minigame.dancegame.view.GameUIView_LevelImg)
package minigame.dancegame.view {
import mx.core.*;
public class GameUIView_LevelImg extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 58
//GameUIView_LifeImg (minigame.dancegame.view.GameUIView_LifeImg)
package minigame.dancegame.view {
import mx.core.*;
public class GameUIView_LifeImg extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 59
//GameUIView_OnHelpImg (minigame.dancegame.view.GameUIView_OnHelpImg)
package minigame.dancegame.view {
import mx.core.*;
public class GameUIView_OnHelpImg extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 60
//GameUIView_OverHelpImg (minigame.dancegame.view.GameUIView_OverHelpImg)
package minigame.dancegame.view {
import mx.core.*;
public class GameUIView_OverHelpImg extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 61
//GameUIView_PauseImg (minigame.dancegame.view.GameUIView_PauseImg)
package minigame.dancegame.view {
import mx.core.*;
public class GameUIView_PauseImg extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 62
//GameUIView_ScoreImg (minigame.dancegame.view.GameUIView_ScoreImg)
package minigame.dancegame.view {
import mx.core.*;
public class GameUIView_ScoreImg extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 63
//GameUIView_SoundImg (minigame.dancegame.view.GameUIView_SoundImg)
package minigame.dancegame.view {
import mx.core.*;
public class GameUIView_SoundImg extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 64
//MassageDisplayer (minigame.dancegame.view.MassageDisplayer)
package minigame.dancegame.view {
import flash.events.*;
import flash.display.*;
import minigame.common.component.*;
import minigame.dancegame.model.*;
import flash.utils.*;
public class MassageDisplayer extends Sprite {
private var GameOver:Class;
private var Miss:Class;
private var LevelUp:Class;
private var model:Model;
private var easing:Number;// = 0.8
private var clober_img:Class;
private var isGameOver:Boolean;// = false
private var star_img:Class;
private var heart_img:Class;
private var Cool:Class;
private var Combo:Class;
private var Great:Class;
private var _soundtype:uint;// = 0
private var waterdrop_img:Class;
private var effect_name:String;
private var massage:DisplayObject;
private var ty:Number;
private var massageTimer:Timer;
private var isLevelUp:Boolean;// = false
private var fy:uint;// = 200
private var fx:uint;// = 270
private var Bad:Class;
private var Perfect:Class;
public static const SHOW_SAVE_SCORE:String = "show_save_score";
public static const SHOW_EFFECT:String = "show_effect";
public function MassageDisplayer(_arg1:Model){
Perfect = MassageDisplayer_Perfect;
Great = MassageDisplayer_Great;
Cool = MassageDisplayer_Cool;
Bad = MassageDisplayer_Bad;
Miss = MassageDisplayer_Miss;
LevelUp = MassageDisplayer_LevelUp;
GameOver = MassageDisplayer_GameOver;
Combo = MassageDisplayer_Combo;
star_img = MassageDisplayer_star_img;
heart_img = MassageDisplayer_heart_img;
waterdrop_img = MassageDisplayer_waterdrop_img;
clober_img = MassageDisplayer_clober_img;
easing = 0.8;
isLevelUp = false;
isGameOver = false;
fx = 270;
fy = 200;
_soundtype = 0;
super();
this.model = _arg1;
_arg1.addEventListener(Model.COMBO, showCombo);
_arg1.addEventListener(Model.PERFECT, createMassage);
_arg1.addEventListener(Model.GREAT, createMassage);
_arg1.addEventListener(Model.COOL, createMassage);
_arg1.addEventListener(Model.BAD, createMassage);
_arg1.addEventListener(Model.MISS, createMassage);
_arg1.addEventListener(Model.END, createMassage);
_arg1.addEventListener(Model.STOP, stopMSG);
_arg1.addEventListener(Model.RESTART, startMSG);
_arg1.addEventListener(Model.LEVEL_UP, delayShowMassage);
}
private function stopMSG(_arg1:Event):void{
if (((!((massageTimer == null))) && (massageTimer.running))){
massageTimer.stop();
};
}
private function delayShowMassage(_arg1:Event):void{
isLevelUp = true;
}
private function removeMassage(_arg1:TimerEvent):void{
var _local2:Number;
_local2 = ((ty - massage.y) * easing);
massage.y = (massage.y + _local2);
if (Math.floor(Math.abs(_local2)) < 1){
massageTimer.stop();
massageTimer.removeEventListener(TimerEvent.TIMER, removeMassage);
massageTimer = null;
removeChild(massage);
massage = null;
if (isLevelUp){
isLevelUp = false;
massage = (new LevelUp() as Bitmap);
effect_name = Model.LEVEL_UP;
prepareMoveMassage(massage);
};
if (isGameOver){
dispatchEvent(new Event(MassageDisplayer.SHOW_SAVE_SCORE));
isLevelUp = false;
isGameOver = false;
};
};
}
private function showCombo(_arg1:Event):void{
var _local2:Sprite;
var _local3:Bitmap;
var _local4:uint;
var _local5:PolyNumber;
var _local6:Timer;
_local2 = new Sprite();
_local2.name = "combo";
_local3 = (new Combo() as Bitmap);
_local2.addChild(_local3);
_local4 = this.model.combo;
_local5 = new PolyNumber(_local4, _local4.toString().length, 26, ComboNumberSprite, _local3.width, 20);
_local2.addChild(_local5);
_local2.x = ((550 - _local2.width) * 0.5);
_local2.y = 65;
addChild(_local2);
_local6 = new Timer(2500, 1);
_local6.addEventListener(TimerEvent.TIMER, removeComboMSG);
_local6.start();
}
private function prepareRemoveMassage(_arg1:TimerEvent):void{
massageTimer.stop();
massageTimer.removeEventListener(TimerEvent.TIMER, prepareRemoveMassage);
massageTimer = null;
ty = -(massage.height);
massageTimer = new Timer(30);
massageTimer.addEventListener(TimerEvent.TIMER, removeMassage);
massageTimer.start();
}
private function removeComboMSG(_arg1:TimerEvent):void{
var _local2:DisplayObject;
_local2 = getChildByName("combo");
removeChild(_local2);
_local2 = null;
}
public function get soundtype():uint{
return (_soundtype);
}
private function startMSG(_arg1:Event):void{
if (((!((massageTimer == null))) && (!(massageTimer.running)))){
massageTimer.start();
};
}
private function showMassage(_arg1:TimerEvent):void{
var _local2:Number;
_local2 = ((ty - massage.y) * easing);
massage.y = (massage.y + _local2);
if (Math.floor(Math.abs(_local2)) < 1){
massage.y = ty;
massageTimer.stop();
massageTimer.removeEventListener(TimerEvent.TIMER, showMassage);
massageTimer = null;
massageTimer = new Timer(2500, 1);
massageTimer.addEventListener(TimerEvent.TIMER, prepareRemoveMassage);
massageTimer.start();
showEffect();
};
}
private function showEffect():void{
var _local1:FireFlower;
var _local2:FireFlower;
var _local3:FireFlower;
switch (effect_name){
case Model.PERFECT:
_soundtype = 0;
dispatchEvent(new Event(MassageDisplayer.SHOW_EFFECT));
_local1 = new FireFlower(star_img, this, fx, fy, 2);
_local2 = new FireFlower(star_img, this, fx, fy, 4);
_local3 = new FireFlower(star_img, this, fx, fy, 7);
break;
case Model.GREAT:
_soundtype = 0;
dispatchEvent(new Event(MassageDisplayer.SHOW_EFFECT));
_local1 = new FireFlower(clober_img, this, fx, fy, 3, 9);
_local2 = new FireFlower(clober_img, this, fx, fy, 3, 12);
_local3 = new FireFlower(clober_img, this, fx, fy, 3, 15);
break;
case Model.COOL:
_soundtype = 0;
dispatchEvent(new Event(MassageDisplayer.SHOW_EFFECT));
_local1 = new FireFlower(waterdrop_img, this, fx, fy, 0, 6);
_local2 = new FireFlower(waterdrop_img, this, fx, fy, 0, 8);
_local3 = new FireFlower(waterdrop_img, this, fx, fy, 0, 10);
break;
case Model.LEVEL_UP:
_soundtype = 1;
dispatchEvent(new Event(MassageDisplayer.SHOW_EFFECT));
_local1 = new FireFlower(heart_img, this, fx, fy, 1, 10);
_local2 = new FireFlower(heart_img, this, fx, fy, 3, 9);
_local3 = new FireFlower(heart_img, this, fx, fy, 5, 8);
};
}
private function createMassage(_arg1:Event):void{
effect_name = _arg1.type;
switch (_arg1.type){
case Model.PERFECT:
massage = (new Perfect() as Bitmap);
break;
case Model.GREAT:
massage = (new Great() as Bitmap);
break;
case Model.COOL:
massage = (new Cool() as Bitmap);
break;
case Model.BAD:
massage = (new Bad() as Bitmap);
break;
case Model.MISS:
massage = (new Miss() as Bitmap);
break;
case Model.END:
massage = (new GameOver() as Bitmap);
isGameOver = true;
break;
};
prepareMoveMassage(massage);
}
private function prepareMoveMassage(_arg1:DisplayObject):void{
ty = ((400 - _arg1.height) * 0.5);
_arg1.x = ((550 - _arg1.width) * 0.5);
_arg1.y = -(_arg1.height);
addChild(_arg1);
massageTimer = new Timer(30);
massageTimer.addEventListener(TimerEvent.TIMER, showMassage);
massageTimer.start();
}
}
}//package minigame.dancegame.view
Section 65
//MassageDisplayer_Bad (minigame.dancegame.view.MassageDisplayer_Bad)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_Bad extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 66
//MassageDisplayer_clober_img (minigame.dancegame.view.MassageDisplayer_clober_img)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_clober_img extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 67
//MassageDisplayer_Combo (minigame.dancegame.view.MassageDisplayer_Combo)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_Combo extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 68
//MassageDisplayer_Cool (minigame.dancegame.view.MassageDisplayer_Cool)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_Cool extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 69
//MassageDisplayer_GameOver (minigame.dancegame.view.MassageDisplayer_GameOver)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_GameOver extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 70
//MassageDisplayer_Great (minigame.dancegame.view.MassageDisplayer_Great)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_Great extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 71
//MassageDisplayer_heart_img (minigame.dancegame.view.MassageDisplayer_heart_img)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_heart_img extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 72
//MassageDisplayer_LevelUp (minigame.dancegame.view.MassageDisplayer_LevelUp)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_LevelUp extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 73
//MassageDisplayer_Miss (minigame.dancegame.view.MassageDisplayer_Miss)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_Miss extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 74
//MassageDisplayer_Perfect (minigame.dancegame.view.MassageDisplayer_Perfect)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_Perfect extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 75
//MassageDisplayer_star_img (minigame.dancegame.view.MassageDisplayer_star_img)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_star_img extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 76
//MassageDisplayer_waterdrop_img (minigame.dancegame.view.MassageDisplayer_waterdrop_img)
package minigame.dancegame.view {
import mx.core.*;
public class MassageDisplayer_waterdrop_img extends BitmapAsset {
}
}//package minigame.dancegame.view
Section 77
//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 78
//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 79
//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 80
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 81
//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 82
//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 83
//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 84
//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 85
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
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 86
//GlowEffecter (util.GlowEffecter)
package util {
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 util
Section 87
//NumberUtilities (util.NumberUtilities)
package util {
public class NumberUtilities {
private static var _aUniqueIDs:Array;
public static function random(_arg1:Number, _arg2:Number=0, _arg3:Number=1):Number{
var _local4:Number;
var _local5:Number;
var _local6:Number;
if (_arg1 > _arg2){
_local6 = _arg1;
_arg1 = _arg2;
_arg2 = _local6;
};
_local4 = ((_arg2 - _arg1) + (1 * _arg3));
_local5 = (Math.random() * _local4);
_local5 = (_local5 + _arg1);
return (floor(_local5, _arg3));
}
public static function ceil(_arg1:Number, _arg2:Number=1):Number{
return ((Math.ceil((_arg1 / _arg2)) * _arg2));
}
public static function getUnique():Number{
var _local1:Date;
var _local2:Number;
if (_aUniqueIDs == null){
_aUniqueIDs = new Array();
};
_local1 = new Date();
_local2 = _local1.getTime();
while (!(isUnique(_local2))) {
_local2 = (_local2 + NumberUtilities.random(_local1.getTime(), (2 * _local1.getTime())));
};
_aUniqueIDs.push(_local2);
return (_local2);
}
private static function isUnique(_arg1:Number):Boolean{
var _local2:Number;
_local2 = 0;
while (_local2 < _aUniqueIDs.length) {
if (_aUniqueIDs[_local2] == _arg1){
return (false);
};
_local2++;
};
return (true);
}
public static function floor(_arg1:Number, _arg2:Number=1):Number{
return ((Math.floor((_arg1 / _arg2)) * _arg2));
}
public static function round(_arg1:Number, _arg2:Number=1):Number{
return ((Math.round((_arg1 / _arg2)) * _arg2));
}
}
}//package util
Section 88
//AbstractEmbedGame (AbstractEmbedGame)
package {
import flash.events.*;
import flash.display.*;
import minigame.common.component.*;
import minigame.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 89
//AbstractEmbedGame_RetryOn (AbstractEmbedGame_RetryOn)
package {
import mx.core.*;
public class AbstractEmbedGame_RetryOn extends BitmapAsset {
}
}//package
Section 90
//AbstractEmbedGame_RetryOver (AbstractEmbedGame_RetryOver)
package {
import mx.core.*;
public class AbstractEmbedGame_RetryOver extends BitmapAsset {
}
}//package
Section 91
//AbstractMiniGame (AbstractMiniGame)
package {
import flash.events.*;
import flash.display.*;
import minigame.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 92
//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 93
//DanceGameMain (DanceGameMain)
package {
import flash.events.*;
import flash.display.*;
import minigame.common.component.*;
import minigame.dancegame.model.*;
import minigame.dancegame.view.*;
import minigame.dancegame.component.*;
public class DanceGameMain extends AbstractMiniGame {
private var model:Model;
private var bg_img:Class;
public function DanceGameMain(_arg1:Stage){
var _local2:Bitmap;
var _local3:Controll;
var _local4:AssembleArrowTimeBarView;
var _local5:DancerYojo;
var _local6:DancerMoonBoy;
var _local7:DancerMoonRabbit;
var _local8:RightSpeaker;
var _local9:LeftSpeaker;
var _local10:MassageDisplayer;
var _local11:GameUIView;
bg_img = DanceGameMain_bg_img;
super();
ExplainWindow = ExplainWindowContent;
_local2 = (new bg_img() as Bitmap);
model = new Model();
_local3 = new Controll(_arg1, model);
_local4 = new AssembleArrowTimeBarView(_local3, model);
model.setAssembler(_local4);
_local3.setAssembler(_local4);
_local5 = new DancerYojo(model, _local4);
_local5.x = 267;
_local6 = new DancerMoonBoy(model, _local4);
_local6.x = 127;
_local7 = new DancerMoonRabbit(model, _local4);
_local7.x = 407;
_local5.y = (_local6.y = (_local7.y = 290));
_local5.scaleX = (_local6.scaleX = (_local7.scaleX = 1.2));
_local5.scaleY = (_local6.scaleY = (_local7.scaleY = 1.2));
_local8 = new RightSpeaker(model);
_local9 = new LeftSpeaker(model);
_local8.x = 410;
_local9.x = 33;
_local8.y = (_local9.y = 65);
_local10 = new MassageDisplayer(model);
_local11 = new GameUIView(model);
sound_manager = new SoundManager(_local10);
frontpage = new DanceGameFrontPage();
_local10.addEventListener(MassageDisplayer.SHOW_SAVE_SCORE, showSaveQuery);
_local11.addEventListener(GameUIView.SHOW_CONFIG, showConfigWidow);
_local11.addEventListener(GameUIView.SHOW_EXPLAIN, showExplainWindow);
frontpage.addEventListener(AbstractFrontPage.EXECUTE, execute);
frontpage.addEventListener(AbstractFrontPage.SHOW_EXPLAIN, showExplainWindow);
addChild(_local2);
addChild(_local4);
addChild(_local6);
addChild(_local7);
addChild(_local5);
addChild(_local8);
addChild(_local9);
addChild(_local10);
addChild(_local11);
addChild(frontpage);
}
override public function restart():void{
model.restart();
stage.focus = stage;
}
override public function initGame():void{
model.initGame();
stage.focus = stage;
}
override public function isStart():Boolean{
return (model.isStart);
}
override protected function execute(_arg1:Event):void{
frontpage.destroy();
stage.focus = stage;
removeChild(frontpage);
frontpage = null;
sound_manager.playBGmusic();
model.initStart();
}
override protected function showExplainWindow(_arg1:Event):void{
model.stop();
dispatchEvent(new Event(AbstractMiniGame.SHOW_EXPLAIN));
}
override protected function showSaveQuery(_arg1:Event):void{
dispatchEvent(new Event(AbstractMiniGame.SHOW_SAVE_QUERY));
}
override protected function showConfigWidow(_arg1:Event):void{
model.stop();
dispatchEvent(new Event(AbstractMiniGame.SHOW_CONFIG));
}
override public function getScore():uint{
return (model.score);
}
}
}//package
Section 94
//DanceGameMain_bg_img (DanceGameMain_bg_img)
package {
import mx.core.*;
public class DanceGameMain_bg_img extends BitmapAsset {
}
}//package
Section 95
//EmbedDanceGame (EmbedDanceGame)
package {
public class EmbedDanceGame extends AbstractEmbedGame {
private var GameData:Class;
public function EmbedDanceGame(){
GameData = DanceGameMain;
super(GameData);
}
}
}//package
Section 96
//LogoMovie (LogoMovie)
package {
public class LogoMovie extends AbstractMovie {
}
}//package