Section 1
//Bar0 (bars.Bar0)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar0 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar0(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 2
//Bar1 (bars.Bar1)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar1 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar1(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 3
//Bar10 (bars.Bar10)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar10 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar10(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 4
//Bar11 (bars.Bar11)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar11 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar11(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 5
//Bar2 (bars.Bar2)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar2 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar2(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 6
//Bar3 (bars.Bar3)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar3 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar3(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 7
//Bar4 (bars.Bar4)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar4 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar4(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 8
//Bar5 (bars.Bar5)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar5 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar5(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 9
//Bar6 (bars.Bar6)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar6 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar6(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 10
//Bar7 (bars.Bar7)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar7 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar7(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 11
//Bar8 (bars.Bar8)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar8 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar8(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 12
//Bar9 (bars.Bar9)
package bars {
import flash.events.*;
import flash.display.*;
public class Bar9 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
private var achange;// = 0
public var dy;
public var dyfix;
private var par;
public var dx;
private var ly;
private var lx;
public function Bar9(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
achange = 0;
man = false;
dy = (-14 - (Math.random() * 15));
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = par.playRoll;
master = _arg4;
yfix = master.y;
if (t.x < master.x){
dx = ((Math.random() * 15) - 5);
drot = ((Math.random() * 20) - 5);
};
if (t.x >= master.x){
dx = ((-(Math.random()) * 15) + 5);
drot = ((-(Math.random()) * 20) + 5);
};
this.addEventListener(Event.ENTER_FRAME, barAction, false, 0, true);
}
private function barAction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
rotation = (rotation + drot);
if ((((y >= yfix)) && ((dy > 0)))){
achange = 1;
y = yfix;
dy = (dy * -0.5);
};
if (achange == 1){
alpha = (alpha - 0.05);
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((alpha <= 0)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, barAction);
};
}
}
}//package bars
Section 13
//a_keyMC_189 (BlueKnight_US_English2_fla.a_keyMC_189)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class a_keyMC_189 extends MovieClip {
public function a_keyMC_189(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 14
//aweaponshow_9 (BlueKnight_US_English2_fla.aweaponshow_9)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class aweaponshow_9 extends MovieClip {
public function aweaponshow_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 15
//c_keyMC_200 (BlueKnight_US_English2_fla.c_keyMC_200)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class c_keyMC_200 extends MovieClip {
public function c_keyMC_200(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 16
//curten_206 (BlueKnight_US_English2_fla.curten_206)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class curten_206 extends MovieClip {
public function curten_206(){
addFrameScript(7, frame8, 16, frame17);
}
function frame8(){
stop();
}
function frame17(){
gotoAndStop(1);
}
}
}//package BlueKnight_US_English2_fla
Section 17
//d_keyMC_191 (BlueKnight_US_English2_fla.d_keyMC_191)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class d_keyMC_191 extends MovieClip {
public function d_keyMC_191(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 18
//down_keyMC_205 (BlueKnight_US_English2_fla.down_keyMC_205)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class down_keyMC_205 extends MovieClip {
public function down_keyMC_205(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 19
//gameocertitle_126 (BlueKnight_US_English2_fla.gameocertitle_126)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class gameocertitle_126 extends MovieClip {
public function gameocertitle_126(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 20
//huamianzhiliang_223 (BlueKnight_US_English2_fla.huamianzhiliang_223)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class huamianzhiliang_223 extends MovieClip {
public function huamianzhiliang_223(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 21
//i_keyMC_193 (BlueKnight_US_English2_fla.i_keyMC_193)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class i_keyMC_193 extends MovieClip {
public function i_keyMC_193(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 22
//j_keyMC_192 (BlueKnight_US_English2_fla.j_keyMC_192)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class j_keyMC_192 extends MovieClip {
public function j_keyMC_192(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 23
//k_keyMC_194 (BlueKnight_US_English2_fla.k_keyMC_194)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class k_keyMC_194 extends MovieClip {
public function k_keyMC_194(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 24
//l_keyMC_195 (BlueKnight_US_English2_fla.l_keyMC_195)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class l_keyMC_195 extends MovieClip {
public function l_keyMC_195(){
addFrameScript(0, frame1, 16, frame17);
}
function frame1(){
stop();
}
function frame17(){
gotoAndStop(1);
}
}
}//package BlueKnight_US_English2_fla
Section 25
//left_keyMC_203 (BlueKnight_US_English2_fla.left_keyMC_203)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class left_keyMC_203 extends MovieClip {
public function left_keyMC_203(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 26
//loadbar_249 (BlueKnight_US_English2_fla.loadbar_249)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class loadbar_249 extends MovieClip {
public function loadbar_249(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 27
//musicmc_247 (BlueKnight_US_English2_fla.musicmc_247)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class musicmc_247 extends MovieClip {
public function musicmc_247(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 28
//right_keyMC_204 (BlueKnight_US_English2_fla.right_keyMC_204)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class right_keyMC_204 extends MovieClip {
public function right_keyMC_204(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 29
//road_232 (BlueKnight_US_English2_fla.road_232)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class road_232 extends MovieClip {
public function road_232(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 30
//rolllife_8 (BlueKnight_US_English2_fla.rolllife_8)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class rolllife_8 extends MovieClip {
public function rolllife_8(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 31
//s_keyMC_190 (BlueKnight_US_English2_fla.s_keyMC_190)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class s_keyMC_190 extends MovieClip {
public function s_keyMC_190(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 32
//shead_178 (BlueKnight_US_English2_fla.shead_178)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class shead_178 extends MovieClip {
public function shead_178(){
addFrameScript(0, frame1, 19, frame20, 34, frame35);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
function frame35(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 33
//shengyinkaiguan_224 (BlueKnight_US_English2_fla.shengyinkaiguan_224)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class shengyinkaiguan_224 extends MovieClip {
public function shengyinkaiguan_224(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 34
//sound3mc_246 (BlueKnight_US_English2_fla.sound3mc_246)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class sound3mc_246 extends MovieClip {
public function sound3mc_246(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 35
//soundmc_245 (BlueKnight_US_English2_fla.soundmc_245)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class soundmc_245 extends MovieClip {
public function soundmc_245(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 36
//space_keyMC_201 (BlueKnight_US_English2_fla.space_keyMC_201)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class space_keyMC_201 extends MovieClip {
public function space_keyMC_201(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 37
//surprise_63 (BlueKnight_US_English2_fla.surprise_63)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class surprise_63 extends MovieClip {
public function surprise_63(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 38
//up_keyMC_202 (BlueKnight_US_English2_fla.up_keyMC_202)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class up_keyMC_202 extends MovieClip {
public function up_keyMC_202(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 39
//w_keyMC_188 (BlueKnight_US_English2_fla.w_keyMC_188)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class w_keyMC_188 extends MovieClip {
public function w_keyMC_188(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 40
//x_keyMC_199 (BlueKnight_US_English2_fla.x_keyMC_199)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class x_keyMC_199 extends MovieClip {
public function x_keyMC_199(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 41
//z_keyMC_198 (BlueKnight_US_English2_fla.z_keyMC_198)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class z_keyMC_198 extends MovieClip {
public function z_keyMC_198(){
addFrameScript(0, frame1, 16, frame17);
}
function frame1(){
stop();
}
function frame17(){
gotoAndStop(1);
}
}
}//package BlueKnight_US_English2_fla
Section 42
//zz2_210 (BlueKnight_US_English2_fla.zz2_210)
package BlueKnight_US_English2_fla {
import flash.display.*;
public dynamic class zz2_210 extends MovieClip {
public function zz2_210(){
addFrameScript(6, frame7, 30, frame31);
}
function frame7(){
stop();
}
function frame31(){
stop();
}
}
}//package BlueKnight_US_English2_fla
Section 43
//CampaignInfo (com.google.analytics.campaign.CampaignInfo)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignInfo {
private var _new:Boolean;
private var _empty:Boolean;
public function CampaignInfo(_arg1:Boolean=true, _arg2:Boolean=false){
_empty = _arg1;
_new = _arg2;
}
public function isEmpty():Boolean{
return (_empty);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((!(isEmpty())) && (isNew()))){
_local1.utmcn = utmcn;
};
if (((!(isEmpty())) && (!(isNew())))){
_local1.utmcr = utmcr;
};
return (_local1);
}
public function isNew():Boolean{
return (_new);
}
public function get utmcn():String{
return ("1");
}
public function get utmcr():String{
return ("1");
}
}
}//package com.google.analytics.campaign
Section 44
//CampaignKey (com.google.analytics.campaign.CampaignKey)
package com.google.analytics.campaign {
public class CampaignKey {
public var UCMD:String;// = "utm_medium"
public var UCID:String;// = "utm_id"
public var UCTR:String;// = "utm_term"
public var UCSR:String;// = "utm_source"
public var UCNO:String;// = "utm_nooverride"
public var UCCN:String;// = "utm_campaign"
public var UGCLID:String;// = "gclid"
public var UCCT:String;// = "utm_content"
}
}//package com.google.analytics.campaign
Section 45
//CampaignManager (com.google.analytics.campaign.CampaignManager)
package com.google.analytics.campaign {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
public class CampaignManager {
private var _config:Configuration;
private var _domainHash:Number;
private var _debug:DebugConfiguration;
private var _timeStamp:Number;
private var _referrer:String;
private var _buffer:Buffer;
public static const trackingDelimiter:String = "|";
public function CampaignManager(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Number, _arg5:String, _arg6:Number){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_domainHash = _arg4;
_referrer = _arg5;
_timeStamp = _arg6;
}
public function hasNoOverride(_arg1:String):Boolean{
var _local2:CampaignKey;
var _local3:Variables;
var _local4:String;
_local2 = _config.campaignKey;
if (_arg1 == ""){
return (false);
};
_local3 = new Variables(_arg1);
_local4 = "";
if (_local3.hasOwnProperty(_local2.UCNO)){
_local4 = _local3[_local2.UCNO];
switch (_local4){
case "1":
return (true);
case "":
case "0":
default:
return (false);
};
};
return (false);
}
public function getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{
var _local3:CampaignInfo;
var _local4:CampaignTracker;
var _local5:Boolean;
var _local6:Boolean;
var _local7:int;
var _local8:CampaignTracker;
var _local9:int;
_local3 = new CampaignInfo();
_local5 = false;
_local6 = false;
_local7 = 0;
if (((_config.allowLinker) && (_buffer.isGenuine()))){
if (!_buffer.hasUTMZ()){
return (_local3);
};
};
_local4 = getTrackerFromSearchString(_arg1);
if (isValid(_local4)){
_local6 = hasNoOverride(_arg1);
if (((_local6) && (!(_buffer.hasUTMZ())))){
return (_local3);
};
};
if (!isValid(_local4)){
_local4 = getOrganicCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredKeyword(_local4)))){
return (_local3);
};
};
if (((!(isValid(_local4))) && (_arg2))){
_local4 = getReferrerCampaign();
if (((!(_buffer.hasUTMZ())) && (isIgnoredReferral(_local4)))){
return (_local3);
};
};
if (!isValid(_local4)){
if (((!(_buffer.hasUTMZ())) && (_arg2))){
_local4 = getDirectCampaign();
};
};
if (!isValid(_local4)){
return (_local3);
};
if (((_buffer.hasUTMZ()) && (!(_buffer.utmz.isEmpty())))){
_local8 = new CampaignTracker();
_local8.fromTrackerString(_buffer.utmz.campaignTracking);
_local5 = (_local8.toTrackerString() == _local4.toTrackerString());
_local7 = _buffer.utmz.responseCount;
};
if (((!(_local5)) || (_arg2))){
_local9 = _buffer.utma.sessionCount;
_local7++;
if (_local9 == 0){
_local9 = 1;
};
_buffer.utmz.domainHash = _domainHash;
_buffer.utmz.campaignCreation = _timeStamp;
_buffer.utmz.campaignSessions = _local9;
_buffer.utmz.responseCount = _local7;
_buffer.utmz.campaignTracking = _local4.toTrackerString();
_debug.info(_buffer.utmz.toString(), VisualDebugMode.geek);
_local3 = new CampaignInfo(false, true);
} else {
_local3 = new CampaignInfo(false, false);
};
return (_local3);
}
public function isValid(_arg1:CampaignTracker):Boolean{
if (((_arg1) && (_arg1.isValid()))){
return (true);
};
return (false);
}
public function getTrackerFromSearchString(_arg1:String):CampaignTracker{
var _local2:CampaignTracker;
var _local3:CampaignTracker;
var _local4:CampaignKey;
var _local5:Variables;
_local2 = getOrganicCampaign();
_local3 = new CampaignTracker();
_local4 = _config.campaignKey;
if (_arg1 == ""){
return (_local3);
};
_local5 = new Variables(_arg1);
if (_local5.hasOwnProperty(_local4.UCID)){
_local3.id = _local5[_local4.UCID];
};
if (_local5.hasOwnProperty(_local4.UCSR)){
_local3.source = _local5[_local4.UCSR];
};
if (_local5.hasOwnProperty(_local4.UGCLID)){
_local3.clickId = _local5[_local4.UGCLID];
};
if (_local5.hasOwnProperty(_local4.UCCN)){
_local3.name = _local5[_local4.UCCN];
} else {
_local3.name = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCMD)){
_local3.medium = _local5[_local4.UCMD];
} else {
_local3.medium = "(not set)";
};
if (_local5.hasOwnProperty(_local4.UCTR)){
_local3.term = _local5[_local4.UCTR];
} else {
if (((_local2) && (!((_local2.term == ""))))){
_local3.term = _local2.term;
};
};
if (_local5.hasOwnProperty(_local4.UCCT)){
_local3.content = _local5[_local4.UCCT];
};
return (_local3);
}
public function getOrganicCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:Array;
var _local5:OrganicReferrer;
var _local6:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = "";
if (_local2.hostName != ""){
if (_local2.hostName.indexOf(".") > -1){
_local4 = _local2.hostName.split(".");
switch (_local4.length){
case 2:
_local3 = _local4[0];
break;
case 3:
_local3 = _local4[1];
break;
};
};
};
if (_config.organic.match(_local3)){
_local5 = _config.organic.getReferrerByName(_local3);
_local6 = _config.organic.getKeywordValue(_local5, _local2.search);
_local1 = new CampaignTracker();
_local1.source = _local5.engine;
_local1.name = "(organic)";
_local1.medium = "organic";
_local1.term = _local6;
};
return (_local1);
}
public function isIgnoredReferral(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "referral")))){
return (_config.organic.isIgnoredReferral(_arg1.source));
};
return (false);
}
public function getDirectCampaign():CampaignTracker{
var _local1:CampaignTracker;
_local1 = new CampaignTracker();
_local1.source = "(direct)";
_local1.name = "(direct)";
_local1.medium = "(none)";
return (_local1);
}
public function isIgnoredKeyword(_arg1:CampaignTracker):Boolean{
if (((_arg1) && ((_arg1.medium == "organic")))){
return (_config.organic.isIgnoredKeyword(_arg1.term));
};
return (false);
}
public function getReferrerCampaign():CampaignTracker{
var _local1:CampaignTracker;
var _local2:URL;
var _local3:String;
var _local4:String;
if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){
return (_local1);
};
_local2 = new URL(_referrer);
_local3 = _local2.hostName;
_local4 = _local2.path;
if (_local3.indexOf("www.") == 0){
_local3 = _local3.substr(4);
};
_local1 = new CampaignTracker();
_local1.source = _local3;
_local1.name = "(referral)";
_local1.medium = "referral";
_local1.content = _local4;
return (_local1);
}
public static function isInvalidReferrer(_arg1:String):Boolean{
var _local2:URL;
if ((((((_arg1 == "")) || ((_arg1 == "-")))) || ((_arg1 == "0")))){
return (true);
};
if (_arg1.indexOf("://") > -1){
_local2 = new URL(_arg1);
if ((((_local2.protocol == Protocols.file)) || ((_local2.protocol == Protocols.none)))){
return (true);
};
};
return (false);
}
public static function isFromGoogleCSE(_arg1:String, _arg2:Configuration):Boolean{
var _local3:URL;
_local3 = new URL(_arg1);
if (_local3.hostName.indexOf(_arg2.google) > -1){
if (_local3.search.indexOf((_arg2.googleSearchParam + "=")) > -1){
if (_local3.path == ("/" + _arg2.googleCsePath)){
return (true);
};
};
};
return (false);
}
}
}//package com.google.analytics.campaign
Section 46
//CampaignTracker (com.google.analytics.campaign.CampaignTracker)
package com.google.analytics.campaign {
import com.google.analytics.utils.*;
public class CampaignTracker {
public var content:String;
public var source:String;
public var clickId:String;
public var name:String;
public var term:String;
public var medium:String;
public var id:String;
public function CampaignTracker(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:String="", _arg5:String="", _arg6:String="", _arg7:String=""){
this.id = _arg1;
this.source = _arg2;
this.clickId = _arg3;
this.name = _arg4;
this.medium = _arg5;
this.term = _arg6;
this.content = _arg7;
}
public function isValid():Boolean{
if (((((!((id == ""))) || (!((source == ""))))) || (!((clickId == ""))))){
return (true);
};
return (false);
}
public function toTrackerString():String{
var _local1:Array = [];
_addIfNotEmpty(_local1, "utmcsr=", source);
_addIfNotEmpty(_local1, "utmccn=", name);
_addIfNotEmpty(_local1, "utmcmd=", medium);
_addIfNotEmpty(_local1, "utmctr=", term);
_addIfNotEmpty(_local1, "utmcct=", content);
_addIfNotEmpty(_local1, "utmcid=", id);
_addIfNotEmpty(_local1, "utmgclid=", clickId);
return (_local1.join(CampaignManager.trackingDelimiter));
}
private function _addIfNotEmpty(_arg1:Array, _arg2:String, _arg3:String):void{
if (_arg3 != ""){
_arg3 = _arg3.split("+").join("%20");
_arg3 = _arg3.split(" ").join("%20");
_arg1.push((_arg2 + _arg3));
};
}
public function fromTrackerString(_arg1:String):void{
var _local2:String = _arg1.split(CampaignManager.trackingDelimiter).join("&");
var _local3:Variables = new Variables(_local2);
if (_local3.hasOwnProperty("utmcid")){
this.id = _local3["utmcid"];
};
if (_local3.hasOwnProperty("utmcsr")){
this.source = _local3["utmcsr"];
};
if (_local3.hasOwnProperty("utmccn")){
this.name = _local3["utmccn"];
};
if (_local3.hasOwnProperty("utmcmd")){
this.medium = _local3["utmcmd"];
};
if (_local3.hasOwnProperty("utmctr")){
this.term = _local3["utmctr"];
};
if (_local3.hasOwnProperty("utmcct")){
this.content = _local3["utmcct"];
};
if (_local3.hasOwnProperty("utmgclid")){
this.clickId = _local3["utmgclid"];
};
}
}
}//package com.google.analytics.campaign
Section 47
//FlashTracker (com.google.analytics.components.FlashTracker)
package com.google.analytics.components {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.*;
import flash.utils.*;
import com.google.analytics.events.*;
public class FlashTracker extends Sprite implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
protected var _height:Number;// = 18
private var _idleTimer:IdleTimer;
private var _config:Configuration;
private var _mode:String;// = "AS3"
private var _dom:HTMLDOM;
private var _ready:Boolean;// = false
protected var _width:Number;// = 18
private var _account:String;// = ""
protected var _componentInspectorSetting:Boolean;
private var _visualDebug:Boolean;// = false
public var boundingBox_mc:DisplayObject;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _display:DisplayObject;
protected var livePreviewHeight:Number;
private var _jsproxy:JavascriptProxy;
protected var isLivePreview:Boolean;
protected var preview:MovieClip;
private var _gifRequest:GIFRequest;
protected var livePreviewWidth:Number;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public function FlashTracker(){
_ready = false;
_account = "";
_mode = TrackerMode.AS3;
_visualDebug = false;
_width = 18;
_height = 18;
super();
_tracker = new TrackerCache();
isLivePreview = _checkLivePreview();
_componentInspectorSetting = false;
if (boundingBox_mc){
boundingBox_mc.visible = false;
removeChild(boundingBox_mc);
boundingBox_mc = null;
};
if (isLivePreview){
_createLivePreview();
};
addEventListener(Event.ENTER_FRAME, _factory);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function trackTrans():void{
_tracker.trackTrans();
}
private function _createLivePreview():void{
var _local1:Graphics;
var _local2:Class;
preview = new MovieClip();
_local1 = preview.graphics;
_local1.beginFill(0xFFFFFF);
_local1.moveTo(0, 0);
_local1.lineTo(0, _width);
_local1.lineTo(_width, _height);
_local1.lineTo(_height, 0);
_local1.lineTo(0, 0);
_local1.endFill();
_local2 = (getDefinitionByName("com.google.analytics.components::Icon") as Class);
preview.icon_mc = new (_local2);
preview.icon_mc.name = "icon_mc";
preview.addChild(preview.icon_mc);
addChild(preview);
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function get debug():DebugConfiguration{
if (!_debug){
_createDebugAndConfig();
};
return (_debug);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function isReady():Boolean{
return (_ready);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_componentInspectorSetting = _arg1;
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function get config():Configuration{
if (!_config){
_createDebugAndConfig();
};
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
private function _checkLivePreview():Boolean{
if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){
return (true);
};
return (false);
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function setSize(_arg1:Number, _arg2:Number):void{
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function get mode():String{
return (_mode);
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory(_arg1:Event):void{
var _local2:GoogleAnalyticsAPI;
var _local3:TrackerCache;
removeEventListener(Event.ENTER_FRAME, _factory);
if (isLivePreview){
return;
};
_display = this;
_createDebugAndConfig();
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
_jsproxy = new JavascriptProxy(debug);
_local3 = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local2 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local2 = _trackerFactory();
};
if (!_local3.isEmpty()){
_local3.tracker = _local2;
_local3.flush();
};
_tracker = _local2;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
private function _createDebugAndConfig():void{
if (!_debug){
this.debug = new DebugConfiguration();
};
if (!_config){
this.config = new Configuration(debug);
};
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics.components
Section 48
//Icon (com.google.analytics.components.Icon)
package com.google.analytics.components {
import flash.display.*;
public dynamic class Icon extends MovieClip {
}
}//package com.google.analytics.components
Section 49
//BrowserInfo (com.google.analytics.core.BrowserInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
public class BrowserInfo {
private var _config:Configuration;
private var _info:Environment;
public function BrowserInfo(_arg1:Configuration, _arg2:Environment){
_config = _arg1;
_info = _arg2;
}
public function get utmul():String{
return (_info.language.toLowerCase());
}
public function get utmje():String{
return ("0");
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function get utmsr():String{
return (((_info.screenWidth + "x") + _info.screenHeight));
}
public function get utmcs():String{
return (_info.languageEncoding);
}
public function get utmfl():String{
var _local1:Version;
if (_config.detectFlash){
_local1 = _info.flashVersion;
return (((((_local1.major + ".") + _local1.minor) + " r") + _local1.build));
};
return ("-");
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
_local1.utmcs = utmcs;
_local1.utmsr = utmsr;
_local1.utmsc = utmsc;
_local1.utmul = utmul;
_local1.utmje = utmje;
_local1.utmfl = utmfl;
return (_local1);
}
public function get utmsc():String{
return ((_info.screenColorDepth + "-bit"));
}
}
}//package com.google.analytics.core
Section 50
//Buffer (com.google.analytics.core.Buffer)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import flash.events.*;
import com.google.analytics.data.*;
public dynamic class Buffer {
private var _SO:SharedObject;
private var _OBJ:Object;
private var _utma:UTMA;
private var _utmb:UTMB;
private var _utmc:UTMC;
private var _debug:DebugConfiguration;
private var _utmk:UTMK;
private var _config:Configuration;
private var _utmv:UTMV;
private var _utmz:UTMZ;
private var _volatile:Boolean;
public function Buffer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Boolean=false, _arg4:Object=null){
var _local5:Boolean;
var _local6:String;
super();
_config = _arg1;
_debug = _arg2;
UTMB.defaultTimespan = _config.sessionTimeout;
UTMZ.defaultTimespan = _config.conversionTimeout;
if (!_arg3){
_SO = SharedObject.getLocal(_config.cookieName, _config.cookiePath);
_local5 = false;
if (_SO.data.utma){
if (!hasUTMA()){
_createUMTA();
};
_utma.fromSharedObject(_SO.data.utma);
if (_debug.verbose){
_debug.info(("found: " + _utma.toString(true)), VisualDebugMode.geek);
};
if (_utma.isExpired()){
if (_debug.verbose){
_debug.warning("UTMA has expired", VisualDebugMode.advanced);
};
_clearUTMA();
_local5 = true;
};
};
if (_SO.data.utmb){
if (!hasUTMB()){
_createUMTB();
};
_utmb.fromSharedObject(_SO.data.utmb);
if (_debug.verbose){
_debug.info(("found: " + _utmb.toString(true)), VisualDebugMode.geek);
};
if (_utmb.isExpired()){
if (_debug.verbose){
_debug.warning("UTMB has expired", VisualDebugMode.advanced);
};
_clearUTMB();
_local5 = true;
};
};
if (_SO.data.utmc){
delete _SO.data.utmc;
_local5 = true;
};
if (_SO.data.utmk){
if (!hasUTMK()){
_createUMTK();
};
_utmk.fromSharedObject(_SO.data.utmk);
if (_debug.verbose){
_debug.info(("found: " + _utmk.toString()), VisualDebugMode.geek);
};
};
if (_SO.data.utmv){
if (!hasUTMV()){
_createUMTV();
};
_utmv.fromSharedObject(_SO.data.utmv);
if (_debug.verbose){
_debug.info(("found: " + _utmv.toString(true)), VisualDebugMode.geek);
};
if (_utmv.isExpired()){
if (_debug.verbose){
_debug.warning("UTMV has expired", VisualDebugMode.advanced);
};
_clearUTMV();
_local5 = true;
};
};
if (_SO.data.utmz){
if (!hasUTMZ()){
_createUMTZ();
};
_utmz.fromSharedObject(_SO.data.utmz);
if (_debug.verbose){
_debug.info(("found: " + _utmz.toString(true)), VisualDebugMode.geek);
};
if (_utmz.isExpired()){
if (_debug.verbose){
_debug.warning("UTMZ has expired", VisualDebugMode.advanced);
};
_clearUTMZ();
_local5 = true;
};
};
if (_local5){
save();
};
} else {
_OBJ = new Object();
if (_arg4){
for (_local6 in _arg4) {
_OBJ[_local6] = _arg4[_local6];
};
};
};
_volatile = _arg3;
}
public function clearCookies():void{
utma.reset();
utmb.reset();
utmc.reset();
utmz.reset();
utmv.reset();
utmk.reset();
}
public function save():void{
var flushStatus:String;
if (!isVolatile()){
flushStatus = null;
try {
flushStatus = _SO.flush();
} catch(e:Error) {
_debug.warning("Error...Could not write SharedObject to disk");
};
switch (flushStatus){
case SharedObjectFlushStatus.PENDING:
_debug.info("Requesting permission to save object...");
_SO.addEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
break;
case SharedObjectFlushStatus.FLUSHED:
_debug.info("Value flushed to disk.");
break;
};
};
}
public function get utmv():UTMV{
if (!hasUTMV()){
_createUMTV();
};
return (_utmv);
}
public function get utmz():UTMZ{
if (!hasUTMZ()){
_createUMTZ();
};
return (_utmz);
}
public function hasUTMA():Boolean{
if (_utma){
return (true);
};
return (false);
}
public function hasUTMB():Boolean{
if (_utmb){
return (true);
};
return (false);
}
public function hasUTMC():Boolean{
if (_utmc){
return (true);
};
return (false);
}
public function isGenuine():Boolean{
if (!hasUTMK()){
return (true);
};
return ((utmk.hash == generateCookiesHash()));
}
public function resetCurrentSession():void{
_clearUTMB();
_clearUTMC();
save();
}
public function hasUTMK():Boolean{
if (_utmk){
return (true);
};
return (false);
}
public function generateCookiesHash():Number{
var _local1 = "";
_local1 = (_local1 + utma.valueOf());
_local1 = (_local1 + utmb.valueOf());
_local1 = (_local1 + utmc.valueOf());
_local1 = (_local1 + utmz.valueOf());
_local1 = (_local1 + utmv.valueOf());
return (Utils.generateHash(_local1));
}
private function _createUMTB():void{
_utmb = new UTMB();
_utmb.proxy = this;
}
private function _createUMTC():void{
_utmc = new UTMC();
}
private function _createUMTA():void{
_utma = new UTMA();
_utma.proxy = this;
}
public function hasUTMV():Boolean{
if (_utmv){
return (true);
};
return (false);
}
private function _createUMTK():void{
_utmk = new UTMK();
_utmk.proxy = this;
}
public function hasUTMZ():Boolean{
if (_utmz){
return (true);
};
return (false);
}
private function _createUMTV():void{
_utmv = new UTMV();
_utmv.proxy = this;
}
private function _onFlushStatus(_arg1:NetStatusEvent):void{
_debug.info("User closed permission dialog...");
switch (_arg1.info.code){
case "SharedObject.Flush.Success":
_debug.info("User granted permission -- value saved.");
break;
case "SharedObject.Flush.Failed":
_debug.info("User denied permission -- value not saved.");
break;
};
_SO.removeEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus);
}
private function _createUMTZ():void{
_utmz = new UTMZ();
_utmz.proxy = this;
}
public function updateUTMA(_arg1:Number):void{
if (_debug.verbose){
_debug.info((("updateUTMA( " + _arg1) + " )"), VisualDebugMode.advanced);
};
if (!utma.isEmpty()){
if (isNaN(utma.sessionCount)){
utma.sessionCount = 1;
} else {
utma.sessionCount = (utma.sessionCount + 1);
};
utma.lastTime = utma.currentTime;
utma.currentTime = _arg1;
};
}
private function _clearUTMA():void{
_utma = null;
if (!isVolatile()){
_SO.data.utma = null;
delete _SO.data.utma;
};
}
private function _clearUTMC():void{
_utmc = null;
}
private function _clearUTMB():void{
_utmb = null;
if (!isVolatile()){
_SO.data.utmb = null;
delete _SO.data.utmb;
};
}
public function update(_arg1:String, _arg2):void{
if (isVolatile()){
_OBJ[_arg1] = _arg2;
} else {
_SO.data[_arg1] = _arg2;
};
}
private function _clearUTMZ():void{
_utmz = null;
if (!isVolatile()){
_SO.data.utmz = null;
delete _SO.data.utmz;
};
}
private function _clearUTMV():void{
_utmv = null;
if (!isVolatile()){
_SO.data.utmv = null;
delete _SO.data.utmv;
};
}
public function isVolatile():Boolean{
return (_volatile);
}
public function get utma():UTMA{
if (!hasUTMA()){
_createUMTA();
};
return (_utma);
}
public function get utmb():UTMB{
if (!hasUTMB()){
_createUMTB();
};
return (_utmb);
}
public function get utmc():UTMC{
if (!hasUTMC()){
_createUMTC();
};
return (_utmc);
}
public function get utmk():UTMK{
if (!hasUTMK()){
_createUMTK();
};
return (_utmk);
}
}
}//package com.google.analytics.core
Section 51
//DocumentInfo (com.google.analytics.core.DocumentInfo)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
public class DocumentInfo {
private var _config:Configuration;
private var _utmr:String;
private var _adSense:AdSenseGlobals;
private var _info:Environment;
private var _pageURL:String;
public function DocumentInfo(_arg1:Configuration, _arg2:Environment, _arg3:String, _arg4:String=null, _arg5:AdSenseGlobals=null){
_config = _arg1;
_info = _arg2;
_utmr = _arg3;
_pageURL = _arg4;
_adSense = _arg5;
}
public function get utmr():String{
if (!_utmr){
return ("-");
};
return (_utmr);
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
private function _renderPageURL(_arg1:String=""):String{
var _local2:String;
var _local3:String;
_local2 = _info.locationPath;
_local3 = _info.locationSearch;
if (((!(_arg1)) || ((_arg1 == "")))){
_arg1 = (_local2 + unescape(_local3));
};
return (_arg1);
}
public function get utmp():String{
return (_renderPageURL(_pageURL));
}
private function _generateHitId():Number{
var _local1:Number;
if (((_adSense.hid) && (!((_adSense.hid == ""))))){
_local1 = Number(_adSense.hid);
} else {
_local1 = Math.round((Math.random() * 2147483647));
_adSense.hid = String(_local1);
};
return (_local1);
}
public function get utmhid():String{
return (String(_generateHitId()));
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (((_config.detectTitle) && (!((utmdt == ""))))){
_local1.utmdt = utmdt;
};
_local1.utmhid = utmhid;
_local1.utmr = utmr;
_local1.utmp = utmp;
return (_local1);
}
public function get utmdt():String{
return (_info.documentTitle);
}
}
}//package com.google.analytics.core
Section 52
//Domain (com.google.analytics.core.Domain)
package com.google.analytics.core {
import com.google.analytics.debug.*;
public class Domain {
private var _mode:DomainNameMode;
private var _debug:DebugConfiguration;
private var _name:String;
public function Domain(_arg1:DomainNameMode=null, _arg2:String="", _arg3:DebugConfiguration=null){
_debug = _arg3;
if (_arg1 == null){
_arg1 = DomainNameMode.auto;
};
_mode = _arg1;
if (_arg1 == DomainNameMode.custom){
this.name = _arg2;
} else {
_name = _arg2;
};
}
public function get mode():DomainNameMode{
return (_mode);
}
public function set mode(_arg1:DomainNameMode):void{
_mode = _arg1;
if (_mode == DomainNameMode.none){
_name = "";
};
}
public function get name():String{
return (_name);
}
public function set name(_arg1:String):void{
if (((!((_arg1.charAt(0) == "."))) && (_debug))){
_debug.warning(("missing leading period \".\", cookie will only be accessible on " + _arg1), VisualDebugMode.geek);
};
_name = _arg1;
}
}
}//package com.google.analytics.core
Section 53
//DomainNameMode (com.google.analytics.core.DomainNameMode)
package com.google.analytics.core {
public class DomainNameMode {
private var _value:int;
private var _name:String;
public static const custom:DomainNameMode = new DomainNameMode(2, "custom");
;
public static const none:DomainNameMode = new DomainNameMode(0, "none");
;
public static const auto:DomainNameMode = new DomainNameMode(1, "auto");
;
public function DomainNameMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.core
Section 54
//EventInfo (com.google.analytics.core.EventInfo)
package com.google.analytics.core {
import com.google.analytics.data.*;
import com.google.analytics.utils.*;
public class EventInfo {
private var _isEventHit:Boolean;
private var _ext10:X10;
private var _x10:X10;
public function EventInfo(_arg1:Boolean, _arg2:X10, _arg3:X10=null){
_isEventHit = _arg1;
_x10 = _arg2;
_ext10 = _arg3;
}
public function toURLString():String{
var _local1:Variables;
_local1 = toVariables();
return (_local1.toString());
}
public function get utmt():String{
return ("event");
}
public function get utme():String{
return (_x10.renderMergedUrlString(_ext10));
}
public function toVariables():Variables{
var _local1:Variables;
_local1 = new Variables();
_local1.URIencode = true;
if (_isEventHit){
_local1.utmt = utmt;
};
_local1.utme = utme;
return (_local1);
}
}
}//package com.google.analytics.core
Section 55
//EventTracker (com.google.analytics.core.EventTracker)
package com.google.analytics.core {
import com.google.analytics.v4.*;
public class EventTracker {
private var _parent:GoogleAnalyticsAPI;
public var name:String;
public function EventTracker(_arg1:String, _arg2:GoogleAnalyticsAPI){
this.name = _arg1;
_parent = _arg2;
}
public function trackEvent(_arg1:String, _arg2:String=null, _arg3:Number=NaN):Boolean{
return (_parent.trackEvent(name, _arg1, _arg2, _arg3));
}
}
}//package com.google.analytics.core
Section 56
//ga_internal (com.google.analytics.core.ga_internal)
package com.google.analytics.core {
public namespace ga_internal;
}//package com.google.analytics.core
Section 57
//GIFRequest (com.google.analytics.core.GIFRequest)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.net.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.utils.*;
import flash.system.*;
public class GIFRequest {
private var _info:Environment;
private var _count:int;
private var _utmac:String;
private var _alertcount:int;
private var _debug:DebugConfiguration;
private var _lastRequest:URLRequest;
private var _buffer:Buffer;
private var _config:Configuration;
private var _requests:Array;
public function GIFRequest(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Environment){
_config = _arg1;
_debug = _arg2;
_buffer = _arg3;
_info = _arg4;
_count = 0;
_alertcount = 0;
_requests = [];
}
public function get utmn():String{
return ((Utils.generate32bitRandom() as String));
}
public function onIOError(_arg1:IOErrorEvent):void{
var _local2:String = _lastRequest.url;
var _local3:String = String((_requests.length - 1));
var _local4 = (("Gif Request #" + _local3) + " failed");
if (_debug.GIFRequests){
if (!_debug.verbose){
if (_local2.indexOf("?") > -1){
_local2 = _local2.split("?")[0];
};
_local2 = _shortenURL(_local2);
};
if (int(_debug.mode) > int(VisualDebugMode.basic)){
_local4 = (_local4 + ((" \"" + _local2) + "\" does not exists or is unreachable"));
};
_debug.failure(_local4);
} else {
_debug.warning(_local4);
};
_removeListeners(_arg1.target);
}
public function send(_arg1:String, _arg2:Variables=null, _arg3:Boolean=false, _arg4:Boolean=false):void{
var _local5:String;
var _local6:URLRequest;
var _local7:URLRequest;
_utmac = _arg1;
if (!_arg2){
_arg2 = new Variables();
};
_arg2.URIencode = false;
_arg2.pre = ["utmwv", "utmn", "utmhn", "utmt", "utme", "utmcs", "utmsr", "utmsc", "utmul", "utmje", "utmfl", "utmdt", "utmhid", "utmr", "utmp"];
_arg2.post = ["utmcc"];
if (_debug.verbose){
_debug.info(((("tracking: " + _buffer.utmb.trackCount) + "/") + _config.trackingLimitPerSession), VisualDebugMode.geek);
};
if ((((_buffer.utmb.trackCount < _config.trackingLimitPerSession)) || (_arg3))){
if (_arg4){
updateToken();
};
if (((((_arg3) || (!(_arg4)))) || ((_buffer.utmb.token >= 1)))){
if (((!(_arg3)) && (_arg4))){
_buffer.utmb.token = (_buffer.utmb.token - 1);
};
_buffer.utmb.trackCount = (_buffer.utmb.trackCount + 1);
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
};
_arg2.utmwv = utmwv;
_arg2.utmn = Utils.generate32bitRandom();
if (_info.domainName != ""){
_arg2.utmhn = _info.domainName;
};
if (_config.sampleRate < 1){
_arg2.utmsp = (_config.sampleRate * 100);
};
if ((((_config.serverMode == ServerOperationMode.local)) || ((_config.serverMode == ServerOperationMode.both)))){
_local5 = _info.locationSWFPath;
if (_local5.lastIndexOf("/") > 0){
_local5 = _local5.substring(0, _local5.lastIndexOf("/"));
};
_local6 = new URLRequest();
if (_config.localGIFpath.indexOf("http") == 0){
_local6.url = _config.localGIFpath;
} else {
_local6.url = (_local5 + _config.localGIFpath);
};
_local6.url = (_local6.url + ("?" + _arg2.toString()));
if (((_debug.active) && (_debug.GIFRequests))){
_debugSend(_local6);
} else {
sendRequest(_local6);
};
};
if ((((_config.serverMode == ServerOperationMode.remote)) || ((_config.serverMode == ServerOperationMode.both)))){
_local7 = new URLRequest();
if (_info.protocol == Protocols.HTTPS){
_local7.url = _config.secureRemoteGIFpath;
} else {
if (_info.protocol == Protocols.HTTP){
_local7.url = _config.remoteGIFpath;
} else {
_local7.url = _config.remoteGIFpath;
};
};
_arg2.utmac = utmac;
_arg2.utmcc = encodeURIComponent(utmcc);
_local7.url = (_local7.url + ("?" + _arg2.toString()));
if (((_debug.active) && (_debug.GIFRequests))){
_debugSend(_local7);
} else {
sendRequest(_local7);
};
};
};
};
}
public function onSecurityError(_arg1:SecurityErrorEvent):void{
if (_debug.GIFRequests){
_debug.failure(_arg1.text);
};
}
public function get utmsp():String{
return (((_config.sampleRate * 100) as String));
}
public function get utmcc():String{
var _local1:Array = [];
if (_buffer.hasUTMA()){
_local1.push((_buffer.utma.toURLString() + ";"));
};
if (_buffer.hasUTMZ()){
_local1.push((_buffer.utmz.toURLString() + ";"));
};
if (_buffer.hasUTMV()){
_local1.push((_buffer.utmv.toURLString() + ";"));
};
return (_local1.join("+"));
}
public function get utmac():String{
return (_utmac);
}
public function get utmwv():String{
return (_config.version);
}
public function sendRequest(_arg1:URLRequest):void{
var request = _arg1;
var loader:Loader = new Loader();
loader.name = String(_count++);
var context:LoaderContext = new LoaderContext(false);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
_lastRequest = request;
_requests[loader.name] = new RequestObject(request);
try {
loader.load(request, context);
} catch(e:Error) {
_debug.failure("\"Loader.load()\" could not instanciate Gif Request");
};
}
private function _removeListeners(_arg1:Object):void{
_arg1.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
_arg1.removeEventListener(Event.COMPLETE, onComplete);
}
public function updateToken():void{
var _local2:Number;
var _local1:Number = new Date().getTime();
_local2 = ((_local1 - _buffer.utmb.lastTime) * (_config.tokenRate / 1000));
if (_debug.verbose){
_debug.info(("tokenDelta: " + _local2), VisualDebugMode.geek);
};
if (_local2 >= 1){
_buffer.utmb.token = Math.min(Math.floor((_buffer.utmb.token + _local2)), _config.bucketCapacity);
_buffer.utmb.lastTime = _local1;
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
};
};
}
public function get utmhn():String{
return (_info.domainName);
}
private function _shortenURL(_arg1:String):String{
var _local2:Array;
if (_arg1.length > 60){
_local2 = _arg1.split("/");
while (_arg1.length > 60) {
_local2.shift();
_arg1 = ("../" + _local2.join("/"));
};
};
return (_arg1);
}
private function _debugSend(_arg1:URLRequest):void{
var _local3:String;
var _local2 = "";
switch (_debug.mode){
case VisualDebugMode.geek:
_local2 = ((("Gif Request #" + _alertcount) + ":\n") + _arg1.url);
break;
case VisualDebugMode.advanced:
_local3 = _arg1.url;
if (_local3.indexOf("?") > -1){
_local3 = _local3.split("?")[0];
};
_local3 = _shortenURL(_local3);
_local2 = (((("Send Gif Request #" + _alertcount) + ":\n") + _local3) + " ?");
break;
case VisualDebugMode.basic:
default:
_local2 = (((("Send " + _config.serverMode.toString()) + " Gif Request #") + _alertcount) + " ?");
};
_debug.alertGifRequest(_local2, _arg1, this);
_alertcount++;
}
public function onComplete(_arg1:Event):void{
var _local2:String = _arg1.target.loader.name;
_requests[_local2].complete();
var _local3 = (("Gif Request #" + _local2) + " sent");
var _local4:String = _requests[_local2].request.url;
if (_debug.GIFRequests){
if (!_debug.verbose){
if (_local4.indexOf("?") > -1){
_local4 = _local4.split("?")[0];
};
_local4 = _shortenURL(_local4);
};
if (int(_debug.mode) > int(VisualDebugMode.basic)){
_local3 = (_local3 + ((" to \"" + _local4) + "\""));
};
_debug.success(_local3);
} else {
_debug.info(_local3);
};
_removeListeners(_arg1.target);
}
}
}//package com.google.analytics.core
Section 58
//IdleTimer (com.google.analytics.core.IdleTimer)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class IdleTimer {
private var _loop:Timer;
private var _stage:Stage;
private var _lastMove:int;
private var _debug:DebugConfiguration;
private var _session:Timer;
private var _inactivity:Number;
private var _buffer:Buffer;
public function IdleTimer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:DisplayObject, _arg4:Buffer){
var _local5:Number;
var _local6:Number;
var _local7:Number;
super();
_local5 = _arg1.idleLoop;
_local6 = _arg1.idleTimeout;
_local7 = _arg1.sessionTimeout;
_loop = new Timer((_local5 * 1000));
_session = new Timer((_local7 * 1000), 1);
_debug = _arg2;
_stage = _arg3.stage;
_buffer = _arg4;
_lastMove = getTimer();
_inactivity = (_local6 * 1000);
_loop.addEventListener(TimerEvent.TIMER, checkForIdle);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
_debug.info(((((("delay: " + _local5) + "sec , inactivity: ") + _local6) + "sec, sessionTimeout: ") + _local7), VisualDebugMode.geek);
_loop.start();
}
private function onMouseMove(_arg1:MouseEvent):void{
_lastMove = getTimer();
if (_session.running){
_debug.info("session timer reset", VisualDebugMode.geek);
_session.reset();
};
}
public function endSession(_arg1:TimerEvent):void{
_session.removeEventListener(TimerEvent.TIMER_COMPLETE, endSession);
_debug.info("session timer end session", VisualDebugMode.geek);
_session.reset();
_buffer.resetCurrentSession();
_debug.info(_buffer.utmb.toString(), VisualDebugMode.geek);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.geek);
_session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession);
}
public function checkForIdle(_arg1:TimerEvent):void{
var _local2:int;
_local2 = getTimer();
if ((_local2 - _lastMove) >= _inactivity){
if (!_session.running){
_debug.info("session timer start", VisualDebugMode.geek);
_session.start();
};
};
}
}
}//package com.google.analytics.core
Section 59
//Organic (com.google.analytics.core.Organic)
package com.google.analytics.core {
import com.google.analytics.utils.*;
public class Organic {
private var _sourcesCache:Array;
private var _sourcesEngine:Array;
private var _ignoredKeywords:Array;
private var _ignoredReferralsCache:Object;
private var _ignoredReferrals:Array;
private var _ignoredKeywordsCache:Object;
private var _sources:Array;
public static var throwErrors:Boolean = false;
public function Organic(){
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
_ignoredReferrals = [];
_ignoredReferralsCache = {};
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function getKeywordValue(_arg1:OrganicReferrer, _arg2:String):String{
var _local3:String;
_local3 = _arg1.keyword;
return (getKeywordValueFromPath(_local3, _arg2));
}
public function isIgnoredKeyword(_arg1:String):Boolean{
if (_ignoredKeywordsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function isIgnoredReferral(_arg1:String):Boolean{
if (_ignoredReferralsCache.hasOwnProperty(_arg1)){
return (true);
};
return (false);
}
public function clear():void{
clearEngines();
clearIgnoredReferrals();
clearIgnoredKeywords();
}
public function get ignoredKeywordsCount():int{
return (_ignoredKeywords.length);
}
public function match(_arg1:String):Boolean{
if (_arg1 == ""){
return (false);
};
_arg1 = _arg1.toLowerCase();
if (_sourcesEngine[_arg1] != undefined){
return (true);
};
return (false);
}
public function get count():int{
return (_sources.length);
}
public function addSource(_arg1:String, _arg2:String):void{
var _local3:OrganicReferrer;
_local3 = new OrganicReferrer(_arg1, _arg2);
if (_sourcesCache[_local3.toString()] == undefined){
_sources.push(_local3);
_sourcesCache[_local3.toString()] = (_sources.length - 1);
if (_sourcesEngine[_local3.engine] == undefined){
_sourcesEngine[_local3.engine] = [(_sources.length - 1)];
} else {
_sourcesEngine[_local3.engine].push((_sources.length - 1));
};
} else {
if (throwErrors){
throw (new Error((_local3.toString() + " already exists, we don't add it.")));
};
};
}
public function clearIgnoredKeywords():void{
_ignoredKeywords = [];
_ignoredKeywordsCache = {};
}
public function clearEngines():void{
_sources = [];
_sourcesCache = [];
_sourcesEngine = [];
}
public function get ignoredReferralsCount():int{
return (_ignoredReferrals.length);
}
public function addIgnoredReferral(_arg1:String):void{
if (_ignoredReferralsCache[_arg1] == undefined){
_ignoredReferrals.push(_arg1);
_ignoredReferralsCache[_arg1] = (_ignoredReferrals.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function clearIgnoredReferrals():void{
_ignoredReferrals = [];
_ignoredReferralsCache = {};
}
public function getReferrerByName(_arg1:String):OrganicReferrer{
var _local2:int;
if (match(_arg1)){
_local2 = _sourcesEngine[_arg1][0];
return (_sources[_local2]);
};
return (null);
}
public function addIgnoredKeyword(_arg1:String):void{
if (_ignoredKeywordsCache[_arg1] == undefined){
_ignoredKeywords.push(_arg1);
_ignoredKeywordsCache[_arg1] = (_ignoredKeywords.length - 1);
} else {
if (throwErrors){
throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it.")));
};
};
}
public function get sources():Array{
return (_sources);
}
public static function getKeywordValueFromPath(_arg1:String, _arg2:String):String{
var _local3:String;
var _local4:Variables;
if (_arg2.indexOf((_arg1 + "=")) > -1){
if (_arg2.charAt(0) == "?"){
_arg2 = _arg2.substr(1);
};
_arg2 = _arg2.split("+").join("%20");
_local4 = new Variables(_arg2);
_local3 = _local4[_arg1];
};
return (_local3);
}
}
}//package com.google.analytics.core
Section 60
//OrganicReferrer (com.google.analytics.core.OrganicReferrer)
package com.google.analytics.core {
public class OrganicReferrer {
private var _engine:String;
private var _keyword:String;
public function OrganicReferrer(_arg1:String, _arg2:String){
this.engine = _arg1;
this.keyword = _arg2;
}
public function set engine(_arg1:String):void{
_engine = _arg1.toLowerCase();
}
public function get keyword():String{
return (_keyword);
}
public function toString():String{
return (((engine + "?") + keyword));
}
public function get engine():String{
return (_engine);
}
public function set keyword(_arg1:String):void{
_keyword = _arg1.toLowerCase();
}
}
}//package com.google.analytics.core
Section 61
//RequestObject (com.google.analytics.core.RequestObject)
package com.google.analytics.core {
import flash.net.*;
import flash.utils.*;
public class RequestObject {
public var start:int;
public var request:URLRequest;
public var end:int;
public function RequestObject(_arg1:URLRequest){
start = getTimer();
this.request = _arg1;
}
public function toString():String{
var _local1:Array;
_local1 = [];
_local1.push((("duration: " + duration) + "ms"));
_local1.push(("url: " + request.url));
return ((("{ " + _local1.join(", ")) + " }"));
}
public function get duration():int{
if (!hasCompleted()){
return (0);
};
return ((end - start));
}
public function hasCompleted():Boolean{
return ((end > 0));
}
public function complete():void{
end = getTimer();
}
}
}//package com.google.analytics.core
Section 62
//ServerOperationMode (com.google.analytics.core.ServerOperationMode)
package com.google.analytics.core {
public class ServerOperationMode {
private var _value:int;
private var _name:String;
public static const both:ServerOperationMode = new ServerOperationMode(2, "both");
;
public static const remote:ServerOperationMode = new ServerOperationMode(1, "remote");
;
public static const local:ServerOperationMode = new ServerOperationMode(0, "local");
;
public function ServerOperationMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.core
Section 63
//TrackerCache (com.google.analytics.core.TrackerCache)
package com.google.analytics.core {
import com.google.analytics.v4.*;
import flash.errors.*;
public class TrackerCache implements GoogleAnalyticsAPI {
public var tracker:GoogleAnalyticsAPI;
private var _ar:Array;
public static var CACHE_THROW_ERROR:Boolean;
public function TrackerCache(_arg1:GoogleAnalyticsAPI=null){
this.tracker = _arg1;
_ar = [];
}
public function size():uint{
return (_ar.length);
}
public function flush():void{
var _local1:Object;
var _local2:String;
var _local3:Array;
var _local4:int;
var _local5:int;
if (tracker == null){
return;
};
if (size() > 0){
_local4 = _ar.length;
while (_local5 < _local4) {
_local1 = _ar.shift();
_local2 = (_local1.name as String);
_local3 = (_local1.args as Array);
if (((!((_local2 == null))) && ((_local2 in tracker)))){
(tracker[_local2] as Function).apply(tracker, _local3);
};
_local5++;
};
};
}
public function enqueue(_arg1:String, ... _args):Boolean{
if (_arg1 == null){
return (false);
};
_ar.push({name:_arg1, args:_args});
return (true);
}
public function link(_arg1:String, _arg2:Boolean=false):void{
enqueue("link", _arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
enqueue("addOrganic", _arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
enqueue("setAllowLinker", _arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
enqueue("trackEvent", _arg1, _arg2, _arg3, _arg4);
return (true);
}
public function getClientInfo():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getClientInfo' method for the moment."));
};
return (false);
}
public function trackTrans():void{
enqueue("trackTrans");
}
public function trackPageview(_arg1:String=""):void{
enqueue("trackPageview", _arg1);
}
public function setClientInfo(_arg1:Boolean):void{
enqueue("setClientInfo", _arg1);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
enqueue("linkByPost", _arg1, _arg2);
}
public function setCookieTimeout(_arg1:int):void{
enqueue("setCookieTimeout", _arg1);
}
public function isEmpty():Boolean{
return ((_ar.length == 0));
}
public function getDetectTitle():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectTitle' method for the moment."));
};
return (false);
}
public function resetSession():void{
enqueue("resetSession");
}
public function setDetectFlash(_arg1:Boolean):void{
enqueue("setDetectFlash", _arg1);
}
public function clear():void{
_ar = [];
}
public function setCampNameKey(_arg1:String):void{
enqueue("setCampNameKey", _arg1);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
enqueue("addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function createEventTracker(_arg1:String):EventTracker{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'createEventTracker' method for the moment."));
};
return (null);
}
public function setVar(_arg1:String):void{
enqueue("setVar", _arg1);
}
public function clearIgnoredOrganic():void{
enqueue("clearIgnoredOrganic");
}
public function setDomainName(_arg1:String):void{
enqueue("setDomainName", _arg1);
}
public function setCampSourceKey(_arg1:String):void{
enqueue("setCampSourceKey", _arg1);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'addTrans' method for the moment."));
};
return (null);
}
public function setCampContentKey(_arg1:String):void{
enqueue("setCampContentKey", _arg1);
}
public function setLocalServerMode():void{
enqueue("setLocalServerMode");
}
public function getLocalGifPath():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getLocalGifPath' method for the moment."));
};
return ("");
}
public function setAllowAnchor(_arg1:Boolean):void{
enqueue("setAllowAnchor", _arg1);
}
public function clearIgnoredRef():void{
enqueue("clearIgnoredRef");
}
public function setLocalGifPath(_arg1:String):void{
enqueue("setLocalGifPath", _arg1);
}
public function getVersion():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getVersion' method for the moment."));
};
return ("");
}
public function setCookiePath(_arg1:String):void{
enqueue("setCookiePath", _arg1);
}
public function setSampleRate(_arg1:Number):void{
enqueue("setSampleRate", _arg1);
}
public function setDetectTitle(_arg1:Boolean):void{
enqueue("setDetectTitle", _arg1);
}
public function setAllowHash(_arg1:Boolean):void{
enqueue("setAllowHash", _arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
enqueue("addIgnoredOrganic", _arg1);
}
public function setCampNOKey(_arg1:String):void{
enqueue("setCampNOKey", _arg1);
}
public function getServiceMode():ServerOperationMode{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getServiceMode' method for the moment."));
};
return (null);
}
public function setLocalRemoteServerMode():void{
enqueue("setLocalRemoteServerMode");
}
public function cookiePathCopy(_arg1:String):void{
enqueue("cookiePathCopy", _arg1);
}
public function getDetectFlash():Boolean{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectFlash' method for the moment."));
};
return (false);
}
public function setCampaignTrack(_arg1:Boolean):void{
enqueue("setCampaignTrack", _arg1);
}
public function clearOrganic():void{
enqueue("clearOrganic");
}
public function setCampTermKey(_arg1:String):void{
enqueue("setCampTermKey", _arg1);
}
public function addIgnoredRef(_arg1:String):void{
enqueue("addIgnoredRef", _arg1);
}
public function setCampMediumKey(_arg1:String):void{
enqueue("setCampMediumKey", _arg1);
}
public function setSessionTimeout(_arg1:int):void{
enqueue("setSessionTimeout", _arg1);
}
public function setRemoteServerMode():void{
enqueue("setRemoteServerMode");
}
public function element(){
return (_ar[0]);
}
public function getAccount():String{
if (CACHE_THROW_ERROR){
throw (new IllegalOperationError("The tracker is not ready and you can use the 'getAccount' method for the moment."));
};
return ("");
}
}
}//package com.google.analytics.core
Section 64
//TrackerMode (com.google.analytics.core.TrackerMode)
package com.google.analytics.core {
public class TrackerMode {
public static const BRIDGE:String = "Bridge";
public static const AS3:String = "AS3";
}
}//package com.google.analytics.core
Section 65
//Utils (com.google.analytics.core.Utils)
package com.google.analytics.core {
public class Utils {
public static function trim(_arg1:String, _arg2:Boolean=false):String{
var _local3:Array;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:int;
if (_arg1 == ""){
return ("");
};
_local3 = [" ", "\n", "\r", "\t"];
_local4 = _arg1;
if (_arg2){
_local5 = 0;
while ((((_local5 < _local3.length)) && ((_local4.indexOf(_local3[_local5]) > -1)))) {
_local4 = _local4.split(_local3[_local5]).join("");
_local5++;
};
} else {
_local6 = 0;
while ((((_local6 < _local4.length)) && ((_local3.indexOf(_local4.charAt(_local6)) > -1)))) {
_local6++;
};
_local4 = _local4.substr(_local6);
_local7 = (_local4.length - 1);
while ((((_local7 >= 0)) && ((_local3.indexOf(_local4.charAt(_local7)) > -1)))) {
_local7--;
};
_local4 = _local4.substring(0, (_local7 + 1));
};
return (_local4);
}
public static function generateHash(_arg1:String):int{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = 1;
_local3 = 0;
if (((!((_arg1 == null))) && (!((_arg1 == ""))))){
_local2 = 0;
_local4 = (_arg1.length - 1);
while (_local4 >= 0) {
_local5 = _arg1.charCodeAt(_local4);
_local2 = ((((_local2 << 6) & 268435455) + _local5) + (_local5 << 14));
_local3 = (_local2 & 266338304);
if (_local3 != 0){
_local2 = (_local2 ^ (_local3 >> 21));
};
_local4--;
};
};
return (_local2);
}
public static function generate32bitRandom():int{
return (Math.round((Math.random() * 2147483647)));
}
public static function validateAccount(_arg1:String):Boolean{
var _local2:RegExp;
_local2 = /^UA-[0-9]*-[0-9]*$/;
return (_local2.test(_arg1));
}
}
}//package com.google.analytics.core
Section 66
//Cookie (com.google.analytics.data.Cookie)
package com.google.analytics.data {
public interface Cookie {
function fromSharedObject(_arg1:Object):void;
function toURLString():String;
function get creation():Date;
function toSharedObject():Object;
function isExpired():Boolean;
function set creation(_arg1:Date):void;
function set expiration(_arg1:Date):void;
function get expiration():Date;
}
}//package com.google.analytics.data
Section 67
//UTMA (com.google.analytics.data.UTMA)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMA extends UTMCookie {
private var _sessionId:Number;
private var _domainHash:Number;
private var _firstTime:Number;
private var _currentTime:Number;
private var _lastTime:Number;
private var _sessionCount:Number;
public function UTMA(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:Number=NaN, _arg6:Number=NaN){
super("utma", "__utma", ["domainHash", "sessionId", "firstTime", "lastTime", "currentTime", "sessionCount"], (Timespan.twoyears * 1000));
this.domainHash = _arg1;
this.sessionId = _arg2;
this.firstTime = _arg3;
this.lastTime = _arg4;
this.currentTime = _arg5;
this.sessionCount = _arg6;
}
public function get lastTime():Number{
return (_lastTime);
}
public function set lastTime(_arg1:Number):void{
_lastTime = _arg1;
update();
}
public function set currentTime(_arg1:Number):void{
_currentTime = _arg1;
update();
}
public function get sessionId():Number{
return (_sessionId);
}
public function get sessionCount():Number{
return (_sessionCount);
}
public function get firstTime():Number{
return (_firstTime);
}
public function get currentTime():Number{
return (_currentTime);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set sessionId(_arg1:Number):void{
_sessionId = _arg1;
update();
}
public function set sessionCount(_arg1:Number):void{
_sessionCount = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
public function set firstTime(_arg1:Number):void{
_firstTime = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 68
//UTMB (com.google.analytics.data.UTMB)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMB extends UTMCookie {
private var _trackCount:Number;
private var _lastTime:Number;
private var _domainHash:Number;
private var _token:Number;
public static var defaultTimespan:Number = Timespan.thirtyminutes;
public function UTMB(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN){
super("utmb", "__utmb", ["domainHash", "trackCount", "token", "lastTime"], (defaultTimespan * 1000));
this.domainHash = _arg1;
this.trackCount = _arg2;
this.token = _arg3;
this.lastTime = _arg4;
}
public function set token(_arg1:Number):void{
_token = _arg1;
update();
}
public function set trackCount(_arg1:Number):void{
_trackCount = _arg1;
update();
}
public function get lastTime():Number{
return (_lastTime);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set lastTime(_arg1:Number):void{
_lastTime = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
public function get token():Number{
return (_token);
}
public function get trackCount():Number{
return (_trackCount);
}
}
}//package com.google.analytics.data
Section 69
//UTMC (com.google.analytics.data.UTMC)
package com.google.analytics.data {
public class UTMC extends UTMCookie {
private var _domainHash:Number;
public function UTMC(_arg1:Number=NaN){
super("utmc", "__utmc", ["domainHash"]);
this.domainHash = _arg1;
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function get domainHash():Number{
return (_domainHash);
}
}
}//package com.google.analytics.data
Section 70
//UTMCookie (com.google.analytics.data.UTMCookie)
package com.google.analytics.data {
import com.google.analytics.core.*;
public class UTMCookie implements Cookie {
protected var inURL:String;
protected var name:String;
private var _creation:Date;
private var _expiration:Date;
public var proxy:Buffer;
private var _timespan:Number;
protected var fields:Array;
public function UTMCookie(_arg1:String, _arg2:String, _arg3:Array, _arg4:Number=0){
this.name = _arg1;
this.inURL = _arg2;
this.fields = _arg3;
_timestamp(_arg4);
}
public function isEmpty():Boolean{
var _local1:int;
var _local2:String;
var _local3:int;
_local1 = 0;
_local3 = 0;
while (_local3 < fields.length) {
_local2 = fields[_local3];
if ((((this[_local2] is Number)) && (isNaN(this[_local2])))){
_local1++;
} else {
if ((((this[_local2] is String)) && ((this[_local2] == "")))){
_local1++;
};
};
_local3++;
};
if (_local1 == fields.length){
return (true);
};
return (false);
}
protected function update():void{
resetTimestamp();
if (proxy){
proxy.update(name, toSharedObject());
};
}
public function fromSharedObject(_arg1:Object):void{
var _local2:String;
var _local3:int;
var _local4:int;
_local3 = fields.length;
_local4 = 0;
while (_local4 < _local3) {
_local2 = fields[_local4];
if (_arg1[_local2]){
this[_local2] = _arg1[_local2];
};
_local4++;
};
if (_arg1.creation){
this.creation = _arg1.creation;
};
if (_arg1.expiration){
this.expiration = _arg1.expiration;
};
}
private function _timestamp(_arg1:Number):void{
creation = new Date();
_timespan = _arg1;
if (_arg1 > 0){
expiration = new Date((creation.valueOf() + _arg1));
};
}
public function isExpired():Boolean{
var _local1:Date;
var _local2:Number;
_local1 = new Date();
_local2 = (expiration.valueOf() - _local1.valueOf());
if (_local2 <= 0){
return (true);
};
return (false);
}
public function set expiration(_arg1:Date):void{
_expiration = _arg1;
}
public function get creation():Date{
return (_creation);
}
public function reset():void{
var _local1:String;
var _local2:int;
_local2 = 0;
while (_local2 < fields.length) {
_local1 = fields[_local2];
if ((this[_local1] is Number)){
this[_local1] = NaN;
} else {
if ((this[_local1] is String)){
this[_local1] = "";
};
};
_local2++;
};
resetTimestamp();
update();
}
public function valueOf():String{
var _local1:Array;
var _local2:String;
var _local3:*;
var _local4:int;
_local1 = [];
_local4 = 0;
while (_local4 < fields.length) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
if (_local3 == ""){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
} else {
if ((_local3 is Number)){
if (_local3 == 0){
_local1.push(_local3);
} else {
if (isNaN(_local3)){
_local3 = "-";
_local1.push(_local3);
} else {
_local1.push(_local3);
};
};
};
};
_local4++;
};
return (("" + _local1.join(".")));
}
public function resetTimestamp(_arg1:Number=NaN):void{
if (!isNaN(_arg1)){
_timespan = _arg1;
};
_creation = null;
_expiration = null;
_timestamp(_timespan);
}
public function get expiration():Date{
if (_expiration){
return (_expiration);
};
return (new Date((new Date().valueOf() + 1000)));
}
public function toURLString():String{
return (((inURL + "=") + valueOf()));
}
public function toSharedObject():Object{
var _local1:Object;
var _local2:String;
var _local3:*;
var _local4:int;
_local1 = {};
_local4 = 0;
for (;_local4 < fields.length;_local4++) {
_local2 = fields[_local4];
_local3 = this[_local2];
if ((_local3 is String)){
_local1[_local2] = _local3;
} else {
if (_local3 == 0){
_local1[_local2] = _local3;
} else {
if (isNaN(_local3)){
continue;
} else {
_local1[_local2] = _local3;
};
};
};
};
_local1.creation = creation;
_local1.expiration = expiration;
return (_local1);
}
public function toString(_arg1:Boolean=false):String{
var _local2:Array;
var _local3:String;
var _local4:*;
var _local5:int;
var _local6:int;
var _local7:String;
_local2 = [];
_local5 = fields.length;
_local6 = 0;
for (;_local6 < _local5;_local6++) {
_local3 = fields[_local6];
_local4 = this[_local3];
if ((_local4 is String)){
_local2.push((((_local3 + ": \"") + _local4) + "\""));
} else {
if (_local4 == 0){
_local2.push(((_local3 + ": ") + _local4));
} else {
if (isNaN(_local4)){
continue;
} else {
_local2.push(((_local3 + ": ") + _local4));
};
};
};
};
_local7 = (((name.toUpperCase() + " {") + _local2.join(", ")) + "}");
if (_arg1){
_local7 = (_local7 + (((" creation:" + creation) + ", expiration:") + expiration));
};
return (_local7);
}
public function set creation(_arg1:Date):void{
_creation = _arg1;
}
}
}//package com.google.analytics.data
Section 71
//UTMK (com.google.analytics.data.UTMK)
package com.google.analytics.data {
public class UTMK extends UTMCookie {
private var _hash:Number;
public function UTMK(_arg1:Number=NaN){
super("utmk", "__utmk", ["hash"]);
this.hash = _arg1;
}
public function set hash(_arg1:Number):void{
_hash = _arg1;
update();
}
public function get hash():Number{
return (_hash);
}
}
}//package com.google.analytics.data
Section 72
//UTMV (com.google.analytics.data.UTMV)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMV extends UTMCookie {
private var _domainHash:Number;
private var _value:String;
public function UTMV(_arg1:Number=NaN, _arg2:String=""){
super("utmv", "__utmv", ["domainHash", "value"], (Timespan.twoyears * 1000));
this.domainHash = _arg1;
this.value = _arg2;
}
override public function toURLString():String{
return (((inURL + "=") + encodeURI(valueOf())));
}
public function get value():String{
return (_value);
}
public function get domainHash():Number{
return (_domainHash);
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set value(_arg1:String):void{
_value = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 73
//UTMZ (com.google.analytics.data.UTMZ)
package com.google.analytics.data {
import com.google.analytics.utils.*;
public class UTMZ extends UTMCookie {
private var _campaignTracking:String;
private var _campaignCreation:Number;
private var _responseCount:Number;
private var _domainHash:Number;
private var _campaignSessions:Number;
public static var defaultTimespan:Number = Timespan.sixmonths;
public function UTMZ(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:String=""){
super("utmz", "__utmz", ["domainHash", "campaignCreation", "campaignSessions", "responseCount", "campaignTracking"], (defaultTimespan * 1000));
this.domainHash = _arg1;
this.campaignCreation = _arg2;
this.campaignSessions = _arg3;
this.responseCount = _arg4;
this.campaignTracking = _arg5;
}
public function set responseCount(_arg1:Number):void{
_responseCount = _arg1;
update();
}
public function set domainHash(_arg1:Number):void{
_domainHash = _arg1;
update();
}
public function set campaignCreation(_arg1:Number):void{
_campaignCreation = _arg1;
update();
}
public function get campaignTracking():String{
return (_campaignTracking);
}
public function get campaignSessions():Number{
return (_campaignSessions);
}
public function get domainHash():Number{
return (_domainHash);
}
public function get responseCount():Number{
return (_responseCount);
}
public function get campaignCreation():Number{
return (_campaignCreation);
}
public function set campaignSessions(_arg1:Number):void{
_campaignSessions = _arg1;
update();
}
public function set campaignTracking(_arg1:String):void{
_campaignTracking = _arg1;
update();
}
}
}//package com.google.analytics.data
Section 74
//X10 (com.google.analytics.data.X10)
package com.google.analytics.data {
public class X10 {
private var _delimEnd:String;// = ")"
private var _delimSet:String;// = "*"
private var _escapeChar:String;// = "'"
private var _delimBegin:String;// = "("
private var _delimNumValue:String;// = "!"
private var _key:String;// = "k"
private var _set:Array;
private var _projectData:Object;
private var _hasData:int;
private var _escapeCharMap:Object;
private var _minimum:int;
private var _value:String;// = "v"
public function X10(){
_key = "k";
_value = "v";
_set = [_key, _value];
_delimBegin = "(";
_delimEnd = ")";
_delimSet = "*";
_delimNumValue = "!";
_escapeChar = "'";
super();
_projectData = {};
_escapeCharMap = {};
_escapeCharMap[_escapeChar] = "'0";
_escapeCharMap[_delimEnd] = "'1";
_escapeCharMap[_delimSet] = "'2";
_escapeCharMap[_delimNumValue] = "'3";
_minimum = 1;
}
private function _clearInternal(_arg1:Number, _arg2:String):void{
var _local3:Boolean;
var _local4:int;
var _local5:int;
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
_projectData[_arg1][_arg2] = undefined;
_local3 = true;
_local5 = _set.length;
_local4 = 0;
while (_local4 < _local5) {
if (_projectData[_arg1][_set[_local4]] != undefined){
_local3 = false;
break;
};
_local4++;
};
if (_local3){
_projectData[_arg1] = undefined;
_hasData = (_hasData - 1);
};
};
}
public function hasData():Boolean{
return ((_hasData > 0));
}
private function _setInternal(_arg1:Number, _arg2:String, _arg3:Number, _arg4:String):void{
if (!hasProject(_arg1)){
_projectData[_arg1] = {};
};
if (_projectData[_arg1][_arg2] == undefined){
_projectData[_arg1][_arg2] = [];
};
_projectData[_arg1][_arg2][_arg3] = _arg4;
_hasData = (_hasData + 1);
}
public function hasProject(_arg1:Number):Boolean{
return (_projectData[_arg1]);
}
public function clearKey(_arg1:Number):void{
_clearInternal(_arg1, _key);
}
private function _renderDataType(_arg1:Array):String{
var _local2:Array;
var _local3:String;
var _local4:int;
_local2 = [];
_local4 = 0;
while (_local4 < _arg1.length) {
if (_arg1[_local4] != undefined){
_local3 = "";
if (((!((_local4 == _minimum))) && ((_arg1[(_local4 - 1)] == undefined)))){
_local3 = (_local3 + _local4.toString());
_local3 = (_local3 + _delimNumValue);
};
_local3 = (_local3 + _escapeExtensibleValue(_arg1[_local4]));
_local2.push(_local3);
};
_local4++;
};
return (((_delimBegin + _local2.join(_delimSet)) + _delimEnd));
}
public function getKey(_arg1:Number, _arg2:Number):String{
return ((_getInternal(_arg1, _key, _arg2) as String));
}
public function clearValue(_arg1:Number):void{
_clearInternal(_arg1, _value);
}
public function renderMergedUrlString(_arg1:X10=null):String{
var _local2:Array;
var _local3:String;
if (!_arg1){
return (renderUrlString());
};
_local2 = [_arg1.renderUrlString()];
for (_local3 in _projectData) {
if (((hasProject(Number(_local3))) && (!(_arg1.hasProject(Number(_local3)))))){
_local2.push((_local3 + _renderProject(_projectData[_local3])));
};
};
return (_local2.join(""));
}
public function setValue(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{
if (((((!((Math.round(_arg3) == _arg3))) || (isNaN(_arg3)))) || ((_arg3 == Infinity)))){
return (false);
};
_setInternal(_arg1, _value, _arg2, _arg3.toString());
return (true);
}
public function renderUrlString():String{
var _local1:Array;
var _local2:String;
_local1 = [];
for (_local2 in _projectData) {
if (hasProject(Number(_local2))){
_local1.push((_local2 + _renderProject(_projectData[_local2])));
};
};
return (_local1.join(""));
}
private function _getInternal(_arg1:Number, _arg2:String, _arg3:Number):Object{
if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){
return (_projectData[_arg1][_arg2][_arg3]);
};
return (undefined);
}
public function setKey(_arg1:Number, _arg2:Number, _arg3:String):Boolean{
_setInternal(_arg1, _key, _arg2, _arg3);
return (true);
}
public function getValue(_arg1:Number, _arg2:Number){
var _local3:*;
_local3 = _getInternal(_arg1, _value, _arg2);
if (_local3 == null){
return (null);
};
return (Number(_local3));
}
private function _renderProject(_arg1:Object):String{
var _local2:String;
var _local3:Boolean;
var _local4:int;
var _local5:Array;
var _local6:int;
_local2 = "";
_local3 = false;
_local6 = _set.length;
_local4 = 0;
while (_local4 < _local6) {
_local5 = _arg1[_set[_local4]];
if (_local5){
if (_local3){
_local2 = (_local2 + _set[_local4]);
};
_local2 = (_local2 + _renderDataType(_local5));
_local3 = false;
} else {
_local3 = true;
};
_local4++;
};
return (_local2);
}
private function _escapeExtensibleValue(_arg1:String):String{
var _local2:String;
var _local3:int;
var _local4:String;
var _local5:String;
_local2 = "";
_local3 = 0;
while (_local3 < _arg1.length) {
_local4 = _arg1.charAt(_local3);
_local5 = _escapeCharMap[_local4];
if (_local5){
_local2 = (_local2 + _local5);
} else {
_local2 = (_local2 + _local4);
};
_local3++;
};
return (_local2);
}
}
}//package com.google.analytics.data
Section 75
//_Style (com.google.analytics.debug._Style)
package com.google.analytics.debug {
import flash.net.*;
import flash.text.*;
public class _Style {
public var borderColor:uint;
public var backgroundColor:uint;
private var _sheet:StyleSheet;
public var roundedCorner:uint;
public var alertColor:uint;
public var infoColor:uint;
public var successColor:uint;
private var _loader:URLLoader;
public var failureColor:uint;
private var _defaultSheet:String;
public var warningColor:uint;
public function _Style(){
_sheet = new StyleSheet();
_loader = new URLLoader();
_init();
}
private function _parseSheet(_arg1:String):void{
_sheet.parseCSS(_arg1);
}
public function get sheet():StyleSheet{
return (_sheet);
}
private function _init():void{
_defaultSheet = "";
_defaultSheet = (_defaultSheet + "a{text-decoration: underline;}\n");
_defaultSheet = (_defaultSheet + ".uiLabel{color: #000000;font-family: Arial;font-size: 12;margin-left: 2;margin-right: 2;}\n");
_defaultSheet = (_defaultSheet + ".uiWarning{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlert{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiInfo{color: #000000;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiSuccess{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiFailure{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertAction{color: #ffffff;text-align: center;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + ".uiAlertTitle{color: #ffffff;font-family: Arial;font-size: 16;font-weight: bold;margin-left: 6;margin-right: 6;}\n");
_defaultSheet = (_defaultSheet + "\n");
roundedCorner = 6;
backgroundColor = 0xCCCCCC;
borderColor = 0x555555;
infoColor = 16777113;
alertColor = 0xFFCC00;
warningColor = 0xCC0000;
successColor = 0xFF00;
failureColor = 0xFF0000;
_parseSheet(_defaultSheet);
}
}
}//package com.google.analytics.debug
Section 76
//Alert (com.google.analytics.debug.Alert)
package com.google.analytics.debug {
import flash.events.*;
public class Alert extends Label {
public var actionOnNextLine:Boolean;// = true
public var autoClose:Boolean;// = true
private var _actions:Array;
public function Alert(_arg1:String, _arg2:Array, _arg3:String="uiAlert", _arg4:uint=0, _arg5:Align=null, _arg6:Boolean=false, _arg7:Boolean=true){
var _local8:int;
autoClose = true;
actionOnNextLine = true;
if (_arg4 == 0){
_arg4 = Style.alertColor;
};
if (_arg5 == null){
_arg5 = Align.center;
};
super(_arg1, _arg3, _arg4, _arg5, _arg6);
this.selectable = true;
super.mouseChildren = true;
this.buttonMode = true;
this.mouseEnabled = true;
this.useHandCursor = true;
this.actionOnNextLine = _arg7;
_actions = [];
_local8 = 0;
while (_local8 < _arg2.length) {
_arg2[_local8].container = this;
_actions.push(_arg2[_local8]);
_local8++;
};
}
protected function getAction(_arg1:String):AlertAction{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (_actions[_local2]);
};
_local2++;
};
return (null);
}
override protected function layout():void{
super.layout();
_defineActions();
}
protected function spaces(_arg1:int):String{
var _local2:String;
var _local3:String;
var _local4:int;
_local2 = "";
_local3 = " ";
_local4 = 0;
while (_local4 < (_arg1 + 1)) {
_local2 = (_local2 + _local3);
_local4++;
};
return (_local2);
}
override public function onLink(_arg1:TextEvent):void{
var _local2:AlertAction;
if (isValidAction(_arg1.text)){
_local2 = getAction(_arg1.text);
if (_local2){
_local2.execute();
};
};
if (autoClose){
close();
};
}
protected function isValidAction(_arg1:String):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < _actions.length) {
if (_arg1 == _actions[_local2].activator){
return (true);
};
_local2++;
};
return (false);
}
private function _defineActions():void{
var _local1:String;
var _local2:Array;
var _local3:AlertAction;
var _local4:int;
_local1 = "";
if (actionOnNextLine){
_local1 = (_local1 + "\n");
} else {
_local1 = (_local1 + " |");
};
_local1 = (_local1 + " ");
_local2 = [];
_local4 = 0;
while (_local4 < _actions.length) {
_local3 = _actions[_local4];
_local2.push((((("<a href=\"event:" + _local3.activator) + "\">") + _local3.name) + "</a>"));
_local4++;
};
_local1 = (_local1 + _local2.join(" | "));
appendText(_local1, "uiAlertAction");
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 77
//AlertAction (com.google.analytics.debug.AlertAction)
package com.google.analytics.debug {
public class AlertAction {
public var container:Alert;
private var _callback;
public var name:String;
public var activator:String;
public function AlertAction(_arg1:String, _arg2:String, _arg3){
this.name = _arg1;
this.activator = _arg2;
_callback = _arg3;
}
public function execute():void{
if (_callback){
if ((_callback is Function)){
(_callback as Function)();
} else {
if ((_callback is String)){
var _local1 = container;
_local1[_callback]();
};
};
};
}
}
}//package com.google.analytics.debug
Section 78
//Align (com.google.analytics.debug.Align)
package com.google.analytics.debug {
public class Align {
private var _value:int;
private var _name:String;
public static const bottomRight:Align = new Align(18, "bottomRight");
;
public static const right:Align = new Align(16, "right");
;
public static const left:Align = new Align(32, "left");
;
public static const topRight:Align = new Align(17, "topRight");
;
public static const bottom:Align = new Align(2, "bottom");
;
public static const bottomLeft:Align = new Align(34, "bottomLeft");
;
public static const topLeft:Align = new Align(33, "topLeft");
;
public static const center:Align = new Align(0x0100, "center");
;
public static const none:Align = new Align(0, "none");
;
public static const top:Align = new Align(1, "top");
;
public function Align(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 79
//Background (com.google.analytics.debug.Background)
package com.google.analytics.debug {
import flash.display.*;
public class Background {
public static function drawRounded(_arg1, _arg2:Graphics, _arg3:uint=0, _arg4:uint=0):void{
var _local5:uint;
var _local6:uint;
var _local7:uint;
_local7 = Style.roundedCorner;
if ((((_arg3 > 0)) && ((_arg4 > 0)))){
_local5 = _arg3;
_local6 = _arg4;
} else {
_local5 = _arg1.width;
_local6 = _arg1.height;
};
if (((_arg1.stickToEdge) && (!((_arg1.alignement == Align.none))))){
switch (_arg1.alignement){
case Align.top:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, _local7);
break;
case Align.topLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, 0, _local7);
break;
case Align.topRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, 0);
break;
case Align.bottom:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, _local7, 0, 0);
break;
case Align.bottomLeft:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, 0);
break;
case Align.bottomRight:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, 0, 0);
break;
case Align.left:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, _local7);
break;
case Align.right:
_arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, _local7, 0);
break;
case Align.center:
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
break;
};
} else {
_arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7);
};
}
}
}//package com.google.analytics.debug
Section 80
//Debug (com.google.analytics.debug.Debug)
package com.google.analytics.debug {
import flash.events.*;
import flash.ui.*;
public class Debug extends Label {
private var _lines:Array;
private var _preferredForcedWidth:uint;// = 540
private var _linediff:int;// = 0
public var maxLines:uint;// = 16
public static var count:uint = 0;
public function Debug(_arg1:uint=0, _arg2:Align=null, _arg3:Boolean=false){
if (_arg2 == null){
_arg2 = Align.bottom;
};
super("", "uiLabel", _arg1, _arg2, _arg3);
this.name = ("Debug" + count++);
_lines = [];
selectable = true;
addEventListener(KeyboardEvent.KEY_DOWN, onKey);
}
public function writeBold(_arg1:String):void{
write(_arg1, true);
}
private function _getLinesToDisplay(_arg1:int=0):Array{
var _local2:Array;
var _local3:uint;
var _local4:uint;
if ((_lines.length - 1) > maxLines){
if ((_linediff <= 0)){
_linediff = (_linediff + _arg1);
} else {
if ((((_linediff > 0)) && ((_arg1 < 0)))){
_linediff = (_linediff + _arg1);
};
};
_local3 = ((_lines.length - maxLines) + _linediff);
_local4 = (_local3 + maxLines);
_local2 = _lines.slice(_local3, _local4);
} else {
_local2 = _lines;
};
return (_local2);
}
private function onKey(_arg1:KeyboardEvent=null):void{
var _local2:Array;
switch (_arg1.keyCode){
case Keyboard.DOWN:
_local2 = _getLinesToDisplay(1);
break;
case Keyboard.UP:
_local2 = _getLinesToDisplay(-1);
break;
default:
_local2 = null;
};
if (_local2 == null){
return;
};
text = _local2.join("\n");
}
override public function get forcedWidth():uint{
if (this.parent){
if (UISprite(this.parent).forcedWidth > _preferredForcedWidth){
return (_preferredForcedWidth);
};
return (UISprite(this.parent).forcedWidth);
//unresolved jump
};
return (super.forcedWidth);
}
public function write(_arg1:String, _arg2:Boolean=false):void{
var _local3:Array;
if (_arg1.indexOf("") > -1){
_local3 = _arg1.split("\n");
} else {
_local3 = [_arg1];
};
var _local4 = "";
var _local5 = "";
if (_arg2){
_local4 = "<b>";
_local5 = "</b>";
};
var _local6:int;
while (_local6 < _local3.length) {
_lines.push(((_local4 + _local3[_local6]) + _local5));
_local6++;
};
var _local7:Array = _getLinesToDisplay();
text = _local7.join("\n");
}
public function close():void{
dispose();
}
override protected function dispose():void{
removeEventListener(KeyboardEvent.KEY_DOWN, onKey);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 81
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class DebugConfiguration {
public var showHideKey:Number;
private var _mode:VisualDebugMode;
private var _verbose:Boolean;// = false
public var destroyKey:Number;
public var GIFRequests:Boolean;// = false
public var showInfos:Boolean;// = true
public var infoTimeout:Number;// = 1000
public var minimizedOnStart:Boolean;// = false
private var _active:Boolean;// = false
public var traceOutput:Boolean;// = false
public var layout:ILayout;
public var warningTimeout:Number;// = 1500
public var javascript:Boolean;// = false
public var showWarnings:Boolean;// = true
private var _visualInitialized:Boolean;// = false
public function DebugConfiguration(){
_mode = VisualDebugMode.basic;
showHideKey = Keyboard.SPACE;
destroyKey = Keyboard.BACKSPACE;
super();
}
public function get verbose():Boolean{
return (_verbose);
}
public function set verbose(_arg1:Boolean):void{
_verbose = _arg1;
}
public function set mode(_arg1):void{
if ((_arg1 is String)){
switch (_arg1){
case "geek":
_arg1 = VisualDebugMode.geek;
break;
case "advanced":
_arg1 = VisualDebugMode.advanced;
break;
case "basic":
default:
_arg1 = VisualDebugMode.basic;
};
};
_mode = _arg1;
}
public function success(_arg1:String):void{
if (layout){
layout.createSuccessAlert(_arg1);
};
if (traceOutput){
trace((("[+] " + _arg1) + " !!"));
};
}
public function get active():Boolean{
return (_active);
}
private function _initializeVisual():void{
if (layout){
layout.init();
_visualInitialized = true;
};
}
private function _destroyVisual():void{
if (((layout) && (_visualInitialized))){
layout.destroy();
};
}
public function warning(_arg1:String, _arg2:VisualDebugMode=null):void{
if (_filter(_arg2)){
return;
};
if (((layout) && (showWarnings))){
layout.createWarning(_arg1);
};
if (traceOutput){
trace((("## " + _arg1) + " ##"));
};
}
private function _filter(_arg1:VisualDebugMode=null):Boolean{
return (((_arg1) && ((int(_arg1) >= int(this.mode)))));
}
public function failure(_arg1:String):void{
if (layout){
layout.createFailureAlert(_arg1);
};
if (traceOutput){
trace((("[-] " + _arg1) + " !!"));
};
}
public function get mode(){
return (_mode);
}
public function set active(_arg1:Boolean):void{
_active = _arg1;
if (_active){
_initializeVisual();
} else {
_destroyVisual();
};
}
protected function trace(_arg1:String):void{
var _local7:Array;
var _local8:int;
var _local2:Array = [];
var _local3 = "";
var _local4 = "";
if (this.mode == VisualDebugMode.geek){
_local3 = (getTimer() + " - ");
_local4 = (new Array(_local3.length).join(" ") + " ");
};
if (_arg1.indexOf("\n") > -1){
_local7 = _arg1.split("\n");
_local8 = 0;
while (_local8 < _local7.length) {
if (_local7[_local8] == ""){
} else {
if (_local8 == 0){
_local2.push((_local3 + _local7[_local8]));
} else {
_local2.push((_local4 + _local7[_local8]));
};
};
_local8++;
};
} else {
_local2.push((_local3 + _arg1));
};
var _local5:int = _local2.length;
var _local6:int;
while (_local6 < _local5) {
trace(_local2[_local6]);
_local6++;
};
}
public function alert(_arg1:String):void{
if (layout){
layout.createAlert(_arg1);
};
if (traceOutput){
trace((("!! " + _arg1) + " !!"));
};
}
public function info(_arg1:String, _arg2:VisualDebugMode=null):void{
if (_filter(_arg2)){
return;
};
if (((layout) && (showInfos))){
layout.createInfo(_arg1);
};
if (traceOutput){
trace(_arg1);
};
}
public function alertGifRequest(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{
if (layout){
layout.createGIFRequestAlert(_arg1, _arg2, _arg3);
};
if (traceOutput){
trace(((">> " + _arg1) + " <<"));
};
}
}
}//package com.google.analytics.debug
Section 82
//FailureAlert (com.google.analytics.debug.FailureAlert)
package com.google.analytics.debug {
public class FailureAlert extends Alert {
public function FailureAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Failure</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiFailure", Style.failureColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 83
//GIFRequestAlert (com.google.analytics.debug.GIFRequestAlert)
package com.google.analytics.debug {
public class GIFRequestAlert extends Alert {
public function GIFRequestAlert(_arg1:String, _arg2:Array){
super(_arg1, _arg2);
}
}
}//package com.google.analytics.debug
Section 84
//ILayout (com.google.analytics.debug.ILayout)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.display.*;
public interface ILayout {
function createWarning(_arg1:String):void;
function addToStage(_arg1:DisplayObject):void;
function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void;
function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void;
function createInfo(_arg1:String):void;
function createFailureAlert(_arg1:String):void;
function addToPanel(_arg1:String, _arg2:DisplayObject):void;
function init():void;
function createSuccessAlert(_arg1:String):void;
function createVisualDebug():void;
function createAlert(_arg1:String):void;
function destroy():void;
function bringToFront(_arg1:DisplayObject):void;
function isAvailable():Boolean;
}
}//package com.google.analytics.debug
Section 85
//Info (com.google.analytics.debug.Info)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Info extends Label {
private var _timer:Timer;
public function Info(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiInfo", Style.infoColor, Align.top, true);
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 86
//Label (com.google.analytics.debug.Label)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Label extends UISprite {
private var _color:uint;
private var _background:Shape;
private var _textField:TextField;
public var stickToEdge:Boolean;
private var _text:String;
protected var selectable:Boolean;
private var _tag:String;
public static var count:uint = 0;
public function Label(_arg1:String="", _arg2:String="uiLabel", _arg3:uint=0, _arg4:Align=null, _arg5:Boolean=false){
this.name = ("Label" + count++);
selectable = false;
_background = new Shape();
_textField = new TextField();
_text = _arg1;
_tag = _arg2;
if (_arg4 == null){
_arg4 = Align.none;
};
this.alignement = _arg4;
this.stickToEdge = _arg5;
if (_arg3 == 0){
_arg3 = Style.backgroundColor;
};
_color = _arg3;
_textField.addEventListener(TextEvent.LINK, onLink);
}
public function get tag():String{
return (_tag);
}
private function _draw():void{
var _local1:Graphics = _background.graphics;
_local1.clear();
_local1.beginFill(_color);
var _local2:uint = _textField.width;
var _local3:uint = _textField.height;
if (forcedWidth > 0){
_local2 = forcedWidth;
};
Background.drawRounded(this, _local1, _local2, _local3);
_local1.endFill();
}
public function get text():String{
return (_textField.text);
}
public function appendText(_arg1:String, _arg2:String=""):void{
if (_arg1 == ""){
return;
};
if (_arg2 == ""){
_arg2 = tag;
};
_textField.htmlText = (_textField.htmlText + (((("<span class=\"" + _arg2) + "\">") + _arg1) + "</span>"));
_text = (_text + _arg1);
_draw();
resize();
}
public function set text(_arg1:String):void{
if (_arg1 == ""){
_arg1 = _text;
};
_textField.htmlText = (((("<span class=\"" + tag) + "\">") + _arg1) + "</span>");
_text = _arg1;
_draw();
resize();
}
override protected function layout():void{
_textField.type = TextFieldType.DYNAMIC;
_textField.autoSize = TextFieldAutoSize.LEFT;
_textField.background = false;
_textField.selectable = selectable;
_textField.multiline = true;
_textField.styleSheet = Style.sheet;
this.text = _text;
addChild(_background);
addChild(_textField);
}
public function set tag(_arg1:String):void{
_tag = _arg1;
text = "";
}
public function onLink(_arg1:TextEvent):void{
}
override protected function dispose():void{
_textField.removeEventListener(TextEvent.LINK, onLink);
super.dispose();
}
}
}//package com.google.analytics.debug
Section 87
//Layout (com.google.analytics.debug.Layout)
package com.google.analytics.debug {
import com.google.analytics.core.*;
import flash.net.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.*;
public class Layout implements ILayout {
private var _display:DisplayObject;
private var _infoQueue:Array;
private var _maxCharPerLine:int;// = 85
private var _hasInfo:Boolean;
private var _warningQueue:Array;
private var _hasDebug:Boolean;
private var _hasWarning:Boolean;
private var _mainPanel:Panel;
private var _GRAlertQueue:Array;
private var _debug:DebugConfiguration;
public var visualDebug:Debug;
private var _hasGRAlert:Boolean;
public function Layout(_arg1:DebugConfiguration, _arg2:DisplayObject){
_display = _arg2;
_debug = _arg1;
_hasWarning = false;
_hasInfo = false;
_hasDebug = false;
_hasGRAlert = false;
_warningQueue = [];
_infoQueue = [];
_GRAlertQueue = [];
}
private function onKey(_arg1:KeyboardEvent=null):void{
switch (_arg1.keyCode){
case _debug.showHideKey:
_mainPanel.visible = !(_mainPanel.visible);
break;
case _debug.destroyKey:
destroy();
break;
};
}
public function createWarning(_arg1:String):void{
if (((_hasWarning) || (!(isAvailable())))){
_warningQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasWarning = true;
var _local2:Warning = new Warning(_arg1, _debug.warningTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearWarning, false, 0, true);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function bringToFront(_arg1:DisplayObject):void{
_display.stage.setChildIndex(_arg1, (_display.stage.numChildren - 1));
}
public function createFailureAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new FailureAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function init():void{
var _local1 = 10;
var _local2:uint = (_display.stage.stageWidth - (_local1 * 2));
var _local3:uint = (_display.stage.stageHeight - (_local1 * 2));
var _local4:Panel = new Panel("analytics", _local2, _local3);
_local4.alignement = Align.top;
_local4.stickToEdge = false;
_local4.title = ("Google Analytics v" + GATracker.version);
_mainPanel = _local4;
addToStage(_local4);
bringToFront(_local4);
if (_debug.minimizedOnStart){
_mainPanel.onToggle();
};
createVisualDebug();
_display.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey, false, 0, true);
}
public function addToPanel(_arg1:String, _arg2:DisplayObject):void{
var _local4:Panel;
var _local3:DisplayObject = _display.stage.getChildByName(_arg1);
if (_local3){
_local4 = (_local3 as Panel);
_local4.addData(_arg2);
} else {
trace((("panel \"" + _arg1) + "\" not found"));
};
}
private function _clearInfo(_arg1:Event):void{
_hasInfo = false;
if (_infoQueue.length > 0){
createInfo(_infoQueue.shift());
};
}
private function _filterMaxChars(_arg1:String, _arg2:int=0):String{
var _local6:String;
var _local3 = "\n";
var _local4:Array = [];
var _local5:Array = _arg1.split(_local3);
if (_arg2 == 0){
_arg2 = _maxCharPerLine;
};
var _local7:int;
while (_local7 < _local5.length) {
_local6 = _local5[_local7];
while (_local6.length > _arg2) {
_local4.push(_local6.substr(0, _arg2));
_local6 = _local6.substring(_arg2);
};
_local4.push(_local6);
_local7++;
};
return (_local4.join(_local3));
}
private function _clearGRAlert(_arg1:Event):void{
_hasGRAlert = false;
if (_GRAlertQueue.length > 0){
createGIFRequestAlert.apply(this, _GRAlertQueue.shift());
};
}
public function createSuccessAlert(_arg1:String):void{
var _local2:AlertAction;
if (_debug.verbose){
_arg1 = _filterMaxChars(_arg1);
_local2 = new AlertAction("Close", "close", "close");
} else {
_local2 = new AlertAction("X", "close", "close");
};
var _local3:Alert = new SuccessAlert(_debug, _arg1, [_local2]);
addToPanel("analytics", _local3);
if (_hasDebug){
if (_debug.verbose){
_arg1 = _arg1.split("\n").join("");
_arg1 = _filterMaxChars(_arg1, 66);
};
visualDebug.writeBold(_arg1);
};
}
public function isAvailable():Boolean{
return (!((_display.stage == null)));
}
public function createAlert(_arg1:String):void{
_arg1 = _filterMaxChars(_arg1);
var _local2:Alert = new Alert(_arg1, [new AlertAction("Close", "close", "close")]);
addToPanel("analytics", _local2);
if (_hasDebug){
visualDebug.writeBold(_arg1);
};
}
public function createInfo(_arg1:String):void{
if (((_hasInfo) || (!(isAvailable())))){
_infoQueue.push(_arg1);
return;
};
_arg1 = _filterMaxChars(_arg1);
_hasInfo = true;
var _local2:Info = new Info(_arg1, _debug.infoTimeout);
addToPanel("analytics", _local2);
_local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearInfo, false, 0, true);
if (_hasDebug){
visualDebug.write(_arg1);
};
}
public function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{
var message = _arg1;
var request = _arg2;
var ref = _arg3;
if (_hasGRAlert){
_GRAlertQueue.push([message, request, ref]);
return;
};
_hasGRAlert = true;
var f:Function = function ():void{
ref.sendRequest(request);
};
message = _filterMaxChars(message);
var gra:GIFRequestAlert = new GIFRequestAlert(message, [new AlertAction("OK", "ok", f), new AlertAction("Cancel", "cancel", "close")]);
addToPanel("analytics", gra);
gra.addEventListener(Event.REMOVED_FROM_STAGE, _clearGRAlert, false, 0, true);
if (_hasDebug){
if (_debug.verbose){
message = message.split("\n").join("");
message = _filterMaxChars(message, 66);
};
visualDebug.write(message);
};
}
public function createVisualDebug():void{
if (!visualDebug){
visualDebug = new Debug();
visualDebug.alignement = Align.bottom;
visualDebug.stickToEdge = true;
addToPanel("analytics", visualDebug);
_hasDebug = true;
};
}
public function addToStage(_arg1:DisplayObject):void{
_display.stage.addChild(_arg1);
}
private function _clearWarning(_arg1:Event):void{
_hasWarning = false;
if (_warningQueue.length > 0){
createWarning(_warningQueue.shift());
};
}
public function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void{
var _local4:Panel = new Panel(_arg1, _arg2, _arg3);
_local4.alignement = Align.center;
_local4.stickToEdge = false;
addToStage(_local4);
bringToFront(_local4);
}
public function destroy():void{
_mainPanel.close();
_debug.layout = null;
}
}
}//package com.google.analytics.debug
Section 88
//Margin (com.google.analytics.debug.Margin)
package com.google.analytics.debug {
public class Margin {
public var bottom:int;
public var top:int;
public var right:int;
public var left:int;
public function Margin(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0){
this.top = _arg1;
this.bottom = _arg2;
this.left = _arg3;
this.right = _arg4;
}
}
}//package com.google.analytics.debug
Section 89
//Panel (com.google.analytics.debug.Panel)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
public class Panel extends UISprite {
private var _savedH:uint;
private var _data:UISprite;
private var _mask:Sprite;
private var _background:Shape;
private var _savedW:uint;
private var _stickToEdge:Boolean;
private var _border:Shape;
private var _borderColor:uint;
protected var baseAlpha:Number;
private var _backgroundColor:uint;
private var _title:Label;
private var _colapsed:Boolean;
private var _name:String;
public function Panel(_arg1:String, _arg2:uint, _arg3:uint, _arg4:uint=0, _arg5:uint=0, _arg6:Number=0.3, _arg7:Align=null, _arg8:Boolean=false){
_name = _arg1;
this.name = _arg1;
this.mouseEnabled = false;
_colapsed = false;
forcedWidth = _arg2;
forcedHeight = _arg3;
this.baseAlpha = _arg6;
_background = new Shape();
_data = new UISprite();
_data.forcedWidth = _arg2;
_data.forcedHeight = _arg3;
_data.mouseEnabled = false;
_title = new Label(_arg1, "uiLabel", 0xFFFFFF, Align.topLeft, _arg8);
_title.buttonMode = true;
_title.margin.top = 0.6;
_title.margin.left = 0.6;
_title.addEventListener(MouseEvent.CLICK, onToggle);
_title.mouseChildren = false;
_border = new Shape();
_mask = new Sprite();
_mask.useHandCursor = false;
_mask.mouseEnabled = false;
_mask.mouseChildren = false;
if (_arg7 == null){
_arg7 = Align.none;
};
this.alignement = _arg7;
this.stickToEdge = _arg8;
if (_arg4 == 0){
_arg4 = Style.backgroundColor;
};
_backgroundColor = _arg4;
if (_arg5 == 0){
_arg5 = Style.borderColor;
};
_borderColor = _arg5;
}
public function get stickToEdge():Boolean{
return (_stickToEdge);
}
public function onToggle(_arg1:MouseEvent=null):void{
if (_colapsed){
_data.visible = true;
} else {
_data.visible = false;
};
_colapsed = !(_colapsed);
_update();
resize();
}
public function set stickToEdge(_arg1:Boolean):void{
_stickToEdge = _arg1;
_title.stickToEdge = _arg1;
}
override protected function dispose():void{
_title.removeEventListener(MouseEvent.CLICK, onToggle);
super.dispose();
}
private function _draw():void{
var _local1:uint;
var _local2:uint;
if (((_savedW) && (_savedH))){
forcedWidth = _savedW;
forcedHeight = _savedH;
};
if (!_colapsed){
_local1 = forcedWidth;
_local2 = forcedHeight;
} else {
_local1 = _title.width;
_local2 = _title.height;
_savedW = forcedWidth;
_savedH = forcedHeight;
forcedWidth = _local1;
forcedHeight = _local2;
};
var _local3:Graphics = _background.graphics;
_local3.clear();
_local3.beginFill(_backgroundColor);
Background.drawRounded(this, _local3, _local1, _local2);
_local3.endFill();
var _local4:Graphics = _data.graphics;
_local4.clear();
_local4.beginFill(_backgroundColor, 0);
Background.drawRounded(this, _local4, _local1, _local2);
_local4.endFill();
var _local5:Graphics = _border.graphics;
_local5.clear();
_local5.lineStyle(0.1, _borderColor);
Background.drawRounded(this, _local5, _local1, _local2);
_local5.endFill();
var _local6:Graphics = _mask.graphics;
_local6.clear();
_local6.beginFill(_backgroundColor);
Background.drawRounded(this, _local6, (_local1 + 1), (_local2 + 1));
_local6.endFill();
}
public function get title():String{
return (_title.text);
}
private function _update():void{
_draw();
if (baseAlpha < 1){
_background.alpha = baseAlpha;
_border.alpha = baseAlpha;
};
}
public function addData(_arg1:DisplayObject):void{
_data.addChild(_arg1);
}
override protected function layout():void{
_update();
addChild(_background);
addChild(_data);
addChild(_title);
addChild(_border);
addChild(_mask);
mask = _mask;
}
public function set title(_arg1:String):void{
_title.text = _arg1;
}
public function close():void{
dispose();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 90
//Style (com.google.analytics.debug.Style)
package com.google.analytics.debug {
public const Style:_Style = new _Style();
}//package com.google.analytics.debug
Section 91
//SuccessAlert (com.google.analytics.debug.SuccessAlert)
package com.google.analytics.debug {
public class SuccessAlert extends Alert {
public function SuccessAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){
var _local4:Align;
var _local5:Boolean;
var _local6:Boolean;
_local4 = Align.bottomLeft;
_local5 = true;
_local6 = false;
if (_arg1.verbose){
_arg2 = ((("<u><span class=\"uiAlertTitle\">Success</span>" + spaces(18)) + "</u>\n\n") + _arg2);
_local4 = Align.center;
_local5 = false;
_local6 = true;
};
super(_arg2, _arg3, "uiSuccess", Style.successColor, _local4, _local5, _local6);
}
}
}//package com.google.analytics.debug
Section 92
//UISprite (com.google.analytics.debug.UISprite)
package com.google.analytics.debug {
import flash.events.*;
import flash.display.*;
public class UISprite extends Sprite {
private var _forcedHeight:uint;
protected var listenResize:Boolean;
public var alignement:Align;
private var _forcedWidth:uint;
public var margin:Margin;
protected var alignTarget:DisplayObject;
public function UISprite(_arg1:DisplayObject=null){
listenResize = false;
alignement = Align.none;
this.alignTarget = _arg1;
margin = new Margin();
addEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
}
protected function dispose():void{
var _local1:DisplayObject;
var _local2:int;
_local2 = 0;
while (_local2 < numChildren) {
_local1 = getChildAt(_local2);
if (_local1){
removeChild(_local1);
};
_local2++;
};
}
protected function layout():void{
}
public function get forcedHeight():uint{
if (_forcedHeight){
return (_forcedHeight);
};
return (height);
}
public function alignTo(_arg1:Align, _arg2:DisplayObject=null):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:UISprite;
if (_arg2 == null){
if ((parent is Stage)){
_arg2 = this.stage;
} else {
_arg2 = parent;
};
};
if (_arg2 == this.stage){
if (this.stage == null){
return;
};
_local3 = this.stage.stageHeight;
_local4 = this.stage.stageWidth;
_local5 = 0;
_local6 = 0;
} else {
_local7 = (_arg2 as UISprite);
if (_local7.forcedHeight){
_local3 = _local7.forcedHeight;
} else {
_local3 = _local7.height;
};
if (_local7.forcedWidth){
_local4 = _local7.forcedWidth;
} else {
_local4 = _local7.width;
};
_local5 = 0;
_local6 = 0;
};
switch (_arg1){
case Align.top:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (_local6 + margin.top);
break;
case Align.bottom:
x = ((_local4 / 2) - (forcedWidth / 2));
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.left:
x = (_local5 + margin.left);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.right:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.center:
x = ((_local4 / 2) - (forcedWidth / 2));
y = ((_local3 / 2) - (forcedHeight / 2));
break;
case Align.topLeft:
x = (_local5 + margin.left);
y = (_local6 + margin.top);
break;
case Align.topRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (_local6 + margin.top);
break;
case Align.bottomLeft:
x = (_local5 + margin.left);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
case Align.bottomRight:
x = (((_local5 + _local4) - forcedWidth) - margin.right);
y = (((_local6 + _local3) - forcedHeight) - margin.bottom);
break;
};
if (((!(listenResize)) && (!((_arg1 == Align.none))))){
_arg2.addEventListener(Event.RESIZE, onResize, false, 0, true);
listenResize = true;
};
this.alignement = _arg1;
this.alignTarget = _arg2;
}
public function get forcedWidth():uint{
if (_forcedWidth){
return (_forcedWidth);
};
return (width);
}
protected function onResize(_arg1:Event):void{
resize();
}
private function _onRemovedFromStage(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, _onAddedToStage);
removeEventListener(Event.REMOVED_FROM_STAGE, _onRemovedFromStage);
dispose();
}
public function resize():void{
if (alignement != Align.none){
alignTo(alignement, alignTarget);
};
}
private function _onAddedToStage(_arg1:Event):void{
layout();
resize();
}
public function set forcedHeight(_arg1:uint):void{
_forcedHeight = _arg1;
}
public function set forcedWidth(_arg1:uint):void{
_forcedWidth = _arg1;
}
}
}//package com.google.analytics.debug
Section 93
//Warning (com.google.analytics.debug.Warning)
package com.google.analytics.debug {
import flash.events.*;
import flash.utils.*;
public class Warning extends Label {
private var _timer:Timer;
public function Warning(_arg1:String="", _arg2:uint=3000){
super(_arg1, "uiWarning", Style.warningColor, Align.top, false);
margin.top = 32;
if (_arg2 > 0){
_timer = new Timer(_arg2, 1);
_timer.start();
_timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true);
};
}
public function onComplete(_arg1:TimerEvent):void{
close();
}
override public function onLink(_arg1:TextEvent):void{
switch (_arg1.text){
case "hide":
close();
break;
};
}
public function close():void{
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.google.analytics.debug
Section 94
//VisualDebugMode (com.google.analytics.debug.VisualDebugMode)
package com.google.analytics.debug {
public class VisualDebugMode {
private var _value:int;
private var _name:String;
public static const advanced:VisualDebugMode = new VisualDebugMode(1, "advanced");
;
public static const geek:VisualDebugMode = new VisualDebugMode(2, "geek");
;
public static const basic:VisualDebugMode = new VisualDebugMode(0, "basic");
;
public function VisualDebugMode(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.debug
Section 95
//AnalyticsEvent (com.google.analytics.events.AnalyticsEvent)
package com.google.analytics.events {
import flash.events.*;
import com.google.analytics.*;
public class AnalyticsEvent extends Event {
public var tracker:AnalyticsTracker;
public static const READY:String = "ready";
public function AnalyticsEvent(_arg1:String, _arg2:AnalyticsTracker, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.tracker = _arg2;
}
override public function clone():Event{
return (new AnalyticsEvent(type, tracker, bubbles, cancelable));
}
}
}//package com.google.analytics.events
Section 96
//AdSenseGlobals (com.google.analytics.external.AdSenseGlobals)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class AdSenseGlobals extends JavascriptProxy {
private var _gaGlobalVerified:Boolean;// = false
public static var gaGlobal_js:XML = <script>
<![CDATA[
function()
{
try
{
gaGlobal
}
catch(e)
{
gaGlobal = {} ;
}
}
]]>
</script>
;
public function AdSenseGlobals(_arg1:DebugConfiguration){
_gaGlobalVerified = false;
super(_arg1);
}
public function set vid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.vid", _arg1);
}
public function get hid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.hid"));
}
public function get dh():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.dh"));
}
public function get gaGlobal():Object{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal"));
}
public function set hid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.hid", _arg1);
}
public function get sid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.sid"));
}
private function _verify():void{
if (!_gaGlobalVerified){
executeBlock(gaGlobal_js);
_gaGlobalVerified = true;
};
}
public function get vid():String{
if (!isAvailable()){
return (null);
};
_verify();
return (getProperty("gaGlobal.vid"));
}
public function set sid(_arg1:String):void{
if (!isAvailable()){
return;
};
_verify();
setProperty("gaGlobal.sid", _arg1);
}
}
}//package com.google.analytics.external
Section 97
//HTMLDOM (com.google.analytics.external.HTMLDOM)
package com.google.analytics.external {
import com.google.analytics.debug.*;
public class HTMLDOM extends JavascriptProxy {
private var _referrer:String;
private var _protocol:String;
private var _host:String;
private var _location:String;
private var _pathname:String;
private var _title:String;
private var _characterSet:String;
private var _search:String;
private var _language:String;
private var _colorDepth:String;
public static var cache_properties_js:XML = <script>
<![CDATA[
function()
{
var obj = {};
obj.host = document.location.host;
obj.language = navigator.language ? navigator.language : navigator.browserLanguage;
obj.characterSet = document.characterSet ? document.characterSet : document.charset;
obj.colorDepth = window.screen.colorDepth;
obj.location = document.location.toString();
obj.pathname = document.location.pathname;
obj.protocol = document.location.protocol;
obj.search = document.location.search;
obj.referrer = document.referrer;
obj.title = document.title;
return obj;
}
]]>
</script>
;
public function HTMLDOM(_arg1:DebugConfiguration){
super(_arg1);
}
public function get search():String{
if (_search){
return (_search);
};
if (!isAvailable()){
return (null);
};
_search = getProperty("document.location.search");
return (_search);
}
public function get location():String{
if (_location){
return (_location);
};
if (!isAvailable()){
return (null);
};
_location = getPropertyString("document.location");
return (_location);
}
public function get pathname():String{
if (_pathname){
return (_pathname);
};
if (!isAvailable()){
return (null);
};
_pathname = getProperty("document.location.pathname");
return (_pathname);
}
public function get referrer():String{
if (_referrer){
return (_referrer);
};
if (!isAvailable()){
return (null);
};
_referrer = getProperty("document.referrer");
return (_referrer);
}
public function get protocol():String{
if (_protocol){
return (_protocol);
};
if (!isAvailable()){
return (null);
};
_protocol = getProperty("document.location.protocol");
return (_protocol);
}
public function cacheProperties():void{
var _local1:Object;
if (!isAvailable()){
return;
};
_local1 = call(cache_properties_js);
if (_local1){
_host = _local1.host;
_language = _local1.language;
_characterSet = _local1.characterSet;
_colorDepth = _local1.colorDepth;
_location = _local1.location;
_pathname = _local1.pathname;
_protocol = _local1.protocol;
_search = _local1.search;
_referrer = _local1.referrer;
_title = _local1.title;
};
}
public function get colorDepth():String{
if (_colorDepth){
return (_colorDepth);
};
if (!isAvailable()){
return (null);
};
_colorDepth = getProperty("window.screen.colorDepth");
return (_colorDepth);
}
public function get title():String{
if (_title){
return (_title);
};
if (!isAvailable()){
return (null);
};
_title = getProperty("document.title");
return (_title);
}
public function get host():String{
if (_host){
return (_host);
};
if (!isAvailable()){
return (null);
};
_host = getProperty("document.location.host");
return (_host);
}
public function get characterSet():String{
var _local1:String;
if (_characterSet){
return (_characterSet);
};
if (!isAvailable()){
return (null);
};
_local1 = getProperty("document.characterSet");
if (_local1 == null){
_local1 = getProperty("document.charset");
};
_characterSet = _local1;
return (_characterSet);
}
public function get language():String{
var _local1:String;
if (_language){
return (_language);
};
if (!isAvailable()){
return (null);
};
_local1 = getProperty("navigator.language");
if (_local1 == null){
_local1 = getProperty("navigator.browserLanguage");
};
_language = _local1;
return (_language);
}
}
}//package com.google.analytics.external
Section 98
//JavascriptProxy (com.google.analytics.external.JavascriptProxy)
package com.google.analytics.external {
import com.google.analytics.debug.*;
import flash.external.*;
import flash.system.*;
public class JavascriptProxy {
private var _notAvailableWarning:Boolean;// = true
private var _debug:DebugConfiguration;
public static var setProperty_js:XML = <script>
<![CDATA[
function( path , value )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
target[ prop ] = value ;
}
]]>
</script>
;
public static var hasProperty_js:XML = <script>
<![CDATA[
function( path )
{
var paths;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
}
else
{
paths = [path];
}
var target = window ;
var len = paths.length ;
for( var i = 0 ; i < len ; i++ )
{
target = target[ paths[i] ] ;
}
if( target )
{
return true;
}
else
{
return false;
}
}
]]>
</script>
;
public static var setPropertyRef_js:XML = <script>
<![CDATA[
function( path , target )
{
var paths;
var prop;
if( path.indexOf(".") > 0 )
{
paths = path.split(".");
prop = paths.pop() ;
}
else
{
paths = [];
prop = path;
}
alert( "paths:"+paths.length+", prop:"+prop );
var targets;
var name;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
alert( "targets:"+targets.length+", name:"+name );
var root = window;
var len = paths.length;
for( var i = 0 ; i < len ; i++ )
{
root = root[ paths[i] ] ;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
root[ prop ] = ref[name] ;
}
]]>
</script>
;
public function JavascriptProxy(_arg1:DebugConfiguration){
_notAvailableWarning = true;
super();
_debug = _arg1;
}
public function getProperty(_arg1:String){
return (call((_arg1 + ".valueOf")));
}
public function hasProperty(_arg1:String):Boolean{
return (call(hasProperty_js, _arg1));
}
public function setProperty(_arg1:String, _arg2):void{
call(setProperty_js, _arg1, _arg2);
}
public function executeBlock(_arg1:String):void{
var data = _arg1;
if (isAvailable()){
try {
ExternalInterface.call(data);
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
}
public function getPropertyString(_arg1:String):String{
return (call((_arg1 + ".toString")));
}
public function setPropertyByReference(_arg1:String, _arg2:String):void{
call(setPropertyRef_js, _arg1, _arg2);
}
public function call(_arg1:String, ... _args){
var output:String;
var functionName = _arg1;
var args = _args;
if (isAvailable()){
try {
if (((_debug.javascript) && (_debug.verbose))){
output = "";
output = ("Flash->JS: " + functionName);
output = (output + "( ");
if (args.length > 0){
output = (output + args.join(","));
};
output = (output + " )");
_debug.info(output);
};
args.unshift(functionName);
return (ExternalInterface.call.apply(ExternalInterface, args));
} catch(e:SecurityError) {
if (_debug.javascript){
_debug.warning("ExternalInterface is not allowed.\nEnsure that allowScriptAccess is set to \"always\" in the Flash embed HTML.");
};
} catch(e:Error) {
if (_debug.javascript){
_debug.warning(("ExternalInterface failed to make the call\nreason: " + e.message));
};
};
};
return (null);
}
public function isAvailable():Boolean{
var _local1:Boolean;
_local1 = ExternalInterface.available;
if (((_local1) && ((Capabilities.playerType == "External")))){
_local1 = false;
};
if (((((!(_local1)) && (_debug.javascript))) && (_notAvailableWarning))){
_debug.warning("ExternalInterface is not available.");
_notAvailableWarning = false;
};
return (_local1);
}
}
}//package com.google.analytics.external
Section 99
//Environment (com.google.analytics.utils.Environment)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.external.*;
import flash.system.*;
public class Environment {
private var _dom:HTMLDOM;
private var _appName:String;
private var _debug:DebugConfiguration;
private var _appVersion:Version;
private var _url:String;
private var _protocol:Protocols;
private var _userAgent:UserAgent;
public function Environment(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:DebugConfiguration=null, _arg5:HTMLDOM=null){
var _local6:Version;
super();
if (_arg2 == ""){
if (isAIR()){
_arg2 = "AIR";
} else {
_arg2 = "Flash";
};
};
if (_arg3 == ""){
_local6 = flashVersion;
} else {
_local6 = Version.fromString(_arg3);
};
_url = _arg1;
_appName = _arg2;
_appVersion = _local6;
_debug = _arg4;
_dom = _arg5;
}
public function isAIR():Boolean{
return ((((playerType == "Desktop")) && ((Security.sandboxType.toString() == "application"))));
}
public function get playerType():String{
return (Capabilities.playerType);
}
public function get locationSearch():String{
var _local1:String;
_local1 = _dom.search;
if (_local1){
return (_local1);
};
return ("");
}
public function get protocol():Protocols{
if (!_protocol){
_findProtocol();
};
return (_protocol);
}
public function get flashVersion():Version{
var _local1:Version;
_local1 = Version.fromString(Capabilities.version.split(" ")[1], ",");
return (_local1);
}
public function get screenWidth():Number{
return (Capabilities.screenResolutionX);
}
public function get languageEncoding():String{
var _local1:String;
if (System.useCodePage){
_local1 = _dom.characterSet;
if (_local1){
return (_local1);
};
return ("-");
};
return ("UTF-8");
}
public function get appName():String{
return (_appName);
}
public function get screenColorDepth():String{
var _local1:String;
var _local2:String;
switch (Capabilities.screenColor){
case "bw":
_local1 = "1";
break;
case "gray":
_local1 = "2";
break;
case "color":
default:
_local1 = "24";
};
_local2 = _dom.colorDepth;
if (_local2){
_local1 = _local2;
};
return (_local1);
}
private function _findProtocol():void{
var _local1:Protocols;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:String;
_local1 = Protocols.none;
if (_url != ""){
_local4 = _url.toLowerCase();
_local5 = _local4.substr(0, 5);
switch (_local5){
case "file:":
_local1 = Protocols.file;
break;
case "http:":
_local1 = Protocols.HTTP;
break;
case "https":
if (_local4.charAt(5) == ":"){
_local1 = Protocols.HTTPS;
};
break;
default:
_protocol = Protocols.none;
};
};
_local2 = _dom.protocol;
_local3 = (_local1.toString() + ":").toLowerCase();
if (((((_local2) && (!((_local2 == _local3))))) && (_debug))){
_debug.warning(((("Protocol mismatch: SWF=" + _local3) + ", DOM=") + _local2));
};
_protocol = _local1;
}
public function get locationSWFPath():String{
return (_url);
}
public function get platform():String{
var _local1:String;
_local1 = Capabilities.manufacturer;
return (_local1.split("Adobe ")[1]);
}
public function get operatingSystem():String{
return (Capabilities.os);
}
public function set appName(_arg1:String):void{
_appName = _arg1;
userAgent.applicationProduct = _arg1;
}
public function get userAgent():UserAgent{
if (!_userAgent){
_userAgent = new UserAgent(this, appName, appVersion.toString(4));
};
return (_userAgent);
}
ga_internal function set url(_arg1:String):void{
_url = _arg1;
}
public function get referrer():String{
var _local1:String;
_local1 = _dom.referrer;
if (_local1){
return (_local1);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function isInHTML():Boolean{
return ((Capabilities.playerType == "PlugIn"));
}
public function get language():String{
var _local1:String;
var _local2:String;
_local1 = _dom.language;
_local2 = Capabilities.language;
if (_local1){
if ((((_local1.length > _local2.length)) && ((_local1.substr(0, _local2.length) == _local2)))){
_local2 = _local1;
};
};
return (_local2);
}
public function get domainName():String{
var _local1:String;
var _local2:String;
var _local3:int;
if ((((protocol == Protocols.HTTP)) || ((protocol == Protocols.HTTPS)))){
_local1 = _url.toLowerCase();
if (protocol == Protocols.HTTP){
_local2 = _local1.split("http://").join("");
} else {
if (protocol == Protocols.HTTPS){
_local2 = _local1.split("https://").join("");
};
};
_local3 = _local2.indexOf("/");
if (_local3 > -1){
_local2 = _local2.substring(0, _local3);
};
return (_local2);
};
if (protocol == Protocols.file){
return ("localhost");
};
return ("");
}
public function set userAgent(_arg1:UserAgent):void{
_userAgent = _arg1;
}
public function set appVersion(_arg1:Version):void{
_appVersion = _arg1;
userAgent.applicationVersion = _arg1.toString(4);
}
public function get screenHeight():Number{
return (Capabilities.screenResolutionY);
}
public function get locationPath():String{
var _local1:String;
_local1 = _dom.pathname;
if (_local1){
return (_local1);
};
return ("");
}
public function get documentTitle():String{
var _local1:String;
_local1 = _dom.title;
if (_local1){
return (_local1);
};
return ("");
}
public function get appVersion():Version{
return (_appVersion);
}
}
}//package com.google.analytics.utils
Section 100
//Protocols (com.google.analytics.utils.Protocols)
package com.google.analytics.utils {
public class Protocols {
private var _value:int;
private var _name:String;
public static const none:Protocols = new Protocols(0, "none");
;
public static const HTTPS:Protocols = new Protocols(3, "HTTPS");
;
public static const file:Protocols = new Protocols(1, "file");
;
public static const HTTP:Protocols = new Protocols(2, "HTTP");
;
public function Protocols(_arg1:int=0, _arg2:String=""){
_value = _arg1;
_name = _arg2;
}
public function valueOf():int{
return (_value);
}
public function toString():String{
return (_name);
}
}
}//package com.google.analytics.utils
Section 101
//Timespan (com.google.analytics.utils.Timespan)
package com.google.analytics.utils {
public class Timespan {
public static var sixmonths:Number = 15768000;
public static var twoyears:Number = 63072000;
public static var thirtyminutes:Number = 1800;
}
}//package com.google.analytics.utils
Section 102
//URL (com.google.analytics.utils.URL)
package com.google.analytics.utils {
public class URL {
private var _url:String;
public function URL(_arg1:String=""){
_url = _arg1.toLowerCase();
}
public function get domain():String{
var _local1:Array;
if (((!((hostName == ""))) && ((hostName.indexOf(".") > -1)))){
_local1 = hostName.split(".");
switch (_local1.length){
case 2:
return (hostName);
case 3:
if (_local1[1] == "co"){
return (hostName);
};
_local1.shift();
return (_local1.join("."));
case 4:
_local1.shift();
return (_local1.join("."));
};
};
return ("");
}
public function get path():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf(hostName) == 0){
_local1 = _local1.substr(hostName.length);
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[0];
};
if (_local1.charAt(0) != "/"){
_local1 = ("/" + _local1);
};
return (_local1);
}
public function get protocol():Protocols{
var _local1:String = _url.split("://")[0];
switch (_local1){
case "file":
return (Protocols.file);
case "http":
return (Protocols.HTTP);
case "https":
return (Protocols.HTTPS);
default:
return (Protocols.none);
};
}
public function get hostName():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf("/") > -1){
_local1 = _local1.split("/")[0];
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[0];
};
if ((((protocol == Protocols.file)) || ((protocol == Protocols.none)))){
return ("");
};
return (_local1);
}
public function get subDomain():String{
if (((!((domain == ""))) && (!((domain == hostName))))){
return (hostName.split(("." + domain)).join(""));
};
return ("");
}
public function get search():String{
var _local1:String = _url;
if (_local1.indexOf("://") > -1){
_local1 = _local1.split("://")[1];
};
if (_local1.indexOf(hostName) == 0){
_local1 = _local1.substr(hostName.length);
};
if (_local1.indexOf("?") > -1){
_local1 = _local1.split("?")[1];
} else {
_local1 = "";
};
return (_local1);
}
}
}//package com.google.analytics.utils
Section 103
//UserAgent (com.google.analytics.utils.UserAgent)
package com.google.analytics.utils {
import com.google.analytics.core.*;
import flash.system.*;
public class UserAgent {
private var _version:Version;
private var _localInfo:Environment;
private var _applicationProduct:String;
public static var minimal:Boolean = false;
public function UserAgent(_arg1:Environment, _arg2:String="", _arg3:String=""){
_localInfo = _arg1;
applicationProduct = _arg2;
_version = Version.fromString(_arg3);
}
public function get tamarinProductToken():String{
if (UserAgent.minimal){
return ("");
};
if (System.vmVersion){
return (("Tamarin/" + Utils.trim(System.vmVersion, true)));
};
return ("");
}
public function set applicationProduct(_arg1:String):void{
_applicationProduct = _arg1;
}
public function get applicationVersion():String{
return (_version.toString(2));
}
public function get applicationProductToken():String{
var _local1:String;
_local1 = applicationProduct;
if (applicationVersion != ""){
_local1 = (_local1 + ("/" + applicationVersion));
};
return (_local1);
}
public function get vendorProductToken():String{
var _local1:String;
_local1 = "";
if (_localInfo.isAIR()){
_local1 = (_local1 + "AIR");
} else {
_local1 = (_local1 + "FlashPlayer");
};
_local1 = (_local1 + "/");
_local1 = (_local1 + _version.toString(3));
return (_local1);
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + applicationProductToken);
if (applicationComment != ""){
_local1 = (_local1 + (" " + applicationComment));
};
if (tamarinProductToken != ""){
_local1 = (_local1 + (" " + tamarinProductToken));
};
if (vendorProductToken != ""){
_local1 = (_local1 + (" " + vendorProductToken));
};
return (_local1);
}
public function get applicationComment():String{
var _local1:Array;
_local1 = [];
_local1.push(_localInfo.platform);
_local1.push(_localInfo.playerType);
if (!UserAgent.minimal){
_local1.push(_localInfo.operatingSystem);
_local1.push(_localInfo.language);
};
if (Capabilities.isDebugger){
_local1.push("DEBUG");
};
if (_local1.length > 0){
return ((("(" + _local1.join("; ")) + ")"));
};
return ("");
}
public function set applicationVersion(_arg1:String):void{
_version = Version.fromString(_arg1);
}
public function get applicationProduct():String{
return (_applicationProduct);
}
}
}//package com.google.analytics.utils
Section 104
//Variables (com.google.analytics.utils.Variables)
package com.google.analytics.utils {
import flash.net.*;
public dynamic class Variables {
public var post:Array;
public var URIencode:Boolean;
public var pre:Array;
public var sort:Boolean;// = true
public function Variables(_arg1:String=null, _arg2:Array=null, _arg3:Array=null){
pre = [];
post = [];
super();
if (_arg1){
decode(_arg1);
};
if (_arg2){
this.pre = _arg2;
};
if (_arg3){
this.post = _arg3;
};
}
private function _join(_arg1:Variables):void{
var _local2:String;
if (!_arg1){
return;
};
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
}
public function join(... _args):void{
var _local2:int = _args.length;
var _local3:int;
while (_local3 < _local2) {
if (!(_args[_local3] is Variables)){
} else {
_join(_args[_local3]);
};
_local3++;
};
}
public function toString():String{
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
var _local7:String;
var _local8:String;
var _local1:Array = [];
for (_local3 in this) {
_local2 = this[_local3];
if (URIencode){
_local2 = encodeURI(_local2);
};
_local1.push(((_local3 + "=") + _local2));
};
if (sort){
_local1.sort();
};
if (pre.length > 0){
pre.reverse();
_local5 = 0;
while (_local5 < pre.length) {
_local7 = pre[_local5];
_local6 = 0;
while (_local6 < _local1.length) {
_local4 = _local1[_local6];
if (_local4.indexOf(_local7) == 0){
_local1.unshift(_local1.splice(_local6, 1)[0]);
};
_local6++;
};
_local5++;
};
pre.reverse();
};
if (post.length > 0){
_local5 = 0;
while (_local5 < post.length) {
_local8 = post[_local5];
_local6 = 0;
while (_local6 < _local1.length) {
_local4 = _local1[_local6];
if (_local4.indexOf(_local8) == 0){
_local1.push(_local1.splice(_local6, 1)[0]);
};
_local6++;
};
_local5++;
};
};
return (_local1.join("&"));
}
public function decode(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:Array;
if (_arg1 == ""){
return;
};
if (_arg1.indexOf("&") > -1){
_local2 = _arg1.split("&");
} else {
_local2 = [_arg1];
};
var _local7:int;
while (_local7 < _local2.length) {
_local3 = _local2[_local7];
if (_local3.indexOf("=") > -1){
_local6 = _local3.split("=");
_local4 = _local6[0];
_local5 = decodeURI(_local6[1]);
this[_local4] = _local5;
};
_local7++;
};
}
public function toURLVariables():URLVariables{
var _local2:String;
var _local1:URLVariables = new URLVariables();
for (_local2 in this) {
_local1[_local2] = this[_local2];
};
return (_local1);
}
}
}//package com.google.analytics.utils
Section 105
//Version (com.google.analytics.utils.Version)
package com.google.analytics.utils {
public class Version {
private var _maxBuild:uint;// = 0xFF
private var _maxMinor:uint;// = 15
private var _maxMajor:uint;// = 15
private var _revision:uint;
private var _separator:String;// = "."
private var _maxRevision:uint;// = 0xFFFF
private var _build:uint;
private var _minor:uint;
private var _major:uint;
public function Version(_arg1:uint=0, _arg2:uint=0, _arg3:uint=0, _arg4:uint=0){
var _local5:Version;
_maxMajor = 15;
_maxMinor = 15;
_maxBuild = 0xFF;
_maxRevision = 0xFFFF;
_separator = ".";
super();
if ((((((((_arg1 > _maxMajor)) && ((_arg2 == 0)))) && ((_arg3 == 0)))) && ((_arg4 == 0)))){
_local5 = Version.fromNumber(_arg1);
_arg1 = _local5.major;
_arg2 = _local5.minor;
_arg3 = _local5.build;
_arg4 = _local5.revision;
};
this.major = _arg1;
this.minor = _arg2;
this.build = _arg3;
this.revision = _arg4;
}
public function toString(_arg1:int=0):String{
var _local2:Array;
if ((((_arg1 <= 0)) || ((_arg1 > 4)))){
_arg1 = getFields();
};
switch (_arg1){
case 1:
_local2 = [major];
break;
case 2:
_local2 = [major, minor];
break;
case 3:
_local2 = [major, minor, build];
break;
case 4:
default:
_local2 = [major, minor, build, revision];
};
return (_local2.join(_separator));
}
public function get revision():uint{
return (_revision);
}
public function set build(_arg1:uint):void{
_build = Math.min(_arg1, _maxBuild);
}
public function set minor(_arg1:uint):void{
_minor = Math.min(_arg1, _maxMinor);
}
public function get build():uint{
return (_build);
}
public function set major(_arg1:uint):void{
_major = Math.min(_arg1, _maxMajor);
}
public function get minor():uint{
return (_minor);
}
public function valueOf():uint{
return (((((major << 28) | (minor << 24)) | (build << 16)) | revision));
}
public function get major():uint{
return (_major);
}
public function set revision(_arg1:uint):void{
_revision = Math.min(_arg1, _maxRevision);
}
private function getFields():int{
var _local1:int;
_local1 = 4;
if (revision == 0){
_local1--;
};
if ((((_local1 == 3)) && ((build == 0)))){
_local1--;
};
if ((((_local1 == 2)) && ((minor == 0)))){
_local1--;
};
return (_local1);
}
public function equals(_arg1):Boolean{
if (!(_arg1 is Version)){
return (false);
};
if ((((((((_arg1.major == major)) && ((_arg1.minor == minor)))) && ((_arg1.build == build)))) && ((_arg1.revision == revision)))){
return (true);
};
return (false);
}
public static function fromString(_arg1:String="", _arg2:String="."):Version{
var _local3:Version;
var _local4:Array;
_local3 = new (Version);
if ((((_arg1 == "")) || ((_arg1 == null)))){
return (_local3);
};
if (_arg1.indexOf(_arg2) > -1){
_local4 = _arg1.split(_arg2);
_local3.major = parseInt(_local4[0]);
_local3.minor = parseInt(_local4[1]);
_local3.build = parseInt(_local4[2]);
_local3.revision = parseInt(_local4[3]);
} else {
_local3.major = parseInt(_arg1);
};
return (_local3);
}
public static function fromNumber(_arg1:Number=0):Version{
var _local2:Version;
_local2 = new (Version);
if (((((((((((isNaN(_arg1)) || ((_arg1 == 0)))) || ((_arg1 < 0)))) || ((_arg1 == Number.MAX_VALUE)))) || ((_arg1 == Number.POSITIVE_INFINITY)))) || ((_arg1 == Number.NEGATIVE_INFINITY)))){
return (_local2);
};
_local2.major = (_arg1 >>> 28);
_local2.minor = ((_arg1 & 251658240) >>> 24);
_local2.build = ((_arg1 & 0xFF0000) >>> 16);
_local2.revision = (_arg1 & 0xFFFF);
return (_local2);
}
}
}//package com.google.analytics.utils
Section 106
//Bridge (com.google.analytics.v4.Bridge)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.external.*;
public class Bridge implements GoogleAnalyticsAPI {
private var _debug:DebugConfiguration;
private var _proxy:JavascriptProxy;
private var _jsContainer:String;// = "_GATracker"
private var _hasGATracker:Boolean;// = false
private var _account:String;
private static var _linkTrackingObject_js:XML = <script>
<![CDATA[
function( container , target )
{
var targets ;
var name ;
if( target.indexOf(".") > 0 )
{
targets = target.split(".");
name = targets.pop();
}
else
{
targets = [];
name = target;
}
var ref = window;
var depth = targets.length;
for( var j = 0 ; j < depth ; j++ )
{
ref = ref[ targets[j] ] ;
}
window[container][target] = ref[name] ;
}
]]>
</script>
;
private static var _createTrackingObject_js:XML = <script>
<![CDATA[
function( acct )
{
_GATracker[acct] = _gat._getTracker(acct);
}
]]>
</script>
;
private static var _injectTrackingObject_js:XML = <script>
<![CDATA[
function()
{
try
{
_GATracker
}
catch(e)
{
_GATracker = {};
}
}
]]>
</script>
;
private static var _checkGAJS_js:XML = <script>
<![CDATA[
function()
{
if( _gat && _gat._getTracker )
{
return true;
}
return false;
}
]]>
</script>
;
private static var _checkValidTrackingObject_js:XML = <script>
<![CDATA[
function(acct)
{
if( _GATracker[acct] && (_GATracker[acct]._getAccount) )
{
return true ;
}
else
{
return false;
}
}
]]>
</script>
;
public function Bridge(_arg1:String, _arg2:DebugConfiguration, _arg3:JavascriptProxy){
var _local4:String;
var _local5:String;
var _local6:String;
super();
_account = _arg1;
_debug = _arg2;
_proxy = _arg3;
if (!_checkGAJS()){
_local4 = "";
_local4 = (_local4 + "ga.js not found, be sure to check if\n");
_local4 = (_local4 + "<script src=\"http://www.google-analytics.com/ga.js\"></script>\n");
_local4 = (_local4 + "is included in the HTML.");
_debug.warning(_local4);
throw (new Error(_local4));
};
if (!_hasGATracker){
if (((_debug.javascript) && (_debug.verbose))){
_local5 = "";
_local5 = (_local5 + "The Google Analytics tracking code was not found on the container page\n");
_local5 = (_local5 + "we create it");
_debug.info(_local5, VisualDebugMode.advanced);
};
_injectTrackingObject();
};
if (Utils.validateAccount(_arg1)){
_createTrackingObject(_arg1);
} else {
if (_checkTrackingObject(_arg1)){
_linkTrackingObject(_arg1);
} else {
_local6 = "";
_local6 = (_local6 + (("JS Object \"" + _arg1) + "\" doesn't exist in DOM\n"));
_local6 = (_local6 + "Bridge object not created.");
_debug.warning(_local6);
throw (new Error(_local6));
};
};
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_debug.info((((("link( " + _arg1) + ", ") + _arg2) + " )"));
_call("_link", _arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )"));
_call("_addOrganic", _arg1);
}
public function setAllowLinker(_arg1:Boolean):void{
_debug.info((("setAllowLinker( " + _arg1) + " )"));
_call("_setAllowLinker", _arg1);
}
private function _linkTrackingObject(_arg1:String):void{
_proxy.call(_linkTrackingObject_js, _jsContainer, _arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5 = 2;
if (((_arg3) && (!((_arg3 == ""))))){
_local5 = 3;
};
if ((((_local5 == 3)) && (!(isNaN(_arg4))))){
_local5 = 4;
};
switch (_local5){
case 4:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2, _arg3, _arg4));
case 3:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2, _arg3));
case 2:
default:
_debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )"));
return (_call("_trackEvent", _arg1, _arg2));
};
}
public function setClientInfo(_arg1:Boolean):void{
_debug.info((("setClientInfo( " + _arg1) + " )"));
_call("_setClientInfo", _arg1);
}
public function trackTrans():void{
_debug.info("trackTrans()");
_call("_trackTrans");
}
public function setCookieTimeout(_arg1:int):void{
_debug.info((("setCookieTimeout( " + _arg1) + " )"));
_call("_setCookieTimeout", _arg1);
}
public function trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
_call("_trackPageview", _arg1);
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_call("_getClientInfo"));
}
private function _checkValidTrackingObject(_arg1:String):Boolean{
return (_proxy.call(_checkValidTrackingObject_js, _arg1));
}
private function _checkGAJS():Boolean{
return (_proxy.call(_checkGAJS_js));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((((("linkByPost( " + _arg1) + ", ") + _arg2) + " ) not implemented"));
}
private function _call(_arg1:String, ... _args){
_args.unshift(((((("window." + _jsContainer) + "[\"") + _account) + "\"].") + _arg1));
return (_proxy.call.apply(_proxy, _args));
}
public function hasGAJS():Boolean{
return (_checkGAJS());
}
private function _checkTrackingObject(_arg1:String):Boolean{
var _local2:Boolean = _proxy.hasProperty(_arg1);
var _local3:Boolean = _proxy.hasProperty((_arg1 + "._getAccount"));
return (((_local2) && (_local3)));
}
public function resetSession():void{
_debug.warning("resetSession() not implemented");
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_call("_getDetectTitle"));
}
public function setCampNameKey(_arg1:String):void{
_debug.info((("setCampNameKey( " + _arg1) + " )"));
_call("_setCampNameKey", _arg1);
}
public function setDetectFlash(_arg1:Boolean):void{
_debug.info((("setDetectFlash( " + _arg1) + " )"));
_call("_setDetectFlash", _arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
_debug.info((("createEventTracker( " + _arg1) + " )"));
return (new EventTracker(_arg1, this));
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_debug.info((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " )"));
_call("_addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function clearIgnoredOrganic():void{
_debug.info("clearIgnoredOrganic()");
_call("_clearIgnoreOrganic");
}
public function setVar(_arg1:String):void{
_debug.info((("setVar( " + _arg1) + " )"));
_call("_setVar", _arg1);
}
public function setDomainName(_arg1:String):void{
_debug.info((("setDomainName( " + _arg1) + " )"));
_call("_setDomainName", _arg1);
}
public function hasTrackingAccount(_arg1:String):Boolean{
if (Utils.validateAccount(_arg1)){
return (_checkValidTrackingObject(_arg1));
};
return (_checkTrackingObject(_arg1));
}
public function setCampSourceKey(_arg1:String):void{
_debug.info((("setCampSourceKey( " + _arg1) + " )"));
_call("_setCampSourceKey", _arg1);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
_debug.info((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " )"));
_call("_addTrans", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
return (null);
}
public function setCampContentKey(_arg1:String):void{
_debug.info((("setCampContentKey( " + _arg1) + " )"));
_call("_setCampContentKey", _arg1);
}
public function setLocalServerMode():void{
_debug.info("setLocalServerMode()");
_call("_setLocalServerMode");
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_call("_getLocalGifPath"));
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_call("_clearIgnoreRef");
}
public function setAllowAnchor(_arg1:Boolean):void{
_debug.info((("setAllowAnchor( " + _arg1) + " )"));
_call("_setAllowAnchor", _arg1);
}
public function setLocalGifPath(_arg1:String):void{
_debug.info((("setLocalGifPath( " + _arg1) + " )"));
_call("_setLocalGifPath", _arg1);
}
public function getVersion():String{
_debug.info("getVersion()");
return (_call("_getVersion"));
}
private function _injectTrackingObject():void{
_proxy.executeBlock(_injectTrackingObject_js);
_hasGATracker = true;
}
public function setCookiePath(_arg1:String):void{
_debug.info((("setCookiePath( " + _arg1) + " )"));
_call("_setCookiePath", _arg1);
}
public function setSampleRate(_arg1:Number):void{
_debug.info((("setSampleRate( " + _arg1) + " )"));
_call("_setSampleRate", _arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_debug.info((("setAllowHash( " + _arg1) + " )"));
_call("_setAllowHash", _arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_debug.info((("addIgnoredOrganic( " + _arg1) + " )"));
_call("_addIgnoredOrganic", _arg1);
}
public function setCampNOKey(_arg1:String):void{
_debug.info((("setCampNOKey( " + _arg1) + " )"));
_call("_setCampNOKey", _arg1);
}
public function cookiePathCopy(_arg1:String):void{
_debug.info((("cookiePathCopy( " + _arg1) + " )"));
_call("_cookiePathCopy", _arg1);
}
public function setLocalRemoteServerMode():void{
_debug.info("setLocalRemoteServerMode()");
_call("_setLocalRemoteServerMode");
}
public function getServiceMode():ServerOperationMode{
_debug.info("getServiceMode()");
return (_call("_getServiceMode"));
}
public function setDetectTitle(_arg1:Boolean):void{
_debug.info((("setDetectTitle( " + _arg1) + " )"));
_call("_setDetectTitle", _arg1);
}
private function _createTrackingObject(_arg1:String):void{
_proxy.call(_createTrackingObject_js, _arg1);
}
public function setCampaignTrack(_arg1:Boolean):void{
_debug.info((("setCampaignTrack( " + _arg1) + " )"));
_call("_setCampaignTrack", _arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_call("_clearOrganic");
}
public function setCampTermKey(_arg1:String):void{
_debug.info((("setCampTermKey( " + _arg1) + " )"));
_call("_setCampTermKey", _arg1);
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_call("_getDetectFlash"));
}
public function setCampMediumKey(_arg1:String):void{
_debug.info((("setCampMediumKey( " + _arg1) + " )"));
_call("_setCampMediumKey", _arg1);
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_call("_addIgnoredRef", _arg1);
}
public function setSessionTimeout(_arg1:int):void{
_debug.info((("setSessionTimeout( " + _arg1) + " )"));
_call("_setSessionTimeout", _arg1);
}
public function setRemoteServerMode():void{
_debug.info("setRemoteServerMode()");
_call("_setRemoteServerMode");
}
public function getAccount():String{
_debug.info("getAccount()");
return (_call("_getAccount"));
}
}
}//package com.google.analytics.v4
Section 107
//Configuration (com.google.analytics.v4.Configuration)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.utils.*;
import com.google.analytics.campaign.*;
public class Configuration {
public var serverMode:ServerOperationMode;
public var detectFlash:Boolean;// = true
public var allowLocalTracking:Boolean;// = true
public var secureRemoteGIFpath:String;// = "https://ssl.google-analytics.com/__utm.gif"
public var hasSiteOverlay:Boolean;// = false
private var _version:String;// = "4.3as"
public var allowDomainHash:Boolean;// = true
public var detectClientInfo:Boolean;// = true
public var idleLoop:Number;// = 30
public var isTrackOutboundSubdomains:Boolean;// = false
public var cookiePath:String;// = "/"
public var transactionFieldDelim:String;// = "|"
private var _organic:Organic;
private var _cookieName:String;// = "analytics"
public var campaignKey:CampaignKey;
public var google:String;// = "google"
public var googleCsePath:String;// = "cse"
public var bucketCapacity:Number;// = 10
private var _sampleRate:Number;// = 1
public var remoteGIFpath:String;// = "http://www.google-analytics.com/__utm.gif"
public var googleSearchParam:String;// = "q"
public var allowLinker:Boolean;// = false
public var maxOutboundLinkExamined:Number;// = 1000
private var _debug:DebugConfiguration;
private var _trackingLimitPerSession:int;// = 500
private var _domain:Domain;
public var allowAnchor:Boolean;// = false
public var tokenCliff:int;// = 10
public var sessionTimeout:Number;
public var idleTimeout:Number;// = 60
public var campaignTracking:Boolean;// = true
public var domainName:String;// = ""
public var detectTitle:Boolean;// = true
public var tokenRate:Number;// = 0.2
public var conversionTimeout:Number;
public var localGIFpath:String;// = "/__utm.gif"
public function Configuration(_arg1:DebugConfiguration=null){
_version = "4.3as";
_sampleRate = 1;
_trackingLimitPerSession = 500;
_organic = new Organic();
googleCsePath = "cse";
googleSearchParam = "q";
google = "google";
_cookieName = "analytics";
allowDomainHash = true;
allowAnchor = false;
allowLinker = false;
hasSiteOverlay = false;
tokenRate = 0.2;
conversionTimeout = Timespan.sixmonths;
sessionTimeout = Timespan.thirtyminutes;
idleLoop = 30;
idleTimeout = 60;
maxOutboundLinkExamined = 1000;
tokenCliff = 10;
bucketCapacity = 10;
detectClientInfo = true;
detectFlash = true;
detectTitle = true;
campaignKey = new CampaignKey();
campaignTracking = true;
isTrackOutboundSubdomains = false;
serverMode = ServerOperationMode.remote;
localGIFpath = "/__utm.gif";
remoteGIFpath = "http://www.google-analytics.com/__utm.gif";
secureRemoteGIFpath = "https://ssl.google-analytics.com/__utm.gif";
cookiePath = "/";
transactionFieldDelim = "|";
domainName = "";
allowLocalTracking = true;
super();
_debug = _arg1;
_domain = new Domain(DomainNameMode.auto, "", _debug);
serverMode = ServerOperationMode.remote;
_initOrganicSources();
}
public function get organic():Organic{
return (_organic);
}
public function get trackingLimitPerSession():int{
return (_trackingLimitPerSession);
}
private function _initOrganicSources():void{
addOrganicSource(google, googleSearchParam);
addOrganicSource("yahoo", "p");
addOrganicSource("msn", "q");
addOrganicSource("aol", "query");
addOrganicSource("aol", "encquery");
addOrganicSource("lycos", "query");
addOrganicSource("ask", "q");
addOrganicSource("altavista", "q");
addOrganicSource("netscape", "query");
addOrganicSource("cnn", "query");
addOrganicSource("looksmart", "qt");
addOrganicSource("about", "terms");
addOrganicSource("mamma", "query");
addOrganicSource("alltheweb", "q");
addOrganicSource("gigablast", "q");
addOrganicSource("voila", "rdata");
addOrganicSource("virgilio", "qs");
addOrganicSource("live", "q");
addOrganicSource("baidu", "wd");
addOrganicSource("alice", "qs");
addOrganicSource("yandex", "text");
addOrganicSource("najdi", "q");
addOrganicSource("aol", "q");
addOrganicSource("club-internet", "q");
addOrganicSource("mama", "query");
addOrganicSource("seznam", "q");
addOrganicSource("search", "q");
addOrganicSource("wp", "szukaj");
addOrganicSource("onet", "qt");
addOrganicSource("netsprint", "q");
addOrganicSource("google.interia", "q");
addOrganicSource("szukacz", "q");
addOrganicSource("yam", "k");
addOrganicSource("pchome", "q");
addOrganicSource("kvasir", "searchExpr");
addOrganicSource("sesam", "q");
addOrganicSource("ozu", "q");
addOrganicSource("terra", "query");
addOrganicSource("nostrum", "query");
addOrganicSource("mynet", "q");
addOrganicSource("ekolay", "q");
addOrganicSource("search.ilse", "search_for");
}
public function get sampleRate():Number{
return (_sampleRate);
}
public function get cookieName():String{
return (_cookieName);
}
public function addOrganicSource(_arg1:String, _arg2:String):void{
var engine = _arg1;
var keyword = _arg2;
try {
_organic.addSource(engine, keyword);
} catch(e:Error) {
if (((_debug) && (_debug.active))){
_debug.warning(e.message);
};
};
}
public function get domain():Domain{
return (_domain);
}
public function set sampleRate(_arg1:Number):void{
if (_arg1 <= 0){
_arg1 = 0.1;
};
if (_arg1 > 1){
_arg1 = 1;
};
_arg1 = Number(_arg1.toFixed(2));
_sampleRate = _arg1;
}
public function get version():String{
return (_version);
}
}
}//package com.google.analytics.v4
Section 108
//GoogleAnalyticsAPI (com.google.analytics.v4.GoogleAnalyticsAPI)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
public interface GoogleAnalyticsAPI {
function setCampSourceKey(_arg1:String):void;
function getServiceMode():ServerOperationMode;
function resetSession():void;
function setLocalServerMode():void;
function setCampContentKey(_arg1:String):void;
function addOrganic(_arg1:String, _arg2:String):void;
function setDetectFlash(_arg1:Boolean):void;
function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object;
function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean;
function setCampTermKey(_arg1:String):void;
function setCampNameKey(_arg1:String):void;
function addIgnoredOrganic(_arg1:String):void;
function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void;
function setAllowLinker(_arg1:Boolean):void;
function getClientInfo():Boolean;
function getDetectFlash():Boolean;
function setCampaignTrack(_arg1:Boolean):void;
function createEventTracker(_arg1:String):EventTracker;
function setCookieTimeout(_arg1:int):void;
function setAllowAnchor(_arg1:Boolean):void;
function trackTrans():void;
function clearOrganic():void;
function trackPageview(_arg1:String=""):void;
function setLocalGifPath(_arg1:String):void;
function getVersion():String;
function getLocalGifPath():String;
function setVar(_arg1:String):void;
function clearIgnoredOrganic():void;
function setCampMediumKey(_arg1:String):void;
function addIgnoredRef(_arg1:String):void;
function setClientInfo(_arg1:Boolean):void;
function setCookiePath(_arg1:String):void;
function setSampleRate(_arg1:Number):void;
function setSessionTimeout(_arg1:int):void;
function setRemoteServerMode():void;
function clearIgnoredRef():void;
function setDomainName(_arg1:String):void;
function setDetectTitle(_arg1:Boolean):void;
function setAllowHash(_arg1:Boolean):void;
function getAccount():String;
function linkByPost(_arg1:Object, _arg2:Boolean=false):void;
function link(_arg1:String, _arg2:Boolean=false):void;
function setCampNOKey(_arg1:String):void;
function setLocalRemoteServerMode():void;
function cookiePathCopy(_arg1:String):void;
function getDetectTitle():Boolean;
}
}//package com.google.analytics.v4
Section 109
//Tracker (com.google.analytics.v4.Tracker)
package com.google.analytics.v4 {
import com.google.analytics.core.*;
import com.google.analytics.debug.*;
import com.google.analytics.data.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.campaign.*;
public class Tracker implements GoogleAnalyticsAPI {
private const EVENT_TRACKER_LABEL_KEY_NUM:int = 3;
private const EVENT_TRACKER_VALUE_VALUE_NUM:int = 1;
private const EVENT_TRACKER_PROJECT_ID:int = 5;
private const EVENT_TRACKER_OBJECT_NAME_KEY_NUM:int = 1;
private const EVENT_TRACKER_TYPE_KEY_NUM:int = 2;
private var _adSense:AdSenseGlobals;
private var _eventTracker:X10;
private var _noSessionInformation:Boolean;// = false
private var _browserInfo:BrowserInfo;
private var _debug:DebugConfiguration;
private var _isNewVisitor:Boolean;// = false
private var _buffer:Buffer;
private var _config:Configuration;
private var _x10Module:X10;
private var _campaign:CampaignManager;
private var _formatedReferrer:String;
private var _timeStamp:Number;
private var _info:Environment;
private var _domainHash:Number;
private var _campaignInfo:CampaignInfo;
private var _gifRequest:GIFRequest;
private var _hasInitData:Boolean;// = false
private var _account:String;
public function Tracker(_arg1:String, _arg2:Configuration, _arg3:DebugConfiguration, _arg4:Environment, _arg5:Buffer, _arg6:GIFRequest, _arg7:AdSenseGlobals){
var _local8:String;
super();
_account = _arg1;
_config = _arg2;
_debug = _arg3;
_info = _arg4;
_buffer = _arg5;
_gifRequest = _arg6;
_adSense = _arg7;
if (!Utils.validateAccount(_arg1)){
_local8 = (("Account \"" + _arg1) + "\" is not valid.");
_debug.warning(_local8);
throw (new Error(_local8));
};
_initData();
}
private function _doTracking():Boolean{
if (((((!((_info.protocol == Protocols.file))) && (!((_info.protocol == Protocols.none))))) && (_isNotGoogleSearch()))){
return (true);
};
if (_config.allowLocalTracking){
return (true);
};
return (false);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_debug.info((("addOrganic( " + [_arg1, _arg2].join(", ")) + " )"));
_config.organic.addSource(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_config.allowLinker = _arg1;
_debug.info((("setAllowLinker( " + _config.allowLinker) + " )"));
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
var _local5:Boolean;
var _local6 = 2;
if (((!((_arg1 == ""))) && (!((_arg2 == ""))))){
_eventTracker.clearKey(EVENT_TRACKER_PROJECT_ID);
_eventTracker.clearValue(EVENT_TRACKER_PROJECT_ID);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_OBJECT_NAME_KEY_NUM, _arg1);
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_TYPE_KEY_NUM, _arg2);
if (((_arg3) && (!((_arg3 == ""))))){
_local5 = _eventTracker.setKey(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_LABEL_KEY_NUM, _arg3);
_local6 = 3;
if (!isNaN(_arg4)){
_local5 = _eventTracker.setValue(EVENT_TRACKER_PROJECT_ID, EVENT_TRACKER_VALUE_VALUE_NUM, _arg4);
_local6 = 4;
};
};
if (_local5){
_debug.info(((("valid event tracking call\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_sendXEvent(_eventTracker);
};
} else {
_debug.warning(((("event tracking call is not valid, failed!\ncategory: " + _arg1) + "\naction: ") + _arg2), VisualDebugMode.geek);
_local5 = false;
};
switch (_local6){
case 4:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3, _arg4].join(", ")) + " )"));
break;
case 3:
_debug.info((("trackEvent( " + [_arg1, _arg2, _arg3].join(", ")) + " )"));
break;
case 2:
default:
_debug.info((("trackEvent( " + [_arg1, _arg2].join(", ")) + " )"));
};
return (_local5);
}
public function trackPageview(_arg1:String=""):void{
_debug.info((("trackPageview( " + _arg1) + " )"));
if (_doTracking()){
_initData();
_trackMetrics(_arg1);
_noSessionInformation = false;
} else {
_debug.warning((("trackPageview( " + _arg1) + " ) failed"));
};
}
public function setCookieTimeout(_arg1:int):void{
_config.conversionTimeout = _arg1;
_debug.info((("setCookieTimeout( " + _config.conversionTimeout) + " )"));
}
public function trackTrans():void{
_debug.warning("trackTrans() not implemented");
}
public function setClientInfo(_arg1:Boolean):void{
_config.detectClientInfo = _arg1;
_debug.info((("setClientInfo( " + _config.detectClientInfo) + " )"));
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_debug.warning((("linkByPost( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
private function _initData():void{
var _local1:String;
var _local2:String;
if (!_hasInitData){
_updateDomainName();
_domainHash = _getDomainHash();
_timeStamp = Math.round((new Date().getTime() / 1000));
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "_initData 0");
_local1 = (_local1 + ("\ndomain name: " + _config.domainName));
_local1 = (_local1 + ("\ndomain hash: " + _domainHash));
_local1 = (_local1 + (((("\ntimestamp: " + _timeStamp) + " (") + new Date((_timeStamp * 1000))) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_doTracking()){
_handleCookie();
};
if (!_hasInitData){
if (_doTracking()){
_formatedReferrer = _formatReferrer();
_browserInfo = new BrowserInfo(_config, _info);
_debug.info(("browserInfo: " + _browserInfo.toURLString()), VisualDebugMode.advanced);
if (_config.campaignTracking){
_campaign = new CampaignManager(_config, _debug, _buffer, _domainHash, _formatedReferrer, _timeStamp);
_campaignInfo = _campaign.getCampaignInformation(_info.locationSearch, _noSessionInformation);
_debug.info(("campaignInfo: " + _campaignInfo.toURLString()), VisualDebugMode.advanced);
};
};
_x10Module = new X10();
_eventTracker = new X10();
_hasInitData = true;
};
if (_config.hasSiteOverlay){
_debug.warning("Site Overlay is not supported");
};
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "_initData (misc)");
_local2 = (_local2 + ("\nflash version: " + _info.flashVersion.toString(4)));
_local2 = (_local2 + ("\nprotocol: " + _info.protocol));
_local2 = (_local2 + (("\ndefault domain name (auto): \"" + _info.domainName) + "\""));
_local2 = (_local2 + ("\nlanguage: " + _info.language));
_local2 = (_local2 + ("\ndomain hash: " + _getDomainHash()));
_local2 = (_local2 + ("\nuser-agent: " + _info.userAgent));
_debug.info(_local2, VisualDebugMode.geek);
};
}
public function getDetectTitle():Boolean{
_debug.info("getDetectTitle()");
return (_config.detectTitle);
}
public function resetSession():void{
_debug.info("resetSession()");
_buffer.resetCurrentSession();
}
public function getClientInfo():Boolean{
_debug.info("getClientInfo()");
return (_config.detectClientInfo);
}
private function _sendXEvent(_arg1:X10=null):void{
var _local2:Variables;
var _local3:EventInfo;
var _local4:Variables;
var _local5:Variables;
_initData();
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
_local3 = new EventInfo(true, _x10Module, _arg1);
_local4 = _local3.toVariables();
_local5 = _renderMetricsSearchVariables();
_local2.join(_local4, _local5);
_gifRequest.send(_account, _local2, false, true);
};
}
public function setDetectFlash(_arg1:Boolean):void{
_config.detectFlash = _arg1;
_debug.info((("setDetectFlash( " + _config.detectFlash) + " )"));
}
public function setCampNameKey(_arg1:String):void{
_config.campaignKey.UCCN = _arg1;
var _local2 = (("setCampNameKey( " + _config.campaignKey.UCCN) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCN]"));
} else {
_debug.info(_local2);
};
}
private function _formatReferrer():String{
var _local2:String;
var _local3:URL;
var _local4:URL;
var _local1:String = _info.referrer;
if ((((_local1 == "")) || ((_local1 == "localhost")))){
_local1 = "-";
} else {
_local2 = _info.domainName;
_local3 = new URL(_local1);
_local4 = new URL(("http://" + _local2));
if (_local3.hostName == _local2){
return ("-");
};
if (_local4.domain == _local3.domain){
if (_local4.subDomain != _local3.subDomain){
_local1 = "0";
};
};
if ((((_local1.charAt(0) == "[")) && (_local1.charAt((_local1.length - 1))))){
_local1 = "-";
};
};
_debug.info(("formated referrer: " + _local1), VisualDebugMode.advanced);
return (_local1);
}
private function _visitCode():Number{
if (_debug.verbose){
_debug.info(("visitCode: " + _buffer.utma.sessionId), VisualDebugMode.geek);
};
return (_buffer.utma.sessionId);
}
public function createEventTracker(_arg1:String):EventTracker{
_debug.info((("createEventTracker( " + _arg1) + " )"));
return (new EventTracker(_arg1, this));
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_debug.warning((("addItem( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6].join(", ")) + " ) not implemented"));
}
public function clearIgnoredOrganic():void{
_debug.info("clearIgnoredOrganic()");
_config.organic.clearIgnoredKeywords();
}
public function setVar(_arg1:String):void{
var _local2:Variables;
if (((!((_arg1 == ""))) && (_isNotGoogleSearch()))){
_initData();
_buffer.utmv.domainHash = _domainHash;
_buffer.utmv.value = _arg1;
if (_debug.verbose){
_debug.info(_buffer.utmv.toString(), VisualDebugMode.geek);
};
_debug.info((("setVar( " + _arg1) + " )"));
if (_takeSample()){
_local2 = new Variables();
_local2.utmt = "var";
_gifRequest.send(_account, _local2);
};
} else {
_debug.warning((("setVar \"" + _arg1) + "\" is ignored"));
};
}
public function setDomainName(_arg1:String):void{
if (_arg1 == "auto"){
_config.domain.mode = DomainNameMode.auto;
} else {
if (_arg1 == "none"){
_config.domain.mode = DomainNameMode.none;
} else {
_config.domain.mode = DomainNameMode.custom;
_config.domain.name = _arg1;
};
};
_updateDomainName();
_debug.info((("setDomainName( " + _config.domainName) + " )"));
}
private function _updateDomainName():void{
var _local1:String;
if (_config.domain.mode == DomainNameMode.auto){
_local1 = _info.domainName;
if (_local1.substring(0, 4) == "www."){
_local1 = _local1.substring(4);
};
_config.domain.name = _local1;
};
_config.domainName = _config.domain.name.toLowerCase();
_debug.info(("domain name: " + _config.domainName), VisualDebugMode.advanced);
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
_debug.warning((("addTrans( " + [_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8].join(", ")) + " ) not implemented"));
return (null);
}
private function _renderMetricsSearchVariables(_arg1:String=""):Variables{
var _local4:Variables;
var _local2:Variables = new Variables();
_local2.URIencode = true;
var _local3:DocumentInfo = new DocumentInfo(_config, _info, _formatedReferrer, _arg1, _adSense);
_debug.info(("docInfo: " + _local3.toURLString()), VisualDebugMode.geek);
if (_config.campaignTracking){
_local4 = _campaignInfo.toVariables();
};
var _local5:Variables = _browserInfo.toVariables();
_local2.join(_local3.toVariables(), _local5, _local4);
return (_local2);
}
public function setCampContentKey(_arg1:String):void{
_config.campaignKey.UCCT = _arg1;
var _local2 = (("setCampContentKey( " + _config.campaignKey.UCCT) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCCT]"));
} else {
_debug.info(_local2);
};
}
private function _handleCookie():void{
var _local1:String;
var _local2:String;
var _local3:Array;
var _local4:String;
if (_config.allowLinker){
};
if (((_buffer.hasUTMA()) && (!(_buffer.utma.isEmpty())))){
if (((!(_buffer.hasUTMB())) || (!(_buffer.hasUTMC())))){
_buffer.updateUTMA(_timeStamp);
_noSessionInformation = true;
};
if (_debug.verbose){
_debug.info(("from cookie " + _buffer.utma.toString()), VisualDebugMode.geek);
};
} else {
_debug.info("create a new utma", VisualDebugMode.advanced);
_buffer.utma.domainHash = _domainHash;
_buffer.utma.sessionId = _getUniqueSessionId();
_buffer.utma.firstTime = _timeStamp;
_buffer.utma.lastTime = _timeStamp;
_buffer.utma.currentTime = _timeStamp;
_buffer.utma.sessionCount = 1;
if (_debug.verbose){
_debug.info(_buffer.utma.toString(), VisualDebugMode.geek);
};
_noSessionInformation = true;
_isNewVisitor = true;
};
if (((_adSense.gaGlobal) && ((_adSense.dh == String(_domainHash))))){
if (_adSense.sid){
_buffer.utma.currentTime = Number(_adSense.sid);
if (_debug.verbose){
_local1 = "";
_local1 = (_local1 + "AdSense sid found\n");
_local1 = (_local1 + (((("Override currentTime(" + _buffer.utma.currentTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local1, VisualDebugMode.geek);
};
};
if (_isNewVisitor){
if (_adSense.sid){
_buffer.utma.lastTime = Number(_adSense.sid);
if (_debug.verbose){
_local2 = "";
_local2 = (_local2 + "AdSense sid found (new visitor)\n");
_local2 = (_local2 + (((("Override lastTime(" + _buffer.utma.lastTime) + ") from AdSense sid(") + Number(_adSense.sid)) + ")"));
_debug.info(_local2, VisualDebugMode.geek);
};
};
if (_adSense.vid){
_local3 = _adSense.vid.split(".");
_buffer.utma.sessionId = Number(_local3[0]);
_buffer.utma.firstTime = Number(_local3[1]);
if (_debug.verbose){
_local4 = "";
_local4 = (_local4 + "AdSense vid found (new visitor)\n");
_local4 = (_local4 + (((("Override sessionId(" + _buffer.utma.sessionId) + ") from AdSense vid(") + Number(_local3[0])) + ")\n"));
_local4 = (_local4 + (((("Override firstTime(" + _buffer.utma.firstTime) + ") from AdSense vid(") + Number(_local3[1])) + ")"));
_debug.info(_local4, VisualDebugMode.geek);
};
};
if (_debug.verbose){
_debug.info(("AdSense modified : " + _buffer.utma.toString()), VisualDebugMode.geek);
};
};
};
_buffer.utmb.domainHash = _domainHash;
if (isNaN(_buffer.utmb.trackCount)){
_buffer.utmb.trackCount = 0;
};
if (isNaN(_buffer.utmb.token)){
_buffer.utmb.token = _config.tokenCliff;
};
if (isNaN(_buffer.utmb.lastTime)){
_buffer.utmb.lastTime = _buffer.utma.currentTime;
};
_buffer.utmc.domainHash = _domainHash;
if (_debug.verbose){
_debug.info(_buffer.utmb.toString(), VisualDebugMode.advanced);
_debug.info(_buffer.utmc.toString(), VisualDebugMode.advanced);
};
}
public function setLocalServerMode():void{
_config.serverMode = ServerOperationMode.local;
_debug.info("setLocalServerMode()");
}
public function clearIgnoredRef():void{
_debug.info("clearIgnoredRef()");
_config.organic.clearIgnoredReferrals();
}
public function setCampSourceKey(_arg1:String):void{
_config.campaignKey.UCSR = _arg1;
var _local2 = (("setCampSourceKey( " + _config.campaignKey.UCSR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCSR]"));
} else {
_debug.info(_local2);
};
}
public function getLocalGifPath():String{
_debug.info("getLocalGifPath()");
return (_config.localGIFpath);
}
public function setLocalGifPath(_arg1:String):void{
_config.localGIFpath = _arg1;
_debug.info((("setLocalGifPath( " + _config.localGIFpath) + " )"));
}
public function getVersion():String{
_debug.info("getVersion()");
return (_config.version);
}
public function setAllowAnchor(_arg1:Boolean):void{
_config.allowAnchor = _arg1;
_debug.info((("setAllowAnchor( " + _config.allowAnchor) + " )"));
}
private function _isNotGoogleSearch():Boolean{
var _local1:String = _config.domainName;
var _local2 = (_local1.indexOf("www.google.") < 0);
var _local3 = (_local1.indexOf(".google.") < 0);
var _local4 = (_local1.indexOf("google.") < 0);
var _local5 = (_local1.indexOf("google.org") > -1);
return (((((((((_local2) || (_local3))) || (_local4))) || (!((_config.cookiePath == "/"))))) || (_local5)));
}
public function setSampleRate(_arg1:Number):void{
if (_arg1 < 0){
_debug.warning("sample rate can not be negative, ignoring value.");
} else {
_config.sampleRate = _arg1;
};
_debug.info((("setSampleRate( " + _config.sampleRate) + " )"));
}
private function _takeSample():Boolean{
if (_debug.verbose){
_debug.info((((("takeSample: (" + (_visitCode() % 10000)) + ") < (") + (_config.sampleRate * 10000)) + ")"), VisualDebugMode.geek);
};
return (((_visitCode() % 10000) < (_config.sampleRate * 10000)));
}
public function setCookiePath(_arg1:String):void{
_config.cookiePath = _arg1;
_debug.info((("setCookiePath( " + _config.cookiePath) + " )"));
}
public function setAllowHash(_arg1:Boolean):void{
_config.allowDomainHash = _arg1;
_debug.info((("setAllowHash( " + _config.allowDomainHash) + " )"));
}
private function _generateUserDataHash():Number{
var _local1 = "";
_local1 = (_local1 + _info.appName);
_local1 = (_local1 + _info.appVersion);
_local1 = (_local1 + _info.language);
_local1 = (_local1 + _info.platform);
_local1 = (_local1 + _info.userAgent.toString());
_local1 = (_local1 + (((_info.screenWidth + "x") + _info.screenHeight) + _info.screenColorDepth));
_local1 = (_local1 + _info.referrer);
return (Utils.generateHash(_local1));
}
public function setCampNOKey(_arg1:String):void{
_config.campaignKey.UCNO = _arg1;
var _local2 = (("setCampNOKey( " + _config.campaignKey.UCNO) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCNO]"));
} else {
_debug.info(_local2);
};
}
public function addIgnoredOrganic(_arg1:String):void{
_debug.info((("addIgnoredOrganic( " + _arg1) + " )"));
_config.organic.addIgnoredKeyword(_arg1);
}
public function setLocalRemoteServerMode():void{
_config.serverMode = ServerOperationMode.both;
_debug.info("setLocalRemoteServerMode()");
}
public function cookiePathCopy(_arg1:String):void{
_debug.warning((("cookiePathCopy( " + _arg1) + " ) not implemented"));
}
public function setDetectTitle(_arg1:Boolean):void{
_config.detectTitle = _arg1;
_debug.info((("setDetectTitle( " + _config.detectTitle) + " )"));
}
public function setCampTermKey(_arg1:String):void{
_config.campaignKey.UCTR = _arg1;
var _local2 = (("setCampTermKey( " + _config.campaignKey.UCTR) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCTR]"));
} else {
_debug.info(_local2);
};
}
public function getServiceMode():ServerOperationMode{
_debug.info("getServiceMode()");
return (_config.serverMode);
}
private function _trackMetrics(_arg1:String=""):void{
var _local2:Variables;
var _local3:Variables;
var _local4:Variables;
var _local5:EventInfo;
if (_takeSample()){
_local2 = new Variables();
_local2.URIencode = true;
if (((_x10Module) && (_x10Module.hasData()))){
_local5 = new EventInfo(false, _x10Module);
_local3 = _local5.toVariables();
};
_local4 = _renderMetricsSearchVariables(_arg1);
_local2.join(_local3, _local4);
_gifRequest.send(_account, _local2);
};
}
public function setCampaignTrack(_arg1:Boolean):void{
_config.campaignTracking = _arg1;
_debug.info((("setCampaignTrack( " + _config.campaignTracking) + " )"));
}
public function addIgnoredRef(_arg1:String):void{
_debug.info((("addIgnoredRef( " + _arg1) + " )"));
_config.organic.addIgnoredReferral(_arg1);
}
public function clearOrganic():void{
_debug.info("clearOrganic()");
_config.organic.clearEngines();
}
public function getDetectFlash():Boolean{
_debug.info("getDetectFlash()");
return (_config.detectFlash);
}
public function setCampMediumKey(_arg1:String):void{
_config.campaignKey.UCMD = _arg1;
var _local2 = (("setCampMediumKey( " + _config.campaignKey.UCMD) + " )");
if (_debug.mode == VisualDebugMode.geek){
_debug.info((_local2 + " [UCMD]"));
} else {
_debug.info(_local2);
};
}
private function _getUniqueSessionId():Number{
var _local1:Number = ((Utils.generate32bitRandom() ^ _generateUserDataHash()) * 2147483647);
_debug.info(("Session ID: " + _local1), VisualDebugMode.geek);
return (_local1);
}
private function _getDomainHash():Number{
if (((((!(_config.domainName)) || ((_config.domainName == "")))) || ((_config.domain.mode == DomainNameMode.none)))){
_config.domainName = "";
return (1);
};
_updateDomainName();
if (_config.allowDomainHash){
return (Utils.generateHash(_config.domainName));
};
return (1);
}
public function setSessionTimeout(_arg1:int):void{
_config.sessionTimeout = _arg1;
_debug.info((("setSessionTimeout( " + _config.sessionTimeout) + " )"));
}
public function getAccount():String{
_debug.info("getAccount()");
return (_account);
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_debug.warning((("link( " + [_arg1, _arg2].join(", ")) + " ) not implemented"));
}
public function setRemoteServerMode():void{
_config.serverMode = ServerOperationMode.remote;
_debug.info("setRemoteServerMode()");
}
}
}//package com.google.analytics.v4
Section 110
//AnalyticsTracker (com.google.analytics.AnalyticsTracker)
package com.google.analytics {
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
public interface AnalyticsTracker extends GoogleAnalyticsAPI, IEventDispatcher {
function set config(_arg1:Configuration):void;
function isReady():Boolean;
function get mode():String;
function set debug(_arg1:DebugConfiguration):void;
function get account():String;
function set mode(_arg1:String):void;
function get config():Configuration;
function get debug():DebugConfiguration;
function set account(_arg1:String):void;
function get visualDebug():Boolean;
function set visualDebug(_arg1:Boolean):void;
}
}//package com.google.analytics
Section 111
//API (com.google.analytics.API)
package com.google.analytics {
import com.google.analytics.utils.*;
public class API {
public static var version:Version = new Version();
version.major = 1;
version.minor = 0;
version.build = 1;
version.revision = "$Rev: 319 $ ".split(" ")[1];
}
}//package com.google.analytics
Section 112
//GATracker (com.google.analytics.GATracker)
package com.google.analytics {
import com.google.analytics.core.*;
import com.google.analytics.v4.*;
import com.google.analytics.debug.*;
import flash.events.*;
import flash.display.*;
import com.google.analytics.utils.*;
import com.google.analytics.external.*;
import com.google.analytics.events.*;
public class GATracker implements AnalyticsTracker {
private var _adSense:AdSenseGlobals;
private var _env:Environment;
private var _visualDebug:Boolean;
private var _idleTimer:IdleTimer;
private var _debug:DebugConfiguration;
private var _buffer:Buffer;
private var _config:Configuration;
private var _mode:String;
private var _display:DisplayObject;
private var _jsproxy:JavascriptProxy;
private var _dom:HTMLDOM;
private var _eventDispatcher:EventDispatcher;
private var _ready:Boolean;// = false
private var _gifRequest:GIFRequest;
private var _account:String;
private var _tracker:GoogleAnalyticsAPI;
public static var version:Version = API.version;
public static var autobuild:Boolean = true;
public function GATracker(_arg1:DisplayObject, _arg2:String, _arg3:String="AS3", _arg4:Boolean=false, _arg5:Configuration=null, _arg6:DebugConfiguration=null){
_ready = false;
super();
_display = _arg1;
_eventDispatcher = new EventDispatcher(this);
_tracker = new TrackerCache();
this.account = _arg2;
this.mode = _arg3;
this.visualDebug = _arg4;
if (!_arg6){
this.debug = new DebugConfiguration();
};
if (!_arg5){
this.config = new Configuration(_arg6);
};
if (autobuild){
_factory();
};
}
public function link(_arg1:String, _arg2:Boolean=false):void{
_tracker.link(_arg1, _arg2);
}
public function addOrganic(_arg1:String, _arg2:String):void{
_tracker.addOrganic(_arg1, _arg2);
}
public function setAllowLinker(_arg1:Boolean):void{
_tracker.setAllowLinker(_arg1);
}
public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{
return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4));
}
public function setCookieTimeout(_arg1:int):void{
_tracker.setCookieTimeout(_arg1);
}
public function trackTrans():void{
_tracker.trackTrans();
}
public function trackPageview(_arg1:String=""):void{
_tracker.trackPageview(_arg1);
}
public function getClientInfo():Boolean{
return (_tracker.getClientInfo());
}
public function setClientInfo(_arg1:Boolean):void{
_tracker.setClientInfo(_arg1);
}
public function get account():String{
return (_account);
}
public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{
_tracker.linkByPost(_arg1, _arg2);
}
public function getDetectTitle():Boolean{
return (_tracker.getDetectTitle());
}
public function dispatchEvent(_arg1:Event):Boolean{
return (_eventDispatcher.dispatchEvent(_arg1));
}
public function get config():Configuration{
return (_config);
}
public function set mode(_arg1:String):void{
_mode = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
_eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public function setDetectFlash(_arg1:Boolean):void{
_tracker.setDetectFlash(_arg1);
}
public function resetSession():void{
_tracker.resetSession();
}
public function setCampNameKey(_arg1:String):void{
_tracker.setCampNameKey(_arg1);
}
public function get debug():DebugConfiguration{
return (_debug);
}
public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{
_tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
private function _bridgeFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account));
return (new Bridge(account, _debug, _jsproxy));
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
_eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function clearIgnoredOrganic():void{
_tracker.clearIgnoredOrganic();
}
public function set account(_arg1:String):void{
_account = _arg1;
}
public function setVar(_arg1:String):void{
_tracker.setVar(_arg1);
}
public function build():void{
if (!isReady()){
_factory();
};
}
public function setDomainName(_arg1:String):void{
_tracker.setDomainName(_arg1);
}
public function createEventTracker(_arg1:String):EventTracker{
return (_tracker.createEventTracker(_arg1));
}
public function set config(_arg1:Configuration):void{
_config = _arg1;
}
public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{
return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
public function setCampSourceKey(_arg1:String):void{
_tracker.setCampSourceKey(_arg1);
}
public function setCampContentKey(_arg1:String):void{
_tracker.setCampContentKey(_arg1);
}
public function willTrigger(_arg1:String):Boolean{
return (_eventDispatcher.willTrigger(_arg1));
}
public function setLocalServerMode():void{
_tracker.setLocalServerMode();
}
public function isReady():Boolean{
return (_ready);
}
public function getLocalGifPath():String{
return (_tracker.getLocalGifPath());
}
public function setAllowAnchor(_arg1:Boolean):void{
_tracker.setAllowAnchor(_arg1);
}
public function clearIgnoredRef():void{
_tracker.clearIgnoredRef();
}
public function get mode():String{
return (_mode);
}
public function set debug(_arg1:DebugConfiguration):void{
_debug = _arg1;
}
public function setLocalGifPath(_arg1:String):void{
_tracker.setLocalGifPath(_arg1);
}
public function getVersion():String{
return (_tracker.getVersion());
}
public function setSampleRate(_arg1:Number):void{
_tracker.setSampleRate(_arg1);
}
public function setCookiePath(_arg1:String):void{
_tracker.setCookiePath(_arg1);
}
public function setAllowHash(_arg1:Boolean):void{
_tracker.setAllowHash(_arg1);
}
public function setCampNOKey(_arg1:String):void{
_tracker.setCampNOKey(_arg1);
}
public function addIgnoredOrganic(_arg1:String):void{
_tracker.addIgnoredOrganic(_arg1);
}
public function setLocalRemoteServerMode():void{
_tracker.setLocalRemoteServerMode();
}
public function cookiePathCopy(_arg1:String):void{
_tracker.cookiePathCopy(_arg1);
}
private function _factory():void{
var _local1:GoogleAnalyticsAPI;
var _local2:TrackerCache;
_jsproxy = new JavascriptProxy(debug);
if (visualDebug){
debug.layout = new Layout(debug, _display);
debug.active = visualDebug;
};
_local2 = (_tracker as TrackerCache);
switch (mode){
case TrackerMode.BRIDGE:
_local1 = _bridgeFactory();
break;
case TrackerMode.AS3:
default:
_local1 = _trackerFactory();
};
if (!_local2.isEmpty()){
_local2.tracker = _local1;
_local2.flush();
};
_tracker = _local1;
_ready = true;
dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this));
}
public function setCampTermKey(_arg1:String):void{
_tracker.setCampTermKey(_arg1);
}
private function _trackerFactory():GoogleAnalyticsAPI{
debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account));
_adSense = new AdSenseGlobals(debug);
_dom = new HTMLDOM(debug);
_dom.cacheProperties();
_env = new Environment("", "", "", debug, _dom);
_buffer = new Buffer(config, debug, false);
_gifRequest = new GIFRequest(config, debug, _buffer, _env);
_idleTimer = new IdleTimer(config, debug, _display, _buffer);
_env.url = _display.stage.loaderInfo.url;
return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense));
}
public function setDetectTitle(_arg1:Boolean):void{
_tracker.setDetectTitle(_arg1);
}
public function getServiceMode():ServerOperationMode{
return (_tracker.getServiceMode());
}
public function clearOrganic():void{
_tracker.clearOrganic();
}
public function setCampaignTrack(_arg1:Boolean):void{
_tracker.setCampaignTrack(_arg1);
}
public function addIgnoredRef(_arg1:String):void{
_tracker.addIgnoredRef(_arg1);
}
public function set visualDebug(_arg1:Boolean):void{
_visualDebug = _arg1;
}
public function setCampMediumKey(_arg1:String):void{
_tracker.setCampMediumKey(_arg1);
}
public function setSessionTimeout(_arg1:int):void{
_tracker.setSessionTimeout(_arg1);
}
public function getDetectFlash():Boolean{
return (_tracker.getDetectFlash());
}
public function get visualDebug():Boolean{
return (_visualDebug);
}
public function getAccount():String{
return (_tracker.getAccount());
}
public function hasEventListener(_arg1:String):Boolean{
return (_eventDispatcher.hasEventListener(_arg1));
}
public function setRemoteServerMode():void{
_tracker.setRemoteServerMode();
}
}
var _local1:* = ServerOperationMode;
return (_local1);
}//package com.google.analytics
Section 113
//Cookie (data.Cookie)
package data {
import flash.net.*;
public class Cookie {
private const id:String = "Blue_Knight";
private static var so:SharedObject;
public static var da:Object;
public function Cookie(){
initSo();
initData();
}
public function del():void{
so.close();
}
private function initData():void{
var _local1:Array;
da = so.data;
if (da.arr == null){
_local1 = [{name:"Tommy L", score:11000}, {name:"Isabel R", score:9200}, {name:"Mike Strike", score:8900}, {name:"Gina M", score:7200}, {name:"Antonio T", score:5600}, {name:"Alain C", score:4000}, {name:"Linda M", score:3500}, {name:"Santina Z", score:2900}, {name:"Susan D", score:1300}, {name:"Richard BB", score:500}];
da.arr = _local1;
so.flush();
};
}
private function initSo():void{
so = SharedObject.getLocal(id, "/");
}
public static function clear():void{
so.clear();
}
}
}//package data
Section 114
//Data (data.Data)
package data {
public class Data {
public static var relivecrossnm = 0;
public static var attackkeycode:Number = 74;
public static var scoresavenm = 0;
public static var secondswordnm:Number = 1;
public static var scnm = 20;
public static var slifenm = 150;
public static var throwkeycode:Number = 73;
public static var slifexxxnm = 150;
public static var sswordnm:Number = 1;
public static var rightkeycode:Number = 68;
public static var sSdefendnm:Number = 2;
public static var gameend:Number = 0;
public static var continueGame:Boolean = false;
public static var lifexxxnm = 150;
public static var lifenm = 150;
public static var levelnm:Number = 1;
public static var Sdefendnm:Number = 2;
public static var upkeycode:Number = 87;
public static var sscoresavenm = 0;
public static var canmusic:Boolean = true;
public static var defendkeycode:Number = 76;
public static var scorenm = 0;
public static var jumpkeycode:Number = 75;
public static var cnm = 20;
public static var ssheildnm:Number = 1;
public static var leftkeycode:Number = 65;
public static var downkeycode:Number = 83;
public static var sSAttacknm:Number = 10;
public static var sheildnm:Number = 1;
public static var ssecondswordnm:Number = 1;
public static var slevelnm:Number = 1;
public static var SAttacknm:Number = 10;
public static var swordnm:Number = 1;
public static var sscorenm = 0;
}
}//package data
Section 115
//Arrow (enemies.Arrow)
package enemies {
import flash.events.*;
import flash.display.*;
public class Arrow extends MovieClip {
public var yfix;
public var man:Boolean;// = false
public var xxscale;
private var t;
public var roll;
public var SAttack;// = 20
public var dy;// = 0
private var par;
public var dx;
public var rot;// = 0
public function Arrow(_arg1:Number=0, _arg2:Number=0, _arg3=null){
man = false;
SAttack = 20;
dy = 0;
rot = 0;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, arrowAction, false, 0, true);
SoundsManager.playSound("feidao");
}
function frame1(){
stop();
}
private function arrowAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
x = (x + dx);
y = (y + dy);
rotation = (rotation + rot);
_local2 = (t.x + (50 * t.scaleX));
_local3 = ((t.y - 64) + t.roll.y);
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 18)))) && ((this.currentFrame == 1)))){
if (t.roll.currentFrame < t.defend){
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 14.2);
};
t.life = (t.life - (SAttack - t.Sdefend));
};
x = 900;
SoundsManager.playSound("kanzhong");
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
x = (t.x + (40 * t.scaleX));
dx = (dx * -0.4);
rot = (30 + (Math.random() * 30));
dy = 10;
this.gotoAndStop(2);
SoundsManager.playSound("dun");
};
};
if ((((((x > 700)) || ((x < -100)))) || ((y >= yfix)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, arrowAction);
};
}
}
}//package enemies
Section 116
//BarRoll (enemies.BarRoll)
package enemies {
import flash.display.*;
public class BarRoll extends MovieClip {
public var dy:Number;// = 0
public function BarRoll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 4, frame5);
super();
x = _arg1;
y = _arg2;
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package enemies
Section 117
//BirdmanRoll (enemies.BirdmanRoll)
package enemies {
import flash.display.*;
public class BirdmanRoll extends MovieClip {
public var dy:Number;// = 0
public function BirdmanRoll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 18, frame19, 68, frame69, 81, frame82, 92, frame93, 169, frame170);
super();
x = _arg1;
y = _arg2;
}
function frame82(){
gotoAndStop(1);
}
function frame170(){
stop();
}
function frame93(){
stop();
}
function frame1(){
stop();
}
function frame19(){
gotoAndPlay(2);
}
function frame69(){
gotoAndStop(1);
}
}
}//package enemies
Section 118
//Boss1State (enemies.Boss1State)
package enemies {
import flash.display.*;
public class Boss1State extends MovieClip {
private var yPos;
public var lifeMC_mc:MovieClip;
public var lifeMC:MovieClip;
private var xPos;
public function Boss1State(_arg1:Number=0, _arg2:Number=0){
xPos = _arg1;
yPos = _arg2;
initPos();
initDis();
}
private function initPos():void{
x = xPos;
y = yPos;
}
private function initDis():void{
lifeMC = (this.getChildByName("lifeMC_mc") as MovieClip);
}
}
}//package enemies
Section 119
//Boss2State (enemies.Boss2State)
package enemies {
import flash.display.*;
public class Boss2State extends MovieClip {
private var yPos;
public var lifeMC_mc:MovieClip;
public var lifeMC:MovieClip;
private var xPos;
public function Boss2State(_arg1:Number=0, _arg2:Number=0){
xPos = _arg1;
yPos = _arg2;
initPos();
initDis();
}
private function initPos():void{
x = xPos;
y = yPos;
}
private function initDis():void{
lifeMC = (this.getChildByName("lifeMC_mc") as MovieClip);
}
}
}//package enemies
Section 120
//Boss3State (enemies.Boss3State)
package enemies {
import flash.display.*;
public class Boss3State extends MovieClip {
private var yPos;
public var lifeMC_mc:MovieClip;
public var lifeMC:MovieClip;
private var xPos;
public function Boss3State(_arg1:Number=0, _arg2:Number=0){
xPos = _arg1;
yPos = _arg2;
initPos();
initDis();
}
private function initPos():void{
x = xPos;
y = yPos;
}
private function initDis():void{
lifeMC = (this.getChildByName("lifeMC_mc") as MovieClip);
}
}
}//package enemies
Section 121
//Boss4State (enemies.Boss4State)
package enemies {
import flash.display.*;
public class Boss4State extends MovieClip {
private var yPos;
public var lifeMC_mc:MovieClip;
public var lifeMC:MovieClip;
private var xPos;
public function Boss4State(_arg1:Number=0, _arg2:Number=0){
xPos = _arg1;
yPos = _arg2;
initPos();
initDis();
}
private function initPos():void{
x = xPos;
y = yPos;
}
private function initDis():void{
lifeMC = (this.getChildByName("lifeMC_mc") as MovieClip);
}
}
}//package enemies
Section 122
//Boss5State (enemies.Boss5State)
package enemies {
import flash.display.*;
public class Boss5State extends MovieClip {
private var yPos;
public var lifeMC_mc:MovieClip;
public var lifeMC:MovieClip;
private var xPos;
public function Boss5State(_arg1:Number=0, _arg2:Number=0){
xPos = _arg1;
yPos = _arg2;
initPos();
initDis();
}
private function initPos():void{
x = xPos;
y = yPos;
}
private function initDis():void{
lifeMC = (this.getChildByName("lifeMC_mc") as MovieClip);
}
}
}//package enemies
Section 123
//Boss6State (enemies.Boss6State)
package enemies {
import flash.display.*;
public class Boss6State extends MovieClip {
private var yPos;
public var lifeMC_mc:MovieClip;
public var lifeMC:MovieClip;
private var xPos;
public function Boss6State(_arg1:Number=0, _arg2:Number=0){
xPos = _arg1;
yPos = _arg2;
initPos();
initDis();
}
private function initPos():void{
x = xPos;
y = yPos;
}
private function initDis():void{
lifeMC = (this.getChildByName("lifeMC_mc") as MovieClip);
}
}
}//package enemies
Section 124
//Bullet (enemies.Bullet)
package enemies {
import flash.events.*;
import flash.display.*;
public class Bullet extends MovieClip {
public var yfix;
public var man:Boolean;// = false
public var xxscale;
private var t;
public var roll;
private var par;
public function Bullet(_arg1:Number, _arg2:Number, _arg3){
man = false;
super();
addFrameScript(5, frame6);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, fistAction, false, 0, true);
}
function frame6(){
}
private function fistAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
_local2 = (t.x + (50 * t.scaleX));
_local3 = (t.y - 64);
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 12)))){
if ((((t.roll.currentFrame < t.jump)) || ((((t.roll.currentFrame >= t.attack)) && ((t.roll.currentFrame < t.attack2)))))){
_local5 = 0;
while (_local5 < 10) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
};
if ((((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame < t.attack)))) || ((((t.roll.currentFrame >= t.attack2)) && ((t.roll.currentFrame < t.defend)))))){
_local5 = 0;
while (_local5 < 10) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
t.roll.dy = -24.2;
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 10) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
};
};
if (this.currentFrame == 6){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fistAction);
};
}
}
}//package enemies
Section 125
//ChestRoll (enemies.ChestRoll)
package enemies {
import flash.display.*;
public class ChestRoll extends MovieClip {
public var dy:Number;// = 0
public function ChestRoll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 59, frame60);
super();
x = _arg1;
y = _arg2;
}
function frame1(){
stop();
}
function frame60(){
stop();
}
}
}//package enemies
Section 126
//Deathhead1Roll (enemies.Deathhead1Roll)
package enemies {
import flash.display.*;
public class Deathhead1Roll extends MovieClip {
public var dy:Number;// = 0
public function Deathhead1Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 16, frame17, 69, frame70, 82, frame83, 197, frame198);
super();
x = _arg1;
y = _arg2;
}
function frame70(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame17(){
gotoAndPlay(2);
}
function frame83(){
gotoAndStop(1);
}
function frame198(){
stop();
}
}
}//package enemies
Section 127
//Deathhead2Roll (enemies.Deathhead2Roll)
package enemies {
import flash.display.*;
public class Deathhead2Roll extends MovieClip {
public var dy:Number;// = 0
public function Deathhead2Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 11, frame12, 66, frame67, 79, frame80, 194, frame195);
super();
x = _arg1;
y = _arg2;
}
function frame80(){
gotoAndStop(1);
}
function frame12(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame195(){
stop();
}
function frame67(){
gotoAndStop(1);
}
}
}//package enemies
Section 128
//DragonknightRoll (enemies.DragonknightRoll)
package enemies {
import flash.display.*;
public class DragonknightRoll extends MovieClip {
public var dy:Number;// = 0
public function DragonknightRoll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 16, frame17, 19, frame20, 41, frame42, 77, frame78, 112, frame113, 144, frame145, 217, frame218, 242, frame243, 252, frame253, 290, frame291);
super();
x = _arg1;
y = _arg2;
}
function frame78(){
gotoAndStop(20);
}
function frame291(){
gotoAndPlay(424);
}
function frame218(){
stop();
}
function frame1(){
stop();
}
function frame17(){
gotoAndPlay(2);
}
function frame20(){
stop();
}
function frame113(){
stop();
}
function frame243(){
gotoAndStop(20);
}
function frame42(){
gotoAndPlay(25);
}
function frame253(){
stop();
}
function frame145(){
gotoAndPlay(56);
}
}
}//package enemies
Section 129
//EDagger (enemies.EDagger)
package enemies {
import flash.events.*;
import flash.display.*;
public class EDagger extends MovieClip {
public var yfix;
public var man:Boolean;// = false
public var xxscale;
private var t;
public var roll;
public var SAttack;// = 15
public var dy;// = 0
private var par;
public var dx;
public var rot;// = 0
public function EDagger(_arg1:Number=0, _arg2:Number=0, _arg3=null){
man = false;
SAttack = 15;
dy = 0;
rot = 0;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, arrowAction, false, 0, true);
SoundsManager.playSound("feidao");
}
function frame1(){
stop();
}
private function arrowAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
x = (x + dx);
y = (y + dy);
rotation = (rotation + rot);
_local2 = (t.x + (50 * t.scaleX));
_local3 = ((t.y - 64) + t.roll.y);
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 18)))) && ((this.currentFrame == 1)))){
if (t.roll.currentFrame < t.defend){
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 14.2);
};
t.life = (t.life - (SAttack - t.Sdefend));
};
x = 900;
SoundsManager.playSound("kanzhong");
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
x = (t.x + (40 * t.scaleX));
dx = (dx * -0.4);
rot = (30 + (Math.random() * 30));
dy = 10;
this.gotoAndStop(2);
SoundsManager.playSound("dun");
};
};
if ((((((x > 700)) || ((x < -100)))) || ((y >= yfix)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, arrowAction);
};
}
}
}//package enemies
Section 130
//ESwordShadow (enemies.ESwordShadow)
package enemies {
import flash.events.*;
import flash.display.*;
public class ESwordShadow extends MovieClip {
public var yfix;
public var master;
private var hits;// = 0
public var xxscale;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack;// = 20
private var par;
public function ESwordShadow(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hits = 0;
man = false;
SAttack = 20;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, eswordshadowAction, false, 0, true);
}
private function eswordshadowAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
_local2 = (t.x + (50 * t.scaleX));
_local3 = ((t.y - 64) + t.roll.y);
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 18)))){
if (t.roll.currentFrame < t.defend){
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 14.2);
};
t.life = (t.life - (SAttack - t.Sdefend));
};
SoundsManager.playSound("kanzhong");
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
if (hits == 0){
SoundsManager.playSound("dun");
hits++;
};
};
};
if (this.currentFrame == 5){
this.removeEventListener(Event.ENTER_FRAME, eswordshadowAction);
par.container3.removeChild(this);
};
}
}
}//package enemies
Section 131
//ESwordShadow2 (enemies.ESwordShadow2)
package enemies {
import flash.events.*;
import flash.display.*;
public class ESwordShadow2 extends MovieClip {
public var yfix;
public var man:Boolean;// = false
private var hits;// = 0
public var xxscale;
private var t;
public var roll;
public var SAttack;// = 25
private var par;
public function ESwordShadow2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hits = 0;
man = false;
SAttack = 25;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, eswordshadowAction, false, 0, true);
}
private function eswordshadowAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
_local2 = (t.x + (50 * t.scaleX));
_local3 = ((t.y - 64) + t.roll.y);
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 18)))){
if (t.roll.currentFrame < t.defend){
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 14.2);
};
t.life = (t.life - (SAttack - t.Sdefend));
};
SoundsManager.playSound("kanzhong");
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
if (hits == 0){
SoundsManager.playSound("dun");
hits++;
};
};
};
if (this.currentFrame == 5){
this.removeEventListener(Event.ENTER_FRAME, eswordshadowAction);
par.container3.removeChild(this);
};
}
}
}//package enemies
Section 132
//ESwordShadow3 (enemies.ESwordShadow3)
package enemies {
import flash.events.*;
import flash.display.*;
public class ESwordShadow3 extends MovieClip {
public var yfix;
public var man:Boolean;// = false
private var hits;// = 0
public var xxscale;
private var t;
public var roll;
public var SAttack;// = 30
private var par;
public function ESwordShadow3(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hits = 0;
man = false;
SAttack = 30;
super();
addFrameScript(4, frame5);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, eswordshadowAction, false, 0, true);
}
private function eswordshadowAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
_local2 = (t.x + (50 * t.scaleX));
_local3 = ((t.y - 64) + t.roll.y);
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 18)))){
if (t.roll.currentFrame < t.defend){
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 14.2);
};
t.life = (t.life - (SAttack - t.Sdefend));
};
SoundsManager.playSound("kanzhong");
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
if (hits == 0){
SoundsManager.playSound("dun");
hits++;
};
};
};
if (this.currentFrame == 5){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, eswordshadowAction);
};
}
function frame5(){
stop();
}
}
}//package enemies
Section 133
//Feather (enemies.Feather)
package enemies {
import flash.events.*;
import flash.display.*;
public class Feather extends MovieClip {
public var yfix;
public var actionstate;// = 1
public var number;
public var man:Boolean;// = false
public var xxscale;
private var t;
public var roll;
public var SAttack;// = 15
public var dy;
private var par;
public var dx;
public function Feather(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
man = false;
SAttack = 15;
super();
addFrameScript(0, frame1, 79, frame80);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, arrowAction, false, 0, true);
}
public function del(){
var _local1:*;
var _local2:uint;
par.container3.removeChild(this);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, arrowAction);
}
function frame80(){
stop();
}
function frame1(){
stop();
}
private function arrowAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
if (actionstate == 0){
};
if (actionstate == 1){
_local2 = (t.x + (50 * t.scaleX));
_local3 = ((t.y - 64) + t.roll.y);
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
rotation = (Math.atan2(dy, dx) * (180 / Math.PI));
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 18)))) && ((this.currentFrame == 1)))){
if (t.roll.currentFrame < t.defend){
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
this.gotoAndStop(80);
SoundsManager.playSound("kanzhong");
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 15) {
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
x = _local2;
y = _local3;
dx = 0;
dy = 0;
this.gotoAndStop(80);
SoundsManager.playSound("dun");
};
};
if (y > yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 80)))){
del();
};
};
}
}
}//package enemies
Section 134
//Fireball1 (enemies.Fireball1)
package enemies {
import flash.events.*;
import flash.display.*;
public class Fireball1 extends MovieClip {
public var yfix;
public var actionstate;// = 1
public var number;
public var man:Boolean;// = false
public var xxscale;
private var t;
public var roll;
public var SAttack;// = 30
public var dy;// = 0
private var par;
public var dx;// = 0
public function Fireball1(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
man = false;
SAttack = 30;
dx = 0;
dy = 0;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, arrowAction, false, 0, true);
}
public function del(){
var _local1:*;
var _local2:uint;
par.container3.removeChild(this);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, arrowAction);
}
private function arrowAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
if (actionstate == 0){
};
if (actionstate == 1){
x = (x + dx);
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 18)))) && ((t.roll.currentFrame < t.hurt2)))){
_local2 = ((t.x + (60 * t.scaleX)) - (Math.random() * 20));
_local3 = (((t.y - 74) + t.roll.y) + (Math.random() * 20));
if (t.roll.currentFrame < t.defend){
_local5 = 0;
while (_local5 < 30) {
_local4 = new FireStar2(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-15 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-15 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 30) {
_local4 = new FireStar2(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-15 * t.scaleX);
};
dx = 0;
x = 800;
SoundsManager.playSound("kuaihuo");
};
if ((((x > 700)) || ((x < -100)))){
del();
};
};
}
}
}//package enemies
Section 135
//Fireball2 (enemies.Fireball2)
package enemies {
import flash.events.*;
import flash.display.*;
public class Fireball2 extends MovieClip {
public var yfix;
public var actionstate;// = 1
public var number;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack;// = 30
public var xxscale;
public var dy;// = 0
private var par;
private var fnm;
public var dx;
private var heigh;// = 0
public function Fireball2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
heigh = 0;
actionstate = 1;
man = false;
SAttack = 30;
dy = 0;
super();
addFrameScript(5, frame6, 13, frame14);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, fireballAction, false, 0, true);
}
public function del(){
var _local1:*;
var _local2:uint;
par.container3.removeChild(this);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, fireballAction);
}
function frame14(){
stop();
}
function frame6(){
gotoAndPlay(1);
}
private function fireballAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:uint;
if (actionstate == 0){
};
if (actionstate == 1){
x = (x + dx);
y = (y + dy);
_local2 = (t.x + (50 * t.scaleX));
_local3 = ((t.y - 64) + t.roll.y);
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 18)))){
if (t.roll.currentFrame < t.defend){
_local4 = 0;
while (_local4 < 15) {
fnm = new FireStar2(_local2, _local3, par.container3);
_local4++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 14.2);
};
t.life = (t.life - (SAttack - t.Sdefend));
};
if (this.currentFrame <= 6){
dx = 0;
dy = 0;
this.gotoAndStop(14);
x = 800;
SoundsManager.playSound("kuaihuo");
};
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local4 = 0;
while (_local4 < 15) {
fnm = new FireStar2(_local2, _local3, par.container3);
_local4++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
x = (t.x + (40 * t.scaleX));
if (this.currentFrame <= 6){
dx = 0;
dy = 0;
y = yfix;
this.gotoAndPlay(7);
SoundsManager.playSound("kuaihuo");
};
};
};
if ((((this.currentFrame >= 7)) && ((this.currentFrame <= 12)))){
heigh++;
_local2 = ((Math.random() * 60) - 30);
_local3 = (((Math.random() * 10) + 30) - (30 * heigh));
_local5 = 0;
while (_local5 < 13) {
fnm = new FireStar2(_local2, _local3, this);
_local5++;
};
};
if ((((y >= yfix)) && ((this.currentFrame <= 6)))){
y = yfix;
dx = 0;
dy = 0;
this.gotoAndPlay(7);
SoundsManager.playSound("kuaihuo");
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 14)))){
del();
};
};
}
}
}//package enemies
Section 136
//Fireball3 (enemies.Fireball3)
package enemies {
import flash.events.*;
import flash.display.*;
public class Fireball3 extends MovieClip {
public var yfix;
public var actionstate;// = 1
public var chooseenemies;// = 1
public var number;
public var man:Boolean;// = false
public var xxscale;
public var roll;
public var SAttack;// = 20
public var dy;// = 0
private var par;
private var fnm;
public var dx;
private var heigh;// = 0
public function Fireball3(_arg1:Number=0, _arg2:Number=0, _arg3=null){
heigh = 0;
actionstate = 1;
chooseenemies = 1;
man = false;
SAttack = 20;
dy = 0;
super();
addFrameScript(5, frame6, 13, frame14);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
scaleX = (scaleY = 0.8);
this.addEventListener(Event.ENTER_FRAME, fireballAction, false, 0, true);
}
public function del(){
var _local1:*;
var _local2:uint;
par.container3.removeChild(this);
if (chooseenemies == 1){
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
};
this.removeEventListener(Event.ENTER_FRAME, fireballAction);
}
function frame14(){
stop();
}
function frame6(){
gotoAndPlay(1);
}
private function fireballAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
if (actionstate == 0){
};
if (actionstate == 1){
x = (x + dx);
y = (y + dy);
if ((((this.currentFrame >= 7)) && ((this.currentFrame <= 12)))){
heigh++;
_local2 = ((Math.random() * 60) - 30);
_local3 = (((Math.random() * 10) + 30) - (30 * heigh));
_local4 = 0;
while (_local4 < 13) {
fnm = new FireStar2(_local2, _local3, this);
_local4++;
};
};
if ((((y >= yfix)) && ((this.currentFrame <= 6)))){
y = yfix;
dx = 0;
dy = 0;
this.gotoAndPlay(7);
SoundsManager.playSound("kuaihuo");
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 14)))){
del();
};
};
}
}
}//package enemies
Section 137
//Fist (enemies.Fist)
package enemies {
import flash.events.*;
import flash.display.*;
public class Fist extends MovieClip {
public var yfix;
public var man:Boolean;// = false
private var hits;// = 0
public var xxscale;
private var t;
public var roll;
public var SAttack;// = 15
private var par;
public function Fist(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hits = 0;
man = false;
SAttack = 15;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, fistAction, false, 0, true);
}
private function fistAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
_local2 = (t.x + (50 * t.scaleX));
_local3 = (t.y - 64);
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 12)))){
if (t.roll.currentFrame < t.defend){
_local5 = 0;
while (_local5 < 10) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
t.roll.dy = (t.roll.dy - 24.2);
t.life = (t.life - (SAttack - t.Sdefend));
};
SoundsManager.playSound("kanzhong");
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 10) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
if (hits == 0){
SoundsManager.playSound("dun");
hits++;
};
};
};
if (this.currentFrame == 6){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fistAction);
};
}
}
}//package enemies
Section 138
//HecterRoll (enemies.HecterRoll)
package enemies {
import flash.display.*;
public class HecterRoll extends MovieClip {
public var dy:Number;// = 0
public var chooseframe;
public function HecterRoll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 14, frame15, 35, frame36, 41, frame42, 88, frame89, 124, frame125, 131, frame132, 141, frame142, 235, frame236, 254, frame255, 266, frame267);
super();
x = _arg1;
y = _arg2;
}
function frame89(){
gotoAndStop(1);
}
function frame15(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame36(){
chooseframe = (Math.random() * 5);
if (chooseframe < 3){
this.gotoAndPlay(102);
};
if (chooseframe >= 3){
this.gotoAndPlay(37);
};
}
function frame236(){
stop();
}
function frame125(){
gotoAndStop(1);
}
function frame42(){
gotoAndStop(1);
}
function frame132(){
this.gotoAndPlay(200);
}
function frame255(){
stop();
}
function frame267(){
gotoAndStop(1);
}
function frame142(){
gotoAndStop(1);
}
}
}//package enemies
Section 139
//HecterS (enemies.HecterS)
package enemies {
import flash.events.*;
import flash.display.*;
public class HecterS extends MovieClip {
public var man:Boolean;// = false
private var t;
public var roll;
private var par;
public function HecterS(_arg1:Number, _arg2:Number, _arg3){
man = false;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, hecterSAction, false, 0, true);
}
private function hecterSAction(_arg1:Event):void{
this.alpha = (this.alpha - 0.15);
if (this.alpha <= 0){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, hecterSAction);
};
}
}
}//package enemies
Section 140
//HorsemanRoll (enemies.HorsemanRoll)
package enemies {
import flash.display.*;
public class HorsemanRoll extends MovieClip {
public var dy:Number;// = 0
public function HorsemanRoll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 11, frame12, 59, frame60, 119, frame120, 138, frame139, 153, frame154, 160, frame161);
super();
x = _arg1;
y = _arg2;
}
function frame154(){
stop();
}
function frame161(){
gotoAndPlay(75);
}
function frame12(){
gotoAndPlay(3);
}
function frame1(){
stop();
}
function frame120(){
gotoAndStop(1);
}
function frame139(){
gotoAndStop(1);
}
function frame60(){
gotoAndPlay(75);
}
}
}//package enemies
Section 141
//IBullet (enemies.IBullet)
package enemies {
import flash.events.*;
import flash.display.*;
public class IBullet extends MovieClip {
public var yfix;
public var man:Boolean;// = false
public var xxscale;
private var t;
public var roll;
public var dy;
private var par;
public var dx;
public function IBullet(_arg1:Number, _arg2:Number, _arg3){
man = false;
super();
addFrameScript(0, frame1, 5, frame6);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, ibulletAction, false, 0, true);
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > yfix)))) || ((((_local3 > _local2)) && ((_local1.y < yfix)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
function frame1(){
stop();
}
function frame6(){
stop();
}
private function ibulletAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
changeDepth();
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
if (y > yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
_local2 = (t.x + (50 * t.scaleX));
_local3 = (t.y - 64);
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 12)))) && ((this.currentFrame == 1)))){
if ((((t.roll.currentFrame < t.jump)) || ((((t.roll.currentFrame >= t.attack)) && ((t.roll.currentFrame < t.attack2)))))){
_local5 = 0;
while (_local5 < 10) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - 5);
SoundsManager.playSound("kanzhong");
};
if ((((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame < t.attack)))) || ((((t.roll.currentFrame >= t.attack2)) && ((t.roll.currentFrame < t.defend)))))){
_local5 = 0;
while (_local5 < 10) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
t.roll.dy = -24.2;
t.life = (t.life - 5);
SoundsManager.playSound("kanzhong");
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local5 = 0;
while (_local5 < 10) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
SoundsManager.playSound("dun");
};
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, ibulletAction);
};
if (this.currentFrame == 6){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, ibulletAction);
};
}
}
}//package enemies
Section 142
//MageRoll (enemies.MageRoll)
package enemies {
import flash.display.*;
public class MageRoll extends MovieClip {
public var dy:Number;// = 0
public function MageRoll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 8, frame9, 37, frame38, 81, frame82, 93, frame94, 216, frame217, 241, frame242);
super();
x = _arg1;
y = _arg2;
}
function frame82(){
gotoAndStop(1);
}
function frame94(){
gotoAndStop(1);
}
function frame217(){
stop();
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(2);
}
function frame38(){
gotoAndStop(1);
}
function frame242(){
gotoAndPlay(50);
}
}
}//package enemies
Section 143
//Rock1Roll (enemies.Rock1Roll)
package enemies {
import flash.display.*;
public class Rock1Roll extends MovieClip {
public var dy:Number;// = 0
public function Rock1Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 20, frame21, 80, frame81, 93, frame94, 123, frame124, 236, frame237);
super();
x = _arg1;
y = _arg2;
}
function frame81(){
gotoAndStop(1);
}
function frame94(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame21(){
gotoAndPlay(2);
}
function frame237(){
stop();
}
function frame124(){
gotoAndPlay(30);
}
}
}//package enemies
Section 144
//Rock2Roll (enemies.Rock2Roll)
package enemies {
import flash.display.*;
public class Rock2Roll extends MovieClip {
public var dy:Number;// = 0
public function Rock2Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 20, frame21, 80, frame81, 93, frame94, 123, frame124, 236, frame237);
super();
x = _arg1;
y = _arg2;
}
function frame81(){
gotoAndStop(1);
}
function frame94(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame21(){
gotoAndPlay(2);
}
function frame237(){
stop();
}
function frame124(){
gotoAndPlay(30);
}
}
}//package enemies
Section 145
//Rock3Roll (enemies.Rock3Roll)
package enemies {
import flash.display.*;
public class Rock3Roll extends MovieClip {
public var dy:Number;// = 0
public function Rock3Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 16, frame17, 79, frame80, 124, frame125, 138, frame139, 168, frame169, 281, frame282, 334, frame335);
super();
x = _arg1;
y = _arg2;
}
function frame80(){
gotoAndStop(1);
}
function frame169(){
gotoAndPlay(90);
}
function frame335(){
gotoAndStop(1);
}
function frame282(){
stop();
}
function frame1(){
stop();
}
function frame17(){
gotoAndPlay(6);
}
function frame125(){
gotoAndStop(1);
}
function frame139(){
gotoAndStop(1);
}
}
}//package enemies
Section 146
//Soldier1Roll (enemies.Soldier1Roll)
package enemies {
import flash.display.*;
public class Soldier1Roll extends MovieClip {
public var dy:Number;// = 0
public function Soldier1Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 8, frame9, 69, frame70, 82, frame83, 197, frame198);
super();
x = _arg1;
y = _arg2;
}
function frame70(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(2);
}
function frame83(){
gotoAndStop(1);
}
function frame198(){
stop();
stop();
}
}
}//package enemies
Section 147
//Soldier2Roll (enemies.Soldier2Roll)
package enemies {
import flash.display.*;
public class Soldier2Roll extends MovieClip {
public var dy:Number;// = 0
public function Soldier2Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 8, frame9, 69, frame70, 82, frame83, 197, frame198);
super();
x = _arg1;
y = _arg2;
}
function frame70(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(2);
}
function frame83(){
gotoAndStop(1);
}
function frame198(){
stop();
}
}
}//package enemies
Section 148
//Soldier3Roll (enemies.Soldier3Roll)
package enemies {
import flash.display.*;
public class Soldier3Roll extends MovieClip {
public var dy:Number;// = 0
public function Soldier3Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 8, frame9, 69, frame70, 82, frame83, 197, frame198);
super();
x = _arg1;
y = _arg2;
}
function frame70(){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame9(){
gotoAndPlay(2);
}
function frame83(){
gotoAndStop(1);
}
function frame198(){
stop();
}
}
}//package enemies
Section 149
//Thief1Roll (enemies.Thief1Roll)
package enemies {
import flash.display.*;
public class Thief1Roll extends MovieClip {
public var dy:Number;// = 0
public function Thief1Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 11, frame12, 59, frame60, 114, frame115, 133, frame134);
super();
x = _arg1;
y = _arg2;
}
function frame12(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame115(){
gotoAndPlay(1);
}
function frame134(){
gotoAndPlay(1);
}
function frame60(){
gotoAndStop(1);
}
}
}//package enemies
Section 150
//Thief2Roll (enemies.Thief2Roll)
package enemies {
import flash.display.*;
public class Thief2Roll extends MovieClip {
public var dy:Number;// = 0
public function Thief2Roll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 11, frame12, 59, frame60, 114, frame115, 133, frame134);
super();
x = _arg1;
y = _arg2;
}
function frame12(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
function frame115(){
gotoAndStop(1);
}
function frame134(){
gotoAndStop(1);
}
function frame60(){
gotoAndStop(1);
}
}
}//package enemies
Section 151
//Weakpoint (enemies.Weakpoint)
package enemies {
import flash.display.*;
public class Weakpoint extends MovieClip {
public var dy:Number;// = 0
public function Weakpoint(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(119, frame120);
super();
x = _arg1;
y = _arg2;
}
function frame120(){
stop();
}
}
}//package enemies
Section 152
//Fire1 (fires.Fire1)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire1 extends MovieClip {
private var dy;
private var par;
public function Fire1(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 3) - 5);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 153
//Fire10 (fires.Fire10)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire10 extends MovieClip {
private var dy;
private var par;
public function Fire10(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 154
//Fire11 (fires.Fire11)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire11 extends MovieClip {
private var dy;
private var par;
public function Fire11(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 155
//Fire2 (fires.Fire2)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire2 extends MovieClip {
private var dy;
private var par;
public function Fire2(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 156
//Fire3 (fires.Fire3)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire3 extends MovieClip {
private var dy;
private var par;
public function Fire3(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 157
//Fire4 (fires.Fire4)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire4 extends MovieClip {
private var dy;
private var par;
public function Fire4(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 158
//Fire5 (fires.Fire5)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire5 extends MovieClip {
private var dy;
private var par;
public function Fire5(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 159
//Fire6 (fires.Fire6)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire6 extends MovieClip {
private var dy;
private var par;
public function Fire6(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 160
//Fire7 (fires.Fire7)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire7 extends MovieClip {
private var dy;
private var par;
public function Fire7(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 161
//Fire8 (fires.Fire8)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire8 extends MovieClip {
private var dy;
private var par;
public function Fire8(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 162
//Fire9 (fires.Fire9)
package fires {
import flash.events.*;
import flash.display.*;
public class Fire9 extends MovieClip {
private var dy;
private var par;
public function Fire9(_arg1:Number, _arg2:Number, _arg3){
dy = ((Math.random() * 2) - 3);
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
y = (y + dy);
if (y < -30){
this.stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, fireAction);
};
}
}
}//package fires
Section 163
//Aobj1 (objects.Aobj1)
package objects {
import flash.events.*;
import flash.display.*;
import rolls.*;
public class Aobj1 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
private var timer;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -16
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Aobj1(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
timer = 0;
man = false;
dy = -16;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 5));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 5));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:*;
var _local6:uint;
if (this.currentFrame == 2){
timer++;
if ((timer % 3) == 0){
_local2 = (Math.random() * 2);
if (_local2 < 1){
fnm = new MagicStar3(0, 0, this);
};
if (_local2 >= 1){
fnm = new MagicStar4(0, 0, this);
};
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local3 = new ObjText(t.x, (t.y - 140), "Dagger", par);
if (t.secswordnm != 1){
t.createAssistweapon();
};
t.secswordnm = 1;
SoundsManager.playSound("qiehuanjineng");
this.gotoAndStop(3);
};
if (timer >= 180){
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local6 = 0;
while (_local6 < par.container3.numChildren) {
_local5 = par.container3.getChildAt(_local6);
_local4 = par.container3.getChildIndex(this);
if ((((_local5.man == true)) && (!((_local5 == this))))){
if ((((((_local6 < _local4)) && ((_local5.y > yfix)))) || ((((_local6 > _local4)) && ((_local5.y < yfix)))))){
par.container3.swapChildren(_local5, this);
};
};
_local6++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 3)))){
del();
};
}
}
}//package objects
Section 164
//Aobj2 (objects.Aobj2)
package objects {
import flash.events.*;
import flash.display.*;
import rolls.*;
public class Aobj2 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
private var timer;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -16
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Aobj2(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
timer = 0;
man = false;
dy = -16;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 5));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 5));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:*;
var _local6:uint;
if (this.currentFrame == 2){
timer++;
if ((timer % 3) == 0){
_local2 = (Math.random() * 2);
if (_local2 < 1){
fnm = new MagicStar3(0, 0, this);
};
if (_local2 >= 1){
fnm = new MagicStar4(0, 0, this);
};
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local3 = new ObjText(t.x, (t.y - 140), "Axe", par);
if (t.secswordnm != 2){
t.createAssistweapon();
};
t.secswordnm = 2;
SoundsManager.playSound("qiehuanjineng");
this.gotoAndStop(3);
};
if (timer >= 180){
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local6 = 0;
while (_local6 < par.container3.numChildren) {
_local5 = par.container3.getChildAt(_local6);
_local4 = par.container3.getChildIndex(this);
if ((((_local5.man == true)) && (!((_local5 == this))))){
if ((((((_local6 < _local4)) && ((_local5.y > yfix)))) || ((((_local6 > _local4)) && ((_local5.y < yfix)))))){
par.container3.swapChildren(_local5, this);
};
};
_local6++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 3)))){
del();
};
}
}
}//package objects
Section 165
//Aobj3 (objects.Aobj3)
package objects {
import flash.events.*;
import flash.display.*;
import rolls.*;
public class Aobj3 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
private var timer;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -16
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Aobj3(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
timer = 0;
man = false;
dy = -16;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 5));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 5));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:*;
var _local6:uint;
if (this.currentFrame == 2){
timer++;
if ((timer % 3) == 0){
_local2 = (Math.random() * 2);
if (_local2 < 1){
fnm = new MagicStar3(0, 0, this);
};
if (_local2 >= 1){
fnm = new MagicStar4(0, 0, this);
};
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local3 = new ObjText(t.x, (t.y - 140), "Holy Water", par);
if (t.secswordnm != 3){
t.createAssistweapon();
};
t.secswordnm = 3;
SoundsManager.playSound("qiehuanjineng");
this.gotoAndStop(3);
};
if (timer >= 180){
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local6 = 0;
while (_local6 < par.container3.numChildren) {
_local5 = par.container3.getChildAt(_local6);
_local4 = par.container3.getChildIndex(this);
if ((((_local5.man == true)) && (!((_local5 == this))))){
if ((((((_local6 < _local4)) && ((_local5.y > yfix)))) || ((((_local6 > _local4)) && ((_local5.y < yfix)))))){
par.container3.swapChildren(_local5, this);
};
};
_local6++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 3)))){
del();
};
}
}
}//package objects
Section 166
//Aobj4 (objects.Aobj4)
package objects {
import flash.events.*;
import flash.display.*;
import rolls.*;
public class Aobj4 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
private var timer;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -16
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Aobj4(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
timer = 0;
man = false;
dy = -16;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 5));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 5));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:*;
var _local6:uint;
if (this.currentFrame == 2){
timer++;
if ((timer % 3) == 0){
_local2 = (Math.random() * 2);
if (_local2 < 1){
fnm = new MagicStar3(0, 0, this);
};
if (_local2 >= 1){
fnm = new MagicStar4(0, 0, this);
};
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local3 = new ObjText(t.x, (t.y - 140), "Fire Bottle", par);
if (t.secswordnm != 4){
t.createAssistweapon();
};
t.secswordnm = 4;
SoundsManager.playSound("qiehuanjineng");
this.gotoAndStop(3);
};
if (timer >= 180){
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local6 = 0;
while (_local6 < par.container3.numChildren) {
_local5 = par.container3.getChildAt(_local6);
_local4 = par.container3.getChildIndex(this);
if ((((_local5.man == true)) && (!((_local5 == this))))){
if ((((((_local6 < _local4)) && ((_local5.y > yfix)))) || ((((_local6 > _local4)) && ((_local5.y < yfix)))))){
par.container3.swapChildren(_local5, this);
};
};
_local6++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 3)))){
del();
};
}
}
}//package objects
Section 167
//Aobj5 (objects.Aobj5)
package objects {
import flash.events.*;
import flash.display.*;
import rolls.*;
public class Aobj5 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
private var timer;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -16
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Aobj5(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
timer = 0;
man = false;
dy = -16;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 5));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 5));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:*;
var _local6:uint;
if (this.currentFrame == 2){
timer++;
if ((timer % 3) == 0){
_local2 = (Math.random() * 2);
if (_local2 < 1){
fnm = new MagicStar3(0, 0, this);
};
if (_local2 >= 1){
fnm = new MagicStar4(0, 0, this);
};
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local3 = new ObjText(t.x, (t.y - 140), "Fire Magic", par);
if (t.secswordnm != 5){
t.createAssistweapon();
};
t.secswordnm = 5;
SoundsManager.playSound("qiehuanjineng");
this.gotoAndStop(3);
};
if (timer >= 180){
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local6 = 0;
while (_local6 < par.container3.numChildren) {
_local5 = par.container3.getChildAt(_local6);
_local4 = par.container3.getChildIndex(this);
if ((((_local5.man == true)) && (!((_local5 == this))))){
if ((((((_local6 < _local4)) && ((_local5.y > yfix)))) || ((((_local6 > _local4)) && ((_local5.y < yfix)))))){
par.container3.swapChildren(_local5, this);
};
};
_local6++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 3)))){
del();
};
}
}
}//package objects
Section 168
//Aobj6 (objects.Aobj6)
package objects {
import flash.events.*;
import flash.display.*;
import rolls.*;
public class Aobj6 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
private var timer;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -16
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Aobj6(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
timer = 0;
man = false;
dy = -16;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 5));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 5));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:*;
var _local6:uint;
if (this.currentFrame == 2){
timer++;
if ((timer % 3) == 0){
_local2 = (Math.random() * 2);
if (_local2 < 1){
fnm = new MagicStar3(0, 0, this);
};
if (_local2 >= 1){
fnm = new MagicStar4(0, 0, this);
};
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local3 = new ObjText(t.x, (t.y - 140), "Ice Magic", par);
if (t.secswordnm != 6){
t.createAssistweapon();
};
t.secswordnm = 6;
SoundsManager.playSound("qiehuanjineng");
this.gotoAndStop(3);
};
if (timer >= 180){
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local6 = 0;
while (_local6 < par.container3.numChildren) {
_local5 = par.container3.getChildAt(_local6);
_local4 = par.container3.getChildIndex(this);
if ((((_local5.man == true)) && (!((_local5 == this))))){
if ((((((_local6 < _local4)) && ((_local5.y > yfix)))) || ((((_local6 > _local4)) && ((_local5.y < yfix)))))){
par.container3.swapChildren(_local5, this);
};
};
_local6++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 3)))){
del();
};
}
}
}//package objects
Section 169
//Aobj7 (objects.Aobj7)
package objects {
import flash.events.*;
import flash.display.*;
import rolls.*;
public class Aobj7 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
private var timer;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -16
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Aobj7(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
timer = 0;
man = false;
dy = -16;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 5));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 5));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:*;
var _local6:uint;
if (this.currentFrame == 2){
timer++;
if ((timer % 3) == 0){
_local2 = (Math.random() * 2);
if (_local2 < 1){
fnm = new MagicStar3(0, 0, this);
};
if (_local2 >= 1){
fnm = new MagicStar4(0, 0, this);
};
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local3 = new ObjText(t.x, (t.y - 140), "Cure", par);
if (t.secswordnm != 7){
t.createAssistweapon();
};
t.secswordnm = 7;
SoundsManager.playSound("qiehuanjineng");
this.gotoAndStop(3);
};
if (timer >= 180){
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local6 = 0;
while (_local6 < par.container3.numChildren) {
_local5 = par.container3.getChildAt(_local6);
_local4 = par.container3.getChildIndex(this);
if ((((_local5.man == true)) && (!((_local5 == this))))){
if ((((((_local6 < _local4)) && ((_local5.y > yfix)))) || ((((_local6 > _local4)) && ((_local5.y < yfix)))))){
par.container3.swapChildren(_local5, this);
};
};
_local6++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((((x > 700)) || ((x < -100)))) || ((this.currentFrame == 3)))){
del();
};
}
}
}//package objects
Section 170
//Apple (objects.Apple)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Apple extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Apple(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
if (master.y > 320){
dyfix = -1;
};
if (master.y <= 320){
dyfix = 1;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText4(t.x, (t.y - 80), "HP+30", par);
if ((t.lifexxx - t.life) > 30){
t.life = (t.life + 30);
Data.lifenm = t.life;
};
if ((t.lifexxx - t.life) <= 30){
t.life = t.lifexxx;
Data.lifenm = t.lifexxx;
};
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 171
//Berry (objects.Berry)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Berry extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Berry(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
if (master.y > 320){
dyfix = -1;
};
if (master.y <= 320){
dyfix = 1;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText4(t.x, (t.y - 80), "HP+40", par);
if ((t.lifexxx - t.life) > 40){
t.life = (t.life + 40);
Data.lifenm = t.life;
};
if ((t.lifexxx - t.life) <= 40){
t.life = t.lifexxx;
Data.lifenm = t.lifexxx;
};
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 172
//Bread (objects.Bread)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Bread extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Bread(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
if (master.y > 320){
dyfix = -1;
};
if (master.y <= 320){
dyfix = 1;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText4(t.x, (t.y - 80), "HP+60", par);
if ((t.lifexxx - t.life) > 60){
t.life = (t.life + 60);
Data.lifenm = t.life;
};
if ((t.lifexxx - t.life) <= 60){
t.life = t.lifexxx;
Data.lifenm = t.lifexxx;
};
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 173
//Cherry (objects.Cherry)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Cherry extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Cherry(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
if (master.y > 320){
dyfix = -1;
};
if (master.y <= 320){
dyfix = 1;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText4(t.x, (t.y - 80), "HP+80", par);
if ((t.lifexxx - t.life) > 80){
t.life = (t.life + 80);
Data.lifenm = t.life;
};
if ((t.lifexxx - t.life) <= 80){
t.life = t.lifexxx;
Data.lifenm = t.lifexxx;
};
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 174
//Crystel (objects.Crystel)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Crystel extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Crystel(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 18));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-2 - (Math.random() * 6));
};
if (master.x <= 300){
dx = (2 + (Math.random() * 6));
};
if (master.y > 320){
dyfix = -1;
};
if (master.y <= 320){
dyfix = 1;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText(t.x, (t.y - 120), "Crystal+1", par);
Data.cnm = (Data.cnm + 1);
t.cnm = Data.cnm;
SoundsManager.playSound("chinengliang");
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 175
//Gem1 (objects.Gem1)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Gem1 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Gem1(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText3(t.x, (t.y - 100), "xp+10", par);
Data.scorenm = (Data.scorenm + 10);
t.scorenm = Data.scorenm;
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 176
//Gem2 (objects.Gem2)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Gem2 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Gem2(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText3(t.x, (t.y - 100), "xp+20", par);
Data.scorenm = (Data.scorenm + 20);
t.scorenm = Data.scorenm;
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 177
//Gem3 (objects.Gem3)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Gem3 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Gem3(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText3(t.x, (t.y - 100), "xp+40", par);
Data.scorenm = (Data.scorenm + 40);
t.scorenm = Data.scorenm;
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 178
//Gem4 (objects.Gem4)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Gem4 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Gem4(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText3(t.x, (t.y - 100), "xp+80", par);
Data.scorenm = (Data.scorenm + 80);
t.scorenm = Data.scorenm;
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 179
//Gem5 (objects.Gem5)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Gem5 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Gem5(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText3(t.x, (t.y - 100), "xp+120", par);
Data.scorenm = (Data.scorenm + 120);
t.scorenm = Data.scorenm;
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 180
//Gem6 (objects.Gem6)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Gem6 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Gem6(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText3(t.x, (t.y - 100), "xp+300", par);
Data.scorenm = (Data.scorenm + 300);
t.scorenm = Data.scorenm;
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 181
//GoldCoin (objects.GoldCoin)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class GoldCoin extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function GoldCoin(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText3(t.x, (t.y - 100), "xp+5", par);
Data.scorenm = (Data.scorenm + 5);
t.scorenm = Data.scorenm;
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 182
//Lifewater (objects.Lifewater)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Lifewater extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Lifewater(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
if (master.y > 320){
dyfix = -1;
};
if (master.y <= 320){
dyfix = 1;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText4(t.x, (t.y - 80), "HP+120", par);
if ((t.lifexxx - t.life) > 120){
t.life = (t.life + 120);
Data.lifenm = t.life;
};
if ((t.lifexxx - t.life) <= 120){
t.life = t.lifexxx;
Data.lifenm = t.lifexxx;
};
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 183
//Relivecross (objects.Relivecross)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Relivecross extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -22
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Relivecross(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = -22;
super();
addFrameScript(0, frame1, 2, frame3);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 2));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 2));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 2){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText5(t.x, (t.y - 140), "RENASCENCE CROSS", par);
Data.relivecrossnm = (Data.relivecrossnm + 1);
par.states.cross.visible = true;
SoundsManager.playSound("dedaochongshen");
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if (this.currentFrame == 3){
x = -120;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 184
//Sheild2obj (objects.Sheild2obj)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Sheild2obj extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -22
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Sheild2obj(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = -22;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 2));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 2));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 2){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText5(t.x, (t.y - 140), "SPARTA!", par);
t.cteateSheild(Sheild2);
t.sheildnm = 2;
Data.sheildnm = 2;
SoundsManager.playSound("wuqishengji");
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if (this.currentFrame == 3){
x = -120;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 185
//Sheild3obj (objects.Sheild3obj)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Sheild3obj extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -22
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Sheild3obj(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = -22;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 2));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 2));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 2){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText5(t.x, (t.y - 140), "ACCRA!", par);
t.cteateSheild(Sheild3);
t.sheildnm = 3;
Data.sheildnm = 3;
SoundsManager.playSound("wuqishengji");
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if (this.currentFrame == 3){
x = -120;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 186
//Sheild4obj (objects.Sheild4obj)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Sheild4obj extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -24
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Sheild4obj(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = -24;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 2));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 2));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 2){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText5(t.x, (t.y - 140), "BYZANTIUM!", par);
t.cteateSheild(Sheild4);
t.sheildnm = 4;
Data.sheildnm = 4;
SoundsManager.playSound("wuqishengji");
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if (this.currentFrame == 3){
x = -120;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 187
//Sheild5obj (objects.Sheild5obj)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Sheild5obj extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -24
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Sheild5obj(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = -24;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 2));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 2));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 2){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText5(t.x, (t.y - 140), "Eden!", par);
t.cteateSheild(Sheild5);
t.sheildnm = 5;
Data.sheildnm = 5;
SoundsManager.playSound("wuqishengji");
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if (this.currentFrame == 3){
x = -120;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 188
//SilverCoin (objects.SilverCoin)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class SilverCoin extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function SilverCoin(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText3(t.x, (t.y - 100), "xp+2", par);
Data.scorenm = (Data.scorenm + 2);
t.scorenm = Data.scorenm;
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 189
//Sword2obj (objects.Sword2obj)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Sword2obj extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;// = -30
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -24
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Sword2obj(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
drot = -30;
dy = -24;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 2));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 2));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 2){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText5(t.x, (t.y - 140), "PERCEVAI!", par);
t.cteateSword(Sword2);
t.swordnm = 2;
Data.swordnm = 2;
SoundsManager.playSound("wuqishengji");
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
rotation = (rotation + drot);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if (this.currentFrame == 3){
x = -120;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 190
//Sword3obj (objects.Sword3obj)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Sword3obj extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;// = -30
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -24
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Sword3obj(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
drot = -30;
dy = -24;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 2));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 2));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 2){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText5(t.x, (t.y - 140), "LANCELOT!", par);
t.cteateSword(Sword3);
t.swordnm = 3;
Data.swordnm = 3;
SoundsManager.playSound("wuqishengji");
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
rotation = (rotation + drot);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if (this.currentFrame == 3){
x = -120;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 191
//Sword4obj (objects.Sword4obj)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Sword4obj extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;// = -30
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -24
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Sword4obj(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
drot = -30;
dy = -24;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 2));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 2));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 2){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText5(t.x, (t.y - 140), "ARTHUR!", par);
t.cteateSword(Sword4);
t.swordnm = 4;
Data.swordnm = 4;
SoundsManager.playSound("wuqishengji");
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
rotation = (rotation + drot);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if (this.currentFrame == 3){
x = -120;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 192
//Sword5obj (objects.Sword5obj)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Sword5obj extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;// = -30
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;// = -24
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Sword5obj(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
drot = -30;
dy = -24;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-1 - (Math.random() * 2));
};
if (master.x <= 300){
dx = (1 + (Math.random() * 2));
};
if (master.y > 320){
dyfix = -0.5;
};
if (master.y <= 320){
dyfix = 0.5;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 2){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText5(t.x, (t.y - 140), "RAGNAROK!", par);
t.cteateSword(Sword5);
t.swordnm = 5;
Data.swordnm = 5;
SoundsManager.playSound("wuqishengji");
this.gotoAndStop(3);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
rotation = (rotation + drot);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
rotation = 0;
this.gotoAndStop(2);
};
};
if (this.currentFrame == 3){
x = -120;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 193
//Tomato (objects.Tomato)
package objects {
import flash.events.*;
import flash.display.*;
import data.*;
public class Tomato extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
public var number;
private var master;
private var ta;
public var man:Boolean;// = false
private var t;
public var roll;
public var dy;
private var par;
public var dyfix;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Tomato(_arg1:Number=0, _arg2:Number=0, _arg3=null, _arg4=null){
attacknm = 0;
man = false;
dy = (-22 + (Math.random() * 10));
super();
addFrameScript(0, frame1, 180, frame181);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg4;
t = par.playRoll;
yfix = master.y;
if (master.x > 300){
dx = (-3 - (Math.random() * 4));
};
if (master.x <= 300){
dx = (3 + (Math.random() * 4));
};
if (master.y > 320){
dyfix = -1;
};
if (master.y <= 320){
dyfix = 1;
};
this.addEventListener(Event.ENTER_FRAME, crystelAction, false, 0, true);
}
public function del():void{
var _local1:*;
var _local2:uint;
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, crystelAction);
par.container3.removeChild(this);
}
function frame181(){
stop();
}
function frame1(){
stop();
}
private function crystelAction(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:uint;
if ((((this.currentFrame >= 2)) && ((this.currentFrame < 181)))){
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = new ObjText4(t.x, (t.y - 80), "HP+120", par);
if ((t.lifexxx - t.life) > 120){
t.life = (t.life + 120);
Data.lifenm = t.life;
};
if ((t.lifexxx - t.life) <= 120){
t.life = t.lifexxx;
Data.lifenm = t.lifexxx;
};
this.gotoAndStop(181);
};
};
if (this.currentFrame == 1){
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
yfix = (yfix + dyfix);
_local5 = 0;
while (_local5 < par.container3.numChildren) {
_local4 = par.container3.getChildAt(_local5);
_local3 = par.container3.getChildIndex(this);
if ((((_local4.man == true)) && (!((_local4 == this))))){
if ((((((_local5 < _local3)) && ((_local4.y > yfix)))) || ((((_local5 > _local3)) && ((_local4.y < yfix)))))){
par.container3.swapChildren(_local4, this);
};
};
_local5++;
};
if (y >= yfix){
y = yfix;
this.gotoAndPlay(2);
};
};
if (this.currentFrame == 181){
x = -80;
};
if ((((((((par.stagechange == true)) && ((t.x > 240)))) && ((t.dx > 0)))) && ((((((t.roll.currentFrame >= 2)) && ((t.roll.currentFrame < 12)))) || ((((t.roll.currentFrame >= t.jump)) && ((t.roll.currentFrame <= (t.jump + 3))))))))){
x = (x - t.dx);
};
if ((((x > 700)) || ((x < -100)))){
del();
};
}
}
}//package objects
Section 194
//Axe (rolls.Axe)
package rolls {
import flash.events.*;
import flash.display.*;
public class Axe extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 7
public var dy;// = 0
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Axe(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
man = false;
dy = 0;
SAttack = 7;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
this.addEventListener(Event.ENTER_FRAME, axeAction, false, 0, true);
}
private function axeAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:uint;
if (this.currentFrame == 1){
_local3 = 0;
while (_local3 < par.container3.numChildren) {
t = par.container3.getChildAt(_local3);
_local2 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local3 < _local2)) && ((t.y > yfix)))) || ((((_local3 > _local2)) && ((t.y < yfix)))))){
par.container3.swapChildren(t, this);
};
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))){
lx = (t.x - (20 * t.scaleX));
ly = y;
if (t.roll.currentFrame < t.die){
_local4 = 0;
while (_local4 < 12) {
fnm = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (t.roll.currentFrame < t.hurt){
if (t.strong < SAttack){
t.roll.gotoAndPlay(t.hurt);
t.life = (t.life - ((6 + SAttack) - t.strong));
t.dx = ((14 + (Math.random() * 4)) * t.scaleX);
t.dy = 0;
};
if (t.strong >= SAttack){
t.dxfix = ((6 + (Math.random() * 2)) * t.scaleX);
x = lx;
dx = ((-6 - (Math.random() * 4)) * scaleX);
drot = (scaleX * (-30 - (Math.random() * 30)));
dy = (-4 - (Math.random() * 3));
this.gotoAndStop(2);
SoundsManager.playSound("kuijiabaohu");
break;
};
};
};
if (((((this.hitTestObject(t.hitBall)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (40 * t.scaleX));
if (t.strong >= SAttack){
_local5 = 0;
while (_local5 < 12) {
fnm = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local5++;
};
t.roll.gotoAndPlay(t.hurt);
t.life = (t.life - 8);
t.dx = ((14 + (Math.random() * 4)) * t.scaleX);
t.dy = 0;
t.dxfix = 0;
x = lx;
dx = ((-6 - (Math.random() * 4)) * scaleX);
drot = (scaleX * (-30 - (Math.random() * 30)));
dy = (-4 - (Math.random() * 3));
this.gotoAndStop(2);
if (t.strong != 1){
SoundsManager.playSound("kanzhong");
};
break;
};
};
};
_local3++;
};
};
rotation = (rotation + drot);
x = (x + dx);
y = (y + dy);
dy = (dy + 1.5);
if ((((((par.stagechange == true)) && ((master.x > 240)))) && ((master.dx > 0)))){
x = (x - master.dx);
};
if ((((((y >= yfix)) || ((x > 630)))) || ((x < -30)))){
y = yfix;
_local6 = 0;
while (_local6 < 12) {
fnm = new FireStar(x, y, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local6++;
};
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, axeAction);
};
}
function frame1(){
stop();
}
}
}//package rolls
Section 195
//CureRain (rolls.CureRain)
package rolls {
import flash.events.*;
import flash.display.*;
import data.*;
public class CureRain extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
private var par;
private var fnm;
private var ly;
private var lx;
public function CureRain(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
man = false;
super();
addFrameScript(19, frame20);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
this.addEventListener(Event.ENTER_FRAME, shadowAction, false, 0, true);
}
function frame20(){
stop();
}
private function shadowAction(_arg1:Event):void{
if ((((this.currentFrame < 20)) && ((this.currentFrame > 3)))){
if (master.life <= (master.lifexxx - 2)){
master.life = (master.life + 2);
Data.lifenm = master.life;
};
if (master.life > (master.lifexxx - 2)){
master.life = master.lifexxx;
Data.lifenm = master.life;
};
};
if (this.currentFrame == 20){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, shadowAction);
};
}
}
}//package rolls
Section 196
//Dagger (rolls.Dagger)
package rolls {
import flash.events.*;
import flash.display.*;
public class Dagger extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 5
public var dy;// = 0
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function Dagger(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
man = false;
dy = 0;
SAttack = 5;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
this.addEventListener(Event.ENTER_FRAME, daggerAction, false, 0, true);
}
function frame1(){
stop();
}
private function daggerAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
if (this.currentFrame == 2){
rotation = (rotation + drot);
x = (x + dx);
y = (y + dy);
dy = (dy + 4);
};
if (this.currentFrame == 1){
x = (x + dx);
_local3 = 0;
while (_local3 < par.container3.numChildren) {
t = par.container3.getChildAt(_local3);
_local2 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local3 < _local2)) && ((t.y > yfix)))) || ((((_local3 > _local2)) && ((t.y < yfix)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.hitBall)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (20 * t.scaleX));
ly = y;
if (t.strong >= SAttack){
_local4 = 0;
while (_local4 < 12) {
fnm = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
t.roll.gotoAndPlay(t.hurt);
t.life = (t.life - 6);
t.dx = ((14 + (Math.random() * 4)) * t.scaleX);
t.dy = 0;
t.dxfix = 0;
x = lx;
dx = ((-6 - (Math.random() * 3)) * scaleX);
drot = (scaleX * (-30 - (Math.random() * 30)));
dy = (-6 - (Math.random() * 4));
this.gotoAndStop(2);
SoundsManager.playSound("kuijiabaohu");
break;
};
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (20 * t.scaleX));
ly = y;
_local5 = 0;
while (_local5 < 12) {
fnm = ("fire" + _local5);
fnm = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local5++;
};
if (t.speed > 90){
t.dx = 0;
t.dy = 0;
t.dxfix = 0;
t.roll.gotoAndPlay(230);
};
if (t.strong >= SAttack){
t.dxfix = ((6 + (Math.random() * 2)) * t.scaleX);
x = lx;
dx = ((-6 - (Math.random() * 4)) * scaleX);
drot = (scaleX * (-30 - (Math.random() * 30)));
dy = (-4 - (Math.random() * 3));
this.gotoAndStop(2);
};
if ((((t.strong < SAttack)) && ((t.speed < 90)))){
t.roll.gotoAndPlay(t.hurt);
t.life = (t.life - ((8 + SAttack) - t.strong));
t.dx = ((14 + (Math.random() * 4)) * t.scaleX);
t.dy = 0;
x = -200;
if (t.strong != 1){
SoundsManager.playSound("kanzhong");
};
};
break;
};
};
_local3++;
};
};
if ((((((y >= yfix)) || ((x > 630)))) || ((x < -30)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, daggerAction);
};
}
}
}//package rolls
Section 197
//FFist (rolls.FFist)
package rolls {
import flash.events.*;
import flash.display.*;
public class FFist extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 10
private var par;
private var fnm;
private var ly;
private var lx;
public function FFist(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
man = false;
SAttack = 10;
super();
addFrameScript(5, frame6);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
this.addEventListener(Event.ENTER_FRAME, shadowAction, false, 0, true);
}
function frame6(){
stop();
}
private function shadowAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 5){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, shadowAction);
};
if (this.currentFrame < 5){
_local3 = 0;
while (_local3 < par.container3.numChildren) {
t = par.container3.getChildAt(_local3);
_local2 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local3 < _local2)) && ((t.y > yfix)))) || ((((_local3 > _local2)) && ((t.y < yfix)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (30 * t.scaleX));
ly = y;
_local5 = 0;
while (_local5 < 12) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(t) + 1));
_local5++;
};
if (t.strong >= SAttack){
t.dxfix = ((6 + (Math.random() * 2)) * t.scaleX);
};
};
if (((((this.hitTestObject(t.hitBall)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
t.roll.gotoAndPlay(t.hurt);
if (SAttack > t.strong){
t.life = (t.life - (SAttack - t.strong));
};
if (SAttack <= t.strong){
t.life = (t.life - (SAttack - 8));
};
t.dxfix = 0;
t.dx = ((20 + (Math.random() * 4)) * t.scaleX);
t.dy = 0;
};
};
_local3++;
};
};
}
}
}//package rolls
Section 198
//FFist2 (rolls.FFist2)
package rolls {
import flash.events.*;
import flash.display.*;
public class FFist2 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 22
private var par;
private var fnm;
private var ly;
private var lx;
public function FFist2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
man = false;
SAttack = 22;
super();
addFrameScript(5, frame6);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
SAttack = (master.SAttack + 4);
this.addEventListener(Event.ENTER_FRAME, shadowAction, false, 0, true);
}
function frame6(){
stop();
}
private function shadowAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 6){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, shadowAction);
};
if (this.currentFrame < 6){
_local3 = 0;
while (_local3 < par.container3.numChildren) {
t = par.container3.getChildAt(_local3);
_local2 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local3 < _local2)) && ((t.y > yfix)))) || ((((_local3 > _local2)) && ((t.y < yfix)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (30 * t.scaleX));
ly = y;
_local5 = 0;
while (_local5 < 12) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(t) + 1));
_local5++;
};
if (t.strong >= SAttack){
t.dxfix = ((6 + (Math.random() * 2)) * t.scaleX);
};
};
if (((((this.hitTestObject(t.hitBall)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
t.roll.gotoAndPlay(t.hurt);
if ((((t.x < 650)) && ((t.x > -50)))){
if (SAttack > t.strong){
t.life = (t.life - (SAttack - t.strong));
};
if (SAttack <= t.strong){
t.life = (t.life - (SAttack - 8));
};
};
t.dxfix = 0;
t.dx = ((24 + (Math.random() * 4)) * t.scaleX);
t.dy = 0;
};
};
_local3++;
};
};
}
}
}//package rolls
Section 199
//FighterRoll (rolls.FighterRoll)
package rolls {
import flash.display.*;
public class FighterRoll extends MovieClip {
public var dy:Number;// = 0
public function FighterRoll(_arg1:Number=0, _arg2:Number=0){
dy = 0;
addFrameScript(0, frame1, 10, frame11, 19, frame20, 22, frame23, 37, frame38, 54, frame55, 65, frame66, 81, frame82, 89, frame90, 96, frame97, 116, frame117, 127, frame128, 138, frame139, 164, frame165, 187, frame188, 218, frame219, 253, frame254);
super();
x = _arg1;
y = _arg2;
}
function frame165(){
gotoAndStop(1);
}
function frame82(){
gotoAndStop(20);
}
function frame90(){
gotoAndStop(1);
}
function frame97(){
gotoAndStop(20);
}
function frame1(){
stop();
}
function frame23(){
gotoAndStop(1);
}
function frame188(){
gotoAndStop(1);
}
function frame20(){
stop();
}
function frame117(){
gotoAndStop(1);
}
function frame38(){
gotoAndStop(1);
}
function frame11(){
gotoAndPlay(2);
}
function frame219(){
gotoAndStop(1);
}
function frame128(){
gotoAndStop(1);
}
function frame139(){
stop();
}
function frame55(){
gotoAndStop(1);
}
function frame254(){
gotoAndStop(1);
}
function frame66(){
gotoAndStop(1);
}
}
}//package rolls
Section 200
//HolyWater (rolls.HolyWater)
package rolls {
import flash.events.*;
import flash.display.*;
public class HolyWater extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
private var hits;// = 0
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 9
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function HolyWater(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
hits = 0;
man = false;
SAttack = 9;
super();
addFrameScript(0, frame1);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
this.addEventListener(Event.ENTER_FRAME, holywaterAction, false, 0, true);
}
public function del():void{
stop();
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, holywaterAction);
}
function frame1(){
stop();
}
private function holywaterAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:*;
if (this.currentFrame == 1){
rotation = (rotation + drot);
x = (x + dx);
y = (y + dy);
dy = (dy + 4);
if (y >= yfix){
y = yfix;
rotation = 0;
_local4 = 0;
while (_local4 < 12) {
fnm = ("fire" + _local4);
fnm = new FireStar(x, y, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local4++;
};
if (hits == 0){
SoundsManager.playSound("mofapingluodi");
SoundsManager.playSound("xiaobin");
hits++;
};
this.gotoAndPlay(2);
};
};
_local3 = 0;
while (_local3 < par.container3.numChildren) {
t = par.container3.getChildAt(_local3);
_local2 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local3 < _local2)) && ((t.y > yfix)))) || ((((_local3 > _local2)) && ((t.y < yfix)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 12)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (50 * t.scaleX));
ly = y;
_local5 = 0;
while (_local5 < 12) {
fnm = ("fire" + _local5);
fnm = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local5++;
};
if (t.strong < SAttack){
_local6 = (Math.random() * 2);
if (_local6 < 1){
t.scaleX = (t.scaleX * -1);
};
t.roll.gotoAndPlay(t.hurt);
t.life = (t.life - (SAttack - t.strong));
t.dxfix = 0;
t.dx = ((14 + (Math.random() * 2)) * t.scaleX);
t.dy = 0;
};
if (t.strong >= SAttack){
t.dxfix = ((6 + (Math.random() * 2)) * t.scaleX);
};
};
};
_local3++;
};
if ((((((par.stagechange == true)) && ((master.x > 240)))) && ((master.dx > 0)))){
x = (x - master.dx);
};
if ((((this.currentFrame == 10)) && ((attacknm == 6)))){
del();
};
if ((((this.currentFrame == 10)) && ((attacknm < 6)))){
x = (x + (dx * 5));
this.gotoAndPlay(2);
attacknm++;
};
}
}
}//package rolls
Section 201
//Levelup (rolls.Levelup)
package rolls {
import flash.events.*;
import flash.display.*;
public class Levelup extends MovieClip {
public var man:Boolean;// = false
public var roll;
private var par;
public function Levelup(_arg1:Number=0, _arg2:Number=0, _arg3=null){
man = false;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, shadowAction, false, 0, true);
}
private function shadowAction(_arg1:Event):void{
if (this.currentFrame == 25){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, shadowAction);
};
}
}
}//package rolls
Section 202
//Sheild1 (rolls.Sheild1)
package rolls {
import flash.display.*;
public class Sheild1 extends MovieClip {
public function Sheild1(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 203
//Sheild2 (rolls.Sheild2)
package rolls {
import flash.display.*;
public class Sheild2 extends MovieClip {
public function Sheild2(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 204
//Sheild3 (rolls.Sheild3)
package rolls {
import flash.display.*;
public class Sheild3 extends MovieClip {
public function Sheild3(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 205
//Sheild4 (rolls.Sheild4)
package rolls {
import flash.display.*;
public class Sheild4 extends MovieClip {
public function Sheild4(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 206
//Sheild5 (rolls.Sheild5)
package rolls {
import flash.display.*;
public class Sheild5 extends MovieClip {
public function Sheild5(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 207
//Sword1 (rolls.Sword1)
package rolls {
import flash.display.*;
public class Sword1 extends MovieClip {
public function Sword1(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 208
//Sword2 (rolls.Sword2)
package rolls {
import flash.display.*;
public class Sword2 extends MovieClip {
public function Sword2(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 209
//Sword3 (rolls.Sword3)
package rolls {
import flash.display.*;
public class Sword3 extends MovieClip {
public function Sword3(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 210
//Sword4 (rolls.Sword4)
package rolls {
import flash.display.*;
public class Sword4 extends MovieClip {
public function Sword4(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 211
//Sword5 (rolls.Sword5)
package rolls {
import flash.display.*;
public class Sword5 extends MovieClip {
public function Sword5(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package rolls
Section 212
//SwordShadow (rolls.SwordShadow)
package rolls {
import flash.events.*;
import flash.display.*;
public class SwordShadow extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 10
private var par;
private var fnm;
private var ly;
private var lx;
public function SwordShadow(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
man = false;
SAttack = 10;
super();
addFrameScript(4, frame5);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
SAttack = master.SAttack;
this.addEventListener(Event.ENTER_FRAME, shadowAction, false, 0, true);
}
private function shadowAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 5){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, shadowAction);
};
if (this.currentFrame < 5){
_local3 = 0;
while (_local3 < par.container3.numChildren) {
t = par.container3.getChildAt(_local3);
_local2 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local3 < _local2)) && ((t.y > yfix)))) || ((((_local3 > _local2)) && ((t.y < yfix)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (30 * t.scaleX));
ly = y;
_local5 = 0;
while (_local5 < 12) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(t) + 1));
_local5++;
};
if (t.strong >= SAttack){
t.dxfix = ((6 + (Math.random() * 2)) * t.scaleX);
};
master.playstate = 1;
SoundsManager.playSound("kuijiabaohu");
};
if (((((((((this.hitTestObject(t.hitBall)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))) && ((t.x > -30)))) && ((t.x < 630)))){
t.roll.gotoAndPlay(t.hurt);
if ((((t.x < 650)) && ((t.x > -50)))){
if (SAttack > t.strong){
t.life = (t.life - (SAttack - t.strong));
};
if (SAttack <= t.strong){
t.life = (t.life - (SAttack - 8));
};
};
t.dxfix = 0;
t.dx = ((12 + (Math.random() * 4)) * t.scaleX);
t.dy = 0;
master.playstate = 1;
if (t.strong != 1){
SoundsManager.playSound("kanzhong");
};
};
};
_local3++;
};
};
}
function frame5(){
stop();
}
}
}//package rolls
Section 213
//SwordShadow2 (rolls.SwordShadow2)
package rolls {
import flash.events.*;
import flash.display.*;
public class SwordShadow2 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 10
private var par;
private var fnm;
private var ly;
private var lx;
public function SwordShadow2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
man = false;
SAttack = 10;
super();
addFrameScript(4, frame5);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
SAttack = master.SAttack;
this.addEventListener(Event.ENTER_FRAME, shadowAction, false, 0, true);
}
private function shadowAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 5){
if (master.playstate == 1){
master.playstate = 0;
};
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, shadowAction);
};
if (this.currentFrame < 5){
_local3 = 0;
while (_local3 < par.container3.numChildren) {
t = par.container3.getChildAt(_local3);
_local2 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local3 < _local2)) && ((t.y > yfix)))) || ((((_local3 > _local2)) && ((t.y < yfix)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (30 * t.scaleX));
ly = y;
_local5 = 0;
while (_local5 < 12) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(t) + 1));
_local5++;
};
if (t.strong >= SAttack){
t.dxfix = ((6 + (Math.random() * 2)) * t.scaleX);
};
master.playstate = 2;
};
if (((((this.hitTestObject(t.hitBall)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
t.roll.gotoAndPlay(t.hurt);
if ((((t.x < 650)) && ((t.x > -50)))){
if (SAttack > t.strong){
t.life = (t.life - (SAttack - t.strong));
};
if (SAttack <= t.strong){
t.life = (t.life - (SAttack - 8));
};
};
t.dxfix = 0;
t.dx = ((18 + (Math.random() * 3)) * t.scaleX);
t.dy = 0;
master.playstate = 2;
};
};
_local3++;
};
};
}
function frame5(){
stop();
}
}
}//package rolls
Section 214
//SwordShadow3 (rolls.SwordShadow3)
package rolls {
import flash.events.*;
import flash.display.*;
public class SwordShadow3 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var drot;
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 10
private var par;
private var fnm;
private var ly;
private var lx;
public function SwordShadow3(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
man = false;
SAttack = 10;
super();
addFrameScript(2, frame3);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
SAttack = (master.SAttack + 2);
this.addEventListener(Event.ENTER_FRAME, shadowAction, false, 0, true);
}
function frame3(){
stop();
}
private function shadowAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:*;
var _local5:uint;
if (this.currentFrame == 3){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, shadowAction);
};
if (this.currentFrame < 3){
_local3 = 0;
while (_local3 < par.container3.numChildren) {
t = par.container3.getChildAt(_local3);
_local2 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local3 < _local2)) && ((t.y > yfix)))) || ((((_local3 > _local2)) && ((t.y < yfix)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (30 * t.scaleX));
ly = y;
_local5 = 0;
while (_local5 < 12) {
_local4 = ("fire" + _local5);
_local4 = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(t) + 1));
_local5++;
};
if (t.strong >= SAttack){
t.dxfix = ((6 + (Math.random() * 2)) * t.scaleX);
};
};
if (((((this.hitTestObject(t.hitBall)) && ((Math.abs((t.y - yfix)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
t.roll.gotoAndPlay(t.hurt);
if ((((t.x < 650)) && ((t.x > -50)))){
if (SAttack > t.strong){
t.life = (t.life - (SAttack - t.strong));
};
if (SAttack <= t.strong){
t.life = (t.life - (SAttack - 8));
};
};
t.dxfix = 0;
t.dx = ((22 + (Math.random() * 4)) * t.scaleX);
t.dy = 0;
};
};
_local3++;
};
};
}
}
}//package rolls
Section 215
//BaoYouyuan (ui.BaoYouyuan)
package ui {
import flash.display.*;
import walls.*;
public class BaoYouyuan extends MovieClip {
public var zz_MC:ZZ2;
public var zz:MovieClip;
public var credits:MovieClip;
public var creditsMC:MovieClip;
public function BaoYouyuan(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
credits = (this.getChildByName("creditsMC") as MovieClip);
}
}
}//package ui
Section 216
//ChooseC (ui.ChooseC)
package ui {
import flash.display.*;
import walls.*;
public class ChooseC extends MovieClip {
public var zz_MC:ZZ2;
public var c3btn:SimpleButton;
public var c1:SimpleButton;
public var c3:SimpleButton;
public var c4:SimpleButton;
public var c5:SimpleButton;
public var c2:SimpleButton;
public var zz:MovieClip;
public var c1btn:SimpleButton;
public var c4btn:SimpleButton;
public var c2btn:SimpleButton;
public var c5btn:SimpleButton;
public function ChooseC(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
c1 = (this.getChildByName("c1btn") as SimpleButton);
c2 = (this.getChildByName("c2btn") as SimpleButton);
c3 = (this.getChildByName("c3btn") as SimpleButton);
c4 = (this.getChildByName("c4btn") as SimpleButton);
c5 = (this.getChildByName("c5btn") as SimpleButton);
}
}
}//package ui
Section 217
//ChooseType (ui.ChooseType)
package ui {
import flash.display.*;
public class ChooseType extends MovieClip {
public var zz_MC:MovieClip;
public var next_btn:SimpleButton;
public var container3_MC:MovieClip;
public var stagechange:Boolean;// = false
public var curten_MC:MovieClip;
public var type2:SimpleButton;
public var type1_btn:SimpleButton;
public var keyshow1_MC:KeyShow1;
public var nextbtn:SimpleButton;
public var type1:SimpleButton;
public var keyshow2_MC:KeyShow2;
public var zz:MovieClip;
public var container3:MovieClip;
public var type2_btn:SimpleButton;
public var keyshow2:MovieClip;
public var curten:MovieClip;
public var playRoll;
public var stagechangeT:Number;// = 0
public var keyshow1:MovieClip;
public function ChooseType(_arg1:Number=0, _arg2:Number=0){
stagechange = false;
stagechangeT = 0;
super();
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
container3 = (this.getChildByName("container3_MC") as MovieClip);
curten = (this.getChildByName("curten_MC") as MovieClip);
curten.gotoAndStop(1);
keyshow1 = (this.getChildByName("keyshow1_MC") as MovieClip);
keyshow1.visible = false;
keyshow2 = (this.getChildByName("keyshow2_MC") as MovieClip);
keyshow2.visible = false;
type1 = (this.getChildByName("type1_btn") as SimpleButton);
type2 = (this.getChildByName("type2_btn") as SimpleButton);
nextbtn = (this.getChildByName("next_btn") as SimpleButton);
nextbtn.visible = false;
}
}
}//package ui
Section 218
//Company (ui.Company)
package ui {
import flash.display.*;
import walls.*;
public class Company extends MovieClip {
public var zz_MC:ZZ;
public var zz:MovieClip;
public function Company(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
}
}
}//package ui
Section 219
//Congratulation (ui.Congratulation)
package ui {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import walls.*;
public class Congratulation extends MovieClip {
public var relivecross:MovieClip;
public var zz_MC:ZZ;
private var myTextBox:TextField;
private var textchange:Boolean;// = false
private var timer;// = 0
public var zz:MovieClip;
public var tc;// = 0
public var tt;// = 0
private var par;
private var fnm;
public var myTextf:TextField;
public var textcontent:String;
public var text1:String;
public var myText:String;
public function Congratulation(_arg1:Number, _arg2:Number, _arg3:String, _arg4){
timer = 0;
textchange = false;
tt = 0;
tc = 0;
super();
_arg4.addChild(this);
par = _arg4;
x = _arg1;
y = _arg2;
text1 = _arg3;
textcontent = text1;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
relivecross = (this.getChildByName("relivecrossMC") as MovieClip);
myTextBox = (this.getChildByName("myTextf") as TextField);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
this.addEventListener(Event.ENTER_FRAME, relivecrossaction, false, 0, true);
}
private function relivecrossaction(_arg1:Event=null):void{
if ((((timer > 55)) && (((tt % 2) == 0)))){
if (tc < textcontent.length){
tc++;
myTextBox.text = textcontent.substring(0, tc);
};
};
tt++;
timer++;
if (timer == 1000){
this.removeEventListener(Event.ENTER_FRAME, relivecrossaction);
};
}
}
}//package ui
Section 220
//Gameover (ui.Gameover)
package ui {
import flash.display.*;
import walls.*;
public class Gameover extends MovieClip {
public var zz_MC:ZZ;
public var moregames_btn:SimpleButton;
public var spilurl:SimpleButton;
public var credits_btn:SimpleButton;
public var playagain_btn:SimpleButton;
public var zz:MovieClip;
public var credits:SimpleButton;
public var playagain:SimpleButton;
public var urlbtn:SimpleButton;
public var urlbtn_btn:SimpleButton;
public var moregames:SimpleButton;
public var title_MC:MovieClip;
public var titlemc:MovieClip;
public function Gameover(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
titlemc = (this.getChildByName("title_MC") as MovieClip);
playagain = (this.getChildByName("playagain_btn") as SimpleButton);
moregames = (this.getChildByName("moregames_btn") as SimpleButton);
credits = (this.getChildByName("credits_btn") as SimpleButton);
urlbtn = (this.getChildByName("urlbtn_btn") as SimpleButton);
spilurl = (this.getChildByName("spil") as SimpleButton);
}
}
}//package ui
Section 221
//Gamestart (ui.Gamestart)
package ui {
import flash.display.*;
import walls.*;
public class Gamestart extends MovieClip {
public var zz_MC:ZZ;
public var moregames_btn:SimpleButton;
public var pic_btn:SimpleButton;
public var spilurl:SimpleButton;
public var highscores:SimpleButton;
public var startgame:SimpleButton;
public var pic_mc:MovieClip;
public var spil:SimpleButton;
public var turnmusic_mc:MovieClip;
public var turnmusicmc:MovieClip;
public var highscores_btn:SimpleButton;
public var picbtn:SimpleButton;
public var picmc:MovieClip;
public var turnmusicbtn:SimpleButton;
public var urlbtn:MovieClip;
public var zz:MovieClip;
public var turnmusic_btn:SimpleButton;
public var moregames:SimpleButton;
public var startgame_btn:SimpleButton;
public function Gamestart(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
startgame = (this.getChildByName("startgame_btn") as SimpleButton);
highscores = (this.getChildByName("highscores_btn") as SimpleButton);
moregames = (this.getChildByName("moregames_btn") as SimpleButton);
spilurl = (this.getChildByName("spil") as SimpleButton);
turnmusicmc = (this.getChildByName("turnmusic_mc") as MovieClip);
turnmusicbtn = (this.getChildByName("turnmusic_btn") as SimpleButton);
picmc = (this.getChildByName("pic_mc") as MovieClip);
picbtn = (this.getChildByName("pic_btn") as SimpleButton);
urlbtn = (this.getChildByName("url_btn") as MovieClip);
}
}
}//package ui
Section 222
//Go (ui.Go)
package ui {
import flash.display.*;
public class Go extends MovieClip {
public function Go(_arg1:Number=0, _arg2:Number=0){
addFrameScript(45, frame46);
super();
x = _arg1;
y = _arg2;
}
function frame46(){
stop();
}
}
}//package ui
Section 223
//Highscore (ui.Highscore)
package ui {
import flash.display.*;
import flash.text.*;
import walls.*;
public class Highscore extends MovieClip {
public var m5t:TextField;
public var s1t:TextField;
public var s1:TextField;
public var s3:TextField;
public var s4:TextField;
public var s5:TextField;
public var s6:TextField;
public var s7:TextField;
public var s8:TextField;
public var s2:TextField;
public var m6t:TextField;
public var s9:TextField;
public var s2t:TextField;
public var m7t:TextField;
public var s3t:TextField;
public var m8t:TextField;
public var s4t:TextField;
public var m9t:TextField;
public var s5t:TextField;
public var urlbtn:SimpleButton;
public var m10t:TextField;
public var s6t:TextField;
public var s7t:TextField;
public var s10t:TextField;
public var s8t:TextField;
public var zz_MC:ZZ;
public var s9t:TextField;
public var zz:MovieClip;
public var m10:TextField;
public var m1:TextField;
public var m3:TextField;
public var m6:TextField;
public var m7:TextField;
public var m8:TextField;
public var m4:TextField;
public var m5:TextField;
public var m9:TextField;
public var ok_btn:SimpleButton;
public var m2:TextField;
public var m1t:TextField;
public var urlbtn_btn:SimpleButton;
public var m2t:TextField;
public var m3t:TextField;
public var s10:TextField;
public var ok:SimpleButton;
public var m4t:TextField;
public function Highscore(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
m1 = (this.getChildByName("m1t") as TextField);
m2 = (this.getChildByName("m2t") as TextField);
m3 = (this.getChildByName("m3t") as TextField);
m4 = (this.getChildByName("m4t") as TextField);
m5 = (this.getChildByName("m5t") as TextField);
m6 = (this.getChildByName("m6t") as TextField);
m7 = (this.getChildByName("m7t") as TextField);
m8 = (this.getChildByName("m8t") as TextField);
m9 = (this.getChildByName("m9t") as TextField);
m10 = (this.getChildByName("m10t") as TextField);
s1 = (this.getChildByName("s1t") as TextField);
s2 = (this.getChildByName("s2t") as TextField);
s3 = (this.getChildByName("s3t") as TextField);
s4 = (this.getChildByName("s4t") as TextField);
s5 = (this.getChildByName("s5t") as TextField);
s6 = (this.getChildByName("s6t") as TextField);
s7 = (this.getChildByName("s7t") as TextField);
s8 = (this.getChildByName("s8t") as TextField);
s9 = (this.getChildByName("s9t") as TextField);
s10 = (this.getChildByName("s10t") as TextField);
ok = (this.getChildByName("ok_btn") as SimpleButton);
urlbtn = (this.getChildByName("urlbtn_btn") as SimpleButton);
}
}
}//package ui
Section 224
//InputFace (ui.InputFace)
package ui {
import flash.display.*;
import flash.text.*;
public class InputFace extends MovieClip {
public var zz_MC:MovieClip;
public var inputTextfield:TextField;
public var submit:SimpleButton;
public var zz:MovieClip;
public var input_Textfield:TextField;
public var tryagain:SimpleButton;
public var tryagain_btn:SimpleButton;
public var urlbtn:SimpleButton;
public var urlbtn_btn:SimpleButton;
public var submit_btn:SimpleButton;
public function InputFace(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
inputTextfield = (this.getChildByName("input_Textfield") as TextField);
submit = (this.getChildByName("submit_btn") as SimpleButton);
tryagain = (this.getChildByName("tryagain_btn") as SimpleButton);
urlbtn = (this.getChildByName("urlbtn_btn") as SimpleButton);
}
}
}//package ui
Section 225
//KeyShow1 (ui.KeyShow1)
package ui {
import flash.events.*;
import flash.display.*;
public class KeyShow1 extends MovieClip {
public var jkeymc:MovieClip;
public var skey:MovieClip;
public var wkeymc:MovieClip;
public var kkey:MovieClip;
public var ay;// = 200
public var ax;// = 400
public var array_MC:MovieClip;
public var lkeymc:MovieClip;
public var ikey:MovieClip;
public var dkeymc:MovieClip;
public var akey:MovieClip;
public var arr:MovieClip;
public var akeymc:MovieClip;
public var ikeymc:MovieClip;
public var dkey:MovieClip;
public var lkey:MovieClip;
public var wkey:MovieClip;
public var skeymc:MovieClip;
public var jkey:MovieClip;
public var kkeymc:MovieClip;
public function KeyShow1(_arg1:Number=0, _arg2:Number=0){
ax = 400;
ay = 200;
super();
x = _arg1;
y = _arg2;
initDis();
}
private function thisaction(_arg1:Event):void{
arr.x = (arr.x + ((ax - arr.x) / 3));
arr.y = (arr.y + ((ay - arr.y) / 3));
}
private function initDis():void{
wkey = (this.getChildByName("wkeymc") as MovieClip);
akey = (this.getChildByName("akeymc") as MovieClip);
skey = (this.getChildByName("skeymc") as MovieClip);
dkey = (this.getChildByName("dkeymc") as MovieClip);
jkey = (this.getChildByName("jkeymc") as MovieClip);
kkey = (this.getChildByName("kkeymc") as MovieClip);
lkey = (this.getChildByName("lkeymc") as MovieClip);
ikey = (this.getChildByName("ikeymc") as MovieClip);
arr = (this.getChildByName("array_MC") as MovieClip);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package ui
Section 226
//KeyShow2 (ui.KeyShow2)
package ui {
import flash.events.*;
import flash.display.*;
public class KeyShow2 extends MovieClip {
public var upkey:MovieClip;
public var ckey:MovieClip;
public var array_MC:MovieClip;
public var ax;// = 400
public var ay;// = 200
public var arr:MovieClip;
public var downkey:MovieClip;
public var zkeymc:MovieClip;
public var leftkeymc:MovieClip;
public var rightkeymc:MovieClip;
public var upkeymc:MovieClip;
public var spacekey:MovieClip;
public var zkey:MovieClip;
public var ckeymc:MovieClip;
public var xkeymc:MovieClip;
public var rightkey:MovieClip;
public var downkeymc:MovieClip;
public var xkey:MovieClip;
public var spacekeymc:MovieClip;
public var leftkey:MovieClip;
public function KeyShow2(_arg1:Number=0, _arg2:Number=0){
ax = 400;
ay = 200;
super();
x = _arg1;
y = _arg2;
initDis();
}
private function thisaction(_arg1:Event):void{
arr.x = (arr.x + ((ax - arr.x) / 3));
arr.y = (arr.y + ((ay - arr.y) / 3));
}
private function initDis():void{
zkey = (this.getChildByName("zkeymc") as MovieClip);
xkey = (this.getChildByName("xkeymc") as MovieClip);
ckey = (this.getChildByName("ckeymc") as MovieClip);
spacekey = (this.getChildByName("spacekeymc") as MovieClip);
upkey = (this.getChildByName("upkeymc") as MovieClip);
downkey = (this.getChildByName("downkeymc") as MovieClip);
leftkey = (this.getChildByName("leftkeymc") as MovieClip);
rightkey = (this.getChildByName("rightkeymc") as MovieClip);
arr = (this.getChildByName("array_MC") as MovieClip);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package ui
Section 227
//Map (ui.Map)
package ui {
import flash.display.*;
public class Map extends MovieClip {
public var zz_MC:MovieClip;
public var road_mc:MovieClip;
public var road:MovieClip;
public var zz:MovieClip;
public var swordtipMC:MovieClip;
public var swordtip:MovieClip;
public function Map(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
swordtip = (this.getChildByName("swordtipMC") as MovieClip);
road = (this.getChildByName("road_mc") as MovieClip);
road.gotoAndStop(1);
}
}
}//package ui
Section 228
//Predai (ui.Predai)
package ui {
import flash.display.*;
import walls.*;
public class Predai extends MovieClip {
public var zz_MC:ZZ;
public var zz:MovieClip;
public function Predai(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
}
}
}//package ui
Section 229
//ReliveStage (ui.ReliveStage)
package ui {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import walls.*;
public class ReliveStage extends MovieClip {
public var relivecross:MovieClip;
public var zz_MC:ZZ;
private var myTextBox:TextField;
private var textchange:Boolean;// = false
private var timer;// = 0
public var relivecrossMC:MovieClip;
public var zz:MovieClip;
public var tc;// = 0
public var tt;// = 0
private var par;
private var fnm;
public var myTextf:TextField;
public var textcontent:String;
public var text1:String;
public var myText:String;
public function ReliveStage(_arg1:Number, _arg2:Number, _arg3:String, _arg4){
timer = 0;
textchange = false;
tt = 0;
tc = 0;
super();
_arg4.addChild(this);
par = _arg4;
x = _arg1;
y = _arg2;
text1 = _arg3;
textcontent = text1;
initDis();
}
private function initDis():void{
zz = (this.getChildByName("zz_MC") as MovieClip);
relivecross = (this.getChildByName("relivecrossMC") as MovieClip);
myTextBox = (this.getChildByName("myTextf") as TextField);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
this.addEventListener(Event.ENTER_FRAME, relivecrossaction, false, 0, true);
}
private function relivecrossaction(_arg1:Event=null):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (tt > 0){
if (tc < textcontent.length){
tc++;
myTextBox.text = textcontent.substring(0, tc);
};
};
tt++;
timer++;
if (((((timer % 3) == 0)) && ((timer < 110)))){
_local2 = (Math.random() * 2);
_local3 = ((relivecross.x + (Math.random() * 80)) - 40);
_local4 = ((relivecross.y + (Math.random() * 120)) - 40);
if (_local2 < 1){
fnm = new MagicStar3(_local3, _local4, this);
};
if (_local2 >= 1){
fnm = new MagicStar4(_local3, _local4, this);
};
fnm.scaleX = (fnm.scaleX * 2);
fnm.scaleY = (fnm.scaleY * 2);
};
if (timer == 110){
this.removeEventListener(Event.ENTER_FRAME, relivecrossaction);
};
}
}
}//package ui
Section 230
//language (url.language)
package url {
import flash.net.*;
public class language {
public static var SpillGroupUrl:Array = new Array();
public static var localConnection = new LocalConnection();
public static var _languageNum:uint = 0;
public static var _languageBox:Array = new Array();
public static var hostingdomain:String;
public static function get url2():String{
var _local1:int;
_local1 = 0;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url2);
};
_local1++;
};
return (_languageBox[_languageNum].url2);
}
public static function get language_nr():String{
return (_languageBox[_languageNum].language_nr);
}
public static function set Language(_arg1:Object):void{
var returnDomain:Function;
var language1:languageItem;
var language2:languageItem;
var language3:languageItem;
var language4:languageItem;
var language5:languageItem;
var language6:languageItem;
var language7:languageItem;
var language8:languageItem;
var language9:languageItem;
var language10:languageItem;
var language11:languageItem;
var language12:languageItem;
var language13:languageItem;
var language14:languageItem;
var language15:languageItem;
var language16:languageItem;
var language17:languageItem;
var language18:languageItem;
var language19:languageItem;
var myArray:Array;
var domainextention:int;
var domainname:int;
var languageVersion = _arg1;
returnDomain = function (_arg1:String):String{
var _local2:String;
var _local3:uint;
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
};
if (localConnection.domain != "localhost"){
myArray = localConnection.domain.split(".");
trace(myArray.length);
domainextention = (myArray.length - 1);
domainname = (myArray.length - 2);
hostingdomain = ((myArray[domainname] + ".") + myArray[domainextention]);
} else {
hostingdomain = "localhost";
};
language1 = new languageItem();
language1.url1 = ("http://www.a10.com/moregames/?utm_medium=brandedgames_external&utm_campaign=game_name_here&utm_source=" + hostingdomain);
language1.url2 = "http://www.a10.com/moregames/?utm_medium=brandedgames_internal&utm_campaign=game_name_here";
language1.language_nr = 1;
language1.branding_nr = 1;
_languageBox.push(language1);
language2 = new languageItem();
language2.url1 = "http://www.game.com.cn/moregames/";
language2.url2 = "http://www.game.com.cn/moregames/";
language2.language_nr = 17;
language2.branding_nr = 2;
_languageBox.push(language2);
language3 = new languageItem();
language3.url1 = ("http://www.spel.nl/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language3.url2 = "http://www.spel.nl/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language3.language_nr = 3;
language3.branding_nr = 4;
_languageBox.push(language3);
language4 = new languageItem();
language4.url1 = ("http://www.jeu.fr/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language4.url2 = "http://www.jeu.fr/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language4.language_nr = 4;
language4.branding_nr = 5;
_languageBox.push(language4);
language5 = new languageItem();
language5.url1 = ("http://www.spielen.com/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language5.url2 = "http://www.spielen.com/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language5.language_nr = 5;
language5.branding_nr = 6;
_languageBox.push(language5);
language6 = new languageItem();
language6.url1 = ("http://www.minigry.pl/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language6.url2 = "http://www.minigry.pl/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language6.language_nr = 11;
language6.branding_nr = 14;
_languageBox.push(language6);
language7 = new languageItem();
language7.url1 = ("http://www.spel.eu/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language7.url2 = "http://www.spel.eu/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language7.language_nr = 10;
language7.branding_nr = 9;
_languageBox.push(language7);
language8 = new languageItem();
language8.url1 = ("http://www.giocaregratis.it/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language8.url2 = "http://www.giocaregratis.it/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language8.language_nr = 9;
language8.branding_nr = 8;
_languageBox.push(language8);
language9 = new languageItem();
language9.url1 = ("http://www.zapjuegos.com/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language9.url2 = "http://www.zapjuegos.com/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language9.language_nr = 6;
language9.branding_nr = 3;
_languageBox.push(language9);
language10 = new languageItem();
language10.url1 = ("http://www.clickjogos.com/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language10.url2 = "http://www.clickjogos.com/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language10.language_nr = 7;
language10.branding_nr = 7;
_languageBox.push(language10);
language11 = new languageItem();
language11.url1 = ("http://www.games.co.id/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language11.url2 = "http://www.games.co.id/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language11.language_nr = 14;
language11.branding_nr = 13;
_languageBox.push(language11);
language12 = new languageItem();
language12.url1 = ("http://www.flashgames.ru/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language12.url2 = "http://www.flashgames.ru/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language12.language_nr = 12;
language12.branding_nr = 11;
_languageBox.push(language12);
language13 = new languageItem();
language13.url1 = ("http://www.mygames.co.uk/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language13.url2 = "http://www.mygames.co.uk/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language13.language_nr = 2;
language13.branding_nr = 10;
_languageBox.push(language13);
language14 = new languageItem();
language14.url1 = ("http://www.game.co.in/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language14.url2 = "http://www.game.co.in/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language14.language_nr = 2;
language14.branding_nr = 12;
_languageBox.push(language14);
language15 = new languageItem();
language15.url1 = ("http://www.asoyun.com/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language15.url2 = "http://www.asoyun.com/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language15.language_nr = 13;
language15.branding_nr = 15;
_languageBox.push(language15);
language16 = new languageItem();
language16.url1 = ("http://www.game.com.my/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language16.url2 = "http://www.game.com.my/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language16.language_nr = 15;
language16.branding_nr = 16;
_languageBox.push(language16);
language17 = new languageItem();
language17.url1 = ("http://www.ojogos.pt/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language17.url2 = "http://www.ojogos.pt/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language17.language_nr = 8;
language17.branding_nr = 42;
_languageBox.push(language17);
language18 = new languageItem();
language18.url1 = ("http://www.laro.com.ph/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language18.url2 = "http://www.laro.com.ph/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language18.language_nr = 2;
language18.branding_nr = 43;
_languageBox.push(language18);
language19 = new languageItem();
language19.url1 = ("http://www.egames.jp/moregames/?utm_source=brandedgames_external&utm_medium=Blue_Knight&utm_campaign=" + hostingdomain);
language19.url2 = "http://www.egames.jp/moregames/?utm_source=brandedgames_internal&utm_medium=Blue_Knight";
language19.language_nr = 16;
language19.branding_nr = 44;
_languageBox.push(language19);
SpillGroupUrl.push("localhost");
SpillGroupUrl.push("www8.agame.com");
if ((((((languageVersion is Number)) || ((languageVersion is uint)))) || ((languageVersion is int)))){
_languageNum = (Number(languageVersion) - 1);
};
}
public static function get url1():String{
var _local1:int;
_local1 = 0;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url2);
};
_local1++;
};
return (_languageBox[_languageNum].url1);
}
public static function get branding_nr():String{
return (_languageBox[_languageNum].branding_nr);
}
}
}//package url
class languageItem {
public var url1:String;
public var url2:String;
public var branding_nr:int;
public var language_nr:int;
private function languageItem(){
}
}
Section 231
//Wall101 (walls.Wall101)
package walls {
import flash.display.*;
public class Wall101 extends MovieClip {
public var playRoll;
public var container3:Sprite;
public function Wall101(_arg1:Number=0, _arg2:Number=0){
container3 = new Sprite();
super();
x = _arg1;
y = _arg2;
addChild(container3);
}
}
}//package walls
Section 232
//Wall102 (walls.Wall102)
package walls {
import flash.display.*;
public class Wall102 extends MovieClip {
public function Wall102(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 233
//Wall103 (walls.Wall103)
package walls {
import flash.display.*;
public class Wall103 extends MovieClip {
public function Wall103(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 234
//Wall11 (walls.Wall11)
package walls {
import flash.display.*;
public class Wall11 extends MovieClip {
public function Wall11(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 235
//Wall112 (walls.Wall112)
package walls {
import flash.display.*;
public class Wall112 extends MovieClip {
public var sheadMC:MovieClip;
public var shead:MovieClip;
public function Wall112(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
shead = (this.getChildByName("sheadMC") as MovieClip);
}
}
}//package walls
Section 236
//Wall113 (walls.Wall113)
package walls {
import flash.display.*;
public class Wall113 extends MovieClip {
public function Wall113(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 237
//Wall12 (walls.Wall12)
package walls {
import flash.display.*;
public class Wall12 extends MovieClip {
public function Wall12(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 238
//Wall13 (walls.Wall13)
package walls {
import flash.display.*;
public class Wall13 extends MovieClip {
public function Wall13(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 239
//Wall20 (walls.Wall20)
package walls {
import flash.display.*;
public class Wall20 extends MovieClip {
public function Wall20(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 240
//Wall21 (walls.Wall21)
package walls {
import flash.display.*;
public class Wall21 extends MovieClip {
public function Wall21(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 241
//Wall22 (walls.Wall22)
package walls {
import flash.display.*;
public class Wall22 extends MovieClip {
public function Wall22(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 242
//Wall23 (walls.Wall23)
package walls {
import flash.display.*;
public class Wall23 extends MovieClip {
public function Wall23(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 243
//Wall31 (walls.Wall31)
package walls {
import flash.display.*;
public class Wall31 extends MovieClip {
public function Wall31(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 244
//Wall32 (walls.Wall32)
package walls {
import flash.display.*;
public class Wall32 extends MovieClip {
public function Wall32(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 245
//Wall33 (walls.Wall33)
package walls {
import flash.display.*;
public class Wall33 extends MovieClip {
public function Wall33(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 246
//Wall41 (walls.Wall41)
package walls {
import flash.display.*;
public class Wall41 extends MovieClip {
public function Wall41(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 247
//Wall42 (walls.Wall42)
package walls {
import flash.display.*;
public class Wall42 extends MovieClip {
public function Wall42(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 248
//Wall43 (walls.Wall43)
package walls {
import flash.display.*;
public class Wall43 extends MovieClip {
public function Wall43(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 249
//Wall51 (walls.Wall51)
package walls {
import flash.display.*;
public class Wall51 extends MovieClip {
public function Wall51(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 250
//Wall52 (walls.Wall52)
package walls {
import flash.display.*;
public class Wall52 extends MovieClip {
public function Wall52(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 251
//Wall53 (walls.Wall53)
package walls {
import flash.display.*;
public class Wall53 extends MovieClip {
public function Wall53(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 252
//Wall61 (walls.Wall61)
package walls {
import flash.display.*;
public class Wall61 extends MovieClip {
public function Wall61(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 253
//Wall62 (walls.Wall62)
package walls {
import flash.display.*;
public class Wall62 extends MovieClip {
public function Wall62(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 254
//Wall63 (walls.Wall63)
package walls {
import flash.display.*;
public class Wall63 extends MovieClip {
public function Wall63(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package walls
Section 255
//ZZ (walls.ZZ)
package walls {
import flash.display.*;
public class ZZ extends MovieClip {
public function ZZ(_arg1:Number=0, _arg2:Number=0){
addFrameScript(25, frame26, 74, frame75);
super();
x = _arg1;
y = _arg2;
}
function frame75(){
stop();
}
function frame26(){
stop();
}
}
}//package walls
Section 256
//ZZ2 (walls.ZZ2)
package walls {
import flash.display.*;
public class ZZ2 extends MovieClip {
public function ZZ2(_arg1:Number=0, _arg2:Number=0){
addFrameScript(19, frame20, 89, frame90);
super();
x = _arg1;
y = _arg2;
}
function frame90(){
stop();
}
function frame20(){
stop();
}
}
}//package walls
Section 257
//Aload (Aload)
package {
import flash.display.*;
public class Aload extends MovieClip {
public var loadings:MovieClip;
public var loadingMC:MovieClip;
public function Aload(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
initDis();
}
private function initDis():void{
loadings = (this.getChildByName("loadingMC") as MovieClip);
}
}
}//package
Section 258
//Ash (Ash)
package {
import flash.events.*;
import flash.display.*;
public class Ash extends MovieClip {
public var man:Boolean;// = false
private var dy:Number;
private var par:Sprite;
public var dx:Number;// = 0
public function Ash(_arg1:Number, _arg2:Number, _arg3:Sprite){
dx = 0;
man = false;
super();
addFrameScript(9, frame10);
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initAsh();
}
function frame10(){
stop();
}
private function thisaction(_arg1:Event):void{
x = (x + dx);
if (this.currentFrame == 10){
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
private function initAsh():void{
scaleX = (scaleY = ((Math.random() * 0.4) + 0.8));
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 259
//baomutong (baomutong)
package {
import flash.media.*;
public dynamic class baomutong extends Sound {
}
}//package
Section 260
//Bar (Bar)
package {
import flash.events.*;
import flash.display.*;
import bars.*;
import enemies.*;
import objects.*;
public class Bar extends Sprite {
public const hurt:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 1
public var obj1;
public var actionstate;// = 1
public var obj3;
public var lifexxx:Number;// = 1
public var obj2;
public var obj4;
public var hitBall:MovieClip;
public var number;
public var speed:Number;// = 10
private var master;
public var man:Boolean;// = true
public var roll:MovieClip;
public var dy:Number;// = 0
public var strong:Number;// = 1
private var par;
public var dx:Number;// = 0
public var defend:Number;
public function Bar(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
dx = 0;
dy = 0;
dxfix = 0;
life = 1;
lifexxx = 1;
strong = 1;
man = true;
speed = 10;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initChest();
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function thisaction(_arg1:Event):void{
changeDepth();
if (actionstate == 0){
};
if (actionstate == 1){
if ((((((((par.stagechange == true)) && ((master.x > 240)))) && ((master.dx > 0)))) && ((((((master.roll.currentFrame >= 2)) && ((master.roll.currentFrame < 12)))) || ((((master.roll.currentFrame >= master.jump)) && ((master.roll.currentFrame <= (master.jump + 3))))))))){
x = (x - master.dx);
};
x = (x + dx);
if (roll.currentFrame == (hurt + 1)){
dx = 0;
removeChild(hitBall);
};
if (roll.currentFrame == (hurt + 2)){
createObj(obj1);
createObj(obj2);
createObj(obj3);
createObj(obj4);
createbar(Bar8, 3.5, -3.8);
createbar(Bar3, -20.1, -24.1);
createbar(Bar7, -19.6, -15.6);
createbar(Bar4, 9.8, -10.7);
createbar(Bar2, -1.1, -24.5);
createbar(Bar0, -1.9, -41.5);
createbar(Bar1, -1.6, -3);
createbar(Bar5, -11.4, -25.9);
createbar(Bar6, -12.1, -5);
createbar(Bar10, 1, -21.7);
createbar(Bar11, -1.4, 3);
createbar(Bar9, 4.2, -36.5);
SoundsManager.playSound("baomutong");
};
if ((((x < -100)) || ((roll.currentFrame == (hurt + 3))))){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 40) + (Math.random() * 10));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
private function createbar(_arg1, _arg2, _arg3):void{
var _local4:*;
var _local5:*;
var _local6:*;
_local5 = (x + _arg2);
_local6 = (y + _arg3);
_local4 = new _arg1(_local5, _local6, par, this);
}
private function initChest():void{
hitBall = new HitMovie(0, -30, this);
addChild(hitBall);
hitBall.width = 40;
hitBall.height = 60;
roll = new BarRoll(0, 0);
addChild(roll);
master = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 261
//Birdman (Birdman)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Birdman extends Sprite {
public const hurt:uint = 75;
public const attack:uint = 25;
public const die:uint = 85;
public const walk:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 20
private var hurtnm;// = 0
public var actionstate;// = 1
public var lifexxx:Number;// = 20
public var hitBall:MovieClip;
private var fire;
private var hurtt;// = 0
public var number;
public var speed:Number;// = 10
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
private var weakpointtip:MovieClip;
public var roll:MovieClip;
public var dy:Number;// = 0
public var isboss:Boolean;// = false
private var par;
public var strong:Number;// = 4
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Birdman(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hurtnm = 0;
hurtt = 0;
actionstate = 1;
isboss = false;
dx = 0;
dy = 0;
dxfix = 0;
life = 20;
lifexxx = 20;
strong = 4;
man = true;
speed = 10;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initBird();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
if (isboss == true){
_local2 = int(((life / lifexxx) * 100));
par.bossstates.lifeMC.gotoAndStop(_local2);
};
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
roll.y = (roll.y + roll.dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 18)){
_local3 = ((x + roll.x) - (90 * scaleX));
_local4 = (y - 250);
fist = new Feather(_local3, _local4, par);
par.enemys.push(fist);
fist.number = fist;
fist.yfix = y;
fist.dx = ((-20 - (Math.random() * 8)) * scaleX);
fist.dy = (6 + (Math.random() * 3));
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.xxscale = scaleX;
_local3 = ((x + roll.x) - (70 * scaleX));
_local4 = (y - 220);
fist = new Feather(_local3, _local4, par);
par.enemys.push(fist);
fist.number = fist;
fist.yfix = y;
fist.dx = ((-12 - (Math.random() * 5)) * scaleX);
fist.dy = (12 + (Math.random() * 5));
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.xxscale = scaleX;
_local3 = ((x + roll.x) - (54 * scaleX));
_local4 = (y - 196);
fist = new Feather(_local3, _local4, par);
par.enemys.push(fist);
fist.number = fist;
fist.yfix = y;
fist.dx = ((-6 - (Math.random() * 3)) * scaleX);
fist.dy = (20 + (Math.random() * 8));
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.xxscale = scaleX;
SoundsManager.playSound("niaorenchuzhao");
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 51);
if (_local5 < 12){
dx = (5 * scaleX);
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 12)) && ((_local5 < 17)))){
if (t.y < y){
dy = -3;
};
if (t.y > y){
dy = 3;
};
roll.gotoAndPlay(walk);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 51);
if (_local6 < 12){
dx = (-5 * scaleX);
};
if ((((_local6 >= 12)) && ((_local6 < 17)))){
if (t.y < y){
dy = -3;
};
if (t.y > y){
dy = 3;
};
};
if (_local6 > 50){
stopAction();
};
};
if ((((((((Math.abs((t.x - x)) < 400)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))) && ((t.roll.currentFrame < t.hurt2)))){
_local7 = (Math.random() * 50);
if (_local7 < 3){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt + 1)){
SoundsManager.playSound("niaorenzhongzhao");
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (die + 7)){
dx = 0;
};
if (x < -140){
x = -138;
dx = 0;
dy = 0;
};
if (x > 740){
x = 738;
dx = 0;
dy = 0;
};
if (y < 274){
y = 274;
dx = 0;
dy = 0;
};
if (y > 380){
y = 380;
dx = 0;
dy = 0;
};
if ((((roll.currentFrame < die)) && ((life <= 0)))){
dx = 0;
roll.gotoAndPlay(die);
SoundsManager.playSound("niaorensiwang");
};
if (roll.currentFrame == (die + 1)){
removeChild(hitBall);
};
if (roll.currentFrame == (die + 7)){
roll.dy = 20;
};
if ((((roll.y >= 0)) && ((roll.currentFrame == 93)))){
roll.y = 0;
roll.dy = 0;
roll.gotoAndPlay(94);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
_local8 = (Math.random() * 100);
if (_local8 < 70){
createObj(Gem1);
};
if ((((_local8 >= 70)) && ((_local8 < 92)))){
createObj(Gem2);
};
if (_local8 >= 92){
createObj(Cherry);
};
removeChild(rollshadow);
};
if (roll.currentFrame == 170){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
private function initBird():void{
hitBall = new HitMovie(-10, -280, this);
addChild(hitBall);
hitBall.width = 80;
hitBall.height = 180;
rollshadow = new Shadow(10, 0);
addChild(rollshadow);
rollshadow.scaleX = 1.2;
roll = new BirdmanRoll(0, -190);
roll.scaleX = (roll.scaleY = 1.2);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 262
//bluenightover (bluenightover)
package {
import flash.media.*;
public dynamic class bluenightover extends Sound {
}
}//package
Section 263
//boss (boss)
package {
import flash.media.*;
public dynamic class boss extends Sound {
}
}//package
Section 264
//castle (castle)
package {
import flash.media.*;
public dynamic class castle extends Sound {
}
}//package
Section 265
//cemetery (cemetery)
package {
import flash.media.*;
public dynamic class cemetery extends Sound {
}
}//package
Section 266
//Chest (Chest)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Chest extends Sprite {
public const hurt:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 1
public var obj1;
public var actionstate;// = 1
public var lifexxx:Number;// = 1
public var hitBall:MovieClip;
public var number;
public var speed:Number;// = 10
private var master;
public var man:Boolean;// = true
public var roll:MovieClip;
public var dy:Number;// = 0
public var strong:Number;// = 1
private var par;
public var dx:Number;// = 0
public var defend:Number;
public function Chest(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
dx = 0;
dy = 0;
dxfix = 0;
life = 1;
lifexxx = 1;
strong = 1;
man = true;
speed = 10;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initChest();
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function thisaction(_arg1:Event):void{
changeDepth();
if (actionstate == 0){
};
if (actionstate == 1){
if ((((((((par.stagechange == true)) && ((master.x > 240)))) && ((master.dx > 0)))) && ((((((master.roll.currentFrame >= 2)) && ((master.roll.currentFrame < 12)))) || ((((master.roll.currentFrame >= master.jump)) && ((master.roll.currentFrame <= (master.jump + 3))))))))){
x = (x - master.dx);
};
x = (x + dx);
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (roll.currentFrame == (hurt + 1)){
removeChild(hitBall);
SoundsManager.playSound("kaixiang");
};
if (roll.currentFrame == (hurt + 6)){
createObj(obj1);
};
if ((((roll.currentFrame == 60)) || ((x < -100)))){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 40) + (Math.random() * 10));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
private function initChest():void{
hitBall = new HitMovie(0, -20, this);
addChild(hitBall);
hitBall.width = 60;
hitBall.height = 40;
roll = new ChestRoll(0, 0);
addChild(roll);
master = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 267
//chinengliang (chinengliang)
package {
import flash.media.*;
public dynamic class chinengliang extends Sound {
}
}//package
Section 268
//chixue (chixue)
package {
import flash.media.*;
public dynamic class chixue extends Sound {
}
}//package
Section 269
//chongshenzhiguang (chongshenzhiguang)
package {
import flash.media.*;
public dynamic class chongshenzhiguang extends Sound {
}
}//package
Section 270
//coinsound (coinsound)
package {
import flash.media.*;
public dynamic class coinsound extends Sound {
}
}//package
Section 271
//dabin (dabin)
package {
import flash.media.*;
public dynamic class dabin extends Sound {
}
}//package
Section 272
//dadao (dadao)
package {
import flash.media.*;
public dynamic class dadao extends Sound {
}
}//package
Section 273
//dahuo (dahuo)
package {
import flash.media.*;
public dynamic class dahuo extends Sound {
}
}//package
Section 274
//Deathhead1 (Deathhead1)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Deathhead1 extends Sprite {
public const hurt:uint = 75;
public const attack:uint = 35;
public const die:uint = 85;
public const strong:Number = 4;
public const walk:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 90
public var actionstate;// = 1
public var hitBall:MovieClip;
private var fire;
public var number;
public var speed:Number;// = 20
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
private var par;
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Deathhead1(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
dx = 0;
dy = 0;
dxfix = 0;
life = 90;
man = true;
speed = 20;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initdeath1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if ((((roll.currentFrame >= 15)) && ((roll.currentFrame <= 19)))){
x = (x - dx);
y = (y - dy);
};
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if (roll.currentFrame == (hurt + 3)){
if (life <= 0){
dx = 0;
dy = 0;
dxfix = 0;
roll.gotoAndPlay(die);
createObj(Crystel);
_local2 = (Math.random() * 100);
if (_local2 < 70){
createObj(GoldCoin);
};
if ((((_local2 >= 70)) && ((_local2 < 92)))){
createObj(Gem1);
};
if (_local2 >= 92){
createObj(Apple);
};
};
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 8)){
_local3 = ((x + roll.x) - (70 * scaleX));
_local4 = ((y + roll.y) - 44);
fist = new Fist(_local3, _local4, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.8);
fist.xxscale = scaleX;
fist.SAttack = 20;
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 201);
if (_local5 < 3){
dx = (-4 * scaleX);
dy = 0;
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 4)) && ((_local5 < 5)))){
if (t.y < y){
dy = -2.5;
dx = 0;
};
if (t.y > y){
dy = 2.5;
dx = 0;
};
roll.gotoAndPlay(walk);
};
if (_local5 > 200){
dx = 0;
dy = 0;
roll.gotoAndStop(1);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 100);
if (_local6 < 3){
dx = (-4 * scaleX);
dy = 0;
};
if ((((_local6 >= 4)) && ((_local6 < 5)))){
if (t.y < y){
dy = -2.5;
dx = 0;
};
if (t.y > y){
dy = 2.5;
dx = 0;
};
};
};
if ((((((Math.abs((t.x - x)) < 140)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 4);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 4);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (x < -100){
x = -100;
stopAction();
};
if (x > 700){
x = 700;
stopAction();
};
if (y < 274){
y = 274;
stopAction();
};
if (y > 380){
y = 380;
stopAction();
};
if (roll.currentFrame == (die + 1)){
SoundsManager.playSound("kulousanjia");
removeChild(rollshadow);
};
if (roll.currentFrame == 198){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
private function initdeath1():void{
hitBall = new HitMovie(0, -50, this);
addChild(hitBall);
hitBall.width = 110;
hitBall.height = 100;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
roll = new Deathhead1Roll(0, 0);
addChild(roll);
roll.scaleX = (roll.scaleY = 1.1);
roll.x = (roll.y = 0);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 275
//Deathhead2 (Deathhead2)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Deathhead2 extends Sprite {
public const hurt:uint = 72;
public const attack:uint = 28;
public const die:uint = 82;
public const strong:Number = 4;
public const walk:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 50
public var actionstate;// = 1
public var hitBall:MovieClip;
private var fire;
public var number;
public var speed:Number;// = 20
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
private var par;
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Deathhead2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
dx = 0;
dy = 0;
dxfix = 0;
life = 50;
man = true;
speed = 20;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initdeath1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if (roll.currentFrame == (hurt + 3)){
if (life <= 0){
dx = 0;
dy = 0;
dxfix = 0;
roll.gotoAndPlay(die);
createObj(Crystel);
_local2 = (Math.random() * 100);
if (_local2 < 70){
createObj(GoldCoin);
};
if ((((_local2 >= 70)) && ((_local2 < 92)))){
createObj(Gem1);
};
if (_local2 >= 92){
createObj(Apple);
};
};
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 29)){
_local3 = ((x + roll.x) - (60 * scaleX));
_local4 = ((y + roll.y) - 80);
fist = new Arrow(_local3, _local4, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.dx = (-40 * scaleX);
fist.xxscale = scaleX;
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 201);
if (_local5 < 3){
dx = (-4 * scaleX);
dy = 0;
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 4)) && ((_local5 < 5)))){
if (t.y < y){
dy = -2.5;
dx = 0;
};
if (t.y > y){
dy = 2.5;
dx = 0;
};
roll.gotoAndPlay(walk);
};
if (_local5 > 200){
dx = 0;
dy = 0;
roll.gotoAndStop(1);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 100);
if (_local6 < 3){
dx = (-4 * scaleX);
dy = 0;
};
if ((((_local6 >= 4)) && ((_local6 < 5)))){
if (t.y < y){
dy = -2.5;
dx = 0;
};
if (t.y > y){
dy = 2.5;
dx = 0;
};
};
};
if ((((((((((((Math.abs((t.x - x)) < 550)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))) && ((x < 600)))) && ((x > 0)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 4);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 4);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (x < -100){
x = -100;
stopAction();
};
if (x > 700){
x = 700;
stopAction();
};
if (y < 274){
y = 274;
stopAction();
};
if (y > 380){
y = 380;
stopAction();
};
if (roll.currentFrame == (die + 1)){
SoundsManager.playSound("kulousanjia");
removeChild(rollshadow);
};
if (roll.currentFrame == 195){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
private function initdeath1():void{
hitBall = new HitMovie(0, -50, this);
addChild(hitBall);
hitBall.width = 110;
hitBall.height = 100;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
roll = new Deathhead2Roll(0, 0);
addChild(roll);
roll.scaleX = (roll.scaleY = 1.1);
roll.x = (roll.y = 0);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 276
//dedaochongshen (dedaochongshen)
package {
import flash.media.*;
public dynamic class dedaochongshen extends Sound {
}
}//package
Section 277
//Dialog (Dialog)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Dialog extends MovieClip {
private var myTextBox:TextField;
private var textchange:Boolean;// = false
public var man:Boolean;// = false
public var tc:Number;// = 0
public var tt:Number;// = 0
private var par;
public var text3:String;
public var text4:String;
public var textcontent:String;
public var textnm;
public var text2:String;
public var text1:String;
public var canpass;// = 1
public var myText:String;
public function Dialog(_arg1:Number, _arg2:Number, _arg3, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8){
myTextBox = new TextField();
textchange = false;
man = false;
tt = 0;
tc = 0;
canpass = 1;
super();
addFrameScript(9, frame10, 15, frame16);
_arg8.container3.addChild(this);
par = _arg8;
x = _arg1;
y = _arg2;
textnm = _arg3;
text4 = _arg4;
text3 = _arg5;
text2 = _arg6;
text1 = _arg7;
initdialog();
}
public function del():void{
this.stop();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, action1);
par.container3.removeChild(this);
par.stagenm++;
}
private function thisaction(_arg1:Event):void{
if (tt == 0){
textchange = false;
myTextBox.text = "";
if (textnm == 4){
textcontent = text4;
};
if (textnm == 3){
textcontent = text3;
};
if (textnm == 2){
textcontent = text2;
};
if (textnm == 1){
textcontent = text1;
};
if (textnm == 0){
this.gotoAndPlay(11);
};
textnm--;
tc = 0;
};
if ((((tt > 0)) && ((this.currentFrame == 10)))){
if (tc < textcontent.length){
tc++;
myTextBox.text = textcontent.substring(0, tc);
};
if (tc == textcontent.length){
textchange = true;
};
};
tt++;
tt = (tt % 180);
if (this.currentFrame == 16){
del();
};
}
function frame16(){
stop();
}
private function initdialog():void{
var _local1:TextFormat;
addChild(myTextBox);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.type = TextFieldType.DYNAMIC;
myTextBox.width = 210;
myTextBox.height = 36;
myTextBox.x = -126;
myTextBox.y = -64;
_local1 = new TextFormat();
_local1.font = "_sans";
_local1.color = 6047011;
_local1.size = 12;
_local1.bold = true;
myTextBox.defaultTextFormat = _local1;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, action1, false, 0, true);
}
function frame10(){
stop();
}
private function action1(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 74){
if ((((textchange == true)) && ((canpass == 1)))){
tt = 0;
};
};
}
}
}//package
Section 278
//Dialog2 (Dialog2)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Dialog2 extends MovieClip {
private var myTextBox:TextField;
private var textchange:Boolean;// = false
public var man:Boolean;// = false
public var tc:Number;// = 0
public var tt:Number;// = 0
private var par;
public var text3:String;
public var text4:String;
public var textcontent:String;
public var textnm;
public var text2:String;
public var text1:String;
public var canpass;// = 1
public var myText:String;
public function Dialog2(_arg1:Number, _arg2:Number, _arg3, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8){
myTextBox = new TextField();
textchange = false;
man = false;
tt = 0;
tc = 0;
canpass = 1;
super();
addFrameScript(9, frame10, 15, frame16);
_arg8.container3.addChild(this);
par = _arg8;
x = _arg1;
y = _arg2;
textnm = _arg3;
text4 = _arg4;
text3 = _arg5;
text2 = _arg6;
text1 = _arg7;
initdialog();
}
public function del():void{
this.stop();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, action1);
par.container3.removeChild(this);
par.stagenm++;
}
private function thisaction(_arg1:Event):void{
if (tt == 0){
textchange = false;
myTextBox.text = "";
if (textnm == 4){
textcontent = text4;
};
if (textnm == 3){
textcontent = text3;
};
if (textnm == 2){
textcontent = text2;
};
if (textnm == 1){
textcontent = text1;
};
if (textnm == 0){
this.gotoAndPlay(11);
};
textnm--;
tc = 0;
};
if ((((tt > 0)) && ((this.currentFrame == 10)))){
if (tc < textcontent.length){
tc++;
myTextBox.text = textcontent.substring(0, tc);
};
if (tc == textcontent.length){
textchange = true;
};
};
tt++;
tt = (tt % 180);
if (this.currentFrame == 16){
del();
};
}
function frame16(){
stop();
}
private function initdialog():void{
var _local1:TextFormat;
addChild(myTextBox);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.type = TextFieldType.DYNAMIC;
myTextBox.width = 210;
myTextBox.height = 36;
myTextBox.x = -70;
myTextBox.y = -64;
_local1 = new TextFormat();
_local1.font = "_sans";
_local1.color = 6047011;
_local1.size = 12;
_local1.bold = true;
myTextBox.defaultTextFormat = _local1;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, action1, false, 0, true);
}
function frame10(){
stop();
}
private function action1(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 74)) && ((canpass == 1)))){
if (textchange == true){
tt = 0;
};
};
}
}
}//package
Section 279
//Dialog3 (Dialog3)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Dialog3 extends MovieClip {
private var myTextBox:TextField;
private var textchange:Boolean;// = false
public var man:Boolean;// = false
public var tc:Number;// = 0
public var tt:Number;// = 0
private var par;
public var text3:String;
public var text4:String;
public var textcontent:String;
public var textnm;
public var text2:String;
public var text1:String;
public var canpass;// = 1
public var myText:String;
public function Dialog3(_arg1:Number, _arg2:Number, _arg3, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8){
myTextBox = new TextField();
textchange = false;
man = false;
tt = 0;
tc = 0;
canpass = 1;
super();
addFrameScript(9, frame10, 15, frame16);
_arg8.container3.addChild(this);
par = _arg8;
x = _arg1;
y = _arg2;
textnm = _arg3;
text4 = _arg4;
text3 = _arg5;
text2 = _arg6;
text1 = _arg7;
initdialog();
}
public function del():void{
this.stop();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, action1);
par.container3.removeChild(this);
par.stagenm++;
}
private function thisaction(_arg1:Event):void{
if (tt == 0){
textchange = false;
myTextBox.text = "";
if (textnm == 4){
textcontent = text4;
};
if (textnm == 3){
textcontent = text3;
};
if (textnm == 2){
textcontent = text2;
};
if (textnm == 1){
textcontent = text1;
};
if (textnm == 0){
this.gotoAndPlay(11);
};
textnm--;
tc = 0;
};
if ((((tt > 0)) && ((this.currentFrame == 10)))){
if (tc < textcontent.length){
tc++;
myTextBox.text = textcontent.substring(0, tc);
};
if (tc == textcontent.length){
textchange = true;
};
};
tt++;
tt = (tt % 180);
if (this.currentFrame == 16){
del();
};
}
function frame16(){
stop();
}
private function initdialog():void{
var _local1:TextFormat;
addChild(myTextBox);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.type = TextFieldType.DYNAMIC;
myTextBox.width = 97;
myTextBox.height = 36;
myTextBox.x = -30;
myTextBox.y = -53;
_local1 = new TextFormat();
_local1.font = "_sans";
_local1.color = 6047011;
_local1.size = 12;
_local1.bold = true;
myTextBox.defaultTextFormat = _local1;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, action1, false, 0, true);
}
function frame10(){
stop();
}
private function action1(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 74)) && ((canpass == 1)))){
if (textchange == true){
tt = 0;
};
};
}
}
}//package
Section 280
//Dialog4 (Dialog4)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Dialog4 extends MovieClip {
private var myTextBox:TextField;
private var textchange:Boolean;// = false
public var man:Boolean;// = false
public var tc:Number;// = 0
public var tt:Number;// = 0
private var par;
public var text3:String;
public var text4:String;
public var textcontent:String;
public var textnm;
public var text2:String;
public var text1:String;
public var canpass;// = 1
public var myText:String;
public function Dialog4(_arg1:Number, _arg2:Number, _arg3, _arg4:String, _arg5:String, _arg6:String, _arg7:String, _arg8){
myTextBox = new TextField();
textchange = false;
man = false;
tt = 0;
tc = 0;
canpass = 1;
super();
addFrameScript(9, frame10, 15, frame16);
_arg8.container3.addChild(this);
par = _arg8;
x = _arg1;
y = _arg2;
textnm = _arg3;
text4 = _arg4;
text3 = _arg5;
text2 = _arg6;
text1 = _arg7;
initdialog();
}
public function del():void{
this.stop();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, action1);
par.container3.removeChild(this);
par.stagenm++;
}
private function thisaction(_arg1:Event):void{
if (tt == 0){
textchange = false;
myTextBox.text = "";
if (textnm == 4){
textcontent = text4;
};
if (textnm == 3){
textcontent = text3;
};
if (textnm == 2){
textcontent = text2;
};
if (textnm == 1){
textcontent = text1;
};
if (textnm == 0){
this.gotoAndPlay(11);
};
textnm--;
tc = 0;
};
if ((((tt > 0)) && ((this.currentFrame == 10)))){
if (tc < textcontent.length){
tc++;
myTextBox.text = textcontent.substring(0, tc);
};
if (tc == textcontent.length){
textchange = true;
};
};
tt++;
tt = (tt % 180);
if (this.currentFrame == 16){
del();
};
}
function frame16(){
stop();
}
private function initdialog():void{
var _local1:TextFormat;
addChild(myTextBox);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.type = TextFieldType.DYNAMIC;
myTextBox.width = 97;
myTextBox.height = 36;
myTextBox.x = -68;
myTextBox.y = -53;
_local1 = new TextFormat();
_local1.font = "_sans";
_local1.color = 6047011;
_local1.size = 12;
_local1.bold = true;
myTextBox.defaultTextFormat = _local1;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, action1, false, 0, true);
}
function frame10(){
stop();
}
private function action1(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 74)) && ((canpass == 1)))){
if (textchange == true){
tt = 0;
};
};
}
}
}//package
Section 281
//Dragonknight (Dragonknight)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Dragonknight extends Sprite {
public const hurt2:uint = 265;
public const attack4:uint = 150;
public const attack:uint = 56;
public const die:uint = 304;
public const walk:uint = 2;
public const changestate:uint = 423;
public const attack3:uint = 115;
public const attack2:uint = 80;
public var dxfix:Number;// = 0
public var speed:Number;// = 10
public var life:Number;// = 2200
private var hurtnm;// = 0
public var actionstate;// = 1
public var lifexxx:Number;// = 2200
private var ashs2;
public var hitBall:MovieClip;
private var fire;
public var hurt;// = 245
public var fireattacknm;// = 30
private var hurtt;// = 0
private var timer;// = 0
public var number:Number;
public var crawtop:MovieClip;
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
private var tx;// = 0
public var roll:MovieClip;
public var isboss:Boolean;// = false
private var par;
public var strong:Number;// = 8
public var dx:Number;// = 0
public var dy:Number;// = 0
private var ashs;
public var defend:Number;
private var rolldx;// = 0
private var rolldy;// = 0
public var crawAttack;// = 45
private var rollshadow:MovieClip;
public function Dragonknight(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hurtnm = 0;
hurtt = 0;
timer = 0;
rolldx = 0;
rolldy = 0;
tx = 0;
actionstate = 1;
isboss = false;
dx = 0;
dy = 0;
dxfix = 0;
life = 2200;
lifexxx = 2200;
strong = 8;
man = true;
speed = 10;
hurt = 245;
fireattacknm = 30;
crawAttack = 45;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initDragon();
}
public function del():void{
roll.gotoAndStop(1);
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.container3.removeChild(this);
if ((((isboss == true)) && ((actionstate == 0)))){
par.container5.removeChild(par.bossstates);
};
}
private function initDragon():void{
hitBall = new HitMovie(0, -200, this);
addChild(hitBall);
hitBall.width = 200;
hitBall.height = 200;
rollshadow = new Shadow(10, 0);
addChild(rollshadow);
rollshadow.scaleX = 1.6;
crawtop = new HitMovie(0, -40, this);
addChild(crawtop);
crawtop.width = 100;
crawtop.height = 60;
roll = new DragonknightRoll(0, -160);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:uint;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
hitBall.width = 200;
hitBall.height = 200;
hitBall.x = 0;
hitBall.y = (roll.y - 100);
_local2 = (Math.random() * 51);
_local3 = (Math.random() * 101);
_local4 = (Math.random() * 100);
_local5 = ((x + roll.x) - (90 * scaleX));
_local6 = (y - 250);
if (actionstate == 0){
x = (x + dx);
y = (y + dy);
roll.y = (roll.y + roll.dy);
if (roll.currentFrame == (attack2 + 11)){
tx = (x - (200 * scaleX));
};
if ((((roll.currentFrame > (attack2 + 11))) && ((roll.currentFrame < (attack2 + 33))))){
if (timer == 0){
x = (x + (2 * scaleX));
_local5 = ((((-90.4 + (Math.random() * 5)) * scaleX) + roll.x) + x);
_local6 = (((-26.2 + (Math.random() * 5)) + roll.y) + y);
fist = new Fireball3(_local5, _local6, par);
par.enemys.push(fist);
fist.number = fist;
fist.yfix = y;
fist.dx = (((((tx - x) - (90 * scaleX)) / 12) + 15) - (Math.random() * 30));
fist.dy = ((((y - roll.y) / 12) + 1) - (Math.random() * 2));
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.xxscale = scaleX;
};
timer++;
timer = (timer % 2);
};
if (roll.currentFrame == (attack2 + 33)){
timer = 0;
roll.gotoAndPlay(2);
};
if (roll.x >= 900){
roll.gotoAndStop(414);
actionstate = 2;
};
};
if (actionstate == 1){
if (isboss == true){
_local8 = int(((life / lifexxx) * 100));
par.bossstates.lifeMC.gotoAndStop(_local8);
};
if ((((((((((((((((((((roll.currentFrame == 2)) || ((roll.currentFrame == 80)))) || ((roll.currentFrame == 93)))) || ((roll.currentFrame == 103)))) || ((roll.currentFrame == 150)))) || ((roll.currentFrame == 187)))) || ((roll.currentFrame == 203)))) || ((roll.currentFrame == 424)))) || ((roll.currentFrame == 440)))) || ((roll.currentFrame == 456)))){
if (t.roll.currentFrame < t.hurt2){
SoundsManager.playSound("longchibang");
};
};
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (roll.y < 0){
roll.y = (roll.y + roll.dy);
};
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack2 + 11)){
tx = t.x;
SoundsManager.playSound("longjiao");
};
if ((((roll.currentFrame > (attack2 + 11))) && ((roll.currentFrame < (attack2 + 33))))){
if (timer == 0){
x = (x + (2 * scaleX));
_local5 = ((((-86.4 + (Math.random() * 5)) * scaleX) + roll.x) + x);
_local6 = (((-72.2 + (Math.random() * 5)) + roll.y) + y);
fist = new Fireball2(_local5, _local6, par);
par.enemys.push(fist);
fist.number = fist;
fist.yfix = y;
fist.dx = (((((tx - x) - (90 * scaleX)) / 12) + 15) - (Math.random() * 30));
fist.dy = ((((y - roll.y) / 12) + 1) - (Math.random() * 2));
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.xxscale = scaleX;
fist.SAttack = fireattacknm;
};
timer++;
timer = (timer % 2);
};
if ((((roll.currentFrame == (attack2 + 33))) && ((t.roll.currentFrame < t.hurt2)))){
timer = 0;
_local9 = (Math.random() * 5);
if (_local9 < 4){
roll.gotoAndStop(1);
};
if (_local9 >= 4){
roll.gotoAndPlay(attack4);
};
};
if ((((roll.currentFrame >= attack4)) && ((roll.currentFrame < (attack4 + 14))))){
y = (y + ((t.y - y) / 12));
roll.y = (roll.y - 35);
};
if (roll.currentFrame == (attack4 + 14)){
if (scaleX == 1){
x = 700;
};
if (scaleX == -1){
x = -100;
};
y = t.y;
};
if (roll.currentFrame == (attack4 + 15)){
rolldx = ((t.x - x) / 10);
rolldy = (-(roll.y) / 12);
SoundsManager.playSound("longhuaguo");
};
if ((((roll.currentFrame >= (attack4 + 19))) && ((roll.currentFrame < (attack4 + 30))))){
x = (x + rolldx);
roll.y = (roll.y + rolldy);
_local5 = ((x + (Math.random() * 10)) + (60 * scaleX));
_local6 = (y + (Math.random() * 10));
ashs = new Ash(_local5, _local6, par.container3);
par.container3.setChildIndex(ashs, (par.container3.getChildIndex(this) + 1));
_local5 = ((x + (Math.random() * 10)) + (60 * scaleX));
_local6 = (y + (Math.random() * 10));
ashs2 = new Ash(_local5, _local6, par.container3);
par.container3.setChildIndex(ashs2, (par.container3.getChildIndex(this) + 1));
if (((crawtop.hitTestObject(t.roll)) && ((Math.abs((t.y - y)) < 20)))){
_local5 = (t.x + (50 * t.scaleX));
_local6 = ((t.y - 64) + t.roll.y);
if (t.roll.currentFrame < t.defend){
_local11 = 0;
while (_local11 < 25) {
_local10 = new FireStar(_local5, _local6, par.container3);
par.container3.setChildIndex(_local10, (par.container3.getChildIndex(this) + 1));
_local11++;
};
t.roll.gotoAndPlay(t.hurt2);
t.scaleX = scaleX;
t.dxfix = (-20 * t.scaleX);
t.roll.dy = (t.roll.dy - 24.2);
t.life = (t.life - (crawAttack - t.Sdefend));
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local11 = 0;
while (_local11 < 25) {
_local10 = new FireStar(_local5, _local6, par.container3);
par.container3.setChildIndex(_local10, (par.container3.getChildIndex(this) + 1));
_local11++;
};
t.scaleX = scaleX;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-26 * t.scaleX);
SoundsManager.playSound("dun");
};
};
};
if (roll.currentFrame == (attack4 + 30)){
rolldx = 0;
rolldy = ((-160 - roll.y) / 38);
};
if ((((roll.currentFrame >= (attack4 + 30))) && ((roll.currentFrame < (attack4 + 68))))){
roll.y = (roll.y + rolldy);
};
if (roll.currentFrame == (attack4 + 68)){
roll.y = -160;
rolldy = 0;
roll.gotoAndStop(1);
if (t.x < x){
scaleX = 1;
};
if (t.x > x){
scaleX = -1;
};
dx = 0;
dy = 0;
};
if (roll.currentFrame == 1){
_local2 = (Math.random() * 51);
if (_local2 < 12){
dx = (6 * scaleX);
roll.gotoAndPlay(2);
};
if ((((_local2 >= 12)) && ((_local2 < 17)))){
if (t.y < y){
dy = -4;
};
if (t.y > y){
dy = 4;
};
roll.gotoAndPlay(2);
};
};
if ((((roll.currentFrame >= 2)) && ((roll.currentFrame < attack)))){
_local3 = (Math.random() * 51);
if (_local3 < 12){
dx = (-6 * scaleX);
};
if ((((_local3 >= 12)) && ((_local3 < 17)))){
if (t.y < y){
dy = -4;
};
if (t.y > y){
dy = 4;
};
};
if ((((((_local3 <= 50)) && ((_local3 > 45)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack4);
};
};
if ((((((((((Math.abs((t.x - x)) < 600)) && ((Math.abs((t.x - x)) > 200)))) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack2);
};
if ((((((((Math.abs((t.x - x)) <= 200)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
_local12 = (Math.random() * 100);
if (_local12 < 88){
roll.gotoAndPlay(attack2);
};
if (_local12 >= 88){
roll.gotoAndPlay(changestate);
};
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (roll.currentFrame == (hurt + 8)){
dx = 0;
dy = 0;
if (t.x < x){
scaleX = 1;
};
if (t.x > x){
scaleX = -1;
};
_local13 = (Math.random() * 100);
if ((((_local13 < 50)) && ((t.roll.currentFrame < t.hurt2)))){
roll.gotoAndPlay(attack2);
};
if ((((((_local13 >= 50)) && ((_local13 <= 92)))) && ((t.roll.currentFrame < t.hurt2)))){
roll.gotoAndPlay(attack4);
};
if (_local13 > 92){
roll.gotoAndPlay(changestate);
};
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (die + 1)){
removeChild(hitBall);
};
if (roll.currentFrame == (die + 3)){
_local5 = (x + (53.6 * scaleX));
_local6 = y;
_local7 = (roll.y - 217.7);
par.createboss2(_local5, _local6, _local7);
};
if (roll.currentFrame == (die + 7)){
dx = 0;
roll.dy = 10;
};
if ((((roll.currentFrame > changestate)) && ((roll.currentFrame < (changestate + 47))))){
roll.y = (roll.y - (roll.y / 20));
_local5 = (x + (((Math.random() * 100) + 60) * scaleX));
_local6 = ((y + (Math.random() * 100)) - 50);
ashs = new Ash(_local5, _local6, par.container3);
ashs.dx = (((-(Math.random()) * 20) - 20) * scaleX);
par.container3.setChildIndex(ashs, (par.container3.getChildIndex(this) + 1));
_local5 = (x + (((Math.random() * 100) + 60) * scaleX));
_local6 = ((y + (Math.random() * 100)) - 50);
ashs2 = new Ash(_local5, _local6, par.container3);
ashs2.dx = (((-(Math.random()) * 20) - 20) * scaleX);
par.container3.setChildIndex(ashs2, (par.container3.getChildIndex(this) + 1));
t.x = (t.x - (12 * scaleX));
};
if (roll.currentFrame == (changestate + 47)){
actionstate = 2;
hurt = 235;
timer = 0;
dx = 0;
dy = 0;
roll.y = -40;
roll.gotoAndStop(20);
};
if (x < -140){
x = -138;
dx = 0;
dy = 0;
};
if (x > 740){
x = 738;
dx = 0;
dy = 0;
};
if (y < 274){
y = 274;
dx = 0;
dy = 0;
};
if (y > 380){
y = 380;
dx = 0;
dy = 0;
};
if ((((roll.currentFrame < die)) && ((life <= 0)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(die);
SoundsManager.playSound("longsiwang");
};
if ((((roll.y >= 0)) && ((roll.currentFrame == 323)))){
roll.y = 0;
roll.dy = 0;
roll.gotoAndPlay(324);
createObj(Gem6);
createObj(Gem5);
createObj(Gem4);
createObj(Gem3);
createObj(Gem2);
_local4 = (Math.random() * 100);
if (_local4 < 70){
createObj(Gem1);
};
if (_local4 >= 70){
createObj(Lifewater);
};
removeChild(rollshadow);
};
if (roll.currentFrame == 414){
actionstate = 2;
};
};
if (actionstate == 2){
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
roll.y = (roll.y + roll.dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
hurtt++;
if (hurtt == 30){
hurtnm = 0;
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if ((((roll.currentFrame >= (attack + 3))) && ((roll.currentFrame < (attack + 15))))){
if (timer == 0){
_local5 = ((x + roll.x) - (118 * scaleX));
_local6 = ((y + roll.y) - 58);
fist = new Fireball1(_local5, _local6, par);
par.enemys.push(fist);
fist.number = fist;
fist.yfix = y;
fist.dx = (-30 * scaleX);
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.xxscale = scaleX;
};
timer++;
timer = (timer % 2);
};
if (roll.currentFrame == (attack + 26)){
timer = 0;
};
if (roll.currentFrame == (attack3 + 13)){
_local5 = ((x + roll.x) - (91 * scaleX));
_local6 = ((y + roll.y) - 52);
fist = new Fist(_local5, _local6, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 1.3);
fist.xxscale = scaleX;
};
if (roll.currentFrame == (attack3 + 30)){
_local14 = (Math.random() * 10);
if (_local14 < 9){
roll.gotoAndPlay(attack);
SoundsManager.playSound("longjiao");
};
if (_local14 >= 9){
roll.gotoAndPlay(changestate);
};
};
if (roll.currentFrame == 20){
roll.y = 0;
_local2 = (Math.random() * 51);
if (_local2 < 12){
dx = (6 * scaleX);
roll.gotoAndPlay(25);
};
if ((((_local2 >= 12)) && ((_local2 < 17)))){
if (t.y < y){
dy = -4;
};
if (t.y > y){
dy = 4;
};
roll.gotoAndPlay(25);
};
};
if ((((roll.currentFrame >= 25)) && ((roll.currentFrame < attack)))){
_local3 = (Math.random() * 101);
if (_local3 < 24){
dx = (-6 * scaleX);
};
if ((((_local3 >= 24)) && ((_local3 < 34)))){
if (t.y < y){
dy = -4;
};
if (t.y > y){
dy = 4;
};
};
if (_local3 > 100){
dx = 0;
dy = 0;
roll.gotoAndPlay(changestate);
};
};
if ((((((((Math.abs((t.x - x)) < 500)) && ((Math.abs((t.x - x)) >= 180)))) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((Math.abs((t.x - x)) < 180)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
_local15 = (Math.random() * 100);
if (_local15 < 80){
roll.gotoAndPlay(attack3);
};
if (_local15 >= 80){
roll.gotoAndPlay(changestate);
};
};
if (roll.currentFrame == (hurt + 1)){
hurtnm++;
hurtt = 0;
if (hurtnm == 3){
roll.gotoAndPlay(hurt2);
SoundsManager.playSound("longsiwang");
};
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt2 + 5)){
dx = 0;
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (die + 3)){
_local5 = (x + (53.6 * scaleX));
_local6 = y;
_local7 = (roll.y - 217.7);
par.createboss2(_local5, _local6, _local7);
};
if (roll.currentFrame == (die + 7)){
dx = 0;
roll.dy = 10;
};
if ((((roll.currentFrame > changestate)) && ((roll.currentFrame < (changestate + 47))))){
roll.y = (roll.y - 3.5);
_local5 = (x + (((Math.random() * 100) + 60) * scaleX));
_local6 = ((y + (Math.random() * 100)) - 50);
ashs = new Ash(_local5, _local6, par.container3);
ashs.dx = (((-(Math.random()) * 20) - 20) * scaleX);
par.container3.setChildIndex(ashs, (par.container3.getChildIndex(this) + 1));
_local5 = (x + (((Math.random() * 100) + 60) * scaleX));
_local6 = ((y + (Math.random() * 100)) - 50);
ashs2 = new Ash(_local5, _local6, par.container3);
ashs2.dx = (((-(Math.random()) * 20) - 20) * scaleX);
par.container3.setChildIndex(ashs2, (par.container3.getChildIndex(this) + 1));
t.x = (t.x - (12 * scaleX));
};
if (roll.currentFrame == (changestate + 47)){
actionstate = 1;
hurt = 245;
dx = 0;
dy = 0;
roll.y = -160;
roll.gotoAndStop(1);
};
if (x < -140){
x = -138;
dx = 0;
dy = 0;
};
if (x > 740){
x = 738;
dx = 0;
dy = 0;
};
if (y < 274){
y = 274;
dx = 0;
dy = 0;
};
if (y > 380){
y = 380;
dx = 0;
dy = 0;
};
if ((((roll.currentFrame < die)) && ((life <= 0)))){
dx = 0;
roll.gotoAndPlay(die);
SoundsManager.playSound("longsiwang");
};
if (roll.currentFrame == (die + 1)){
removeChild(hitBall);
};
if ((((roll.y >= 0)) && ((roll.currentFrame == 323)))){
roll.y = 0;
roll.dy = 0;
roll.gotoAndPlay(324);
createObj(Gem6);
createObj(Gem5);
createObj(Gem4);
createObj(Gem3);
createObj(Gem2);
_local4 = (Math.random() * 100);
if (_local4 < 70){
createObj(Gem1);
};
if (_local4 >= 70){
createObj(Lifewater);
};
removeChild(rollshadow);
};
if (roll.currentFrame == 414){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 80) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
}
}//package
Section 282
//Dragonknight2 (Dragonknight2)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Dragonknight2 extends Sprite {
public const hurt2:uint = 265;
public const attack4:uint = 150;
public const attack:uint = 56;
public const die:uint = 304;
public const walk:uint = 2;
public const changestate:uint = 423;
public const attack3:uint = 115;
public const attack2:uint = 80;
public var dxfix:Number;// = 0
public var speed:Number;// = 10
public var life:Number;// = 2500
private var hurtnm;// = 0
public var actionstate;// = 1
public var lifexxx:Number;// = 2500
private var ashs2;
public var hitBall:MovieClip;
private var fire;
public var hurt;// = 245
public var fireattacknm;// = 30
private var hurtt;// = 0
private var timer;// = 0
public var number:Number;
public var crawtop:MovieClip;
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
private var tx;// = 0
public var roll:MovieClip;
public var isboss:Boolean;// = false
private var par;
public var strong:Number;// = 8
public var dx:Number;// = 0
public var dy:Number;// = 0
private var ashs;
public var defend:Number;
private var rolldx;// = 0
private var rolldy;// = 0
public var crawAttack;// = 45
private var rollshadow:MovieClip;
public function Dragonknight2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hurtnm = 0;
hurtt = 0;
timer = 0;
rolldx = 0;
rolldy = 0;
tx = 0;
actionstate = 1;
isboss = false;
dx = 0;
dy = 0;
dxfix = 0;
life = 2500;
lifexxx = 2500;
strong = 8;
man = true;
speed = 10;
hurt = 245;
fireattacknm = 30;
crawAttack = 45;
super();
_arg3.sky.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initDragon();
}
public function del():void{
roll.gotoAndStop(1);
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.container3.removeChild(this);
if ((((isboss == true)) && ((actionstate == 0)))){
par.container5.removeChild(par.bossstates);
};
}
private function initDragon():void{
hitBall = new HitMovie(0, -200, this);
addChild(hitBall);
hitBall.width = 200;
hitBall.height = 200;
rollshadow = new Shadow(10, 0);
addChild(rollshadow);
rollshadow.scaleX = 1.6;
crawtop = new HitMovie(0, -40, this);
addChild(crawtop);
crawtop.width = 100;
crawtop.height = 60;
roll = new DragonknightRoll(0, -160);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
hitBall.width = 200;
hitBall.height = 200;
hitBall.x = 0;
hitBall.y = (roll.y - 100);
_local2 = (Math.random() * 51);
_local3 = (Math.random() * 101);
_local4 = (Math.random() * 100);
_local5 = ((x + roll.x) - (90 * scaleX));
_local6 = (y - 250);
if (actionstate == 0){
x = (x + dx);
y = (y + dy);
roll.y = (roll.y + roll.dy);
if (roll.currentFrame == (attack2 + 11)){
tx = (x - (200 * scaleX));
};
if ((((roll.currentFrame > (attack2 + 11))) && ((roll.currentFrame < (attack2 + 33))))){
if (timer == 0){
x = (x + (2 * scaleX));
_local5 = ((((-90.4 + (Math.random() * 5)) * scaleX) + roll.x) + x);
_local6 = (((-26.2 + (Math.random() * 5)) + roll.y) + y);
fist = new Fireball3(_local5, _local6, par.sky);
fist.chooseenemies = 0;
fist.yfix = y;
fist.dx = (((((tx - x) - (90 * scaleX)) / 12) + 15) - (Math.random() * 30));
fist.dy = ((((y - roll.y) / 12) + 1) - (Math.random() * 2));
fist.xxscale = scaleX;
};
timer++;
timer = (timer % 2);
};
if (roll.currentFrame == (attack2 + 33)){
timer = 0;
roll.gotoAndPlay(2);
};
if (roll.x >= 900){
roll.gotoAndStop(414);
actionstate = 2;
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 80) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
}
}
}//package
Section 283
//dun (dun)
package {
import flash.media.*;
public dynamic class dun extends Sound {
}
}//package
Section 284
//EFire (EFire)
package {
import flash.events.*;
import flash.display.*;
public class EFire extends MovieClip {
public var timerXX;
private var attacknm:Number;// = 0
public var actionstate;// = 1
private var timer;// = 0
public var number;
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var xxscale;
public var SAttack:Number;// = 16
private var par;
private var fnm;
private var ly;
private var lx;
private var heigh;// = 0
private var inm;
public function EFire(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
timer = 0;
heigh = 0;
actionstate = 1;
man = false;
SAttack = 16;
super();
addFrameScript(8, frame9);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
SoundsManager.playSound("kuaihuo");
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
public function del():void{
var _local1:*;
var _local2:uint;
stop();
par.container3.removeChild(this);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, fireAction);
}
private function fireAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:uint;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
heigh++;
_local2 = ((Math.random() * 60) - 30);
_local3 = (((Math.random() * 10) + 30) - (30 * heigh));
if (this.currentFrame <= 4){
_local4 = 0;
while (_local4 < 13) {
fnm = ("fire" + _local4);
fnm = new FireStar2(_local2, _local3, this);
_local4++;
};
};
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - y)) < 14)))){
_local2 = (t.x + (20 * t.scaleX));
_local3 = (((t.y - (Math.random() * 40)) - 30) + t.roll.y);
if (t.roll.currentFrame < t.defend){
_local5 = 0;
while (_local5 < 15) {
fnm = new FireStar2(_local2, _local3, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 14.2);
};
t.life = (t.life - (SAttack - t.Sdefend));
};
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local2 = (t.x + (50 * t.scaleX));
_local3 = ((t.y - 64) + t.roll.y);
_local5 = 0;
while (_local5 < 15) {
fnm = new FireStar2(_local2, _local3, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
};
};
if (this.currentFrame == 9){
del();
};
};
}
function frame9(){
stop();
}
}
}//package
Section 285
//EFireBottle (EFireBottle)
package {
import flash.events.*;
import flash.display.*;
public class EFireBottle extends MovieClip {
public var yfix;
public var actionstate;// = 1
public var drot;
public var number;
private var master;
private var hits;// = 0
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 11
public var xxscale;
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function EFireBottle(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hits = 0;
actionstate = 1;
man = false;
SAttack = 11;
super();
addFrameScript(0, frame1, 34, frame35);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, firebottleAction, false, 0, true);
}
public function del(){
var _local1:*;
var _local2:uint;
stop();
par.container3.removeChild(this);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, firebottleAction);
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > yfix)))) || ((((_local3 > _local2)) && ((_local1.y < yfix)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
function frame1(){
stop();
}
function frame35(){
stop();
}
private function firebottleAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
if (actionstate == 0){
};
if (actionstate == 1){
if (this.currentFrame < 33){
changeDepth();
};
if (this.currentFrame == 1){
rotation = (rotation + drot);
x = (x + dx);
y = (y + dy);
dy = (dy + 4);
if (y >= yfix){
y = yfix;
rotation = 0;
_local2 = 0;
while (_local2 < 15) {
fnm = new FireStar2(x, y, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local2++;
};
if (hits == 0){
SoundsManager.playSound("mofapingluodi");
SoundsManager.playSound("xiaohuoshao");
hits++;
};
this.gotoAndPlay(2);
};
};
if ((((this.currentFrame <= 28)) && ((this.currentFrame >= 2)))){
_local3 = 0;
while (_local3 < 4) {
lx = ((Math.random() * 30) - 15);
ly = ((-(Math.random()) * 60) - 10);
fnm = new FireStar2(lx, ly, this);
_local3++;
};
};
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 12)))){
lx = (t.x + (20 * t.scaleX));
ly = (((t.y - (Math.random() * 40)) - 30) + t.roll.y);
if (t.roll.currentFrame < t.defend){
_local4 = 0;
while (_local4 < 15) {
fnm = new FireStar2(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local4++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-22 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 14.2);
};
t.life = (t.life - (SAttack - t.Sdefend));
};
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
lx = (t.x + (50 * t.scaleX));
ly = ((t.y - 64) + t.roll.y);
_local4 = 0;
while (_local4 < 15) {
fnm = new FireStar2(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local4++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
};
};
if (this.currentFrame == 35){
del();
};
};
}
}
}//package
Section 286
//EIce (EIce)
package {
import flash.events.*;
import flash.display.*;
public class EIce extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var actionstate;// = 1
private var timer;// = 0
public var number;
public var man:Boolean;// = false
public var master;
private var t;
public var roll;
public var xxscale;
public var xfix;// = 0
private var par;
public var SAttack:Number;// = 12
private var fnm;
private var ly;
private var lx;
private var inm;
public function EIce(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
timer = 0;
actionstate = 1;
xfix = 0;
man = false;
SAttack = 12;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, iceAction);
}
public function del(){
var _local1:*;
var _local2:uint;
timer = 70;
par.container3.removeChild(this);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, iceAction);
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function iceAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:uint;
if (actionstate == 0){
};
if (actionstate == 1){
if (timer < 58){
changeDepth();
};
if ((((timer >= 60)) || ((t.life <= 0)))){
del();
};
timer++;
_local3 = (Math.random() * 2);
lx = (((Math.random() * 50) - 25) - xfix);
ly = ((Math.random() * 10) - 5);
if (timer == 1){
if (_local3 < 1){
inm = new Ice1(lx, ly, this);
};
if (_local3 >= 1){
inm = new Ice2(lx, ly, this);
};
_local4 = 0;
while (_local4 < 20) {
_local2 = new FireStar((this.x + lx), (this.y + ly), par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(t) + 1));
_local4++;
};
SoundsManager.playSound("dabin");
};
if (timer == 3){
if (_local3 < 1){
inm = new Ice1(lx, ly, this);
this.setChildIndex(inm, 0);
};
if (_local3 >= 1){
inm = new Ice2(lx, ly, this);
};
_local4 = 0;
while (_local4 < 20) {
_local2 = new FireStar((this.x + lx), (this.y + ly), par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 5){
if (_local3 < 1){
inm = new Ice1(lx, ly, this);
};
if (_local3 >= 1){
inm = new Ice2(lx, ly, this);
this.setChildIndex(inm, (numChildren - 2));
};
_local4 = 0;
while (_local4 < 20) {
_local2 = new FireStar((this.x + lx), (this.y + ly), par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 7){
if (_local3 < 1){
inm = new Ice1(lx, ly, this);
this.setChildIndex(inm, 0);
};
if (_local3 >= 1){
inm = new Ice2(lx, ly, this);
};
_local4 = 0;
while (_local4 < 20) {
_local2 = new FireStar((this.x + lx), (this.y + ly), par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 9){
if (_local3 < 1){
inm = new Ice1(lx, ly, this);
};
if (_local3 >= 1){
inm = new Ice2(lx, ly, this);
this.setChildIndex(inm, (numChildren - 2));
};
_local4 = 0;
while (_local4 < 20) {
_local2 = new FireStar((this.x + lx), (this.y + ly), par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 11){
if (_local3 < 1){
inm = new Ice1(lx, ly, this);
};
if (_local3 >= 1){
inm = new Ice2(lx, ly, this);
this.setChildIndex(inm, (numChildren - 2));
};
_local4 = 0;
while (_local4 < 20) {
_local2 = new FireStar((this.x + lx), (this.y + ly), par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(t) + 1));
_local4++;
};
SoundsManager.playSound("dabin");
};
if (timer == 13){
if (_local3 < 1){
inm = new Ice1(lx, ly, this);
};
if (_local3 >= 1){
inm = new Ice2(lx, ly, this);
this.setChildIndex(inm, (numChildren - 2));
};
_local4 = 0;
while (_local4 < 20) {
_local2 = new FireStar((this.x + lx), (this.y + ly), par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 15){
if (_local3 < 1){
inm = new Ice1(lx, ly, this);
};
if (_local3 >= 1){
inm = new Ice2(lx, ly, this);
this.setChildIndex(inm, (numChildren - 2));
};
_local4 = 0;
while (_local4 < 20) {
_local2 = new FireStar((this.x + lx), (this.y + ly), par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (((this.hitTestObject(t.roll)) && ((Math.abs((t.y - y)) < 14)))){
if (t.roll.currentFrame < t.defend){
lx = (t.x + (50 * t.scaleX));
ly = ((t.y - 64) + t.roll.y);
_local5 = 0;
while (_local5 < 15) {
_local2 = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(this) + 1));
_local5++;
};
if (t.roll.y > -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt);
t.dxfix = (-6 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if (t.roll.y <= -80){
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-6 * t.scaleX);
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 14.2);
};
t.life = (t.life - (SAttack - t.Sdefend));
};
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
lx = (t.x + (50 * t.scaleX));
ly = ((t.y - 64) + t.roll.y);
_local5 = 0;
while (_local5 < 6) {
_local2 = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(_local2, (par.container3.getChildIndex(this) + 1));
_local5++;
};
t.scaleX = xxscale;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-14 * t.scaleX);
};
};
};
}
}
}//package
Section 287
//EIce2 (EIce2)
package {
import flash.events.*;
import flash.display.*;
public class EIce2 extends MovieClip {
public var yfix;
private var attacknm:Number;// = 0
public var actionstate;// = 1
private var timer;// = 0
public var number;
public var man:Boolean;// = false
public var master;
private var t;
public var roll;
public var xxscale;
public var xfix;// = 0
private var par;
public var SAttack:Number;// = 12
private var fnm;
private var ly;
private var lx;
private var inm;
public function EIce2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
var _local4:*;
var _local5:*;
var _local6:uint;
var _local7:*;
var _local8:uint;
attacknm = 0;
timer = 0;
actionstate = 1;
xfix = 0;
man = false;
SAttack = 12;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
t = _arg3.playRoll;
master = _arg3.boss;
this.addEventListener(Event.ENTER_FRAME, iceAction, false, 0, true);
lx = -120;
_local5 = -40;
_local6 = 0;
while (_local6 < 8) {
ly = ((Math.random() * 20) - 10);
_local7 = (Math.random() * 2);
if (_local7 < 1){
inm = new Ice1(lx, ly, this);
inm.rotation = _local5;
};
if (_local7 >= 1){
inm = new Ice2(lx, ly, this);
inm.rotation = _local5;
};
inm.scaleX = (inm.scaleX * 1.3);
inm.scaleY = (inm.scaleY * 1.3);
_local8 = 0;
while (_local8 < 6) {
_local4 = new FireStar((this.x + lx), (this.y + ly), par.container3);
par.container3.setChildIndex(_local4, (par.container3.getChildIndex(this) + 1));
_local8++;
};
lx = (lx + 30);
_local5 = (_local5 + 10);
_local6++;
};
SoundsManager.playSound("dabin");
}
public function del(){
var _local1:*;
var _local2:uint;
timer = 70;
par.container3.removeChild(this);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
this.removeEventListener(Event.ENTER_FRAME, iceAction);
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function iceAction(_arg1:Event):void{
var _local2:uint;
if (actionstate == 0){
};
if (actionstate == 1){
if (timer < 44){
changeDepth();
};
if ((((timer >= 46)) || ((t.life <= 0)))){
del();
};
timer++;
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - y)) < 20)))) && ((timer < 15)))){
if (t.x >= x){
t.scaleX = -1;
};
if (t.x < x){
t.scaleX = 1;
};
if (t.roll.currentFrame < t.defend){
lx = (t.x + (50 * t.scaleX));
ly = ((t.y - 64) + t.roll.y);
_local2 = 0;
while (_local2 < 15) {
fnm = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local2++;
};
if (t.roll.dy > 0){
t.roll.dy = (t.roll.dy - 36.2);
};
t.roll.gotoAndPlay(t.hurt2);
t.dxfix = (-18 * t.scaleX);
t.life = (t.life - (SAttack - t.Sdefend));
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
lx = (t.x + (50 * t.scaleX));
ly = ((t.y - 64) + t.roll.y);
_local2 = 0;
while (_local2 < 6) {
fnm = new FireStar(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local2++;
};
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-18 * t.scaleX);
};
};
};
}
}
}//package
Section 288
//feidao (feidao)
package {
import flash.media.*;
public dynamic class feidao extends Sound {
}
}//package
Section 289
//feifu (feifu)
package {
import flash.media.*;
public dynamic class feifu extends Sound {
}
}//package
Section 290
//Fighter (Fighter)
package {
import flash.events.*;
import flash.display.*;
import data.*;
import objects.*;
import rolls.*;
public class Fighter extends Sprite {
public const hurt2:uint = 130;
public const hurt:uint = 120;
public const jump:uint = 17;
public const attack:uint = 61;
public const defend:uint = 100;
public const attack2:uint = 77;
public const attack3:uint = 30;
public const attack4:uint = 45;
public const getdown:uint = 21;
public const song1:uint = 170;
public const song2:uint = 190;
public const song3:uint = 225;
public const walk:uint = 2;
public const throwact2:uint = 92;
public const throwact:uint = 85;
public var actionstate;// = 1
public var hitBall;
public var icest:Boolean;// = false
public var levelnm:Number;
public var secsword;
public var sheildnm:Number;
public var SAttack:Number;
public var swordnm:Number;
public var roll:MovieClip;
private var die;// = 0
private var downkey:Number;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var strong:Number;// = 1000
private var par;
public var attackst:Boolean;// = false
private var rightkey:Number;
public var Sdefend:Number;
public var sheild:MovieClip;
public var life:Number;
public var dxfix:Number;// = 0
public var lifexxx:Number;
public var secswordnm:Number;
public var scoresavenm:Number;
private var attackkey:Number;
public var firest:Boolean;// = false
private var light;
private var leftkey:Number;
public var timer;// = 0
public var curest:Boolean;// = false
public var man:Boolean;// = true
public var cnm:Number;
private var jumpkey:Number;
public var defendst:Boolean;// = false
private var lx;
private var ly;
private var throwkey:Number;
public var scorenm:Number;
public var playstate:Number;// = 0
private var rollshadow:MovieClip;
private var defendkey:Number;
private var upkey:Number;
public var sword:MovieClip;
public function Fighter(_arg1:Number=0, _arg2:Number=0, _arg3=null){
die = 0;
actionstate = 1;
timer = 0;
upkey = Data.upkeycode;
downkey = Data.downkeycode;
leftkey = Data.leftkeycode;
rightkey = Data.rightkeycode;
attackkey = Data.attackkeycode;
jumpkey = Data.jumpkeycode;
defendkey = Data.defendkeycode;
throwkey = Data.throwkeycode;
swordnm = Data.swordnm;
SAttack = (Data.SAttacknm + (2 * swordnm));
sheildnm = Data.sheildnm;
Sdefend = (Data.Sdefendnm + sheildnm);
secswordnm = Data.secondswordnm;
levelnm = Data.levelnm;
life = Data.lifenm;
lifexxx = Data.lifexxxnm;
cnm = Data.cnm;
scorenm = Data.scorenm;
scoresavenm = Data.scoresavenm;
dx = 0;
dxfix = 0;
dy = 0;
playstate = 0;
man = true;
strong = 1000;
attackst = false;
defendst = false;
firest = false;
icest = false;
curest = false;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initFighter();
}
public function del(){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, action1);
stage.removeEventListener(KeyboardEvent.KEY_UP, action2);
sword.removeEventListener(Event.ENTER_FRAME, swordaction);
sheild.removeEventListener(Event.ENTER_FRAME, sheildaction);
roll.removeEventListener(Event.ENTER_FRAME, rollaction);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(rollshadow);
removeChild(roll);
removeChild(sheild);
removeChild(sword);
par.container3.removeChild(this);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:uint;
changeDepth();
if (actionstate == 0){
x = (x + dx);
y = (y + dy);
SAttack = (Data.SAttacknm + (2 * swordnm));
Sdefend = (Data.Sdefendnm + sheildnm);
Data.swordnm = swordnm;
Data.sheildnm = sheildnm;
Data.secondswordnm = secswordnm;
Data.lifenm = life;
Data.lifexxxnm = lifexxx;
Data.cnm = cnm;
Data.levelnm = levelnm;
Data.scorenm = scorenm;
Data.scoresavenm = scoresavenm;
_local2 = int(((life / lifexxx) * 100));
par.states.lifeMC.gotoAndStop(_local2);
par.states.aweaponMC.gotoAndStop(secswordnm);
par.states.cnmText.text = cnm;
par.states.scorenmText.text = ("Score: " + (scorenm * 10));
par.states.levelnmText.text = ("Level " + levelnm);
};
if (actionstate == 1){
if ((((life <= 0)) && ((roll.currentFrame < hurt2)))){
roll.gotoAndPlay(hurt2);
};
SAttack = (Data.SAttacknm + (2 * swordnm));
Sdefend = (Data.Sdefendnm + sheildnm);
Data.swordnm = swordnm;
Data.sheildnm = sheildnm;
Data.secondswordnm = secswordnm;
Data.lifenm = life;
Data.lifexxxnm = lifexxx;
Data.cnm = cnm;
Data.levelnm = levelnm;
Data.scorenm = scorenm;
Data.scoresavenm = scoresavenm;
_local3 = int(((life / lifexxx) * 100));
par.states.lifeMC.gotoAndStop(_local3);
par.states.aweaponMC.gotoAndStop(secswordnm);
par.states.cnmText.text = cnm;
par.states.scorenmText.text = ("Score: " + (scorenm * 10));
par.states.levelnmText.text = ("Level " + levelnm);
if (scorenm >= (scoresavenm + (55 * levelnm))){
if ((((roll.currentFrame < (jump - 2))) || ((((roll.currentFrame >= defend)) && ((roll.currentFrame <= (defend + 17))))))){
roll.gotoAndPlay(song1);
lx = (x + roll.x);
ly = ((y + roll.y) - 70);
light = new Levelup(lx, ly, par);
SoundsManager.playSound("jueseshengji");
par.container3.setChildIndex(light, (par.container3.getChildIndex(this) + 1));
light = new FFist(lx, ly, par);
par.container3.setChildIndex(light, (par.container3.getChildIndex(this) + 1));
scoresavenm = (scoresavenm + (55 * levelnm));
levelnm = (levelnm + 1);
Data.SAttacknm = (Data.SAttacknm + 1);
lifexxx = (lifexxx + 20);
if (life < (lifexxx - 50)){
life = (life + 50);
};
if (life >= (lifexxx - 50)){
life = lifexxx;
};
};
};
if ((((((dx == 0)) && ((dy == 0)))) && ((roll.currentFrame < 13)))){
roll.gotoAndStop(1);
};
timer++;
if (timer == 20){
playstate = 0;
};
if (roll.currentFrame == 1){
dxfix = 0;
if (((!((dx == 0))) || (!((dy == 0))))){
roll.gotoAndPlay(2);
};
};
if ((((((roll.currentFrame >= 2)) && ((roll.currentFrame < 12)))) || ((((roll.currentFrame >= jump)) && ((roll.currentFrame <= (jump + 3))))))){
if (dx > 0){
scaleX = 1;
};
if (dx < 0){
scaleX = -1;
};
if (par.stagechange == false){
x = (x + dx);
};
if (par.stagechange == true){
if (x > 240){
if (dx > 0){
par.sky.x = (par.sky.x - (dx - 3));
par.cwall1.x = (par.cwall1.x - dx);
par.cwall2.x = (par.cwall2.x - (dx + 3));
par.stagechangeT++;
};
if (dx <= 0){
x = (x + dx);
};
};
if (x <= 240){
x = (x + dx);
};
};
y = (y + dy);
};
if ((((((((((dx == 0)) && ((dy == 0)))) && ((dxfix == 0)))) && ((roll.dy == 0)))) && ((roll.currentFrame < 12)))){
roll.gotoAndStop(1);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 7))))) && ((dxfix < 0)))){
dxfix = (dxfix + 2);
x = (x + dxfix);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 7))))) && ((dxfix > 0)))){
dxfix = (dxfix - 2);
x = (x + dxfix);
};
if (roll.currentFrame == (hurt + 1)){
SoundsManager.playSound("qishishoushang1");
};
if (roll.currentFrame == (hurt + 7)){
dxfix = 0;
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 9))))) && ((dxfix < 0)))){
dxfix = (dxfix + 1.2);
x = (x + dxfix);
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 9))))) && ((dxfix > 0)))){
dxfix = (dxfix - 1.2);
x = (x + dxfix);
};
if (roll.currentFrame == (hurt + 9)){
if (roll.y == 0){
roll.gotoAndPlay((hurt + 10));
dx = 0;
dy = 0;
dxfix = 0;
};
};
if (roll.currentFrame == (hurt2 + 1)){
SoundsManager.playSound("qishishoushang2");
};
if ((((roll.currentFrame >= defend)) && ((roll.currentFrame < hurt)))){
if ((((((roll.currentFrame >= defend)) && ((roll.currentFrame <= (defend + 4))))) && ((dxfix > 0)))){
dxfix = (dxfix - 3);
x = (x + dxfix);
};
if ((((((roll.currentFrame >= defend)) && ((roll.currentFrame <= (defend + 4))))) && ((dxfix < 0)))){
dxfix = (dxfix + 3);
x = (x + dxfix);
};
if (roll.currentFrame == (defend + 6)){
dxfix = 0;
};
if ((((roll.currentFrame >= (defend + 7))) && ((defendst == false)))){
if (((!((dx == 0))) || (!((dy == 0))))){
roll.gotoAndPlay(2);
if (dx > 0){
scaleX = 1;
};
if (dx < 0){
scaleX = -1;
};
};
};
};
if ((((roll.currentFrame == (attack + 2))) || ((roll.currentFrame == (attack2 + 2))))){
lx = ((x + roll.x) + (25 * scaleX));
ly = ((y + roll.y) - 76);
light = new SwordShadow(lx, ly, par);
light.scaleX = scaleX;
par.container3.setChildIndex(light, (par.container3.getChildIndex(this) + 1));
_local4 = (Math.random() * 2);
if (_local4 < 1){
SoundsManager.playSound("huidao1");
};
if (_local4 >= 1){
SoundsManager.playSound("huidao2");
};
};
if (roll.currentFrame == (attack3 + 2)){
lx = ((x + roll.x) + (30 * scaleX));
ly = (y + roll.y);
light = new SwordShadow2(lx, ly, par);
light.scaleX = scaleX;
par.container3.setChildIndex(light, (par.container3.getChildIndex(this) + 1));
};
if (roll.currentFrame == (attack4 + 2)){
lx = (x + roll.x);
ly = (y + roll.y);
light = new SwordShadow3(lx, ly, par);
light.scaleX = scaleX;
par.container3.setChildIndex(light, (par.container3.getChildIndex(this) + 1));
};
if (x < 30){
x = 30;
};
if (x > 570){
x = 570;
};
if (y < 274){
y = 274;
};
if (y > 380){
y = 380;
};
if ((((roll.currentFrame == 140)) && ((life <= 0)))){
_local5 = par.enemys.length;
_local6 = 0;
while (_local6 < _local5) {
if (par.enemys[_local6].man == true){
par.enemys[_local6].actionstate = 0;
};
_local6++;
};
if (par.be == 1){
par.boss.actionstate = 0;
};
SoundsManager.playSound("siwang");
};
if ((((((roll.currentFrame == 155)) && ((life <= 0)))) && ((die == 0)))){
die = 1;
roll.gotoAndStop(155);
del3();
};
};
}
private function sheildaction(_arg1:Event):void{
sheild.x = roll.x;
sheild.y = roll.y;
sheild.gotoAndStop(roll.currentFrame);
}
private function swordaction(_arg1:Event):void{
sword.x = roll.x;
sword.y = roll.y;
sword.gotoAndStop(roll.currentFrame);
}
public function cteateSheild(_arg1){
dx = 0;
dy = 0;
removeChild(sheild);
sheild.removeEventListener(Event.ENTER_FRAME, sheildaction);
sheild = new _arg1(roll.x, roll.y);
addChild(sheild);
sheild.addEventListener(Event.ENTER_FRAME, sheildaction);
roll.gotoAndPlay(song1);
}
public function cteateSword(_arg1){
dx = 0;
dy = 0;
removeChild(sword);
sword.removeEventListener(Event.ENTER_FRAME, swordaction);
sword = new _arg1(roll.x, roll.y);
addChild(sword);
sword.addEventListener(Event.ENTER_FRAME, swordaction);
roll.gotoAndPlay(song1);
}
private function action1(_arg1:KeyboardEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:uint;
if (actionstate == 0){
};
if (actionstate == 1){
if (_arg1.keyCode == upkey){
dy = -5;
if (roll.currentFrame == 1){
roll.gotoAndPlay(2);
};
};
if (_arg1.keyCode == downkey){
dy = 5;
if (roll.currentFrame == 1){
roll.gotoAndPlay(2);
};
};
if (_arg1.keyCode == leftkey){
dx = -7;
if ((((roll.currentFrame < (jump - 2))) || ((((roll.currentFrame >= defend)) && ((roll.currentFrame < hurt)))))){
scaleX = -1;
};
if (roll.currentFrame == 1){
roll.gotoAndPlay(2);
};
};
if (_arg1.keyCode == rightkey){
dx = 7;
if ((((roll.currentFrame < (jump - 2))) || ((((roll.currentFrame >= defend)) && ((roll.currentFrame < hurt)))))){
scaleX = 1;
};
if (roll.currentFrame == 1){
roll.gotoAndPlay(2);
};
};
if (_arg1.keyCode == throwkey){
_local2 = ((x + roll.x) + (30 * scaleX));
_local3 = ((y + roll.y) - 76);
if ((((roll.currentFrame < (jump - 2))) || ((((roll.currentFrame >= defend)) && ((roll.currentFrame <= (defend + 17))))))){
if ((((secswordnm == 1)) && ((cnm >= 2)))){
defendst = false;
roll.gotoAndPlay(throwact);
secsword = new Dagger(_local2, _local3, par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.scaleX = scaleX;
secsword.dx = (scaleX * 40);
secsword.yfix = y;
cnm = (cnm - 2);
_local4 = new ObjText2(x, (y - 100), "- 2", par);
SoundsManager.playSound("feidao");
};
if ((((secswordnm == 2)) && ((cnm >= 3)))){
defendst = false;
roll.gotoAndPlay(throwact);
secsword = new Axe(_local2, _local3, par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.scaleX = scaleX;
secsword.dx = (scaleX * (8 + (Math.random() * 2)));
secsword.dy = (-21 + (Math.random() * 2));
secsword.drot = (scaleX * (30 + (Math.random() * 30)));
secsword.yfix = y;
cnm = (cnm - 3);
_local4 = new ObjText2(x, (y - 100), "- 3", par);
SoundsManager.playSound("feifu");
};
if ((((secswordnm == 3)) && ((cnm >= 4)))){
defendst = false;
roll.gotoAndPlay(throwact);
secsword = new HolyWater(_local2, _local3, par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.scaleX = scaleX;
secsword.dx = (scaleX * (6 + (Math.random() * 2)));
secsword.dy = (-12 + (Math.random() * 4));
secsword.drot = (scaleX * (30 + (Math.random() * 30)));
secsword.yfix = y;
cnm = (cnm - 4);
_local4 = new ObjText2(x, (y - 100), "- 4", par);
};
if ((((secswordnm == 4)) && ((cnm >= 6)))){
defendst = false;
roll.gotoAndPlay(throwact);
secsword = new FireBottle(_local2, _local3, par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.scaleX = scaleX;
secsword.dx = (scaleX * (8 + (Math.random() * 3)));
secsword.dy = (-14 + (Math.random() * 3));
secsword.drot = (scaleX * (30 + (Math.random() * 30)));
secsword.yfix = y;
cnm = (cnm - 6);
_local4 = new ObjText2(x, (y - 100), "- 6", par);
};
if ((((((secswordnm == 5)) && ((cnm >= 10)))) && ((firest == false)))){
firest = true;
defendst = false;
roll.gotoAndPlay(song1);
cnm = (cnm - 10);
Data.cnm = cnm;
_local4 = new ObjText2(x, (y - 100), "- 10", par);
_local6 = 0;
_local7 = 0;
_local8 = 0;
if (par.container3.numChildren >= 2){
_local8 = 0;
while (_local8 < par.container3.numChildren) {
_local5 = par.container3.getChildAt(_local8);
if ((((((_local5.man == true)) && (!((_local5 == this))))) && ((_local6 < 5)))){
secsword = new Fire(_local5.x, _local5.y, par);
secsword.targets = _local5;
secsword.timerXX = _local7;
_local7 = (_local7 + 5);
_local6++;
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(_local5) + 1));
};
_local8++;
};
if (_local6 < 5){
_local8 = 0;
while (_local8 < par.container3.numChildren) {
_local5 = par.container3.getChildAt(_local8);
if ((((((_local5.man == true)) && (!((_local5 == this))))) && ((_local6 < 5)))){
secsword = new Fire(_local5.x, _local5.y, par);
secsword.targets = _local5;
secsword.timerXX = _local7;
_local7 = (_local7 + 5);
_local6++;
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(_local5) + 1));
};
_local8++;
};
};
};
if (par.container3.numChildren < 2){
_local8 = 0;
while (_local8 < 5) {
secsword = new Fire(((Math.random() * 500) + 50), ((Math.random() * 80) + 290), par);
secsword.timerXX = _local7;
_local7 = (_local7 + 5);
_local6++;
_local8++;
};
};
};
if ((((((secswordnm == 6)) && ((cnm >= 8)))) && ((icest == false)))){
icest = true;
defendst = false;
roll.gotoAndPlay(song2);
secsword = new Ice((x + (scaleX * 80)), y, par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.xxscale = scaleX;
cnm = (cnm - 8);
_local4 = new ObjText2(x, (y - 100), "- 8", par);
};
if ((((((secswordnm == 7)) && ((cnm >= 12)))) && ((curest == false)))){
curest = true;
defendst = false;
roll.gotoAndPlay(song3);
secsword = new CureRain(x, (y - 170), par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.scaleX = (secsword.scaleY = 1.5);
cnm = (cnm - 12);
_local4 = new ObjText2(x, (y - 100), "- 12", par);
SoundsManager.playSound("zhiliao");
};
};
if (roll.currentFrame == (jump + 3)){
if ((((secswordnm == 1)) && ((cnm >= 2)))){
if ((((roll.y < -110)) || ((roll.dy < 0)))){
roll.gotoAndPlay(throwact2);
secsword = new Dagger(_local2, _local3, par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.scaleX = scaleX;
secsword.dx = (scaleX * 40);
secsword.yfix = y;
cnm = (cnm - 2);
_local4 = new ObjText2(x, (y - 100), "- 2", par);
SoundsManager.playSound("feidao");
};
};
if ((((secswordnm == 2)) && ((cnm >= 3)))){
if ((((roll.y < -110)) || ((roll.dy < 0)))){
roll.gotoAndPlay(throwact2);
secsword = new Axe(_local2, _local3, par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.scaleX = scaleX;
secsword.dx = (scaleX * (8 + (Math.random() * 2)));
secsword.dy = (-16 + (Math.random() * 2));
secsword.drot = (scaleX * (30 + (Math.random() * 30)));
secsword.yfix = y;
cnm = (cnm - 3);
_local4 = new ObjText2(x, (y - 100), "- 3", par);
SoundsManager.playSound("feifu");
};
};
if ((((secswordnm == 3)) && ((cnm >= 5)))){
if ((((roll.y < -110)) || ((roll.dy < 0)))){
roll.gotoAndPlay(throwact2);
secsword = new HolyWater(_local2, _local3, par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.scaleX = scaleX;
secsword.dx = (scaleX * (6 + (Math.random() * 2)));
secsword.dy = (-12 + (Math.random() * 4));
secsword.drot = (scaleX * (30 + (Math.random() * 30)));
secsword.yfix = y;
cnm = (cnm - 5);
_local4 = new ObjText2(x, (y - 100), "- 5", par);
};
};
if ((((secswordnm == 4)) && ((cnm >= 6)))){
if ((((roll.y < -110)) || ((roll.dy < 0)))){
roll.gotoAndPlay(throwact2);
secsword = new FireBottle(_local2, _local3, par);
par.container3.setChildIndex(secsword, (par.container3.getChildIndex(this) + 1));
secsword.scaleX = scaleX;
secsword.dx = (scaleX * (8 + (Math.random() * 3)));
secsword.dy = (-14 + (Math.random() * 3));
secsword.drot = (scaleX * (30 + (Math.random() * 30)));
secsword.yfix = y;
cnm = (cnm - 6);
_local4 = new ObjText2(x, (y - 100), "- 6", par);
};
};
};
};
if ((((_arg1.keyCode == attackkey)) && ((attackst == false)))){
if (roll.currentFrame < jump){
timer = 0;
roll.gotoAndPlay(attack);
};
if (roll.currentFrame == (jump + 3)){
if ((((roll.y < -110)) || ((roll.dy < 0)))){
roll.gotoAndPlay(attack2);
};
};
attackst = true;
};
if (_arg1.keyCode == jumpkey){
if ((((((roll.currentFrame < (jump - 2))) && ((roll.dy == 0)))) || ((((roll.currentFrame >= defend)) && ((roll.currentFrame <= (defend + 17))))))){
defendst = false;
roll.gotoAndPlay((jump - 2));
if (dx > 0){
scaleX = 1;
};
if (dx < 0){
scaleX = -1;
};
dxfix = dx;
};
};
if ((((_arg1.keyCode == defendkey)) && ((defendst == false)))){
if (roll.currentFrame < (jump - 2)){
roll.gotoAndPlay(defend);
SoundsManager.playSound("judun");
defendst = true;
};
};
};
}
private function action2(_arg1:KeyboardEvent):void{
if (actionstate == 0){
};
if (actionstate == 1){
if (_arg1.keyCode == upkey){
if (dy == -5){
dy = 0;
};
};
if (_arg1.keyCode == downkey){
if (dy == 5){
dy = 0;
};
};
if (_arg1.keyCode == leftkey){
if (dx == -7){
dx = 0;
};
};
if (_arg1.keyCode == rightkey){
if (dx == 7){
dx = 0;
};
};
if (_arg1.keyCode == throwkey){
icest = false;
firest = false;
curest = false;
};
if (_arg1.keyCode == attackkey){
attackst = false;
};
if (_arg1.keyCode == defendkey){
defendst = false;
};
};
}
public function createAssistweapon():void{
var _local1:*;
var _local2:*;
var _local3:*;
_local2 = ((x - 10) + (Math.random() * 20));
_local3 = ((y - 40) + (Math.random() * 10));
if (secswordnm == 1){
_local1 = new Aobj1(_local2, _local3, par, this);
};
if (secswordnm == 2){
_local1 = new Aobj2(_local2, _local3, par, this);
};
if (secswordnm == 3){
_local1 = new Aobj3(_local2, _local3, par, this);
};
if (secswordnm == 4){
_local1 = new Aobj4(_local2, _local3, par, this);
};
if (secswordnm == 5){
_local1 = new Aobj5(_local2, _local3, par, this);
};
if (secswordnm == 6){
_local1 = new Aobj6(_local2, _local3, par, this);
};
if (secswordnm == 7){
_local1 = new Aobj7(_local2, _local3, par, this);
};
}
private function rollaction(_arg1:Event):void{
roll.y = (roll.y + roll.dy);
if ((((roll.dy < 28)) && (!((roll.dy == 0))))){
roll.dy = (roll.dy + 3);
};
if (roll.currentFrame == jump){
roll.dy = -27.2;
};
if ((((roll.y == 0)) && ((roll.currentFrame == (hurt2 + 9))))){
roll.gotoAndPlay((hurt2 + 10));
};
if (roll.y > 0){
roll.y = 0;
roll.dy = 0;
dxfix = 0;
if ((((roll.currentFrame < throwact)) && ((roll.currentFrame > jump)))){
roll.gotoAndPlay(getdown);
};
if ((((roll.currentFrame <= (hurt2 + 9))) && ((roll.currentFrame > hurt2)))){
roll.gotoAndPlay((hurt2 + 10));
};
};
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
public function del3(){
if (Data.relivecrossnm == 0){
Data.gameend = 1;
par.del3();
} else {
Data.continueGame = true;
par.del2();
};
}
private function initFighter():void{
rollshadow = new Shadow(0, 0);
roll = new FighterRoll(0, 0);
if (swordnm == 1){
sword = new Sword1(roll.x, roll.y);
};
if (swordnm == 2){
sword = new Sword2(roll.x, roll.y);
};
if (swordnm == 3){
sword = new Sword3(roll.x, roll.y);
};
if (swordnm == 4){
sword = new Sword4(roll.x, roll.y);
};
if (swordnm == 5){
sword = new Sword5(roll.x, roll.y);
};
if (sheildnm == 1){
sheild = new Sheild1(roll.x, roll.y);
};
if (sheildnm == 2){
sheild = new Sheild2(roll.x, roll.y);
};
if (sheildnm == 3){
sheild = new Sheild3(roll.x, roll.y);
};
if (sheildnm == 4){
sheild = new Sheild4(roll.x, roll.y);
};
if (sheildnm == 5){
sheild = new Sheild5(roll.x, roll.y);
};
addChild(rollshadow);
addChild(roll);
addChild(sword);
addChild(sheild);
sword.addEventListener(Event.ENTER_FRAME, swordaction, false, 0, true);
sheild.addEventListener(Event.ENTER_FRAME, sheildaction, false, 0, true);
roll.addEventListener(Event.ENTER_FRAME, rollaction, false, 0, true);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, action1, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, action2, false, 0, true);
stage.focus = stage;
}
}
}//package
Section 291
//Fighter2 (Fighter2)
package {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
public class Fighter2 extends Sprite {
public const hurt2:uint = 130;
public const hurt:uint = 120;
public const jump:uint = 17;
public const attack:uint = 61;
public const defend:uint = 100;
public const attack2:uint = 77;
public const attack3:uint = 30;
public const attack4:uint = 45;
public const getdown:uint = 21;
public const song1:uint = 170;
public const song2:uint = 190;
public const song3:uint = 225;
public const walk:uint = 2;
public const throwact2:uint = 92;
public const throwact:uint = 85;
public var actionstate;// = 1
public var hitBall;
public var icest:Boolean;// = false
public var levelnm:Number;
public var secsword;
public var sheildnm:Number;// = 4
public var SAttack:Number;
public var swordnm:Number;// = 3
public var roll:MovieClip;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var strong:Number;// = 1000
public var par;
public var Sdefend:Number;
public var sheild:MovieClip;
public var life:Number;
public var dxfix:Number;// = 0
public var lifexxx:Number;
public var secswordnm:Number;
public var scoresavenm:Number;
public var firest:Boolean;// = false
private var light;
public var curest:Boolean;// = false
public var man:Boolean;// = true
public var cnm:Number;
public var defendst:Boolean;// = false
public var scorenm:Number;
public var playstate:Number;// = 0
private var rollshadow:MovieClip;
public var sword:MovieClip;
public function Fighter2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
swordnm = 3;
SAttack = (Data.SAttacknm + (2 * swordnm));
sheildnm = 4;
Sdefend = (Data.Sdefendnm + sheildnm);
secswordnm = Data.secondswordnm;
levelnm = Data.levelnm;
life = Data.lifenm;
lifexxx = Data.lifexxxnm;
cnm = Data.cnm;
scorenm = Data.scorenm;
scoresavenm = Data.scoresavenm;
dx = 0;
dxfix = 0;
dy = 0;
playstate = 0;
man = true;
strong = 1000;
defendst = false;
firest = false;
icest = false;
curest = false;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initFighter();
}
public function del():void{
Sdefend = 2;
swordnm = 1;
sheildnm = 1;
secswordnm = 1;
levelnm = 1;
cnm = 20;
life = 150;
lifexxx = 150;
scorenm = 0;
scoresavenm = 0;
Data.SAttacknm = 10;
Data.secondswordnm = secswordnm;
Data.lifenm = life;
Data.lifexxxnm = lifexxx;
Data.cnm = cnm;
Data.levelnm = levelnm;
Data.scorenm = scorenm;
Data.scoresavenm = scoresavenm;
sword.removeEventListener(Event.ENTER_FRAME, swordaction);
sheild.removeEventListener(Event.ENTER_FRAME, sheildaction);
roll.removeEventListener(Event.ENTER_FRAME, rollaction);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(rollshadow);
removeChild(roll);
removeChild(sheild);
removeChild(sword);
par.container3.removeChild(this);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (actionstate == 0){
};
if (actionstate == 1){
if ((((life <= 0)) && ((roll.currentFrame < hurt2)))){
roll.gotoAndPlay(hurt2);
};
if ((((((dx == 0)) && ((dy == 0)))) && ((roll.currentFrame < 13)))){
roll.gotoAndStop(1);
};
if (roll.currentFrame == 1){
dxfix = 0;
if (((!((dx == 0))) || (!((dy == 0))))){
roll.gotoAndPlay(2);
};
};
if ((((((roll.currentFrame >= 2)) && ((roll.currentFrame < 12)))) || ((((roll.currentFrame >= jump)) && ((roll.currentFrame <= (jump + 3))))))){
if (dx > 0){
scaleX = 1;
};
if (dx < 0){
scaleX = -1;
};
x = (x + dx);
y = (y + dy);
};
if ((((((((((dx == 0)) && ((dy == 0)))) && ((dxfix == 0)))) && ((roll.dy == 0)))) && ((roll.currentFrame < 12)))){
roll.gotoAndStop(1);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 7))))) && ((dxfix < 0)))){
dxfix = (dxfix + 2);
x = (x + dxfix);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 7))))) && ((dxfix > 0)))){
dxfix = (dxfix - 2);
x = (x + dxfix);
};
if (roll.currentFrame == (hurt + 7)){
dxfix = 0;
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 9))))) && ((dxfix < 0)))){
dxfix = (dxfix + 1.2);
x = (x + dxfix);
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 9))))) && ((dxfix > 0)))){
dxfix = (dxfix - 1.2);
x = (x + dxfix);
};
if (roll.currentFrame == (hurt + 9)){
if (roll.y == 0){
roll.gotoAndPlay((hurt + 10));
dx = 0;
dy = 0;
dxfix = 0;
};
};
if ((((roll.currentFrame >= defend)) && ((roll.currentFrame < hurt)))){
if ((((((roll.currentFrame >= defend)) && ((roll.currentFrame <= (defend + 4))))) && ((dxfix > 0)))){
dxfix = (dxfix - 3);
x = (x + dxfix);
};
if ((((((roll.currentFrame >= defend)) && ((roll.currentFrame <= (defend + 4))))) && ((dxfix < 0)))){
dxfix = (dxfix + 3);
x = (x + dxfix);
};
if (roll.currentFrame == (defend + 6)){
dxfix = 0;
};
if ((((roll.currentFrame >= (defend + 7))) && ((defendst == false)))){
if (((!((dx == 0))) || (!((dy == 0))))){
roll.gotoAndPlay(2);
if (dx > 0){
scaleX = 1;
};
if (dx < 0){
scaleX = -1;
};
};
};
};
if ((((roll.currentFrame == (attack + 2))) || ((roll.currentFrame == (attack2 + 2))))){
_local2 = ((x + roll.x) + (30 * scaleX));
_local3 = ((y + roll.y) - 76);
light = new SwordShadow(_local2, _local3, par);
light.scaleX = scaleX;
par.container3.setChildIndex(light, (par.container3.getChildIndex(this) + 1));
_local4 = (Math.random() * 2);
if (_local4 < 1){
SoundsManager.playSound("huidao1");
};
if (_local4 >= 1){
SoundsManager.playSound("huidao2");
};
};
if (x < 225){
x = 225;
};
if (x > 468){
x = 468;
};
if (y < 207){
y = 207;
};
if (y > 302){
y = 302;
};
};
}
private function sheildaction(_arg1:Event):void{
sheild.x = roll.x;
sheild.y = roll.y;
sheild.gotoAndStop(roll.currentFrame);
}
private function swordaction(_arg1:Event):void{
sword.x = roll.x;
sword.y = roll.y;
sword.gotoAndStop(roll.currentFrame);
}
private function rollaction(_arg1:Event):void{
roll.y = (roll.y + roll.dy);
if ((((roll.dy < 28)) && (!((roll.dy == 0))))){
roll.dy = (roll.dy + 3);
};
if (roll.currentFrame == jump){
roll.dy = -27.2;
};
if ((((roll.y == 0)) && ((roll.currentFrame == (hurt2 + 9))))){
roll.gotoAndPlay((hurt2 + 10));
};
if (roll.y > 0){
roll.y = 0;
roll.dy = 0;
dxfix = 0;
if ((((roll.currentFrame < throwact)) && ((roll.currentFrame > jump)))){
roll.gotoAndPlay(getdown);
};
if ((((roll.currentFrame <= (hurt2 + 9))) && ((roll.currentFrame > hurt2)))){
roll.gotoAndPlay((hurt2 + 10));
};
};
}
public function del2():void{
Sdefend = 2;
swordnm = 1;
sheildnm = 1;
secswordnm = 1;
levelnm = 1;
cnm = 20;
life = 150;
lifexxx = 150;
scorenm = 0;
scoresavenm = 0;
Data.SAttacknm = 10;
Data.secondswordnm = secswordnm;
Data.lifenm = life;
Data.lifexxxnm = lifexxx;
Data.cnm = cnm;
Data.levelnm = levelnm;
Data.scorenm = scorenm;
Data.scoresavenm = scoresavenm;
sword.removeEventListener(Event.ENTER_FRAME, swordaction);
sheild.removeEventListener(Event.ENTER_FRAME, sheildaction);
roll.removeEventListener(Event.ENTER_FRAME, rollaction);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(rollshadow);
removeChild(roll);
removeChild(sheild);
removeChild(sword);
par.container3.removeChild(this);
}
private function initFighter():void{
rollshadow = new Shadow(0, 0);
roll = new FighterRoll(0, 0);
if (swordnm == 1){
sword = new Sword1(roll.x, roll.y);
};
if (swordnm == 2){
sword = new Sword2(roll.x, roll.y);
};
if (swordnm == 3){
sword = new Sword3(roll.x, roll.y);
};
if (swordnm == 4){
sword = new Sword4(roll.x, roll.y);
};
if (swordnm == 5){
sword = new Sword5(roll.x, roll.y);
};
if (sheildnm == 1){
sheild = new Sheild1(roll.x, roll.y);
};
if (sheildnm == 2){
sheild = new Sheild2(roll.x, roll.y);
};
if (sheildnm == 3){
sheild = new Sheild3(roll.x, roll.y);
};
if (sheildnm == 4){
sheild = new Sheild4(roll.x, roll.y);
};
if (sheildnm == 5){
sheild = new Sheild5(roll.x, roll.y);
};
addChild(rollshadow);
addChild(roll);
addChild(sword);
addChild(sheild);
sword.addEventListener(Event.ENTER_FRAME, swordaction, false, 0, true);
sheild.addEventListener(Event.ENTER_FRAME, sheildaction, false, 0, true);
roll.addEventListener(Event.ENTER_FRAME, rollaction, false, 0, true);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 292
//Fire (Fire)
package {
import flash.events.*;
import flash.display.*;
public class Fire extends MovieClip {
public var timerXX;
public var targets;
private var attacknm:Number;// = 0
private var timer;// = 0
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 15
private var par;
private var fnm;
private var ly;
private var lx;
private var heigh;// = 0
private var inm;
public function Fire(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
timer = 0;
heigh = 0;
man = false;
SAttack = 15;
super();
addFrameScript(0, frame1, 8, frame9);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, fireAction, false, 0, true);
}
private function fireAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
var _local5:uint;
var _local6:uint;
var _local7:*;
var _local8:uint;
_local2 = ((Math.random() * 60) - 30);
_local3 = (((Math.random() * 10) + 30) - (30 * heigh));
_local5 = 0;
while (_local5 < par.container3.numChildren) {
t = par.container3.getChildAt(_local5);
_local4 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local5 < _local4)) && ((t.y > y)))) || ((((_local5 > _local4)) && ((t.y < y)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - y)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
_local2 = (t.x - (20 * t.scaleX));
_local3 = ((y - (Math.random() * 40)) - 30);
_local6 = 0;
while (_local6 < 12) {
fnm = ("fire" + _local6);
fnm = new FireStar3(_local2, _local3, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local6++;
};
if (t.strong < SAttack){
_local7 = (Math.random() * 2);
if (_local7 < 1){
t.scaleX = (t.scaleX * -1);
};
t.roll.gotoAndPlay(t.hurt);
t.life = (t.life - (SAttack - t.strong));
t.dxfix = 0;
t.dx = ((34 + (Math.random() * 2)) * t.scaleX);
t.dy = 0;
};
if (t.strong >= SAttack){
t.dxfix = ((6 + (Math.random() * 2)) * t.scaleX);
};
};
};
_local5++;
};
if ((((this.currentFrame == 1)) && (!((targets == null))))){
x = targets.x;
y = targets.y;
};
if (timer < timerXX){
timer++;
};
if (timer == timerXX){
if (this.currentFrame == 1){
this.gotoAndPlay(2);
SoundsManager.playSound("kuaihuo");
};
heigh++;
_local2 = ((Math.random() * 60) - 30);
_local3 = (((Math.random() * 10) + 30) - (30 * heigh));
if (this.currentFrame <= 4){
_local8 = 0;
while (_local8 < 13) {
fnm = ("fire" + _local8);
fnm = new FireStar2(_local2, _local3, this);
_local8++;
};
};
};
if ((((((par.stagechange == true)) && ((master.x > 240)))) && ((master.dx > 0)))){
x = (x - master.dx);
};
if (this.currentFrame == 9){
this.removeEventListener(Event.ENTER_FRAME, fireAction);
par.container3.removeChild(this);
};
}
function frame1(){
stop();
}
function frame9(){
stop();
}
}
}//package
Section 293
//FireBottle (FireBottle)
package {
import flash.events.*;
import flash.display.*;
public class FireBottle extends MovieClip {
public var yfix;
public var drot;
private var master;
private var hits;// = 0
public var man:Boolean;// = false
private var t;
public var roll;
public var SAttack:Number;// = 13
public var dy;
private var par;
private var fnm;
private var ly;
private var lx;
public var dx;
public function FireBottle(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hits = 0;
man = false;
SAttack = 13;
super();
addFrameScript(0, frame1, 34, frame35);
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
yfix = master.y;
this.addEventListener(Event.ENTER_FRAME, firebottleAction, false, 0, true);
}
function frame1(){
stop();
}
function frame35(){
stop();
}
private function firebottleAction(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
var _local6:*;
if ((((((((par.stagechange == true)) && ((master.x > 240)))) && ((master.dx > 0)))) && ((((((master.roll.currentFrame >= 2)) && ((master.roll.currentFrame < 12)))) || ((((master.roll.currentFrame >= master.jump)) && ((master.roll.currentFrame <= (master.jump + 3))))))))){
x = (x - master.dx);
};
if (this.currentFrame == 1){
rotation = (rotation + drot);
x = (x + dx);
y = (y + dy);
dy = (dy + 4);
if (y >= yfix){
y = yfix;
rotation = 0;
_local4 = 0;
while (_local4 < 15) {
fnm = new FireStar2(x, y, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(this) + 1));
_local4++;
};
if (hits == 0){
SoundsManager.playSound("mofapingluodi");
SoundsManager.playSound("xiaohuoshao");
hits++;
};
this.gotoAndPlay(2);
};
};
if ((((this.currentFrame <= 28)) && ((this.currentFrame >= 2)))){
_local5 = 0;
while (_local5 < 4) {
lx = ((Math.random() * 30) - 15);
ly = ((-(Math.random()) * 60) - 10);
fnm = new FireStar2(lx, ly, this);
_local5++;
};
};
_local3 = 0;
while (_local3 < par.container3.numChildren) {
t = par.container3.getChildAt(_local3);
_local2 = par.container3.getChildIndex(this);
if ((((((t.man == true)) && (!((t == master))))) && (!((t == this))))){
if ((((((_local3 < _local2)) && ((t.y > yfix)))) || ((((_local3 > _local2)) && ((t.y < yfix)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - yfix)) < 12)))) && ((t.roll.currentFrame < t.hurt)))){
lx = (t.x - (50 * t.scaleX));
ly = y;
_local5 = 0;
while (_local5 < 15) {
fnm = new FireStar2(lx, ly, par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local5++;
};
if (t.strong < SAttack){
_local6 = (Math.random() * 2);
if (_local6 < 1){
t.scaleX = (t.scaleX * -1);
};
t.roll.gotoAndPlay(t.hurt);
t.life = (t.life - (SAttack - t.strong));
t.dxfix = 0;
t.dx = ((14 + (Math.random() * 2)) * t.scaleX);
t.dy = 0;
};
if (t.strong >= SAttack){
t.dxfix = ((8 + (Math.random() * 2)) * t.scaleX);
};
};
};
_local3++;
};
if (this.currentFrame == 35){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, firebottleAction);
};
}
}
}//package
Section 294
//FireStar (FireStar)
package {
import flash.events.*;
import flash.display.*;
public class FireStar extends MovieClip {
public var man:Boolean;// = false
private var dy:Number;
private var par:Sprite;
private var dx:Number;
public function FireStar(_arg1:Number, _arg2:Number, _arg3:Sprite){
man = false;
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initFireStar();
}
private function initFireStar():void{
scaleX = (scaleY = ((Math.random() * 0.34) + 0.04));
dx = (4 - (Math.random() * 8));
dy = (3 - (Math.random() * 7));
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 0.1);
if (this.currentFrame == 10){
stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
}
}//package
Section 295
//FireStar2 (FireStar2)
package {
import flash.events.*;
import flash.display.*;
public class FireStar2 extends MovieClip {
public var man:Boolean;// = false
private var dy:Number;
private var par:Sprite;
private var dx:Number;
public function FireStar2(_arg1:Number, _arg2:Number, _arg3:Sprite){
man = false;
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initFireStar();
}
private function initFireStar():void{
scaleX = (scaleY = ((Math.random() * 0.4) + 0.1));
dx = (5 - (Math.random() * 10));
dy = (-15 - (Math.random() * 10));
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 4);
if (this.currentFrame == 10){
stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
}
}//package
Section 296
//FireStar3 (FireStar3)
package {
import flash.events.*;
import flash.display.*;
public class FireStar3 extends MovieClip {
public var man:Boolean;// = false
private var dy:Number;
private var par:Sprite;
private var dx:Number;
public function FireStar3(_arg1:Number, _arg2:Number, _arg3:Sprite){
man = false;
super();
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initFireStar();
}
private function initFireStar():void{
scaleX = (scaleY = ((Math.random() * 0.34) + 0.04));
dx = (4 - (Math.random() * 8));
dy = (3 - (Math.random() * 7));
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
dy = (dy + 0.1);
if (this.currentFrame == 10){
stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
}
}//package
Section 297
//Game (Game)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import com.google.analytics.*;
import url.*;
import data.*;
import flash.ui.*;
import flash.system.*;
public class Game extends MovieClip {
private var stages:Array;
private var loading;
public var sheds;
public var stagenm;// = 1
private var percent:Number;
private var menu:ContextMenu;
public var gamespirit:Sprite;
static var world3start:Boolean = false;
static var _tracker:AnalyticsTracker;
static var gamecomplete:Boolean = false;
public function Game(){
stages = new Array();
menu = new ContextMenu();
gamespirit = new Sprite();
stagenm = 1;
super();
this.stop();
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.stageFocusRect = false;
stage.tabChildren = false;
menu.hideBuiltInItems();
contextMenu = menu;
new Cookie();
loading = new Aload(300, 0);
addChild(loading);
language.Language = 1;
switch (Capabilities.playerType){
case "External":
break;
case "StandAlone":
break;
case "ActiveX":
stage.frameRate = 32;
break;
case "PlugIn":
break;
default:
break;
};
this.addEventListener(Event.ENTER_FRAME, thisaction);
}
public function changeStage(_arg1){
var _local2:*;
gamespirit.removeChild(stages[0]);
_local2 = new _arg1(this);
delete stages[0];
stages = [];
GC.clear();
stages.push(_local2);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
percent = int(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100));
if (percent < 100){
loading.loadings.gotoAndStop(percent);
};
if (percent == 100){
removeChild(loading);
loading = null;
this.gotoAndStop(3);
SoundsManager.init();
if (stagenm == 1){
addChild(gamespirit);
sheds = new Shed(300, 0);
addChild(sheds);
gamespirit.mask = sheds;
_local2 = new Stage1(this);
stages.push(_local2);
_tracker = new GATracker(this, "UA-6695967-1", "AS3", false);
_tracker.trackEvent("Blue Knight", "mainscreen viewed", "per session", 0);
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
public function changeStage2(_arg1){
var _local2:*;
gamespirit.removeChild(stages[0]);
_local2 = new Stage88(this, _arg1);
delete stages[0];
stages = [];
GC.clear();
stages.push(_local2);
}
}
}//package
Section 298
//GC (GC)
package {
import flash.net.*;
public class GC {
public static function clear():void{
try {
new LocalConnection().connect("haha");
new LocalConnection().connect("haha");
} catch(error:Error) {
};
}
}
}//package
Section 299
//Hecter (Hecter)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
public class Hecter extends Sprite {
public const hurt2:uint = 165;
public const attack4:uint = 130;
public const hurt:uint = 150;
public const attack:uint = 20;
public const die:uint = 225;
public const walk:uint = 2;
public const attack3:uint = 100;
public const attack2:uint = 47;
public var dxfix:Number;// = 0
private var bullet;
public var life:Number;// = 1200
private var hurtnm;// = 0
public var actionstate;// = 1
public var lifexxx:Number;// = 1200
public var hitBall:MovieClip;
private var fire;
private var bulletnm:Number;
private var hurtt;// = 0
public var number;
public var speed:Number;// = 10
private var shadows;
public var man:Boolean;// = true
private var fist;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
public var isboss:Boolean;// = false
private var par;
public var dx:Number;// = 0
public var strong:Number;// = 8
public var defend:Number;
public var rolldy;// = -30
private var rollshadow:MovieClip;
public function Hecter(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hurtnm = 0;
hurtt = 0;
rolldy = -30;
actionstate = 1;
isboss = false;
dx = 0;
dy = 0;
dxfix = 0;
life = 1200;
lifexxx = 1200;
strong = 8;
man = true;
speed = 10;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
hitBall = new HitMovie(-10, -50, this);
addChild(hitBall);
hitBall.width = 100;
hitBall.height = 160;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
rollshadow.scaleX = 1.2;
roll = new HecterRoll(0, 0);
addChild(roll);
roll.height = 150;
t = par.playRoll;
roll.addEventListener(Event.ENTER_FRAME, rollaction, false, 0, true);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
isboss = true;
}
private function rollaction(_arg1:Event):void{
if (roll.y < 0){
roll.y = (roll.y + rolldy);
rolldy = (rolldy + 2);
};
if ((((roll.y >= 0)) && ((roll.currentFrame == 0xFF)))){
roll.y = 0;
rolldy = 0;
roll.gotoAndPlay(0x0100);
};
}
public function del():void{
roll.stop();
roll.removeEventListener(Event.ENTER_FRAME, rollaction);
removeChild(roll);
if (isboss == true){
par.container5.removeChild(par.bossstates);
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.container3.removeChild(this);
par.currentEnm = 0;
par.be = 0;
if (par.stagenm < 10){
par.stagenm = 3;
};
}
private function stopAction():void{
dx = 0;
dy = 0;
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
if (actionstate == 0){
x = (x + dx);
};
if (actionstate == 1){
changeDepth();
if (isboss == true){
_local4 = int(((life / lifexxx) * 100));
par.bossstates.lifeMC.gotoAndStop(_local4);
};
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
hurtt++;
if (hurtt == 30){
hurtnm = 0;
};
if ((((life <= 0)) && ((roll.currentFrame < hurt2)))){
roll.gotoAndPlay(hurt2);
};
if ((((roll.currentFrame == 185)) && ((life <= 0)))){
roll.gotoAndPlay(die);
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
_local2 = ((x + roll.x) - (130 * scaleX));
_local3 = ((y + roll.y) - 80);
if (roll.currentFrame == (attack + 2)){
_local2 = ((x + roll.x) - (130 * scaleX));
_local3 = ((y + roll.y) - 70);
fist = new Fist(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.7);
fist.xxscale = scaleX;
fist.SAttack = 30;
};
if (roll.currentFrame == (attack + 6)){
_local2 = ((x + roll.x) - (120 * scaleX));
_local3 = ((y + roll.y) - 100);
fist = new Fist(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.7);
fist.xxscale = scaleX;
fist.SAttack = 30;
};
if (roll.currentFrame == (attack + 10)){
_local2 = ((x + roll.x) - (120 * scaleX));
_local3 = ((y + roll.y) - 40);
fist = new Fist(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.7);
fist.xxscale = scaleX;
fist.SAttack = 30;
};
if (roll.currentFrame == (attack2 + 20)){
_local2 = ((x + roll.x) - (140 * scaleX));
_local3 = ((y + roll.y) - 70);
fist = new Fist(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.xxscale = scaleX;
fist.SAttack = 30;
};
if ((((roll.currentFrame >= (attack3 + 4))) && ((roll.currentFrame <= (attack3 + 18))))){
_local2 = ((x - (Math.random() * 20)) - (55 * scaleX));
_local3 = ((y - (Math.random() * 10)) - 65);
bullet = ("bullet" + bulletnm);
bullet = new Bullet(_local2, _local3, par);
bullet.yfix = y;
bullet.scaleX = (bullet.scaleY = (0.25 + (Math.random() / 4)));
bullet.xxscale = scaleX;
par.container3.setChildIndex(bullet, (par.container3.getChildIndex(this) + 1));
bulletnm++;
bulletnm = (bulletnm % 30);
bullet = ("bullet" + bulletnm);
bullet = new IBullet(_local2, _local3, par);
bullet.yfix = y;
bullet.scaleY = 0.8;
bullet.scaleX = (bullet.scaleY * scaleX);
bullet.xxscale = scaleX;
par.container3.setChildIndex(bullet, (par.container3.getChildIndex(this) + 1));
bullet.dx = (-28 * scaleX);
bullet.dy = (3 + (Math.random() * 2));
bulletnm++;
bulletnm = (bulletnm % 30);
};
if (roll.currentFrame == 209){
_local2 = (x + roll.x);
_local3 = ((y + roll.y) - 80);
fist = new Fist(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 1.7);
fist.xxscale = scaleX;
SoundsManager.playSound("jurenshiwei");
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 51);
if (_local5 < 25){
dx = (-7 * scaleX);
dy = 0;
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 25)) && ((_local5 <= 50)))){
if (t.y < y){
dy = -4;
dx = 0;
};
if (t.y > y){
dy = 4;
dx = 0;
};
roll.gotoAndPlay(walk);
};
if (_local5 > 50){
dx = ((t.x - x) / 4);
if (Math.abs(dx) < 40){
dx = (-40 * scaleX);
};
dy = 0;
roll.gotoAndPlay(attack2);
};
};
if ((((roll.currentFrame >= attack2)) && ((roll.currentFrame <= (attack2 + 19))))){
if (t.x < x){
scaleX = 1;
};
if (t.x > x){
scaleX = -1;
};
shadows = new HecterS(x, y, par);
shadows.scaleX = scaleX;
shadows.gotoAndStop(roll.currentFrame);
par.container3.setChildIndex(shadows, par.container3.getChildIndex(this));
if ((((roll.currentFrame >= (attack2 + 12))) && ((roll.currentFrame < (attack2 + 18))))){
dx = ((t.x - x) / 5);
dy = ((t.y - y) / 2);
};
if (roll.currentFrame == (attack2 + 18)){
dx = 0;
dy = 0;
y = t.y;
};
if (roll.currentFrame == (attack2 + 19)){
y = t.y;
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 51);
if (_local6 < 25){
dx = (-7 * scaleX);
};
if ((((_local6 >= 25)) && ((_local6 < 50)))){
if (t.y < y){
dy = -4;
};
if (t.y > y){
dy = 4;
};
};
};
if ((((((Math.abs((t.x - x)) < 50)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
_local7 = (Math.random() * 12);
if (_local7 < 8){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack4);
};
};
if ((((((((Math.abs((t.x - x)) >= 50)) && ((Math.abs((t.x - x)) < 180)))) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((Math.abs((t.x - x)) >= 180)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack3);
};
if ((((roll.currentFrame >= hurt)) && ((roll.currentFrame <= (hurt + 5))))){
dx = 0;
};
if ((((roll.currentFrame >= hurt2)) && ((roll.currentFrame <= (hurt2 + 5))))){
dx = 0;
};
if (roll.currentFrame == (hurt + 1)){
hurtnm++;
hurtt = 0;
if (hurtnm == 3){
roll.gotoAndPlay(hurt2);
};
};
if (roll.currentFrame == (hurt + 9)){
_local8 = (Math.random() * 10);
if (_local8 < 8){
roll.gotoAndPlay(140);
};
if (_local8 >= 8){
if (x <= t.x){
x = (x - 40);
};
if (t.x < x){
x = (x + 40);
};
dx = ((x - t.x) / 4);
if (Math.abs(dx) < 40){
dx = (40 * scaleX);
};
roll.gotoAndPlay(attack2);
};
};
if (roll.currentFrame == 220){
if (Math.abs((t.y - y)) >= 12){
_local9 = (Math.random() * 12);
if (_local9 < 4){
dx = ((t.x - x) / 4);
if (Math.abs(dx) < 40){
dx = (-40 * scaleX);
};
dy = 0;
roll.gotoAndPlay(attack2);
};
if (_local9 >= 4){
if (t.y < y){
dy = -4;
dx = 0;
};
if (t.y > y){
dy = 4;
dx = 0;
};
roll.gotoAndPlay(walk);
};
};
if (Math.abs((t.y - y)) < 12){
_local10 = (Math.random() * 8);
if (_local10 < 3){
if (t.x < x){
scaleX = 1;
};
if (t.x > x){
scaleX = -1;
};
roll.gotoAndPlay(attack);
};
if (_local10 >= 3){
if (t.x < x){
scaleX = 1;
};
if (t.x > x){
scaleX = -1;
};
roll.gotoAndPlay(attack3);
};
};
};
if (x < -60){
x = -58;
stopAction();
};
if (x > 660){
x = 658;
stopAction();
};
if (y < 264){
y = 264;
stopAction();
};
if (y > 380){
y = 380;
stopAction();
};
if (roll.currentFrame == 236){
del();
};
};
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
}
}//package
Section 300
//HitMovie (HitMovie)
package {
import flash.display.*;
public class HitMovie extends MovieClip {
private var par:Sprite;
public function HitMovie(_arg1:Number, _arg2:Number, _arg3:Sprite){
_arg3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
}
}
}//package
Section 301
//Horseman (Horseman)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Horseman extends Sprite {
public const hurt:uint = 130;
public const attack:uint = 30;
public const jump:uint = 145;
public const die:uint = 170;
public const walk:uint = 2;
public const attack2:uint = 75;
public var dxfix:Number;// = 0
public var life:Number;// = 400
private var hurtnm;// = 0
public var actionstate;// = 1
public var lifexxx:Number;// = 400
public var hitBall:MovieClip;
private var fire;
private var hurtt;// = 0
public var number;
private var fist2:MovieClip;
public var speed:Number;// = 10
private var fist3:MovieClip;
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
public var isboss:Boolean;// = true
private var par;
private var lx;
public var strong:Number;// = 9
public var dx:Number;// = 0
private var ly;
public var defend:Number;
private var rollshadow:MovieClip;
public function Horseman(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hurtnm = 0;
hurtt = 0;
actionstate = 1;
isboss = true;
dx = 0;
dy = 0;
dxfix = 0;
life = 400;
lifexxx = 400;
strong = 9;
man = true;
speed = 10;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initRock1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
roll.stop();
removeChild(roll);
if (isboss == true){
par.be = 0;
par.container5.removeChild(par.bossstates);
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function initRock1():void{
hitBall = new HitMovie(0, -110, this);
addChild(hitBall);
hitBall.width = 100;
hitBall.height = 220;
rollshadow = new Shadow(20, 0);
addChild(rollshadow);
rollshadow.scaleX = 2.4;
roll = new HorsemanRoll(0, 0);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 90) + (Math.random() * 20));
_local4 = ((y - 10) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
if (isboss == true){
_local2 = int(((life / lifexxx) * 100));
par.bossstates.lifeMC.gotoAndStop(_local2);
};
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
roll.y = (roll.y + roll.dy);
if ((((roll.y >= 0)) && ((roll.dy > 0)))){
roll.y = 0;
roll.dy = 0;
dx = 0;
dy = 0;
roll.gotoAndPlay((jump + 10));
fist2 = new EIce2((x + (30 * scaleX)), y, par);
par.enemys.push(fist2);
fist2.number = fist2;
fist2.yfix = y;
par.container3.setChildIndex(fist2, (par.container3.getChildIndex(this) + 1));
fist2.xxscale = scaleX;
SoundsManager.playSound("renmaluodi");
};
if (roll.dy != 0){
roll.dy = (roll.dy + 6);
};
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
hurtt++;
if (hurtt == 30){
hurtnm = 0;
};
if ((((roll.currentFrame == 2)) || ((roll.currentFrame == 7)))){
SoundsManager.playSound("renmajiaobu");
};
if (roll.currentFrame == (hurt + 1)){
hurtnm++;
hurtt = 0;
if (hurtnm == 3){
dx = 0;
dy = 0;
roll.gotoAndPlay(jump);
SoundsManager.playSound("renmajiaobu");
};
};
if (roll.currentFrame == (jump + 7)){
dx = ((t.x - x) / 30);
dy = ((t.y - y) / 30);
roll.dy = -78.2;
};
if (roll.currentFrame == (jump + 9)){
dx = 0;
dy = 0;
x = t.x;
y = t.y;
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 9)){
fist = new ESwordShadow3(x, y, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = scaleX;
fist.xxscale = scaleX;
SoundsManager.playSound("dadao");
};
if (roll.currentFrame == (attack + 14)){
lx = ((x + roll.x) - (85 * scaleX));
fist2 = new EIce(lx, y, par);
par.enemys.push(fist2);
fist2.number = fist2;
fist2.yfix = y;
par.container3.setChildIndex(fist2, (par.container3.getChildIndex(this) + 1));
fist2.xxscale = scaleX;
};
if (roll.currentFrame == (attack2 + 9)){
lx = ((x + roll.x) - (180 * scaleX));
ly = (y - 90);
fist3 = new Fist(lx, ly, par);
fist3.yfix = y;
par.container3.setChildIndex(fist3, (par.container3.getChildIndex(this) + 1));
fist3.scaleX = (fist3.scaleY = 1.3);
fist3.xxscale = scaleX;
fist3.SAttack = 30;
SoundsManager.playSound("dadao");
};
if (roll.currentFrame == 1){
_local3 = (Math.random() * 51);
if (_local3 < 12){
dx = (5 * scaleX);
roll.gotoAndPlay(walk);
};
if ((((((_local3 >= 12)) && ((_local3 < 17)))) && ((t.roll.currentFrame < t.hurt2)))){
if (t.y < y){
dy = -3;
};
if (t.y > y){
dy = 3;
};
roll.gotoAndPlay(walk);
};
if ((((_local3 > 50)) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(jump);
SoundsManager.playSound("renmajiaobu");
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local4 = (Math.random() * 51);
if (_local4 < 12){
dx = (-5 * scaleX);
};
if ((((_local4 >= 12)) && ((_local4 < 17)))){
if (t.y < y){
dy = -3;
};
if (t.y > y){
dy = 3;
};
};
if ((((_local4 > 50)) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(jump);
SoundsManager.playSound("renmajiaobu");
};
};
if ((((((Math.abs((t.x - x)) < 300)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
_local5 = (Math.random() * 10);
if ((((_local5 < 7)) && ((t.roll.currentFrame < t.hurt2)))){
roll.gotoAndPlay(attack);
};
if ((((_local5 >= 7)) && ((t.roll.currentFrame < t.hurt2)))){
roll.gotoAndPlay(attack2);
};
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (die + 7)){
dx = 0;
};
if (x < -140){
x = -138;
dx = 0;
dy = 0;
};
if (x > 740){
x = 738;
dx = 0;
dy = 0;
};
if (y < 274){
y = 274;
dx = 0;
dy = 0;
};
if (y > 380){
y = 380;
dx = 0;
dy = 0;
};
if ((((roll.currentFrame < die)) && ((life <= 0)))){
dx = (21 * scaleX);
roll.gotoAndPlay(die);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Gem6);
createObj(Tomato);
_local6 = (Math.random() * 100);
if (_local6 < 70){
createObj(Gem3);
};
if ((((_local6 >= 70)) && ((_local6 < 92)))){
createObj(Gem4);
};
if (_local6 >= 92){
createObj(Gem5);
};
};
if (roll.currentFrame == (die + 1)){
removeChild(hitBall);
};
if (roll.currentFrame == 272){
del();
};
};
}
}
}//package
Section 302
//huidao1 (huidao1)
package {
import flash.media.*;
public dynamic class huidao1 extends Sound {
}
}//package
Section 303
//huidao2 (huidao2)
package {
import flash.media.*;
public dynamic class huidao2 extends Sound {
}
}//package
Section 304
//Ice (Ice)
package {
import flash.events.*;
import flash.display.*;
public class Ice extends MovieClip {
private var attacknm:Number;// = 0
private var timer;// = 0
private var master;
public var man:Boolean;// = false
private var t;
public var roll;
public var xxscale;
public var xfix;// = 0
private var par;
public var SAttack:Number;// = 12
private var fnm;
private var ly;
private var lx;
private var inm;
public function Ice(_arg1:Number=0, _arg2:Number=0, _arg3=null){
attacknm = 0;
timer = 0;
xfix = 0;
man = false;
SAttack = 12;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
master = _arg3.playRoll;
this.addEventListener(Event.ENTER_FRAME, iceAction, false, 0, true);
}
private function iceAction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:uint;
var _local6:uint;
var _local7:*;
_local2 = (((Math.random() * 50) - 25) + xfix);
_local3 = ((Math.random() * 10) - 5);
_local4 = 0;
_local6 = 0;
while (_local6 < par.container3.numChildren) {
t = par.container3.getChildAt(_local6);
_local5 = par.container3.getChildIndex(this);
if ((((t.man == true)) && (!((t == master))))){
if ((((((_local6 < _local5)) && ((t.y > y)))) || ((((_local6 > _local5)) && ((t.y < y)))))){
par.container3.swapChildren(t, this);
};
if (((((this.hitTestObject(t.roll)) && ((Math.abs((t.y - y)) < 14)))) && ((t.roll.currentFrame < t.hurt)))){
if (t.strong < SAttack){
t.roll.gotoAndPlay(t.hurt);
t.life = (t.life - (SAttack - t.strong));
t.dxfix = 0;
t.dx = ((4 + (Math.random() * 2)) * t.scaleX);
t.dy = 0;
};
if (t.strong >= SAttack){
t.dxfix = ((4 + (Math.random() * 2)) * t.scaleX);
};
};
};
_local6++;
};
timer++;
_local7 = (Math.random() * 2);
_local2 = (((Math.random() * 50) - 25) + xfix);
_local3 = ((Math.random() * 10) - 5);
if (timer == 1){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
};
_local4 = 0;
while (_local4 < 20) {
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
SoundsManager.playSound("dabin");
};
if (timer == 3){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 5){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 7){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 9){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 11){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
SoundsManager.playSound("dabin");
};
if (timer == 13){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 15){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 17){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 19){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 21){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
SoundsManager.playSound("dabin");
};
if (timer == 23){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 25){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 27){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if (timer == 29){
if (_local7 < 1){
inm = new Ice1(_local2, _local3, this);
this.setChildIndex(inm, 0);
};
if (_local7 >= 1){
inm = new Ice2(_local2, _local3, this);
};
xfix = (xfix + (xxscale * 80));
_local4 = 0;
while (_local4 < 20) {
fnm = ("fire" + _local4);
fnm = new FireStar((this.x + _local2), (this.y + _local3), par.container3);
par.container3.setChildIndex(fnm, (par.container3.getChildIndex(t) + 1));
_local4++;
};
};
if ((((((((par.stagechange == true)) && ((master.x > 240)))) && ((master.dx > 0)))) && ((((((master.roll.currentFrame >= 2)) && ((master.roll.currentFrame < 12)))) || ((((master.roll.currentFrame >= master.jump)) && ((master.roll.currentFrame <= (master.jump + 3))))))))){
x = (x - master.dx);
};
if ((((((x > 630)) || ((x < -30)))) || ((timer >= 75)))){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, iceAction);
};
}
}
}//package
Section 305
//Ice1 (Ice1)
package {
import flash.events.*;
import flash.display.*;
public class Ice1 extends MovieClip {
private var par;
public function Ice1(_arg1:Number, _arg2:Number, _arg3){
var _local4:*;
super();
addFrameScript(44, frame45);
_arg3.addChild(this);
par = _arg3;
par.xfix = (par.xfix + (par.xxscale * 20));
_local4 = (Math.random() * 2);
if (_local4 < 1){
scaleX = ((Math.random() * 0.5) + 0.6);
scaleY = scaleX;
};
if (_local4 >= 1){
scaleX = -(((Math.random() * 0.5) + 0.6));
scaleY = -(scaleX);
};
rotation = ((Math.random() * 90) - 45);
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, iceAction, false, 0, true);
}
private function iceAction(_arg1:Event):void{
if (this.currentFrame == 40){
SoundsManager.playSound("dabin");
};
if (this.currentFrame == 45){
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, iceAction);
};
}
function frame45(){
stop();
}
}
}//package
Section 306
//Ice2 (Ice2)
package {
import flash.events.*;
import flash.display.*;
public class Ice2 extends MovieClip {
private var par;
public function Ice2(_arg1:Number, _arg2:Number, _arg3){
var _local4:*;
super();
addFrameScript(44, frame45);
_arg3.addChild(this);
par = _arg3;
_arg3.xfix = (_arg3.xfix + (_arg3.xxscale * 20));
_local4 = (Math.random() * 2);
if (_local4 < 1){
scaleX = ((Math.random() * 0.5) + 0.6);
scaleY = scaleX;
};
if (_local4 >= 1){
scaleX = -(((Math.random() * 0.5) + 0.6));
scaleY = -(scaleX);
};
rotation = ((Math.random() * 90) - 45);
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, iceAction, false, 0, true);
}
private function iceAction(_arg1:Event):void{
if (this.currentFrame == 40){
SoundsManager.playSound("dabin");
};
if (this.currentFrame == 45){
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, iceAction);
};
}
function frame45(){
stop();
}
}
}//package
Section 307
//judun (judun)
package {
import flash.media.*;
public dynamic class judun extends Sound {
}
}//package
Section 308
//jueseshengji (jueseshengji)
package {
import flash.media.*;
public dynamic class jueseshengji extends Sound {
}
}//package
Section 309
//jurenchongzhuang (jurenchongzhuang)
package {
import flash.media.*;
public dynamic class jurenchongzhuang extends Sound {
}
}//package
Section 310
//jurenjiaobu1 (jurenjiaobu1)
package {
import flash.media.*;
public dynamic class jurenjiaobu1 extends Sound {
}
}//package
Section 311
//jurenjiaobu2 (jurenjiaobu2)
package {
import flash.media.*;
public dynamic class jurenjiaobu2 extends Sound {
}
}//package
Section 312
//jurenkan (jurenkan)
package {
import flash.media.*;
public dynamic class jurenkan extends Sound {
}
}//package
Section 313
//jurenshangtiao (jurenshangtiao)
package {
import flash.media.*;
public dynamic class jurenshangtiao extends Sound {
}
}//package
Section 314
//jurenshiwei (jurenshiwei)
package {
import flash.media.*;
public dynamic class jurenshiwei extends Sound {
}
}//package
Section 315
//jurensiwang (jurensiwang)
package {
import flash.media.*;
public dynamic class jurensiwang extends Sound {
}
}//package
Section 316
//kaixiang (kaixiang)
package {
import flash.media.*;
public dynamic class kaixiang extends Sound {
}
}//package
Section 317
//kanzhong (kanzhong)
package {
import flash.media.*;
public dynamic class kanzhong extends Sound {
}
}//package
Section 318
//kuaihuo (kuaihuo)
package {
import flash.media.*;
public dynamic class kuaihuo extends Sound {
}
}//package
Section 319
//kuijiabaohu (kuijiabaohu)
package {
import flash.media.*;
public dynamic class kuijiabaohu extends Sound {
}
}//package
Section 320
//kulousanjia (kulousanjia)
package {
import flash.media.*;
public dynamic class kulousanjia extends Sound {
}
}//package
Section 321
//longchibang (longchibang)
package {
import flash.media.*;
public dynamic class longchibang extends Sound {
}
}//package
Section 322
//longhuaguo (longhuaguo)
package {
import flash.media.*;
public dynamic class longhuaguo extends Sound {
}
}//package
Section 323
//longjiao (longjiao)
package {
import flash.media.*;
public dynamic class longjiao extends Sound {
}
}//package
Section 324
//longsiwang (longsiwang)
package {
import flash.media.*;
public dynamic class longsiwang extends Sound {
}
}//package
Section 325
//lose (lose)
package {
import flash.media.*;
public dynamic class lose extends Sound {
}
}//package
Section 326
//Mage (Mage)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Mage extends Sprite {
public const moveaction:uint = 230;
public const Fattack:uint = 15;
public const hurt:uint = 85;
public const die:uint = 100;
public const walk:uint = 2;
public const Iattack:uint = 50;
public var dxfix:Number;// = 0
public var life:Number;// = 450
private var hurtnm;// = 0
public var actionstate;// = 1
public var lifexxx:Number;// = 450
public var hitBall:MovieClip;
private var fire;
private var hurtt;// = 0
public var number;
public var speed:Number;// = 100
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var isboss:Boolean;// = false
private var par;
private var lx;// = 0
public var strong:Number;// = 4
public var dx:Number;// = 0
public var dy:Number;// = 0
private var ly;// = 0
private var itime;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Mage(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hurtnm = 0;
hurtt = 0;
lx = 0;
ly = 0;
itime = 0;
actionstate = 1;
isboss = false;
dx = 0;
dy = 0;
dxfix = 0;
life = 450;
lifexxx = 450;
strong = 4;
man = true;
speed = 100;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initMage();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
if (isboss == true){
par.be = 0;
par.container5.removeChild(par.bossstates);
};
if (isboss == false){
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
if (isboss == true){
_local2 = int(((life / lifexxx) * 100));
par.bossstates.lifeMC.gotoAndStop(_local2);
};
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
hurtt++;
if (hurtt == 30){
hurtnm = 0;
};
if ((((roll.currentFrame < die)) && ((life <= 0)))){
dx = 0;
roll.gotoAndPlay(die);
SoundsManager.playSound("wushisiwang");
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
if (isboss == true){
createObj(Relivecross);
};
_local3 = (Math.random() * 100);
if (_local3 < 70){
createObj(Berry);
};
if ((((_local3 >= 70)) && ((_local3 < 92)))){
createObj(Gem4);
};
if (_local3 >= 92){
createObj(Gem3);
};
};
if (roll.currentFrame == (hurt + 1)){
SoundsManager.playSound("wushichuzhao");
hurtnm++;
hurtt = 0;
if ((((hurtnm == 3)) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
dxfix = 0;
roll.gotoAndPlay(moveaction);
SoundsManager.playSound("wushishunxiaoshi");
};
};
if (roll.currentFrame == (moveaction + 6)){
x = ((Math.random() * 500) + 50);
y = ((Math.random() * 100) + 276);
SoundsManager.playSound("wushishunchuxian");
};
if ((((t.x < x)) && ((((roll.currentFrame < Fattack)) || ((roll.currentFrame == (moveaction + 6))))))){
scaleX = 1;
};
if ((((t.x > x)) && ((((roll.currentFrame < Fattack)) || ((roll.currentFrame == (moveaction + 6))))))){
scaleX = -1;
};
if (roll.currentFrame == (Fattack + 11)){
lx = x;
ly = y;
};
if ((((roll.currentFrame >= (Fattack + 12))) && ((roll.currentFrame <= (Fattack + 18))))){
lx = (lx - (90 * scaleX));
fist = new EFire(lx, ly, par);
par.enemys.push(fist);
fist.number = fist;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.xxscale = scaleX;
};
if (roll.currentFrame == (Iattack + 11)){
lx = x;
ly = y;
itime = 0;
};
if ((((roll.currentFrame >= (Iattack + 12))) && ((roll.currentFrame <= (Iattack + 28))))){
itime++;
itime = (itime % 3);
if (itime == 0){
lx = (lx + ((t.x - x) / 4));
ly = (ly + ((t.y - y) / 4));
fist = new EFire(lx, ly, par);
par.enemys.push(fist);
fist.number = fist;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.xxscale = scaleX;
};
};
if (roll.currentFrame == 1){
_local4 = (Math.random() * 51);
if (_local4 < 12){
dx = (4 * scaleX);
roll.gotoAndPlay(walk);
};
if ((((_local4 >= 12)) && ((_local4 < 17)))){
if (t.y < y){
dy = -2.6;
};
if (t.y > y){
dy = 2.6;
};
roll.gotoAndPlay(walk);
};
if (_local4 > 50){
dx = 0;
dy = 0;
roll.gotoAndPlay(Iattack);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < Fattack)))){
_local5 = (Math.random() * 51);
if (_local5 < 12){
dx = (-4 * scaleX);
};
if ((((_local5 >= 12)) && ((_local5 < 17)))){
if (t.y < y){
dy = -2.6;
};
if (t.y > y){
dy = 2.6;
};
};
if (_local4 > 48){
stopAction();
};
};
if ((((((((((((((Math.abs((t.x - x)) > 400)) && ((Math.abs((t.x - x)) < 500)))) && ((Math.abs((t.y - y)) < 40)))) && ((roll.currentFrame < Fattack)))) && ((x < 600)))) && ((x > 0)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(Fattack);
};
if ((((((((((((((Math.abs((t.x - x)) >= 100)) && ((Math.abs((t.x - x)) <= 400)))) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < Fattack)))) && ((x < 600)))) && ((x > 0)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(Iattack);
};
if ((((((Math.abs((t.x - x)) < 100)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < Fattack)))){
_local6 = (Math.random() * 6);
if ((((_local6 < 1)) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
dxfix = 0;
roll.gotoAndPlay(moveaction);
SoundsManager.playSound("wushishunxiaoshi");
};
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (roll.currentFrame == (die + 1)){
dx = 0;
};
if (x < -80){
x = -80;
dx = 0;
dy = 0;
};
if (x > 680){
x = 680;
dx = 0;
dy = 0;
};
if (y < 274){
y = 274;
dx = 0;
dy = 0;
};
if (y > 380){
y = 380;
dx = 0;
dy = 0;
};
if (roll.currentFrame == (die + 1)){
removeChild(hitBall);
removeChild(rollshadow);
};
if (roll.currentFrame == 217){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
private function initMage():void{
hitBall = new HitMovie(0, -60, this);
addChild(hitBall);
hitBall.width = 60;
hitBall.height = 120;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
rollshadow.scaleX = 1.4;
roll = new MageRoll(0, 0);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 327
//MagicStar1 (MagicStar1)
package {
import flash.events.*;
import flash.display.*;
public class MagicStar1 extends MovieClip {
public var dy;
private var par;
public var dx;
public function MagicStar1(_arg1:Number=0, _arg2:Number=0, _arg3=null){
dx = ((Math.random() * 1.5) - 0.3);
dy = (-1.5 - (Math.random() * 3));
super();
_arg3.addChild(this);
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
par = _arg3;
}
private function thisaction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
if ((((this.x > 650)) || ((this.y < -250)))){
stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
}
}//package
Section 328
//MagicStar2 (MagicStar2)
package {
import flash.events.*;
import flash.display.*;
public class MagicStar2 extends MovieClip {
public var dy;
private var par;
public var dx;
public function MagicStar2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
dx = ((Math.random() * 1.5) - 0.3);
dy = (-1.5 - (Math.random() * 3));
super();
_arg3.addChild(this);
x = _arg1;
y = _arg2;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
par = _arg3;
}
private function thisaction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
if ((((this.x > 650)) || ((this.y < -250)))){
stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
}
}//package
Section 329
//MagicStar3 (MagicStar3)
package {
import flash.events.*;
import flash.display.*;
public class MagicStar3 extends MovieClip {
public var dy;
private var par;
public var dx;
public function MagicStar3(_arg1:Number=0, _arg2:Number=0, _arg3=null){
dx = ((Math.random() * 1) - 0.5);
dy = (-1.5 - (Math.random() * 2));
super();
_arg3.addChild(this);
x = _arg1;
y = _arg2;
scaleX = (scaleY = (Math.random() + 0.6));
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
par = _arg3;
}
private function thisaction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
alpha = (alpha - 0.025);
if ((((((this.x > 650)) || ((this.y < -250)))) || ((alpha <= 0)))){
stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
}
}//package
Section 330
//MagicStar4 (MagicStar4)
package {
import flash.events.*;
import flash.display.*;
public class MagicStar4 extends MovieClip {
public var dy;
private var par;
public var dx;
public function MagicStar4(_arg1:Number=0, _arg2:Number=0, _arg3=null){
dx = ((Math.random() * 1) - 0.5);
dy = (-1.5 - (Math.random() * 2));
super();
_arg3.addChild(this);
x = _arg1;
y = _arg2;
scaleX = (scaleY = (Math.random() + 0.6));
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
par = _arg3;
}
private function thisaction(_arg1:Event):void{
x = (x + dx);
y = (y + dy);
alpha = (alpha - 0.025);
if ((((((this.x > 650)) || ((this.y < -250)))) || ((alpha <= 0)))){
stop();
par.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
}
}//package
Section 331
//menu (menu)
package {
import flash.media.*;
public dynamic class menu extends Sound {
}
}//package
Section 332
//menu_press (menu_press)
package {
import flash.media.*;
public dynamic class menu_press extends Sound {
}
}//package
Section 333
//menu_touch (menu_touch)
package {
import flash.media.*;
public dynamic class menu_touch extends Sound {
}
}//package
Section 334
//mofapingluodi (mofapingluodi)
package {
import flash.media.*;
public dynamic class mofapingluodi extends Sound {
}
}//package
Section 335
//mountain (mountain)
package {
import flash.media.*;
public dynamic class mountain extends Sound {
}
}//package
Section 336
//niaorenchuzhao (niaorenchuzhao)
package {
import flash.media.*;
public dynamic class niaorenchuzhao extends Sound {
}
}//package
Section 337
//niaorensiwang (niaorensiwang)
package {
import flash.media.*;
public dynamic class niaorensiwang extends Sound {
}
}//package
Section 338
//niaorenzhongzhao (niaorenzhongzhao)
package {
import flash.media.*;
public dynamic class niaorenzhongzhao extends Sound {
}
}//package
Section 339
//ObjText (ObjText)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class ObjText extends MovieClip {
private var myTextBox:TextField;
public var man:Boolean;// = false
private var par;
public var textcontent:String;
public function ObjText(_arg1:Number, _arg2:Number, _arg3:String, _arg4){
myTextBox = new TextField();
man = false;
super();
_arg4.container3.addChild(this);
par = _arg4;
x = _arg1;
y = _arg2;
textcontent = _arg3;
initdialog();
}
private function thisaction(_arg1:Event):void{
y = (y - 4);
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
private function initdialog():void{
var _local1:TextFormat;
addChild(myTextBox);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.type = TextFieldType.DYNAMIC;
myTextBox.width = 210;
myTextBox.height = 30;
myTextBox.x = -105;
myTextBox.y = 0;
_local1 = new TextFormat();
_local1.align = TextFormatAlign.CENTER;
_local1.font = "_sans";
_local1.color = 12515836;
_local1.size = 12;
_local1.bold = true;
myTextBox.defaultTextFormat = _local1;
myTextBox.text = textcontent;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 340
//ObjText2 (ObjText2)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class ObjText2 extends MovieClip {
private var myTextBox:TextField;
private var tnm;// = 10
public var man:Boolean;// = false
private var par;
public var textcontent:String;
public function ObjText2(_arg1:Number, _arg2:Number, _arg3:String, _arg4){
myTextBox = new TextField();
tnm = 10;
man = false;
super();
_arg4.container3.addChild(this);
par = _arg4;
x = _arg1;
y = _arg2;
textcontent = _arg3;
initdialog();
}
private function thisaction(_arg1:Event):void{
y = (y - 4);
tnm = (tnm - 0.5);
if (tnm <= 0){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
private function initdialog():void{
var _local1:TextFormat;
addChild(myTextBox);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.type = TextFieldType.DYNAMIC;
myTextBox.width = 90;
myTextBox.height = 30;
myTextBox.x = 22;
myTextBox.y = -12;
_local1 = new TextFormat();
_local1.font = "_sans";
_local1.color = 0xFFFFFF;
_local1.size = 14;
_local1.bold = true;
myTextBox.defaultTextFormat = _local1;
myTextBox.text = textcontent;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 341
//ObjText3 (ObjText3)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class ObjText3 extends MovieClip {
private var myTextBox:TextField;
public var man:Boolean;// = false
private var par;
public var textcontent:String;
public function ObjText3(_arg1:Number, _arg2:Number, _arg3:String, _arg4){
myTextBox = new TextField();
man = false;
super();
_arg4.container3.addChild(this);
par = _arg4;
x = _arg1;
y = _arg2;
textcontent = _arg3;
initdialog();
}
private function thisaction(_arg1:Event):void{
y = (y - 4);
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
private function initdialog():void{
var _local1:TextFormat;
addChild(myTextBox);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.type = TextFieldType.DYNAMIC;
myTextBox.width = 210;
myTextBox.height = 30;
myTextBox.x = -105;
myTextBox.y = 0;
_local1 = new TextFormat();
_local1.align = TextFormatAlign.CENTER;
_local1.font = "_sans";
_local1.color = 16777062;
_local1.size = 12;
_local1.bold = true;
myTextBox.defaultTextFormat = _local1;
myTextBox.text = textcontent;
SoundsManager.playSound("coinsound");
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 342
//ObjText4 (ObjText4)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class ObjText4 extends MovieClip {
private var myTextBox:TextField;
public var man:Boolean;// = false
private var par;
public var textcontent:String;
public function ObjText4(_arg1:Number, _arg2:Number, _arg3:String, _arg4){
myTextBox = new TextField();
man = false;
super();
_arg4.container3.addChild(this);
par = _arg4;
x = _arg1;
y = _arg2;
textcontent = _arg3;
initdialog();
}
private function thisaction(_arg1:Event):void{
y = (y - 4);
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
private function initdialog():void{
var _local1:TextFormat;
addChild(myTextBox);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.type = TextFieldType.DYNAMIC;
myTextBox.width = 210;
myTextBox.height = 30;
myTextBox.x = -105;
myTextBox.y = 0;
_local1 = new TextFormat();
_local1.align = TextFormatAlign.CENTER;
_local1.font = "_sans";
_local1.color = 11197498;
_local1.size = 12;
_local1.bold = true;
myTextBox.defaultTextFormat = _local1;
myTextBox.text = textcontent;
SoundsManager.playSound("chixue");
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 343
//ObjText5 (ObjText5)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class ObjText5 extends MovieClip {
private var myTextBox:TextField;
public var man:Boolean;// = false
private var par;
public var textcontent:String;
public function ObjText5(_arg1:Number, _arg2:Number, _arg3:String, _arg4){
myTextBox = new TextField();
man = false;
super();
_arg4.container3.addChild(this);
par = _arg4;
x = _arg1;
y = _arg2;
textcontent = _arg3;
initdialog();
}
private function thisaction(_arg1:Event):void{
y = (y - 4);
this.alpha = (this.alpha - 0.05);
if (this.alpha <= 0){
par.container3.removeChild(this);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
};
}
private function initdialog():void{
var _local1:TextFormat;
addChild(myTextBox);
myTextBox.selectable = false;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.type = TextFieldType.DYNAMIC;
myTextBox.width = 210;
myTextBox.height = 30;
myTextBox.x = -105;
myTextBox.y = 0;
_local1 = new TextFormat();
_local1.align = TextFormatAlign.CENTER;
_local1.font = "_sans";
_local1.color = 0xFFFFFF;
_local1.size = 14;
_local1.bold = true;
myTextBox.defaultTextFormat = _local1;
myTextBox.text = textcontent;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 344
//qiehuanjineng (qiehuanjineng)
package {
import flash.media.*;
public dynamic class qiehuanjineng extends Sound {
}
}//package
Section 345
//qishishoushang1 (qishishoushang1)
package {
import flash.media.*;
public dynamic class qishishoushang1 extends Sound {
}
}//package
Section 346
//qishishoushang2 (qishishoushang2)
package {
import flash.media.*;
public dynamic class qishishoushang2 extends Sound {
}
}//package
Section 347
//renmajiaobu (renmajiaobu)
package {
import flash.media.*;
public dynamic class renmajiaobu extends Sound {
}
}//package
Section 348
//renmaluodi (renmaluodi)
package {
import flash.media.*;
public dynamic class renmaluodi extends Sound {
}
}//package
Section 349
//Rock1 (Rock1)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Rock1 extends Sprite {
public const hurt2:uint = 100;
public const hurt:uint = 85;
public const attack:uint = 30;
public const die:uint = 130;
public const walk:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 180
private var hurtnm;// = 0
public var actionstate;// = 1
public var lifexxx:Number;// = 180
public var hitBall:MovieClip;
private var fire;
private var hurtt;// = 0
public var number;
public var speed:Number;// = 10
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
public var isboss:Boolean;// = false
private var par;
public var strong:Number;// = 6
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Rock1(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hurtnm = 0;
hurtt = 0;
actionstate = 1;
isboss = false;
dx = 0;
dy = 0;
dxfix = 0;
life = 180;
lifexxx = 180;
strong = 6;
man = true;
speed = 10;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initRock1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
if (isboss == true){
par.be = 0;
par.container5.removeChild(par.bossstates);
};
if (isboss == false){
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function initRock1():void{
hitBall = new HitMovie(0, -90, this);
addChild(hitBall);
hitBall.width = 100;
hitBall.height = 180;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
rollshadow.scaleX = 1.4;
roll = new Rock1Roll(0, 0);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
if (isboss == true){
_local2 = int(((life / lifexxx) * 100));
par.bossstates.lifeMC.gotoAndStop(_local2);
};
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
hurtt++;
if (hurtt == 30){
hurtnm = 0;
};
if (roll.currentFrame == (hurt + 1)){
hurtnm++;
hurtt = 0;
if (hurtnm == 3){
roll.gotoAndPlay(hurt2);
};
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 9)){
_local3 = ((x + roll.x) - (108 * scaleX));
_local4 = y;
fist = new ESwordShadow(_local3, _local4, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = scaleX;
fist.xxscale = scaleX;
SoundsManager.playSound("dadao");
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 51);
if (_local5 < 12){
dx = (4 * scaleX);
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 12)) && ((_local5 < 17)))){
if (t.y < y){
dy = -2.6;
};
if (t.y > y){
dy = 2.6;
};
roll.gotoAndPlay(walk);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 51);
if (_local6 < 12){
dx = (-4 * scaleX);
};
if ((((_local6 >= 12)) && ((_local6 < 17)))){
if (t.y < y){
dy = -2.6;
};
if (t.y > y){
dy = 2.6;
};
};
if (_local6 > 50){
stopAction();
};
};
if ((((((((Math.abs((t.x - x)) < 180)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt2 + 5)){
dx = 0;
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (die + 7)){
dx = 0;
};
if (x < -140){
x = -138;
dx = 0;
dy = 0;
};
if (x > 740){
x = 738;
dx = 0;
dy = 0;
};
if (y < 274){
y = 274;
dx = 0;
dy = 0;
};
if (y > 380){
y = 380;
dx = 0;
dy = 0;
};
if ((((roll.currentFrame < die)) && ((life <= 0)))){
dx = (24 * scaleX);
roll.gotoAndPlay(die);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
_local7 = (Math.random() * 100);
if (_local7 < 70){
createObj(Gem1);
};
if ((((_local7 >= 70)) && ((_local7 < 92)))){
createObj(Gem2);
};
if (_local7 >= 92){
createObj(Gem3);
};
if (isboss == true){
createObj(Relivecross);
};
};
if (roll.currentFrame == (die + 1)){
removeChild(hitBall);
removeChild(rollshadow);
};
if (roll.currentFrame == 237){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 90) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
}
}//package
Section 350
//Rock2 (Rock2)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Rock2 extends Sprite {
public const hurt:uint = 100;
public const attack:uint = 30;
public const die:uint = 130;
public const walk:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 90
private var hurtnm;// = 0
public var actionstate;// = 1
public var lifexxx:Number;// = 90
public var hitBall:MovieClip;
private var fire;
private var hurtt;// = 0
public var number;
public var speed:Number;// = 10
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
private var weakpointtip:MovieClip;
public var roll:MovieClip;
public var dy:Number;// = 0
public var isboss:Boolean;// = false
private var par;
public var strong:Number;// = 800
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Rock2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hurtnm = 0;
hurtt = 0;
actionstate = 1;
isboss = false;
dx = 0;
dy = 0;
dxfix = 0;
life = 90;
lifexxx = 90;
strong = 800;
man = true;
speed = 10;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initRock1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
if (isboss == true){
par.container5.removeChild(par.bossstates);
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function initRock1():void{
hitBall = new HitMovie(-50, -200, this);
addChild(hitBall);
hitBall.width = 120;
hitBall.height = 80;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
rollshadow.scaleX = 1.4;
roll = new Rock2Roll(0, 0);
addChild(roll);
weakpointtip = new Weakpoint(-35, -175);
addChild(weakpointtip);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
if (isboss == true){
_local2 = int(((life / lifexxx) * 100));
par.bossstates.lifeMC.gotoAndStop(_local2);
};
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (scaleX == 1){
weakpointtip.scaleX = 1;
weakpointtip.x = -35;
};
if (scaleX == -1){
weakpointtip.scaleX = -1;
weakpointtip.x = 15;
};
if (roll.currentFrame == (attack + 9)){
_local3 = ((x + roll.x) - (108 * scaleX));
_local4 = y;
fist = new ESwordShadow(_local3, _local4, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = scaleX;
fist.xxscale = scaleX;
SoundsManager.playSound("dadao");
};
if ((((roll.currentFrame == 124)) && ((t.roll.currentFrame < t.hurt2)))){
if (t.x < x){
scaleX = 1;
};
if (t.x > x){
scaleX = -1;
};
roll.gotoAndPlay(attack);
};
if (roll.currentFrame == 1){
if (weakpointtip.currentFrame == 120){
weakpointtip.gotoAndPlay(1);
};
_local5 = (Math.random() * 51);
if (_local5 < 12){
dx = (4 * scaleX);
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 12)) && ((_local5 < 17)))){
if (t.y < y){
dy = -2.6;
};
if (t.y > y){
dy = 2.6;
};
roll.gotoAndPlay(walk);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
if (weakpointtip.currentFrame == 120){
weakpointtip.gotoAndPlay(1);
};
_local6 = (Math.random() * 51);
if (_local6 < 12){
dx = (-4 * scaleX);
};
if ((((_local6 >= 12)) && ((_local6 < 17)))){
if (t.y < y){
dy = -2.6;
};
if (t.y > y){
dy = 2.6;
};
};
if (_local6 > 50){
stopAction();
};
};
if ((((((((Math.abs((t.x - x)) < 180)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 3);
weakpointtip.gotoAndPlay(61);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 3);
weakpointtip.gotoAndPlay(61);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
weakpointtip.gotoAndPlay(61);
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (die + 7)){
dx = 0;
};
if (x < -140){
x = -138;
dx = 0;
dy = 0;
};
if (x > 740){
x = 738;
dx = 0;
dy = 0;
};
if (y < 274){
y = 274;
dx = 0;
dy = 0;
};
if (y > 380){
y = 380;
dx = 0;
dy = 0;
};
if ((((roll.currentFrame < die)) && ((life <= 0)))){
dx = (24 * scaleX);
roll.gotoAndPlay(die);
weakpointtip.gotoAndPlay(61);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
_local7 = (Math.random() * 100);
if (_local7 < 70){
createObj(Gem1);
};
if ((((_local7 >= 70)) && ((_local7 < 92)))){
createObj(Gem2);
};
if (_local7 >= 92){
createObj(Gem3);
};
};
if (roll.currentFrame == (die + 1)){
removeChild(hitBall);
removeChild(rollshadow);
};
if (roll.currentFrame == 237){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 90) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
}
}//package
Section 351
//Rock3 (Rock3)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Rock3 extends Sprite {
public const hurt2:uint = 145;
public const hurt:uint = 130;
public const attack:uint = 20;
public const die:uint = 175;
public const run:uint = 85;
public const walk:uint = 2;
public const attack2:uint = 290;
public var dxfix:Number;// = 0
public var life:Number;// = 500
public var actionstate;// = 1
private var ashs2;
public var lifexxx:Number;// = 500
private var hurtnm;// = 0
public var hitBall:MovieClip;
private var fire;
private var hurtt;// = 0
public var number;
public var speed:Number;// = 10
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
private var axetop:MovieClip;
public var dy:Number;// = 0
public var isboss:Boolean;// = false
private var par;
public var strong:Number;// = 4
public var dx:Number;// = 0
private var ashs;
public var defend:Number;
private var rollshadow:MovieClip;
public function Rock3(_arg1:Number=0, _arg2:Number=0, _arg3=null){
hurtnm = 0;
hurtt = 0;
actionstate = 1;
isboss = false;
dx = 0;
dy = 0;
dxfix = 0;
life = 500;
lifexxx = 500;
strong = 4;
man = true;
speed = 10;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initRock3();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
if (isboss == true){
par.be = 0;
par.container5.removeChild(par.bossstates);
};
if (isboss == false){
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function initRock3():void{
hitBall = new HitMovie(0, -90, this);
addChild(hitBall);
hitBall.width = 100;
hitBall.height = 180;
rollshadow = new Shadow(20, -5);
addChild(rollshadow);
rollshadow.scaleX = 1.3;
axetop = new HitMovie(-70, -68, this);
addChild(axetop);
roll = new Rock3Roll(0, 0);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:uint;
var _local9:*;
var _local10:*;
_local2 = ((x + roll.x) - (40 * scaleX));
_local3 = (y - 31);
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
if (isboss == true){
_local4 = int(((life / lifexxx) * 100));
par.bossstates.lifeMC.gotoAndStop(_local4);
};
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
hurtt++;
if (hurtt == 30){
hurtnm = 0;
};
if (roll.currentFrame == (hurt + 1)){
hurtnm++;
hurtt = 0;
if (hurtnm == 3){
SoundsManager.playSound("jurensiwang");
roll.gotoAndPlay(hurt2);
};
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 9)){
_local2 = ((x + roll.x) - (40 * scaleX));
_local3 = (y - 31);
fist = new ESwordShadow2(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = scaleX;
fist.xxscale = scaleX;
SoundsManager.playSound("dadao");
};
if (roll.currentFrame == (attack + 20)){
_local2 = ((x + roll.x) - (130 * scaleX));
_local3 = (y - 30);
fist = new Fist(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.8);
fist.xxscale = scaleX;
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 51);
if (_local5 < 12){
dx = (7 * scaleX);
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 12)) && ((_local5 < 17)))){
if (t.y < y){
dy = -4;
};
if (t.y > y){
dy = 4;
};
roll.gotoAndPlay(walk);
};
if ((((_local5 > 50)) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 51);
if (_local6 < 12){
dx = (-7 * scaleX);
};
if ((((_local6 >= 12)) && ((_local6 < 17)))){
if (t.y < y){
dy = -4;
};
if (t.y > y){
dy = 4;
};
};
if (_local5 > 48){
stopAction();
};
};
if ((((roll.currentFrame >= (run + 5))) && ((roll.currentFrame <= (run + 35))))){
_local2 = ((x + (Math.random() * 10)) + (60 * scaleX));
_local3 = (y + (Math.random() * 10));
ashs = new Ash(_local2, _local3, par.container3);
par.container3.setChildIndex(ashs, (par.container3.getChildIndex(this) + 1));
_local2 = ((x + (Math.random() * 10)) + (60 * scaleX));
_local3 = (y + (Math.random() * 10));
ashs2 = new Ash(_local2, _local3, par.container3);
par.container3.setChildIndex(ashs2, (par.container3.getChildIndex(this) + 1));
if (((axetop.hitTestObject(t.roll)) && ((Math.abs((t.y - y)) < 20)))){
_local2 = (t.x + (50 * t.scaleX));
_local3 = ((t.y - 64) + t.roll.y);
if (t.roll.currentFrame < t.defend){
_local8 = 0;
while (_local8 < 25) {
_local7 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local7, (par.container3.getChildIndex(this) + 1));
_local8++;
};
dx = 0;
t.roll.gotoAndPlay(t.hurt);
t.scaleX = scaleX;
t.x = (x - (90 * scaleX));
t.y = y;
t.roll.y = -15;
roll.gotoAndPlay(attack2);
};
if ((((t.roll.currentFrame >= t.defend)) && ((t.roll.currentFrame <= (t.defend + 15))))){
t.defendst = false;
_local8 = 0;
while (_local8 < 20) {
_local7 = new FireStar(_local2, _local3, par.container3);
par.container3.setChildIndex(_local7, (par.container3.getChildIndex(this) + 1));
_local8++;
};
t.scaleX = scaleX;
t.roll.gotoAndPlay(t.defend);
t.dxfix = (-30 * t.scaleX);
SoundsManager.playSound("dun");
};
};
};
if ((((((((Math.abs((t.x - x)) < 160)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((((Math.abs((t.x - x)) >= 300)) && ((Math.abs((t.y - y)) < 20)))) && ((roll.currentFrame < attack)))) && ((t.roll.currentFrame < t.hurt2)))){
_local9 = (Math.random() * 8);
if (_local9 < 1){
dx = 0;
dy = 0;
roll.gotoAndPlay(run);
};
};
if (roll.currentFrame == (run + 16)){
dx = (-30 * scaleX);
};
if (((((((roll.currentFrame - run) >= 0)) && (((roll.currentFrame - run) < 36)))) && ((((roll.currentFrame - run) % 4) == 0)))){
SoundsManager.playSound("jurenjiaobu2");
};
if (((((((roll.currentFrame - run) >= 0)) && (((roll.currentFrame - run) < 36)))) && (((((roll.currentFrame - run) + 2) % 4) == 0)))){
SoundsManager.playSound("jurenjiaobu1");
};
if (roll.currentFrame == (run + 36)){
dx = 0;
};
if (roll.currentFrame == (attack2 + 4)){
t.roll.gotoAndPlay(t.hurt2);
t.scaleX = -(scaleX);
t.x = x;
t.y = y;
t.roll.y = -190;
t.dxfix = (-28 * t.scaleX);
t.roll.dy = -18.2;
t.life = (t.life - (22 - t.Sdefend));
SoundsManager.playSound("jurenshangtiao");
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 5))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= hurt2)) && ((roll.currentFrame < (hurt2 + 5))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (hurt2 + 5)){
dx = 0;
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx < 0)))){
dx = (dx + 3);
};
if ((((((roll.currentFrame >= die)) && ((roll.currentFrame < (die + 7))))) && ((dx > 0)))){
dx = (dx - 3);
};
if (roll.currentFrame == (die + 7)){
dx = 0;
};
if (x < -140){
x = -138;
dx = 0;
dy = 0;
};
if (x > 740){
x = 738;
dx = 0;
dy = 0;
};
if (y < 274){
y = 274;
dx = 0;
dy = 0;
};
if (y > 380){
y = 380;
dx = 0;
dy = 0;
};
if ((((roll.currentFrame < die)) && ((life <= 0)))){
dx = (24 * scaleX);
roll.gotoAndPlay(die);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Crystel);
createObj(Apple);
_local10 = (Math.random() * 100);
if (_local10 < 70){
createObj(Gem2);
};
if ((((_local10 >= 70)) && ((_local10 < 92)))){
createObj(Gem3);
};
if (_local10 >= 92){
createObj(Gem4);
};
SoundsManager.playSound("jurensiwang");
};
if (roll.currentFrame == (die + 1)){
removeChild(hitBall);
removeChild(rollshadow);
};
if (roll.currentFrame == 282){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
}
}//package
Section 352
//RollState (RollState)
package {
import flash.display.*;
import flash.text.*;
import data.*;
public class RollState extends MovieClip {
public var levelnmText:TextField;
public var aweaponMC:MovieClip;
private var yPos;
public var aweapon_MC:MovieClip;
public var lifeMC_mc:MovieClip;
public var cross:MovieClip;
public var lifeMC:MovieClip;
public var scorenmText:TextField;
public var urlbtn:SimpleButton;
public var urlbtn_btn:SimpleButton;
public var skip_btn:SimpleButton;
public var skipb:SimpleButton;
public var cnmText:TextField;
private var xPos;
public var crossMC:MovieClip;
public function RollState(_arg1:Number=0, _arg2:Number=0){
cnmText = new TextField();
scorenmText = new TextField();
levelnmText = new TextField();
super();
xPos = _arg1;
yPos = _arg2;
initPos();
initDis();
}
private function initPos():void{
x = xPos;
y = yPos;
}
private function initDis():void{
var _local1:TextFormat;
lifeMC = (this.getChildByName("lifeMC_mc") as MovieClip);
aweaponMC = (this.getChildByName("aweapon_MC") as MovieClip);
cross = (this.getChildByName("crossMC") as MovieClip);
if (Data.relivecrossnm == 0){
cross.visible = false;
};
skipb = (this.getChildByName("skip_btn") as SimpleButton);
skipb.visible = false;
urlbtn = (this.getChildByName("urlbtn_btn") as SimpleButton);
_local1 = new TextFormat();
_local1.font = "_sans";
_local1.color = 0xFFFFFF;
_local1.size = 10;
_local1.bold = false;
addChild(cnmText);
cnmText.selectable = false;
cnmText.multiline = false;
cnmText.type = TextFieldType.DYNAMIC;
cnmText.width = 64;
cnmText.height = 15.2;
cnmText.x = 116;
cnmText.y = 38;
cnmText.defaultTextFormat = _local1;
addChild(scorenmText);
scorenmText.selectable = false;
scorenmText.multiline = false;
scorenmText.type = TextFieldType.DYNAMIC;
scorenmText.width = 180;
scorenmText.height = 15.2;
scorenmText.x = 100;
scorenmText.y = 25;
scorenmText.defaultTextFormat = _local1;
addChild(levelnmText);
levelnmText.selectable = false;
levelnmText.multiline = false;
levelnmText.type = TextFieldType.DYNAMIC;
levelnmText.width = 57;
levelnmText.height = 15.2;
levelnmText.x = 234.5;
levelnmText.y = 13.4;
levelnmText.defaultTextFormat = _local1;
}
}
}//package
Section 353
//Shadow (Shadow)
package {
import flash.display.*;
public class Shadow extends MovieClip {
public function Shadow(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package
Section 354
//Shed (Shed)
package {
import flash.display.*;
public class Shed extends MovieClip {
public function Shed(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
}
}//package
Section 355
//siwang (siwang)
package {
import flash.media.*;
public dynamic class siwang extends Sound {
}
}//package
Section 356
//Soldier1 (Soldier1)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Soldier1 extends Sprite {
public const hurt:uint = 75;
public const attack:uint = 35;
public const die:uint = 85;
public const strong:Number = 2;
public const walk:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 15
public var actionstate;// = 1
public var hitBall:MovieClip;
private var fire;
public var number;
public var speed:Number;// = 20
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
private var par;
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Soldier1(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
dx = 0;
dy = 0;
dxfix = 0;
life = 15;
man = true;
speed = 20;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initSoldier1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function initSoldier1():void{
hitBall = new HitMovie(0, -50, this);
addChild(hitBall);
hitBall.width = 110;
hitBall.height = 100;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
roll = new Soldier1Roll(0, 0);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if (roll.currentFrame == (hurt + 3)){
if (life <= 0){
dx = 0;
dy = 0;
dxfix = 0;
roll.gotoAndPlay(die);
createObj(Crystel);
_local2 = (Math.random() * 100);
if (_local2 < 70){
createObj(SilverCoin);
};
if ((((_local2 >= 70)) && ((_local2 < 92)))){
createObj(GoldCoin);
};
if (_local2 >= 92){
createObj(Apple);
};
};
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 8)){
_local3 = ((x + roll.x) - (60 * scaleX));
_local4 = ((y + roll.y) - 44);
fist = new Fist(_local3, _local4, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.7);
fist.xxscale = scaleX;
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 201);
if (_local5 < 3){
dx = (-5 * scaleX);
dy = 0;
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 4)) && ((_local5 < 5)))){
if (t.y < y){
dy = -3;
dx = 0;
};
if (t.y > y){
dy = 3;
dx = 0;
};
roll.gotoAndPlay(walk);
};
if (_local5 > 200){
dx = 0;
dy = 0;
roll.gotoAndStop(1);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 100);
if (_local6 < 3){
dx = (-5 * scaleX);
dy = 0;
};
if ((((_local6 >= 4)) && ((_local6 < 5)))){
if (t.y < y){
dy = -3;
dx = 0;
};
if (t.y > y){
dy = 3;
dx = 0;
};
};
};
if ((((((Math.abs((t.x - x)) < 130)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 4);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 4);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (x < -100){
x = -100;
stopAction();
};
if (x > 700){
x = 700;
stopAction();
};
if (y < 274){
y = 274;
stopAction();
};
if (y > 380){
y = 380;
stopAction();
};
if (roll.currentFrame == (die + 1)){
SoundsManager.playSound("siwang");
removeChild(rollshadow);
};
if (roll.currentFrame == 198){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
}
}//package
Section 357
//Soldier2 (Soldier2)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Soldier2 extends Sprite {
public const hurt:uint = 75;
public const attack:uint = 35;
public const die:uint = 85;
public const strong:Number = 2;
public const walk:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 20
public var actionstate;// = 1
public var hitBall:MovieClip;
private var fire;
public var number;
public var speed:Number;// = 20
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
private var par;
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Soldier2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
dx = 0;
dy = 0;
dxfix = 0;
life = 20;
man = true;
speed = 20;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initSoldier1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function initSoldier1():void{
hitBall = new HitMovie(-10, -50, this);
addChild(hitBall);
hitBall.width = 110;
hitBall.height = 100;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
roll = new Soldier2Roll(0, 0);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if (roll.currentFrame == (hurt + 3)){
if (life <= 0){
dx = 0;
dy = 0;
dxfix = 0;
roll.gotoAndPlay(die);
createObj(Crystel);
_local2 = (Math.random() * 100);
if (_local2 < 70){
createObj(SilverCoin);
};
if ((((_local2 >= 70)) && ((_local2 < 92)))){
createObj(GoldCoin);
};
if (_local2 >= 92){
createObj(Apple);
};
};
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 8)){
_local3 = ((x + roll.x) - (70 * scaleX));
_local4 = ((y + roll.y) - 44);
fist = new Fist(_local3, _local4, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.7);
fist.xxscale = scaleX;
fist.SAttack = 15;
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 201);
if (_local5 < 3){
dx = (-5 * scaleX);
dy = 0;
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 4)) && ((_local5 < 5)))){
if (t.y < y){
dy = -3;
dx = 0;
};
if (t.y > y){
dy = 3;
dx = 0;
};
roll.gotoAndPlay(walk);
};
if (_local5 > 200){
dx = 0;
dy = 0;
roll.gotoAndStop(1);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 100);
if (_local6 < 3){
dx = (-5 * scaleX);
dy = 0;
};
if ((((_local6 >= 4)) && ((_local6 < 5)))){
if (t.y < y){
dy = -3;
dx = 0;
};
if (t.y > y){
dy = 3;
dx = 0;
};
};
};
if ((((((Math.abs((t.x - x)) < 130)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 4);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 4);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (x < -100){
x = -100;
stopAction();
};
if (x > 700){
x = 700;
stopAction();
};
if (y < 274){
y = 274;
stopAction();
};
if (y > 380){
y = 380;
stopAction();
};
if (roll.currentFrame == (die + 1)){
SoundsManager.playSound("siwang");
removeChild(rollshadow);
};
if (roll.currentFrame == 198){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
}
}//package
Section 358
//Soldier3 (Soldier3)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Soldier3 extends Sprite {
public const hurt:uint = 75;
public const attack:uint = 35;
public const die:uint = 85;
public const strong:Number = 2;
public const walk:uint = 2;
public var dxfix:Number;// = 0
public var life:Number;// = 50
public var actionstate;// = 1
public var hitBall:MovieClip;
private var fire;
public var number;
public var speed:Number;// = 20
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
private var par;
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Soldier3(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
dx = 0;
dy = 0;
dxfix = 0;
life = 50;
man = true;
speed = 20;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initSoldier1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function initSoldier1():void{
hitBall = new HitMovie(0, -50, this);
addChild(hitBall);
hitBall.width = 110;
hitBall.height = 100;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
roll = new Soldier3Roll(0, 0);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
changeDepth();
if (actionstate == 0){
};
if (actionstate == 1){
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if (roll.currentFrame == (hurt + 3)){
if (life <= 0){
dx = 0;
dy = 0;
dxfix = 0;
roll.gotoAndPlay(die);
createObj(Crystel);
_local2 = (Math.random() * 100);
if (_local2 < 70){
createObj(SilverCoin);
};
if ((((_local2 >= 70)) && ((_local2 < 92)))){
createObj(GoldCoin);
};
if (_local2 >= 92){
createObj(Apple);
};
};
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 8)){
_local3 = ((x + roll.x) - (60 * scaleX));
_local4 = ((y + roll.y) - 44);
fist = new Fist(_local3, _local4, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.7);
fist.xxscale = scaleX;
fist.SAttack = 15;
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 201);
if (_local5 < 3){
dx = (-5 * scaleX);
dy = 0;
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 4)) && ((_local5 < 5)))){
if (t.y < y){
dy = -3;
dx = 0;
};
if (t.y > y){
dy = 3;
dx = 0;
};
roll.gotoAndPlay(walk);
};
if (_local5 > 200){
dx = 0;
dy = 0;
roll.gotoAndStop(1);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 100);
if (_local6 < 3){
dx = (-5 * scaleX);
dy = 0;
};
if ((((_local6 >= 4)) && ((_local6 < 5)))){
if (t.y < y){
dy = -3;
dx = 0;
};
if (t.y > y){
dy = 3;
dx = 0;
};
};
};
if ((((((Math.abs((t.x - x)) < 130)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 4);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 4);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (x < -100){
x = -100;
stopAction();
};
if (x > 700){
x = 700;
stopAction();
};
if (y < 274){
y = 274;
stopAction();
};
if (y > 380){
y = 380;
stopAction();
};
if (roll.currentFrame == (die + 1)){
SoundsManager.playSound("siwang");
removeChild(rollshadow);
};
if (roll.currentFrame == 198){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
}
}//package
Section 359
//SoundsManager (SoundsManager)
package {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class SoundsManager {
private static const VOLUME_SOUND:Number = 0.75;
private static const SOUNDSLINK:Array = ["boss", "castle", "cemetery", "lose", "menu", "mountain", "story", "win", "wood", "menu_touch", "menu_press", "baomutong", "chinengliang", "chixue", "dun", "feidao", "feifu", "huidao1", "huidao2", "mofapingluodi", "qiehuanjineng", "dabin", "dahuo", "kaixiang", "kanzhong", "kuijiabaohu", "siwang", "xiaobin", "xiaohuoshao", "zhiliao", "chongshenzhiguang", "jurenchongzhuang", "jurenjiaobu1", "jurenjiaobu2", "jurenkan", "jurenshangtiao", "jurenshiwei", "jurensiwang", "longchibang", "longhuaguo", "longsiwang", "niaorenchuzhao", "niaorensiwang", "niaorenzhongzhao", "qishishoushang1", "qishishoushang2", "renmajiaobu", "renmaluodi", "wushichuzhao", "wushisiwang", "xiaoguichuzhao", "xiaoguisiwang", "dedaochongshen", "kulousanjia", "wuqishengji", "coinsound", "jueseshengji", "dadao", "judun", "kuaihuo", "longjiao", "wushishunchuxian", "wushishunxiaoshi", "wushixiao", "bluenightover"];
private static const VOLUME_MUSIC:Number = 0.95;
private static var curMusicArr:Array;
private static var curSoundVolume:Number;
private static var fadeTimer:Timer;
private static var soundsArr:Array = [];
private static var curMusicVolume:Number;
private static function timerFun(_arg1:Event):void{
fadeMusic();
}
public static function stopMusic(_arg1:Boolean=false):void{
var _local2:*;
if (!_arg1){
for (_local2 in curMusicArr) {
if (soundsArr[curMusicArr[_local2].name].channel[0] != null){
soundsArr[curMusicArr[_local2].name].channel[0].stop();
};
};
};
}
public static function modifyMusicVolume(_arg1:Number=-1):void{
var _local2:*;
var _local3:SoundTransform;
if (_arg1 < 0){
curMusicVolume = VOLUME_MUSIC;
} else {
curMusicVolume = _arg1;
};
for (_local2 in curMusicArr) {
if (soundsArr[curMusicArr[_local2].name].channel[0] != null){
_local3 = soundsArr[curMusicArr[_local2].name].channel[0].soundTransform;
_local3.volume = curMusicVolume;
soundsArr[curMusicArr[_local2].name].channel[0].soundTransform = _local3;
};
};
}
public static function memoryRelease():void{
var _local1:*;
var _local2:Object;
var _local3:*;
for (_local1 in soundsArr) {
_local2 = soundsArr[_local1];
if (!_local2["music"]){
for (_local3 in _local2["channel"]) {
if (_local2["channel"][_local3] != null){
_local2["channel"][_local3].stop();
delete _local2["channel"][_local3];
};
};
_local2["channel"] = [];
};
};
}
private static function fadeMusic():void{
var _local1:int;
var _local2:SoundChannel;
var _local3:Number;
var _local4:SoundTransform;
_local1 = curMusicArr.length;
if (_local1 > 0){
_local2 = soundsArr[curMusicArr[0].name].channel[0];
if (_local1 == 1){
if (_local2.soundTransform.volume < curMusicVolume){
_local3 = (100 / curMusicArr[0].delayStart);
if (_local3 > 1){
_local3 = 1;
};
_local4 = _local2.soundTransform;
_local4.volume = (_local2.soundTransform.volume + _local3);
_local2.soundTransform = _local4;
} else {
fadeTimer.stop();
};
} else {
if (_local1 > 1){
if (_local2.soundTransform.volume > 0){
_local3 = (100 / curMusicArr[0].delayEnd);
if (_local3 > 1){
_local3 = 1;
};
_local4 = _local2.soundTransform;
_local4.volume = (_local2.soundTransform.volume - _local3);
_local2.soundTransform = _local4;
} else {
_local2.stop();
curMusicArr.splice(0, (_local1 - 1));
startMusic(curMusicArr[0].name, curMusicArr[0].times, curMusicArr[0].startVolume);
};
};
};
};
}
public static function init():void{
var _local1:int;
var _local2:String;
var _local3:Sound;
var _local4:Object;
curMusicVolume = VOLUME_MUSIC;
curSoundVolume = VOLUME_SOUND;
_local1 = 0;
while (_local1 < SOUNDSLINK.length) {
_local2 = SOUNDSLINK[_local1];
_local3 = getSound(_local2);
_local4 = {name:_local2, sound:_local3, channel:[], music:false, loop:false};
soundsArr[_local2] = _local4;
_local1++;
};
curMusicArr = new Array();
fadeTimer = new Timer(100);
fadeTimer.addEventListener("timer", timerFun, false, 0, true);
fadeTimer.stop();
}
public static function playMusic(_arg1:String, _arg2:int=500, _arg3:int=500, _arg4:int=2147483647):void{
var _local5:Number;
var _local6:Object;
if (_arg2 < 100){
_local5 = curMusicVolume;
};
_local6 = {name:_arg1, times:_arg4, delayStart:_arg2, delayEnd:_arg3, startVolume:_local5};
if (curMusicArr.length == 0){
startMusic(_arg1, _arg4, _local5);
};
if (!(((curMusicArr.length > 0)) && ((curMusicArr[(curMusicArr.length - 1)].name == _arg1)))){
curMusicArr.push(_local6);
fadeTimer.start();
};
}
public static function modifySoundsVolume(_arg1:Number=-1):void{
var _local2:*;
var _local3:*;
var _local4:SoundTransform;
if (_arg1 < 0){
curSoundVolume = VOLUME_SOUND;
} else {
curSoundVolume = _arg1;
};
for (_local2 in soundsArr) {
if (!soundsArr[_local2].music){
for (_local3 in soundsArr[_local2].channel) {
if (soundsArr[_local2].channel[_local3] != null){
_local4 = soundsArr[_local2].channel[_local3].soundTransform;
_local4.volume = curSoundVolume;
soundsArr[_local2].channel[_local3].soundTransform = _local4;
};
};
};
};
}
private static function startMusic(_arg1:String, _arg2:int=2147483647, _arg3:int=0):void{
var _local4:SoundChannel;
if (_arg1 != null){
if (soundsArr[_arg1] != null){
if (soundsArr[_arg1].channel[0] != null){
soundsArr[_arg1].channel[0].stop();
};
_local4 = soundsArr[_arg1].sound.play(0, _arg2, new SoundTransform(_arg3));
soundsArr[_arg1].channel[0] = _local4;
soundsArr[_arg1].music = true;
} else {
fadeTimer.stop();
curMusicArr = [];
};
};
}
private static function getSound(_arg1:String):Sound{
var _local2:Class;
var _local3:Sound;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function stopSound(_arg1:String, _arg2:int=0):void{
var _local3:Object;
if (soundsArr[_arg1] != null){
_local3 = soundsArr[_arg1];
if (!_local3["music"]){
if (_local3["channel"][_arg2] != null){
_local3["channel"][_arg2].stop();
delete _local3["channel"][_arg2];
};
};
};
}
public static function pause(_arg1:Boolean):void{
if (_arg1){
modifySoundsVolume(0);
modifyMusicVolume(0);
} else {
modifySoundsVolume();
modifyMusicVolume();
};
}
public static function playSound(_arg1:String, _arg2:Boolean=true, _arg3:int=0, _arg4:Number=-1):int{
var _local5:SoundChannel;
if (soundsArr[_arg1] != null){
if (_arg3 > 0){
soundsArr[_arg1].loop = true;
};
if ((((_arg4 == -1)) || ((curSoundVolume == 0)))){
_arg4 = curSoundVolume;
};
_local5 = soundsArr[_arg1].sound.play(0, _arg3, new SoundTransform(_arg4));
if (!_arg2){
soundsArr[_arg1].channel.push(_local5);
return ((soundsArr[_arg1].channel.length - 1));
};
soundsArr[_arg1].channel[0] = _local5;
return (0);
//unresolved jump
};
return (-1);
}
}
}//package
Section 360
//Stage1 (Stage1)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import ui.*;
public class Stage1 extends Sprite {
private var timer;// = 0
private var st;// = 0
private var soundobj;
private var par;
private var gamestart:MovieClip;
public function Stage1(_arg1){
timer = 0;
st = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
private function turnmusicaction(_arg1:Event):void{
var _local2:*;
_local2 = 1;
if ((((Data.canmusic == true)) && ((_local2 == 1)))){
Data.canmusic = false;
gamestart.turnmusicmc.gotoAndStop(2);
SoundsManager.pause(true);
_local2 = 0;
};
if ((((Data.canmusic == false)) && ((_local2 == 1)))){
Data.canmusic = true;
gamestart.turnmusicmc.gotoAndStop(1);
SoundsManager.pause(false);
SoundsManager.modifyMusicVolume(0.4);
_local2 = 0;
};
}
public function del(_arg1){
gamestart.startgame.removeEventListener(MouseEvent.MOUSE_OVER, fireaction1);
gamestart.moregames.removeEventListener(MouseEvent.MOUSE_OVER, fireaction2);
gamestart.highscores.removeEventListener(MouseEvent.MOUSE_OVER, fireaction3);
gamestart.startgame.removeEventListener(MouseEvent.MOUSE_UP, startgameaction);
gamestart.moregames.removeEventListener(MouseEvent.MOUSE_UP, moregamesaction);
gamestart.spilurl.removeEventListener(MouseEvent.MOUSE_UP, spilurlaction);
gamestart.turnmusicbtn.removeEventListener(MouseEvent.MOUSE_UP, turnmusicaction);
gamestart.picbtn.removeEventListener(MouseEvent.MOUSE_UP, picbtnation);
gamestart.highscores.removeEventListener(MouseEvent.MOUSE_UP, highscoresaction);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(gamestart);
gamestart = null;
par.changeStage(_arg1);
GC.clear();
}
private function spilurlaction(_arg1:Event):void{
navigateToURL(new URLRequest("http://www.gameportal.net"), "_blank");
}
private function highscoresaction(_arg1:Event):void{
SoundsManager.playSound("menu_press");
del(Stage90);
}
private function thisaction(_arg1:Event):void{
timer++;
if (timer == 18){
st = 1;
};
if (gamestart.zz.currentFrame == 75){
del(Stage2);
};
}
private function startgameaction(_arg1:Event):void{
if (st == 1){
st = 0;
gamestart.zz.gotoAndPlay(27);
SoundsManager.playSound("menu_press");
};
}
private function picbtnation(_arg1:Event):void{
var _local2:*;
_local2 = 1;
if ((((gamestart.picmc.currentFrame == 1)) && ((_local2 == 1)))){
stage.quality = "medium";
gamestart.picmc.gotoAndStop(2);
_local2 = 0;
};
if ((((gamestart.picmc.currentFrame == 2)) && ((_local2 == 1)))){
stage.quality = "low";
gamestart.picmc.gotoAndStop(3);
_local2 = 0;
};
if ((((gamestart.picmc.currentFrame == 3)) && ((_local2 == 1)))){
stage.quality = "high";
gamestart.picmc.gotoAndStop(1);
_local2 = 0;
};
}
private function fireaction1(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 80) {
_local4 = (150 + (Math.random() * 300));
_local5 = ((gamestart.startgame.y + (Math.random() * 80)) - 40);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(gamestart) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function fireaction3(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 80) {
_local4 = (150 + (Math.random() * 300));
_local5 = ((gamestart.highscores.y + (Math.random() * 140)) - 70);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(gamestart) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function moregamesaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=button_mainscreen_moregames")), "_blank");
}
private function fireaction2(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 80) {
_local4 = (150 + (Math.random() * 300));
_local5 = ((gamestart.moregames.y + (Math.random() * 140)) - 70);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(gamestart) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function initStage():void{
gamestart = new Gamestart(300, 0);
addChild(gamestart);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
gamestart.startgame.addEventListener(MouseEvent.MOUSE_OVER, fireaction1, false, 0, true);
gamestart.moregames.addEventListener(MouseEvent.MOUSE_OVER, fireaction2, false, 0, true);
gamestart.highscores.addEventListener(MouseEvent.MOUSE_OVER, fireaction3, false, 0, true);
gamestart.startgame.addEventListener(MouseEvent.MOUSE_UP, startgameaction, false, 0, true);
gamestart.moregames.addEventListener(MouseEvent.MOUSE_UP, moregamesaction, false, 0, true);
gamestart.spilurl.addEventListener(MouseEvent.MOUSE_UP, spilurlaction, false, 0, true);
gamestart.turnmusicbtn.addEventListener(MouseEvent.MOUSE_UP, turnmusicaction, false, 0, true);
gamestart.picbtn.addEventListener(MouseEvent.MOUSE_UP, picbtnation, false, 0, true);
gamestart.highscores.addEventListener(MouseEvent.MOUSE_UP, highscoresaction, false, 0, true);
SoundsManager.playMusic("menu");
if (Data.canmusic == true){
SoundsManager.modifyMusicVolume(0.4);
};
Data.upkeycode = 87;
Data.downkeycode = 83;
Data.leftkeycode = 65;
Data.rightkeycode = 68;
Data.attackkeycode = 74;
Data.jumpkeycode = 75;
Data.defendkeycode = 76;
Data.throwkeycode = 73;
Data.SAttacknm = 10;
Data.Sdefendnm = 2;
Data.swordnm = 1;
Data.sheildnm = 1;
Data.secondswordnm = 1;
Data.levelnm = 1;
Data.cnm = 20;
Data.lifenm = 150;
Data.lifexxxnm = 150;
Data.scorenm = 0;
Data.scoresavenm = 0;
Data.sSAttacknm = 10;
Data.sSdefendnm = 2;
Data.sswordnm = 1;
Data.ssheildnm = 1;
Data.ssecondswordnm = 1;
Data.slevelnm = 1;
Data.scnm = 20;
Data.slifenm = 150;
Data.slifexxxnm = 150;
Data.sscorenm = 0;
Data.sscoresavenm = 0;
Data.gameend = 0;
}
}
}//package
Section 361
//Stage10 (Stage10)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import enemies.*;
import fires.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage10 extends Sprite {
private var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = false
public var dialogs;
public var sky:MovieClip;
public var stagenm;// = 0
public var timer;// = 0
public var boss;
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
public function Stage10(_arg1){
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
timer = 0;
stageEnm = 0;
stagechange = false;
stagechangeT = 0;
stagenm = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
playRoll.del();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.skipb.removeEventListener(MouseEvent.MOUSE_UP, skipaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function createEnemy(_arg1, _arg2, _arg3):void{
var _local4:*;
_local4 = new _arg3(_arg1, _arg2, this);
enemys.push(_local4);
_local4.number = _local4;
currentEnm++;
stageEnm++;
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
_local7 = (((Math.random() * 580) + 10) - sky.x);
_local8 = ((Math.random() * 20) + 220);
_local9 = (Math.random() * 3);
if (_local9 < 1){
_local10 = (Math.random() * 11);
if (_local10 < 1){
_local6 = new Fire1(_local7, _local8, sky);
};
if ((((_local10 >= 1)) && ((_local10 < 2)))){
_local6 = new Fire2(_local7, _local8, sky);
};
if ((((_local10 >= 2)) && ((_local10 < 3)))){
_local6 = new Fire3(_local7, _local8, sky);
};
if ((((_local10 >= 3)) && ((_local10 < 4)))){
_local6 = new Fire4(_local7, _local8, sky);
};
if ((((_local10 >= 4)) && ((_local10 < 5)))){
_local6 = new Fire5(_local7, _local8, sky);
};
if ((((_local10 >= 5)) && ((_local10 < 6)))){
_local6 = new Fire6(_local7, _local8, sky);
};
if ((((_local10 >= 6)) && ((_local10 < 7)))){
_local6 = new Fire7(_local7, _local8, sky);
};
if ((((_local10 >= 7)) && ((_local10 < 8)))){
_local6 = new Fire8(_local7, _local8, sky);
};
if ((((_local10 >= 8)) && ((_local10 < 9)))){
_local6 = new Fire9(_local7, _local8, sky);
};
if ((((_local10 >= 9)) && ((_local10 < 10)))){
_local6 = new Fire10(_local7, _local8, sky);
};
if ((((_local10 >= 10)) && ((_local10 <= 11)))){
_local6 = new Fire11(_local7, _local8, sky);
};
_local6.scaleX = (_local6.scaleY = ((Math.random() * 0.5) + 0.2));
_local6.alpha = ((Math.random() * 0.4) + 0.2);
};
if (stagechange == true){
if (sky.x <= -600){
sky.x = 0;
};
if (cwall1.x <= -1200){
cwall1.x = 0;
};
if (cwall2.x <= -1200){
cwall2.x = 0;
};
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
timer++;
if (timer == 30){
playRoll.dx = 7;
playRoll.roll.gotoAndPlay(2);
};
if (timer == 80){
playRoll.dx = 0;
playRoll.roll.gotoAndStop(163);
};
if (timer == 110){
cwall1.shead.gotoAndPlay(2);
};
if (timer == 120){
_local5 = "";
_local4 = "";
_local3 = "";
_local2 = "...Lanthas?";
_local7 = 400;
_local8 = 240;
dialogs = new Dialog3(_local7, _local8, 1, _local5, _local4, _local3, _local2, this);
dialogs.canpass = 0;
};
if (timer == 150){
dialogs.tt = 0;
};
if (timer == 170){
_local5 = "";
_local4 = "";
_local3 = "";
_local2 = "Yes, it's me.";
_local7 = (playRoll.x - 20);
_local8 = (playRoll.y - 70);
dialogs = new Dialog4(_local7, _local8, 1, _local5, _local4, _local3, _local2, this);
dialogs.canpass = 0;
};
if (timer == 200){
dialogs.tt = 0;
};
if (timer == 220){
_local5 = "";
_local4 = "I am finished...";
_local3 = "I'm so sorry...";
_local2 = "I have not kept my promise to protect the village.";
_local7 = 410;
_local8 = 230;
dialogs = new Dialog2(_local7, _local8, 3, _local5, _local4, _local3, _local2, this);
dialogs.canpass = 0;
};
if (timer == 260){
dialogs.tt = 0;
};
if (timer == 310){
dialogs.tt = 0;
};
if (timer == 390){
dialogs.tt = 0;
};
if (timer == 420){
_local5 = "";
_local4 = "";
_local3 = "You have given your life for your people.";
_local2 = "No one could ask for more.";
_local7 = (playRoll.x - 20);
_local8 = (playRoll.y - 70);
dialogs = new Dialog(_local7, _local8, 2, _local5, _local4, _local3, _local2, this);
dialogs.canpass = 0;
};
if (timer == 490){
dialogs.tt = 0;
};
if (timer == 530){
dialogs.tt = 0;
};
if (timer == 590){
cwall1.shead.gotoAndPlay(21);
_local5 = "";
_local4 = "Please, do what I could not:";
_local3 = "save the villagers.This is my last...";
_local2 = "request......";
_local7 = 410;
_local8 = 230;
dialogs = new Dialog2(_local7, _local8, 3, _local5, _local4, _local3, _local2, this);
dialogs.canpass = 0;
};
if (timer == 650){
dialogs.tt = 0;
};
if (timer == 730){
dialogs.tt = 0;
};
if (timer == 780){
dialogs.tt = 0;
};
if (timer == 830){
_local5 = "";
_local4 = "";
_local3 = "";
_local2 = "On my honour, you have my vow.";
_local7 = (playRoll.x - 20);
_local8 = (playRoll.y - 70);
dialogs = new Dialog(_local7, _local8, 1, _local5, _local4, _local3, _local2, this);
dialogs.canpass = 0;
};
if (timer == 900){
dialogs.tt = 0;
};
if (timer == 940){
playRoll.roll.gotoAndStop(1);
};
if (timer == 950){
playRoll.dy = 5;
playRoll.roll.gotoAndPlay(2);
};
if (timer == 957){
playRoll.dy = 0;
playRoll.dx = 7;
};
if ((((playRoll.x > 550)) && ((zz.currentFrame == 20)))){
zz.gotoAndPlay(21);
playRoll.actionstate = 0;
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (zz.currentFrame == 90){
del(Stage11);
};
}
private function skipaction(_arg1:Event):void{
if ((((((((((((((timer >= 120)) && ((timer <= 153)))) || ((((timer >= 170)) && ((timer <= 203)))))) || ((((timer >= 220)) && ((timer <= 393)))))) || ((((timer >= 420)) && ((timer <= 493)))))) || ((((timer >= 550)) && ((timer <= 723)))))) || ((((timer >= 770)) && ((timer <= 803)))))){
dialogs.del();
};
timer = 1000;
del(Stage11);
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[1]")), "_blank");
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function initStage():void{
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky = new Wall101(0, 0);
cwall1 = new Wall112(0, 0);
cwall2 = new Wall113(0, 310);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
playRoll = new Fighter(-90, 310, this);
playRoll.actionstate = 0;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.skipb.visible = true;
states.skipb.addEventListener(MouseEvent.MOUSE_UP, skipaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
}
}
}//package
Section 362
//Stage100 (Stage100)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import ui.*;
public class Stage100 extends Sprite {
private var timer;// = 0
private var st;// = 1
private var par;
private var gameover:MovieClip;
public function Stage100(_arg1){
timer = 0;
st = 1;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
gameover.playagain.removeEventListener(MouseEvent.MOUSE_OVER, fireaction1);
gameover.moregames.removeEventListener(MouseEvent.MOUSE_OVER, fireaction2);
gameover.credits.removeEventListener(MouseEvent.MOUSE_OVER, fireaction3);
gameover.playagain.removeEventListener(MouseEvent.MOUSE_UP, playagainaction);
gameover.moregames.removeEventListener(MouseEvent.MOUSE_UP, moregamesaction);
gameover.credits.removeEventListener(MouseEvent.MOUSE_UP, creditsaction);
gameover.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(gameover);
gameover = null;
par.changeStage(_arg1);
GC.clear();
}
private function creditsaction(_arg1:Event):void{
if ((((gameover.titlemc.currentFrame == 1)) && ((st == 1)))){
gameover.titlemc.gotoAndPlay(2);
};
}
private function thisaction(_arg1:Event):void{
if (gameover.zz.currentFrame == 75){
del(Stage4);
};
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_gameover")), "_blank");
}
private function fireaction1(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 60) {
_local4 = (200 + (Math.random() * 200));
_local5 = ((gameover.playagain.y + (Math.random() * 60)) - 30);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(gameover) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function fireaction3(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 60) {
_local4 = (200 + (Math.random() * 200));
_local5 = ((gameover.credits.y + (Math.random() * 60)) - 30);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(gameover) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function moregamesaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=button_gameover_moregames")), "_blank");
}
private function initStage():void{
gameover = new Gameover(300, 0);
addChild(gameover);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
gameover.playagain.addEventListener(MouseEvent.MOUSE_OVER, fireaction1, false, 0, true);
gameover.moregames.addEventListener(MouseEvent.MOUSE_OVER, fireaction2, false, 0, true);
gameover.credits.addEventListener(MouseEvent.MOUSE_OVER, fireaction3, false, 0, true);
gameover.playagain.addEventListener(MouseEvent.MOUSE_UP, playagainaction, false, 0, true);
gameover.moregames.addEventListener(MouseEvent.MOUSE_UP, moregamesaction, false, 0, true);
gameover.credits.addEventListener(MouseEvent.MOUSE_UP, creditsaction, false, 0, true);
gameover.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
SoundsManager.playMusic("lose", 500, 500, 1);
if (Data.canmusic == true){
SoundsManager.modifyMusicVolume(0.4);
};
}
private function fireaction2(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 60) {
_local4 = (200 + (Math.random() * 200));
_local5 = ((gameover.moregames.y + (Math.random() * 60)) - 30);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(gameover) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function playagainaction(_arg1:Event):void{
if (st == 1){
gameover.zz.gotoAndPlay(27);
st = 0;
SoundsManager.playSound("menu_press");
};
}
}
}//package
Section 363
//Stage11 (Stage11)
package {
import flash.events.*;
import flash.display.*;
import ui.*;
public class Stage11 extends Sprite {
private var timer;// = 0
private var par;
private var gamestart:MovieClip;
public function Stage11(_arg1){
timer = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.changeStage(_arg1);
GC.clear();
}
private function thisaction(_arg1:Event):void{
timer++;
if (timer == 145){
gamestart.zz.gotoAndPlay(27);
};
if (gamestart.zz.currentFrame == 75){
del(Stage12);
};
}
private function initStage():void{
gamestart = new Predai(300, 0);
addChild(gamestart);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
SoundsManager.playMusic("wood");
}
}
}//package
Section 364
//Stage12 (Stage12)
package {
import flash.events.*;
import flash.display.*;
import data.*;
import ui.*;
public class Stage12 extends Sprite {
private var timer;// = 0
private var par;
private var gamestart:MovieClip;
public function Stage12(_arg1){
timer = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.changeStage(_arg1);
GC.clear();
}
private function thisaction(_arg1:Event):void{
timer++;
if (timer == 115){
gamestart.zz.gotoAndPlay(8);
};
if (gamestart.zz.currentFrame == 31){
del(Stage30);
};
}
private function initStage():void{
Data.SAttacknm = 10;
Data.Sdefendnm = 2;
Data.swordnm = 1;
Data.sheildnm = 1;
Data.secondswordnm = 1;
Data.levelnm = 1;
Data.cnm = 20;
Data.lifenm = 150;
Data.lifexxxnm = 150;
Data.scorenm = 0;
Data.scoresavenm = 0;
Data.sSAttacknm = 10;
Data.sSdefendnm = 2;
Data.sswordnm = 1;
Data.ssheildnm = 1;
Data.ssecondswordnm = 1;
Data.slevelnm = 1;
Data.scnm = 20;
Data.slifenm = 150;
Data.slifexxxnm = 150;
Data.sscorenm = 0;
Data.sscoresavenm = 0;
Data.gameend = 0;
gamestart = new Map(300, 0);
addChild(gamestart);
gamestart.swordtip.x = -127;
gamestart.swordtip.y = 303;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
if (Data.canmusic == true){
SoundsManager.modifyMusicVolume(0.4);
};
}
}
}//package
Section 365
//Stage2 (Stage2)
package {
import flash.events.*;
import flash.display.*;
import data.*;
import rolls.*;
import ui.*;
public class Stage2 extends Sprite {
private var playerdemo;
private var timer;// = 0
private var st;// = 1
private var par;
private var typestate;// = 0
public var container1:Sprite;
private var choosetype:MovieClip;
public function Stage2(_arg1){
timer = 0;
st = 1;
typestate = 0;
container1 = new Sprite();
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
playerdemo.del();
removeChild(choosetype);
removeChild(container1);
choosetype.type1.removeEventListener(MouseEvent.MOUSE_OVER, fireaction1);
choosetype.type2.removeEventListener(MouseEvent.MOUSE_OVER, fireaction2);
choosetype.nextbtn.removeEventListener(MouseEvent.MOUSE_OVER, fireaction3);
choosetype.type1.removeEventListener(MouseEvent.MOUSE_UP, type1action);
choosetype.type2.removeEventListener(MouseEvent.MOUSE_UP, type2action);
choosetype.nextbtn.removeEventListener(MouseEvent.MOUSE_UP, nextbtnaction);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
choosetype = null;
container1 = null;
par.changeStage(_arg1);
GC.clear();
}
private function type1action(_arg1:Event):void{
if (st == 1){
typestate = 1;
choosetype.curten.gotoAndPlay(2);
SoundsManager.playSound("menu_press");
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
if (choosetype.curten.currentFrame == 8){
if (typestate == 1){
Data.upkeycode = 87;
Data.downkeycode = 83;
Data.leftkeycode = 65;
Data.rightkeycode = 68;
Data.attackkeycode = 74;
Data.jumpkeycode = 75;
Data.defendkeycode = 76;
Data.throwkeycode = 73;
choosetype.keyshow1.visible = true;
choosetype.keyshow1.x = -80.5;
choosetype.keyshow1.y = 311;
choosetype.keyshow2.visible = false;
playerdemo.x = 390;
playerdemo.y = 280;
playerdemo.scaleX = 1;
playerdemo.roll.gotoAndStop(1);
playerdemo.dx = (playerdemo.dy = 0);
timer = 0;
choosetype.nextbtn.visible = true;
};
if (typestate == 2){
Data.upkeycode = 38;
Data.downkeycode = 40;
Data.leftkeycode = 37;
Data.rightkeycode = 39;
Data.attackkeycode = 67;
Data.jumpkeycode = 88;
Data.defendkeycode = 90;
Data.throwkeycode = 32;
choosetype.keyshow2.visible = true;
choosetype.keyshow2.x = -93;
choosetype.keyshow2.y = 323;
choosetype.keyshow1.visible = false;
playerdemo.x = 390;
playerdemo.y = 280;
playerdemo.scaleX = 1;
playerdemo.roll.gotoAndStop(1);
playerdemo.dx = (playerdemo.dy = 0);
timer = 0;
choosetype.nextbtn.visible = true;
};
choosetype.curten.gotoAndPlay(9);
};
_local2 = ((playerdemo.x + playerdemo.roll.x) + (30 * playerdemo.scaleX));
_local3 = ((playerdemo.y + playerdemo.roll.y) - 76);
if (typestate == 1){
timer++;
if (timer == 30){
choosetype.keyshow1.akey.gotoAndPlay(2);
choosetype.keyshow1.ax = (choosetype.keyshow1.akey.x + 30);
choosetype.keyshow1.ay = (choosetype.keyshow1.akey.y - 10);
playerdemo.dx = -7;
playerdemo.scaleX = -1;
if (playerdemo.roll.currentFrame == 1){
playerdemo.roll.gotoAndPlay(2);
};
};
if (timer == 45){
playerdemo.dx = 0;
};
if (timer == 65){
choosetype.keyshow1.dkey.gotoAndPlay(2);
choosetype.keyshow1.ax = (choosetype.keyshow1.dkey.x + 30);
choosetype.keyshow1.ay = (choosetype.keyshow1.dkey.y - 10);
playerdemo.dx = 7;
playerdemo.scaleX = 1;
if (playerdemo.roll.currentFrame == 1){
playerdemo.roll.gotoAndPlay(2);
};
};
if (timer == 80){
playerdemo.dx = 0;
};
if (timer == 100){
choosetype.keyshow1.wkey.gotoAndPlay(2);
choosetype.keyshow1.ax = (choosetype.keyshow1.wkey.x + 30);
choosetype.keyshow1.ay = (choosetype.keyshow1.wkey.y - 10);
playerdemo.dy = -5;
if (playerdemo.roll.currentFrame == 1){
playerdemo.roll.gotoAndPlay(2);
};
};
if (timer == 115){
playerdemo.dy = 0;
};
if (timer == 135){
choosetype.keyshow1.skey.gotoAndPlay(2);
choosetype.keyshow1.ax = (choosetype.keyshow1.skey.x + 30);
choosetype.keyshow1.ay = (choosetype.keyshow1.skey.y - 10);
playerdemo.dy = 5;
if (playerdemo.roll.currentFrame == 1){
playerdemo.roll.gotoAndPlay(2);
};
};
if (timer == 150){
playerdemo.dy = 0;
};
if (timer == 170){
choosetype.keyshow1.jkey.gotoAndPlay(2);
choosetype.keyshow1.ax = (choosetype.keyshow1.jkey.x + 30);
choosetype.keyshow1.ay = (choosetype.keyshow1.jkey.y - 10);
playerdemo.roll.gotoAndPlay(playerdemo.attack);
};
if (timer == 195){
choosetype.keyshow1.kkey.gotoAndPlay(2);
choosetype.keyshow1.ax = (choosetype.keyshow1.kkey.x + 30);
choosetype.keyshow1.ay = (choosetype.keyshow1.kkey.y - 10);
playerdemo.defendst = false;
playerdemo.roll.gotoAndPlay((playerdemo.jump - 2));
};
if (timer == 230){
choosetype.keyshow1.ikey.gotoAndPlay(2);
choosetype.keyshow1.ax = (choosetype.keyshow1.ikey.x + 30);
choosetype.keyshow1.ay = (choosetype.keyshow1.ikey.y - 10);
playerdemo.defendst = false;
playerdemo.roll.gotoAndPlay(playerdemo.throwact);
playerdemo.secsword = new Axe(_local2, _local3, choosetype);
playerdemo.secsword.scaleX = playerdemo.scaleX;
playerdemo.secsword.dx = (playerdemo.scaleX * (8 + (Math.random() * 2)));
playerdemo.secsword.dy = (-21 + (Math.random() * 2));
playerdemo.secsword.drot = (playerdemo.scaleX * (30 + (Math.random() * 30)));
playerdemo.secsword.yfix = playerdemo.y;
SoundsManager.playSound("feifu");
};
if (timer == 0xFF){
choosetype.keyshow1.lkey.gotoAndPlay(2);
choosetype.keyshow1.ax = (choosetype.keyshow1.lkey.x + 30);
choosetype.keyshow1.ay = (choosetype.keyshow1.lkey.y - 10);
playerdemo.roll.gotoAndPlay(playerdemo.defend);
SoundsManager.playSound("judun");
playerdemo.defendst = true;
};
if (timer == 295){
playerdemo.defendst = false;
timer = 0;
};
};
if (typestate == 2){
timer++;
if (timer == 30){
choosetype.keyshow2.leftkey.gotoAndPlay(2);
choosetype.keyshow2.ax = (choosetype.keyshow2.leftkey.x + 30);
choosetype.keyshow2.ay = (choosetype.keyshow2.leftkey.y - 10);
playerdemo.dx = -7;
playerdemo.scaleX = -1;
if (playerdemo.roll.currentFrame == 1){
playerdemo.roll.gotoAndPlay(2);
};
};
if (timer == 45){
playerdemo.dx = 0;
};
if (timer == 65){
choosetype.keyshow2.rightkey.gotoAndPlay(2);
choosetype.keyshow2.ax = (choosetype.keyshow2.rightkey.x + 30);
choosetype.keyshow2.ay = (choosetype.keyshow2.rightkey.y - 10);
playerdemo.dx = 7;
playerdemo.scaleX = 1;
if (playerdemo.roll.currentFrame == 1){
playerdemo.roll.gotoAndPlay(2);
};
};
if (timer == 80){
playerdemo.dx = 0;
};
if (timer == 100){
choosetype.keyshow2.upkey.gotoAndPlay(2);
choosetype.keyshow2.ax = (choosetype.keyshow2.upkey.x + 30);
choosetype.keyshow2.ay = (choosetype.keyshow2.upkey.y - 10);
playerdemo.dy = -5;
if (playerdemo.roll.currentFrame == 1){
playerdemo.roll.gotoAndPlay(2);
};
};
if (timer == 115){
playerdemo.dy = 0;
};
if (timer == 135){
choosetype.keyshow2.downkey.gotoAndPlay(2);
choosetype.keyshow2.ax = (choosetype.keyshow2.downkey.x + 30);
choosetype.keyshow2.ay = (choosetype.keyshow2.downkey.y - 10);
playerdemo.dy = 5;
if (playerdemo.roll.currentFrame == 1){
playerdemo.roll.gotoAndPlay(2);
};
};
if (timer == 150){
playerdemo.dy = 0;
};
if (timer == 170){
choosetype.keyshow2.ckey.gotoAndPlay(2);
choosetype.keyshow2.ax = (choosetype.keyshow2.ckey.x + 30);
choosetype.keyshow2.ay = (choosetype.keyshow2.ckey.y - 10);
playerdemo.roll.gotoAndPlay(playerdemo.attack);
};
if (timer == 195){
choosetype.keyshow2.xkey.gotoAndPlay(2);
choosetype.keyshow2.ax = (choosetype.keyshow2.xkey.x + 30);
choosetype.keyshow2.ay = (choosetype.keyshow2.xkey.y - 10);
playerdemo.defendst = false;
playerdemo.roll.gotoAndPlay((playerdemo.jump - 2));
};
if (timer == 230){
choosetype.keyshow2.spacekey.gotoAndPlay(2);
choosetype.keyshow2.ax = (choosetype.keyshow2.spacekey.x + 30);
choosetype.keyshow2.ay = (choosetype.keyshow2.spacekey.y - 10);
playerdemo.defendst = false;
playerdemo.roll.gotoAndPlay(playerdemo.throwact);
playerdemo.secsword = new Axe(_local2, _local3, choosetype);
playerdemo.secsword.scaleX = playerdemo.scaleX;
playerdemo.secsword.dx = (playerdemo.scaleX * (8 + (Math.random() * 2)));
playerdemo.secsword.dy = (-21 + (Math.random() * 2));
playerdemo.secsword.drot = (playerdemo.scaleX * (30 + (Math.random() * 30)));
playerdemo.secsword.yfix = playerdemo.y;
SoundsManager.playSound("feifu");
};
if (timer == 0xFF){
choosetype.keyshow2.zkey.gotoAndPlay(2);
choosetype.keyshow2.ax = (choosetype.keyshow2.zkey.x + 30);
choosetype.keyshow2.ay = (choosetype.keyshow2.zkey.y - 10);
playerdemo.roll.gotoAndPlay(playerdemo.defend);
SoundsManager.playSound("judun");
playerdemo.defendst = true;
};
if (timer == 295){
playerdemo.defendst = false;
timer = 0;
};
};
if (choosetype.zz.currentFrame == 31){
del(Stage4);
};
}
private function type2action(_arg1:Event):void{
if (st == 1){
typestate = 2;
choosetype.curten.gotoAndPlay(2);
SoundsManager.playSound("menu_press");
};
}
private function fireaction1(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 60) {
_local4 = (30 + (Math.random() * 200));
_local5 = ((choosetype.type1.y + (Math.random() * 60)) - 30);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(choosetype) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function fireaction3(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 60) {
_local4 = (30 + (Math.random() * 200));
_local5 = ((choosetype.nextbtn.y + (Math.random() * 60)) - 30);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(choosetype) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function fireaction2(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 60) {
_local4 = (30 + (Math.random() * 200));
_local5 = ((choosetype.type2.y + (Math.random() * 60)) - 30);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(choosetype) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function initStage():void{
choosetype = new ChooseType(300, 0);
addChild(choosetype);
addChild(container1);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
choosetype.type1.addEventListener(MouseEvent.MOUSE_OVER, fireaction1, false, 0, true);
choosetype.type2.addEventListener(MouseEvent.MOUSE_OVER, fireaction2, false, 0, true);
choosetype.nextbtn.addEventListener(MouseEvent.MOUSE_OVER, fireaction3, false, 0, true);
choosetype.type1.addEventListener(MouseEvent.MOUSE_UP, type1action, false, 0, true);
choosetype.type2.addEventListener(MouseEvent.MOUSE_UP, type2action, false, 0, true);
choosetype.nextbtn.addEventListener(MouseEvent.MOUSE_UP, nextbtnaction, false, 0, true);
playerdemo = new Fighter2(390, 280, choosetype);
choosetype.playRoll = playerdemo;
choosetype.curten.gotoAndPlay(9);
SoundsManager.playMusic("wood");
}
private function nextbtnaction(_arg1:Event):void{
if (st == 1){
choosetype.zz.gotoAndPlay(8);
st = 0;
SoundsManager.playSound("menu_press");
};
}
}
}//package
Section 366
//Stage30 (Stage30)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import enemies.*;
import fires.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage30 extends Sprite {
private var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = true
public var be;// = 0
public var stagenm;// = 0
private var timer;// = 0
private var eid:Number;// = 0
public var sky:MovieClip;
public var boss;
public var bossExist;// = 0
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
public function Stage30(_arg1){
timer = 0;
eid = 0;
be = 0;
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
stageEnm = 0;
stagechange = true;
stagechangeT = 0;
stagenm = 0;
bossExist = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
var _local2:*;
var _local3:int;
_local2 = enemys.length;
_local3 = 0;
while (_local3 < _local2) {
enemys[0].del();
_local3++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function createEnemy(_arg1, _arg2, _arg3):void{
var _local4:*;
_local4 = ("enemy" + eid);
eid++;
_local4 = new _arg3(_arg1, _arg2, this);
enemys.push(_local4);
_local4.number = _local4;
currentEnm++;
stageEnm++;
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_local3 = (((Math.random() * 580) + 10) - sky.x);
_local4 = ((Math.random() * 20) + 220);
_local5 = (Math.random() * 3);
if (_local5 < 1){
_local11 = (Math.random() * 11);
if (_local11 < 1){
_local2 = new Fire1(_local3, _local4, sky);
};
if ((((_local11 >= 1)) && ((_local11 < 2)))){
_local2 = new Fire2(_local3, _local4, sky);
};
if ((((_local11 >= 2)) && ((_local11 < 3)))){
_local2 = new Fire3(_local3, _local4, sky);
};
if ((((_local11 >= 3)) && ((_local11 < 4)))){
_local2 = new Fire4(_local3, _local4, sky);
};
if ((((_local11 >= 4)) && ((_local11 < 5)))){
_local2 = new Fire5(_local3, _local4, sky);
};
if ((((_local11 >= 5)) && ((_local11 < 6)))){
_local2 = new Fire6(_local3, _local4, sky);
};
if ((((_local11 >= 6)) && ((_local11 < 7)))){
_local2 = new Fire7(_local3, _local4, sky);
};
if ((((_local11 >= 7)) && ((_local11 < 8)))){
_local2 = new Fire8(_local3, _local4, sky);
};
if ((((_local11 >= 8)) && ((_local11 < 9)))){
_local2 = new Fire9(_local3, _local4, sky);
};
if ((((_local11 >= 9)) && ((_local11 < 10)))){
_local2 = new Fire10(_local3, _local4, sky);
};
if ((((_local11 >= 10)) && ((_local11 <= 11)))){
_local2 = new Fire11(_local3, _local4, sky);
};
_local2.scaleX = (_local2.scaleY = ((Math.random() * 0.5) + 0.2));
_local2.alpha = ((Math.random() * 0.4) + 0.2);
};
if (stagechange == true){
if (sky.x <= -600){
sky.x = 0;
};
if (cwall1.x <= -1200){
cwall1.x = 0;
};
if (cwall2.x <= -1200){
cwall2.x = 0;
};
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
_local4 = ((Math.random() * 100) + 270);
_local10 = (Math.random() * 100);
if (stagenm == 8){
if (zz.currentFrame == 20){
if (playRoll.x > 550){
zz.gotoAndPlay(21);
playRoll.actionstate = 0;
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
};
if (zz.currentFrame == 90){
del(Stage31);
};
};
if (stagenm == 7){
if ((((stageEnm == 1)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 1)) && ((stagechange == false)))) && ((bossExist == 0)))){
bossstates = new Boss1State(400, 50);
container5.addChild(bossstates);
boss = new Rock1(700, 340, this);
boss.isboss = true;
bossExist = 1;
be = 1;
SoundsManager.playMusic("boss");
currentEnm++;
stageEnm++;
};
};
if (stagenm == 6){
if ((((stageEnm == 15)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(630, 300, Chest, Sword2obj);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 15)))) && ((stagechange == false)))){
_local10 = (Math.random() * 100);
if (_local10 < 30){
createEnemy(700, _local4, Soldier1);
};
if ((((_local10 >= 30)) && ((_local10 < 50)))){
createEnemy(700, _local4, Soldier2);
};
if (_local10 >= 50){
createEnemy(700, _local4, Thief1);
};
};
};
if (stagenm == 5){
timer++;
if (currentEnm == 1){
if (timer == 402){
boss.actionstate = 0;
boss.roll.gotoAndPlay(2);
boss.scaleX = -1;
boss.dx = 20;
boss.dy = 0;
boss.roll.dy = -6;
container5.removeChild(bossstates);
};
if ((((timer > 402)) && ((timer < 430)))){
boss.dx = 10;
boss.dy = 0;
boss.roll.dy = -3;
if (boss.roll.y < -200){
boss.roll.y = (boss.roll.y + 6);
};
if (boss.roll.currentFrame > 18){
boss.roll.gotoAndPlay(2);
};
if (playRoll.roll.currentFrame < 15){
playRoll.actionstate = 0;
playRoll.roll.gotoAndStop(1);
playRoll.dx = 0;
playRoll.dy = 0;
};
};
if (timer == 430){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
be = 0;
playRoll.actionstate = 1;
playRoll.roll.gotoAndStop(1);
stagechange = true;
currentEnm = 0;
stageEnm = 0;
container3.removeChild(boss);
createBar(660, 300, Bar, SilverCoin, SilverCoin, Berry, Crystel);
createBar(640, 330, Bar, SilverCoin, Cherry, Tomato, Crystel);
SoundsManager.playMusic("castle");
stagenm = 6;
};
};
if (currentEnm == 0){
if (timer == 400){
currentEnm = 1;
};
};
};
if (stagenm == 4){
if ((((currentEnm == 0)) && ((stagechange == false)))){
bossstates = new Boss6State(400, 50);
container5.addChild(bossstates);
boss = new Dragonknight(700, 340, this);
boss.actionstate = 1;
boss.isboss = true;
boss.fireattacknm = 10;
boss.crawAttack = 14;
be = 1;
SoundsManager.playMusic("boss");
currentEnm = 0;
timer = 0;
stageEnm = 0;
stagenm = 5;
};
};
if (stagenm == 3){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 4)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local10 = (Math.random() * 100);
if (_local10 < 30){
createEnemy(700, _local4, Soldier1);
};
if ((((_local10 >= 30)) && ((_local10 < 50)))){
createEnemy(700, _local4, Soldier2);
};
if (_local10 >= 50){
createEnemy(700, _local4, Thief1);
};
};
};
if (stagenm == 1){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(680, 300, Chest, Sheild2obj);
stagenm = 3;
};
if ((((((currentEnm < 4)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local10 = (Math.random() * 100);
if (_local10 < 30){
createEnemy(700, _local4, Soldier1);
};
if ((((_local10 >= 30)) && ((_local10 < 60)))){
createEnemy(700, _local4, Soldier2);
};
if (_local10 >= 60){
createEnemy(700, _local4, Thief1);
};
};
};
if (stagenm == 0){
if ((((stageEnm == 10)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(650, 320, Chest, Aobj3);
stagenm = 1;
};
if ((((((currentEnm < 4)) && ((stageEnm < 10)))) && ((stagechange == false)))){
_local10 = (Math.random() * 100);
if (_local10 < 60){
createEnemy(700, _local4, Soldier1);
};
if (_local10 >= 60){
createEnemy(700, _local4, Soldier2);
};
};
};
}
public function del2(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage2(12);
GC.clear();
}
public function del3(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(Stage89);
GC.clear();
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[1]")), "_blank");
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function initStage():void{
if (Data.continueGame == true){
Data.relivecrossnm = (Data.relivecrossnm - 1);
Data.SAttacknm = Data.sSAttacknm;
Data.Sdefendnm = Data.sSdefendnm;
Data.swordnm = Data.sswordnm;
Data.sheildnm = Data.ssheildnm;
Data.secondswordnm = Data.ssecondswordnm;
Data.levelnm = Data.slevelnm;
Data.cnm = Data.scnm;
Data.lifenm = Data.slifexxxnm;
Data.lifexxxnm = Data.slifexxxnm;
Data.scorenm = Data.sscorenm;
Data.scoresavenm = Data.sscoresavenm;
Data.continueGame = false;
};
Data.sSAttacknm = Data.SAttacknm;
Data.sSdefendnm = Data.Sdefendnm;
Data.sswordnm = Data.swordnm;
Data.ssheildnm = Data.sheildnm;
Data.ssecondswordnm = Data.secondswordnm;
Data.slevelnm = Data.levelnm;
Data.scnm = Data.cnm;
Data.slifenm = Data.lifenm;
Data.slifexxxnm = Data.lifexxxnm;
Data.sscorenm = Data.scorenm;
Data.sscoresavenm = Data.scoresavenm;
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky = new Wall11(0, 0);
cwall1 = new Wall12(0, 0);
cwall2 = new Wall13(0, 310);
playRoll = new Fighter(80, 350, this);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
SoundsManager.playMusic("castle");
}
}
}//package
Section 367
//Stage31 (Stage31)
package {
import flash.events.*;
import flash.display.*;
import data.*;
import ui.*;
public class Stage31 extends Sprite {
private var timer;// = 0
private var par;
private var gamestart:MovieClip;
public function Stage31(_arg1){
timer = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.changeStage(_arg1);
GC.clear();
}
private function thisaction(_arg1:Event):void{
timer++;
if (timer == 115){
gamestart.zz.gotoAndPlay(8);
};
if (gamestart.zz.currentFrame == 31){
del(Stage35);
};
}
private function initStage():void{
gamestart = new Map(300, 0);
addChild(gamestart);
gamestart.swordtip.x = -80;
gamestart.swordtip.y = 151;
gamestart.road.gotoAndStop(2);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
SoundsManager.playMusic("wood");
if (Data.canmusic == true){
SoundsManager.modifyMusicVolume(0.4);
};
}
}
}//package
Section 368
//Stage35 (Stage35)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import enemies.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage35 extends Sprite {
private var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = true
public var dialogs;
public var sky0:MovieClip;
public var be;// = 0
public var stagenm;// = 0
private var timer;// = 0
private var eid:Number;// = 0
public var sky:MovieClip;
public var boss;
public var bossExist;// = 0
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
public function Stage35(_arg1){
timer = 0;
eid = 0;
be = 0;
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
stageEnm = 0;
stagechange = true;
stagechangeT = 0;
stagenm = 0;
bossExist = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
var _local2:*;
var _local3:int;
_local2 = enemys.length;
_local3 = 0;
while (_local3 < _local2) {
enemys[0].del();
_local3++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky0);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky0 = null;
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function createEnemy(_arg1, _arg2, _arg3):void{
var _local4:*;
_local4 = ("enemy" + eid);
eid++;
_local4 = new _arg3(_arg1, _arg2, this);
enemys.push(_local4);
_local4.number = _local4;
currentEnm++;
stageEnm++;
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (stagechange == true){
if (sky.x <= -1200){
sky.x = 0;
};
if (cwall1.x <= -1200){
cwall1.x = 0;
};
if (cwall2.x <= -1200){
cwall2.x = 0;
};
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
_local3 = ((Math.random() * 100) + 270);
_local8 = (Math.random() * 100);
if (stagenm == 8){
if (zz.currentFrame == 20){
if (playRoll.x > 550){
zz.gotoAndPlay(21);
playRoll.actionstate = 0;
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
};
if (zz.currentFrame == 90){
del(Stage36);
};
};
if (stagenm == 7){
if ((((stageEnm == 1)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 1)) && ((stagechange == false)))) && ((bossExist == 0)))){
bossstates = new Boss2State(400, 50);
container5.addChild(bossstates);
boss = new Rock3(700, 340, this);
boss.isboss = true;
bossExist = 1;
be = 1;
SoundsManager.playMusic("boss");
currentEnm++;
stageEnm++;
};
};
if (stagenm == 6){
if ((((stageEnm == 14)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(1000, 280, Chest, Sword3obj);
createBar(880, 320, Bar, GoldCoin, SilverCoin, Cherry, GoldCoin);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 14)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 15){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 15)) && ((_local8 < 35)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 35)) && ((_local8 < 50)))){
createEnemy(700, _local3, Soldier2);
};
if ((((_local8 >= 50)) && ((_local8 < 70)))){
createEnemy(700, _local3, Thief1);
};
if (_local8 >= 70){
createEnemy(700, _local3, Thief2);
};
};
};
if (stagenm == 5){
if ((((stageEnm == 8)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(700, 320, Chest, Aobj4);
createChest(630, 280, Chest, Aobj2);
createBar(880, 320, Bar, GoldCoin, SilverCoin, Tomato, GoldCoin);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 8)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 15){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 15)) && ((_local8 < 35)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 35)) && ((_local8 < 50)))){
createEnemy(700, _local3, Soldier2);
};
if ((((_local8 >= 50)) && ((_local8 < 70)))){
createEnemy(700, _local3, Thief1);
};
if (_local8 >= 70){
createEnemy(700, _local3, Thief2);
};
};
};
if (stagenm == 4){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(630, 350, Chest, Aobj1);
createBar(880, 320, Bar, Gem2, SilverCoin, Gem2, GoldCoin);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 20)) && ((_local8 < 45)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 45)) && ((_local8 < 70)))){
createEnemy(700, _local3, Soldier2);
};
if ((((_local8 >= 70)) && ((_local8 < 85)))){
createEnemy(700, _local3, Thief1);
};
if (_local8 >= 85){
createEnemy(700, _local3, Thief2);
};
};
};
if (stagenm == 3){
if ((((stageEnm == 14)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(630, 350, Chest, Aobj1);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 14)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 20)) && ((_local8 < 45)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 45)) && ((_local8 < 70)))){
createEnemy(700, _local3, Soldier2);
};
if ((((_local8 >= 70)) && ((_local8 < 85)))){
createEnemy(700, _local3, Thief1);
};
if (_local8 >= 85){
createEnemy(700, _local3, Thief2);
};
};
};
if (stagenm == 2){
playRoll.actionstate = 1;
if ((((stageEnm == 10)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
createBar(880, 360, Bar, Gem1, SilverCoin, Gem3, Crystel);
createBar(660, 300, Bar, SilverCoin, SilverCoin, Bread, Crystel);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 10)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 30){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 30)) && ((_local8 < 60)))){
createEnemy(700, _local3, Soldier2);
};
if ((((_local8 >= 60)) && ((_local8 < 85)))){
createEnemy(700, _local3, Thief1);
};
if (_local8 >= 85){
createEnemy(700, _local3, Thief2);
};
};
};
if (stagenm == 1){
};
if (stagenm == 0){
timer++;
if (timer == 10){
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (timer == 40){
playRoll.dx = 0;
playRoll.roll.gotoAndStop(1);
_local7 = "";
_local6 = "";
_local5 = "I have tracked them this far; they must have passed this way.";
_local4 = "I must make haste!";
_local2 = (playRoll.x + 20);
_local3 = (playRoll.y - 100);
dialogs = new Dialog2(_local2, _local3, 2, _local7, _local6, _local5, _local4, this);
createChest(700, 290, Chest, Aobj4);
createChest(630, 350, Chest, Aobj3);
stagenm = 1;
};
};
}
public function del2(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky0);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky0 = null;
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage2(31);
GC.clear();
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
public function del3(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky0);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky0 = null;
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(Stage89);
GC.clear();
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[2]")), "_blank");
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function initStage():void{
if (Data.continueGame == true){
Data.relivecrossnm = (Data.relivecrossnm - 1);
Data.SAttacknm = Data.sSAttacknm;
Data.Sdefendnm = Data.sSdefendnm;
Data.swordnm = Data.sswordnm;
Data.sheildnm = Data.ssheildnm;
Data.secondswordnm = Data.ssecondswordnm;
Data.levelnm = Data.slevelnm;
Data.cnm = Data.scnm;
Data.lifenm = Data.slifexxxnm;
Data.lifexxxnm = Data.slifexxxnm;
Data.scorenm = Data.sscorenm;
Data.scoresavenm = Data.sscoresavenm;
Data.continueGame = false;
};
Data.sSAttacknm = Data.SAttacknm;
Data.sSdefendnm = Data.Sdefendnm;
Data.sswordnm = Data.swordnm;
Data.ssheildnm = Data.sheildnm;
Data.ssecondswordnm = Data.secondswordnm;
Data.slevelnm = Data.levelnm;
Data.scnm = Data.cnm;
Data.slifenm = Data.lifenm;
Data.slifexxxnm = Data.lifexxxnm;
Data.sscorenm = Data.scorenm;
Data.sscoresavenm = Data.scoresavenm;
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky0 = new Wall20(0, 0);
sky = new Wall21(0, 0);
cwall1 = new Wall22(0, 0);
cwall2 = new Wall23(0, 0);
playRoll = new Fighter(-80, 350, this);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
playRoll.actionstate = 0;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
SoundsManager.playMusic("mountain");
}
}
}//package
Section 369
//Stage36 (Stage36)
package {
import flash.events.*;
import flash.display.*;
import data.*;
import ui.*;
public class Stage36 extends Sprite {
private var timer;// = 0
private var par;
private var gamestart:MovieClip;
public function Stage36(_arg1){
timer = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.changeStage(_arg1);
GC.clear();
}
private function thisaction(_arg1:Event):void{
timer++;
if (timer == 115){
gamestart.zz.gotoAndPlay(8);
};
if (gamestart.zz.currentFrame == 31){
if (Game.world3start == false){
Game.world3start = true;
Game._tracker.trackEvent("Blue Knight", "start world 3", "per session", 0);
};
del(Stage40);
};
}
private function initStage():void{
gamestart = new Map(300, 0);
addChild(gamestart);
gamestart.swordtip.x = 118;
gamestart.swordtip.y = 42;
gamestart.road.gotoAndStop(3);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
SoundsManager.playMusic("wood");
if (Data.canmusic == true){
SoundsManager.modifyMusicVolume(0.4);
};
}
}
}//package
Section 370
//Stage4 (Stage4)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import enemies.*;
import fires.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage4 extends Sprite {
public var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = false
private var dialogs;
public var sky:MovieClip;
public var stagenm;// = 0
public var timer;// = 0
public var boss;
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
public function Stage4(_arg1){
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
timer = 0;
stageEnm = 0;
stagechange = false;
stagechangeT = 0;
stagenm = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
var _local2:*;
var _local3:int;
timer = 1000;
_local2 = enemys.length;
_local3 = 0;
while (_local3 < _local2) {
enemys[0].del();
_local3++;
};
enemys = [];
playRoll.del();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.skipb.removeEventListener(MouseEvent.MOUSE_UP, skipaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
_local7 = (((Math.random() * 580) + 10) - sky.x);
_local8 = ((Math.random() * 20) + 220);
_local9 = (Math.random() * 3);
if (_local9 < 1){
_local10 = (Math.random() * 11);
if (_local10 < 1){
_local6 = new Fire1(_local7, _local8, sky);
};
if ((((_local10 >= 1)) && ((_local10 < 2)))){
_local6 = new Fire2(_local7, _local8, sky);
};
if ((((_local10 >= 2)) && ((_local10 < 3)))){
_local6 = new Fire3(_local7, _local8, sky);
};
if ((((_local10 >= 3)) && ((_local10 < 4)))){
_local6 = new Fire4(_local7, _local8, sky);
};
if ((((_local10 >= 4)) && ((_local10 < 5)))){
_local6 = new Fire5(_local7, _local8, sky);
};
if ((((_local10 >= 5)) && ((_local10 < 6)))){
_local6 = new Fire6(_local7, _local8, sky);
};
if ((((_local10 >= 6)) && ((_local10 < 7)))){
_local6 = new Fire7(_local7, _local8, sky);
};
if ((((_local10 >= 7)) && ((_local10 < 8)))){
_local6 = new Fire8(_local7, _local8, sky);
};
if ((((_local10 >= 8)) && ((_local10 < 9)))){
_local6 = new Fire9(_local7, _local8, sky);
};
if ((((_local10 >= 9)) && ((_local10 < 10)))){
_local6 = new Fire10(_local7, _local8, sky);
};
if ((((_local10 >= 10)) && ((_local10 <= 11)))){
_local6 = new Fire11(_local7, _local8, sky);
};
_local6.scaleX = (_local6.scaleY = ((Math.random() * 0.5) + 0.2));
_local6.alpha = ((Math.random() * 0.4) + 0.2);
};
if (stagechange == true){
if (sky.x <= -600){
sky.x = 0;
};
if (cwall1.x <= -1200){
cwall1.x = 0;
};
if (cwall2.x <= -1200){
cwall2.x = 0;
};
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
timer++;
if (timer == 30){
playRoll.dx = 7;
playRoll.roll.gotoAndPlay(2);
};
if (timer == 70){
playRoll.dx = 0;
playRoll.roll.gotoAndStop(1);
};
if (timer == 90){
_local5 = "";
_local4 = "";
_local3 = "";
_local2 = "I am too late…";
_local7 = (playRoll.x + 20);
_local8 = (playRoll.y - 100);
dialogs = new Dialog3(_local7, _local8, 1, _local5, _local4, _local3, _local2, this);
dialogs.canpass = 0;
};
if (timer == 140){
dialogs.tt = 0;
};
if (timer == 150){
playRoll.roll.gotoAndStop(260);
boss.roll.gotoAndPlay(2);
boss.dx = 20;
};
if (timer == 170){
boss.dx = 0;
boss.roll.gotoAndPlay(boss.attack2);
};
if (timer == 220){
boss.dx = 22;
boss.dy = -5;
};
if (timer == 250){
go = new Go(500, 50);
container5.addChild(go);
playRoll.actionstate = 1;
playRoll.roll.gotoAndStop(1);
};
if ((((playRoll.x > 550)) && ((zz.currentFrame == 20)))){
zz.gotoAndPlay(21);
playRoll.actionstate = 0;
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (zz.currentFrame == 90){
del(Stage6);
};
}
private function skipaction(_arg1:Event):void{
if ((((timer >= 90)) && ((timer <= 143)))){
dialogs.del();
};
del(Stage12);
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[1]")), "_blank");
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function initStage():void{
Data.SAttacknm = 10;
Data.Sdefendnm = 2;
Data.swordnm = 1;
Data.sheildnm = 1;
Data.secondswordnm = 1;
Data.levelnm = 1;
Data.cnm = 20;
Data.lifenm = 150;
Data.lifexxxnm = 150;
Data.scorenm = 0;
Data.scoresavenm = 0;
Data.sSAttacknm = 10;
Data.sSdefendnm = 2;
Data.sswordnm = 1;
Data.ssheildnm = 1;
Data.ssecondswordnm = 1;
Data.slevelnm = 1;
Data.scnm = 20;
Data.slifenm = 150;
Data.slifexxxnm = 150;
Data.sscorenm = 0;
Data.sscoresavenm = 0;
Data.gameend = 0;
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky = new Wall101(0, 0);
cwall1 = new Wall102(0, 0);
cwall2 = new Wall103(0, 310);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
playRoll = new Fighter(-90, 350, this);
boss = new Dragonknight2(-200, 280, this);
playRoll.actionstate = 0;
boss.actionstate = 0;
boss.scaleX = -0.8;
boss.scaleY = 0.8;
boss.roll.y = -130;
createBar(400, 300, Bar, SilverCoin, SilverCoin, Crystel, GoldCoin);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.skipb.visible = true;
states.skipb.addEventListener(MouseEvent.MOUSE_UP, skipaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
SoundsManager.playMusic("story");
}
}
}//package
Section 371
//Stage40 (Stage40)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import enemies.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage40 extends Sprite {
private var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = true
public var dialogs;
public var be;// = 0
public var stagenm;// = 0
private var timer;// = 0
private var eid:Number;// = 0
public var sky:MovieClip;
public var boss;
public var bossExist;// = 0
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
public function Stage40(_arg1){
timer = 0;
eid = 0;
be = 0;
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
stageEnm = 0;
stagechange = true;
stagechangeT = 0;
stagenm = 0;
bossExist = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
var _local2:*;
var _local3:int;
_local2 = enemys.length;
_local3 = 0;
while (_local3 < _local2) {
enemys[0].del();
_local3++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function createEnemy(_arg1, _arg2, _arg3):void{
var _local4:*;
_local4 = ("enemy" + eid);
eid++;
_local4 = new _arg3(_arg1, _arg2, this);
enemys.push(_local4);
_local4.number = _local4;
currentEnm++;
stageEnm++;
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (stagechange == true){
if (sky.x <= -1200){
sky.x = 0;
};
if (cwall1.x <= -1200){
cwall1.x = 0;
};
if (cwall2.x <= -1200){
cwall2.x = 0;
};
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
_local3 = ((Math.random() * 100) + 270);
_local8 = (Math.random() * 100);
if (stagenm == 15){
if (zz.currentFrame == 20){
if (playRoll.x > 550){
zz.gotoAndPlay(21);
playRoll.actionstate = 0;
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
};
if (zz.currentFrame == 90){
del(Stage41);
};
};
if (stagenm == 14){
if (currentEnm == 1){
playRoll.actionstate = 1;
boss.actionstate = 1;
};
if (currentEnm == 0){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
boss = null;
stageEnm = 0;
stagenm++;
};
};
if (stagenm == 13){
};
if (stagenm == 12){
if (playRoll.x > 150){
playRoll.actionstate = 0;
playRoll.dy = 0;
playRoll.dx = -7;
playRoll.scaleX = -1;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (playRoll.x <= 150){
playRoll.dx = 0;
playRoll.scaleX = 1;
playRoll.actionstate = 0;
playRoll.roll.gotoAndStop(1);
if (boss.x > 450){
boss.x = (boss.x - 4);
if (boss.roll.currentFrame == 1){
boss.roll.gotoAndPlay(2);
};
};
if (boss.x <= 450){
_local7 = "";
_local6 = "";
_local5 = "";
_local4 = "HaHaHa...";
_local2 = (boss.x - 20);
_local3 = (boss.y - 120);
dialogs = new Dialog4(_local2, _local3, 1, _local7, _local6, _local5, _local4, this);
boss.roll.gotoAndStop(1);
SoundsManager.playSound("wushixiao");
stagenm++;
};
};
};
if (stagenm == 11){
if ((((((currentEnm < 1)) && ((stagechange == false)))) && ((bossExist == 0)))){
bossstates = new Boss3State(400, 50);
container5.addChild(bossstates);
boss = new Mage(700, 340, this);
boss.actionstate = 0;
boss.isboss = true;
bossExist = 1;
be = 1;
SoundsManager.playMusic("boss");
currentEnm++;
stageEnm++;
stagenm++;
};
};
if (stagenm == 10){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 20)) && ((_local8 < 30)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 40)) && ((_local8 < 50)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 50)) && ((_local8 < 75)))){
createEnemy(700, _local3, Thief2);
};
if (_local8 >= 75){
createEnemy(700, _local3, Soldier2);
};
};
};
if (stagenm == 9){
if ((((stageEnm == 8)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(650, 280, Chest, Aobj7);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 8)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 20)) && ((_local8 < 30)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 40)) && ((_local8 < 50)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 50)) && ((_local8 < 75)))){
createEnemy(700, _local3, Thief2);
};
if (_local8 >= 75){
createEnemy(700, _local3, Soldier2);
};
};
};
if (stagenm == 8){
if ((((stageEnm == 14)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 14)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 20)) && ((_local8 < 30)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 40)) && ((_local8 < 50)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 50)) && ((_local8 < 75)))){
createEnemy(700, _local3, Thief2);
};
if (_local8 >= 75){
createEnemy(700, _local3, Soldier2);
};
};
};
if (stagenm == 7){
if ((((stageEnm == 1)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(650, 280, Chest, Lifewater);
createChest(660, 340, Chest, Sheild3obj);
stagenm++;
};
if ((((((currentEnm < 1)) && ((stageEnm < 1)))) && ((stagechange == false)))){
createEnemy(700, _local3, Rock2);
};
};
if (stagenm == 6){
if ((((stageEnm == 14)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 14)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 20)) && ((_local8 < 30)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 40)) && ((_local8 < 50)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 50)) && ((_local8 < 75)))){
createEnemy(700, _local3, Thief2);
};
if (_local8 >= 75){
createEnemy(700, _local3, Soldier2);
};
};
};
if (stagenm == 5){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(650, 280, Chest, Aobj2);
createBar(630, 320, Bar, GoldCoin, SilverCoin, Gem1, GoldCoin);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 20)) && ((_local8 < 50)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 50)) && ((_local8 < 75)))){
createEnemy(700, _local3, Thief2);
};
if (_local8 >= 75){
createEnemy(700, _local3, Thief1);
};
};
};
if (stagenm == 4){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
playRoll.actionstate = 1;
stagenm = 5;
};
if (stagenm == 3){
};
if (stagenm == 2){
if (playRoll.x > 150){
playRoll.actionstate = 0;
playRoll.dx = -7;
playRoll.dy = 0;
playRoll.scaleX = -1;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (playRoll.x <= 150){
playRoll.dx = 0;
playRoll.scaleX = 1;
playRoll.actionstate = 0;
playRoll.roll.gotoAndStop(1);
_local7 = "";
_local6 = "";
_local5 = "The air here prickles with danger...";
_local4 = "I must be careful!";
_local2 = (playRoll.x + 20);
_local3 = (playRoll.y - 100);
dialogs = new Dialog2(_local2, _local3, 2, _local7, _local6, _local5, _local4, this);
stagenm = 3;
};
};
if (stagenm == 1){
if ((((stageEnm == 8)) && ((currentEnm == 0)))){
createBar(880, 360, Bar, Crystel, Crystel, Crystel, Crystel);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 8)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 10){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 10)) && ((_local8 < 30)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Soldier2);
};
if ((((_local8 >= 50)) && ((_local8 < 75)))){
createEnemy(700, _local3, Thief2);
};
if (_local8 >= 75){
createEnemy(700, _local3, Thief1);
};
};
};
if (stagenm == 0){
timer++;
if (timer == 10){
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (timer == 40){
playRoll.dx = 0;
playRoll.roll.gotoAndStop(1);
playRoll.actionstate = 1;
createChest(900, 280, Chest, Aobj3);
stagenm = 1;
};
};
}
public function del2(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage2(36);
GC.clear();
}
public function del3(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(Stage89);
GC.clear();
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[3]")), "_blank");
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function initStage():void{
if (Data.continueGame == true){
Data.relivecrossnm = (Data.relivecrossnm - 1);
Data.SAttacknm = Data.sSAttacknm;
Data.Sdefendnm = Data.sSdefendnm;
Data.swordnm = Data.sswordnm;
Data.sheildnm = Data.ssheildnm;
Data.secondswordnm = Data.ssecondswordnm;
Data.levelnm = Data.slevelnm;
Data.cnm = Data.scnm;
Data.lifenm = Data.slifexxxnm;
Data.lifexxxnm = Data.slifexxxnm;
Data.scorenm = Data.sscorenm;
Data.scoresavenm = Data.sscoresavenm;
Data.continueGame = false;
};
Data.sSAttacknm = Data.SAttacknm;
Data.sSdefendnm = Data.Sdefendnm;
Data.sswordnm = Data.swordnm;
Data.ssheildnm = Data.sheildnm;
Data.ssecondswordnm = Data.secondswordnm;
Data.slevelnm = Data.levelnm;
Data.scnm = Data.cnm;
Data.slifenm = Data.lifenm;
Data.slifexxxnm = Data.lifexxxnm;
Data.sscorenm = Data.scorenm;
Data.sscoresavenm = Data.scoresavenm;
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky = new Wall31(0, 0);
cwall1 = new Wall32(0, 0);
cwall2 = new Wall33(0, 310);
playRoll = new Fighter(-80, 350, this);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
playRoll.actionstate = 0;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
}
}
}//package
Section 372
//Stage41 (Stage41)
package {
import flash.events.*;
import flash.display.*;
import data.*;
import ui.*;
public class Stage41 extends Sprite {
private var timer;// = 0
private var par;
private var gamestart:MovieClip;
public function Stage41(_arg1){
timer = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.changeStage(_arg1);
GC.clear();
}
private function thisaction(_arg1:Event):void{
timer++;
if (timer == 115){
gamestart.zz.gotoAndPlay(8);
};
if (gamestart.zz.currentFrame == 31){
del(Stage45);
};
}
private function initStage():void{
gamestart = new Map(300, 0);
addChild(gamestart);
gamestart.swordtip.x = 250;
gamestart.swordtip.y = 107;
gamestart.road.gotoAndStop(4);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
SoundsManager.playMusic("wood");
if (Data.canmusic == true){
SoundsManager.modifyMusicVolume(0.4);
};
}
}
}//package
Section 373
//Stage45 (Stage45)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import enemies.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage45 extends Sprite {
private var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = true
public var dialogs;
public var be;// = 0
public var stagenm;// = 0
private var timer;// = 0
private var eid:Number;// = 0
public var sky:MovieClip;
public var boss;
public var bossExist;// = 0
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
public function Stage45(_arg1){
timer = 0;
eid = 0;
be = 0;
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
stageEnm = 0;
stagechange = true;
stagechangeT = 0;
stagenm = 0;
bossExist = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
var _local2:*;
var _local3:int;
_local2 = enemys.length;
_local3 = 0;
while (_local3 < _local2) {
enemys[0].del();
_local3++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function createEnemy(_arg1, _arg2, _arg3):void{
var _local4:*;
_local4 = ("enemy" + eid);
eid++;
_local4 = new _arg3(_arg1, _arg2, this);
enemys.push(_local4);
_local4.number = _local4;
currentEnm++;
stageEnm++;
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (stagechange == true){
if (sky.x <= -600){
sky.x = 0;
};
if (cwall1.x <= -1200){
cwall1.x = 0;
};
if (cwall2.x <= -1200){
cwall2.x = 0;
};
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
_local3 = ((Math.random() * 100) + 270);
_local8 = (Math.random() * 100);
if (stagenm == 11){
if (zz.currentFrame == 20){
if (playRoll.x > 550){
zz.gotoAndPlay(21);
playRoll.actionstate = 0;
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
};
if (zz.currentFrame == 90){
del(Stage46);
};
};
if (stagenm == 10){
if ((((stageEnm == 1)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 1)) && ((stagechange == false)))) && ((bossExist == 0)))){
bossstates = new Boss4State(400, 50);
container5.addChild(bossstates);
boss = new Horseman(700, 340, this);
boss.isboss = true;
bossExist = 1;
be = 1;
SoundsManager.playMusic("boss");
currentEnm++;
stageEnm++;
};
};
if (stagenm == 9){
if ((((stageEnm == 8)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(1000, 280, Chest, Aobj7);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 8)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 20)) && ((_local8 < 30)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 40)) && ((_local8 < 50)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 50)) && ((_local8 < 75)))){
createEnemy(700, _local3, Thief2);
};
if (_local8 >= 75){
createEnemy(700, _local3, Soldier2);
};
};
};
if (stagenm == 8){
if ((((stageEnm == 14)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(700, 340, Chest, Lifewater);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 14)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 20)) && ((_local8 < 30)))){
createEnemy(700, _local3, Deathhead1);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 40)) && ((_local8 < 50)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 50)) && ((_local8 < 75)))){
createEnemy(700, _local3, Thief2);
};
if (_local8 >= 75){
createEnemy(700, _local3, Soldier2);
};
};
};
if (stagenm == 7){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
createBar(640, 280, Bar, Crystel, Gem1, SilverCoin, Berry);
createChest(700, 340, Chest, Aobj5);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 10){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 10)) && ((_local8 < 30)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 40)) && ((_local8 < 75)))){
createEnemy(700, _local3, Deathhead1);
};
if ((((_local8 >= 75)) && ((_local8 < 90)))){
createEnemy(700, _local3, Deathhead2);
};
if (_local8 >= 90){
createEnemy(700, _local3, Soldier1);
};
};
};
if (stagenm == 6){
if ((((stageEnm == 14)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 14)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 20){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 20)) && ((_local8 < 30)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Soldier3);
};
if ((((_local8 >= 40)) && ((_local8 < 50)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 50)) && ((_local8 < 75)))){
createEnemy(700, _local3, Thief2);
};
if (_local8 >= 75){
createEnemy(700, _local3, Soldier2);
};
};
};
if (stagenm == 5){
if ((((stageEnm == 3)) && ((currentEnm == 0)))){
GC.clear();
createBar(650, 280, Bar, Crystel, Aobj3, SilverCoin, Tomato);
createChest(690, 300, Chest, Sheild4obj);
createChest(750, 340, Chest, Aobj7);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 3)) && ((stageEnm < 3)))) && ((stagechange == false)))){
createEnemy(700, 280, Rock1);
createEnemy(700, 320, Rock2);
createEnemy(700, 360, Rock1);
};
};
if (stagenm == 4){
if ((((stageEnm == 14)) && ((currentEnm == 0)))){
createBar(1000, 280, Bar, Crystel, Crystel, SilverCoin, Tomato);
createChest(880, 300, Chest, Aobj6);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 14)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 10){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 10)) && ((_local8 < 30)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 40)) && ((_local8 < 75)))){
createEnemy(700, _local3, Deathhead1);
};
if (_local8 >= 75){
createEnemy(700, _local3, Deathhead2);
};
};
};
if (stagenm == 3){
if ((((stageEnm == 8)) && ((currentEnm == 0)))){
createChest(620, 290, Chest, Aobj1);
createChest(780, 300, Chest, Aobj3);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 8)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 10){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 10)) && ((_local8 < 30)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Rock1);
};
if ((((_local8 >= 40)) && ((_local8 < 75)))){
createEnemy(700, _local3, Deathhead1);
};
if (_local8 >= 75){
createEnemy(700, _local3, Deathhead2);
};
};
};
if (stagenm == 2){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
createBar(640, 280, Bar, Crystel, Gem1, SilverCoin, Apple);
createChest(700, 340, Chest, Aobj6);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 10){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 10)) && ((_local8 < 30)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 40)) && ((_local8 < 75)))){
createEnemy(700, _local3, Deathhead1);
};
if ((((_local8 >= 75)) && ((_local8 < 90)))){
createEnemy(700, _local3, Deathhead2);
};
if (_local8 >= 90){
createEnemy(700, _local3, Soldier1);
};
};
};
if (stagenm == 1){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
createBar(680, 360, Bar, Crystel, Gem1, Aobj5, Crystel);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 10){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 10)) && ((_local8 < 30)))){
createEnemy(700, _local3, Birdman);
};
if ((((_local8 >= 30)) && ((_local8 < 40)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 40)) && ((_local8 < 75)))){
createEnemy(700, _local3, Deathhead1);
};
if ((((_local8 >= 75)) && ((_local8 < 90)))){
createEnemy(700, _local3, Deathhead2);
};
if (_local8 >= 90){
createEnemy(700, _local3, Soldier1);
};
};
};
if (stagenm == 0){
timer++;
if (timer == 10){
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (timer == 40){
playRoll.dx = 0;
playRoll.roll.gotoAndStop(1);
playRoll.actionstate = 1;
createChest(700, 340, Chest, Aobj2);
createChest(650, 320, Chest, Lifewater);
stagenm = 1;
};
};
}
public function del2(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage2(41);
GC.clear();
}
public function del3(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(Stage89);
GC.clear();
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[4]")), "_blank");
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function initStage():void{
if (Data.continueGame == true){
Data.relivecrossnm = (Data.relivecrossnm - 1);
Data.SAttacknm = Data.sSAttacknm;
Data.Sdefendnm = Data.sSdefendnm;
Data.swordnm = Data.sswordnm;
Data.sheildnm = Data.ssheildnm;
Data.secondswordnm = Data.ssecondswordnm;
Data.levelnm = Data.slevelnm;
Data.cnm = Data.scnm;
Data.lifenm = Data.slifexxxnm;
Data.lifexxxnm = Data.slifexxxnm;
Data.scorenm = Data.sscorenm;
Data.scoresavenm = Data.sscoresavenm;
Data.continueGame = false;
};
Data.sSAttacknm = Data.SAttacknm;
Data.sSdefendnm = Data.Sdefendnm;
Data.sswordnm = Data.swordnm;
Data.ssheildnm = Data.sheildnm;
Data.ssecondswordnm = Data.secondswordnm;
Data.slevelnm = Data.levelnm;
Data.scnm = Data.cnm;
Data.slifenm = Data.lifenm;
Data.slifexxxnm = Data.lifexxxnm;
Data.sscorenm = Data.scorenm;
Data.sscoresavenm = Data.scoresavenm;
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky = new Wall41(0, 0);
cwall1 = new Wall42(0, 267);
cwall2 = new Wall43(0, 310);
playRoll = new Fighter(-80, 350, this);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
playRoll.actionstate = 0;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
SoundsManager.playMusic("cemetery");
}
}
}//package
Section 374
//Stage46 (Stage46)
package {
import flash.events.*;
import flash.display.*;
import data.*;
import ui.*;
public class Stage46 extends Sprite {
private var timer;// = 0
private var par;
private var gamestart:MovieClip;
public function Stage46(_arg1){
timer = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
this.removeEventListener(Event.ENTER_FRAME, thisaction);
par.changeStage(_arg1);
GC.clear();
}
private function thisaction(_arg1:Event):void{
timer++;
if (timer == 115){
gamestart.zz.gotoAndPlay(8);
};
if (gamestart.zz.currentFrame == 31){
del(Stage50);
};
}
private function initStage():void{
gamestart = new Map(300, 0);
addChild(gamestart);
gamestart.swordtip.x = 206;
gamestart.swordtip.y = 270;
gamestart.road.gotoAndStop(5);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
SoundsManager.playMusic("wood");
if (Data.canmusic == true){
SoundsManager.modifyMusicVolume(0.4);
};
}
}
}//package
Section 375
//Stage50 (Stage50)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import enemies.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage50 extends Sprite {
private var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = true
public var dialogs;
public var be;// = 0
public var stagenm;// = 0
private var timer;// = 0
private var eid:Number;// = 0
public var sky:MovieClip;
public var boss;
public var bossExist;// = 0
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
public function Stage50(_arg1){
timer = 0;
eid = 0;
be = 0;
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
stageEnm = 0;
stagechange = true;
stagechangeT = 0;
stagenm = 0;
bossExist = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
var _local2:*;
var _local3:int;
_local2 = enemys.length;
_local3 = 0;
while (_local3 < _local2) {
enemys[0].del();
_local3++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function createEnemy(_arg1, _arg2, _arg3):void{
var _local4:*;
_local4 = ("enemy" + eid);
eid++;
_local4 = new _arg3(_arg1, _arg2, this);
enemys.push(_local4);
_local4.number = _local4;
currentEnm++;
stageEnm++;
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (stagechange == true){
if (sky.x <= -600){
sky.x = 0;
};
if (cwall1.x <= -1200){
cwall1.x = 0;
};
if (cwall2.x <= -1200){
cwall2.x = 0;
};
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
_local3 = ((Math.random() * 100) + 270);
_local8 = (Math.random() * 100);
if (stagenm == 20){
if (zz.currentFrame == 20){
if (playRoll.x > 550){
zz.gotoAndPlay(21);
playRoll.actionstate = 0;
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
};
if (zz.currentFrame == 90){
del(Stage55);
};
};
if (stagenm == 19){
if ((((((((boss.roll.currentFrame == 206)) || ((boss.roll.currentFrame == 158)))) || ((((boss.roll.currentFrame < boss.hurt)) && ((boss.roll.currentFrame > 16)))))) || ((boss.roll.currentFrame == 1)))){
boss.actionstate = 0;
boss.roll.gotoAndPlay(2);
boss.dy = 0;
boss.scaleX = -1;
boss.dx = 10;
};
if (boss.x > 900){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
boss.del();
boss = null;
playRoll.actionstate = 1;
stageEnm = 0;
stagenm++;
};
};
if (stagenm == 18){
if (boss.life > 200){
playRoll.actionstate = 1;
boss.actionstate = 1;
};
if (boss.life <= 200){
playRoll.actionstate = 0;
playRoll.dx = 0;
playRoll.dy = 0;
playRoll.roll.gotoAndStop(1);
timer = 0;
stageEnm = 0;
stagenm++;
};
};
if (stagenm == 17){
};
if (stagenm == 16){
_local7 = "";
_local6 = "";
_local5 = "";
_local4 = "We shall see.";
_local2 = (boss.x - 20);
_local3 = (boss.y - 140);
dialogs = new Dialog4(_local2, _local3, 1, _local7, _local6, _local5, _local4, this);
stagenm++;
};
if (stagenm == 15){
};
if (stagenm == 14){
_local7 = "";
_local6 = "";
_local5 = "";
_local4 = "Instead of my death, I offer you your own.";
_local2 = (playRoll.x + 20);
_local3 = (playRoll.y - 100);
dialogs = new Dialog2(_local2, _local3, 1, _local7, _local6, _local5, _local4, this);
stagenm++;
};
if (stagenm == 13){
};
if (stagenm == 12){
if (playRoll.x > 150){
playRoll.actionstate = 0;
playRoll.dy = 0;
playRoll.dx = -7;
playRoll.scaleX = -1;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (playRoll.x <= 150){
playRoll.dx = 0;
playRoll.dy = 0;
playRoll.scaleX = 1;
playRoll.actionstate = 0;
playRoll.roll.gotoAndStop(1);
if (boss.x > 450){
boss.x = (boss.x - 7);
if (boss.roll.currentFrame == 1){
boss.roll.gotoAndPlay(2);
};
};
if (boss.x <= 450){
_local7 = "I have been waiting for you for some time.";
_local6 = "You have beaten my loyal and powerful servant.";
_local5 = "That deserves some sort of award.";
_local4 = "Your reward shall be DEATH!";
_local2 = (boss.x - 20);
_local3 = (boss.y - 140);
dialogs = new Dialog(_local2, _local3, 4, _local7, _local6, _local5, _local4, this);
boss.roll.gotoAndStop(1);
stagenm++;
};
};
};
if (stagenm == 11){
if ((((((currentEnm < 1)) && ((stagechange == false)))) && ((bossExist == 0)))){
bossstates = new Boss5State(400, 50);
container5.addChild(bossstates);
boss = new Hecter(700, 340, this);
boss.actionstate = 0;
boss.isboss = true;
bossExist = 1;
be = 1;
SoundsManager.playMusic("boss");
currentEnm++;
stageEnm++;
stagenm++;
};
};
if (stagenm == 10){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(650, 320, Chest, Lifewater);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 15){
createEnemy(700, _local3, Rock1);
};
if ((((_local8 >= 15)) && ((_local8 < 40)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 40)) && ((_local8 < 50)))){
createEnemy(700, _local3, Rock2);
};
if ((((_local8 >= 50)) && ((_local8 < 60)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 60)) && ((_local8 < 70)))){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 70)) && ((_local8 < 85)))){
createEnemy(700, _local3, Soldier2);
};
if (_local8 >= 85){
createEnemy(700, _local3, Birdman);
};
};
};
if (stagenm == 9){
if ((((stageEnm == 8)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(650, 280, Chest, Gem5);
stagenm++;
};
if ((((((currentEnm < 3)) && ((stageEnm < 8)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 30){
createEnemy(700, _local3, Rock2);
};
if (_local8 >= 30){
createEnemy(700, _local3, Rock1);
};
};
};
if (stagenm == 8){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(680, 320, Chest, Gem1);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 15){
createEnemy(700, _local3, Rock1);
};
if ((((_local8 >= 15)) && ((_local8 < 35)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 35)) && ((_local8 < 50)))){
createEnemy(700, _local3, Rock2);
};
if ((((_local8 >= 50)) && ((_local8 < 60)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 60)) && ((_local8 < 70)))){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 70)) && ((_local8 < 85)))){
createEnemy(700, _local3, Soldier2);
};
if (_local8 >= 85){
createEnemy(700, _local3, Birdman);
};
};
};
if (stagenm == 7){
if ((((stageEnm == 8)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(630, 290, Chest, Gem1);
createChest(630, 350, Chest, Gem3);
createChest(780, 320, Chest, Aobj1);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 8)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 15){
createEnemy(700, _local3, Rock1);
};
if ((((_local8 >= 15)) && ((_local8 < 35)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 35)) && ((_local8 < 50)))){
createEnemy(700, _local3, Rock2);
};
if ((((_local8 >= 50)) && ((_local8 < 60)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 60)) && ((_local8 < 70)))){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 70)) && ((_local8 < 85)))){
createEnemy(700, _local3, Soldier2);
};
if (_local8 >= 85){
createEnemy(700, _local3, Birdman);
};
};
};
if (stagenm == 6){
if ((((stageEnm == 14)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(680, 320, Chest, Gem4);
stagenm++;
};
if ((((((currentEnm < 5)) && ((stageEnm < 14)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 15){
createEnemy(700, _local3, Rock1);
};
if ((((_local8 >= 15)) && ((_local8 < 35)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 35)) && ((_local8 < 50)))){
createEnemy(700, _local3, Rock2);
};
if ((((_local8 >= 50)) && ((_local8 < 60)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 60)) && ((_local8 < 70)))){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 70)) && ((_local8 < 85)))){
createEnemy(700, _local3, Soldier2);
};
if (_local8 >= 85){
createEnemy(700, _local3, Birdman);
};
};
};
if (stagenm == 5){
if ((((stageEnm == 2)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(630, 290, Chest, Aobj3);
createChest(630, 350, Chest, Aobj4);
createChest(880, 320, Chest, Lifewater);
stagenm++;
};
if ((((((currentEnm < 2)) && ((stageEnm < 2)))) && ((stagechange == false)))){
createEnemy(700, 290, Rock1);
createEnemy(700, 350, Mage);
};
};
if (stagenm == 4){
if ((((stageEnm == 12)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(630, 290, Chest, Aobj2);
createChest(630, 350, Chest, Gem1);
createChest(880, 320, Chest, Gem3);
stagenm++;
};
if ((((((currentEnm < 4)) && ((stageEnm < 12)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 15){
createEnemy(700, _local3, Rock1);
};
if ((((_local8 >= 15)) && ((_local8 < 35)))){
createEnemy(700, _local3, Soldier1);
};
if ((((_local8 >= 35)) && ((_local8 < 50)))){
createEnemy(700, _local3, Rock2);
};
if ((((_local8 >= 50)) && ((_local8 < 60)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 60)) && ((_local8 < 70)))){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 70)) && ((_local8 < 85)))){
createEnemy(700, _local3, Soldier3);
};
if (_local8 >= 85){
createEnemy(700, _local3, Birdman);
};
};
};
if (stagenm == 3){
if ((((stageEnm == 13)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
stagechange = true;
stageEnm = 0;
createChest(630, 320, Chest, Aobj7);
stagenm++;
};
if ((((((currentEnm < 4)) && ((stageEnm < 13)))) && ((stagechange == false)))){
_local8 = (Math.random() * 100);
if (_local8 < 15){
createEnemy(700, _local3, Rock1);
};
if ((((_local8 >= 15)) && ((_local8 < 35)))){
createEnemy(700, _local3, Soldier2);
};
if ((((_local8 >= 35)) && ((_local8 < 50)))){
createEnemy(700, _local3, Rock2);
};
if ((((_local8 >= 50)) && ((_local8 < 60)))){
createEnemy(700, _local3, Thief2);
};
if ((((_local8 >= 60)) && ((_local8 < 70)))){
createEnemy(700, _local3, Thief1);
};
if ((((_local8 >= 70)) && ((_local8 < 85)))){
createEnemy(700, _local3, Soldier3);
};
if (_local8 >= 85){
createEnemy(700, _local3, Birdman);
};
};
};
if (stagenm == 2){
playRoll.actionstate = 1;
if ((((stageEnm == 2)) && ((currentEnm == 0)))){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
createChest(630, 320, Chest, Sword4obj);
stagechange = true;
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 2)) && ((stageEnm < 2)))) && ((stagechange == false)))){
createEnemy(700, 290, Rock3);
createEnemy(700, 350, Rock3);
};
};
if (stagenm == 1){
};
if (stagenm == 0){
timer++;
if (timer == 10){
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (timer == 40){
playRoll.dx = 0;
playRoll.roll.gotoAndStop(1);
_local7 = "";
_local6 = "The path leads no farther. It must all end here.";
_local5 = "I have never known such fatigue,";
_local4 = "but I made a vow which I must honour!";
_local2 = (playRoll.x + 20);
_local3 = (playRoll.y - 100);
dialogs = new Dialog2(_local2, _local3, 3, _local7, _local6, _local5, _local4, this);
createChest(1000, 290, Chest, Aobj5);
createChest(1000, 350, Chest, Aobj6);
stagenm = 1;
};
};
}
public function del2(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage2(46);
GC.clear();
}
public function del3(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
if (be == 1){
boss.del();
};
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(Stage89);
GC.clear();
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[5]")), "_blank");
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function initStage():void{
if (Data.continueGame == true){
Data.relivecrossnm = (Data.relivecrossnm - 1);
Data.SAttacknm = Data.sSAttacknm;
Data.Sdefendnm = Data.sSdefendnm;
Data.swordnm = Data.sswordnm;
Data.sheildnm = Data.ssheildnm;
Data.secondswordnm = Data.ssecondswordnm;
Data.levelnm = Data.slevelnm;
Data.cnm = Data.scnm;
Data.lifenm = Data.slifexxxnm;
Data.lifexxxnm = Data.slifexxxnm;
Data.scorenm = Data.sscorenm;
Data.scoresavenm = Data.sscoresavenm;
Data.continueGame = false;
};
Data.sSAttacknm = Data.SAttacknm;
Data.sSdefendnm = Data.Sdefendnm;
Data.sswordnm = Data.swordnm;
Data.ssheildnm = Data.sheildnm;
Data.ssecondswordnm = Data.secondswordnm;
Data.slevelnm = Data.levelnm;
Data.scnm = Data.cnm;
Data.slifenm = Data.lifenm;
Data.slifexxxnm = Data.lifexxxnm;
Data.sscorenm = Data.scorenm;
Data.sscoresavenm = Data.scoresavenm;
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky = new Wall51(0, 0);
cwall1 = new Wall52(0, 0);
cwall2 = new Wall53(0, 0);
playRoll = new Fighter(-80, 350, this);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
playRoll.actionstate = 0;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
SoundsManager.playMusic("castle");
}
}
}//package
Section 376
//Stage55 (Stage55)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import enemies.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage55 extends Sprite {
private var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = true
public var dialogs;
public var be;// = 0
public var stagenm;// = 0
private var timer;// = 0
private var eid:Number;// = 0
public var sky:MovieClip;
public var boss;
public var bossExist;// = 0
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var boss2;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
public function Stage55(_arg1){
timer = 0;
eid = 0;
be = 0;
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
stageEnm = 0;
stagechange = true;
stagechangeT = 0;
stagenm = 0;
bossExist = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
var _local2:*;
var _local3:int;
_local2 = enemys.length;
_local3 = 0;
while (_local3 < _local2) {
enemys[0].del();
_local3++;
};
enemys = [];
if (be == 1){
boss.del();
};
playRoll.del();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function createEnemy(_arg1, _arg2, _arg3):void{
var _local4:*;
_local4 = ("enemy" + eid);
eid++;
_local4 = new _arg3(_arg1, _arg2, this);
enemys.push(_local4);
_local4.number = _local4;
currentEnm++;
stageEnm++;
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
if (stagechange == true){
if (sky.x <= -600){
sky.x = 0;
};
if (cwall1.x <= -1200){
cwall1.x = 0;
};
if (cwall2.x <= -1200){
cwall2.x = 0;
};
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
_local3 = ((Math.random() * 100) + 270);
_local8 = (Math.random() * 100);
if (stagenm == 3){
if (zz.currentFrame == 20){
playRoll.actionstate = 0;
playRoll.dx = 0;
playRoll.dy = 0;
zz.gotoAndPlay(21);
};
if (zz.currentFrame == 90){
Data.gameend = 2;
if (Game.gamecomplete == false){
Game.gamecomplete = true;
Game._tracker.trackEvent("Blue Knight", "game complete", "per session", 0);
};
del(Stage80);
};
};
if (stagenm == 2){
if ((((stageEnm == 1)) && ((currentEnm == 0)))){
stageEnm = 0;
stagenm++;
};
if ((((((currentEnm < 1)) && ((stagechange == false)))) && ((bossExist == 0)))){
bossstates = new Boss6State(400, 50);
container5.addChild(bossstates);
boss = new Dragonknight(700, 340, this);
boss.isboss = true;
bossExist = 1;
be = 1;
currentEnm++;
stageEnm++;
};
};
if (stagenm == 1){
if (stagechange == false){
stagechange = true;
stageEnm = 0;
stagenm++;
};
};
if (stagenm == 0){
timer++;
if (timer == 10){
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
if (timer == 40){
playRoll.dx = 0;
playRoll.roll.gotoAndStop(1);
playRoll.actionstate = 1;
createChest(630, 290, Chest, Sword5obj);
createChest(630, 350, Chest, Sheild5obj);
createChest(800, 320, Chest, Lifewater);
stagenm = 1;
};
};
}
public function del2(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
if (be == 1){
boss.del();
};
playRoll.del();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage2(55);
GC.clear();
}
public function del3(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
if (be == 1){
boss.del();
};
playRoll.del();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(Stage89);
GC.clear();
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[5]")), "_blank");
}
private function initStage():void{
if (Data.continueGame == true){
Data.relivecrossnm = (Data.relivecrossnm - 1);
Data.SAttacknm = Data.sSAttacknm;
Data.Sdefendnm = Data.sSdefendnm;
Data.swordnm = Data.sswordnm;
Data.sheildnm = Data.ssheildnm;
Data.secondswordnm = Data.ssecondswordnm;
Data.levelnm = Data.slevelnm;
Data.cnm = Data.scnm;
Data.lifenm = Data.slifexxxnm;
Data.lifexxxnm = Data.slifexxxnm;
Data.scorenm = Data.sscorenm;
Data.scoresavenm = Data.sscoresavenm;
Data.continueGame = false;
};
Data.sSAttacknm = Data.SAttacknm;
Data.sSdefendnm = Data.Sdefendnm;
Data.sswordnm = Data.swordnm;
Data.ssheildnm = Data.sheildnm;
Data.ssecondswordnm = Data.secondswordnm;
Data.slevelnm = Data.levelnm;
Data.scnm = Data.cnm;
Data.slifenm = Data.lifenm;
Data.slifexxxnm = Data.lifexxxnm;
Data.sscorenm = Data.scorenm;
Data.sscoresavenm = Data.scoresavenm;
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky = new Wall61(0, 0);
cwall1 = new Wall62(0, 0);
cwall2 = new Wall63(0, 0);
playRoll = new Fighter(-80, 350, this);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
playRoll.actionstate = 0;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
}
public function createboss2(_arg1, _arg2, _arg3):void{
boss2 = new Hecter(_arg1, _arg2, this);
boss2.roll.y = _arg3;
boss2.roll.gotoAndPlay(240);
currentEnm++;
stageEnm = 1;
}
}
}//package
Section 377
//Stage6 (Stage6)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import enemies.*;
import fires.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage6 extends Sprite {
private var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = false
public var dialogs;
public var sky:MovieClip;
public var stagenm;// = 0
private var timer;// = 0
public var boss;
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
public function Stage6(_arg1){
timer = 0;
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
stageEnm = 0;
stagechange = false;
stagechangeT = 0;
stagenm = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
var _local2:*;
var _local3:int;
_local2 = enemys.length;
_local3 = 0;
while (_local3 < _local2) {
enemys[0].del();
_local3++;
};
enemys = [];
playRoll.del();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.skipb.removeEventListener(MouseEvent.MOUSE_UP, skipaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function createEnemy(_arg1, _arg2, _arg3):void{
var _local4:*;
_local4 = new _arg3(_arg1, _arg2, this);
enemys.push(_local4);
_local4.number = _local4;
currentEnm++;
stageEnm++;
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local3 = (((Math.random() * 580) + 10) - sky.x);
_local4 = ((Math.random() * 20) + 220);
_local5 = (Math.random() * 3);
if (_local5 < 1){
_local6 = (Math.random() * 11);
if (_local6 < 1){
_local2 = new Fire1(_local3, _local4, sky);
};
if ((((_local6 >= 1)) && ((_local6 < 2)))){
_local2 = new Fire2(_local3, _local4, sky);
};
if ((((_local6 >= 2)) && ((_local6 < 3)))){
_local2 = new Fire3(_local3, _local4, sky);
};
if ((((_local6 >= 3)) && ((_local6 < 4)))){
_local2 = new Fire4(_local3, _local4, sky);
};
if ((((_local6 >= 4)) && ((_local6 < 5)))){
_local2 = new Fire5(_local3, _local4, sky);
};
if ((((_local6 >= 5)) && ((_local6 < 6)))){
_local2 = new Fire6(_local3, _local4, sky);
};
if ((((_local6 >= 6)) && ((_local6 < 7)))){
_local2 = new Fire7(_local3, _local4, sky);
};
if ((((_local6 >= 7)) && ((_local6 < 8)))){
_local2 = new Fire8(_local3, _local4, sky);
};
if ((((_local6 >= 8)) && ((_local6 < 9)))){
_local2 = new Fire9(_local3, _local4, sky);
};
if ((((_local6 >= 9)) && ((_local6 < 10)))){
_local2 = new Fire10(_local3, _local4, sky);
};
if ((((_local6 >= 10)) && ((_local6 <= 11)))){
_local2 = new Fire11(_local3, _local4, sky);
};
_local2.scaleX = (_local2.scaleY = ((Math.random() * 0.5) + 0.2));
_local2.alpha = ((Math.random() * 0.4) + 0.2);
};
if (stagechange == true){
if (sky.x <= -600){
sky.x = 0;
};
if (cwall1.x <= -1200){
cwall1.x = 0;
};
if (cwall2.x <= -1200){
cwall2.x = 0;
};
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
timer++;
if (timer == 125){
zz.gotoAndPlay(21);
};
if (zz.currentFrame == 90){
del(Stage8);
};
}
private function skipaction(_arg1:Event):void{
timer = 0;
del(Stage12);
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[1]")), "_blank");
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function initStage():void{
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky = new Wall11(0, 0);
cwall1 = new Wall12(-478, 0);
cwall2 = new Wall13(-328, 310);
playRoll = new Fighter(-1880, 330, this);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
playRoll.actionstate = 0;
createEnemy(560, 300, Rock1);
createEnemy(590, 330, Soldier1);
createEnemy(630, 290, Soldier2);
createEnemy(480, 310, Soldier1);
createEnemy(510, 290, Thief1);
createEnemy(540, 360, Thief1);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.skipb.visible = true;
states.skipb.addEventListener(MouseEvent.MOUSE_UP, skipaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
}
}
}//package
Section 378
//Stage8 (Stage8)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import enemies.*;
import fires.*;
import objects.*;
import rolls.*;
import ui.*;
import walls.*;
public class Stage8 extends Sprite {
private var stageEnm;// = 0
public var states:MovieClip;
public var cwall2:MovieClip;
public var cwall1:MovieClip;
public var stagechange:Boolean;// = false
public var dialogs;
public var sky:MovieClip;
public var stagenm;// = 0
private var timer;// = 0
public var boss;
private var par;
public var bossstates:MovieClip;
public var zz:MovieClip;
public var currentEnm;// = 0
public var container1:Sprite;
public var container2:Sprite;
public var container3:Sprite;
public var container4:Sprite;
public var container5:Sprite;
public var playRoll;
public var stagechangeT:Number;// = 0
private var go:MovieClip;
public var enemys:Array;
private var goExist;// = 0
public function Stage8(_arg1){
timer = 0;
goExist = 0;
container1 = new Sprite();
container2 = new Sprite();
container3 = new Sprite();
container4 = new Sprite();
container5 = new Sprite();
enemys = new Array();
currentEnm = 0;
stageEnm = 0;
stagechange = false;
stagechangeT = 0;
stagenm = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
var _local2:*;
var _local3:int;
_local2 = enemys.length;
_local3 = 0;
while (_local3 < _local2) {
enemys[0].del();
_local3++;
};
enemys = [];
playRoll.del();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.skipb.removeEventListener(MouseEvent.MOUSE_UP, skipaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(_arg1);
GC.clear();
}
private function createEnemy(_arg1, _arg2, _arg3):void{
var _local4:*;
_local4 = new _arg3(_arg1, _arg2, this);
enemys.push(_local4);
_local4.number = _local4;
currentEnm++;
stageEnm++;
}
private function goaction(_arg1:Event):void{
if (go.currentFrame == 46){
container5.removeChild(go);
go.removeEventListener(Event.ENTER_FRAME, goaction);
};
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local3 = (((Math.random() * 580) + 10) - sky.x);
_local4 = ((Math.random() * 20) + 220);
_local5 = (Math.random() * 3);
if (_local5 < 1){
_local6 = (Math.random() * 11);
if (_local6 < 1){
_local2 = new Fire1(_local3, _local4, sky);
};
if ((((_local6 >= 1)) && ((_local6 < 2)))){
_local2 = new Fire2(_local3, _local4, sky);
};
if ((((_local6 >= 2)) && ((_local6 < 3)))){
_local2 = new Fire3(_local3, _local4, sky);
};
if ((((_local6 >= 3)) && ((_local6 < 4)))){
_local2 = new Fire4(_local3, _local4, sky);
};
if ((((_local6 >= 4)) && ((_local6 < 5)))){
_local2 = new Fire5(_local3, _local4, sky);
};
if ((((_local6 >= 5)) && ((_local6 < 6)))){
_local2 = new Fire6(_local3, _local4, sky);
};
if ((((_local6 >= 6)) && ((_local6 < 7)))){
_local2 = new Fire7(_local3, _local4, sky);
};
if ((((_local6 >= 7)) && ((_local6 < 8)))){
_local2 = new Fire8(_local3, _local4, sky);
};
if ((((_local6 >= 8)) && ((_local6 < 9)))){
_local2 = new Fire9(_local3, _local4, sky);
};
if ((((_local6 >= 9)) && ((_local6 < 10)))){
_local2 = new Fire10(_local3, _local4, sky);
};
if ((((_local6 >= 10)) && ((_local6 <= 11)))){
_local2 = new Fire11(_local3, _local4, sky);
};
_local2.scaleX = (_local2.scaleY = ((Math.random() * 0.5) + 0.2));
_local2.alpha = ((Math.random() * 0.4) + 0.2);
};
if (stagechangeT == 80){
stagechangeT = 0;
stagechange = false;
};
timer++;
if (timer == 30){
playRoll.dx = 7;
playRoll.roll.gotoAndPlay(2);
};
if (timer == 55){
playRoll.dx = 0;
playRoll.roll.gotoAndStop(1);
playRoll.actionstate = 1;
};
if ((((currentEnm == 0)) && ((zz.currentFrame == 20)))){
if (goExist == 0){
go = new Go(500, 50);
container5.addChild(go);
go.addEventListener(Event.ENTER_FRAME, goaction);
goExist = 1;
};
if (playRoll.x > 550){
zz.gotoAndPlay(21);
playRoll.actionstate = 0;
playRoll.dx = 7;
if (playRoll.roll.currentFrame == 1){
playRoll.roll.gotoAndPlay(2);
};
};
};
if (zz.currentFrame == 90){
del(Stage10);
};
}
private function skipaction(_arg1:Event):void{
timer = 0;
del(Stage12);
}
private function createBar(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
_local8 = new _arg3(_arg1, _arg2, this);
enemys.push(_local8);
_local8.number = _local8;
_local8.obj1 = _arg4;
_local8.obj2 = _arg5;
_local8.obj3 = _arg6;
_local8.obj4 = _arg7;
}
public function del2(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.skipb.removeEventListener(MouseEvent.MOUSE_UP, skipaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage2(12);
GC.clear();
}
public function del3(){
var _local1:*;
var _local2:int;
_local1 = enemys.length;
_local2 = 0;
while (_local2 < _local1) {
enemys[0].del();
_local2++;
};
enemys = [];
playRoll.del();
this.removeEventListener(Event.ENTER_FRAME, thisaction);
states.skipb.removeEventListener(MouseEvent.MOUSE_UP, skipaction);
states.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
container1.removeChild(sky);
container2.removeChild(cwall1);
container4.removeChild(cwall2);
container5.removeChild(states);
container5.removeChild(zz);
sky = null;
cwall1 = null;
cwall2 = null;
states = null;
zz = null;
removeChild(container1);
removeChild(container2);
removeChild(container3);
container3 = null;
removeChild(container4);
removeChild(container5);
container1 = null;
container2 = null;
container4 = null;
container5 = null;
par.changeStage(Stage89);
GC.clear();
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_level[1]")), "_blank");
}
private function createChest(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
_local5 = new _arg3(_arg1, _arg2, this);
enemys.push(_local5);
_local5.number = _local5;
_local5.obj1 = _arg4;
}
private function initStage():void{
addChild(container1);
addChild(container2);
addChild(container3);
addChild(container4);
addChild(container5);
sky = new Wall11(0, 0);
cwall1 = new Wall12(-378, 0);
cwall2 = new Wall13(-428, 310);
playRoll = new Fighter(-80, 330, this);
states = new RollState(0, 380);
zz = new ZZ2(300, 0);
container1.addChild(sky);
container2.addChild(cwall1);
container4.addChild(cwall2);
container5.addChild(states);
container5.addChild(zz);
playRoll.actionstate = 0;
createBar(400, 300, Bar, Cherry, Apple, Crystel, Crystel);
createBar(450, 360, Bar, Crystel, Tomato, Berry, Crystel);
createEnemy(590, 330, Soldier1);
createEnemy(630, 340, Soldier2);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
states.skipb.visible = true;
states.skipb.addEventListener(MouseEvent.MOUSE_UP, skipaction, false, 0, true);
states.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
}
}
}//package
Section 379
//Stage80 (Stage80)
package {
import flash.events.*;
import flash.display.*;
import ui.*;
public class Stage80 extends Sprite {
private var timer;// = 0
private var par;
private var gamestart:MovieClip;
public function Stage80(_arg1){
timer = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(gamestart);
gamestart = null;
par.changeStage(_arg1);
GC.clear();
}
private function thisaction(_arg1:Event):void{
timer++;
if (timer == 1100){
gamestart.zz.gotoAndPlay(27);
};
if (gamestart.zz.currentFrame == 75){
del(Stage81);
};
}
private function initStage():void{
var _local1:*;
_local1 = "Even victory cannot soothe this battle-worn and weary soul. \r\rJustice has been won…for now. The hero knows that peace is never more than temporary. \r\rHowever, he must take comfort in his knowledge of truth and courage, and hope the fires of hell can contain the souls of evil for some time still to come...";
gamestart = new Congratulation(300, 0, _local1, this);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
SoundsManager.playMusic("bluenightover", 3000, 3000);
}
}
}//package
Section 380
//Stage81 (Stage81)
package {
import flash.events.*;
import flash.display.*;
import ui.*;
public class Stage81 extends Sprite {
private var timer;// = 0
private var par;
private var gamestart:MovieClip;
public function Stage81(_arg1){
timer = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(gamestart);
gamestart = null;
par.changeStage(_arg1);
}
private function thisaction(_arg1:Event):void{
timer++;
if ((((timer > 20)) && ((timer < 560)))){
gamestart.credits.y = (gamestart.credits.y - 2);
};
if (timer == 520){
SoundsManager.playMusic("kkk");
};
if (timer == 575){
gamestart.zz.gotoAndPlay(21);
};
if (gamestart.zz.currentFrame == 90){
del(Stage89);
};
}
private function initStage():void{
gamestart = new BaoYouyuan(300, 0);
addChild(gamestart);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
}
}//package
Section 381
//Stage88 (Stage88)
package {
import flash.events.*;
import flash.display.*;
import data.*;
import ui.*;
public class Stage88 extends Sprite {
private var stagenm;
private var timer;// = 0
private var par;
private var gamestart:MovieClip;
public function Stage88(_arg1, _arg2){
timer = 0;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
stagenm = _arg2;
initStage();
}
public function del(_arg1){
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(gamestart);
gamestart = null;
par.changeStage(_arg1);
GC.clear();
}
private function thisaction(_arg1:Event):void{
timer++;
if (timer == 125){
gamestart.zz.gotoAndPlay(27);
};
if (gamestart.zz.currentFrame == 75){
if (stagenm == 12){
del(Stage12);
};
if (stagenm == 31){
del(Stage31);
};
if (stagenm == 36){
del(Stage36);
};
if (stagenm == 41){
del(Stage41);
};
if (stagenm == 46){
del(Stage46);
};
if (stagenm == 55){
SoundsManager.playMusic("boss");
del(Stage55);
};
};
}
private function initStage():void{
gamestart = new ReliveStage(300, 0, "By the grace of the Cross of Rebirth, return the soul of this hero to the battlefield!", this);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
SoundsManager.playMusic("chongshenzhiguang");
if (Data.canmusic == true){
SoundsManager.modifyMusicVolume(0.4);
};
}
}
}//package
Section 382
//Stage89 (Stage89)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import ui.*;
public class Stage89 extends Sprite {
private var choosestage;// = 1
private var playerscore:Number;
private var st;// = 1
private var par;
private var gamestart;
public function Stage89(_arg1){
st = 1;
choosestage = 1;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1):void{
gamestart.submit.removeEventListener(MouseEvent.MOUSE_OVER, fireaction1);
gamestart.submit.removeEventListener(MouseEvent.MOUSE_UP, okaction);
gamestart.tryagain.removeEventListener(MouseEvent.MOUSE_OVER, fireaction2);
gamestart.tryagain.removeEventListener(MouseEvent.MOUSE_UP, tryaction);
gamestart.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(gamestart);
gamestart = null;
par.changeStage(_arg1);
GC.clear();
}
public function okaction(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:int;
if (gamestart.inputTextfield.text != ""){
_local4 = 9;
while (_local4 >= 0) {
if (playerscore > Cookie.da.arr[_local4].score){
if (_local4 == 9){
Cookie.da.arr[_local4].score = playerscore;
Cookie.da.arr[_local4].name = gamestart.inputTextfield.text;
};
if (_local4 < 9){
_local3 = Cookie.da.arr[_local4].score;
_local2 = Cookie.da.arr[_local4].name;
Cookie.da.arr[_local4].score = playerscore;
Cookie.da.arr[_local4].name = gamestart.inputTextfield.text;
Cookie.da.arr[(_local4 + 1)].score = _local3;
Cookie.da.arr[(_local4 + 1)].name = _local2;
};
};
_local4--;
};
choosestage = 1;
SoundsManager.playSound("menu_press");
gamestart.zz.gotoAndPlay(8);
};
}
private function thisaction(_arg1:Event):void{
if (gamestart.zz.currentFrame == 31){
if (choosestage == 1){
del(Stage90);
};
if (choosestage == 2){
del(Stage12);
};
};
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_submitscore")), "_blank");
}
public function tryaction(_arg1:MouseEvent):void{
choosestage = 2;
SoundsManager.playSound("menu_press");
gamestart.zz.gotoAndPlay(8);
}
private function fireaction1(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 60) {
_local4 = ((gamestart.submit.x + (Math.random() * 200)) + 200);
_local5 = ((gamestart.submit.y + (Math.random() * 60)) - 30);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(gamestart) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function fireaction2(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 60) {
_local4 = ((gamestart.tryagain.x + (Math.random() * 200)) + 200);
_local5 = ((gamestart.tryagain.y + (Math.random() * 60)) - 30);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(gamestart) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function initStage():void{
playerscore = (Data.scorenm * 10);
new Cookie();
gamestart = new InputFace(300, 0);
addChild(gamestart);
gamestart.submit.addEventListener(MouseEvent.MOUSE_OVER, fireaction1, false, 0, true);
gamestart.submit.addEventListener(MouseEvent.MOUSE_UP, okaction, false, 0, true);
gamestart.tryagain.addEventListener(MouseEvent.MOUSE_OVER, fireaction2, false, 0, true);
gamestart.tryagain.addEventListener(MouseEvent.MOUSE_UP, tryaction, false, 0, true);
gamestart.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
stage.focus = gamestart.inputTextfield;
gamestart.inputTextfield.text = "Player";
gamestart.inputTextfield.setSelection(0, 6);
SoundsManager.modifyMusicVolume(0);
}
}
}//package
Section 383
//Stage90 (Stage90)
package {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import url.*;
import data.*;
import ui.*;
public class Stage90 extends Sprite {
private var st;// = 1
private var par;
private var gamestart:MovieClip;
public function Stage90(_arg1){
st = 1;
super();
_arg1.gamespirit.addChild(this);
par = _arg1;
initStage();
}
public function del(_arg1){
gamestart.ok.removeEventListener(MouseEvent.MOUSE_OVER, fireaction1);
gamestart.ok.removeEventListener(MouseEvent.MOUSE_UP, okaction);
gamestart.urlbtn.removeEventListener(MouseEvent.MOUSE_UP, urlaction);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
removeChild(gamestart);
gamestart = null;
par.changeStage(_arg1);
GC.clear();
}
private function okaction(_arg1:Event):void{
if (st == 1){
SoundsManager.playSound("menu_press");
gamestart.zz.gotoAndPlay(27);
st = 0;
};
}
private function thisaction(_arg1:Event):void{
if (gamestart.zz.currentFrame == 75){
if ((((Data.gameend == 2)) || ((Data.gameend == 0)))){
del(Stage1);
};
if (Data.gameend == 1){
del(Stage100);
};
};
}
private function urlaction(_arg1:Event):void{
navigateToURL(new URLRequest((language.url1 + "&utm_term=logo_highscore")), "_blank");
}
private function fireaction1(_arg1:MouseEvent):void{
var _local2:*;
var _local3:uint;
var _local4:*;
var _local5:*;
_local3 = 0;
while (_local3 < 80) {
_local4 = (240 + (Math.random() * 120));
_local5 = ((gamestart.ok.y + (Math.random() * 80)) - 40);
_local2 = new FireStar(_local4, _local5, par.gamespirit);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
par.gamespirit.setChildIndex(_local2, (par.gamespirit.getChildByName(gamestart) + 1));
_local2.mouseEnabled = false;
_local3++;
};
SoundsManager.playSound("menu_touch");
}
private function initStage():void{
gamestart = new Highscore(300, 0);
addChild(gamestart);
gamestart.m1.text = (" 1. " + Cookie.da.arr[0].name);
gamestart.m2.text = (" 2. " + Cookie.da.arr[1].name);
gamestart.m3.text = (" 3. " + Cookie.da.arr[2].name);
gamestart.m4.text = (" 4. " + Cookie.da.arr[3].name);
gamestart.m5.text = (" 5. " + Cookie.da.arr[4].name);
gamestart.m6.text = (" 6. " + Cookie.da.arr[5].name);
gamestart.m7.text = (" 7. " + Cookie.da.arr[6].name);
gamestart.m8.text = (" 8. " + Cookie.da.arr[7].name);
gamestart.m9.text = (" 9. " + Cookie.da.arr[8].name);
gamestart.m10.text = ("10. " + Cookie.da.arr[9].name);
gamestart.s1.text = Cookie.da.arr[0].score;
gamestart.s2.text = Cookie.da.arr[1].score;
gamestart.s3.text = Cookie.da.arr[2].score;
gamestart.s4.text = Cookie.da.arr[3].score;
gamestart.s5.text = Cookie.da.arr[4].score;
gamestart.s6.text = Cookie.da.arr[5].score;
gamestart.s7.text = Cookie.da.arr[6].score;
gamestart.s8.text = Cookie.da.arr[7].score;
gamestart.s9.text = Cookie.da.arr[8].score;
gamestart.s10.text = Cookie.da.arr[9].score;
gamestart.ok.addEventListener(MouseEvent.MOUSE_OVER, fireaction1, false, 0, true);
gamestart.ok.addEventListener(MouseEvent.MOUSE_UP, okaction, false, 0, true);
gamestart.urlbtn.addEventListener(MouseEvent.MOUSE_UP, urlaction, false, 0, true);
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
SoundsManager.stopMusic();
}
}
}//package
Section 384
//story (story)
package {
import flash.media.*;
public dynamic class story extends Sound {
}
}//package
Section 385
//Thief1 (Thief1)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Thief1 extends Sprite {
public const hurt:uint = 125;
public const attack:uint = 20;
public const die:uint = 136;
public const strong:Number = 2;
public const walk:uint = 2;
public const attack2:uint = 80;
public var dxfix:Number;// = 0
public var life:Number;// = 20
public var actionstate;// = 1
public var hitBall:MovieClip;
private var fire;
public var number;
public var speed:Number;// = 20
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
private var par;
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Thief1(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
dx = 0;
dy = 0;
dxfix = 0;
life = 20;
man = true;
speed = 20;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initThief1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function initThief1():void{
hitBall = new HitMovie(0, -35, this);
addChild(hitBall);
hitBall.width = 110;
hitBall.height = 70;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
roll = new Thief1Roll(0, 0);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if (roll.currentFrame == (hurt + 3)){
if (life <= 0){
dx = 0;
dy = 0;
dxfix = 0;
roll.gotoAndPlay(die);
SoundsManager.playSound("xiaoguisiwang");
createObj(Crystel);
createObj(Crystel);
_local4 = (Math.random() * 100);
if (_local4 < 70){
createObj(SilverCoin);
};
if ((((_local4 >= 70)) && ((_local4 < 92)))){
createObj(Gem1);
};
if (_local4 >= 92){
createObj(Berry);
};
};
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 13)){
_local2 = ((x + roll.x) - (30 * scaleX));
_local3 = ((y + roll.y) - 90);
fist = new EFireBottle(_local2, _local3, par);
par.enemys.push(fist);
fist.number = fist;
fist.yfix = y;
fist.dx = ((-12 * scaleX) - (Math.random() * 3));
fist.dy = (-20 - (Math.random() * 6));
fist.drot = (scaleX * (-30 - (Math.random() * 30)));
fist.xxscale = scaleX;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
};
if (roll.currentFrame == (attack2 + 8)){
_local2 = ((x + roll.x) - (40 * scaleX));
_local3 = ((y + roll.y) - 40);
fist = new Fist(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.6);
fist.xxscale = scaleX;
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 201);
if (_local5 < 3){
dx = (-7 * scaleX);
dy = 0;
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 4)) && ((_local5 < 5)))){
if (t.y < y){
dy = -4.5;
dx = 0;
};
if (t.y > y){
dy = 4.5;
dx = 0;
};
roll.gotoAndPlay(walk);
};
if (_local5 > 200){
dx = 0;
dy = 0;
roll.gotoAndStop(1);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 100);
if (_local6 < 3){
dx = (-7 * scaleX);
dy = 0;
};
if ((((_local6 >= 4)) && ((_local6 < 5)))){
if (t.y < y){
dy = -4.5;
dx = 0;
};
if (t.y > y){
dy = 4.5;
dx = 0;
};
};
};
if ((((((Math.abs((t.x - x)) < 100)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack2);
SoundsManager.playSound("xiaoguichuzhao");
};
if ((((((((((((((Math.abs((t.x - x)) >= 250)) && ((Math.abs((t.x - x)) < 320)))) && ((Math.abs((t.y - y)) < 14)))) && ((roll.currentFrame < attack)))) && ((x < 600)))) && ((x > 0)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 4);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 4);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (x < -100){
x = -100;
stopAction();
};
if (x > 700){
x = 700;
stopAction();
};
if (y < 274){
y = 274;
stopAction();
};
if (y > 380){
y = 380;
stopAction();
};
if (roll.currentFrame == (die + 1)){
removeChild(rollshadow);
};
if (roll.currentFrame == 250){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
}
}//package
Section 386
//Thief2 (Thief2)
package {
import flash.events.*;
import flash.display.*;
import enemies.*;
import objects.*;
public class Thief2 extends Sprite {
public const hurt:uint = 125;
public const attack:uint = 20;
public const die:uint = 136;
public const strong:Number = 2;
public const walk:uint = 2;
public const attack2:uint = 80;
public var dxfix:Number;// = 0
public var life:Number;// = 30
public var actionstate;// = 1
public var hitBall:MovieClip;
private var fire;
public var number;
public var speed:Number;// = 20
public var man:Boolean;// = true
private var fist:MovieClip;
private var t;
public var roll:MovieClip;
public var dy:Number;// = 0
private var par;
public var dx:Number;// = 0
public var defend:Number;
private var rollshadow:MovieClip;
public function Thief2(_arg1:Number=0, _arg2:Number=0, _arg3=null){
actionstate = 1;
dx = 0;
dy = 0;
dxfix = 0;
life = 30;
man = true;
speed = 20;
super();
_arg3.container3.addChild(this);
par = _arg3;
x = _arg1;
y = _arg2;
initThief1();
}
private function stopAction():void{
roll.gotoAndStop(1);
dx = 0;
dy = 0;
}
public function del():void{
var _local1:*;
var _local2:uint;
roll.stop();
removeChild(roll);
this.removeEventListener(Event.ENTER_FRAME, thisaction);
_local1 = par.enemys.length;
_local2 = 0;
while (_local2 < _local1) {
if (par.enemys[_local2] == number){
par.enemys.splice(_local2, 1);
break;
};
_local2++;
};
par.container3.removeChild(this);
par.currentEnm--;
}
private function changeDepth():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
_local3 = 0;
while (_local3 < par.container3.numChildren) {
_local1 = par.container3.getChildAt(_local3);
if (_local1.man){
_local2 = par.container3.getChildIndex(this);
if ((((((_local3 < _local2)) && ((_local1.y > this.y)))) || ((((_local3 > _local2)) && ((_local1.y < this.y)))))){
par.container3.swapChildren(_local1, this);
};
};
_local3++;
};
}
private function initThief1():void{
hitBall = new HitMovie(0, -35, this);
addChild(hitBall);
hitBall.width = 110;
hitBall.height = 70;
rollshadow = new Shadow(4, 0);
addChild(rollshadow);
roll = new Thief2Roll(0, 0);
addChild(roll);
t = par.playRoll;
this.addEventListener(Event.ENTER_FRAME, thisaction, false, 0, true);
}
private function thisaction(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (actionstate == 0){
};
if (actionstate == 1){
changeDepth();
x = (x + dx);
x = (x + dxfix);
y = (y + dy);
if (dxfix > 2){
dxfix = (dxfix - 3);
};
if (dxfix < -2){
dxfix = (dxfix + 3);
};
if ((((dxfix >= -2)) && ((dxfix <= 2)))){
dxfix = 0;
};
if (roll.currentFrame == (hurt + 3)){
if (life <= 0){
dx = 0;
dy = 0;
dxfix = 0;
roll.gotoAndPlay(die);
SoundsManager.playSound("xiaoguisiwang");
createObj(Crystel);
createObj(Crystel);
_local4 = (Math.random() * 100);
if (_local4 < 70){
createObj(SilverCoin);
};
if ((((_local4 >= 70)) && ((_local4 < 92)))){
createObj(Gem1);
};
if (_local4 >= 92){
createObj(Bread);
};
};
};
if ((((t.x < x)) && ((roll.currentFrame < attack)))){
scaleX = 1;
};
if ((((t.x > x)) && ((roll.currentFrame < attack)))){
scaleX = -1;
};
if (roll.currentFrame == (attack + 13)){
_local2 = ((x + roll.x) - (60 * scaleX));
_local3 = ((y + roll.y) - 60);
fist = new EDagger(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.dx = (-50 * scaleX);
fist.xxscale = scaleX;
};
if (roll.currentFrame == (attack2 + 8)){
_local2 = ((x + roll.x) - (40 * scaleX));
_local3 = ((y + roll.y) - 40);
fist = new Fist(_local2, _local3, par);
fist.yfix = y;
par.container3.setChildIndex(fist, (par.container3.getChildIndex(this) + 1));
fist.scaleX = (fist.scaleY = 0.6);
fist.xxscale = scaleX;
};
if (roll.currentFrame == 1){
_local5 = (Math.random() * 201);
if (_local5 < 3){
dx = (-7 * scaleX);
dy = 0;
roll.gotoAndPlay(walk);
};
if ((((_local5 >= 4)) && ((_local5 < 5)))){
if (t.y < y){
dy = -4.5;
dx = 0;
};
if (t.y > y){
dy = 4.5;
dx = 0;
};
roll.gotoAndPlay(walk);
};
if (_local5 > 200){
dx = 0;
dy = 0;
roll.gotoAndStop(1);
};
};
if ((((roll.currentFrame >= walk)) && ((roll.currentFrame < attack)))){
_local6 = (Math.random() * 100);
if (_local6 < 3){
dx = (-7 * scaleX);
dy = 0;
};
if ((((_local6 >= 4)) && ((_local6 < 5)))){
if (t.y < y){
dy = -4.5;
dx = 0;
};
if (t.y > y){
dy = 4.5;
dx = 0;
};
};
};
if ((((((Math.abs((t.x - x)) < 100)) && ((Math.abs((t.y - y)) < 12)))) && ((roll.currentFrame < attack)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack2);
SoundsManager.playSound("xiaoguichuzhao");
};
if ((((((((((((Math.abs((t.x - x)) >= 200)) && ((Math.abs((t.y - y)) < 14)))) && ((roll.currentFrame < attack)))) && ((x < 600)))) && ((x > 0)))) && ((t.roll.currentFrame < t.hurt2)))){
dx = 0;
dy = 0;
roll.gotoAndPlay(attack);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx < 0)))){
dx = (dx + 4);
};
if ((((((roll.currentFrame >= hurt)) && ((roll.currentFrame < (hurt + 5))))) && ((dx > 0)))){
dx = (dx - 4);
};
if (roll.currentFrame == (hurt + 5)){
dx = 0;
};
if (x < -60){
x = -58;
stopAction();
};
if (x > 660){
x = 658;
stopAction();
};
if (y < 274){
y = 274;
stopAction();
};
if (y > 380){
y = 380;
stopAction();
};
if (roll.currentFrame == (die + 1)){
removeChild(rollshadow);
};
if (roll.currentFrame == 250){
del();
};
};
}
private function createObj(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:*;
_local3 = ((x - 10) + (Math.random() * 20));
_local4 = ((y - 60) + (Math.random() * 20));
_local2 = new _arg1(_local3, _local4, par, this);
par.enemys.push(_local2);
_local2.number = _local2;
}
}
}//package
Section 387
//win (win)
package {
import flash.media.*;
public dynamic class win extends Sound {
}
}//package
Section 388
//wood (wood)
package {
import flash.media.*;
public dynamic class wood extends Sound {
}
}//package
Section 389
//wuqishengji (wuqishengji)
package {
import flash.media.*;
public dynamic class wuqishengji extends Sound {
}
}//package
Section 390
//wushichuzhao (wushichuzhao)
package {
import flash.media.*;
public dynamic class wushichuzhao extends Sound {
}
}//package
Section 391
//wushishunchuxian (wushishunchuxian)
package {
import flash.media.*;
public dynamic class wushishunchuxian extends Sound {
}
}//package
Section 392
//wushishunxiaoshi (wushishunxiaoshi)
package {
import flash.media.*;
public dynamic class wushishunxiaoshi extends Sound {
}
}//package
Section 393
//wushisiwang (wushisiwang)
package {
import flash.media.*;
public dynamic class wushisiwang extends Sound {
}
}//package
Section 394
//wushixiao (wushixiao)
package {
import flash.media.*;
public dynamic class wushixiao extends Sound {
}
}//package
Section 395
//xiaobin (xiaobin)
package {
import flash.media.*;
public dynamic class xiaobin extends Sound {
}
}//package
Section 396
//xiaoguichuzhao (xiaoguichuzhao)
package {
import flash.media.*;
public dynamic class xiaoguichuzhao extends Sound {
}
}//package
Section 397
//xiaoguisiwang (xiaoguisiwang)
package {
import flash.media.*;
public dynamic class xiaoguisiwang extends Sound {
}
}//package
Section 398
//xiaohuoshao (xiaohuoshao)
package {
import flash.media.*;
public dynamic class xiaohuoshao extends Sound {
}
}//package
Section 399
//zhiliao (zhiliao)
package {
import flash.media.*;
public dynamic class zhiliao extends Sound {
}
}//package