最稳定最重要的核心脚本
This commit is contained in:
3
auto_login.sh
Executable file
3
auto_login.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")"
|
||||
python3 ./script/auto_login.py "$@"
|
||||
3
decrypt_swf.sh
Executable file
3
decrypt_swf.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")"
|
||||
python3 ./script/decrypt_swf.py "$@"
|
||||
3
extract_cookie.sh
Executable file
3
extract_cookie.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")"
|
||||
python3 ./script/extract_cookie.py "$@"
|
||||
15
flash_decompiled/Button_disabledSkin.as
Normal file
15
flash_decompiled/Button_disabledSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol80")]
|
||||
public dynamic class Button_disabledSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function Button_disabledSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/Button_downSkin.as
Normal file
15
flash_decompiled/Button_downSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol82")]
|
||||
public dynamic class Button_downSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function Button_downSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/Button_emphasizedSkin.as
Normal file
15
flash_decompiled/Button_emphasizedSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol84")]
|
||||
public dynamic class Button_emphasizedSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function Button_emphasizedSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/Button_overSkin.as
Normal file
15
flash_decompiled/Button_overSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol86")]
|
||||
public dynamic class Button_overSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function Button_overSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/Button_selectedDisabledSkin.as
Normal file
15
flash_decompiled/Button_selectedDisabledSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol88")]
|
||||
public dynamic class Button_selectedDisabledSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function Button_selectedDisabledSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/Button_selectedDownSkin.as
Normal file
15
flash_decompiled/Button_selectedDownSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol90")]
|
||||
public dynamic class Button_selectedDownSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function Button_selectedDownSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/Button_selectedOverSkin.as
Normal file
15
flash_decompiled/Button_selectedOverSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol92")]
|
||||
public dynamic class Button_selectedOverSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function Button_selectedOverSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/Button_selectedUpSkin.as
Normal file
15
flash_decompiled/Button_selectedUpSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol94")]
|
||||
public dynamic class Button_selectedUpSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function Button_selectedUpSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/Button_upSkin.as
Normal file
15
flash_decompiled/Button_upSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol96")]
|
||||
public dynamic class Button_upSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function Button_upSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/CellRenderer_disabledSkin.as
Normal file
15
flash_decompiled/CellRenderer_disabledSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol65")]
|
||||
public dynamic class CellRenderer_disabledSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function CellRenderer_disabledSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/CellRenderer_downSkin.as
Normal file
15
flash_decompiled/CellRenderer_downSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol69")]
|
||||
public dynamic class CellRenderer_downSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function CellRenderer_downSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/CellRenderer_overSkin.as
Normal file
15
flash_decompiled/CellRenderer_overSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol70")]
|
||||
public dynamic class CellRenderer_overSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function CellRenderer_overSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/CellRenderer_selectedDisabledSkin.as
Normal file
15
flash_decompiled/CellRenderer_selectedDisabledSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol72")]
|
||||
public dynamic class CellRenderer_selectedDisabledSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function CellRenderer_selectedDisabledSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/CellRenderer_selectedDownSkin.as
Normal file
15
flash_decompiled/CellRenderer_selectedDownSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol73")]
|
||||
public dynamic class CellRenderer_selectedDownSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function CellRenderer_selectedDownSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/CellRenderer_selectedOverSkin.as
Normal file
15
flash_decompiled/CellRenderer_selectedOverSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol74")]
|
||||
public dynamic class CellRenderer_selectedOverSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function CellRenderer_selectedOverSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/CellRenderer_selectedUpSkin.as
Normal file
15
flash_decompiled/CellRenderer_selectedUpSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol75")]
|
||||
public dynamic class CellRenderer_selectedUpSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function CellRenderer_selectedUpSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/CellRenderer_upSkin.as
Normal file
15
flash_decompiled/CellRenderer_upSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol63")]
|
||||
public dynamic class CellRenderer_upSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function CellRenderer_upSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ComboBox_disabledSkin.as
Normal file
15
flash_decompiled/ComboBox_disabledSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol49")]
|
||||
public dynamic class ComboBox_disabledSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ComboBox_disabledSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ComboBox_downSkin.as
Normal file
15
flash_decompiled/ComboBox_downSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol55")]
|
||||
public dynamic class ComboBox_downSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ComboBox_downSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ComboBox_overSkin.as
Normal file
15
flash_decompiled/ComboBox_overSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol52")]
|
||||
public dynamic class ComboBox_overSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ComboBox_overSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ComboBox_upSkin.as
Normal file
15
flash_decompiled/ComboBox_upSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol47")]
|
||||
public dynamic class ComboBox_upSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ComboBox_upSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/List_skin.as
Normal file
15
flash_decompiled/List_skin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol62")]
|
||||
public dynamic class List_skin extends MovieClip
|
||||
{
|
||||
|
||||
public function List_skin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollArrowDown_disabledSkin.as
Normal file
15
flash_decompiled/ScrollArrowDown_disabledSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol29")]
|
||||
public dynamic class ScrollArrowDown_disabledSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollArrowDown_disabledSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollArrowDown_downSkin.as
Normal file
15
flash_decompiled/ScrollArrowDown_downSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol11")]
|
||||
public dynamic class ScrollArrowDown_downSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollArrowDown_downSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollArrowDown_overSkin.as
Normal file
15
flash_decompiled/ScrollArrowDown_overSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol16")]
|
||||
public dynamic class ScrollArrowDown_overSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollArrowDown_overSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollArrowDown_upSkin.as
Normal file
15
flash_decompiled/ScrollArrowDown_upSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol27")]
|
||||
public dynamic class ScrollArrowDown_upSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollArrowDown_upSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollArrowUp_disabledSkin.as
Normal file
15
flash_decompiled/ScrollArrowUp_disabledSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol30")]
|
||||
public dynamic class ScrollArrowUp_disabledSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollArrowUp_disabledSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollArrowUp_downSkin.as
Normal file
15
flash_decompiled/ScrollArrowUp_downSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol8")]
|
||||
public dynamic class ScrollArrowUp_downSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollArrowUp_downSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollArrowUp_overSkin.as
Normal file
15
flash_decompiled/ScrollArrowUp_overSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol20")]
|
||||
public dynamic class ScrollArrowUp_overSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollArrowUp_overSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollArrowUp_upSkin.as
Normal file
15
flash_decompiled/ScrollArrowUp_upSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol23")]
|
||||
public dynamic class ScrollArrowUp_upSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollArrowUp_upSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollBar_thumbIcon.as
Normal file
15
flash_decompiled/ScrollBar_thumbIcon.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol32")]
|
||||
public dynamic class ScrollBar_thumbIcon extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollBar_thumbIcon()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollPane_disabledSkin.as
Normal file
15
flash_decompiled/ScrollPane_disabledSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol41")]
|
||||
public dynamic class ScrollPane_disabledSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollPane_disabledSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollPane_upSkin.as
Normal file
15
flash_decompiled/ScrollPane_upSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol42")]
|
||||
public dynamic class ScrollPane_upSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollPane_upSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollThumb_downSkin.as
Normal file
15
flash_decompiled/ScrollThumb_downSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol13")]
|
||||
public dynamic class ScrollThumb_downSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollThumb_downSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollThumb_overSkin.as
Normal file
15
flash_decompiled/ScrollThumb_overSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol18")]
|
||||
public dynamic class ScrollThumb_overSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollThumb_overSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollThumb_upSkin.as
Normal file
15
flash_decompiled/ScrollThumb_upSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol25")]
|
||||
public dynamic class ScrollThumb_upSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollThumb_upSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/ScrollTrack_skin.as
Normal file
15
flash_decompiled/ScrollTrack_skin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol2")]
|
||||
public dynamic class ScrollTrack_skin extends MovieClip
|
||||
{
|
||||
|
||||
public function ScrollTrack_skin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/TextInput_disabledSkin.as
Normal file
15
flash_decompiled/TextInput_disabledSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol57")]
|
||||
public dynamic class TextInput_disabledSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function TextInput_disabledSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
flash_decompiled/TextInput_upSkin.as
Normal file
15
flash_decompiled/TextInput_upSkin.as
Normal file
@@ -0,0 +1,15 @@
|
||||
package
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
|
||||
[Embed(source="/_assets/assets.swf", symbol="symbol59")]
|
||||
public dynamic class TextInput_upSkin extends MovieClip
|
||||
{
|
||||
|
||||
public function TextInput_upSkin()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
flash_decompiled/_assets/assets.swf
Normal file
BIN
flash_decompiled/_assets/assets.swf
Normal file
Binary file not shown.
957
flash_decompiled/com/InstallFace.as
Normal file
957
flash_decompiled/com/InstallFace.as
Normal file
@@ -0,0 +1,957 @@
|
||||
package com
|
||||
{
|
||||
import com.comfig.CommonData;
|
||||
import com.comfig.DataConfig;
|
||||
import com.comfig.PathConfig;
|
||||
import com.common.App;
|
||||
import com.control.ConnectService;
|
||||
import com.control.castle.event.AllQueueEvent;
|
||||
import com.control.castle.event.CastleBuildEvent;
|
||||
import com.control.castle.event.CastleEvent;
|
||||
import com.control.castle.event.CastleLevelUpEvent;
|
||||
import com.control.castle.event.CastleWallEvent;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.control.login.event.GetGameInfoEvent;
|
||||
import com.control.tech.event.TechUpEvent;
|
||||
import com.data.DataModoule;
|
||||
import com.data.GameData;
|
||||
import com.data.MemeberShip;
|
||||
import com.data.data.city.CastleBuilding;
|
||||
import com.data.data.items.AddSpeed;
|
||||
import com.events.BroadEvent;
|
||||
import com.events.BroadEventManage;
|
||||
import com.events.DevEvent;
|
||||
import com.events.EventUtils;
|
||||
import com.net.ChatConnect1;
|
||||
import com.net.ChatType;
|
||||
import com.net.event.ChatEvent;
|
||||
import com.newdata.user.NewUserData;
|
||||
import com.utils.TimerManager;
|
||||
import com.utils.Utils;
|
||||
import com.view.Control;
|
||||
import com.view.EconomicInside;
|
||||
import com.view.EffectManager;
|
||||
import com.view.MilitaryInside;
|
||||
import com.view.TownInside;
|
||||
import com.view.UIListManage;
|
||||
import com.view.cache.BuildCache;
|
||||
import com.view.mc.button.BuildControlBar;
|
||||
import com.view.newui.UIConfig;
|
||||
import com.view.ui.BarFactory;
|
||||
import com.view.ui.BaseBuild;
|
||||
import com.view.ui.buff.BuffManager;
|
||||
import com.view.ui.buildlist.TimerInfo;
|
||||
import com.view.ui.chat.UserControl;
|
||||
import com.view.ui.countybattle.CountryFightView;
|
||||
import com.view.ui.login.NewRoleUI;
|
||||
import com.view.ui.message.MessageBoxUI;
|
||||
import com.view.ui.teach.TechBuildUI;
|
||||
import com.view.ui.wall.CityWallUI;
|
||||
import com.view.world.World;
|
||||
import flash.display.Bitmap;
|
||||
import flash.display.BitmapData;
|
||||
import flash.display.DisplayObject;
|
||||
import flash.display.MovieClip;
|
||||
import flash.display.SimpleButton;
|
||||
import flash.display.Sprite;
|
||||
import flash.display.Stage;
|
||||
import flash.events.Event;
|
||||
import flash.events.MouseEvent;
|
||||
import flash.system.ApplicationDomain;
|
||||
import flash.utils.setTimeout;
|
||||
|
||||
public class InstallFace
|
||||
{
|
||||
|
||||
private static var instance:InstallFace;
|
||||
|
||||
private var _stage:Stage;
|
||||
|
||||
private var _loaderInfo:ApplicationDomain;
|
||||
|
||||
public var tip_bg:Sprite;
|
||||
|
||||
private var townStatus:int;
|
||||
|
||||
private var mapSprite:Sprite;
|
||||
|
||||
private var worldSprite:Sprite;
|
||||
|
||||
private var controlSprite:Sprite;
|
||||
|
||||
private var _currCasId:int;
|
||||
|
||||
public var _castleType:String;
|
||||
|
||||
public var isValid:Boolean;
|
||||
|
||||
private var _realWidth:int;
|
||||
|
||||
private var _realHeight:int;
|
||||
|
||||
private var _isConnect:Boolean = true;
|
||||
|
||||
public var currStatus:int = 2;
|
||||
|
||||
private var countryFightView:CountryFightView;
|
||||
|
||||
private var chatConnect:ChatConnect1;
|
||||
|
||||
public function InstallFace()
|
||||
{
|
||||
super();
|
||||
this.isValid = Utils.isValid();
|
||||
this.addEvent();
|
||||
}
|
||||
|
||||
public static function getInstance() : InstallFace
|
||||
{
|
||||
if(instance == null)
|
||||
{
|
||||
return instance = new InstallFace();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public function set loaderInfo(param1:ApplicationDomain) : void
|
||||
{
|
||||
this._loaderInfo = param1;
|
||||
}
|
||||
|
||||
public function get loaderInfo() : ApplicationDomain
|
||||
{
|
||||
return this._loaderInfo;
|
||||
}
|
||||
|
||||
public function get stage() : Stage
|
||||
{
|
||||
return this._stage;
|
||||
}
|
||||
|
||||
public function set stage(param1:Stage) : void
|
||||
{
|
||||
this._stage = param1;
|
||||
this._stage.stageFocusRect = false;
|
||||
this.stage.addEventListener(Event.RESIZE,this.reSizeWindow);
|
||||
}
|
||||
|
||||
public function get currCasId() : int
|
||||
{
|
||||
return this._currCasId;
|
||||
}
|
||||
|
||||
public function set currCasId(param1:int) : void
|
||||
{
|
||||
this._currCasId = param1;
|
||||
}
|
||||
|
||||
public function get isConnect() : Boolean
|
||||
{
|
||||
return this._isConnect;
|
||||
}
|
||||
|
||||
public function set isConnect(param1:Boolean) : void
|
||||
{
|
||||
this._isConnect = param1;
|
||||
}
|
||||
|
||||
public function get realWidth() : int
|
||||
{
|
||||
if(this._realWidth == 0)
|
||||
{
|
||||
this.reSizeWindow(null);
|
||||
}
|
||||
return this._realWidth;
|
||||
}
|
||||
|
||||
public function get realHeight() : int
|
||||
{
|
||||
return this._realHeight;
|
||||
}
|
||||
|
||||
public function addMc(param1:DisplayObject) : void
|
||||
{
|
||||
this._stage.addChild(param1);
|
||||
}
|
||||
|
||||
public function removeMc(param1:DisplayObject) : void
|
||||
{
|
||||
if(Boolean(param1) && this._stage.contains(param1))
|
||||
{
|
||||
this._stage.removeChild(param1);
|
||||
}
|
||||
}
|
||||
|
||||
private function init() : void
|
||||
{
|
||||
this.tip_bg = this.getSprite(UIConfig.tip_bg);
|
||||
this.stage.addEventListener(MouseEvent.CLICK,this.stageClickEvent);
|
||||
EventUtils.getInstance();
|
||||
}
|
||||
|
||||
private function reSizeWindow(param1:Event) : void
|
||||
{
|
||||
this._realWidth = this.stage.stageWidth;
|
||||
this._realHeight = this.stage.stageHeight;
|
||||
if(this._realWidth > CommonData.STAGE_MAX_WIDTH)
|
||||
{
|
||||
this._realWidth = CommonData.STAGE_MAX_WIDTH;
|
||||
}
|
||||
if(this._realHeight > CommonData.STAGE_MAX_HEIGHT)
|
||||
{
|
||||
this._realHeight = CommonData.STAGE_MAX_HEIGHT;
|
||||
}
|
||||
}
|
||||
|
||||
public function enterGameCheck() : void
|
||||
{
|
||||
this.init();
|
||||
if(NewUserData.getAccount().userId > 0)
|
||||
{
|
||||
ConnectService.getInstance().loginService.getGameData();
|
||||
this.sendNotice();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.createRole();
|
||||
}
|
||||
}
|
||||
|
||||
private function addControl() : void
|
||||
{
|
||||
this.controlSprite = new Sprite();
|
||||
this.mapSprite = new Sprite();
|
||||
this.worldSprite = new Sprite();
|
||||
this.addMc(this.worldSprite);
|
||||
this.addMc(this.mapSprite);
|
||||
this.addMc(this.controlSprite);
|
||||
this.controlSprite.addChild(Control.getInstance());
|
||||
}
|
||||
|
||||
private function createRole() : void
|
||||
{
|
||||
var _loc1_:NewRoleUI = new NewRoleUI();
|
||||
this._stage.addChild(_loc1_);
|
||||
}
|
||||
|
||||
private function getGameDataResult(param1:GetGameInfoEvent) : void
|
||||
{
|
||||
this.enterGame();
|
||||
}
|
||||
|
||||
private function enterGame() : void
|
||||
{
|
||||
this.addControl();
|
||||
this.enterCity();
|
||||
}
|
||||
|
||||
public function enterCity() : void
|
||||
{
|
||||
this._currCasId = DataModoule.getInstance().userMgr.castle.casId;
|
||||
this._castleType = "main";
|
||||
this.townStatus = DataConfig.STATUS_IN;
|
||||
var _loc1_:TownInside = TownInside.getInstance();
|
||||
this.mapSprite.addChild(_loc1_);
|
||||
this.getAllQueue();
|
||||
}
|
||||
|
||||
private function getAllQueue() : void
|
||||
{
|
||||
ConnectService.getInstance().castleService.listAllQueue();
|
||||
}
|
||||
|
||||
private function stageClickEvent(param1:MouseEvent) : void
|
||||
{
|
||||
BuildControlBar.getInstance().clear();
|
||||
var _loc2_:UserControl = UserControl.getInstance();
|
||||
if(this.stage.contains(_loc2_))
|
||||
{
|
||||
this.stage.removeChild(_loc2_);
|
||||
}
|
||||
}
|
||||
|
||||
public function enterCastle(param1:String, param2:int) : void
|
||||
{
|
||||
var _loc3_:MilitaryInside = null;
|
||||
var _loc4_:EconomicInside = null;
|
||||
var _loc5_:TownInside = null;
|
||||
this._currCasId = param2;
|
||||
this._castleType = param1;
|
||||
if(this.mapSprite.contains(TownInside.getInstance()))
|
||||
{
|
||||
this.mapSprite.removeChild(TownInside.getInstance());
|
||||
}
|
||||
if(this.mapSprite.contains(MilitaryInside.getInstance()))
|
||||
{
|
||||
this.mapSprite.removeChild(MilitaryInside.getInstance());
|
||||
}
|
||||
if(this.mapSprite.contains(EconomicInside.getInstance()))
|
||||
{
|
||||
this.mapSprite.removeChild(EconomicInside.getInstance());
|
||||
}
|
||||
if(param1 == "military")
|
||||
{
|
||||
_loc3_ = MilitaryInside.getInstance();
|
||||
if(!this.mapSprite.contains(_loc3_))
|
||||
{
|
||||
this.mapSprite.addChild(_loc3_);
|
||||
}
|
||||
_loc3_.setCastleId(param2);
|
||||
}
|
||||
if(param1 == "economic")
|
||||
{
|
||||
_loc4_ = EconomicInside.getInstance();
|
||||
if(!this.mapSprite.contains(_loc4_))
|
||||
{
|
||||
this.mapSprite.addChild(_loc4_);
|
||||
}
|
||||
_loc4_.setCastleId(param2);
|
||||
}
|
||||
if(param1 == "main")
|
||||
{
|
||||
_loc5_ = TownInside.getInstance();
|
||||
if(!this.mapSprite.contains(_loc5_))
|
||||
{
|
||||
this.mapSprite.addChild(_loc5_);
|
||||
}
|
||||
_loc5_.getCastleBuildList();
|
||||
}
|
||||
ConnectService.getInstance().castleService.changeCurrCity(param2);
|
||||
}
|
||||
|
||||
private function addEvent() : void
|
||||
{
|
||||
ConnectService.getInstance().addEventListener(CastleBuildEvent.ADD_SPEED_OK,this.addSpeedResult);
|
||||
ConnectService.getInstance().addEventListener(TechUpEvent.ADDSPEED_OK,this.addSpeedTechResult);
|
||||
ConnectService.getInstance().addEventListener(CastleWallEvent.WALL_ADDSPEED,this.addSpeedWallResult);
|
||||
ConnectService.getInstance().addEventListener(CastleBuildEvent.BUILD_UP_OK,this.upBuildOkResult);
|
||||
ConnectService.getInstance().addEventListener(CastleBuildEvent.BUILD_NEW,this.createNewBuildResult);
|
||||
ConnectService.getInstance().addEventListener(CastleBuildEvent.BUILD_UP,this.upBuildResult);
|
||||
ConnectService.getInstance().addEventListener(CastleBuildEvent.BUILD_DESTROY,this.destroyBuildResult);
|
||||
ConnectService.getInstance().addEventListener(CastleBuildEvent.BUILD_CANCEL,this.cancelBuildResult);
|
||||
ConnectService.getInstance().addEventListener(AllQueueEvent.AllQueue,this.getAllQueueResult);
|
||||
ConnectService.getInstance().addEventListener(CastleLevelUpEvent.CASTLE_LEVELUP,this.castleLevelUpResult);
|
||||
ConnectService.getInstance().addEventListener(TechUpEvent.UP_BEGIN,this.techLevelUpResult);
|
||||
ConnectService.getInstance().addEventListener(TechUpEvent.UP_OVER,this.techUpOverResult);
|
||||
ConnectService.getInstance().addEventListener(TechUpEvent.CANCEL_OVER,this.techCancelResult);
|
||||
ConnectService.getInstance().addEventListener(CastleWallEvent.WALL_PRODUCTARMY,this.productArmyResult);
|
||||
ConnectService.getInstance().addEventListener(CastleWallEvent.WALL_PRODUCTOVER,this.productArmyOverResult);
|
||||
ConnectService.getInstance().addEventListener(CastleWallEvent.WALL_CANCEL,this.cancelWallResult);
|
||||
ConnectService.getInstance().addEventListener(GetGameInfoEvent.getData,this.getGameDataResult);
|
||||
Utils.g_events.addEventListener(DevEvent.CASTLEMOVE,this.moveCastleSucc);
|
||||
ConnectService.getInstance().addEventListener(CastleEvent.CASTLE_changeBranchCastleType,this.changesucc);
|
||||
}
|
||||
|
||||
private function changesucc(param1:CastleEvent) : void
|
||||
{
|
||||
MessageBoxUI.getInstance().reLogin("转换成功,现在请重新登陆游戏");
|
||||
}
|
||||
|
||||
private function moveCastleSucc(param1:DevEvent) : void
|
||||
{
|
||||
MessageBoxUI.getInstance().reLogin("迁城成功,请重新登录游戏");
|
||||
}
|
||||
|
||||
private function moveCastleSuccF(param1:DevEvent) : void
|
||||
{
|
||||
Utils.g_events.removeEventListener(DevEvent.CASTLECHANGE,this.moveCastleSuccF);
|
||||
if(this.currStatus == 1)
|
||||
{
|
||||
World.getInstance().moveCastleSuccF(MemeberShip.getMainCastle().posX,MemeberShip.getMainCastle().posY);
|
||||
}
|
||||
}
|
||||
|
||||
private function addSpeedResult(param1:CastleBuildEvent) : void
|
||||
{
|
||||
var _loc2_:CastleBuilding = param1.castleBuild;
|
||||
BuildCache.getInstance().updateCastleBuild(_loc2_);
|
||||
var _loc3_:BaseBuild = this.getBaseBuild(_loc2_.casId,_loc2_.posNo);
|
||||
if(_loc2_.upTime <= 0)
|
||||
{
|
||||
_loc2_.isUp = false;
|
||||
TimerManager.getInstance().deleteBuildTime(_loc2_.posNo + "_" + _loc2_.casBuiId);
|
||||
TimerManager.getInstance().refresh();
|
||||
if(_loc3_)
|
||||
{
|
||||
_loc3_.castleBuild = _loc2_;
|
||||
_loc3_.setUpOkStatus();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc2_.isUp = true;
|
||||
TimerManager.getInstance().updateBuildTime(_loc2_.posNo + "_" + _loc2_.casBuiId,_loc2_.upTime);
|
||||
}
|
||||
}
|
||||
|
||||
private function addSpeedTechResult(param1:TechUpEvent) : void
|
||||
{
|
||||
var _loc2_:AddSpeed = param1.addSpeed;
|
||||
var _loc3_:Object = param1.obj;
|
||||
if(_loc3_ == null)
|
||||
{
|
||||
TimerManager.getInstance().deleteSkillTime("tech_" + _loc2_.id);
|
||||
TimerManager.getInstance().refresh();
|
||||
}
|
||||
else
|
||||
{
|
||||
TimerManager.getInstance().updateTechTime("tech_" + _loc2_.id,_loc3_.remainTime);
|
||||
}
|
||||
}
|
||||
|
||||
private function addSpeedWallResult(param1:CastleWallEvent) : void
|
||||
{
|
||||
var _loc2_:AddSpeed = param1.addSpeed;
|
||||
var _loc3_:Object = param1.wallObject;
|
||||
if(_loc3_ == null)
|
||||
{
|
||||
TimerManager.getInstance().deleteWallTime("wall_" + _loc2_.id);
|
||||
TimerManager.getInstance().refresh();
|
||||
}
|
||||
else
|
||||
{
|
||||
TimerManager.getInstance().updateWallTime("wall_" + _loc2_.id,_loc3_.time);
|
||||
}
|
||||
}
|
||||
|
||||
private function upBuildOkResult(param1:CastleBuildEvent) : void
|
||||
{
|
||||
var _loc2_:int = int(param1.obj.casId);
|
||||
var _loc3_:String = param1.obj.posNo;
|
||||
var _loc4_:int = int(param1.obj.casBuiId);
|
||||
var _loc5_:CastleBuilding = param1.castleBuild;
|
||||
if(_loc5_ != null)
|
||||
{
|
||||
_loc5_.isUp = false;
|
||||
}
|
||||
if(_loc5_ != null)
|
||||
{
|
||||
BuildCache.getInstance().updateCastleBuild(_loc5_);
|
||||
}
|
||||
else
|
||||
{
|
||||
BuildCache.getInstance().delCastleBuild(_loc2_,_loc3_);
|
||||
}
|
||||
var _loc6_:BaseBuild = this.getBaseBuild(_loc2_,_loc3_);
|
||||
if(_loc6_)
|
||||
{
|
||||
if(_loc5_)
|
||||
{
|
||||
_loc6_.castleBuild = _loc5_;
|
||||
}
|
||||
_loc6_.setUpOkStatus();
|
||||
if(_loc5_ == null)
|
||||
{
|
||||
this.delBuild(_loc2_,_loc3_);
|
||||
}
|
||||
}
|
||||
TimerManager.getInstance().deleteBuildTime(_loc3_ + "_" + _loc4_);
|
||||
TimerManager.getInstance().refresh();
|
||||
}
|
||||
|
||||
private function createNewBuildResult(param1:CastleBuildEvent) : void
|
||||
{
|
||||
var _loc4_:BaseBuild = null;
|
||||
var _loc2_:CastleBuilding = param1.castleBuild;
|
||||
BuildCache.getInstance().updateCastleBuild(_loc2_);
|
||||
var _loc3_:TimerInfo = this.getBuildTime(_loc2_);
|
||||
if(_loc2_.casId == this.currCasId)
|
||||
{
|
||||
if(this._castleType == "military")
|
||||
{
|
||||
_loc4_ = MilitaryInside.getInstance().createNewBuild(_loc2_);
|
||||
_loc4_.setUpStatus();
|
||||
_loc3_.process1 = _loc4_.processDo;
|
||||
}
|
||||
if(this._castleType == "economic")
|
||||
{
|
||||
_loc4_ = EconomicInside.getInstance().createNewBuild(_loc2_);
|
||||
_loc4_.setUpStatus();
|
||||
_loc3_.process1 = _loc4_.processDo;
|
||||
}
|
||||
if(this._castleType == "main")
|
||||
{
|
||||
_loc4_ = TownInside.getInstance().createNewBuild(_loc2_);
|
||||
_loc4_.setUpStatus();
|
||||
_loc3_.process1 = _loc4_.processDo;
|
||||
}
|
||||
}
|
||||
TimerManager.getInstance().setBuildTimerEvent(_loc3_);
|
||||
}
|
||||
|
||||
private function upBuildResult(param1:CastleBuildEvent) : void
|
||||
{
|
||||
if(param1.result == ReturnBean.STATUS_4)
|
||||
{
|
||||
MessageBoxUI.getInstance().addMessage(param1.msg);
|
||||
return;
|
||||
}
|
||||
var _loc2_:CastleBuilding = param1.castleBuild;
|
||||
BuildCache.getInstance().updateCastleBuild(_loc2_);
|
||||
var _loc3_:BaseBuild = this.getBaseBuild(_loc2_.casId,_loc2_.posNo);
|
||||
var _loc4_:TimerInfo = this.getBuildTime(_loc2_);
|
||||
if(_loc3_)
|
||||
{
|
||||
_loc3_.castleBuild = _loc2_;
|
||||
_loc3_.setUpStatus();
|
||||
_loc4_.process1 = _loc3_.processDo;
|
||||
}
|
||||
TimerManager.getInstance().setBuildTimerEvent(_loc4_);
|
||||
}
|
||||
|
||||
private function destroyBuildResult(param1:CastleBuildEvent) : void
|
||||
{
|
||||
var _loc2_:CastleBuilding = param1.castleBuild;
|
||||
BuildCache.getInstance().updateCastleBuild(_loc2_);
|
||||
var _loc3_:BaseBuild = this.getBaseBuild(_loc2_.casId,_loc2_.posNo);
|
||||
var _loc4_:TimerInfo = this.getBuildTime(_loc2_,false);
|
||||
if(_loc3_)
|
||||
{
|
||||
_loc3_.castleBuild = _loc2_;
|
||||
_loc3_.setUpStatus();
|
||||
_loc4_.process1 = _loc3_.processDo;
|
||||
}
|
||||
TimerManager.getInstance().setBuildTimerEvent(_loc4_);
|
||||
}
|
||||
|
||||
private function cancelBuildResult(param1:CastleBuildEvent) : void
|
||||
{
|
||||
var _loc2_:CastleBuilding = param1.castleBuild;
|
||||
BuildCache.getInstance().updateCastleBuild(_loc2_);
|
||||
var _loc3_:BaseBuild = this.getBaseBuild(_loc2_.casId,_loc2_.posNo);
|
||||
_loc2_.isUp = false;
|
||||
if(_loc3_)
|
||||
{
|
||||
if(_loc2_.level > 0)
|
||||
{
|
||||
_loc3_.castleBuild = _loc2_;
|
||||
}
|
||||
_loc3_.setUpOkStatus();
|
||||
if(_loc2_.level == 0)
|
||||
{
|
||||
this.delBuild(_loc2_.casId,_loc2_.posNo);
|
||||
}
|
||||
}
|
||||
TimerManager.getInstance().deleteBuildTime(_loc2_.posNo + "_" + _loc2_.casBuiId);
|
||||
TimerManager.getInstance().refresh();
|
||||
}
|
||||
|
||||
private function getAllQueueResult(param1:AllQueueEvent) : void
|
||||
{
|
||||
var _loc2_:Array = param1.allQueueArr;
|
||||
TimerManager.getInstance().setAllQueue(_loc2_);
|
||||
}
|
||||
|
||||
private function castleLevelUpResult(param1:CastleLevelUpEvent) : void
|
||||
{
|
||||
var _loc2_:String = param1.cityUrl;
|
||||
if(this._castleType == "main")
|
||||
{
|
||||
TownInside.getInstance().casLvUp(_loc2_);
|
||||
}
|
||||
BuffManager.getInstance().update();
|
||||
}
|
||||
|
||||
private function techLevelUpResult(param1:TechUpEvent) : void
|
||||
{
|
||||
var _loc2_:TechBuildUI = UIListManage.getInstance().getClass(TechBuildUI) as TechBuildUI;
|
||||
var _loc3_:TimerInfo = this.getTechTime(param1.obj);
|
||||
if(_loc2_)
|
||||
{
|
||||
_loc2_.techLevelUp(param1.obj);
|
||||
_loc3_.process1 = _loc2_.processDo;
|
||||
}
|
||||
TimerManager.getInstance().setBuildTimerEvent(_loc3_,2);
|
||||
}
|
||||
|
||||
private function techUpOverResult(param1:TechUpEvent) : void
|
||||
{
|
||||
}
|
||||
|
||||
private function techCancelResult(param1:TechUpEvent) : void
|
||||
{
|
||||
TimerManager.getInstance().deleteSkillTime("tech_" + param1.obj);
|
||||
TimerManager.getInstance().refresh();
|
||||
}
|
||||
|
||||
private function productArmyResult(param1:CastleWallEvent) : void
|
||||
{
|
||||
var _loc5_:Boolean = false;
|
||||
var _loc2_:Object = param1.wallObject;
|
||||
var _loc3_:TimerInfo = this.getWallTime(_loc2_);
|
||||
var _loc4_:CityWallUI = UIListManage.getInstance().getClass(CityWallUI) as CityWallUI;
|
||||
if(_loc4_)
|
||||
{
|
||||
_loc5_ = _loc4_.contains(_loc4_.page1);
|
||||
if(_loc5_)
|
||||
{
|
||||
_loc4_.page1.addProductArmy(_loc2_);
|
||||
_loc3_.process1 = _loc4_.page1.buildWallMc.setTime;
|
||||
}
|
||||
}
|
||||
TimerManager.getInstance().setBuildTimerEvent(_loc3_,3);
|
||||
}
|
||||
|
||||
private function productArmyOverResult(param1:CastleWallEvent) : void
|
||||
{
|
||||
}
|
||||
|
||||
private function cancelWallResult(param1:CastleWallEvent) : void
|
||||
{
|
||||
TimerManager.getInstance().deleteWallTime("wall_" + param1.wallObject.id);
|
||||
TimerManager.getInstance().refresh();
|
||||
}
|
||||
|
||||
private function getWallTime(param1:Object) : TimerInfo
|
||||
{
|
||||
var _loc2_:TimerInfo = new TimerInfo();
|
||||
_loc2_.timerId = "wall_" + param1.id;
|
||||
_loc2_.timerName = param1.army.armyName;
|
||||
_loc2_.upStr = "建造中";
|
||||
_loc2_.queId = param1.id;
|
||||
_loc2_.timeType = 3;
|
||||
_loc2_.timerLevel = 0;
|
||||
_loc2_.nextLevel = 0;
|
||||
_loc2_.timerNeed = param1.time;
|
||||
return _loc2_;
|
||||
}
|
||||
|
||||
private function getTechTime(param1:Object) : TimerInfo
|
||||
{
|
||||
var _loc2_:TimerInfo = new TimerInfo();
|
||||
_loc2_.timerId = "tech_" + param1.queId;
|
||||
_loc2_.timerName = param1.techName;
|
||||
_loc2_.upStr = "研究中";
|
||||
_loc2_.queId = param1.queId;
|
||||
_loc2_.timeType = 2;
|
||||
_loc2_.type = param1.entName;
|
||||
_loc2_.timerLevel = param1.currLv;
|
||||
_loc2_.nextLevel = param1.toLevel;
|
||||
_loc2_.timerNeed = param1.remainTime;
|
||||
return _loc2_;
|
||||
}
|
||||
|
||||
private function getBuildTime(param1:CastleBuilding, param2:Boolean = true) : TimerInfo
|
||||
{
|
||||
var _loc3_:TimerInfo = new TimerInfo();
|
||||
_loc3_.timerId = param1.posNo + "_" + param1.casBuiId;
|
||||
_loc3_.timerName = param1.building.buiName;
|
||||
_loc3_.queId = param1.buildQueue.queId;
|
||||
_loc3_.timeType = 1;
|
||||
_loc3_.timerLevel = param1.level;
|
||||
_loc3_.casId = param1.casId;
|
||||
if(param2)
|
||||
{
|
||||
_loc3_.upStr = "建造中";
|
||||
_loc3_.nextLevel = param1.level + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc3_.upStr = "拆除中";
|
||||
_loc3_.nextLevel = param1.level - 1;
|
||||
}
|
||||
_loc3_.timerNeed = param1.upTime + 1;
|
||||
return _loc3_;
|
||||
}
|
||||
|
||||
private function getBaseBuild(param1:int, param2:String) : BaseBuild
|
||||
{
|
||||
var _loc3_:BaseBuild = null;
|
||||
if(this.currCasId == param1)
|
||||
{
|
||||
if(this._castleType == "military")
|
||||
{
|
||||
_loc3_ = MilitaryInside.getInstance().getBuildByPosNo(param2) as BaseBuild;
|
||||
}
|
||||
if(this._castleType == "economic")
|
||||
{
|
||||
_loc3_ = EconomicInside.getInstance().getBuildByPosNo(param2) as BaseBuild;
|
||||
}
|
||||
if(this._castleType == "main")
|
||||
{
|
||||
_loc3_ = TownInside.getInstance().getBuildByPosNo(param2) as BaseBuild;
|
||||
}
|
||||
}
|
||||
return _loc3_;
|
||||
}
|
||||
|
||||
private function delBuild(param1:int, param2:String) : void
|
||||
{
|
||||
if(this.currCasId == param1)
|
||||
{
|
||||
if(this._castleType == "military")
|
||||
{
|
||||
MilitaryInside.getInstance().delBuildyPosNo(param2);
|
||||
}
|
||||
if(this._castleType == "economic")
|
||||
{
|
||||
EconomicInside.getInstance().delBuildyPosNo(param2);
|
||||
}
|
||||
if(this._castleType == "main")
|
||||
{
|
||||
TownInside.getInstance().delBuildyPosNo(param2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function setBuildNameView() : void
|
||||
{
|
||||
if(this._castleType == "military")
|
||||
{
|
||||
MilitaryInside.getInstance().setBuildNameView();
|
||||
}
|
||||
if(this._castleType == "economic")
|
||||
{
|
||||
EconomicInside.getInstance().setBuildNameView();
|
||||
}
|
||||
if(this._castleType == "main")
|
||||
{
|
||||
TownInside.getInstance().setBuildNameView();
|
||||
}
|
||||
}
|
||||
|
||||
public function toWorld() : void
|
||||
{
|
||||
this.currStatus = 1;
|
||||
if(Boolean(this.countryFightView) && this.worldSprite.contains(this.countryFightView))
|
||||
{
|
||||
this.worldSprite.removeChild(this.countryFightView);
|
||||
}
|
||||
Control.getInstance().toWorld(true);
|
||||
this.mapSprite.visible = false;
|
||||
var _loc1_:World = World.getInstance();
|
||||
this.worldSprite.addChild(_loc1_);
|
||||
}
|
||||
|
||||
public function toTown() : void
|
||||
{
|
||||
this.currStatus = 2;
|
||||
if(Boolean(this.countryFightView) && this.worldSprite.contains(this.countryFightView))
|
||||
{
|
||||
this.worldSprite.removeChild(this.countryFightView);
|
||||
}
|
||||
var _loc1_:World = World.getInstance();
|
||||
if(this.worldSprite.contains(_loc1_))
|
||||
{
|
||||
this.worldSprite.removeChild(_loc1_);
|
||||
}
|
||||
Control.getInstance().toWorld(false);
|
||||
this.mapSprite.visible = true;
|
||||
}
|
||||
|
||||
public function toCountryFight() : void
|
||||
{
|
||||
this.currStatus = 3;
|
||||
var _loc1_:World = World.getInstance();
|
||||
if(Boolean(_loc1_) && this.worldSprite.contains(_loc1_))
|
||||
{
|
||||
this.worldSprite.removeChild(_loc1_);
|
||||
}
|
||||
if(this.countryFightView == null)
|
||||
{
|
||||
this.countryFightView = new CountryFightView();
|
||||
}
|
||||
this.worldSprite.addChild(this.countryFightView);
|
||||
}
|
||||
|
||||
public function connectToserver() : void
|
||||
{
|
||||
this.chatConnect = new ChatConnect1();
|
||||
this.chatConnect.connect(PathConfig.getInstance().getServerIp(),PathConfig.getInstance().getServerPort());
|
||||
this.chatConnect.addEventListener(ChatEvent.MESSAGE,this.getMessFromSer);
|
||||
}
|
||||
|
||||
public function getChatConnect() : ChatConnect1
|
||||
{
|
||||
return this.chatConnect;
|
||||
}
|
||||
|
||||
public function loginByUserId() : void
|
||||
{
|
||||
if(NewUserData.getAccount().userId > 0)
|
||||
{
|
||||
this.chatConnect.login();
|
||||
}
|
||||
}
|
||||
|
||||
private function getMessFromSer(param1:ChatEvent) : void
|
||||
{
|
||||
var _loc2_:BroadEvent = null;
|
||||
var _loc3_:Array = null;
|
||||
var _loc4_:Object = null;
|
||||
switch(param1.messId)
|
||||
{
|
||||
case ChatType.type_1:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
Control.getInstance().chatMainUI.printWorldMess(param1.mess);
|
||||
}
|
||||
break;
|
||||
case ChatType.type_2:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
Control.getInstance().chatMainUI.printCountryMess(param1.mess);
|
||||
}
|
||||
break;
|
||||
case ChatType.type_3:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
Control.getInstance().chatMainUI.printUnionMess(param1.mess);
|
||||
}
|
||||
break;
|
||||
case ChatType.type_4:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
Control.getInstance().chatMainUI.printUserMess(param1.mess);
|
||||
}
|
||||
break;
|
||||
case ChatType.type_5:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
Control.getInstance().sysMessUI.printMess(param1.mess);
|
||||
}
|
||||
break;
|
||||
case ChatType.type_8:
|
||||
this.chatConnect.close();
|
||||
MessageBoxUI.getInstance().reLogin();
|
||||
break;
|
||||
case ChatType.type_9:
|
||||
_loc2_ = new BroadEvent(BroadEvent.HEXAGRAM_EVENT);
|
||||
_loc2_.msg = param1.mess;
|
||||
BroadEventManage.getInstance().dispatchEvent(_loc2_);
|
||||
break;
|
||||
case ChatType.type_10:
|
||||
Control.getInstance().sysMessUI.titleMsg(param1.mess);
|
||||
break;
|
||||
case ChatType.type_11:
|
||||
EffectManager.getInstance().dispatchEvent(new Event(param1.mess));
|
||||
break;
|
||||
case ChatType.type_12:
|
||||
_loc3_ = param1.mess.split("[-]");
|
||||
_loc4_ = new Object();
|
||||
_loc4_.name = _loc3_[0];
|
||||
_loc4_.cons = _loc3_[1];
|
||||
if(BarFactory.instance == null)
|
||||
{
|
||||
BarFactory.getInstance();
|
||||
}
|
||||
Utils.g_events.dispatchEvent(new DevEvent(DevEvent.NewPlayerEvent,_loc4_));
|
||||
if(NewUserData.getUser() != null && MemeberShip.getCurrCasId() > 0)
|
||||
{
|
||||
ConnectService.getInstance().castleService.calcuDevData();
|
||||
}
|
||||
break;
|
||||
case ChatType.type_13:
|
||||
this.chatConnect.close();
|
||||
MessageBoxUI.getInstance().reLogin(param1.mess);
|
||||
break;
|
||||
case ChatType.type_14:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
Control.getInstance().sysMessUI.titleMsg(param1.mess);
|
||||
}
|
||||
break;
|
||||
case ChatType.type_15:
|
||||
GameData.onLineUser.setOnlineUser(param1.mess);
|
||||
break;
|
||||
case ChatType.type_16:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
Control.getInstance().sysMessUI.userTitleMsg(param1.mess);
|
||||
}
|
||||
break;
|
||||
case ChatType.type_17:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
Control.getInstance().sysMessUI.kingLoginMsg(param1.mess);
|
||||
}
|
||||
break;
|
||||
case ChatType.type_20:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
}
|
||||
break;
|
||||
case ChatType.type_21:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
Control.getInstance().sysMessUI.broadcastMsg(param1.mess);
|
||||
}
|
||||
break;
|
||||
case ChatType.type_22:
|
||||
if(Control.instance != null)
|
||||
{
|
||||
this.chatConnect.sendHeartConnect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function sendNotice() : void
|
||||
{
|
||||
setTimeout(function():void
|
||||
{
|
||||
var _loc1_:String = "<font color=\'#FF8080\'>【系统公告】</font><font color=\'#46FF46\'>本游戏一切充值请联系QQ:" + GameData.getConfigMap().QQ + "。欢迎加入讨论群:" + GameData.getConfigMap().QQUN + "</font>";
|
||||
Control.getInstance().chatMainUI.printWorldMess(_loc1_);
|
||||
},60000);
|
||||
}
|
||||
|
||||
public function getSprite(param1:String) : Sprite
|
||||
{
|
||||
var _loc2_:Sprite = null;
|
||||
_loc2_ = App.createSprite(param1,this._loaderInfo);
|
||||
if(_loc2_ == null)
|
||||
{
|
||||
_loc2_ = null;
|
||||
}
|
||||
return _loc2_;
|
||||
}
|
||||
|
||||
private function createClip(param1:String) : MovieClip
|
||||
{
|
||||
var _loc2_:MovieClip = null;
|
||||
_loc2_ = App.createMc(param1,this._loaderInfo);
|
||||
if(_loc2_ == null)
|
||||
{
|
||||
_loc2_ = null;
|
||||
}
|
||||
return _loc2_;
|
||||
}
|
||||
|
||||
public function getMovieClip(param1:String) : MovieClip
|
||||
{
|
||||
return this.createClip(param1);
|
||||
}
|
||||
|
||||
public function getPng(param1:String) : BitmapData
|
||||
{
|
||||
var _loc2_:BitmapData = null;
|
||||
_loc2_ = App.createPng(param1,this._loaderInfo);
|
||||
if(_loc2_ == null)
|
||||
{
|
||||
_loc2_ = null;
|
||||
}
|
||||
return _loc2_;
|
||||
}
|
||||
|
||||
public function getBitMap(param1:String) : Bitmap
|
||||
{
|
||||
return new Bitmap(this.getPng(param1));
|
||||
}
|
||||
|
||||
public function getButton(param1:String) : SimpleButton
|
||||
{
|
||||
var _loc2_:SimpleButton = null;
|
||||
_loc2_ = App.createButton(param1,this._loaderInfo);
|
||||
if(_loc2_ == null)
|
||||
{
|
||||
_loc2_ = null;
|
||||
}
|
||||
return _loc2_;
|
||||
}
|
||||
|
||||
public function getClass(param1:String) : Class
|
||||
{
|
||||
return App.getClass(param1,this._loaderInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
73
flash_decompiled/com/Main.as
Normal file
73
flash_decompiled/com/Main.as
Normal file
@@ -0,0 +1,73 @@
|
||||
package com
|
||||
{
|
||||
import com.comfig.PathConfig;
|
||||
import com.control.ConnectService;
|
||||
import com.view.ui.login.LoginUI;
|
||||
import flash.display.Sprite;
|
||||
import flash.display.StageAlign;
|
||||
import flash.display.StageScaleMode;
|
||||
import flash.events.Event;
|
||||
import flash.net.URLLoader;
|
||||
import flash.net.URLRequest;
|
||||
|
||||
public class Main extends Sprite
|
||||
{
|
||||
|
||||
private var xml:String = "xml/resource.xml";
|
||||
|
||||
private var urlloader:URLLoader;
|
||||
|
||||
private var verson:String;
|
||||
|
||||
public function Main()
|
||||
{
|
||||
super();
|
||||
if(stage)
|
||||
{
|
||||
this.init();
|
||||
}
|
||||
else
|
||||
{
|
||||
addEventListener(Event.ADDED_TO_STAGE,this.init);
|
||||
}
|
||||
}
|
||||
|
||||
private function init(param1:Event = null) : void
|
||||
{
|
||||
removeEventListener(Event.ADDED_TO_STAGE,this.init);
|
||||
stage.scaleMode = StageScaleMode.NO_SCALE;
|
||||
stage.align = StageAlign.TOP_LEFT;
|
||||
var _loc2_:Object = root.loaderInfo.parameters;
|
||||
if(_loc2_["verson"] != null)
|
||||
{
|
||||
this.verson = _loc2_["verson"];
|
||||
}
|
||||
else
|
||||
{
|
||||
this.verson = "";
|
||||
}
|
||||
PathConfig.getInstance().setVerson(this.verson);
|
||||
this.loadXML();
|
||||
}
|
||||
|
||||
private function loadXML() : void
|
||||
{
|
||||
this.urlloader = new URLLoader(new URLRequest(this.xml));
|
||||
this.urlloader.addEventListener(Event.COMPLETE,this.loadedXmlComplete);
|
||||
}
|
||||
|
||||
private function loadedXmlComplete(param1:Event) : void
|
||||
{
|
||||
this.urlloader.removeEventListener(Event.COMPLETE,this.loadedXmlComplete);
|
||||
this.urlloader = null;
|
||||
PathConfig.getInstance().Init(XML(param1.target.data));
|
||||
InstallFace.getInstance().stage = stage;
|
||||
var _loc2_:LoginUI = new LoginUI();
|
||||
ConnectService.getInstance();
|
||||
InstallFace.getInstance().addMc(_loc2_);
|
||||
_loc2_.x = int(InstallFace.getInstance().stage.stageWidth / 2);
|
||||
_loc2_.y = int(InstallFace.getInstance().stage.stageHeight / 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1010
flash_decompiled/com/comfig/ClassConfig.as
Normal file
1010
flash_decompiled/com/comfig/ClassConfig.as
Normal file
File diff suppressed because it is too large
Load Diff
212
flash_decompiled/com/comfig/CommonData.as
Normal file
212
flash_decompiled/com/comfig/CommonData.as
Normal file
@@ -0,0 +1,212 @@
|
||||
package com.comfig
|
||||
{
|
||||
public class CommonData
|
||||
{
|
||||
|
||||
public static const STAGE_WIDTH:uint = 1400;
|
||||
|
||||
public static const STAGE_HEIGHT:uint = 700;
|
||||
|
||||
public static const STAGE_MAX_WIDTH:uint = 1440;
|
||||
|
||||
public static const STAGE_MAX_HEIGHT:uint = 900;
|
||||
|
||||
public static const MAX_WIDTH:uint = 2000;
|
||||
|
||||
public static const MAX_HEIGHT:uint = 1400;
|
||||
|
||||
public static const EQUIP_WIDTH:uint = 53;
|
||||
|
||||
public static const EQUIP_HEIGHT:uint = 53;
|
||||
|
||||
public static const BUFF_WIDTH:uint = 25;
|
||||
|
||||
public static const BUFF_HEIGHT:uint = 25;
|
||||
|
||||
public static const open_junshi:int = 1;
|
||||
|
||||
public static var countryArr:Array = [1,6,7];
|
||||
|
||||
public static const build_level_1:int = 3;
|
||||
|
||||
public static const build_level_2:int = 5;
|
||||
|
||||
public static const viewBabel3:Boolean = true;
|
||||
|
||||
private static const serverIpArr:Array = ["47.120.58.27","47.120.74.49","47.113.230.132","47.114.62.108","116.62.120.209","118.31.37.252","47.121.191.22","47.121.192.198"];
|
||||
|
||||
public static const openRiches:Boolean = true;
|
||||
|
||||
public static const openHeroboss:Boolean = true;
|
||||
|
||||
public static const canRebuild:Boolean = true;
|
||||
|
||||
public static var isOpenLaterAward:Boolean = false;
|
||||
|
||||
public static var babelNameArr:Array = ["千重楼","云中楼","天外楼","地宫楼","神宫楼","魔宫楼","天宫楼","仙宫楼","镜门楼","楼外楼","倒千重","倒云中","倒天外","倒地宫","倒神宫","倒魔宫","倒天宫","倒仙宫","倒镜门","倒楼外","倒楼上","倒楼中","倒楼下","倒噩梦","倒地狱"];
|
||||
|
||||
public static var babelMoreNameArr:Array = ["天界楼","仙界楼","神界楼","魔界楼","佛界楼","灵界楼","妖界楼","冥界楼"];
|
||||
|
||||
public static var babelMoreNameArr1:Array = ["一宫","二宫","三宫","四宫","五宫","六宫","七宫","八宫","九宫","十宫","十一宫","十二宫"];
|
||||
|
||||
public static var babelMoreNameArr2:Array = ["玄武","玄武","玄武","朱雀","朱雀","朱雀","白虎","白虎","白虎","青龙","青龙","青龙"];
|
||||
|
||||
public static var babelMoreNameArr3:Array = ["倒玄武","倒玄武","倒玄武","倒朱雀","倒朱雀","倒朱雀","倒白虎","倒白虎","倒白虎","倒青龙","倒青龙","倒青龙"];
|
||||
|
||||
public static const army:String = "army.xml";
|
||||
|
||||
public static const baseUI:String = "baseUI.xml";
|
||||
|
||||
public static const battle:String = "battle.xml";
|
||||
|
||||
public static const exam:String = "exam.xml";
|
||||
|
||||
public static const farm:String = "farm.xml";
|
||||
|
||||
public static const govPotz:String = "govPotz.xml";
|
||||
|
||||
public static const hero:String = "hero.xml";
|
||||
|
||||
public static const item:String = "item.xml";
|
||||
|
||||
public static const map:String = "map.xml";
|
||||
|
||||
public static const mission:String = "mission.xml";
|
||||
|
||||
public static const shop:String = "shop.xml";
|
||||
|
||||
public static const tower:String = "tower.xml";
|
||||
|
||||
public static const BUILD_100:String = "N100";
|
||||
|
||||
public static const BUILD_101:String = "N101";
|
||||
|
||||
public static const BUILD_102:String = "N102";
|
||||
|
||||
public static const BUILD_103:String = "N103";
|
||||
|
||||
public static const BUILD_104:String = "N104";
|
||||
|
||||
public static const BUILD_105:String = "N105";
|
||||
|
||||
public static const BUILD_106:String = "N106";
|
||||
|
||||
public static const BUILD_107:String = "N107";
|
||||
|
||||
public static const BUILD_108:String = "N108";
|
||||
|
||||
public static const BUILD_109:String = "N109";
|
||||
|
||||
public static const BUILD_110:String = "N110";
|
||||
|
||||
public static const BUILD_111:String = "N111";
|
||||
|
||||
public static const BUILD_112:String = "N112";
|
||||
|
||||
public static const BUILD_113:String = "N113";
|
||||
|
||||
public static const BUILD_114:String = "N114";
|
||||
|
||||
public static const BUILD_116:String = "N116";
|
||||
|
||||
public static const BUILD_117:String = "N117";
|
||||
|
||||
public static const BUILD_HOUSE:int = 10110001;
|
||||
|
||||
public static const BUILD_WAREHOUSE:int = 10110002;
|
||||
|
||||
public static const BUILD_MARKET:int = 10116001;
|
||||
|
||||
public static const BUILD_PUB:int = 10114001;
|
||||
|
||||
public static const BUILD_CAMP:int = 10112001;
|
||||
|
||||
public static const BUILD_MEDICAL:int = 10115002;
|
||||
|
||||
public static const BUILD_WORK:int = 10114003;
|
||||
|
||||
public static const BUILD_BOOK:int = 10113001;
|
||||
|
||||
public static const BUILD_SMITHY:int = 10116002;
|
||||
|
||||
public static const BUILD_MISSION:int = 10117001;
|
||||
|
||||
public static const BUILD_WALL:int = 10112006;
|
||||
|
||||
public static const BUILD_CITY:int = 10111001;
|
||||
|
||||
public static const ECONOMIC_1:int = 10130001;
|
||||
|
||||
public static const ECONOMIC_2:int = 10130002;
|
||||
|
||||
public static const ECONOMIC_3:int = 10130003;
|
||||
|
||||
public static const ECONOMIC_4:int = 10130004;
|
||||
|
||||
public static const ECONOMIC_5:int = 10130005;
|
||||
|
||||
public static const ECONOMIC_6:int = 10130006;
|
||||
|
||||
public static const MILITARY_1:int = 10140001;
|
||||
|
||||
public static const MILITARY_2:int = 10140002;
|
||||
|
||||
public static const MILITARY_3:int = 10140003;
|
||||
|
||||
public static const MILITARY_4:int = 10140004;
|
||||
|
||||
public static const MILITARY_5:int = 10140005;
|
||||
|
||||
public static const MILITARY_6:int = 10140006;
|
||||
|
||||
public static const openRadomBox:Boolean = true;
|
||||
|
||||
public static const openArmyBoss:Boolean = true;
|
||||
|
||||
public static const openShengongBoss:Boolean = true;
|
||||
|
||||
public static const openBigBoss:Boolean = true;
|
||||
|
||||
public static const openJunShiSkill:Boolean = true;
|
||||
|
||||
public function CommonData()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function setCountryArr(param1:Array) : void
|
||||
{
|
||||
if(param1.length > 0)
|
||||
{
|
||||
countryArr = param1;
|
||||
}
|
||||
}
|
||||
|
||||
public static function checkServerIp(param1:String) : Boolean
|
||||
{
|
||||
var _loc2_:String = null;
|
||||
for each(_loc2_ in serverIpArr)
|
||||
{
|
||||
if(_loc2_ == param1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function isCountryOpen(param1:int) : Boolean
|
||||
{
|
||||
var _loc2_:int = 0;
|
||||
for each(_loc2_ in countryArr)
|
||||
{
|
||||
if(_loc2_ == param1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
18
flash_decompiled/com/comfig/DataConfig.as
Normal file
18
flash_decompiled/com/comfig/DataConfig.as
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.comfig
|
||||
{
|
||||
public class DataConfig
|
||||
{
|
||||
|
||||
public static const STATUS_OUT:int = 1;
|
||||
|
||||
public static const STATUS_IN:int = 2;
|
||||
|
||||
public static const m_dutyArr:Array = ["","盟主","副盟主","长老","成员"];
|
||||
|
||||
public function DataConfig()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
145
flash_decompiled/com/comfig/PathConfig.as
Normal file
145
flash_decompiled/com/comfig/PathConfig.as
Normal file
@@ -0,0 +1,145 @@
|
||||
package com.comfig
|
||||
{
|
||||
import com.view.ui.load.LoadUIData;
|
||||
|
||||
public class PathConfig
|
||||
{
|
||||
|
||||
private static var instance:PathConfig;
|
||||
|
||||
private var serverPath:String;
|
||||
|
||||
private var serverIp:String;
|
||||
|
||||
private var serverPort:int;
|
||||
|
||||
private var uiPathArr:Array;
|
||||
|
||||
private var loadCountSize:Number;
|
||||
|
||||
private var webPath:String;
|
||||
|
||||
private var viewGift:int;
|
||||
|
||||
private var viewReg:int;
|
||||
|
||||
private var currVer:String = "0.2013070614431";
|
||||
|
||||
public function PathConfig()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function getInstance() : PathConfig
|
||||
{
|
||||
if(instance == null)
|
||||
{
|
||||
instance = new PathConfig();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public function Init(param1:XML) : void
|
||||
{
|
||||
var _loc3_:* = undefined;
|
||||
var _loc4_:String = null;
|
||||
var _loc5_:LoadUIData = null;
|
||||
var _loc6_:Array = null;
|
||||
var _loc7_:Array = null;
|
||||
var _loc8_:* = undefined;
|
||||
var _loc9_:int = 0;
|
||||
this.serverPath = param1.server[0].@url;
|
||||
this.serverIp = param1.serverIp[0].@url;
|
||||
this.serverPort = int(param1.serverIp[0].@port);
|
||||
this.webPath = param1.server[0].@web;
|
||||
this.viewGift = param1.server[0].@viewGift;
|
||||
this.viewReg = param1.server[0].@viewReg;
|
||||
var _loc2_:int = int(param1.server[0].@viewLater);
|
||||
if(_loc2_ == 1)
|
||||
{
|
||||
CommonData.isOpenLaterAward = true;
|
||||
}
|
||||
this.uiPathArr = new Array();
|
||||
for(_loc3_ in param1.property)
|
||||
{
|
||||
_loc5_ = new LoadUIData();
|
||||
_loc5_.path = param1.property[_loc3_].@path;
|
||||
_loc5_.name = param1.property[_loc3_].@name;
|
||||
_loc5_.ver = param1.property[_loc3_].@ver;
|
||||
_loc5_.type = param1.property[_loc3_].@type;
|
||||
this.uiPathArr.push(_loc5_);
|
||||
}
|
||||
_loc4_ = param1.server[0].@countryId;
|
||||
if(_loc4_)
|
||||
{
|
||||
_loc6_ = _loc4_.split(",");
|
||||
_loc7_ = new Array();
|
||||
for each(_loc8_ in _loc6_)
|
||||
{
|
||||
_loc9_ = int(_loc8_);
|
||||
if(_loc9_ > 0)
|
||||
{
|
||||
_loc7_.push(_loc9_);
|
||||
}
|
||||
}
|
||||
CommonData.setCountryArr(_loc7_);
|
||||
}
|
||||
}
|
||||
|
||||
public function getViewReg() : int
|
||||
{
|
||||
return this.viewReg;
|
||||
}
|
||||
|
||||
public function getViewGift() : int
|
||||
{
|
||||
return this.viewGift;
|
||||
}
|
||||
|
||||
public function getUiPathArr() : Array
|
||||
{
|
||||
return this.uiPathArr;
|
||||
}
|
||||
|
||||
public function setSize(param1:int, param2:Number) : void
|
||||
{
|
||||
this.uiPathArr[param1].size = param2;
|
||||
}
|
||||
|
||||
public function getSize(param1:int) : Number
|
||||
{
|
||||
return this.uiPathArr[param1].size;
|
||||
}
|
||||
|
||||
public function getServerPath() : String
|
||||
{
|
||||
return this.serverPath;
|
||||
}
|
||||
|
||||
public function getWebPath() : String
|
||||
{
|
||||
return this.webPath;
|
||||
}
|
||||
|
||||
public function getServerIp() : String
|
||||
{
|
||||
return this.serverIp;
|
||||
}
|
||||
|
||||
public function getServerPort() : int
|
||||
{
|
||||
return this.serverPort;
|
||||
}
|
||||
|
||||
public function getVerStr(param1:String) : String
|
||||
{
|
||||
return param1;
|
||||
}
|
||||
|
||||
public function setVerson(param1:String) : void
|
||||
{
|
||||
this.currVer = param1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
79
flash_decompiled/com/comfig/ServerConfig.as
Normal file
79
flash_decompiled/com/comfig/ServerConfig.as
Normal file
@@ -0,0 +1,79 @@
|
||||
package com.comfig
|
||||
{
|
||||
public class ServerConfig
|
||||
{
|
||||
|
||||
public static var IMAGE_URL:String = "pic/";
|
||||
|
||||
public static var IMAGE_USERITEM:String = IMAGE_URL + "king/";
|
||||
|
||||
public static var IMAGE_BATTLE_URL:String = IMAGE_URL + "battle/";
|
||||
|
||||
public static var IMAGE_ITEM_URL:String = IMAGE_URL + "equip/";
|
||||
|
||||
public static var IMAGE_MAP_URL:String = IMAGE_URL + "map/";
|
||||
|
||||
public static var IMAGE_BUILD_URL:String = IMAGE_URL + "build/";
|
||||
|
||||
public static var IMAGE_HEAD_URL:String = IMAGE_URL + "head/";
|
||||
|
||||
public static var IMG_SEED_URL:String = IMAGE_URL + "farm/";
|
||||
|
||||
public static var IMG_GEM_URL:String = IMAGE_URL + "gem/";
|
||||
|
||||
public static var IMAGE_JUEWEI_URL:String = IMAGE_URL + "juewei/";
|
||||
|
||||
public static var IMAGE_TECH_URL:String = IMAGE_URL + "tech/";
|
||||
|
||||
public static var IMAGE_POLITIC_URL:String = IMAGE_URL + "politic/";
|
||||
|
||||
public static var IMAGE_ARMY_URL:String = IMAGE_URL + "army/";
|
||||
|
||||
public static var IMAGE_LUCK_URL:String = IMAGE_URL + "luck/";
|
||||
|
||||
public static var IMAGE_IMG_URL:String = IMAGE_URL + "img/";
|
||||
|
||||
public static var IMAGE_DEVELOP_URL:String = IMAGE_URL + "develop/";
|
||||
|
||||
public static var IMAGE_NPC_URL:String = IMAGE_URL + "develop/";
|
||||
|
||||
public static var IMAGE_EMOTE_URL:String = IMAGE_URL + "emote/";
|
||||
|
||||
public static var IMG_PLAY_URL:String = IMAGE_URL + "play/";
|
||||
|
||||
public static var IMAGE_SWF_URL:String = IMAGE_URL + "swf/";
|
||||
|
||||
public static var IMAGE_MISSION_URL:String = IMAGE_URL + "mission/";
|
||||
|
||||
public static var RANK_OUT:String = "未在榜上";
|
||||
|
||||
public static var IMAGE_EQUIP_URL:String = IMAGE_URL + "equip/";
|
||||
|
||||
public static var IMAGE_CAREER_URL:String = IMAGE_URL + "career/";
|
||||
|
||||
public static var IMG_BG_URL:String = IMAGE_URL + "bg/";
|
||||
|
||||
public static var IMG_HOME_URL:String = IMAGE_URL + "home/";
|
||||
|
||||
public static var IMG_ACTIVITY_URL:String = IMAGE_URL + "activity/";
|
||||
|
||||
public static var FLASH_HEIGHT:int = 578;
|
||||
|
||||
public static var FLASH_WIDTH:int = 997;
|
||||
|
||||
public static var FLASH_MAX_WIDTH:int = 1440;
|
||||
|
||||
public static var FLASH_MAX_HEIGHT:int = 900;
|
||||
|
||||
public function ServerConfig()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function getFarmSwf() : String
|
||||
{
|
||||
return "NewFarm.swf";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
552
flash_decompiled/com/comfig/deng/fzip/FZipFile.as
Normal file
552
flash_decompiled/com/comfig/deng/fzip/FZipFile.as
Normal file
@@ -0,0 +1,552 @@
|
||||
package com.comfig.deng.fzip
|
||||
{
|
||||
import com.comfig.deng.utils.ChecksumUtil;
|
||||
import flash.utils.*;
|
||||
|
||||
public class FZipFile
|
||||
{
|
||||
|
||||
public static const COMPRESSION_NONE:int = 0;
|
||||
|
||||
public static const COMPRESSION_SHRUNK:int = 1;
|
||||
|
||||
public static const COMPRESSION_REDUCED_1:int = 2;
|
||||
|
||||
public static const COMPRESSION_REDUCED_2:int = 3;
|
||||
|
||||
public static const COMPRESSION_REDUCED_3:int = 4;
|
||||
|
||||
public static const COMPRESSION_REDUCED_4:int = 5;
|
||||
|
||||
public static const COMPRESSION_IMPLODED:int = 6;
|
||||
|
||||
public static const COMPRESSION_TOKENIZED:int = 7;
|
||||
|
||||
public static const COMPRESSION_DEFLATED:int = 8;
|
||||
|
||||
public static const COMPRESSION_DEFLATED_EXT:int = 9;
|
||||
|
||||
public static const COMPRESSION_IMPLODED_PKWARE:int = 10;
|
||||
|
||||
private static var HAS_INFLATE:Boolean = describeType(ByteArray).factory.method.(@name == "uncompress").hasComplexContent();
|
||||
|
||||
private var _versionHost:int = 0;
|
||||
|
||||
private var _versionNumber:String = "2.0";
|
||||
|
||||
private var _compressionMethod:int = 8;
|
||||
|
||||
private var _encrypted:Boolean = false;
|
||||
|
||||
private var _implodeDictSize:int = -1;
|
||||
|
||||
private var _implodeShannonFanoTrees:int = -1;
|
||||
|
||||
private var _deflateSpeedOption:int = -1;
|
||||
|
||||
private var _hasDataDescriptor:Boolean = false;
|
||||
|
||||
private var _hasCompressedPatchedData:Boolean = false;
|
||||
|
||||
private var _date:Date;
|
||||
|
||||
private var _crc32:uint;
|
||||
|
||||
private var _adler32:uint;
|
||||
|
||||
private var _hasAdler32:Boolean = false;
|
||||
|
||||
private var _sizeCompressed:uint = 0;
|
||||
|
||||
private var _sizeUncompressed:uint = 0;
|
||||
|
||||
private var _sizeFilename:uint = 0;
|
||||
|
||||
private var _sizeExtra:uint = 0;
|
||||
|
||||
private var _filename:String = "";
|
||||
|
||||
private var _filenameEncoding:String;
|
||||
|
||||
private var _extraFields:Dictionary;
|
||||
|
||||
private var _comment:String = "";
|
||||
|
||||
private var _content:ByteArray;
|
||||
|
||||
private var isCompressed:Boolean = false;
|
||||
|
||||
private var parseFunc:Function;
|
||||
|
||||
public function FZipFile(param1:String = "utf-8")
|
||||
{
|
||||
this.parseFunc = this.parseFileHead;
|
||||
super();
|
||||
this._filenameEncoding = param1;
|
||||
this._extraFields = new Dictionary();
|
||||
this._content = new ByteArray();
|
||||
this._content.endian = Endian.BIG_ENDIAN;
|
||||
}
|
||||
|
||||
public function get date() : Date
|
||||
{
|
||||
return this._date;
|
||||
}
|
||||
|
||||
public function set date(param1:Date) : void
|
||||
{
|
||||
this._date = param1 != null ? param1 : new Date();
|
||||
}
|
||||
|
||||
public function get filename() : String
|
||||
{
|
||||
return this._filename;
|
||||
}
|
||||
|
||||
public function set filename(param1:String) : void
|
||||
{
|
||||
this._filename = param1;
|
||||
}
|
||||
|
||||
public function get content() : ByteArray
|
||||
{
|
||||
if(this.isCompressed)
|
||||
{
|
||||
this.uncompress();
|
||||
}
|
||||
return this._content;
|
||||
}
|
||||
|
||||
public function set content(param1:ByteArray) : void
|
||||
{
|
||||
if(param1 != null && param1.length > 0)
|
||||
{
|
||||
param1.position = 0;
|
||||
param1.readBytes(this._content,0,param1.length);
|
||||
this._crc32 = ChecksumUtil.CRC32(this._content);
|
||||
this._hasAdler32 = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._content.length = 0;
|
||||
this._content.position = 0;
|
||||
this.isCompressed = false;
|
||||
}
|
||||
this.compress();
|
||||
}
|
||||
|
||||
public function get versionNumber() : String
|
||||
{
|
||||
return this._versionNumber;
|
||||
}
|
||||
|
||||
public function get sizeCompressed() : uint
|
||||
{
|
||||
return this._sizeCompressed;
|
||||
}
|
||||
|
||||
public function get sizeUncompressed() : uint
|
||||
{
|
||||
return this._sizeUncompressed;
|
||||
}
|
||||
|
||||
public function getContentAsString(param1:Boolean = true, param2:String = "utf-8") : String
|
||||
{
|
||||
var _loc3_:String = null;
|
||||
if(this.isCompressed)
|
||||
{
|
||||
this.uncompress();
|
||||
}
|
||||
this._content.position = 0;
|
||||
if(param2 == "utf-8")
|
||||
{
|
||||
_loc3_ = this._content.readUTFBytes(this._content.bytesAvailable);
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc3_ = this._content.readMultiByte(this._content.bytesAvailable,param2);
|
||||
}
|
||||
this._content.position = 0;
|
||||
if(param1)
|
||||
{
|
||||
this.compress();
|
||||
}
|
||||
return _loc3_;
|
||||
}
|
||||
|
||||
public function setContentAsString(param1:String, param2:String = "utf-8") : void
|
||||
{
|
||||
this._content.length = 0;
|
||||
this._content.position = 0;
|
||||
this.isCompressed = false;
|
||||
if(param1 != null && param1.length > 0)
|
||||
{
|
||||
if(param2 == "utf-8")
|
||||
{
|
||||
this._content.writeUTFBytes(param1);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._content.writeMultiByte(param1,param2);
|
||||
}
|
||||
this._crc32 = ChecksumUtil.CRC32(this._content);
|
||||
this._hasAdler32 = false;
|
||||
}
|
||||
this.compress();
|
||||
}
|
||||
|
||||
public function serialize(param1:IDataOutput, param2:Boolean, param3:Boolean = false, param4:uint = 0) : uint
|
||||
{
|
||||
var _loc10_:Object = null;
|
||||
var _loc15_:ByteArray = null;
|
||||
var _loc16_:Boolean = false;
|
||||
if(param1 == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if(param3)
|
||||
{
|
||||
param1.writeUnsignedInt(33639248);
|
||||
param1.writeShort(this._versionHost << 8 | 0x14);
|
||||
}
|
||||
else
|
||||
{
|
||||
param1.writeUnsignedInt(67324752);
|
||||
}
|
||||
param1.writeShort(this._versionHost << 8 | 0x14);
|
||||
param1.writeShort(this._filenameEncoding == "utf-8" ? 2048 : 0);
|
||||
param1.writeShort(COMPRESSION_DEFLATED);
|
||||
var _loc5_:Date = this._date != null ? this._date : new Date();
|
||||
var _loc6_:uint = uint(uint(_loc5_.getSeconds()) | uint(_loc5_.getMinutes()) << 5 | uint(_loc5_.getHours()) << 11);
|
||||
var _loc7_:uint = uint(uint(_loc5_.getDate()) | uint(_loc5_.getMonth() + 1) << 5 | uint(_loc5_.getFullYear() - 1980) << 9);
|
||||
param1.writeShort(_loc6_);
|
||||
param1.writeShort(_loc7_);
|
||||
param1.writeUnsignedInt(this._crc32);
|
||||
param1.writeUnsignedInt(this._sizeCompressed);
|
||||
param1.writeUnsignedInt(this._sizeUncompressed);
|
||||
var _loc8_:ByteArray = new ByteArray();
|
||||
_loc8_.endian = Endian.LITTLE_ENDIAN;
|
||||
if(this._filenameEncoding == "utf-8")
|
||||
{
|
||||
_loc8_.writeUTFBytes(this._filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc8_.writeMultiByte(this._filename,this._filenameEncoding);
|
||||
}
|
||||
var _loc9_:uint = _loc8_.position;
|
||||
for(_loc10_ in this._extraFields)
|
||||
{
|
||||
_loc15_ = this._extraFields[_loc10_] as ByteArray;
|
||||
if(_loc15_ != null)
|
||||
{
|
||||
_loc8_.writeShort(uint(_loc10_));
|
||||
_loc8_.writeShort(uint(_loc15_.length));
|
||||
_loc8_.writeBytes(_loc15_);
|
||||
}
|
||||
}
|
||||
if(param2)
|
||||
{
|
||||
if(!this._hasAdler32)
|
||||
{
|
||||
_loc16_ = this.isCompressed;
|
||||
if(_loc16_)
|
||||
{
|
||||
this.uncompress();
|
||||
}
|
||||
this._adler32 = ChecksumUtil.Adler32(this._content,0,this._content.length);
|
||||
this._hasAdler32 = true;
|
||||
if(_loc16_)
|
||||
{
|
||||
this.compress();
|
||||
}
|
||||
}
|
||||
_loc8_.writeShort(56026);
|
||||
_loc8_.writeShort(4);
|
||||
_loc8_.writeUnsignedInt(this._adler32);
|
||||
}
|
||||
var _loc11_:uint = _loc8_.position - _loc9_;
|
||||
if(param3 && this._comment.length > 0)
|
||||
{
|
||||
if(this._filenameEncoding == "utf-8")
|
||||
{
|
||||
_loc8_.writeUTFBytes(this._comment);
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc8_.writeMultiByte(this._comment,this._filenameEncoding);
|
||||
}
|
||||
}
|
||||
var _loc12_:uint = _loc8_.position - _loc9_ - _loc11_;
|
||||
param1.writeShort(_loc9_);
|
||||
param1.writeShort(_loc11_);
|
||||
if(param3)
|
||||
{
|
||||
param1.writeShort(_loc12_);
|
||||
param1.writeShort(0);
|
||||
param1.writeShort(0);
|
||||
param1.writeUnsignedInt(0);
|
||||
param1.writeUnsignedInt(param4);
|
||||
}
|
||||
if(_loc9_ + _loc11_ + _loc12_ > 0)
|
||||
{
|
||||
param1.writeBytes(_loc8_);
|
||||
}
|
||||
var _loc13_:uint = 0;
|
||||
if(!param3 && this._sizeCompressed > 0)
|
||||
{
|
||||
if(HAS_INFLATE)
|
||||
{
|
||||
_loc13_ = this._content.length;
|
||||
param1.writeBytes(this._content,0,_loc13_);
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc13_ = this._content.length - 6;
|
||||
param1.writeBytes(this._content,2,_loc13_);
|
||||
}
|
||||
}
|
||||
var _loc14_:uint = 30 + _loc9_ + _loc11_ + _loc12_ + _loc13_;
|
||||
if(param3)
|
||||
{
|
||||
_loc14_ += 16;
|
||||
}
|
||||
return _loc14_;
|
||||
}
|
||||
|
||||
internal function parse(param1:IDataInput) : Boolean
|
||||
{
|
||||
while(Boolean(param1.bytesAvailable) && Boolean(this.parseFunc(param1)))
|
||||
{
|
||||
}
|
||||
return this.parseFunc === this.parseFileIdle;
|
||||
}
|
||||
|
||||
private function parseFileIdle(param1:IDataInput) : Boolean
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
private function parseFileHead(param1:IDataInput) : Boolean
|
||||
{
|
||||
if(param1.bytesAvailable >= 30)
|
||||
{
|
||||
this.parseHead(param1);
|
||||
if(this._sizeFilename + this._sizeExtra > 0)
|
||||
{
|
||||
this.parseFunc = this.parseFileHeadExt;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.parseFunc = this.parseFileContent;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private function parseFileHeadExt(param1:IDataInput) : Boolean
|
||||
{
|
||||
if(param1.bytesAvailable >= this._sizeFilename + this._sizeExtra)
|
||||
{
|
||||
this.parseHeadExt(param1);
|
||||
this.parseFunc = this.parseFileContent;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private function parseFileContent(param1:IDataInput) : Boolean
|
||||
{
|
||||
if(this._hasDataDescriptor)
|
||||
{
|
||||
this.parseFunc = this.parseFileIdle;
|
||||
throw new Error("Data descriptors are not supported.");
|
||||
}
|
||||
if(this._sizeCompressed == 0)
|
||||
{
|
||||
this.parseFunc = this.parseFileIdle;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(param1.bytesAvailable < this._sizeCompressed)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this.parseContent(param1);
|
||||
this.parseFunc = this.parseFileIdle;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
protected function parseHead(param1:IDataInput) : void
|
||||
{
|
||||
var _loc2_:uint = param1.readUnsignedShort();
|
||||
this._versionHost = _loc2_ >> 8;
|
||||
this._versionNumber = Math.floor((_loc2_ & 0xFF) / 10) + "." + (_loc2_ & 0xFF) % 10;
|
||||
var _loc3_:uint = param1.readUnsignedShort();
|
||||
this._compressionMethod = param1.readUnsignedShort();
|
||||
this._encrypted = (_loc3_ & 1) !== 0;
|
||||
this._hasDataDescriptor = (_loc3_ & 8) !== 0;
|
||||
this._hasCompressedPatchedData = (_loc3_ & 0x20) !== 0;
|
||||
if((_loc3_ & 0x0320) !== 0)
|
||||
{
|
||||
this._filenameEncoding = "utf-8";
|
||||
}
|
||||
if(this._compressionMethod === COMPRESSION_IMPLODED)
|
||||
{
|
||||
this._implodeDictSize = (_loc3_ & 2) !== 0 ? 8192 : 4096;
|
||||
this._implodeShannonFanoTrees = (_loc3_ & 4) !== 0 ? 3 : 2;
|
||||
}
|
||||
else if(this._compressionMethod === COMPRESSION_DEFLATED)
|
||||
{
|
||||
this._deflateSpeedOption = (_loc3_ & 6) >> 1;
|
||||
}
|
||||
var _loc4_:uint = param1.readUnsignedShort();
|
||||
var _loc5_:uint = param1.readUnsignedShort();
|
||||
var _loc6_:int = _loc4_ & 0x1F;
|
||||
var _loc7_:int = (_loc4_ & 0x07E0) >> 5;
|
||||
var _loc8_:int = (_loc4_ & 0xF800) >> 11;
|
||||
var _loc9_:int = _loc5_ & 0x1F;
|
||||
var _loc10_:int = (_loc5_ & 0x01E0) >> 5;
|
||||
var _loc11_:int = ((_loc5_ & 0xFE00) >> 9) + 1980;
|
||||
this._date = new Date(_loc11_,_loc10_ - 1,_loc9_,_loc8_,_loc7_,_loc6_,0);
|
||||
this._crc32 = param1.readUnsignedInt();
|
||||
this._sizeCompressed = param1.readUnsignedInt();
|
||||
this._sizeUncompressed = param1.readUnsignedInt();
|
||||
this._sizeFilename = param1.readUnsignedShort();
|
||||
this._sizeExtra = param1.readUnsignedShort();
|
||||
}
|
||||
|
||||
protected function parseHeadExt(param1:IDataInput) : void
|
||||
{
|
||||
var _loc3_:uint = 0;
|
||||
var _loc4_:uint = 0;
|
||||
var _loc5_:ByteArray = null;
|
||||
if(this._filenameEncoding == "utf-8")
|
||||
{
|
||||
this._filename = param1.readUTFBytes(this._sizeFilename);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._filename = param1.readMultiByte(this._sizeFilename,this._filenameEncoding);
|
||||
}
|
||||
var _loc2_:uint = this._sizeExtra;
|
||||
while(_loc2_ > 4)
|
||||
{
|
||||
_loc3_ = param1.readUnsignedShort();
|
||||
_loc4_ = param1.readUnsignedShort();
|
||||
if(_loc4_ > _loc2_)
|
||||
{
|
||||
throw new Error("Parse error in file " + this._filename + ": Extra field data size too big.");
|
||||
}
|
||||
if(_loc3_ === 56026 && _loc4_ === 4)
|
||||
{
|
||||
this._adler32 = param1.readUnsignedInt();
|
||||
this._hasAdler32 = true;
|
||||
}
|
||||
else if(_loc4_ > 0)
|
||||
{
|
||||
_loc5_ = new ByteArray();
|
||||
param1.readBytes(_loc5_,0,_loc4_);
|
||||
this._extraFields[_loc3_] = _loc5_;
|
||||
}
|
||||
_loc2_ -= _loc4_ + 4;
|
||||
}
|
||||
if(_loc2_ > 0)
|
||||
{
|
||||
param1.readBytes(new ByteArray(),0,_loc2_);
|
||||
}
|
||||
}
|
||||
|
||||
protected function parseContent(param1:IDataInput) : void
|
||||
{
|
||||
var _loc2_:uint = 0;
|
||||
if(this._compressionMethod === COMPRESSION_DEFLATED && !this._encrypted)
|
||||
{
|
||||
if(HAS_INFLATE)
|
||||
{
|
||||
param1.readBytes(this._content,0,this._sizeCompressed);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!this._hasAdler32)
|
||||
{
|
||||
throw new Error("Adler32 checksum not found.");
|
||||
}
|
||||
this._content.writeByte(120);
|
||||
_loc2_ = uint(~this._deflateSpeedOption << 6 & 0xC0);
|
||||
_loc2_ += 31 - (120 << 8 | _loc2_) % 31;
|
||||
this._content.writeByte(_loc2_);
|
||||
param1.readBytes(this._content,2,this._sizeCompressed);
|
||||
this._content.position = this._content.length;
|
||||
this._content.writeUnsignedInt(this._adler32);
|
||||
}
|
||||
this.isCompressed = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(this._compressionMethod != COMPRESSION_NONE)
|
||||
{
|
||||
throw new Error("Compression method " + this._compressionMethod + " is not supported.");
|
||||
}
|
||||
param1.readBytes(this._content,0,this._sizeCompressed);
|
||||
this.isCompressed = false;
|
||||
}
|
||||
this._content.position = 0;
|
||||
}
|
||||
|
||||
protected function compress() : void
|
||||
{
|
||||
if(!this.isCompressed)
|
||||
{
|
||||
if(this._content.length > 0)
|
||||
{
|
||||
this._content.position = 0;
|
||||
this._sizeUncompressed = this._content.length;
|
||||
if(HAS_INFLATE)
|
||||
{
|
||||
this._content.compress.apply(this._content,["deflate"]);
|
||||
this._sizeCompressed = this._content.length;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._content.compress();
|
||||
this._sizeCompressed = this._content.length - 6;
|
||||
}
|
||||
this._content.position = 0;
|
||||
this.isCompressed = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._sizeCompressed = 0;
|
||||
this._sizeUncompressed = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function uncompress() : void
|
||||
{
|
||||
if(this.isCompressed && this._content.length > 0)
|
||||
{
|
||||
this._content.position = 0;
|
||||
if(HAS_INFLATE)
|
||||
{
|
||||
this._content.uncompress.apply(this._content,["deflate"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._content.uncompress();
|
||||
}
|
||||
this._content.position = 0;
|
||||
this.isCompressed = false;
|
||||
}
|
||||
}
|
||||
|
||||
public function toString() : String
|
||||
{
|
||||
return "[FZipFile]" + "\n name:" + this._filename + "\n date:" + this._date + "\n sizeCompressed:" + this._sizeCompressed + "\n sizeUncompressed:" + this._sizeUncompressed + "\n versionHost:" + this._versionHost + "\n versionNumber:" + this._versionNumber + "\n compressionMethod:" + this._compressionMethod + "\n encrypted:" + this._encrypted + "\n hasDataDescriptor:" + this._hasDataDescriptor + "\n hasCompressedPatchedData:" + this._hasCompressedPatchedData + "\n filenameEncoding:" + this._filenameEncoding + "\n crc32:" + this._crc32.toString(16) + "\n adler32:" + this._adler32.toString(16);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
113
flash_decompiled/com/comfig/deng/utils/ChecksumUtil.as
Normal file
113
flash_decompiled/com/comfig/deng/utils/ChecksumUtil.as
Normal file
@@ -0,0 +1,113 @@
|
||||
package com.comfig.deng.utils
|
||||
{
|
||||
import flash.utils.ByteArray;
|
||||
|
||||
public class ChecksumUtil
|
||||
{
|
||||
|
||||
private static var crcTable:Array = makeCRCTable();
|
||||
|
||||
public function ChecksumUtil()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
private static function makeCRCTable() : Array
|
||||
{
|
||||
var _loc2_:uint = 0;
|
||||
var _loc3_:uint = 0;
|
||||
var _loc4_:uint = 0;
|
||||
var _loc1_:Array = [];
|
||||
_loc2_ = 0;
|
||||
while(_loc2_ < 256)
|
||||
{
|
||||
_loc4_ = _loc2_;
|
||||
_loc3_ = 0;
|
||||
while(_loc3_ < 8)
|
||||
{
|
||||
if(_loc4_ & 1)
|
||||
{
|
||||
_loc4_ = uint(0xEDB88320 ^ _loc4_ >>> 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc4_ >>>= 1;
|
||||
}
|
||||
_loc3_++;
|
||||
}
|
||||
_loc1_.push(_loc4_);
|
||||
_loc2_++;
|
||||
}
|
||||
return _loc1_;
|
||||
}
|
||||
|
||||
public static function CRC32(param1:ByteArray, param2:uint = 0, param3:uint = 0) : uint
|
||||
{
|
||||
var _loc4_:uint = 0;
|
||||
if(param2 >= param1.length)
|
||||
{
|
||||
param2 = param1.length;
|
||||
}
|
||||
if(param3 == 0)
|
||||
{
|
||||
param3 = param1.length - param2;
|
||||
}
|
||||
if(param3 + param2 > param1.length)
|
||||
{
|
||||
param3 = param1.length - param2;
|
||||
}
|
||||
var _loc5_:uint = 4294967295;
|
||||
_loc4_ = param2;
|
||||
while(_loc4_ < param3)
|
||||
{
|
||||
_loc5_ = uint(uint(crcTable[(_loc5_ ^ param1[_loc4_]) & 0xFF]) ^ _loc5_ >>> 8);
|
||||
_loc4_++;
|
||||
}
|
||||
return _loc5_ ^ 0xFFFFFFFF;
|
||||
}
|
||||
|
||||
public static function Adler32(param1:ByteArray, param2:uint = 0, param3:uint = 0) : uint
|
||||
{
|
||||
var _loc7_:uint = 0;
|
||||
if(param2 >= param1.length)
|
||||
{
|
||||
param2 = param1.length;
|
||||
}
|
||||
if(param3 == 0)
|
||||
{
|
||||
param3 = param1.length - param2;
|
||||
}
|
||||
if(param3 + param2 > param1.length)
|
||||
{
|
||||
param3 = param1.length - param2;
|
||||
}
|
||||
var _loc4_:uint = param2;
|
||||
var _loc5_:uint = 1;
|
||||
var _loc6_:uint = 0;
|
||||
while(param3)
|
||||
{
|
||||
_loc7_ = param3 > 5550 ? 5550 : param3;
|
||||
param3 -= _loc7_;
|
||||
do
|
||||
{
|
||||
_loc5_ += param1[_loc4_++];
|
||||
_loc6_ += _loc5_;
|
||||
}
|
||||
while(--_loc7_);
|
||||
_loc5_ = (_loc5_ & 0xFFFF) + (_loc5_ >> 16) * 15;
|
||||
_loc6_ = (_loc6_ & 0xFFFF) + (_loc6_ >> 16) * 15;
|
||||
}
|
||||
if(_loc5_ >= 65521)
|
||||
{
|
||||
_loc5_ -= 65521;
|
||||
}
|
||||
_loc6_ = (_loc6_ & 0xFFFF) + (_loc6_ >> 16) * 15;
|
||||
if(_loc6_ >= 65521)
|
||||
{
|
||||
_loc6_ -= 65521;
|
||||
}
|
||||
return _loc6_ << 16 | _loc5_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
121
flash_decompiled/com/common/App.as
Normal file
121
flash_decompiled/com/common/App.as
Normal file
@@ -0,0 +1,121 @@
|
||||
package com.common
|
||||
{
|
||||
import flash.display.BitmapData;
|
||||
import flash.display.MovieClip;
|
||||
import flash.display.SimpleButton;
|
||||
import flash.display.Sprite;
|
||||
import flash.system.ApplicationDomain;
|
||||
|
||||
public class App
|
||||
{
|
||||
|
||||
public function App()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function createMc(param1:String, param2:ApplicationDomain) : MovieClip
|
||||
{
|
||||
var newSpr:*;
|
||||
var theDomain:ApplicationDomain = null;
|
||||
var classMc:* = undefined;
|
||||
var linkName:String = param1;
|
||||
var loadinfo:ApplicationDomain = param2;
|
||||
try
|
||||
{
|
||||
theDomain = loadinfo;
|
||||
classMc = theDomain.getDefinition(linkName);
|
||||
}
|
||||
catch(e:ReferenceError)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
newSpr = new classMc() as MovieClip;
|
||||
return newSpr;
|
||||
}
|
||||
|
||||
public static function createButton(param1:String, param2:ApplicationDomain) : SimpleButton
|
||||
{
|
||||
var newSpr:*;
|
||||
var theDomain:ApplicationDomain = null;
|
||||
var classMc:* = undefined;
|
||||
var linkName:String = param1;
|
||||
var loadinfo:ApplicationDomain = param2;
|
||||
try
|
||||
{
|
||||
theDomain = loadinfo;
|
||||
classMc = theDomain.getDefinition(linkName);
|
||||
}
|
||||
catch(e:ReferenceError)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
newSpr = new classMc() as SimpleButton;
|
||||
return newSpr;
|
||||
}
|
||||
|
||||
public static function createSprite(param1:String, param2:ApplicationDomain) : Sprite
|
||||
{
|
||||
var newSpr:*;
|
||||
var theDomain:ApplicationDomain = null;
|
||||
var classMc:* = undefined;
|
||||
var linkName:String = param1;
|
||||
var loadinfo:ApplicationDomain = param2;
|
||||
try
|
||||
{
|
||||
theDomain = loadinfo;
|
||||
if(theDomain)
|
||||
{
|
||||
classMc = theDomain.getDefinition(linkName);
|
||||
}
|
||||
}
|
||||
catch(e:ReferenceError)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
newSpr = new classMc() as Sprite;
|
||||
return newSpr;
|
||||
}
|
||||
|
||||
public static function createPng(param1:String, param2:ApplicationDomain) : BitmapData
|
||||
{
|
||||
var newSpr:*;
|
||||
var theDomain:ApplicationDomain = null;
|
||||
var classMc:* = undefined;
|
||||
var linkName:String = param1;
|
||||
var loadinfo:ApplicationDomain = param2;
|
||||
try
|
||||
{
|
||||
theDomain = loadinfo;
|
||||
classMc = theDomain.getDefinition(linkName);
|
||||
}
|
||||
catch(e:ReferenceError)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
newSpr = new classMc(0,0) as BitmapData;
|
||||
return newSpr;
|
||||
}
|
||||
|
||||
public static function getClass(param1:String, param2:ApplicationDomain) : Class
|
||||
{
|
||||
var newSpr:*;
|
||||
var theDomain:ApplicationDomain = null;
|
||||
var classMc:* = undefined;
|
||||
var linkName:String = param1;
|
||||
var loadinfo:ApplicationDomain = param2;
|
||||
try
|
||||
{
|
||||
theDomain = loadinfo;
|
||||
classMc = theDomain.getDefinition(linkName);
|
||||
}
|
||||
catch(e:ReferenceError)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
newSpr = new classMc() as Class;
|
||||
return newSpr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
21
flash_decompiled/com/common/CommonAPI.as
Normal file
21
flash_decompiled/com/common/CommonAPI.as
Normal file
@@ -0,0 +1,21 @@
|
||||
package com.common
|
||||
{
|
||||
import flash.text.StyleSheet;
|
||||
|
||||
public class CommonAPI
|
||||
{
|
||||
|
||||
public function CommonAPI()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function getLinkStyle() : StyleSheet
|
||||
{
|
||||
var _loc1_:* = new StyleSheet();
|
||||
_loc1_.parseCSS("a {color: #FFFFFF;text-decoration: underline;} a:hover {color: #0080FF;text-decoration: underline;} a:active {text-decoration: underline; color: #FFFF00; }");
|
||||
return _loc1_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
41
flash_decompiled/com/common/DateUtil.as
Normal file
41
flash_decompiled/com/common/DateUtil.as
Normal file
@@ -0,0 +1,41 @@
|
||||
package com.common
|
||||
{
|
||||
public class DateUtil
|
||||
{
|
||||
|
||||
public function DateUtil()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function getEndTime(param1:int) : Number
|
||||
{
|
||||
var _loc2_:* = new Date();
|
||||
return _loc2_.getTime() + param1 * 1000;
|
||||
}
|
||||
|
||||
public static function toString(param1:Date) : *
|
||||
{
|
||||
return param1.toString();
|
||||
}
|
||||
|
||||
public static function distanceSeconds(param1:Number) : int
|
||||
{
|
||||
var _loc2_:* = new Date();
|
||||
return int((param1 - _loc2_.getTime()) / 1000);
|
||||
}
|
||||
|
||||
public static function distance(param1:Date, param2:Date) : Number
|
||||
{
|
||||
return (param1.getTime() - param2.getTime()) / 1000;
|
||||
}
|
||||
|
||||
public static function moveSeconds(param1:Date, param2:Number) : Date
|
||||
{
|
||||
var _loc3_:* = new Date();
|
||||
_loc3_.setTime(param1.getTime() + param2 * 1000);
|
||||
return _loc3_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
100
flash_decompiled/com/common/DragTools.as
Normal file
100
flash_decompiled/com/common/DragTools.as
Normal file
@@ -0,0 +1,100 @@
|
||||
package com.common
|
||||
{
|
||||
import flash.display.Bitmap;
|
||||
import flash.display.BitmapData;
|
||||
import flash.display.Sprite;
|
||||
import flash.geom.Rectangle;
|
||||
|
||||
public class DragTools
|
||||
{
|
||||
|
||||
private var target:Sprite;
|
||||
|
||||
private var object:Object;
|
||||
|
||||
private var bm:Bitmap;
|
||||
|
||||
private var ra:Bitmap;
|
||||
|
||||
private var container:Sprite = new Sprite();
|
||||
|
||||
private var bd:BitmapData;
|
||||
|
||||
public function DragTools(param1:Sprite, param2:Object)
|
||||
{
|
||||
super();
|
||||
this.target = param1;
|
||||
this.object = param2;
|
||||
}
|
||||
|
||||
public function beginDrag(param1:Boolean = false, param2:Rectangle = null) : void
|
||||
{
|
||||
var _loc3_:Rectangle = null;
|
||||
if(this.object.methods == "bitmap")
|
||||
{
|
||||
if(this.bm != null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_loc3_ = this.target.getBounds(this.target.parent);
|
||||
this.bd = new BitmapData(_loc3_.width,_loc3_.height);
|
||||
this.bd.draw(this.target);
|
||||
this.bm = new Bitmap(this.bd);
|
||||
this.container.addChild(this.bm);
|
||||
this.container.x = this.target.x;
|
||||
this.container.y = this.target.y;
|
||||
this.target.visible = false;
|
||||
this.target.parent.addChildAt(this.container,this.target.parent.getChildIndex(this.target));
|
||||
this.container.startDrag(param1,param2);
|
||||
}
|
||||
else if(this.object.methods == "rectangle")
|
||||
{
|
||||
this.container.graphics.lineStyle(4,10053171);
|
||||
this.container.graphics.beginFill(0,0);
|
||||
this.container.graphics.drawRect(0,0,this.target.width,this.target.height);
|
||||
this.container.graphics.endFill();
|
||||
this.container.x = this.target.x;
|
||||
this.container.y = this.target.y;
|
||||
this.target.parent.addChildAt(this.container,this.target.parent.getChildIndex(this.target) + 1);
|
||||
this.container.startDrag(param1,param2);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.target.startDrag(param1,param2);
|
||||
}
|
||||
}
|
||||
|
||||
public function endDrag() : void
|
||||
{
|
||||
if(this.object.methods == "bitmap")
|
||||
{
|
||||
if(this.bm == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.target.x = this.container.x;
|
||||
this.target.y = this.container.y;
|
||||
this.container.removeChild(this.bm);
|
||||
this.target.parent.removeChild(this.container);
|
||||
this.bm = null;
|
||||
this.target.visible = true;
|
||||
this.bd.dispose();
|
||||
this.bd = null;
|
||||
}
|
||||
else if(this.object.methods == "rectangle")
|
||||
{
|
||||
this.target.x = this.container.x;
|
||||
this.target.y = this.container.y;
|
||||
this.container.graphics.clear();
|
||||
this.container.x = 0;
|
||||
this.container.y = 0;
|
||||
this.target.parent.removeChild(this.container);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.target.stopDrag();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
56
flash_decompiled/com/common/LoadManage.as
Normal file
56
flash_decompiled/com/common/LoadManage.as
Normal file
@@ -0,0 +1,56 @@
|
||||
package com.common
|
||||
{
|
||||
public class LoadManage
|
||||
{
|
||||
|
||||
private static var instance:LoadManage;
|
||||
|
||||
private var loadArr:Vector.<LoadResource>;
|
||||
|
||||
private var loadCount:int;
|
||||
|
||||
public function LoadManage()
|
||||
{
|
||||
super();
|
||||
this.loadArr = new Vector.<LoadResource>();
|
||||
this.loadCount = 0;
|
||||
}
|
||||
|
||||
public static function getInstance() : LoadManage
|
||||
{
|
||||
if(instance == null)
|
||||
{
|
||||
instance = new LoadManage();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public function addNewLoad(param1:LoadResource) : void
|
||||
{
|
||||
this.loadArr.push(param1);
|
||||
this.loadRes();
|
||||
}
|
||||
|
||||
private function loadRes() : void
|
||||
{
|
||||
if(this.loadArr.length == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(this.loadCount > 2)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc1_:LoadResource = this.loadArr.shift();
|
||||
_loc1_.beginLoad();
|
||||
++this.loadCount;
|
||||
}
|
||||
|
||||
public function reduceLoadCount() : void
|
||||
{
|
||||
--this.loadCount;
|
||||
this.loadRes();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
71
flash_decompiled/com/common/LoadResource.as
Normal file
71
flash_decompiled/com/common/LoadResource.as
Normal file
@@ -0,0 +1,71 @@
|
||||
package com.common
|
||||
{
|
||||
import flash.display.Loader;
|
||||
import flash.display.MovieClip;
|
||||
import flash.events.Event;
|
||||
import flash.events.IOErrorEvent;
|
||||
import flash.events.ProgressEvent;
|
||||
import flash.net.URLRequest;
|
||||
|
||||
public class LoadResource
|
||||
{
|
||||
|
||||
public var loader:Loader;
|
||||
|
||||
public var backFunc:Function;
|
||||
|
||||
public var progressMc:MovieClip;
|
||||
|
||||
public var viewLoad:Boolean;
|
||||
|
||||
public var url:String;
|
||||
|
||||
public function LoadResource(param1:String, param2:Function, param3:Boolean = false)
|
||||
{
|
||||
super();
|
||||
this.url = param1;
|
||||
this.viewLoad = this.viewLoad;
|
||||
this.backFunc = param2;
|
||||
LoadManage.getInstance().addNewLoad(this);
|
||||
}
|
||||
|
||||
public function beginLoad() : void
|
||||
{
|
||||
this.loader = new Loader();
|
||||
this.loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,this.loadError);
|
||||
this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE,this.loadComplete);
|
||||
this.loader.load(new URLRequest(this.url));
|
||||
}
|
||||
|
||||
private function loadError(param1:IOErrorEvent) : void
|
||||
{
|
||||
LoadManage.getInstance().reduceLoadCount();
|
||||
}
|
||||
|
||||
private function loadProgress(param1:ProgressEvent) : void
|
||||
{
|
||||
}
|
||||
|
||||
private function loadComplete(param1:Event) : void
|
||||
{
|
||||
this.backFunc(param1);
|
||||
LoadManage.getInstance().reduceLoadCount();
|
||||
}
|
||||
|
||||
public function clear() : void
|
||||
{
|
||||
if(this.loader != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.loader.unloadAndStop(true);
|
||||
}
|
||||
catch(error:Error)
|
||||
{
|
||||
}
|
||||
this.loader = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
151
flash_decompiled/com/common/PublicGlow.as
Normal file
151
flash_decompiled/com/common/PublicGlow.as
Normal file
@@ -0,0 +1,151 @@
|
||||
package com.common
|
||||
{
|
||||
import flash.filters.ColorMatrixFilter;
|
||||
import flash.filters.GlowFilter;
|
||||
|
||||
public class PublicGlow
|
||||
{
|
||||
|
||||
private static var instance:PublicGlow;
|
||||
|
||||
public var blackGlow:GlowFilter;
|
||||
|
||||
public var yellowGlow:GlowFilter;
|
||||
|
||||
public var yellowGlow1:GlowFilter;
|
||||
|
||||
public var yellowGlow2:GlowFilter;
|
||||
|
||||
public var greenGlow:GlowFilter;
|
||||
|
||||
public var huiGlow:GlowFilter;
|
||||
|
||||
public var qingGlow:GlowFilter;
|
||||
|
||||
public var lightFilter:ColorMatrixFilter;
|
||||
|
||||
public var menuFillter:GlowFilter;
|
||||
|
||||
public var greenGlow1:GlowFilter;
|
||||
|
||||
public var blackGlow1:GlowFilter;
|
||||
|
||||
public var textGlow:GlowFilter;
|
||||
|
||||
public function PublicGlow()
|
||||
{
|
||||
super();
|
||||
this.blackGlow = new GlowFilter();
|
||||
this.blackGlow.color = 0;
|
||||
this.blackGlow.blurX = 2;
|
||||
this.blackGlow.alpha = 1;
|
||||
this.blackGlow.blurY = 2;
|
||||
this.blackGlow.quality = 1;
|
||||
this.blackGlow.inner = false;
|
||||
this.blackGlow.knockout = false;
|
||||
this.blackGlow.quality = 1;
|
||||
this.blackGlow.strength = 4;
|
||||
this.textGlow = new GlowFilter();
|
||||
this.textGlow.color = 3350799;
|
||||
this.textGlow.blurX = 2;
|
||||
this.textGlow.alpha = 1;
|
||||
this.textGlow.blurY = 2;
|
||||
this.textGlow.quality = 1;
|
||||
this.textGlow.inner = false;
|
||||
this.textGlow.knockout = false;
|
||||
this.textGlow.quality = 1;
|
||||
this.textGlow.strength = 4;
|
||||
this.blackGlow1 = new GlowFilter();
|
||||
this.blackGlow1.color = 0;
|
||||
this.blackGlow1.blurX = 2;
|
||||
this.blackGlow1.alpha = 1;
|
||||
this.blackGlow1.blurY = 2;
|
||||
this.blackGlow1.inner = false;
|
||||
this.blackGlow1.knockout = false;
|
||||
this.blackGlow1.quality = 1;
|
||||
this.blackGlow1.strength = 16;
|
||||
this.huiGlow = new GlowFilter();
|
||||
this.huiGlow.color = 1118481;
|
||||
this.huiGlow.blurX = 2;
|
||||
this.huiGlow.alpha = 1;
|
||||
this.huiGlow.blurY = 2;
|
||||
this.huiGlow.quality = 1;
|
||||
this.huiGlow.inner = false;
|
||||
this.huiGlow.knockout = false;
|
||||
this.huiGlow.quality = 1;
|
||||
this.huiGlow.strength = 6;
|
||||
this.yellowGlow = new GlowFilter();
|
||||
this.yellowGlow.color = 16776960;
|
||||
this.yellowGlow.blurX = 10;
|
||||
this.yellowGlow.alpha = 1;
|
||||
this.yellowGlow.blurY = 10;
|
||||
this.yellowGlow.inner = false;
|
||||
this.yellowGlow.quality = 12;
|
||||
this.yellowGlow.strength = 3;
|
||||
this.yellowGlow1 = new GlowFilter();
|
||||
this.yellowGlow1.color = 16776960;
|
||||
this.yellowGlow1.blurX = 4;
|
||||
this.yellowGlow1.alpha = 1;
|
||||
this.yellowGlow1.blurY = 4;
|
||||
this.yellowGlow1.inner = false;
|
||||
this.yellowGlow1.quality = 6;
|
||||
this.yellowGlow1.strength = 3;
|
||||
this.menuFillter = new GlowFilter();
|
||||
this.menuFillter.color = 16749361;
|
||||
this.menuFillter.blurX = 4;
|
||||
this.menuFillter.alpha = 1;
|
||||
this.menuFillter.blurY = 4;
|
||||
this.menuFillter.inner = false;
|
||||
this.menuFillter.quality = 6;
|
||||
this.menuFillter.strength = 3;
|
||||
this.greenGlow = new GlowFilter();
|
||||
this.greenGlow.color = 65280;
|
||||
this.greenGlow.blurX = 15;
|
||||
this.greenGlow.alpha = 1;
|
||||
this.greenGlow.blurY = 15;
|
||||
this.greenGlow.inner = true;
|
||||
this.greenGlow.quality = 1;
|
||||
this.greenGlow.strength = 1;
|
||||
this.greenGlow1 = new GlowFilter();
|
||||
this.greenGlow1.color = 65280;
|
||||
this.greenGlow1.blurX = 4;
|
||||
this.greenGlow1.alpha = 1;
|
||||
this.greenGlow1.blurY = 4;
|
||||
this.greenGlow1.inner = false;
|
||||
this.greenGlow1.quality = 1;
|
||||
this.greenGlow1.strength = 4;
|
||||
this.qingGlow = new GlowFilter();
|
||||
this.qingGlow.color = 57087;
|
||||
this.qingGlow.blurX = 8;
|
||||
this.qingGlow.alpha = 1;
|
||||
this.qingGlow.blurY = 8;
|
||||
this.qingGlow.inner = false;
|
||||
this.qingGlow.quality = 1;
|
||||
this.qingGlow.strength = 3;
|
||||
this.yellowGlow2 = new GlowFilter();
|
||||
this.yellowGlow2.color = 16776960;
|
||||
this.yellowGlow2.blurX = 15;
|
||||
this.yellowGlow2.alpha = 1;
|
||||
this.yellowGlow2.blurY = 15;
|
||||
this.yellowGlow2.inner = true;
|
||||
this.yellowGlow2.quality = 2;
|
||||
this.yellowGlow2.strength = 2;
|
||||
this.lightFilter = this.createBrightnessFilter(65);
|
||||
}
|
||||
|
||||
public static function getInstance() : PublicGlow
|
||||
{
|
||||
if(instance == null)
|
||||
{
|
||||
return instance = new PublicGlow();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public function createBrightnessFilter(param1:Number) : ColorMatrixFilter
|
||||
{
|
||||
return new ColorMatrixFilter([1,0,0,0,param1,0,1,0,0,param1,0,0,1,0,param1,0,0,0,1,0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
544
flash_decompiled/com/common/PublicMethod.as
Normal file
544
flash_decompiled/com/common/PublicMethod.as
Normal file
@@ -0,0 +1,544 @@
|
||||
package com.common
|
||||
{
|
||||
import com.InstallFace;
|
||||
import com.comfig.ServerConfig;
|
||||
import com.greensock.TweenMax;
|
||||
import com.utils.ExtMath;
|
||||
import com.utils.TextUtils;
|
||||
import com.view.world.MapVars;
|
||||
import flash.display.Bitmap;
|
||||
import flash.display.DisplayObject;
|
||||
import flash.display.DisplayObjectContainer;
|
||||
import flash.display.Shape;
|
||||
import flash.display.Sprite;
|
||||
import flash.filters.ColorMatrixFilter;
|
||||
import flash.text.TextField;
|
||||
import flash.text.TextFormat;
|
||||
|
||||
public class PublicMethod
|
||||
{
|
||||
|
||||
public function PublicMethod()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function createShape(param1:uint, param2:Number, param3:Number) : Sprite
|
||||
{
|
||||
var _loc4_:Sprite = new Sprite();
|
||||
_loc4_.graphics.beginFill(param1,1);
|
||||
_loc4_.graphics.drawRect(0,0,param2,param3);
|
||||
_loc4_.graphics.endFill();
|
||||
return _loc4_;
|
||||
}
|
||||
|
||||
public static function createRectangle(param1:uint, param2:uint, param3:Number, param4:Number) : Sprite
|
||||
{
|
||||
var _loc5_:Sprite = new Sprite();
|
||||
_loc5_.graphics.beginFill(param2,1);
|
||||
_loc5_.graphics.drawRect(0,0,param3,param4);
|
||||
_loc5_.graphics.endFill();
|
||||
_loc5_.graphics.lineStyle(1,param1);
|
||||
_loc5_.graphics.moveTo(0,0);
|
||||
_loc5_.graphics.lineTo(param3,0);
|
||||
_loc5_.graphics.lineTo(param3,param4);
|
||||
_loc5_.graphics.lineTo(0,param4);
|
||||
_loc5_.graphics.lineTo(0,0);
|
||||
_loc5_.graphics.endFill();
|
||||
return _loc5_;
|
||||
}
|
||||
|
||||
public static function getTextField(param1:uint, param2:int) : TextField
|
||||
{
|
||||
var _loc3_:TextField = new TextField();
|
||||
_loc3_.border = false;
|
||||
_loc3_.mouseEnabled = false;
|
||||
_loc3_.textColor = param1;
|
||||
_loc3_.width = param2;
|
||||
_loc3_.height = 18;
|
||||
var _loc4_:TextFormat = new TextFormat();
|
||||
_loc4_.font = "SimSun";
|
||||
_loc3_.defaultTextFormat = _loc4_;
|
||||
return _loc3_;
|
||||
}
|
||||
|
||||
public static function getTextFieldWithFillter(param1:uint, param2:int) : TextField
|
||||
{
|
||||
var _loc3_:TextField = getTextField(param1,param2);
|
||||
_loc3_.filters = [PublicGlow.getInstance().textGlow];
|
||||
return _loc3_;
|
||||
}
|
||||
|
||||
public static function getMulTextField(param1:uint, param2:int, param3:int) : TextField
|
||||
{
|
||||
var _loc4_:TextField = new TextField();
|
||||
_loc4_.border = false;
|
||||
_loc4_.multiline = true;
|
||||
_loc4_.wordWrap = true;
|
||||
_loc4_.textColor = param1;
|
||||
_loc4_.width = param2;
|
||||
_loc4_.height = param3;
|
||||
var _loc5_:TextFormat = new TextFormat();
|
||||
_loc5_.font = "SimSun";
|
||||
_loc4_.defaultTextFormat = _loc5_;
|
||||
return _loc4_;
|
||||
}
|
||||
|
||||
public static function drawLine(param1:int, param2:int, param3:int, param4:int, param5:uint) : Shape
|
||||
{
|
||||
var _loc6_:Shape = new Shape();
|
||||
_loc6_.graphics.moveTo(param1,param2);
|
||||
_loc6_.graphics.lineStyle(1,param5,1,true,"");
|
||||
_loc6_.graphics.lineTo(param3,param4);
|
||||
return _loc6_;
|
||||
}
|
||||
|
||||
public static function drawLine1(param1:int, param2:int, param3:int, param4:int, param5:uint) : Shape
|
||||
{
|
||||
var _loc6_:Shape = new Shape();
|
||||
_loc6_.graphics.moveTo(param1,param2);
|
||||
_loc6_.graphics.lineStyle(2,param5,1,true,"");
|
||||
_loc6_.graphics.lineTo(param3,param4);
|
||||
return _loc6_;
|
||||
}
|
||||
|
||||
public static function getTrLine1(param1:int, param2:uint = 3047552) : Sprite
|
||||
{
|
||||
var _loc3_:Shape = drawLine1(0,0,param1,0,param2);
|
||||
var _loc4_:Sprite = new Sprite();
|
||||
_loc4_.addChild(_loc3_);
|
||||
return _loc4_;
|
||||
}
|
||||
|
||||
public static function getTdLine1(param1:int, param2:uint = 3047552) : Sprite
|
||||
{
|
||||
var _loc3_:Shape = drawLine1(0,0,0,param1,param2);
|
||||
var _loc4_:Sprite = new Sprite();
|
||||
_loc4_.addChild(_loc3_);
|
||||
return _loc4_;
|
||||
}
|
||||
|
||||
public static function Random(param1:int) : int
|
||||
{
|
||||
return int(Math.random() * param1);
|
||||
}
|
||||
|
||||
public static function getRadomPosi(param1:int, param2:int) : uint
|
||||
{
|
||||
return uint(Random(param2 - param1) + param1);
|
||||
}
|
||||
|
||||
public static function getTextFormat(param1:uint, param2:int = 12, param3:Boolean = false, param4:String = "center") : TextFormat
|
||||
{
|
||||
var _loc5_:TextFormat = new TextFormat();
|
||||
_loc5_.color = param1;
|
||||
_loc5_.size = param2;
|
||||
_loc5_.bold = param3;
|
||||
_loc5_.align = param4;
|
||||
_loc5_.font = "SimSun";
|
||||
return _loc5_;
|
||||
}
|
||||
|
||||
public static function getCenterTextFormat() : TextFormat
|
||||
{
|
||||
var _loc1_:TextFormat = new TextFormat();
|
||||
_loc1_.align = "center";
|
||||
_loc1_.font = "SimSun";
|
||||
return _loc1_;
|
||||
}
|
||||
|
||||
public static function getRightTextFormat() : TextFormat
|
||||
{
|
||||
var _loc1_:TextFormat = new TextFormat();
|
||||
_loc1_.align = "right";
|
||||
_loc1_.font = "SimSun";
|
||||
return _loc1_;
|
||||
}
|
||||
|
||||
public static function getResNumMc(param1:int) : Sprite
|
||||
{
|
||||
var _loc7_:Bitmap = null;
|
||||
var _loc2_:InstallFace = InstallFace.getInstance();
|
||||
var _loc3_:Sprite = new Sprite();
|
||||
var _loc4_:String = param1.toString();
|
||||
var _loc5_:int = _loc4_.length;
|
||||
var _loc6_:int = 0;
|
||||
while(_loc6_ < _loc5_)
|
||||
{
|
||||
_loc7_ = new Bitmap(_loc2_.getPng("lib_num_" + _loc4_.substring(_loc6_,_loc6_ + 1)));
|
||||
_loc3_.addChild(_loc7_);
|
||||
_loc7_.x = _loc6_ * 22;
|
||||
_loc6_++;
|
||||
}
|
||||
return _loc3_;
|
||||
}
|
||||
|
||||
public static function getTimeStr(param1:int) : String
|
||||
{
|
||||
var _loc2_:String = "";
|
||||
if(param1 == 0)
|
||||
{
|
||||
return "0";
|
||||
}
|
||||
var _loc3_:int = param1 / 3600;
|
||||
var _loc4_:int = (param1 - 3600 * _loc3_) / 60;
|
||||
var _loc5_:int = param1 - 3600 * _loc3_ - _loc4_ * 60;
|
||||
if(_loc3_ > 0)
|
||||
{
|
||||
_loc2_ = _loc3_ + "小时";
|
||||
}
|
||||
if(_loc4_ > 0)
|
||||
{
|
||||
_loc2_ = _loc2_ + getStr(_loc4_) + "分";
|
||||
}
|
||||
if(_loc5_ > 0)
|
||||
{
|
||||
_loc2_ = _loc2_ + getStr(_loc5_) + "秒";
|
||||
}
|
||||
return _loc2_;
|
||||
}
|
||||
|
||||
public static function getTimeStr1(param1:int) : String
|
||||
{
|
||||
var _loc2_:String = null;
|
||||
var _loc3_:int = param1 / 3600;
|
||||
var _loc4_:int = (param1 - 3600 * _loc3_) / 60;
|
||||
var _loc5_:int = param1 - 3600 * _loc3_ - _loc4_ * 60;
|
||||
_loc2_ = _loc3_ + "时";
|
||||
_loc2_ = _loc2_ + _loc4_ + "分";
|
||||
return _loc2_ + _loc5_ + "秒";
|
||||
}
|
||||
|
||||
public static function getStr(param1:int) : String
|
||||
{
|
||||
var _loc2_:String = param1.toString();
|
||||
if(param1 < 10)
|
||||
{
|
||||
_loc2_ = "0" + _loc2_;
|
||||
}
|
||||
return _loc2_;
|
||||
}
|
||||
|
||||
public static function getStr2(param1:int) : String
|
||||
{
|
||||
if(param1 > 10000)
|
||||
{
|
||||
return int(param1 / 10000) + "万";
|
||||
}
|
||||
return param1.toString();
|
||||
}
|
||||
|
||||
public static function getRes(param1:int) : String
|
||||
{
|
||||
if(param1 > 10000)
|
||||
{
|
||||
return int(param1 / 10000) + "万";
|
||||
}
|
||||
return param1.toString();
|
||||
}
|
||||
|
||||
public static function getTime(param1:int) : String
|
||||
{
|
||||
var _loc2_:String = null;
|
||||
var _loc3_:int = param1 / 3600;
|
||||
var _loc4_:int = (param1 - 3600 * _loc3_) / 60;
|
||||
var _loc5_:int = param1 - 3600 * _loc3_ - _loc4_ * 60;
|
||||
return getStr(_loc3_) + ":" + getStr(_loc4_) + ":" + getStr(_loc5_);
|
||||
}
|
||||
|
||||
public static function getCoinStr(param1:int) : String
|
||||
{
|
||||
if(param1 < 100000)
|
||||
{
|
||||
return param1.toString();
|
||||
}
|
||||
return int(param1 / 10000).toString() + "万";
|
||||
}
|
||||
|
||||
public static function setBlack(param1:DisplayObject) : void
|
||||
{
|
||||
TweenMax.to(param1,0.1,{"colorMatrixFilter":{"saturation":0}});
|
||||
}
|
||||
|
||||
public static function setColor(param1:DisplayObject) : void
|
||||
{
|
||||
TweenMax.to(param1,0.1,{"colorMatrixFilter":{"saturation":1}});
|
||||
}
|
||||
|
||||
public static function getHeroName(param1:String) : String
|
||||
{
|
||||
var _loc2_:String = param1;
|
||||
var _loc3_:int = _loc2_.indexOf("</");
|
||||
if(_loc3_ <= 0)
|
||||
{
|
||||
return _loc2_;
|
||||
}
|
||||
_loc2_ = _loc2_.substring(0,_loc3_);
|
||||
return _loc2_.substring(_loc2_.indexOf(">") + 1);
|
||||
}
|
||||
|
||||
public static function getHeroColor(param1:String) : String
|
||||
{
|
||||
var _loc2_:String = param1;
|
||||
var _loc3_:int = _loc2_.indexOf("\'");
|
||||
if(_loc3_ <= 0)
|
||||
{
|
||||
return _loc2_;
|
||||
}
|
||||
_loc2_ = _loc2_.substring(_loc3_ + 1);
|
||||
return _loc2_.substring(0,_loc2_.indexOf("\'"));
|
||||
}
|
||||
|
||||
public static function trim(param1:String) : String
|
||||
{
|
||||
if(param1 == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return rtrim(ltrim(param1));
|
||||
}
|
||||
|
||||
public static function rtrim(param1:String) : String
|
||||
{
|
||||
if(param1 == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var _loc2_:* = /\s*$/;
|
||||
return param1.replace(_loc2_,"");
|
||||
}
|
||||
|
||||
public static function ltrim(param1:String) : String
|
||||
{
|
||||
if(param1 == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
var _loc2_:* = /^\s*/;
|
||||
return param1.replace(_loc2_,"");
|
||||
}
|
||||
|
||||
public static function getSysMess(param1:String, param2:Boolean) : String
|
||||
{
|
||||
return TextUtils.getInstance().addParagraphElement(param1,param2);
|
||||
}
|
||||
|
||||
public static function formatSecond(param1:uint) : String
|
||||
{
|
||||
var _loc2_:int = 0;
|
||||
var _loc3_:int = 0;
|
||||
var _loc4_:int = 0;
|
||||
var _loc5_:String = "";
|
||||
if(param1 < 60)
|
||||
{
|
||||
_loc5_ = String(param1 + "秒");
|
||||
}
|
||||
else if(param1 >= 60 && param1 < 60 * 60)
|
||||
{
|
||||
_loc5_ = String(int(param1 / 60) + "分") + param1 % 60 + "秒";
|
||||
if(param1 % 60 == 0)
|
||||
{
|
||||
_loc5_ = String(int(param1 / 60) + "分");
|
||||
}
|
||||
}
|
||||
else if(param1 >= 60 * 60)
|
||||
{
|
||||
_loc2_ = int(param1 / 3600);
|
||||
_loc3_ = int(param1 % 3600 / 60);
|
||||
_loc4_ = int(param1 % 3600 % 60);
|
||||
_loc5_ = _loc2_ + "小时" + _loc3_ + "分" + _loc4_ + "秒";
|
||||
}
|
||||
return _loc5_;
|
||||
}
|
||||
|
||||
public static function applyDefault(param1:DisplayObject) : void
|
||||
{
|
||||
applyFilter(param1,null);
|
||||
}
|
||||
|
||||
private static function applyFilter(param1:DisplayObject, param2:Array) : void
|
||||
{
|
||||
var _loc3_:* = new ColorMatrixFilter(param2);
|
||||
var _loc4_:* = new Array();
|
||||
_loc4_.push(_loc3_);
|
||||
param1.filters = _loc4_;
|
||||
}
|
||||
|
||||
public static function applyHighlight(param1:DisplayObject) : void
|
||||
{
|
||||
var _loc2_:* = new Array();
|
||||
_loc2_ = _loc2_.concat([1.5,0,0,0,0]);
|
||||
_loc2_ = _loc2_.concat([0,1.5,0,0,0]);
|
||||
_loc2_ = _loc2_.concat([0,0,1.5,0,0]);
|
||||
_loc2_ = _loc2_.concat([0,0,0,1,0]);
|
||||
applyFilter(param1,_loc2_);
|
||||
}
|
||||
|
||||
public static function removeAll(param1:DisplayObjectContainer) : void
|
||||
{
|
||||
var _loc2_:* = undefined;
|
||||
var _loc3_:* = param1;
|
||||
while(_loc3_.numChildren > 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
if(_loc3_.getChildAt(0).name.indexOf("instance") < 0)
|
||||
{
|
||||
_loc3_[_loc3_.getChildAt(0).name] = null;
|
||||
}
|
||||
}
|
||||
catch(e:*)
|
||||
{
|
||||
}
|
||||
_loc2_ = _loc3_.getChildAt(0);
|
||||
_loc3_.removeChildAt(0);
|
||||
}
|
||||
}
|
||||
|
||||
public static function getGlobalXY(param1:Number, param2:Number) : Object
|
||||
{
|
||||
var _loc3_:* = 0;
|
||||
var _loc4_:* = 0;
|
||||
var _loc5_:* = 0;
|
||||
var _loc6_:* = 0;
|
||||
var _loc7_:int = 0;
|
||||
var _loc8_:int = 0;
|
||||
var _loc9_:* = MapVars.CELL_WIDTH;
|
||||
var _loc10_:* = MapVars.CELL_HEIGHT;
|
||||
var _loc11_:* = MapVars.CELL_LONG;
|
||||
var _loc12_:* = 0;
|
||||
var _loc13_:* = 0;
|
||||
var _loc14_:* = param2 - 1 / 2 * param1;
|
||||
var _loc15_:* = param2 + 1 / 2 * param1;
|
||||
var _loc16_:* = -(param2 - 1 / 2 * param1);
|
||||
var _loc17_:* = -1 / 2 * _loc16_;
|
||||
var _loc18_:* = ExtMath.distance(0,0,_loc16_,_loc17_);
|
||||
var _loc19_:* = ExtMath.distance(_loc16_,_loc17_,param1,param2);
|
||||
if(ExtMath.distance(_loc16_,_loc17_,param1,param2) < _loc11_ / 2)
|
||||
{
|
||||
_loc19_ = _loc11_ / 2;
|
||||
}
|
||||
if(_loc18_ < _loc11_ / 2)
|
||||
{
|
||||
_loc18_ = _loc11_ / 2;
|
||||
}
|
||||
_loc5_ = Math.ceil((_loc19_ - _loc11_ / 2) / _loc11_);
|
||||
_loc6_ = Math.ceil((_loc18_ - _loc11_ / 2) / _loc11_);
|
||||
if(_loc14_ < 0)
|
||||
{
|
||||
_loc6_ *= -1;
|
||||
}
|
||||
if(_loc15_ < 0)
|
||||
{
|
||||
_loc5_ *= -1;
|
||||
}
|
||||
_loc7_ = _loc5_;
|
||||
_loc8_ = _loc6_;
|
||||
var _loc20_:* = new Object();
|
||||
_loc20_.relX = _loc7_;
|
||||
_loc20_.relY = _loc8_;
|
||||
return _loc20_;
|
||||
}
|
||||
|
||||
public static function getAssetUrl(param1:int, param2:int, param3:int) : String
|
||||
{
|
||||
if(param2 > 5)
|
||||
{
|
||||
param2 = 5;
|
||||
}
|
||||
return ServerConfig.IMAGE_USERITEM + param1 + "_" + param2 + "_" + param3 + ".png";
|
||||
}
|
||||
|
||||
public static function getTrLine(param1:int, param2:uint = 1643790, param3:uint = 3749425) : Sprite
|
||||
{
|
||||
var _loc4_:Shape = PublicMethod.drawLine(0,0,param1,0,param2);
|
||||
var _loc5_:Shape = PublicMethod.drawLine(0,0,param1,0,param3);
|
||||
var _loc6_:Sprite = new Sprite();
|
||||
_loc6_.addChild(_loc4_);
|
||||
_loc6_.addChild(_loc5_);
|
||||
_loc5_.y = 1;
|
||||
return _loc6_;
|
||||
}
|
||||
|
||||
public static function getTdLine(param1:int, param2:uint = 1643790, param3:uint = 3749425) : Sprite
|
||||
{
|
||||
var _loc4_:Shape = PublicMethod.drawLine(0,0,0,param1,param2);
|
||||
var _loc5_:Shape = PublicMethod.drawLine(0,0,0,param1,param3);
|
||||
var _loc6_:Sprite = new Sprite();
|
||||
_loc6_.addChild(_loc4_);
|
||||
_loc6_.addChild(_loc5_);
|
||||
_loc5_.x = 1;
|
||||
return _loc6_;
|
||||
}
|
||||
|
||||
public static function getColorByType(param1:int) : String
|
||||
{
|
||||
switch(param1)
|
||||
{
|
||||
case 1:
|
||||
return "#FFFFFF";
|
||||
case 2:
|
||||
return "#66FF00";
|
||||
case 3:
|
||||
return "#00FFFF";
|
||||
case 4:
|
||||
return "#CC00FF";
|
||||
case 5:
|
||||
return "#FF9865";
|
||||
case 6:
|
||||
return "#CC0000";
|
||||
default:
|
||||
return "#FFFFFF";
|
||||
}
|
||||
}
|
||||
|
||||
public static function getStrByType(param1:int) : String
|
||||
{
|
||||
switch(param1)
|
||||
{
|
||||
case 1:
|
||||
return "长衫";
|
||||
case 2:
|
||||
return "古筝";
|
||||
case 3:
|
||||
return "长笛";
|
||||
case 4:
|
||||
return "妆镜";
|
||||
case 5:
|
||||
return "发梳";
|
||||
case 6:
|
||||
return "茶具";
|
||||
default:
|
||||
return "#FFFFFF";
|
||||
}
|
||||
}
|
||||
|
||||
public static function getHomePro(param1:int, param2:int) : int
|
||||
{
|
||||
var _loc3_:int = 10000;
|
||||
var _loc4_:int = 0;
|
||||
switch(param1)
|
||||
{
|
||||
case 1:
|
||||
_loc4_ = param2 * _loc3_;
|
||||
break;
|
||||
case 2:
|
||||
_loc4_ = _loc3_ * 100 + param2 * _loc3_ * 11 / 10;
|
||||
break;
|
||||
case 3:
|
||||
_loc4_ = _loc3_ * 210 + param2 * _loc3_ * 12 / 10;
|
||||
break;
|
||||
case 4:
|
||||
_loc4_ = _loc3_ * 330 + param2 * _loc3_ * 13 / 10;
|
||||
break;
|
||||
case 5:
|
||||
_loc4_ = _loc3_ * 460 + param2 * _loc3_ * 14 / 10;
|
||||
break;
|
||||
case 6:
|
||||
_loc4_ = _loc3_ * 600 + param2 * _loc3_ * 15 / 10;
|
||||
}
|
||||
return _loc4_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
174
flash_decompiled/com/common/Scale9Grid.as
Normal file
174
flash_decompiled/com/common/Scale9Grid.as
Normal file
@@ -0,0 +1,174 @@
|
||||
package com.common
|
||||
{
|
||||
import flash.display.Bitmap;
|
||||
import flash.display.BitmapData;
|
||||
import flash.display.DisplayObject;
|
||||
import flash.display.Sprite;
|
||||
import flash.geom.Point;
|
||||
import flash.geom.Rectangle;
|
||||
|
||||
public class Scale9Grid extends Sprite
|
||||
{
|
||||
|
||||
private var _bgMc:Sprite;
|
||||
|
||||
private var _mcRect:Rectangle;
|
||||
|
||||
private var _bgBitmap:Bitmap;
|
||||
|
||||
private var _graphics:BitmapData;
|
||||
|
||||
private var _slicingGrapincs:Array;
|
||||
|
||||
private var _width:Number;
|
||||
|
||||
private var _height:Number;
|
||||
|
||||
private var _cornerWidth:Number;
|
||||
|
||||
private var _cornerHeight:Number;
|
||||
|
||||
private const UP_LEFT:uint = 0;
|
||||
|
||||
private const UP:uint = 1;
|
||||
|
||||
private const UP_RIGHT:uint = 2;
|
||||
|
||||
private const LEFT:uint = 3;
|
||||
|
||||
private const CENTER:uint = 4;
|
||||
|
||||
private const RIGHT:uint = 5;
|
||||
|
||||
private const DOWN_LEFT:uint = 6;
|
||||
|
||||
private const DOWN:uint = 7;
|
||||
|
||||
private const DOWN_RIGHT:uint = 8;
|
||||
|
||||
public function Scale9Grid(param1:Sprite, param2:Number, param3:Number)
|
||||
{
|
||||
super();
|
||||
this._bgMc = param1;
|
||||
this._mcRect = param1.scale9Grid;
|
||||
this._bgBitmap = this.drawBitmap(param1);
|
||||
this._graphics = this._bgBitmap.bitmapData;
|
||||
this._height = param3;
|
||||
this._width = param2;
|
||||
this._cornerWidth = this._mcRect.x;
|
||||
this._cornerHeight = this._mcRect.y;
|
||||
this._slicingGrapincs = new Array();
|
||||
this.splicegraphic();
|
||||
this.setSize(this._width,this._height);
|
||||
}
|
||||
|
||||
private function splicegraphic() : void
|
||||
{
|
||||
var _loc1_:BitmapData = null;
|
||||
var _loc2_:Rectangle = null;
|
||||
var _loc4_:Number = NaN;
|
||||
var _loc5_:Number = NaN;
|
||||
var _loc3_:Point = new Point();
|
||||
_loc2_ = new Rectangle(0,0,this._cornerWidth,this._cornerHeight);
|
||||
_loc1_ = new BitmapData(this._cornerWidth,this._cornerHeight);
|
||||
_loc1_.copyPixels(this._graphics,_loc2_,_loc3_);
|
||||
this._slicingGrapincs.push(new Bitmap(_loc1_));
|
||||
_loc2_ = new Rectangle(this._cornerWidth,0,this._mcRect.width,this._cornerHeight);
|
||||
_loc1_ = new BitmapData(this._mcRect.width,this._cornerHeight);
|
||||
_loc1_.copyPixels(this._graphics,_loc2_,_loc3_);
|
||||
this._slicingGrapincs.push(new Bitmap(_loc1_));
|
||||
_loc2_ = new Rectangle(this._cornerWidth + this._mcRect.width,0,this._bgMc.width - this._cornerWidth - this._mcRect.width,this._cornerHeight);
|
||||
_loc1_ = new BitmapData(this._bgMc.width - this._cornerWidth - this._mcRect.width,this._cornerHeight);
|
||||
_loc1_.copyPixels(this._graphics,_loc2_,_loc3_);
|
||||
this._slicingGrapincs.push(new Bitmap(_loc1_));
|
||||
_loc2_ = new Rectangle(0,this._cornerHeight,this._cornerWidth,this._mcRect.height);
|
||||
_loc1_ = new BitmapData(this._cornerWidth,this._mcRect.height);
|
||||
_loc1_.copyPixels(this._graphics,_loc2_,_loc3_);
|
||||
this._slicingGrapincs.push(new Bitmap(_loc1_));
|
||||
_loc2_ = new Rectangle(this._cornerWidth,this._cornerHeight,this._mcRect.width,this._mcRect.height);
|
||||
_loc1_ = new BitmapData(this._mcRect.width,this._mcRect.height);
|
||||
_loc1_.copyPixels(this._graphics,_loc2_,_loc3_);
|
||||
this._slicingGrapincs.push(new Bitmap(_loc1_));
|
||||
_loc2_ = new Rectangle(this._cornerWidth + this._mcRect.width,this._cornerHeight,this._bgMc.width - this._cornerWidth - this._mcRect.width,this._mcRect.height);
|
||||
_loc1_ = new BitmapData(this._bgMc.width - this._cornerWidth - this._mcRect.width,this._mcRect.height);
|
||||
_loc1_.copyPixels(this._graphics,_loc2_,_loc3_);
|
||||
this._slicingGrapincs.push(new Bitmap(_loc1_));
|
||||
_loc2_ = new Rectangle(0,this._cornerHeight + this._mcRect.height,this._cornerWidth,this._bgMc.height - this._cornerHeight - this._mcRect.height);
|
||||
_loc1_ = new BitmapData(this._cornerWidth,this._bgMc.height - this._cornerHeight - this._mcRect.height);
|
||||
_loc1_.copyPixels(this._graphics,_loc2_,_loc3_);
|
||||
this._slicingGrapincs.push(new Bitmap(_loc1_));
|
||||
_loc2_ = new Rectangle(this._cornerWidth,this._cornerHeight + this._mcRect.height,this._mcRect.width,this._bgMc.height - this._cornerHeight - this._mcRect.height);
|
||||
_loc1_ = new BitmapData(this._mcRect.width,this._bgMc.height - this._cornerHeight - this._mcRect.height);
|
||||
_loc1_.copyPixels(this._graphics,_loc2_,_loc3_);
|
||||
this._slicingGrapincs.push(new Bitmap(_loc1_));
|
||||
_loc2_ = new Rectangle(this._cornerWidth + this._mcRect.width,this._cornerHeight + this._mcRect.height,this._bgMc.width - this._cornerWidth - this._mcRect.width,this._bgMc.height - this._cornerHeight - this._mcRect.height);
|
||||
_loc1_ = new BitmapData(this._bgMc.width - this._cornerWidth - this._mcRect.width,this._bgMc.height - this._cornerHeight - this._mcRect.height);
|
||||
_loc1_.copyPixels(this._graphics,_loc2_,_loc3_);
|
||||
this._slicingGrapincs.push(new Bitmap(_loc1_));
|
||||
var _loc6_:int = 0;
|
||||
while(_loc6_ < this._slicingGrapincs.length)
|
||||
{
|
||||
addChild(this._slicingGrapincs[_loc6_]);
|
||||
_loc6_++;
|
||||
}
|
||||
}
|
||||
|
||||
public function setSize(param1:Number, param2:Number) : void
|
||||
{
|
||||
var _loc3_:Bitmap = null;
|
||||
_loc3_ = this.getSlice(this.UP_LEFT);
|
||||
_loc3_.x = 0;
|
||||
_loc3_.y = 0;
|
||||
_loc3_ = this.getSlice(this.UP);
|
||||
_loc3_.x = this._cornerWidth;
|
||||
_loc3_.y = 0;
|
||||
_loc3_.width = param1;
|
||||
_loc3_ = this.getSlice(this.UP_RIGHT);
|
||||
_loc3_.x = this._cornerWidth + param1;
|
||||
_loc3_.y = 0;
|
||||
_loc3_ = this.getSlice(this.LEFT);
|
||||
_loc3_.x = 0;
|
||||
_loc3_.y = this._cornerHeight;
|
||||
_loc3_.height = param2;
|
||||
_loc3_ = this.getSlice(this.CENTER);
|
||||
_loc3_.x = this._cornerWidth;
|
||||
_loc3_.y = this._cornerHeight;
|
||||
_loc3_.width = param1;
|
||||
_loc3_.height = param2;
|
||||
_loc3_ = this.getSlice(this.RIGHT);
|
||||
_loc3_.x = this._cornerWidth + param1;
|
||||
_loc3_.y = this._cornerHeight;
|
||||
_loc3_.height = param2;
|
||||
_loc3_ = this.getSlice(this.DOWN_LEFT);
|
||||
_loc3_.x = 0;
|
||||
_loc3_.y = param2 + this._cornerHeight;
|
||||
_loc3_ = this.getSlice(this.DOWN);
|
||||
_loc3_.x = this._cornerWidth;
|
||||
_loc3_.y = param2 + this._cornerHeight;
|
||||
_loc3_.width = param1;
|
||||
_loc3_ = this.getSlice(this.DOWN_RIGHT);
|
||||
_loc3_.x = param1 + this._cornerWidth;
|
||||
_loc3_.y = param2 + this._cornerHeight;
|
||||
}
|
||||
|
||||
private function getSlice(param1:uint) : Bitmap
|
||||
{
|
||||
return this._slicingGrapincs[param1];
|
||||
}
|
||||
|
||||
private function drawScale9Grid() : void
|
||||
{
|
||||
addChild(this._bgMc);
|
||||
this._bgMc.width = this._width;
|
||||
this._bgMc.height = this._height;
|
||||
}
|
||||
|
||||
private function drawBitmap(param1:DisplayObject) : Bitmap
|
||||
{
|
||||
var _loc2_:BitmapData = new BitmapData(param1.width,param1.height,true,16777215);
|
||||
_loc2_.draw(param1);
|
||||
return new Bitmap(_loc2_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
414
flash_decompiled/com/control/ConnectService.as
Normal file
414
flash_decompiled/com/control/ConnectService.as
Normal file
@@ -0,0 +1,414 @@
|
||||
package com.control
|
||||
{
|
||||
import com.control.activity.ActivityService;
|
||||
import com.control.assistant.AssistantService;
|
||||
import com.control.battle.BattleService;
|
||||
import com.control.castle.CastleService;
|
||||
import com.control.chat.ChatService;
|
||||
import com.control.combat.CombatService;
|
||||
import com.control.farm.UserFarmService;
|
||||
import com.control.fish.FishService;
|
||||
import com.control.friend.FriendService;
|
||||
import com.control.guild.GuildService;
|
||||
import com.control.guild.GuildTransService;
|
||||
import com.control.help.HelpService;
|
||||
import com.control.hero.HeroService;
|
||||
import com.control.home.HomeService;
|
||||
import com.control.iron.IronService;
|
||||
import com.control.item.ItemsService;
|
||||
import com.control.login.LoginService;
|
||||
import com.control.map.MapService;
|
||||
import com.control.message.MessageService;
|
||||
import com.control.mission.MissionService;
|
||||
import com.control.pack.PackService;
|
||||
import com.control.play.BabelService;
|
||||
import com.control.play.HexagramService;
|
||||
import com.control.play.LeagueService;
|
||||
import com.control.play.PlayService;
|
||||
import com.control.province.ProvinceService;
|
||||
import com.control.risk.RiskService;
|
||||
import com.control.shop.ShopService;
|
||||
import com.control.tech.TechService;
|
||||
import com.control.tower.SingleBabelService;
|
||||
import com.control.user.UserService;
|
||||
import flash.display.Sprite;
|
||||
|
||||
public class ConnectService extends Sprite
|
||||
{
|
||||
|
||||
private static var instance:ConnectService;
|
||||
|
||||
private var _loginService:LoginService;
|
||||
|
||||
private var _castleService:CastleService;
|
||||
|
||||
private var _farmService:UserFarmService;
|
||||
|
||||
private var _heroService:HeroService;
|
||||
|
||||
private var _techService:TechService;
|
||||
|
||||
private var _itemsService:ItemsService;
|
||||
|
||||
private var _shopService:ShopService;
|
||||
|
||||
private var _packService:PackService;
|
||||
|
||||
private var _ironService:IronService;
|
||||
|
||||
private var _userService:UserService;
|
||||
|
||||
private var _battleService:BattleService;
|
||||
|
||||
private var _mapService:MapService;
|
||||
|
||||
private var _playService:PlayService;
|
||||
|
||||
private var _chatService:ChatService;
|
||||
|
||||
private var _guildService:GuildService;
|
||||
|
||||
private var _guildTransService:GuildTransService;
|
||||
|
||||
private var _babelService:BabelService;
|
||||
|
||||
private var _leagueService:LeagueService;
|
||||
|
||||
private var _hexagramService:HexagramService;
|
||||
|
||||
private var _combatService:CombatService;
|
||||
|
||||
private var _friendService:FriendService;
|
||||
|
||||
private var _messageService:MessageService;
|
||||
|
||||
private var _provinceService:ProvinceService;
|
||||
|
||||
private var _missionService:MissionService;
|
||||
|
||||
private var _assistantService:AssistantService;
|
||||
|
||||
private var _fishService:FishService;
|
||||
|
||||
private var _helpService:HelpService;
|
||||
|
||||
private var _activityService:ActivityService;
|
||||
|
||||
private var _riskService:RiskService;
|
||||
|
||||
private var _homeService:HomeService;
|
||||
|
||||
private var _singleBabelService:SingleBabelService;
|
||||
|
||||
public function ConnectService()
|
||||
{
|
||||
super();
|
||||
this._loginService = new LoginService();
|
||||
this._castleService = new CastleService();
|
||||
this._farmService = new UserFarmService();
|
||||
this._heroService = new HeroService();
|
||||
this._techService = new TechService();
|
||||
this._itemsService = new ItemsService();
|
||||
this._shopService = new ShopService();
|
||||
this._packService = new PackService();
|
||||
this._ironService = new IronService();
|
||||
this._userService = new UserService();
|
||||
this._battleService = new BattleService();
|
||||
this._mapService = new MapService();
|
||||
this._playService = new PlayService();
|
||||
this._chatService = new ChatService();
|
||||
this._guildService = new GuildService();
|
||||
this._guildTransService = new GuildTransService();
|
||||
this._babelService = new BabelService();
|
||||
this._leagueService = new LeagueService();
|
||||
this._hexagramService = new HexagramService();
|
||||
this._combatService = new CombatService();
|
||||
this._friendService = new FriendService();
|
||||
this._messageService = new MessageService();
|
||||
this._provinceService = new ProvinceService();
|
||||
this._missionService = new MissionService();
|
||||
this._assistantService = new AssistantService();
|
||||
this._fishService = new FishService();
|
||||
this._helpService = new HelpService();
|
||||
this._activityService = new ActivityService();
|
||||
this._riskService = new RiskService();
|
||||
this._homeService = new HomeService();
|
||||
this._singleBabelService = new SingleBabelService();
|
||||
}
|
||||
|
||||
public static function getInstance() : ConnectService
|
||||
{
|
||||
if(instance == null)
|
||||
{
|
||||
return instance = new ConnectService();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public function get loginService() : LoginService
|
||||
{
|
||||
return this._loginService;
|
||||
}
|
||||
|
||||
public function get castleService() : CastleService
|
||||
{
|
||||
return this._castleService;
|
||||
}
|
||||
|
||||
public function get farmService() : UserFarmService
|
||||
{
|
||||
return this._farmService;
|
||||
}
|
||||
|
||||
public function get heroService() : HeroService
|
||||
{
|
||||
return this._heroService;
|
||||
}
|
||||
|
||||
public function get techService() : TechService
|
||||
{
|
||||
return this._techService;
|
||||
}
|
||||
|
||||
public function set techService(param1:TechService) : void
|
||||
{
|
||||
this._techService = param1;
|
||||
}
|
||||
|
||||
public function get itemsService() : ItemsService
|
||||
{
|
||||
return this._itemsService;
|
||||
}
|
||||
|
||||
public function set itemsService(param1:ItemsService) : void
|
||||
{
|
||||
this._itemsService = param1;
|
||||
}
|
||||
|
||||
public function get shopService() : ShopService
|
||||
{
|
||||
return this._shopService;
|
||||
}
|
||||
|
||||
public function set shopService(param1:ShopService) : void
|
||||
{
|
||||
this._shopService = param1;
|
||||
}
|
||||
|
||||
public function get packService() : PackService
|
||||
{
|
||||
return this._packService;
|
||||
}
|
||||
|
||||
public function set packService(param1:PackService) : void
|
||||
{
|
||||
this._packService = param1;
|
||||
}
|
||||
|
||||
public function get ironService() : IronService
|
||||
{
|
||||
return this._ironService;
|
||||
}
|
||||
|
||||
public function set ironService(param1:IronService) : void
|
||||
{
|
||||
this._ironService = param1;
|
||||
}
|
||||
|
||||
public function get userService() : UserService
|
||||
{
|
||||
return this._userService;
|
||||
}
|
||||
|
||||
public function set userService(param1:UserService) : void
|
||||
{
|
||||
this._userService = param1;
|
||||
}
|
||||
|
||||
public function get battleService() : BattleService
|
||||
{
|
||||
return this._battleService;
|
||||
}
|
||||
|
||||
public function set battleService(param1:BattleService) : void
|
||||
{
|
||||
this._battleService = param1;
|
||||
}
|
||||
|
||||
public function get mapService() : MapService
|
||||
{
|
||||
return this._mapService;
|
||||
}
|
||||
|
||||
public function set mapService(param1:MapService) : void
|
||||
{
|
||||
this._mapService = param1;
|
||||
}
|
||||
|
||||
public function get playService() : PlayService
|
||||
{
|
||||
return this._playService;
|
||||
}
|
||||
|
||||
public function set playService(param1:PlayService) : void
|
||||
{
|
||||
this._playService = param1;
|
||||
}
|
||||
|
||||
public function get chatService() : ChatService
|
||||
{
|
||||
return this._chatService;
|
||||
}
|
||||
|
||||
public function set chatService(param1:ChatService) : void
|
||||
{
|
||||
this._chatService = param1;
|
||||
}
|
||||
|
||||
public function get guildService() : GuildService
|
||||
{
|
||||
return this._guildService;
|
||||
}
|
||||
|
||||
public function set guildService(param1:GuildService) : void
|
||||
{
|
||||
this._guildService = param1;
|
||||
}
|
||||
|
||||
public function get guildTransService() : GuildTransService
|
||||
{
|
||||
return this._guildTransService;
|
||||
}
|
||||
|
||||
public function set guildTransService(param1:GuildTransService) : void
|
||||
{
|
||||
this._guildTransService = param1;
|
||||
}
|
||||
|
||||
public function get babelService() : BabelService
|
||||
{
|
||||
return this._babelService;
|
||||
}
|
||||
|
||||
public function set babelService(param1:BabelService) : void
|
||||
{
|
||||
this._babelService = param1;
|
||||
}
|
||||
|
||||
public function get leagueService() : LeagueService
|
||||
{
|
||||
return this._leagueService;
|
||||
}
|
||||
|
||||
public function set leagueService(param1:LeagueService) : void
|
||||
{
|
||||
this._leagueService = param1;
|
||||
}
|
||||
|
||||
public function get hexagramService() : HexagramService
|
||||
{
|
||||
return this._hexagramService;
|
||||
}
|
||||
|
||||
public function set hexagramService(param1:HexagramService) : void
|
||||
{
|
||||
this._hexagramService = param1;
|
||||
}
|
||||
|
||||
public function get combatService() : CombatService
|
||||
{
|
||||
return this._combatService;
|
||||
}
|
||||
|
||||
public function set combatService(param1:CombatService) : void
|
||||
{
|
||||
this._combatService = param1;
|
||||
}
|
||||
|
||||
public function get friendService() : FriendService
|
||||
{
|
||||
return this._friendService;
|
||||
}
|
||||
|
||||
public function set friendService(param1:FriendService) : void
|
||||
{
|
||||
this._friendService = param1;
|
||||
}
|
||||
|
||||
public function get messageService() : MessageService
|
||||
{
|
||||
return this._messageService;
|
||||
}
|
||||
|
||||
public function set messageService(param1:MessageService) : void
|
||||
{
|
||||
this._messageService = param1;
|
||||
}
|
||||
|
||||
public function get provinceService() : ProvinceService
|
||||
{
|
||||
return this._provinceService;
|
||||
}
|
||||
|
||||
public function set provinceService(param1:ProvinceService) : void
|
||||
{
|
||||
this._provinceService = param1;
|
||||
}
|
||||
|
||||
public function get missionService() : MissionService
|
||||
{
|
||||
return this._missionService;
|
||||
}
|
||||
|
||||
public function set missionService(param1:MissionService) : void
|
||||
{
|
||||
this._missionService = param1;
|
||||
}
|
||||
|
||||
public function get assistantService() : AssistantService
|
||||
{
|
||||
return this._assistantService;
|
||||
}
|
||||
|
||||
public function set assistantService(param1:AssistantService) : void
|
||||
{
|
||||
this._assistantService = param1;
|
||||
}
|
||||
|
||||
public function get fishService() : FishService
|
||||
{
|
||||
return this._fishService;
|
||||
}
|
||||
|
||||
public function set fishService(param1:FishService) : void
|
||||
{
|
||||
this._fishService = param1;
|
||||
}
|
||||
|
||||
public function get helpService() : HelpService
|
||||
{
|
||||
return this._helpService;
|
||||
}
|
||||
|
||||
public function get activityService() : ActivityService
|
||||
{
|
||||
return this._activityService;
|
||||
}
|
||||
|
||||
public function get riskService() : RiskService
|
||||
{
|
||||
return this._riskService;
|
||||
}
|
||||
|
||||
public function get homeService() : HomeService
|
||||
{
|
||||
return this._homeService;
|
||||
}
|
||||
|
||||
public function get singleBabelService() : SingleBabelService
|
||||
{
|
||||
return this._singleBabelService;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
831
flash_decompiled/com/control/activity/ActivityService.as
Normal file
831
flash_decompiled/com/control/activity/ActivityService.as
Normal file
@@ -0,0 +1,831 @@
|
||||
package com.control.activity
|
||||
{
|
||||
import com.control.ConnectService;
|
||||
import com.control.connect.Connect;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.control.play.event.PlayEvent;
|
||||
import com.data.GameData;
|
||||
import com.events.DevEvent;
|
||||
import com.newdata.activity.ActivityData;
|
||||
import com.newdata.hero.NewHeroData;
|
||||
import com.utils.Utils;
|
||||
import com.view.mc.sprite.LoadingMc;
|
||||
import com.view.ui.activity.gift.LevelAwardDate;
|
||||
import com.view.ui.help.data.GameInfoData;
|
||||
import com.view.ui.message.MessageBoxUI;
|
||||
import com.view.ui.pak.data.PakState;
|
||||
|
||||
public class ActivityService extends Connect
|
||||
{
|
||||
|
||||
public function ActivityService()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function getLevelConfig() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.ActivityAction.getLevelConfig";
|
||||
super.connect(_loc1_,this.getLevelConfigResult);
|
||||
}
|
||||
|
||||
private function getLevelConfigResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Array = _loc2_.returnList1;
|
||||
LevelAwardDate.setConfigData(_loc3_);
|
||||
Utils.g_events.dispatchEvent(new DevEvent(DevEvent.EVENT_LEVELCONFIG));
|
||||
}
|
||||
|
||||
public function getGiftByLevel(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.ActivityAction.getGiftByLevel";
|
||||
super.connect(_loc2_,this.getGiftByLevelResult,param1);
|
||||
}
|
||||
|
||||
private function getGiftByLevelResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Object = _loc2_.returnObj1;
|
||||
GameData.setUserHoliday(_loc3_);
|
||||
PakState.setGetPackListStatus();
|
||||
}
|
||||
|
||||
public function enterYabiao() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.YabiaoAction.enterMain";
|
||||
super.connect(_loc1_,this.enterYabiaoResult);
|
||||
}
|
||||
|
||||
private function enterYabiaoResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Object = _loc2_.returnObj1;
|
||||
ActivityData.setYabiaoData(_loc3_);
|
||||
}
|
||||
|
||||
public function saveYabiaoHeros(param1:Array) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.YabiaoAction.saveCopyHeros";
|
||||
super.connect(_loc2_,this.saveYabiaoHerosResult,param1);
|
||||
}
|
||||
|
||||
private function saveYabiaoHerosResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Array = _loc2_.returnList1;
|
||||
NewHeroData.setAllCopyHeroList(_loc3_);
|
||||
var _loc4_:Object = _loc2_.returnObj1;
|
||||
ActivityData.setYabiaoData(_loc4_);
|
||||
var _loc5_:PlayEvent = new PlayEvent(PlayEvent.COPYHERO_SAVE_OK);
|
||||
super.dispatchEvent(_loc5_);
|
||||
}
|
||||
|
||||
public function startYabiao() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.YabiaoAction.startYabiao";
|
||||
super.connect(_loc1_,this.startYabiaoResult);
|
||||
}
|
||||
|
||||
private function startYabiaoResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Object = _loc2_.returnObj1;
|
||||
ActivityData.setYabiaoData(_loc3_);
|
||||
MessageBoxUI.getInstance().addMessage("护镖成功!");
|
||||
this.getAllYabiaoList();
|
||||
}
|
||||
|
||||
public function getAllYabiaoList() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.YabiaoAction.getYabiaoList";
|
||||
super.connect(_loc1_,this.getAllYabiaoListResult);
|
||||
}
|
||||
|
||||
private function getAllYabiaoListResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Array = _loc2_.returnList1;
|
||||
var _loc4_:DevEvent = new DevEvent(DevEvent.EVENT_YABIAO_YABIAOLIST);
|
||||
_loc4_.arr = _loc3_;
|
||||
Utils.g_events.dispatchEvent(_loc4_);
|
||||
}
|
||||
|
||||
public function startCombat(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.YabiaoAction.startCombat";
|
||||
super.connect(_loc2_,this.startCombatResult,param1);
|
||||
}
|
||||
|
||||
private function startCombatResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Array = _loc2_.returnList1;
|
||||
var _loc4_:DevEvent = new DevEvent(DevEvent.EVENT_YABIAO_YABIAOLIST);
|
||||
_loc4_.arr = _loc3_;
|
||||
Utils.g_events.dispatchEvent(_loc4_);
|
||||
var _loc5_:Object = _loc2_.returnObj2;
|
||||
ActivityData.setYabiaoData(_loc5_);
|
||||
var _loc6_:PlayEvent = new PlayEvent(PlayEvent.HUIWU_COMBAT_RESULT);
|
||||
_loc6_.obj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc6_);
|
||||
}
|
||||
|
||||
public function getYabiaoItem() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.YabiaoAction.getYabiaoItem";
|
||||
super.connect(_loc1_,this.getYabiaoItemResult);
|
||||
}
|
||||
|
||||
private function getYabiaoItemResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:DevEvent = new DevEvent(DevEvent.EVENT_YABIAO_ITEM);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function enterPayMain() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.ActivityAction.enterPayMain";
|
||||
super.connect(_loc1_,this.enterPayMainResult);
|
||||
}
|
||||
|
||||
private function enterPayMainResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:DevEvent = new DevEvent(DevEvent.EVENT_CHONGZHI_MAIN);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getUserPayCount() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.ActivityAction.getUserPayCount";
|
||||
super.connect(_loc1_,this.getUserPayCountResult);
|
||||
}
|
||||
|
||||
private function getUserPayCountResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:DevEvent = new DevEvent(DevEvent.EVENT_CHONGZHI_PAYCOUNT);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getDailyPay(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.ActivityAction.getDailyPay";
|
||||
super.connect(_loc2_,this.getDailyPayResult,param1);
|
||||
}
|
||||
|
||||
private function getDailyPayResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:DevEvent = new DevEvent(DevEvent.EVENT_CHONGZHI_GETGIFT);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getDailyPayList() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.ActivityAction.getDailyPayList";
|
||||
super.connect(_loc1_,this.getDailyPayListResult);
|
||||
}
|
||||
|
||||
private function getDailyPayListResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:DevEvent = new DevEvent(DevEvent.EVENT_CHONGZHI_GETDAILYLIST);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getDailyOrderListGift() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.ActivityAction.getDailyOrderListGift";
|
||||
super.connect(_loc1_,this.getDailyOrderListGiftResult);
|
||||
}
|
||||
|
||||
private function getDailyOrderListGiftResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:DevEvent = new DevEvent(DevEvent.EVENT_CHONGZHI_GETDAILYLISTRESULT);
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getGameInfo() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.ActivityAction.getGameInfo";
|
||||
super.connect(_loc1_,this.getGameInfoResult);
|
||||
}
|
||||
|
||||
private function getGameInfoResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Array = _loc2_.returnList1;
|
||||
GameInfoData.setInfoList(_loc3_);
|
||||
}
|
||||
|
||||
public function enterWorldBoss() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.UserBossAction.enterMain";
|
||||
super.connect(_loc1_,this.enterWorldBossResult);
|
||||
}
|
||||
|
||||
private function enterWorldBossResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Object = _loc2_.returnObj1;
|
||||
ActivityData.setWorldBossData(_loc3_);
|
||||
}
|
||||
|
||||
public function saveWorldBossHeros(param1:Array) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.UserBossAction.saveCopyHeros";
|
||||
super.connect(_loc2_,this.saveWorldBossHerosResult,param1);
|
||||
}
|
||||
|
||||
private function saveWorldBossHerosResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Array = _loc2_.returnList1;
|
||||
NewHeroData.setAllCopyHeroList(_loc3_);
|
||||
var _loc4_:Object = _loc2_.returnObj1;
|
||||
ActivityData.setWorldBossData(_loc4_);
|
||||
var _loc5_:PlayEvent = new PlayEvent(PlayEvent.COPYHERO_SAVE_OK);
|
||||
super.dispatchEvent(_loc5_);
|
||||
}
|
||||
|
||||
public function startBossCombat() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.UserBossAction.startCombat";
|
||||
super.connect(_loc1_,this.startBossCombatResult);
|
||||
}
|
||||
|
||||
private function startBossCombatResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Object = _loc2_.returnObj1;
|
||||
ActivityData.setWorldBossData(_loc3_);
|
||||
var _loc4_:PlayEvent = new PlayEvent(PlayEvent.WORLDBOSS_COMBAT_RESULT);
|
||||
_loc4_.obj = _loc2_.returnObj2;
|
||||
super.dispatchEvent(_loc4_);
|
||||
}
|
||||
|
||||
public function getRankMap() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.play.action.UserBossAction.getRankMap";
|
||||
super.connect(_loc1_,this.getRankMapResult);
|
||||
}
|
||||
|
||||
private function getRankMapResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.WORLDBOSS_RANK_DATA);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getDailyGift() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.UserBossAction.getDailyGift";
|
||||
super.connect(_loc1_,this.getDailyGiftResult);
|
||||
}
|
||||
|
||||
private function getDailyGiftResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
ActivityData.hasGetDailyItem();
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.WORLDBOSS_GET_DAILYITEM);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getRankGift() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.UserBossAction.getRankGift";
|
||||
super.connect(_loc1_,this.getRankGiftResult);
|
||||
}
|
||||
|
||||
private function getRankGiftResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
ActivityData.hasGetRankItem();
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.WORLDBOSS_GET_RANKITEM);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getFinalGift() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.UserBossAction.getFinalGift";
|
||||
super.connect(_loc1_,this.getFinalGiftResult);
|
||||
}
|
||||
|
||||
private function getFinalGiftResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
ActivityData.hasGetFinalItem();
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.WORLDBOSS_GET_FINALITEM);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function guwu(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.UserBossAction.guwu";
|
||||
super.connect(_loc2_,this.guwuResult,param1);
|
||||
}
|
||||
|
||||
private function guwuResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:int = int(_loc2_.returnObj1);
|
||||
ActivityData.setFightLevel(_loc3_);
|
||||
var _loc4_:PlayEvent = new PlayEvent(PlayEvent.WORLDBOSS_GUWU);
|
||||
super.dispatchEvent(_loc4_);
|
||||
ConnectService.getInstance().castleService.getUserData();
|
||||
}
|
||||
|
||||
public function xunbao() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.UserBossAction.xunbao";
|
||||
super.connect(_loc1_,this.xunbaoResult);
|
||||
}
|
||||
|
||||
private function xunbaoResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
ActivityData.setXunbao();
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.WORLDBOSS_XUNBAO);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function clearTime() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.UserBossAction.clearColdTime";
|
||||
super.connect(_loc1_,this.clearTimeResult);
|
||||
}
|
||||
|
||||
private function clearTimeResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
MessageBoxUI.getInstance().addMessage("清除成功");
|
||||
}
|
||||
|
||||
public function getHolidayAward(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.ActivityAction.getHolidayAward";
|
||||
super.connect(_loc2_,this.getHolidayAwardResult,param1);
|
||||
}
|
||||
|
||||
private function getHolidayAwardResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Object = _loc2_.returnObj1;
|
||||
GameData.setUserHoliday(_loc3_);
|
||||
}
|
||||
|
||||
public function saveGamePlayer(param1:Array) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.game.action.GamePlayAction.saveCopyHeros";
|
||||
super.connect(_loc2_,this.saveCopyHerosResult,param1);
|
||||
}
|
||||
|
||||
private function saveCopyHerosResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.GAMEPLAY_SAVEHEROS);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getDailyCombatItem() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.GamePlayAction.getDailyCombatItem";
|
||||
super.connect(_loc1_,this.getDailyCombatItemResult);
|
||||
}
|
||||
|
||||
private function getDailyCombatItemResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.MATCH_getItemResult);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
MessageBoxUI.getInstance().addMessage("领取成功");
|
||||
}
|
||||
|
||||
public function getRankItem() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.GamePlayAction.getRankItem";
|
||||
super.connect(_loc1_,this.getRankItemResult);
|
||||
}
|
||||
|
||||
private function getRankItemResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.MATCH_getItemResult);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
MessageBoxUI.getInstance().addMessage("领取成功");
|
||||
}
|
||||
|
||||
public function enterCrossRankMain() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.GamePlayAction.enterMain";
|
||||
super.connect(_loc1_,this.enterCrossRankMainResult);
|
||||
}
|
||||
|
||||
private function enterCrossRankMainResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Object = _loc2_.returnObj1;
|
||||
var _loc4_:Array = _loc2_.returnMap1;
|
||||
var _loc5_:PlayEvent = new PlayEvent(PlayEvent.GAMEPLAY_TOPLIST);
|
||||
_loc5_.list = _loc4_;
|
||||
Utils.g_events.dispatchEvent(_loc5_);
|
||||
var _loc6_:PlayEvent = new PlayEvent(PlayEvent.GAMEPLAY_enterMain);
|
||||
_loc6_.obj = _loc3_;
|
||||
Utils.g_events.dispatchEvent(_loc6_);
|
||||
}
|
||||
|
||||
public function getMessList() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.GamePlayAction.getMessList";
|
||||
super.connect(_loc1_,this.getMessListResult);
|
||||
}
|
||||
|
||||
private function getMessListResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:Array = _loc2_.returnList1;
|
||||
var _loc4_:PlayEvent = new PlayEvent(PlayEvent.GAMEPLAY_MESSLIST);
|
||||
_loc4_.list = _loc3_;
|
||||
Utils.g_events.dispatchEvent(_loc4_);
|
||||
}
|
||||
|
||||
public function getGameRankReward() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.GamePlayAction.getGameRankReward";
|
||||
super.connect(_loc1_,this.getGameRankRewardResult);
|
||||
}
|
||||
|
||||
private function getGameRankRewardResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.GAMEPLAY_ITEMLIST);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function startGamePlayerBattle(param1:Array, param2:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc3_:String = "com.huzi.game.action.GamePlayAction.startBattle";
|
||||
super.connect(_loc3_,this.startBattleResult,param1,param2);
|
||||
}
|
||||
|
||||
private function startBattleResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.GAMEPLAY_StartCombat);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
var _loc4_:PlayEvent = new PlayEvent(PlayEvent.GAMEPLAY_enterMain);
|
||||
_loc4_.obj = _loc2_.returnObj2;
|
||||
Utils.g_events.dispatchEvent(_loc4_);
|
||||
}
|
||||
|
||||
public function saveMatch(param1:Array) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.game.action.MatchAction.saveCopyHeros";
|
||||
super.connect(_loc2_,this.saveMatchResult,param1);
|
||||
}
|
||||
|
||||
private function saveMatchResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.MATCH_enterMain);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
MessageBoxUI.getInstance().addMessage("报名成功");
|
||||
}
|
||||
|
||||
public function enterMain() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.MatchAction.enterMain";
|
||||
super.connect(_loc1_,this.enterMainResult);
|
||||
}
|
||||
|
||||
private function enterMainResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.MATCH_enterMain);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getMatchMap() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.MatchAction.getMatchMap";
|
||||
super.connect(_loc1_,this.getMatchMapResult);
|
||||
}
|
||||
|
||||
private function getMatchMapResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.MATCH_getMatchMap);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getMatchReward() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.MatchAction.getMatchReward";
|
||||
super.connect(_loc1_,this.getMatchRewardResult);
|
||||
}
|
||||
|
||||
private function getMatchRewardResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.MATCH_getMatchReward);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getUserMatch() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.MatchAction.getUserMatch";
|
||||
super.connect(_loc1_,this.getUserMatchResult);
|
||||
}
|
||||
|
||||
private function getUserMatchResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.MATCH_getUserMatchReward);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getMatchJoinReward() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.MatchAction.getMatchJoinReward";
|
||||
super.connect(_loc1_,this.getMatchJoinRewardResult);
|
||||
}
|
||||
|
||||
private function getMatchJoinRewardResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.MATCH_getUserMatchReward);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
MessageBoxUI.getInstance().addMessage(_loc2_.msg);
|
||||
}
|
||||
|
||||
public function getMatchRankReward() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.game.action.MatchAction.getMatchRankReward";
|
||||
super.connect(_loc1_,this.getMatchRankRewardResult);
|
||||
}
|
||||
|
||||
private function getMatchRankRewardResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:PlayEvent = new PlayEvent(PlayEvent.MATCH_getUserMatchReward);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
Utils.g_events.dispatchEvent(_loc3_);
|
||||
MessageBoxUI.getInstance().addMessage(_loc2_.msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
54
flash_decompiled/com/control/assistant/AssistantService.as
Normal file
54
flash_decompiled/com/control/assistant/AssistantService.as
Normal file
@@ -0,0 +1,54 @@
|
||||
package com.control.assistant
|
||||
{
|
||||
import com.control.assistant.event.AssisEvent;
|
||||
import com.control.connect.Connect;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.view.ui.pak.data.PakState;
|
||||
|
||||
public class AssistantService extends Connect
|
||||
{
|
||||
|
||||
public function AssistantService()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function getLoginFirstPageView() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.assistant.action.AssistantAction.getLoginFirstPageView";
|
||||
super.connect(_loc1_,this.getLoginFirstPageViewResult);
|
||||
}
|
||||
|
||||
private function getLoginFirstPageViewResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:AssisEvent = new AssisEvent(AssisEvent.A_getLoginFirstPageView);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function gainActivityGift(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.assistant.action.AssistantAction.gainActivityGift";
|
||||
super.connect(_loc2_,this.gainActivityGiftResult,param1);
|
||||
}
|
||||
|
||||
private function gainActivityGiftResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:AssisEvent = new AssisEvent(AssisEvent.A_gainActivityGift);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
PakState.setGetPackListStatus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
22
flash_decompiled/com/control/assistant/event/AssisEvent.as
Normal file
22
flash_decompiled/com/control/assistant/event/AssisEvent.as
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.control.assistant.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class AssisEvent extends Event
|
||||
{
|
||||
|
||||
public static const A_getLoginFirstPageView:String = "A_getLoginFirstPageView";
|
||||
|
||||
public static const A_gainActivityGift:String = "A_gainActivityGift";
|
||||
|
||||
public var obj:Object;
|
||||
|
||||
public var list:Array;
|
||||
|
||||
public function AssisEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
439
flash_decompiled/com/control/battle/BattleService.as
Normal file
439
flash_decompiled/com/control/battle/BattleService.as
Normal file
@@ -0,0 +1,439 @@
|
||||
package com.control.battle
|
||||
{
|
||||
import com.control.battle.event.BattleEvent;
|
||||
import com.control.connect.Connect;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.data.DataModoule;
|
||||
import com.events.DevEvent;
|
||||
import com.newdata.hero.NewHeroData;
|
||||
import com.utils.Utils;
|
||||
import com.view.mc.sprite.LoadingMc;
|
||||
|
||||
public class BattleService extends Connect
|
||||
{
|
||||
|
||||
public function BattleService()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function getSiegeDefView() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.develop.action.CastleBattleAction.getWallDefHero";
|
||||
super.connect(_loc1_,this.getSiegeDefViewResult);
|
||||
}
|
||||
|
||||
private function getSiegeDefViewResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.WALL_DEF_HEROLIST);
|
||||
_loc3_.wallHero = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function saveSiegeDef(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.develop.action.CastleBattleAction.saveSiegeDef";
|
||||
super.connect(_loc2_,this.saveSiegeDefResult,param1);
|
||||
}
|
||||
|
||||
private function saveSiegeDefResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.WALL_DEF_HEROLIST_SAVE);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getChangeArmyView() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.develop.action.CastleBattleAction.getChangeArmyView";
|
||||
super.connect(_loc1_,this.getChangeArmyViewResult);
|
||||
}
|
||||
|
||||
private function getChangeArmyViewResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.ARMY_SET_LIST);
|
||||
_loc3_.armyObj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function saveChangeArmy(param1:Array, param2:String = "") : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc3_:String = "com.huzi.develop.action.CastleBattleAction.saveChangeArmy";
|
||||
super.connect(_loc3_,this.saveChangeArmyResult,param1,param2);
|
||||
}
|
||||
|
||||
private function saveChangeArmyResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
NewHeroData.setGetHeroListStatus();
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.ARMY_SET_CHANGE);
|
||||
super.dispatchEvent(_loc3_);
|
||||
Utils.g_events.dispatchEvent(new DevEvent(DevEvent.CHANGEARMY,_loc2_.returnList1));
|
||||
}
|
||||
|
||||
public function saveBattleDex(param1:int, param2:int) : void
|
||||
{
|
||||
var _loc3_:String = "com.huzi.develop.action.CastleBattleAction.saveBattleDex";
|
||||
super.connect(_loc3_,this.saveBattleDexResult,param1,param2);
|
||||
}
|
||||
|
||||
private function saveBattleDexResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.SaveBattleDex);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function deleteBattleDex(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.develop.action.CastleBattleAction.deleteBattleDex";
|
||||
super.connect(_loc2_,this.deleteBattleDexResult,param1);
|
||||
}
|
||||
|
||||
private function deleteBattleDexResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.DeleteBattleDex);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getPveCastleList() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.develop.action.CastleBattleAction.listAllPveCastle";
|
||||
super.connect(_loc1_,this.getPveCastleListResult);
|
||||
}
|
||||
|
||||
private function getPveCastleListResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_getPveCastleList);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getBattleDexList() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.develop.action.CastleBattleAction.getBattleDexList";
|
||||
super.connect(_loc1_,this.getBattleDexListResult);
|
||||
}
|
||||
|
||||
private function getBattleDexListResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_getBattleDexList);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getChouRen() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.develop.action.CastleBattleAction.getChouRen";
|
||||
super.connect(_loc1_,this.getChouRenListResult);
|
||||
}
|
||||
|
||||
private function getChouRenListResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_getChouRen);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getChongToUser() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.develop.action.CastleBattleAction.getChongToUser";
|
||||
super.connect(_loc1_,this.getChongToUserListResult);
|
||||
}
|
||||
|
||||
private function getChongToUserListResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_getChongToUser);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getBattleFlagUser() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.develop.action.CastleBattleAction.getBattleFlagUser";
|
||||
super.connect(_loc1_,this.getBattleFlagUserResult);
|
||||
}
|
||||
|
||||
private function getBattleFlagUserResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_getBattleFlagUser);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getBattlePlan() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.develop.action.CastleBattleAction.getBattlePlan1";
|
||||
super.connect(_loc1_,this.getBattlePlanResult);
|
||||
}
|
||||
|
||||
private function getBattlePlanResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_getBattlePlanResult);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getPveDrop(param1:int, param2:int) : void
|
||||
{
|
||||
var _loc3_:String = "com.huzi.develop.action.CastleBattleAction.getPveDrop";
|
||||
super.connect(_loc3_,this.getPveDropResult,param1,param2);
|
||||
}
|
||||
|
||||
private function getPveDropResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:BattleEvent = new BattleEvent(BattleEvent.B_getPveDrop);
|
||||
_loc2_.armyObj = param1;
|
||||
super.dispatchEvent(_loc2_);
|
||||
}
|
||||
|
||||
public function remainPvpNum() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.combat.action.CombatAction.remainPvpNum";
|
||||
super.connect(_loc1_,this.remainPvpNumResult);
|
||||
}
|
||||
|
||||
private function remainPvpNumResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
DataModoule.getInstance().userMgr.remainPvpNum = int(_loc2_.returnObj1);
|
||||
Utils.g_events.dispatchEvent(new DevEvent(DevEvent.RemainPvpNum_UPDATE));
|
||||
}
|
||||
|
||||
public function armyOutBattle(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.combat.action.CombatAction.armyOutBattle";
|
||||
super.connect(_loc2_,this.armyOutBattleResult,param1);
|
||||
}
|
||||
|
||||
private function armyOutBattleResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_armyOutBattle);
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function listArmyOut() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.combat.action.CombatAction.listArmyOut";
|
||||
super.connect(_loc1_,this.listArmyOutResult);
|
||||
}
|
||||
|
||||
private function listArmyOutResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_listArmyOut);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getArmyOutList(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.combat.action.CombatAction.getArmyOutList";
|
||||
super.connect(_loc2_,this.getArmyOutListResult,param1);
|
||||
}
|
||||
|
||||
private function getArmyOutListResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_getArmyOutList);
|
||||
_loc3_.armyObj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function callBackOutArmy(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.combat.action.CombatAction.callBackOutArmy";
|
||||
super.connect(_loc2_,this.callBackOutArmyResult,param1);
|
||||
}
|
||||
|
||||
private function callBackOutArmyResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_callBackOutArmy);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function callBackLeagueDefArmy(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.combat.action.CombatAction.callBackLeagueDefArmy";
|
||||
super.connect(_loc2_,this.callBackLeagueDefArmyResult,param1);
|
||||
}
|
||||
|
||||
private function callBackLeagueDefArmyResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_callBackLeagueDefArmy);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getChangeArmyView4YS() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.develop.action.CastleBattleAction.getChangeArmyView4YS";
|
||||
super.connect(_loc1_,this.getChangeArmyView4YSResult);
|
||||
}
|
||||
|
||||
private function getChangeArmyView4YSResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_getChangeArmyView4YS);
|
||||
_loc3_.armyObj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function saveYsChangeArmy(param1:Object) : *
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.develop.action.CastleBattleAction.saveYsChangeArmy";
|
||||
super.connect(_loc2_,this.saveYsChangeArmyResult,param1);
|
||||
}
|
||||
|
||||
private function saveYsChangeArmyResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_saveYsChangeArmy);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getGuildMilitaryMessage() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.combat.action.CombatAction.getGuildMilitaryMessage";
|
||||
super.connect(_loc1_,this.getGuildMilitaryMessageResult);
|
||||
}
|
||||
|
||||
private function getGuildMilitaryMessageResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_listUnionArmyOut);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getPvpTime(param1:int, param2:int, param3:int) : void
|
||||
{
|
||||
var _loc4_:String = "com.huzi.combat.action.CombatAction.getPvpTime";
|
||||
super.connect(_loc4_,this.getPvpTimeResult,param1,param2,param3);
|
||||
}
|
||||
|
||||
private function getPvpTimeResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:BattleEvent = new BattleEvent(BattleEvent.B_getPvpTime);
|
||||
_loc3_.armyObj = _loc2_.returnObj1;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
68
flash_decompiled/com/control/battle/event/BattleEvent.as
Normal file
68
flash_decompiled/com/control/battle/event/BattleEvent.as
Normal file
@@ -0,0 +1,68 @@
|
||||
package com.control.battle.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class BattleEvent extends Event
|
||||
{
|
||||
|
||||
public static const WALL_DEF_HEROLIST:String = "WALL_DEF_HEROLIST";
|
||||
|
||||
public static const WALL_DEF_HEROLIST_SAVE:String = "WALL_DEF_HEROLIST_SAVE";
|
||||
|
||||
public static const ARMY_SET_LIST:String = "ARMY_SET_LIST";
|
||||
|
||||
public static const ARMY_SET_CHANGE:String = "ARMY_SET_CHANGE";
|
||||
|
||||
public static const SaveBattleDex:String = "SaveBattleDex";
|
||||
|
||||
public static const DeleteBattleDex:String = "deleteBattleDex";
|
||||
|
||||
public static const B_getPveCastleList:String = "B_getPveCastleList";
|
||||
|
||||
public static const B_getBattleDexList:String = "B_getBattleDexList";
|
||||
|
||||
public static const B_getChouRen:String = "B_getChouRen";
|
||||
|
||||
public static const B_getChongToUser:String = "B_getChongToUser";
|
||||
|
||||
public static const B_getBattleFlagUser:String = "B_getBattleFlagUser";
|
||||
|
||||
public static const B_getBattlePlanResult:String = "B_getBattlePlanResult";
|
||||
|
||||
public static const B_getPveDrop:String = "B_getPveDrop";
|
||||
|
||||
public static const B_armyOutBattle:String = "B_armyOutBattle";
|
||||
|
||||
public static const B_listArmyOut:String = "B_listArmyOut";
|
||||
|
||||
public static const B_getArmyOutList:String = "B_getArmyOutList";
|
||||
|
||||
public static const B_callBackOutArmy:String = "B_callBackOutArmy";
|
||||
|
||||
public static const B_callBackLeagueDefArmy:String = "B_callBackLeagueDefArmy";
|
||||
|
||||
public static const B_getChangeArmyView4YS:String = "B_getChangeArmyView4YS";
|
||||
|
||||
public static const B_saveYsChangeArmy:String = "B_saveYsChangeArmy";
|
||||
|
||||
public static const B_listUnionArmyOut:String = "B_listUnionArmyOut";
|
||||
|
||||
public static const B_getPvpTime:String = "B_getPvpTime";
|
||||
|
||||
public var wallHero:Object;
|
||||
|
||||
public var armyObj:Object;
|
||||
|
||||
public var list:Array;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function BattleEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
23
flash_decompiled/com/control/battle/event/BattleViewEvent.as
Normal file
23
flash_decompiled/com/control/battle/event/BattleViewEvent.as
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.control.battle.event
|
||||
{
|
||||
import com.data.data.battleview.Fight;
|
||||
import flash.events.Event;
|
||||
|
||||
public class BattleViewEvent extends Event
|
||||
{
|
||||
|
||||
public static const BATTLE_VIEW_BYFIGHTID:String = "BATTLE_VIEW_BYFIGHTID";
|
||||
|
||||
public var fight:Fight;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function BattleViewEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1287
flash_decompiled/com/control/castle/CastleService.as
Normal file
1287
flash_decompiled/com/control/castle/CastleService.as
Normal file
File diff suppressed because it is too large
Load Diff
22
flash_decompiled/com/control/castle/event/AlartEvent.as
Normal file
22
flash_decompiled/com/control/castle/event/AlartEvent.as
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class AlartEvent extends Event
|
||||
{
|
||||
|
||||
public static const GET_ALART_INFO:String = "GET_ALART_INFO";
|
||||
|
||||
public static const GET_ALART_CHANGE:String = "GET_ALART_CHANGE";
|
||||
|
||||
public var alartObject:Object;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function AlartEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
18
flash_decompiled/com/control/castle/event/AllQueueEvent.as
Normal file
18
flash_decompiled/com/control/castle/event/AllQueueEvent.as
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class AllQueueEvent extends Event
|
||||
{
|
||||
|
||||
public static var AllQueue:String = "AllQueue";
|
||||
|
||||
public var allQueueArr:Array;
|
||||
|
||||
public function AllQueueEvent()
|
||||
{
|
||||
super(AllQueue,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
30
flash_decompiled/com/control/castle/event/BarrackEvent.as
Normal file
30
flash_decompiled/com/control/castle/event/BarrackEvent.as
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class BarrackEvent extends Event
|
||||
{
|
||||
|
||||
public static const ShowBarracks:String = "ShowBarracks";
|
||||
|
||||
public static const RecruitNewArmy:String = "RecruitNewArmy";
|
||||
|
||||
public static const Army_ShowArmyOperView:String = "Army_ShowArmyOperView";
|
||||
|
||||
public static const Army_dismissCasArmyResult:String = "Army_dismissCasArmyResult";
|
||||
|
||||
public static const Army_levelUpArmy:String = "Army_levelUpArmy";
|
||||
|
||||
public var barrackView:Object;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function BarrackEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import com.data.data.city.CastleBuilding;
|
||||
import flash.events.Event;
|
||||
|
||||
public class CastleBuildEvent extends Event
|
||||
{
|
||||
|
||||
public static var BUILD_NEW:String = "BUILD_NEW";
|
||||
|
||||
public static var BUILD_NEW_OK:String = "BUILD_NEW_OK";
|
||||
|
||||
public static var BUILD_UP:String = "BUILD_UP";
|
||||
|
||||
public static var BUILD_DESTROY:String = "BUILD_DESTROY";
|
||||
|
||||
public static var BUILD_CANCEL:String = "BUILD_CANCEL";
|
||||
|
||||
public static var BUILD_UP_OK:String = "BUILD_UP_OK";
|
||||
|
||||
public static var ADD_SPEED_OK:String = "ADD_SPEED";
|
||||
|
||||
public static var BUILD_COMPELETE:String = "BUILD_COMPELETE";
|
||||
|
||||
public static var BUILD_LOADALL:String = "BUILD_LOADALL";
|
||||
|
||||
public var castleBuild:CastleBuilding;
|
||||
|
||||
public var obj:Object;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function CastleBuildEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import com.data.data.city.Castle;
|
||||
import flash.events.Event;
|
||||
|
||||
public class CastleBuildListEvent extends Event
|
||||
{
|
||||
|
||||
public static const MAIN_CASTLE_BUILDLIST:String = "MAIN_CASTLE_BUILDLIST";
|
||||
|
||||
public static const CASTLE_BUILDLIST:String = "CASTLE_BUILDLIST";
|
||||
|
||||
public var buildListArray:Array;
|
||||
|
||||
public var currentCastle:Castle;
|
||||
|
||||
public var casId:int;
|
||||
|
||||
public function CastleBuildListEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
61
flash_decompiled/com/control/castle/event/CastleEvent.as
Normal file
61
flash_decompiled/com/control/castle/event/CastleEvent.as
Normal file
@@ -0,0 +1,61 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import com.data.data.city.Castle;
|
||||
import flash.events.Event;
|
||||
|
||||
public class CastleEvent extends Event
|
||||
{
|
||||
|
||||
public static const CASTLE_MAIN:String = "CASTLE_MAIN";
|
||||
|
||||
public static const CASTLE_LIST_ALL:String = "CASTLE_LIST_ALL";
|
||||
|
||||
public static const CASTLE_VIEW:String = "CASTLE_VIEW";
|
||||
|
||||
public static const CASTLE_MOVE:String = "CASTLE_MOVE";
|
||||
|
||||
public static const CASTLE_moveCastleNol:String = "CASTLE_moveCastleNol";
|
||||
|
||||
public static const CASTLE_recoveryBattleInfo:String = "CASTLE_recoveryBattleInfo";
|
||||
|
||||
public static const CASTLE_getBuffTipListById:String = "CASTLE_getBuffTipListById";
|
||||
|
||||
public static const CASTLE_selectCasBui:String = "CASTLE_selectCasBui";
|
||||
|
||||
public static const CASTLE_getTransInfo:String = "CASTLE_getTransInfo";
|
||||
|
||||
public static const CASTLE_changeBranchCastleType:String = "CASTLE_changeBranchCastleType";
|
||||
|
||||
public static const CASTLE_getChangeCastleInfo:String = "CASTLE_getChangeCastleInfo";
|
||||
|
||||
public static const CASTLE_addSpeedChangeCastle:String = "CASTLE_addSpeedChangeCastle";
|
||||
|
||||
public static const CASTLE_getOnlineTimeAward:String = "CASTLE_getOnlineTimeAward";
|
||||
|
||||
public static const CASTLE_fetchOnlineTimeAward:String = "CASTLE_fetchOnlineTimeAward";
|
||||
|
||||
public static const CASTLE_changeCountryView:String = "CASTLE_changeCountryView";
|
||||
|
||||
public static const CASTLE_changeCountry:String = "CASTLE_changeCountry";
|
||||
|
||||
public static const CASTLE_getSuggestPos:String = "CASTLE_getSuggestPos";
|
||||
|
||||
public static const CASTLE_reBuildCastle:String = "CASTLE_reBuildCastle";
|
||||
|
||||
public var mainCastle:Castle;
|
||||
|
||||
public var castleObj:Object;
|
||||
|
||||
public var castleList:Array;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public function CastleEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class CastleLevelUpEvent extends Event
|
||||
{
|
||||
|
||||
public static const CASTLE_LEVELUP:String = "CASTLE_LEVELUP";
|
||||
|
||||
public var cityUrl:String;
|
||||
|
||||
public function CastleLevelUpEvent()
|
||||
{
|
||||
super(CASTLE_LEVELUP,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
18
flash_decompiled/com/control/castle/event/CastleListEvent.as
Normal file
18
flash_decompiled/com/control/castle/event/CastleListEvent.as
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class CastleListEvent extends Event
|
||||
{
|
||||
|
||||
public static const CASTLE_LIST:String = "CASTLE_LIST";
|
||||
|
||||
public var castleList:Array;
|
||||
|
||||
public function CastleListEvent()
|
||||
{
|
||||
super(CASTLE_LIST,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
31
flash_decompiled/com/control/castle/event/CastleWallEvent.as
Normal file
31
flash_decompiled/com/control/castle/event/CastleWallEvent.as
Normal file
@@ -0,0 +1,31 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import com.data.data.items.AddSpeed;
|
||||
import flash.events.Event;
|
||||
|
||||
public class CastleWallEvent extends Event
|
||||
{
|
||||
|
||||
public static const WALL_VIEW:String = "WALL_VIEW";
|
||||
|
||||
public static const WALL_PRODUCTARMY:String = "WALL_PRODUCTARMY";
|
||||
|
||||
public static const WALL_PRODUCTOVER:String = "WALL_PRODUCTOVER";
|
||||
|
||||
public static const WALL_ADDSPEED:String = "WALL_ADDSPEED";
|
||||
|
||||
public static const WALL_CANCEL:String = "WALL_CANCEL";
|
||||
|
||||
public static const WALL_DISMISS:String = "WALL_DISMISS";
|
||||
|
||||
public var wallObject:Object;
|
||||
|
||||
public var addSpeed:AddSpeed;
|
||||
|
||||
public function CastleWallEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
30
flash_decompiled/com/control/castle/event/HospitalEvent.as
Normal file
30
flash_decompiled/com/control/castle/event/HospitalEvent.as
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class HospitalEvent extends Event
|
||||
{
|
||||
|
||||
public static const GET_HOSPITAL_VIEW:String = "GET_HOSPITAL_VIEW";
|
||||
|
||||
public static const TREAT_HERO:String = "TREAT_HERO";
|
||||
|
||||
public static const TREAT_HERO_ALL:String = "TREAT_HERO_ALL";
|
||||
|
||||
public static const TREAT_getMedicPointInfo:String = "TREAT_getMedicPointInfo";
|
||||
|
||||
public static const TREAT_addSelectMedicPoint:String = "TREAT_addSelectMedicPoint";
|
||||
|
||||
public var hospitalObject:Object;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function HospitalEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
20
flash_decompiled/com/control/castle/event/NewCastleEvent.as
Normal file
20
flash_decompiled/com/control/castle/event/NewCastleEvent.as
Normal file
@@ -0,0 +1,20 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class NewCastleEvent extends Event
|
||||
{
|
||||
|
||||
public static const GET_NEW_CASTLE:String = "GET_NEW_CASTLE";
|
||||
|
||||
public static const BUILD_NEW_CASTLE_OK:String = "BUILD_NEW_CASTLE_OK";
|
||||
|
||||
public var res:String;
|
||||
|
||||
public function NewCastleEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
36
flash_decompiled/com/control/castle/event/StrategyEvent.as
Normal file
36
flash_decompiled/com/control/castle/event/StrategyEvent.as
Normal file
@@ -0,0 +1,36 @@
|
||||
package com.control.castle.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class StrategyEvent extends Event
|
||||
{
|
||||
|
||||
public static const Strategy_ALL:String = "Strategy_ALL";
|
||||
|
||||
public static const Strategy_By_Id:String = "Strategy_By_Id";
|
||||
|
||||
public static const Strategy_Up:String = "Strategy_Up";
|
||||
|
||||
public static const Strategy_UseJunShi:String = "Strategy_UseJunShi";
|
||||
|
||||
public static const Strategy_addSpeedJunShi:String = "Strategy_addSpeedJunShi";
|
||||
|
||||
public static const Strategy_AddSpeed:String = "Strategy_AddSpeed";
|
||||
|
||||
public static const Strategy_Ups:String = "Strategy_Ups";
|
||||
|
||||
public var strategyArr:Array;
|
||||
|
||||
public var strategyObj:Object;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function StrategyEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
93
flash_decompiled/com/control/chat/ChatService.as
Normal file
93
flash_decompiled/com/control/chat/ChatService.as
Normal file
@@ -0,0 +1,93 @@
|
||||
package com.control.chat
|
||||
{
|
||||
import com.control.chat.event.ChatMainEvent;
|
||||
import com.control.connect.Connect;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.view.mc.sprite.LoadingMc;
|
||||
|
||||
public class ChatService extends Connect
|
||||
{
|
||||
|
||||
public function ChatService()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function userSendMessage(param1:int, param2:String) : void
|
||||
{
|
||||
var _loc3_:String = "com.huzi.chat.action.ChatAction.userSendMessage";
|
||||
super.connect(_loc3_,this.sendMessageResult,param1,param2);
|
||||
}
|
||||
|
||||
private function sendMessageResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:ChatMainEvent = new ChatMainEvent(ChatMainEvent.Chat_userSendMessage);
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function userSendPrivateMessage(param1:String, param2:String) : void
|
||||
{
|
||||
var _loc3_:String = "com.huzi.chat.action.ChatAction.userSendPrivateMessage";
|
||||
super.connect(_loc3_,this.userSendPrivateMessageResult,param1,param2);
|
||||
}
|
||||
|
||||
private function userSendPrivateMessageResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:ChatMainEvent = new ChatMainEvent(ChatMainEvent.Chat_userSendPrivateMessage);
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function userSendTitleMessage(param1:String, param2:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc3_:String = "com.huzi.chat.action.ChatAction.userTitleMessage";
|
||||
super.connect(_loc3_,this.userSendTitleMessageResult,param1,param2);
|
||||
}
|
||||
|
||||
private function userSendTitleMessageResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:ChatMainEvent = new ChatMainEvent(ChatMainEvent.Chat_userSendTitleMessage);
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function showItem() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.chat.action.ChatAction.viewMyEqu";
|
||||
super.connect(_loc1_,this.showItemResult);
|
||||
}
|
||||
|
||||
private function showItemResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
24
flash_decompiled/com/control/chat/event/ChatMainEvent.as
Normal file
24
flash_decompiled/com/control/chat/event/ChatMainEvent.as
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.control.chat.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class ChatMainEvent extends Event
|
||||
{
|
||||
|
||||
public static const Chat_userSendMessage:String = "Chat_userSendMessage";
|
||||
|
||||
public static const Chat_userSendPrivateMessage:String = "Chat_userSendPrivateMessage";
|
||||
|
||||
public static const Chat_userSendTitleMessage:String = "Chat_userSendTitleMessage";
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public function ChatMainEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
56
flash_decompiled/com/control/combat/CombatService.as
Normal file
56
flash_decompiled/com/control/combat/CombatService.as
Normal file
@@ -0,0 +1,56 @@
|
||||
package com.control.combat
|
||||
{
|
||||
import com.control.combat.event.CombatEvent;
|
||||
import com.control.connect.Connect;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.view.mc.sprite.LoadingMc;
|
||||
|
||||
public class CombatService extends Connect
|
||||
{
|
||||
|
||||
public function CombatService()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function declareWar(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.combat.action.CombatAction.declareWar";
|
||||
super.connect(_loc2_,this.declareWarResult,param1);
|
||||
}
|
||||
|
||||
private function declareWarResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:CombatEvent = new CombatEvent(CombatEvent.Combat_declareWar);
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getLeagueDefList(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.combat.action.CombatAction.getLeagueDefList";
|
||||
super.connect(_loc2_,this.getLeagueDefListResult,param1);
|
||||
}
|
||||
|
||||
private function getLeagueDefListResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:CombatEvent = new CombatEvent(CombatEvent.Combat_getLeagueDefList);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
24
flash_decompiled/com/control/combat/event/CombatEvent.as
Normal file
24
flash_decompiled/com/control/combat/event/CombatEvent.as
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.control.combat.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class CombatEvent extends Event
|
||||
{
|
||||
|
||||
public static const Combat_declareWar:String = "Combat_declareWar";
|
||||
|
||||
public static const Combat_getLeagueDefList:String = "Combat_getLeagueDefList";
|
||||
|
||||
public var list:Array;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function CombatEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
190
flash_decompiled/com/control/connect/Connect.as
Normal file
190
flash_decompiled/com/control/connect/Connect.as
Normal file
@@ -0,0 +1,190 @@
|
||||
package com.control.connect
|
||||
{
|
||||
import com.InstallFace;
|
||||
import com.comfig.PathConfig;
|
||||
import com.control.ConnectService;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.events.DevEvent;
|
||||
import com.utils.Utils;
|
||||
import com.view.ui.message.MessageBoxUI;
|
||||
import flash.events.AsyncErrorEvent;
|
||||
import flash.events.Event;
|
||||
import flash.events.IOErrorEvent;
|
||||
import flash.events.NetStatusEvent;
|
||||
import flash.events.SecurityErrorEvent;
|
||||
import flash.net.*;
|
||||
import flash.utils.setTimeout;
|
||||
|
||||
public class Connect
|
||||
{
|
||||
|
||||
registerClassAlias("ReturnBean",ReturnBean);
|
||||
|
||||
private var str:String;
|
||||
|
||||
private var nc:NetConnection;
|
||||
|
||||
public var actUrl:String;
|
||||
|
||||
private var lastMethod:String;
|
||||
|
||||
public function Connect()
|
||||
{
|
||||
super();
|
||||
this.nc = new NetConnection();
|
||||
this.nc.client = this.nc;
|
||||
this.nc.objectEncoding = ObjectEncoding.AMF0;
|
||||
this.nc.addEventListener(NetStatusEvent.NET_STATUS,this.onConStatus);
|
||||
this.nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR,this.onAsyncError);
|
||||
this.nc.addEventListener(IOErrorEvent.IO_ERROR,this.onIoerror);
|
||||
this.nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR,this.onSecurityError);
|
||||
this.str = PathConfig.getInstance().getWebPath() + "gateway";
|
||||
this.nc.connect(this.str);
|
||||
}
|
||||
|
||||
public function connect(param1:String, param2:Function, ... rest) : void
|
||||
{
|
||||
if(InstallFace.getInstance().isValid)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(!InstallFace.getInstance().isConnect)
|
||||
{
|
||||
MessageBoxUI.getInstance().reLogin("你已断开连接,请重新登录游戏");
|
||||
return;
|
||||
}
|
||||
if(param1 == this.lastMethod)
|
||||
{
|
||||
switch(rest.length)
|
||||
{
|
||||
case 0:
|
||||
setTimeout(this.connect1,200,param1,param2);
|
||||
break;
|
||||
case 1:
|
||||
setTimeout(this.connect2,200,param1,param2,rest[0]);
|
||||
break;
|
||||
case 2:
|
||||
setTimeout(this.connect3,200,param1,param2,rest[0],rest[1]);
|
||||
break;
|
||||
case 3:
|
||||
setTimeout(this.connect4,200,param1,param2,rest[0],rest[1],rest[2]);
|
||||
break;
|
||||
case 4:
|
||||
setTimeout(this.connect5,200,param1,param2,rest[0],rest[1],rest[2],rest[3]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.lastMethod = param1;
|
||||
switch(rest.length)
|
||||
{
|
||||
case 0:
|
||||
this.nc.call(param1,new Responder(param2,this.ErrStatus));
|
||||
break;
|
||||
case 1:
|
||||
this.nc.call(param1,new Responder(param2,this.ErrStatus),rest[0]);
|
||||
break;
|
||||
case 2:
|
||||
this.nc.call(param1,new Responder(param2,this.ErrStatus),rest[0],rest[1]);
|
||||
break;
|
||||
case 3:
|
||||
this.nc.call(param1,new Responder(param2,this.ErrStatus),rest[0],rest[1],rest[2]);
|
||||
break;
|
||||
case 4:
|
||||
this.nc.call(param1,new Responder(param2,this.ErrStatus),rest[0],rest[1],rest[2],rest[3]);
|
||||
}
|
||||
setTimeout(this.clearMethod,100);
|
||||
}
|
||||
|
||||
private function clearMethod() : void
|
||||
{
|
||||
this.lastMethod = "";
|
||||
}
|
||||
|
||||
private function connect1(param1:String, param2:Function) : void
|
||||
{
|
||||
this.connect(param1,param2);
|
||||
}
|
||||
|
||||
private function connect2(param1:String, param2:Function, param3:*) : void
|
||||
{
|
||||
this.connect(param1,param2,param3);
|
||||
}
|
||||
|
||||
private function connect3(param1:String, param2:Function, param3:*, param4:*) : void
|
||||
{
|
||||
this.connect(param1,param2,param3,param4);
|
||||
}
|
||||
|
||||
private function connect4(param1:String, param2:Function, param3:*, param4:*, param5:*) : void
|
||||
{
|
||||
this.connect(param1,param2,param3,param4,param5);
|
||||
}
|
||||
|
||||
private function connect5(param1:String, param2:Function, param3:*, param4:*, param5:*, param6:*) : void
|
||||
{
|
||||
this.connect(param1,param2,param3,param4,param5,param6);
|
||||
}
|
||||
|
||||
public function checkResult(param1:ReturnBean) : Boolean
|
||||
{
|
||||
if(param1.result == ReturnBean.STATUS_2)
|
||||
{
|
||||
MessageBoxUI.getInstance().reLogin();
|
||||
return true;
|
||||
}
|
||||
if(param1.result == ReturnBean.STATUS_1)
|
||||
{
|
||||
if(param1.msg == null)
|
||||
{
|
||||
param1.msg = "系统错误";
|
||||
}
|
||||
MessageBoxUI.getInstance().addMessage(param1.msg);
|
||||
return true;
|
||||
}
|
||||
if(param1.result == ReturnBean.STATUS_3)
|
||||
{
|
||||
if(param1.msg == null)
|
||||
{
|
||||
param1.msg = "系统错误";
|
||||
}
|
||||
MessageBoxUI.getInstance().addMessage(param1.msg);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function ErrStatus(param1:Object) : void
|
||||
{
|
||||
MessageBoxUI.getInstance().addMessage("服务器连接出错");
|
||||
}
|
||||
|
||||
private function onConStatus(param1:NetStatusEvent) : void
|
||||
{
|
||||
if(param1.info.code == "NetConnection.Connect.Success")
|
||||
{
|
||||
}
|
||||
if(param1.info.code == "NetConnection.Call.Failed")
|
||||
{
|
||||
MessageBoxUI.getInstance().addMessage("服务器连接失败");
|
||||
Utils.g_events.dispatchEvent(new DevEvent(DevEvent.UNCONNSERVER));
|
||||
}
|
||||
}
|
||||
|
||||
private function onIoerror(param1:IOErrorEvent) : void
|
||||
{
|
||||
}
|
||||
|
||||
private function onSecurityError(param1:SecurityErrorEvent) : void
|
||||
{
|
||||
}
|
||||
|
||||
private function onAsyncError(param1:AsyncErrorEvent) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function dispatchEvent(param1:Event) : void
|
||||
{
|
||||
ConnectService.getInstance().dispatchEvent(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
50
flash_decompiled/com/control/data/ReturnBean.as
Normal file
50
flash_decompiled/com/control/data/ReturnBean.as
Normal file
@@ -0,0 +1,50 @@
|
||||
package com.control.data
|
||||
{
|
||||
public class ReturnBean
|
||||
{
|
||||
|
||||
public static const STATUS_0:int = 0;
|
||||
|
||||
public static const STATUS_1:int = 1;
|
||||
|
||||
public static const STATUS_2:int = 2;
|
||||
|
||||
public static const STATUS_3:int = 3;
|
||||
|
||||
public static const STATUS_4:int = 4;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public var returnObj1:Object;
|
||||
|
||||
public var returnObj2:Object;
|
||||
|
||||
public var returnObj3:Object;
|
||||
|
||||
public var returnObj4:Object;
|
||||
|
||||
public var returnList1:Array;
|
||||
|
||||
public var returnList2:Array;
|
||||
|
||||
public var returnMap1:Array;
|
||||
|
||||
public var returnMap2:Array;
|
||||
|
||||
public function ReturnBean()
|
||||
{
|
||||
super();
|
||||
this.returnObj1 = new Object();
|
||||
this.returnObj2 = new Object();
|
||||
this.returnObj3 = new Object();
|
||||
this.returnObj4 = new Object();
|
||||
this.returnList1 = new Array();
|
||||
this.returnList2 = new Array();
|
||||
this.returnMap1 = new Array();
|
||||
this.returnMap2 = new Array();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
346
flash_decompiled/com/control/farm/UserFarmService.as
Normal file
346
flash_decompiled/com/control/farm/UserFarmService.as
Normal file
@@ -0,0 +1,346 @@
|
||||
package com.control.farm
|
||||
{
|
||||
import com.control.ConnectService;
|
||||
import com.control.connect.Connect;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.control.farm.event.FarmSeedEvent;
|
||||
import com.control.farm.event.UserFarmEvent;
|
||||
import com.data.data.city.CastlePop;
|
||||
import com.data.data.farm.UserFarm;
|
||||
import com.data.data.farm.UserFarmArea;
|
||||
import com.data.data.farm.UserFarmInfo;
|
||||
import com.data.data.farm.UserFarmPlant;
|
||||
import com.data.data.farm.UserFarmTree;
|
||||
import com.data.data.farm.UserFarmType;
|
||||
import com.newdata.user.NewUserData;
|
||||
import com.view.mc.sprite.LoadingMc;
|
||||
import flash.net.registerClassAlias;
|
||||
|
||||
public class UserFarmService extends Connect
|
||||
{
|
||||
|
||||
registerClassAlias("UserFarm",UserFarm);
|
||||
registerClassAlias("UserFarmArea",UserFarmArea);
|
||||
registerClassAlias("UserFarmPlant",UserFarmPlant);
|
||||
registerClassAlias("UserFarmTree",UserFarmTree);
|
||||
registerClassAlias("UserFarmType",UserFarmType);
|
||||
registerClassAlias("CastlePop",CastlePop);
|
||||
|
||||
public function UserFarmService()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function getSelfFarmDate() : void
|
||||
{
|
||||
var _loc1_:int = NewUserData.getUser().userId;
|
||||
var _loc2_:String = "com.huzi.play.action.UserFarmAction.getSelfFarmInfo";
|
||||
super.connect(_loc2_,this.getSelfFarmDateResult,_loc1_);
|
||||
}
|
||||
|
||||
private function getSelfFarmDateResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.SELFFARM);
|
||||
_loc3_.userFarmInfo = new UserFarmInfo(_loc2_.returnMap1);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function enterFarm(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.play.action.UserFarmAction.enterFarmExt";
|
||||
super.connect(_loc2_,this.enterFarmResault,param1);
|
||||
}
|
||||
|
||||
private function enterFarmResault(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_enterFarm);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getSeedData() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.play.action.UserFarmAction.getSeedData";
|
||||
super.connect(_loc1_,this.getSeedDataResult);
|
||||
}
|
||||
|
||||
private function getSeedDataResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FarmSeedEvent = new FarmSeedEvent();
|
||||
_loc3_.seedArr = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function startPlantOnFarmArea(param1:int, param2:int, param3:int) : void
|
||||
{
|
||||
var _loc4_:String = "com.huzi.play.action.UserFarmAction.startPlantOnFarmArea";
|
||||
super.connect(_loc4_,this.startPlantOnFarmAreaResault,param1.toString(),param2.toString(),param3);
|
||||
}
|
||||
|
||||
private function startPlantOnFarmAreaResault(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_startPlant);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
super.dispatchEvent(_loc3_);
|
||||
ConnectService.getInstance().castleService.getPop();
|
||||
}
|
||||
|
||||
public function harvestPlantOnFarmAreaAll() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.play.action.UserFarmAction.harvestAllPlantOnFarmArea";
|
||||
super.connect(_loc1_,this.harvestPlantOnFarmAreaAllResault);
|
||||
}
|
||||
|
||||
private function harvestPlantOnFarmAreaAllResault(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_quanzheng);
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
if(_loc2_.result == ReturnBean.STATUS_0)
|
||||
{
|
||||
ConnectService.getInstance().castleService.calcuDevData();
|
||||
}
|
||||
}
|
||||
|
||||
public function enterOtherFarm(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.UserFarmAction.enterFarm";
|
||||
super.connect(_loc2_,this.enterOtherFarmResault,param1);
|
||||
}
|
||||
|
||||
private function enterOtherFarmResault(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_enterOtherFarm);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function clearFarmArea(param1:int, param2:int) : void
|
||||
{
|
||||
var _loc3_:String = "com.huzi.play.action.UserFarmAction.clearFarmArea";
|
||||
super.connect(_loc3_,this.clearFarmAreaResult,param1.toString(),param2.toString());
|
||||
}
|
||||
|
||||
private function clearFarmAreaResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_lidi);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
ConnectService.getInstance().castleService.calcuDevData();
|
||||
}
|
||||
|
||||
public function harvestPlantOnFarmArea(param1:String, param2:String) : void
|
||||
{
|
||||
var _loc3_:String = "com.huzi.play.action.UserFarmAction.harvestPlantOnFarmArea";
|
||||
super.connect(_loc3_,this.harvestPlantOnFarmResult,param1,param2);
|
||||
}
|
||||
|
||||
private function harvestPlantOnFarmResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_zhengshou);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
_loc3_.posX = int(_loc2_.returnObj2.posX);
|
||||
_loc3_.posY = int(_loc2_.returnObj2.posY);
|
||||
super.dispatchEvent(_loc3_);
|
||||
ConnectService.getInstance().castleService.calcuDevData();
|
||||
}
|
||||
|
||||
public function harvestCompulsory(param1:String, param2:String) : void
|
||||
{
|
||||
var _loc3_:String = "com.huzi.play.action.UserFarmAction.harvestCompulsory";
|
||||
super.connect(_loc3_,this.harvestCompulsoryResult,param1,param2);
|
||||
}
|
||||
|
||||
private function harvestCompulsoryResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_qiangzheng);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
_loc3_.posX = int(_loc2_.returnObj2.posX);
|
||||
_loc3_.posY = int(_loc2_.returnObj2.posY);
|
||||
super.dispatchEvent(_loc3_);
|
||||
ConnectService.getInstance().castleService.calcuDevData();
|
||||
}
|
||||
|
||||
public function stealAreaOfOtherFarm(param1:int, param2:int, param3:int) : void
|
||||
{
|
||||
var _loc4_:String = "com.huzi.play.action.UserFarmAction.stealAreaOfOtherFarm";
|
||||
super.connect(_loc4_,this.stealAreaOfOtherFarmResult,param1,param2,param3);
|
||||
}
|
||||
|
||||
private function stealAreaOfOtherFarmResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_steal);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
_loc3_.posX = int(_loc2_.returnObj2.posX);
|
||||
_loc3_.posY = int(_loc2_.returnObj2.posY);
|
||||
super.dispatchEvent(_loc3_);
|
||||
ConnectService.getInstance().castleService.getCastleResource();
|
||||
ConnectService.getInstance().castleService.getUserData();
|
||||
}
|
||||
|
||||
public function harvestPlantOthers(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.play.action.UserFarmAction.stealAllAreaOfOtherFarm";
|
||||
super.connect(_loc2_,this.harvestPlantOthersResult,param1);
|
||||
}
|
||||
|
||||
private function harvestPlantOthersResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_stealAll);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
super.dispatchEvent(_loc3_);
|
||||
if(_loc2_.result == ReturnBean.STATUS_0)
|
||||
{
|
||||
ConnectService.getInstance().castleService.getCastleResource();
|
||||
ConnectService.getInstance().castleService.getUserData();
|
||||
}
|
||||
}
|
||||
|
||||
public function getFriendInfo(param1:int, param2:int) : void
|
||||
{
|
||||
var _loc3_:String = "com.huzi.play.action.UserFarmAction.getFriendInfo";
|
||||
super.connect(_loc3_,this.getFriendInfoResult,param1,param2);
|
||||
}
|
||||
|
||||
private function getFriendInfoResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_getFriendInfo);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getFarmMesOfUser() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.play.action.UserFarmAction.getFarmMesOfUser";
|
||||
super.connect(_loc1_,this.getFarmMesOfUserResult);
|
||||
}
|
||||
|
||||
private function getFarmMesOfUserResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_getMessList);
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function harvestUserFarmTree() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.play.action.UserFarmAction.harvestUserFarmTree";
|
||||
super.connect(_loc1_,this.harvestUserFarmTreeResult);
|
||||
}
|
||||
|
||||
private function harvestUserFarmTreeResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_harvestFarmTree);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
super.dispatchEvent(_loc3_);
|
||||
ConnectService.getInstance().castleService.getUserData();
|
||||
}
|
||||
|
||||
public function waterFarmTree(param1:int) : *
|
||||
{
|
||||
var _loc2_:String = "com.huzi.play.action.UserFarmAction.waterFarmTree";
|
||||
super.connect(_loc2_,this.waterFarmTreeResult,param1);
|
||||
}
|
||||
|
||||
private function waterFarmTreeResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:UserFarmEvent = new UserFarmEvent(UserFarmEvent.FARM_waterFarmTree);
|
||||
_loc3_.farmData = _loc2_.returnObj1;
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
18
flash_decompiled/com/control/farm/event/FarmSeedEvent.as
Normal file
18
flash_decompiled/com/control/farm/event/FarmSeedEvent.as
Normal file
@@ -0,0 +1,18 @@
|
||||
package com.control.farm.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class FarmSeedEvent extends Event
|
||||
{
|
||||
|
||||
public static var SEED_LIST:String = "SEED_LIST";
|
||||
|
||||
public var seedArr:Array;
|
||||
|
||||
public function FarmSeedEvent()
|
||||
{
|
||||
super(SEED_LIST,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
59
flash_decompiled/com/control/farm/event/UserFarmEvent.as
Normal file
59
flash_decompiled/com/control/farm/event/UserFarmEvent.as
Normal file
@@ -0,0 +1,59 @@
|
||||
package com.control.farm.event
|
||||
{
|
||||
import com.data.data.farm.UserFarmInfo;
|
||||
import flash.events.Event;
|
||||
|
||||
public class UserFarmEvent extends Event
|
||||
{
|
||||
|
||||
public static const SELFFARM:String = "farm_self";
|
||||
|
||||
public static const PLAYERFARM:String = "farm_player";
|
||||
|
||||
public static const FARM_enterOtherFarm:String = "FARM_enterOtherFarm";
|
||||
|
||||
public static const FARM_enterFarm:String = "FARM_enterFarm";
|
||||
|
||||
public static const FARM_startPlant:String = "FARM_startPlant";
|
||||
|
||||
public static const FARM_quanzheng:String = "FARM_quanzheng";
|
||||
|
||||
public static const FARM_lidi:String = "FARM_lidi";
|
||||
|
||||
public static const FARM_zhengshou:String = "FARM_zhengshou";
|
||||
|
||||
public static const FARM_qiangzheng:String = "FARM_qiangzheng";
|
||||
|
||||
public static const FARM_steal:String = "FARM_steal";
|
||||
|
||||
public static const FARM_stealAll:String = "FARM_stealAll";
|
||||
|
||||
public static const FARM_getFriendInfo:String = "FARM_getFriendInfo";
|
||||
|
||||
public static const FARM_getMessList:String = "FARM_getMessList";
|
||||
|
||||
public static const FARM_harvestFarmTree:String = "FARM_harvestFarmTree";
|
||||
|
||||
public static const FARM_waterFarmTree:String = "FARM_waterFarmTree";
|
||||
|
||||
public var userFarmInfo:UserFarmInfo;
|
||||
|
||||
public var farmData:Object;
|
||||
|
||||
public var list:Array;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public var posX:int;
|
||||
|
||||
public var posY:int;
|
||||
|
||||
public function UserFarmEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
36
flash_decompiled/com/control/fish/Fish/FishsEvent.as
Normal file
36
flash_decompiled/com/control/fish/Fish/FishsEvent.as
Normal file
@@ -0,0 +1,36 @@
|
||||
package com.control.fish.Fish
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class FishsEvent extends Event
|
||||
{
|
||||
|
||||
public static var Fish_enterFishing:String = "Fish_enterFishing";
|
||||
|
||||
public static var Fish_userFishing:String = "Fish_userFishing";
|
||||
|
||||
public static var Fish_replaceItem:String = "Fish_replaceItem";
|
||||
|
||||
public static var Fish_userFishingHalf:String = "Fish_userFishingHalf";
|
||||
|
||||
public static var Fish_userFishing8:String = "Fish_userFishing8";
|
||||
|
||||
public static var Fish_exchangePoint:String = "Fish_exchangePoint";
|
||||
|
||||
public var obj:Object;
|
||||
|
||||
public var obj1:Object;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var list:Array;
|
||||
|
||||
public function FishsEvent(param1:String)
|
||||
{
|
||||
super(param1,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
260
flash_decompiled/com/control/fish/FishService.as
Normal file
260
flash_decompiled/com/control/fish/FishService.as
Normal file
@@ -0,0 +1,260 @@
|
||||
package com.control.fish
|
||||
{
|
||||
import com.control.ConnectService;
|
||||
import com.control.connect.Connect;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.control.fish.Fish.FishsEvent;
|
||||
import com.view.mc.sprite.LoadingMc;
|
||||
import com.view.ui.horse.data.BoxData;
|
||||
import com.view.ui.pak.data.PakState;
|
||||
|
||||
public class FishService extends Connect
|
||||
{
|
||||
|
||||
public function FishService()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function enterFishing() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.FishAction.firstEntryBabel";
|
||||
super.connect(_loc1_,this.enterFishingResult);
|
||||
}
|
||||
|
||||
private function enterFishingResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FishsEvent = new FishsEvent(FishsEvent.Fish_enterFishing);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function userFishing(param1:int, param2:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc3_:String = "com.huzi.play.action.FishAction.startFishing";
|
||||
super.connect(_loc3_,this.userFishingResult,param2,param1);
|
||||
}
|
||||
|
||||
private function userFishingResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FishsEvent = new FishsEvent(FishsEvent.Fish_userFishing);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
_loc3_.result = _loc2_.result;
|
||||
dispatchEvent(_loc3_);
|
||||
PakState.setGetPackListStatus();
|
||||
}
|
||||
|
||||
public function replaceItem() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.FishAction.replaceItem";
|
||||
super.connect(_loc1_,this.replaceItemResult);
|
||||
}
|
||||
|
||||
private function replaceItemResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FishsEvent = new FishsEvent(FishsEvent.Fish_replaceItem);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
_loc3_.result = _loc2_.result;
|
||||
dispatchEvent(_loc3_);
|
||||
PakState.setGetPackListStatus();
|
||||
}
|
||||
|
||||
public function userFishingHalf() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.FishAction.halfFishing";
|
||||
super.connect(_loc1_,this.userFishingHalfResult);
|
||||
}
|
||||
|
||||
private function userFishingHalfResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FishsEvent = new FishsEvent(FishsEvent.Fish_userFishingHalf);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
_loc3_.result = _loc2_.result;
|
||||
dispatchEvent(_loc3_);
|
||||
PakState.setGetPackListStatus();
|
||||
}
|
||||
|
||||
public function userFishing8() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.FishAction.eightFishing";
|
||||
super.connect(_loc1_,this.userFishing8Result);
|
||||
}
|
||||
|
||||
private function userFishing8Result(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FishsEvent = new FishsEvent(FishsEvent.Fish_userFishing8);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
_loc3_.list = _loc2_.returnList1;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
_loc3_.result = _loc2_.result;
|
||||
dispatchEvent(_loc3_);
|
||||
PakState.setGetPackListStatus();
|
||||
}
|
||||
|
||||
public function exchangePoint(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.FishAction.exchangeCash";
|
||||
super.connect(_loc2_,this.exchangePointResult,param1);
|
||||
}
|
||||
|
||||
private function exchangePointResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FishsEvent = new FishsEvent(FishsEvent.Fish_exchangePoint);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
_loc3_.obj1 = _loc2_.returnObj2;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
_loc3_.result = _loc2_.result;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getUserBox(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.FishAction.getUserBoxMap";
|
||||
super.connect(_loc2_,this.getUserBoxResult,param1);
|
||||
}
|
||||
|
||||
private function getUserBoxResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
BoxData.setUserData(_loc2_.returnObj1);
|
||||
}
|
||||
|
||||
public function startBox(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.FishAction.startBox";
|
||||
super.connect(_loc2_,this.startBoxResult,param1);
|
||||
}
|
||||
|
||||
private function startBoxResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
BoxData.setUserData(_loc2_.returnObj1);
|
||||
if(BoxData.times > 4)
|
||||
{
|
||||
ConnectService.getInstance().castleService.getUserData();
|
||||
}
|
||||
PakState.setGetPackListStatus();
|
||||
}
|
||||
|
||||
public function resetBox() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.FishAction.resetBox";
|
||||
super.connect(_loc1_,this.resetBoxResult);
|
||||
}
|
||||
|
||||
private function resetBoxResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
BoxData.setUserData(_loc2_.returnObj1);
|
||||
var _loc3_:Boolean = Boolean(_loc2_.returnObj2);
|
||||
if(_loc3_)
|
||||
{
|
||||
PakState.setGetPackListStatus();
|
||||
}
|
||||
}
|
||||
|
||||
public function getExcangeMap() : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc1_:String = "com.huzi.play.action.FishAction.getExcangeMap";
|
||||
super.connect(_loc1_,this.getExcangeMapResult);
|
||||
}
|
||||
|
||||
private function getExcangeMapResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
BoxData.setExchangeList(_loc2_.returnList1);
|
||||
}
|
||||
|
||||
public function exPoint(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.play.action.FishAction.exchangePoint";
|
||||
super.connect(_loc2_,this.exPointResult,param1);
|
||||
}
|
||||
|
||||
private function exPointResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
BoxData.setUserData(_loc2_.returnObj1);
|
||||
PakState.setGetPackListStatus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
317
flash_decompiled/com/control/friend/FriendService.as
Normal file
317
flash_decompiled/com/control/friend/FriendService.as
Normal file
@@ -0,0 +1,317 @@
|
||||
package com.control.friend
|
||||
{
|
||||
import com.control.connect.Connect;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.control.friend.event.FriendEvent;
|
||||
import com.control.friend.event.RankEvent;
|
||||
import com.view.mc.sprite.LoadingMc;
|
||||
|
||||
public class FriendService extends Connect
|
||||
{
|
||||
|
||||
private var failFunc:Function;
|
||||
|
||||
private var srvname:Object = "friendAct.";
|
||||
|
||||
private var getFriendList_srv:Object = "getFriendList";
|
||||
|
||||
private var deleteUser_srv:Object = "deleteUser";
|
||||
|
||||
private var addFriend_srv:Object = "addFriend";
|
||||
|
||||
private var op:Object = "";
|
||||
|
||||
private var succFunc:Function;
|
||||
|
||||
private var data:Object;
|
||||
|
||||
private var addEnemy_srv:Object = "addEnemy";
|
||||
|
||||
public function FriendService()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function sendInvitation(param1:String) : void
|
||||
{
|
||||
}
|
||||
|
||||
public function clearMe() : void
|
||||
{
|
||||
}
|
||||
|
||||
public function getUser(param1:int, param2:int) : *
|
||||
{
|
||||
}
|
||||
|
||||
public function applyJoinGuildName(param1:String) : *
|
||||
{
|
||||
}
|
||||
|
||||
private function delFail(param1:*) : *
|
||||
{
|
||||
}
|
||||
|
||||
public function getFriendList(param1:int, param2:int = 2) : *
|
||||
{
|
||||
var _loc3_:String = "com.huzi.function.action.FriendAction.getFriendList";
|
||||
super.connect(_loc3_,this.getFriendListResult,param2,param1);
|
||||
}
|
||||
|
||||
private function getFriendListResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FriendEvent = new FriendEvent(FriendEvent.Friend_getFriendList);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getOnline() : *
|
||||
{
|
||||
var _loc1_:String = "com.huzi.function.action.FriendAction.getOnlineUser";
|
||||
super.connect(_loc1_,this.getOnlineResult);
|
||||
}
|
||||
|
||||
private function getOnlineResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public function addImpress(param1:int, param2:String) : void
|
||||
{
|
||||
}
|
||||
|
||||
private function addFail(param1:*) : *
|
||||
{
|
||||
}
|
||||
|
||||
public function refuseFriend(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.function.action.FriendAction.refuseFriend";
|
||||
super.connect(_loc2_,this.refuseFriendResult,param1);
|
||||
}
|
||||
|
||||
private function refuseFriendResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FriendEvent = new FriendEvent(FriendEvent.Friend_refuseFriend);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
private function updSucc(param1:*) : *
|
||||
{
|
||||
}
|
||||
|
||||
public function deleteUser(param1:String, param2:int) : *
|
||||
{
|
||||
var _loc3_:String = "com.huzi.function.action.FriendAction.deleteUser";
|
||||
super.connect(_loc3_,this.deleteUserResult,param1,param2);
|
||||
}
|
||||
|
||||
private function deleteUserResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FriendEvent = new FriendEvent(FriendEvent.Friend_deleteFriend);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function addFriend(param1:String) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.function.action.FriendAction.addFriend";
|
||||
super.connect(_loc2_,this.addFriendResult,param1);
|
||||
}
|
||||
|
||||
private function addFriendResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FriendEvent = new FriendEvent(FriendEvent.Friend_addFriend);
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getRewardList(param1:int) : *
|
||||
{
|
||||
}
|
||||
|
||||
public function set onSucc(param1:*) : *
|
||||
{
|
||||
}
|
||||
|
||||
public function getFriendListForInfo() : *
|
||||
{
|
||||
}
|
||||
|
||||
public function addEnemy(param1:String) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.function.action.FriendAction.addEnemy";
|
||||
super.connect(_loc2_,this.addEnemyResult,param1);
|
||||
}
|
||||
|
||||
private function addEnemyResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FriendEvent = new FriendEvent(FriendEvent.Friend_addEnemy);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getApplyFriendCount() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.function.action.FriendAction.getApplyFriendCount";
|
||||
super.connect(_loc1_,this.getApplyFriendCountResult);
|
||||
}
|
||||
|
||||
private function getApplyFriendCountResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FriendEvent = new FriendEvent(FriendEvent.Friend_getApplyFriendCount);
|
||||
_loc3_.count = _loc2_.returnObj1 as int;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function accFriend(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.function.action.FriendAction.accFriend";
|
||||
super.connect(_loc2_,this.accFriendResult,param1);
|
||||
}
|
||||
|
||||
private function accFriendResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FriendEvent = new FriendEvent(FriendEvent.Friend_accFriend);
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getFriendListAll(param1:int = 2) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.function.action.FriendAction.getAllFriendList";
|
||||
super.connect(_loc2_,this.getFriendListAllResult,param1);
|
||||
}
|
||||
|
||||
private function getFriendListAllResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FriendEvent = new FriendEvent(FriendEvent.Friend_getAllFriend);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getInvalidTime() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.function.action.RankAction.getNextRefreshDuring";
|
||||
super.connect(_loc1_,this.getInvalidTimeResult);
|
||||
}
|
||||
|
||||
private function getInvalidTimeResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:RankEvent = new RankEvent(RankEvent.Rank_getInvalidTime);
|
||||
_loc2_.obj = param1;
|
||||
super.dispatchEvent(_loc2_);
|
||||
}
|
||||
|
||||
public function myUnionRankAction() : void
|
||||
{
|
||||
var _loc1_:String = "com.huzi.function.action.RankAction.getMyGuildRank";
|
||||
super.connect(_loc1_,this.myUnionRankActionResult);
|
||||
}
|
||||
|
||||
private function myUnionRankActionResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:RankEvent = new RankEvent(RankEvent.Rank_unionRankAction);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function unionRankAction(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.function.action.RankAction.getGuildListFromCache";
|
||||
super.connect(_loc2_,this.unionRankActionResult,param1);
|
||||
}
|
||||
|
||||
private function unionRankActionResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:RankEvent = new RankEvent(RankEvent.Rank_unionRankAction);
|
||||
_loc2_.obj = param1;
|
||||
super.dispatchEvent(_loc2_);
|
||||
}
|
||||
|
||||
public function nameUnionRankAction(param1:String) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.function.action.RankAction.getGuildLikeNameView";
|
||||
super.connect(_loc2_,this.nameUnionRankActionResult,param1);
|
||||
}
|
||||
|
||||
private function nameUnionRankActionResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:RankEvent = new RankEvent(RankEvent.Rank_unionRankAction);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function useDestory(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.function.action.FriendAction.useDestory";
|
||||
super.connect(_loc2_,this.useDestoryResult,param1);
|
||||
}
|
||||
|
||||
private function useDestoryResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:FriendEvent = new FriendEvent(FriendEvent.Friend_useDestory);
|
||||
_loc3_.obj = _loc2_.returnObj1;
|
||||
super.dispatchEvent(_loc3_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
40
flash_decompiled/com/control/friend/event/FriendEvent.as
Normal file
40
flash_decompiled/com/control/friend/event/FriendEvent.as
Normal file
@@ -0,0 +1,40 @@
|
||||
package com.control.friend.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class FriendEvent extends Event
|
||||
{
|
||||
|
||||
public static const Friend_addFriend:String = "Friend_addFriend";
|
||||
|
||||
public static const Friend_delFriend:String = "Friend_delFriend";
|
||||
|
||||
public static const Friend_getFriendList:String = "Friend_getFriendList";
|
||||
|
||||
public static const Friend_getApplyFriendCount:String = "Friend_getApplyFriendCount";
|
||||
|
||||
public static const Friend_getAllFriend:String = "Friend_getAllFriend";
|
||||
|
||||
public static const Friend_accFriend:String = "Friend_accFriend";
|
||||
|
||||
public static const Friend_refuseFriend:String = "Friend_refuseFriend";
|
||||
|
||||
public static const Friend_deleteFriend:String = "Friend_deleteFriend";
|
||||
|
||||
public static const Friend_addEnemy:String = "Friend_addEnemy";
|
||||
|
||||
public static const Friend_useDestory:String = "Friend_useDestory";
|
||||
|
||||
public var obj:Object;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public var count:int;
|
||||
|
||||
public function FriendEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
26
flash_decompiled/com/control/friend/event/RankEvent.as
Normal file
26
flash_decompiled/com/control/friend/event/RankEvent.as
Normal file
@@ -0,0 +1,26 @@
|
||||
package com.control.friend.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class RankEvent extends Event
|
||||
{
|
||||
|
||||
public static const Rank_getInvalidTime:String = "Rank_getInvalidTime";
|
||||
|
||||
public static const Rank_myUnionRankAction:String = "Rank_myUnionRankAction";
|
||||
|
||||
public static const Rank_unionRankAction:String = "Rank_unionRankAction";
|
||||
|
||||
public var obj:Object;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public var count:int;
|
||||
|
||||
public function RankEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1286
flash_decompiled/com/control/guild/GuildService.as
Normal file
1286
flash_decompiled/com/control/guild/GuildService.as
Normal file
File diff suppressed because it is too large
Load Diff
175
flash_decompiled/com/control/guild/GuildTransService.as
Normal file
175
flash_decompiled/com/control/guild/GuildTransService.as
Normal file
@@ -0,0 +1,175 @@
|
||||
package com.control.guild
|
||||
{
|
||||
import com.control.connect.Connect;
|
||||
import com.control.data.ReturnBean;
|
||||
import com.control.guild.event.GuildTransEvent;
|
||||
import com.view.mc.sprite.LoadingMc;
|
||||
import com.view.ui.pak.data.PakState;
|
||||
|
||||
public class GuildTransService extends Connect
|
||||
{
|
||||
|
||||
public function GuildTransService()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function getPaginationGuildTrans(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.guild.action.GuildTransAction.getPaginationGuildTrans";
|
||||
super.connect(_loc2_,this.getPaginationGuildTransResult,param1);
|
||||
}
|
||||
|
||||
private function getPaginationGuildTransResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:GuildTransEvent = new GuildTransEvent(GuildTransEvent.Trans_Items_list);
|
||||
_loc3_.itemObj = _loc2_.returnObj1;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getTreasuryCanTransByUserId(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.guild.action.GuildTransAction.getUserTrans";
|
||||
super.connect(_loc2_,this.getTreasuryCanTransByUserIdResult,param1);
|
||||
}
|
||||
|
||||
private function getTreasuryCanTransByUserIdResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:GuildTransEvent = new GuildTransEvent(GuildTransEvent.Trans_Items_mylist);
|
||||
_loc3_.itemObj = _loc2_.returnObj1;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function buyItem(param1:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc2_:String = "com.huzi.guild.action.GuildTransAction.buyItem";
|
||||
super.connect(_loc2_,this.buyItemResult,param1);
|
||||
}
|
||||
|
||||
private function buyItemResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
PakState.setGetPackListStatus();
|
||||
var _loc3_:GuildTransEvent = new GuildTransEvent(GuildTransEvent.Trans_buyItem);
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function cacelTrade(param1:int, param2:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc3_:String = "com.huzi.guild.action.GuildTransAction.cacelTrade";
|
||||
super.connect(_loc3_,this.cacelTradeResult,param1,param2);
|
||||
}
|
||||
|
||||
private function cacelTradeResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
PakState.setGetPackListStatus();
|
||||
var _loc3_:GuildTransEvent = new GuildTransEvent(GuildTransEvent.Trans_Items_cacelTrade);
|
||||
_loc3_.itemObj = _loc2_.returnObj1;
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function tradeItem(param1:int, param2:int, param3:int, param4:int) : void
|
||||
{
|
||||
LoadingMc.getInstance().show();
|
||||
var _loc5_:String = "com.huzi.guild.action.GuildTransAction.tradeItem";
|
||||
super.connect(_loc5_,this.tradeItemResult,param1,param2,param3,param4);
|
||||
}
|
||||
|
||||
private function tradeItemResult(param1:Object) : void
|
||||
{
|
||||
LoadingMc.getInstance().unShow();
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
PakState.setGetPackListStatus();
|
||||
var _loc3_:GuildTransEvent = new GuildTransEvent(GuildTransEvent.Trans_Items_Trade);
|
||||
_loc3_.itemObj = _loc2_.returnObj1;
|
||||
_loc3_.result = _loc2_.result;
|
||||
_loc3_.msg = _loc2_.msg;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function getEvalutions(param1:int) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.guild.action.GuildTransAction.getEvalutions";
|
||||
super.connect(_loc2_,this.getEvalutionsResult,param1);
|
||||
}
|
||||
|
||||
private function getEvalutionsResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:GuildTransEvent = new GuildTransEvent(GuildTransEvent.Trans_getEvalutions);
|
||||
_loc2_.itemObj = param1;
|
||||
dispatchEvent(_loc2_);
|
||||
}
|
||||
|
||||
public function addImpress(param1:int, param2:String) : void
|
||||
{
|
||||
var _loc3_:String = "com.huzi.guild.action.GuildTransAction.createEvalution";
|
||||
super.connect(_loc3_,this.addImpressResult,param1,param2);
|
||||
}
|
||||
|
||||
private function addImpressResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:GuildTransEvent = new GuildTransEvent(GuildTransEvent.Trans_addImpress);
|
||||
_loc3_.itemObj = _loc2_.returnObj1;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
|
||||
public function removeImpress(param1:Array) : void
|
||||
{
|
||||
var _loc2_:String = "com.huzi.guild.action.GuildTransAction.deleteEvalution";
|
||||
super.connect(_loc2_,this.removeImpressResult,param1);
|
||||
}
|
||||
|
||||
private function removeImpressResult(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ReturnBean = param1 as ReturnBean;
|
||||
if(checkResult(_loc2_))
|
||||
{
|
||||
return;
|
||||
}
|
||||
var _loc3_:GuildTransEvent = new GuildTransEvent(GuildTransEvent.Trans_removeImpress);
|
||||
_loc3_.itemObj = _loc2_.returnObj1;
|
||||
dispatchEvent(_loc3_);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
159
flash_decompiled/com/control/guild/event/GuildEvent.as
Normal file
159
flash_decompiled/com/control/guild/event/GuildEvent.as
Normal file
@@ -0,0 +1,159 @@
|
||||
package com.control.guild.event
|
||||
{
|
||||
import com.data.data.guild.Guild;
|
||||
import flash.events.Event;
|
||||
|
||||
public class GuildEvent extends Event
|
||||
{
|
||||
|
||||
public static const Guild_getGuild:String = "Guild_getGuild";
|
||||
|
||||
public static const LegationView:String = "LegationView";
|
||||
|
||||
public static const Guild_Jion_refuse:String = "Guild_Jion_refuse";
|
||||
|
||||
public static const Guild_Jion_permit:String = "Guild_Jion_permit";
|
||||
|
||||
public static const Guild_List_Ranking:String = "Guild_List_Ranking";
|
||||
|
||||
public static const Guild_GetByName:String = "Guild_GetByName";
|
||||
|
||||
public static const Guild_GetByGuildId:String = "Guild_GetByGuildId";
|
||||
|
||||
public static const Guild_JoinGuild:String = "Guild_JoinGuild";
|
||||
|
||||
public static const Guild_Apply_delete:String = "Guild_Apply_delete";
|
||||
|
||||
public static const Guild_GetMemListByGuildId:String = "Guild_GetMemListByGuildId";
|
||||
|
||||
public static const Guild_GetMemInfoById:String = "Guild_GetMemInfoById";
|
||||
|
||||
public static const Guild_GetGuildInfo:String = "Guild_GetGuildInfo";
|
||||
|
||||
public static const Guild_GetInviteList:String = "Guild_GetInviteList";
|
||||
|
||||
public static const Guild_SendInvitation:String = "Guild_SendInvitation";
|
||||
|
||||
public static const Guild_Apply_Refuse:String = "Guild_Apply_Refuse";
|
||||
|
||||
public static const Guild_Apply_Permit:String = "Guild_Apply_Permit";
|
||||
|
||||
public static const Guild_Invitation_Delete:String = "Guild_Invitation_Delete";
|
||||
|
||||
public static const Guild_Event_List:String = "Guild_Event_List";
|
||||
|
||||
public static const Guild_Desc_Update:String = "Guild_Desc_Update";
|
||||
|
||||
public static const Guild_Notice_Update:String = "Guild_Notice_Update";
|
||||
|
||||
public static const Guild_MemList_myGuild:String = "Guild_MemList_myGuild";
|
||||
|
||||
public static const Guild_ChangeQQGroup:String = "Guild_ChangeQQGroup";
|
||||
|
||||
public static const Guild_Upgrade_View:String = "Guild_Upgrade_View";
|
||||
|
||||
public static const Guild_Upgrade_Result:String = "Guild_Upgrade_Result";
|
||||
|
||||
public static const Guild_Offer_View:String = "Guild_Offer_View";
|
||||
|
||||
public static const Guild_Offer_donate:String = "Guild_Offer_donate";
|
||||
|
||||
public static const Guild_Offer_List_Today:String = "Guild_Offer_List_Today";
|
||||
|
||||
public static const Guild_Offer_List_All:String = "Guild_Offer_List_All";
|
||||
|
||||
public static const Guild_Effect_View:String = "Guild_Effect_View";
|
||||
|
||||
public static const Guild_Effect_Give:String = "Guild_Effect_Give";
|
||||
|
||||
public static const Guild_Effect_GetItem:String = "Guild_Effect_GetItem";
|
||||
|
||||
public static const Guild_Build_View:String = "Guild_Build_View";
|
||||
|
||||
public static const Guild_Build_BoxView:String = "Guild_Build_BoxView";
|
||||
|
||||
public static const Guild_Build_BoxPlay:String = "Guild_Build_BoxPlay";
|
||||
|
||||
public static const Guild_Build_BoxPlay_oneKey:String = "Guild_Build_BoxPlay_oneKey";
|
||||
|
||||
public static const Guild_Tech_View:String = "Guild_Tech_View";
|
||||
|
||||
public static const Guild_Tech_Upgrade:String = "Guild_Tech_Upgrade";
|
||||
|
||||
public static const Guild_Bui_Upgrade:String = "Guild_Bui_Upgrade";
|
||||
|
||||
public static const Guild_fireMember:String = "Guild_fireMember";
|
||||
|
||||
public static const Guild_changeDuty:String = "Guild_changeDuty";
|
||||
|
||||
public static const Guild_dismiss:String = "Guild_dismiss";
|
||||
|
||||
public static const Guild_cancelDismiss:String = "Guild_cancelDismiss";
|
||||
|
||||
public static const Guild_changeLeader:String = "Guild_changeLeader";
|
||||
|
||||
public static const Guild_cancelChangeLeader:String = "Guild_cancelChangeLeader";
|
||||
|
||||
public static const Guild_getBuildArmy:String = "Guild_getBuildArmy";
|
||||
|
||||
public static const Guild_trainArmy:String = "Guild_trainArmy";
|
||||
|
||||
public static const Guild_startWarToGuild:String = "Guild_startWarToGuild";
|
||||
|
||||
public static const Guild_initUnionWar:String = "Guild_initUnionWar";
|
||||
|
||||
public static const Guild_createGuild:String = "Guild_createGuild";
|
||||
|
||||
public static const Guild_getCombineView:String = "Guild_getCombineView";
|
||||
|
||||
public static const Guild_cancelCombine:String = "Guild_cancelCombine";
|
||||
|
||||
public static const Guild_inviteCombine:String = "Guild_inviteCombine";
|
||||
|
||||
public static const Guild_refuseCombine:String = "Guild_refuseCombine";
|
||||
|
||||
public static const Guild_acceptCombine:String = "Guild_acceptCombine";
|
||||
|
||||
public static const Guild_quitGuild:String = "Guild_quitGuild";
|
||||
|
||||
public var legationObj:Object;
|
||||
|
||||
public var rankingArr:Array;
|
||||
|
||||
public var rankCount:int;
|
||||
|
||||
public var rankPage:int;
|
||||
|
||||
public var guild:Guild;
|
||||
|
||||
public var memList:Array;
|
||||
|
||||
public var totalNum:int;
|
||||
|
||||
public var guildId:int;
|
||||
|
||||
public var startNum:int;
|
||||
|
||||
public var memberObj:Object;
|
||||
|
||||
public var guildObj:Object;
|
||||
|
||||
public var eventList:Array;
|
||||
|
||||
public var str:String;
|
||||
|
||||
public var canViewStatus:int;
|
||||
|
||||
public var buildObj:Object;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function GuildEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
30
flash_decompiled/com/control/guild/event/GuildTradeEvent.as
Normal file
30
flash_decompiled/com/control/guild/event/GuildTradeEvent.as
Normal file
@@ -0,0 +1,30 @@
|
||||
package com.control.guild.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class GuildTradeEvent extends Event
|
||||
{
|
||||
|
||||
public static const Trade_getTradeData:String = "Trade_getTradeData";
|
||||
|
||||
public static const Trade_getTradeSettingData:String = "Trade_getTradeSettingData";
|
||||
|
||||
public static const Trade_sendTradeSave:String = "Trade_sendTradeSave";
|
||||
|
||||
public static const Trade_sendTradeStart:String = "Trade_sendTradeStart";
|
||||
|
||||
public var obj:Object;
|
||||
|
||||
public var list:Array;
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public function GuildTradeEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
40
flash_decompiled/com/control/guild/event/GuildTransEvent.as
Normal file
40
flash_decompiled/com/control/guild/event/GuildTransEvent.as
Normal file
@@ -0,0 +1,40 @@
|
||||
package com.control.guild.event
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
public class GuildTransEvent extends Event
|
||||
{
|
||||
|
||||
public static const Trans_Items_list:String = "Trans_Items_list";
|
||||
|
||||
public static const Trans_Items_mylist:String = "Trans_Items_mylist";
|
||||
|
||||
public static const Trans_Items_buy:String = "Trans_Items_buy";
|
||||
|
||||
public static const Trans_Items_cacelTrade:String = "Trans_Items_cacelTrade";
|
||||
|
||||
public static const Trans_Items_Trade:String = "Trans_Items_Trade";
|
||||
|
||||
public static const Trans_getEvalutions:String = "Trans_getEvalutions";
|
||||
|
||||
public static const Trans_addImpress:String = "Trans_addImpress";
|
||||
|
||||
public static const Trans_removeImpress:String = "Trans_removeImpress";
|
||||
|
||||
public static const Trans_buyItem:String = "Trans_buyItem";
|
||||
|
||||
public var result:int;
|
||||
|
||||
public var msg:String;
|
||||
|
||||
public var itemObj:Object;
|
||||
|
||||
public var itemList:Array;
|
||||
|
||||
public function GuildTransEvent(param1:String)
|
||||
{
|
||||
super(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user