home *** CD-ROM | disk | FTP | other *** search
- function PlayLevel(tLevelIndex)
- {
- _global.mArenaIndex = tLevelIndex;
- _global.mKeyControl = true;
- delete onEnterFrame;
- play();
- }
- function PanelProcess()
- {
- _alpha = _alpha + 10;
- if(_alpha > 100)
- {
- _alpha = 100;
- }
- if(mNewScreen == mCurrentScreen)
- {
- return undefined;
- }
- mCurrentScreen.mDX = 15;
- mCurrentScreen.onEnterFrame = function()
- {
- this._x += this.mDX;
- this.mDX *= 1.2;
- if(this._x > mScreenPos.x * 3)
- {
- this._visible = false;
- delete this.onEnterFrame;
- }
- };
- mCurrentScreen = mNewScreen;
- _global.mCurrentScreen = mCurrentScreen;
- mCurrentScreen.mScreenPos = mScreenPos;
- mCurrentScreen._x = - mScreenPos.x;
- mCurrentScreen._y = mScreenPos.y;
- mCurrentScreen._visible = true;
- mCurrentScreen.mDX = 50;
- mCurrentScreen.onEnterFrame = function()
- {
- this._x += this.mDX;
- if(mScreenPos.x - this._x < 500)
- {
- this.mDX *= 0.95;
- }
- if(this.mDX < 1)
- {
- this.mDX = 1;
- }
- if(this._x > mScreenPos.x)
- {
- this._x = mScreenPos.x;
- delete this.onEnterFrame;
- }
- };
- }
- _alpha = 0;
- stop();
- trace("FRONTEND");
- _global.mArenaIndex = 0;
- _global.mKeyControl = false;
- _global.mStats.Update_FE(_StatsScreen,_PlayScreen);
- var mCurrentScreen = undefined;
- var mNewScreen = _global.mCurrentScreen == undefined ? _HelpScreen : _global.mCurrentScreen;
- var mScreenPos = new flash.geom.Point(_FE_Pos._x,_FE_Pos._y);
- _FE_Pos._visible = false;
- onEnterFrame = function()
- {
- PanelProcess();
- };
-