home *** CD-ROM | disk | FTP | other *** search
- package Code.LIB
- {
- import Code.LIB.SOUND._wj196;
- import Code.OPTIONS._dx111;
- import flash.display.Sprite;
- import flash.events.Event;
- import flash.text.TextField;
- import flash.text.TextFormat;
- import flash.utils.getTimer;
-
- public class _lx496 extends _pd424
- {
-
-
- public var menuItem:int = -1;
-
- private var iTimer:int;
-
- protected var speakerMount:_iv163;
-
- protected var iBackground:_iv163;
-
- private var iFrame:_iv163;
-
- private var iDebugTextFormat:TextFormat;
-
- private var iDebugText:TextField;
-
- protected var iWindow:_ei76;
-
- public function _lx496()
- {
- var _loc1_:Sprite = null;
- menuItem = -1;
- iTimer = getTimer();
- super();
- _bm350._ij151();
- _wj196._nk262(_dx111._wj196);
- _loc1_ = new _dx111.TButtonMount();
- _loc1_.scaleX = 80 / 200;
- _loc1_.scaleY = 36 / 100;
- _loc1_.alpha = 0.5;
- speakerMount = _uu24._sa70(_loc1_);
- speakerMount._gm53(695,3);
- if(_bm350.iDebug)
- {
- iDebugText = new TextField();
- iDebugTextFormat = new TextFormat(null,20,16777215);
- iDebugText.x = 30;
- super.addChild(iDebugText);
- }
- _nd174._nk262();
- if(!_nd174._ai238)
- {
- _wj196._ao83 = 0.6;
- _wj196._qt85 = 0.9;
- }
- else
- {
- _wj196._ao83 = _nd174._ai238[1].prMVolume;
- _wj196._qt85 = _nd174._ai238[1].prSVolume;
- }
- this.addEventListener(Event.ENTER_FRAME,onEnterFrame);
- _bm350.prStage.addEventListener(Event.RESIZE,onResize);
- iFrame = new _iv163();
- addChild(iFrame);
- }
-
- protected function onResize(param1:Event) : void
- {
- var _loc2_:_pd424 = null;
- var _loc3_:TextField = null;
- var _loc4_:int = 0;
- var _loc5_:_iv163 = null;
- var _loc6_:Sprite = null;
- _bm350._ij151();
- if(this.iWindow)
- {
- iWindow._fy281();
- this.removeChild(iWindow);
- this.iWindow = null;
- if(!_nd174._ai238)
- {
- this.menuItem = _dx111.miEnterName;
- }
- else
- {
- menuItem = _dx111.miMenu;
- }
- this._dk329();
- }
- if(_bm350.iDebug)
- {
- _loc2_ = new _pd424();
- _loc2_.graphics.clear();
- _loc2_.graphics.lineStyle(2,16777215);
- _loc2_.graphics.drawRect(0,0,800 * _bm350._tc204,600 * _bm350._tc204);
- _loc2_.graphics.lineStyle(1,16777215,0.4);
- _loc4_ = 0;
- while(_loc4_ < 600 / 50)
- {
- _loc3_ = new TextField();
- _loc3_.text = (_loc4_ * 50).toString();
- _loc3_.x = 0;
- _loc3_.y = (_loc4_ * 50 + 2) * _bm350._tc204;
- _loc2_.graphics.moveTo(0,_loc4_ * 50 * _bm350._tc204);
- _loc2_.graphics.lineTo(800 * _bm350._tc204,_loc4_ * 50 * _bm350._tc204);
- _loc2_.addChild(_loc3_);
- _loc4_++;
- }
- _loc4_ = 0;
- while(_loc4_ < 800 / 50)
- {
- _loc3_ = new TextField();
- _loc3_.text = (_loc4_ * 50).toString();
- _loc3_.y = 0;
- _loc3_.x = (_loc4_ * 50 + 2) * _bm350._tc204;
- _loc2_.graphics.moveTo(_loc4_ * 50 * _bm350._tc204,0);
- _loc2_.graphics.lineTo(_loc4_ * 50 * _bm350._tc204,600 * _bm350._tc204);
- _loc2_.addChild(_loc3_);
- _loc4_++;
- }
- _loc5_ = _uu24._ec508(_loc2_);
- this.iFrame.bitmapData = _loc5_.bitmapData;
- this.iFrame._vt351 = _loc5_._vt351;
- this.iFrame._lh238 = _loc5_._lh238;
- }
- this.x = (_bm350.prStage.stageWidth - 800 * _bm350._tc204) / 2;
- this.y = (_bm350.prStage.stageHeight - 600 * _bm350._tc204) / 2;
- if(_wj196.iMusic)
- {
- _wj196.iMusic._vt351 = 700;
- _wj196.iSound._vt351 = 740;
- _wj196.iSound._lh238 = _wj196.iMusic._lh238 = 5;
- if(speakerMount.parent)
- {
- removeChild(speakerMount);
- }
- (_loc6_ = new _dx111.TButtonMount()).scaleX = 80 / 200;
- _loc6_.scaleY = 36 / 100;
- _loc6_.alpha = 0.5;
- speakerMount = _uu24._sa70(_loc6_);
- speakerMount._vt351 = 695;
- addChild(speakerMount);
- }
- this._yi289();
- }
-
- protected function _yi289() : void
- {
- var _loc1_:Sprite = null;
- if(iBackground)
- {
- removeChild(iBackground);
- }
- _loc1_ = new _dx111.BG() as Sprite;
- _loc1_.scaleX = _bm350.prStage.stageWidth / _loc1_.width;
- _loc1_.scaleY = _bm350.prStage.stageHeight / _loc1_.height;
- _loc1_.x -= _bm350._cg260 * _bm350._tc204;
- _loc1_.y -= _bm350._st175 * _bm350._tc204;
- this.iBackground = _uu24._ec508(_loc1_);
- addChildAt(iBackground,0);
- }
-
- public function onEnterFrame(param1:Event) : void
- {
- var _loc2_:int = 0;
- if(_bm350.iDebug)
- {
- _loc2_ = 1000 / (getTimer() - iTimer);
- iDebugText.text = _loc2_.toString();
- iDebugText.setTextFormat(iDebugTextFormat);
- iTimer = getTimer();
- }
- }
-
- public function _dk329() : void
- {
- }
- }
- }
-