Section 1
//GOGOGO (com.A25swf.Control.GOGOGO)
package com.A25swf.Control {
import flash.events.*;
import flash.display.*;
import com.A25swf.*;
public class GOGOGO extends SimpleButton {
public function GOGOGO(_arg1:DisplayObject=null, _arg2:DisplayObject=null, _arg3:DisplayObject=null, _arg4:DisplayObject=null){
super(_arg1, _arg2, _arg3, _arg4);
this.addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(_arg1:MouseEvent):void{
GameEngine.startGame();
}
}
}//package com.A25swf.Control
Section 2
//HowToPlay (com.A25swf.Control.HowToPlay)
package com.A25swf.Control {
import flash.events.*;
import flash.display.*;
import com.A25swf.*;
public class HowToPlay extends SimpleButton {
public function HowToPlay(_arg1:DisplayObject=null, _arg2:DisplayObject=null, _arg3:DisplayObject=null, _arg4:DisplayObject=null){
super(_arg1, _arg2, _arg3, _arg4);
this.addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(_arg1:MouseEvent):void{
GameEngine.gotoHowToPlay();
}
}
}//package com.A25swf.Control
Section 3
//ViewHigh (com.A25swf.Control.ViewHigh)
package com.A25swf.Control {
import flash.events.*;
import flash.display.*;
import com.A25swf.*;
public class ViewHigh extends SimpleButton {
public function ViewHigh(_arg1:DisplayObject=null, _arg2:DisplayObject=null, _arg3:DisplayObject=null, _arg4:DisplayObject=null){
super(_arg1, _arg2, _arg3, _arg4);
this.addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(_arg1:MouseEvent):void{
GameEngine.gotoHighSc();
}
}
}//package com.A25swf.Control
Section 4
//KeyInput (com.A25swf.GameEngine.Control.KeyInput)
package com.A25swf.GameEngine.Control {
import flash.events.*;
import flash.display.*;
public class KeyInput extends Sprite {
public static var MyStage:Stage;
private static var _nowPressing:Array = new Array(300);
public function KeyInput(){
if (MyStage == null){
trace("MyStage 没有初始化");
} else {
addListener(MyStage);
};
}
private function keyIsUp(_arg1:KeyboardEvent):void{
this.dispatchEvent(_arg1);
_nowPressing[_arg1.keyCode] = false;
}
private function addListener(_arg1:Stage):void{
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyIsPress);
_arg1.addEventListener(KeyboardEvent.KEY_UP, keyIsUp);
}
private function keyIsPress(_arg1:KeyboardEvent):void{
if (!_nowPressing[_arg1.keyCode]){
this.dispatchEvent(_arg1);
_nowPressing[_arg1.keyCode] = true;
};
}
}
}//package com.A25swf.GameEngine.Control
Section 5
//ControlRole (com.A25swf.GameEngine.Roles.ControlRole)
package com.A25swf.GameEngine.Roles {
import flash.events.*;
import com.A25swf.GameEngine.Control.*;
import flash.ui.*;
public class ControlRole extends Role {
public var LeftKeyCode:int;// = 37
public var RightKeyCode:int;// = 39
public var UpKeyCode:int;// = 38
public function ControlRole(){
var _local1:KeyInput;
LeftKeyCode = Keyboard.LEFT;
RightKeyCode = Keyboard.RIGHT;
UpKeyCode = Keyboard.UP;
super();
_local1 = new KeyInput();
_local1.addEventListener(KeyboardEvent.KEY_DOWN, onPressKey);
_local1.addEventListener(KeyboardEvent.KEY_UP, onUpKey);
}
private function onPressKey(_arg1:KeyboardEvent):void{
switch (_arg1.keyCode){
case RightKeyCode:
this.MoveRight();
break;
case LeftKeyCode:
this.MoveLeft();
break;
case UpKeyCode:
this.MoveUp();
break;
};
OnPressKey(_arg1);
}
public function OnPressKey(_arg1:KeyboardEvent):void{
}
public function OnKeyUp(_arg1:KeyboardEvent):void{
}
private function onUpKey(_arg1:KeyboardEvent):void{
trace("un press a key", _arg1.keyCode);
switch (_arg1.keyCode){
case LeftKeyCode:
this.StopMoveLeft();
break;
case RightKeyCode:
this.StopMoveRight();
break;
};
OnKeyUp(_arg1);
}
}
}//package com.A25swf.GameEngine.Roles
Section 6
//Role (com.A25swf.GameEngine.Roles.Role)
package com.A25swf.GameEngine.Roles {
import com.A25swf.GameEngine.WorldEngine.*;
public class Role extends MoveObject {
protected var rightPower:Power;
protected var upPower:Power;
protected var leftPower:Power;
protected var downPower:Power;
public function Role(){
rightPower = new Power(3, 0);
leftPower = new Power(3, 180);
upPower = new Power(14, 90);
}
public function StopMoveDown():void{
this.DelWorldPower(downPower);
}
public function MoveUp():void{
this.AddWorldPower(upPower);
}
public function MoveDown():void{
this.AddWorldPower(downPower);
}
public function MoveRight():void{
this.AddWorldPower(rightPower);
}
public function StopMoveRight():void{
this.DelWorldPower(rightPower);
}
public function StopMoveUp():void{
this.DelWorldPower(upPower);
}
public function MoveLeft():void{
this.AddWorldPower(leftPower);
}
public function StopMoveLeft():void{
this.DelWorldPower(leftPower);
}
}
}//package com.A25swf.GameEngine.Roles
Section 7
//HittestObject (com.A25swf.GameEngine.WorldEngine.HittestObject)
package com.A25swf.GameEngine.WorldEngine {
public class HittestObject extends WorldObject {
public var hitings:Array;
public var userPixHitTest:Boolean;// = false
public function HittestObject(){
hitings = new Array();
userPixHitTest = false;
super();
}
public function findHittingsWithOutCheckingIshittest():void{
var _local1:WorldObject;
var _local2:String;
hitings = new Array();
for (_local2 in WorldObject.WorldItems) {
_local1 = WorldObject.WorldItems[_local2];
if (((((_local1.isshow) && (this.hitTestWithOutCheckingisHittest(_local1)))) && (!((_local1 == this))))){
hitings.push(_local1);
};
};
}
public function findHittings():void{
var _local1:WorldObject;
var _local2:String;
hitings = new Array();
for (_local2 in WorldObject.WorldItems) {
_local1 = WorldObject.WorldItems[_local2];
if (((((_local1.isshow) && (this.hitTest(_local1)))) && (!((_local1 == this))))){
hitings.push(_local1);
};
};
}
public function hitTestWithOutCheckingisHittest(_arg1:WorldObject):Boolean{
return (this.foot.hitTestObject(_arg1.foot));
}
public function hitTest(_arg1:WorldObject):Boolean{
if ((((this.stage == null)) || ((_arg1.stage == null)))){
return (false);
};
if (((((((((_arg1.ishittest) && ((((this.hittype == 0)) || (!((this.hittype == _arg1.hittype))))))) && (this.ishittest))) && (!((this.foot == null))))) && (!((_arg1 == null))))){
return (hitTestWithOutCheckingisHittest(_arg1));
};
return (false);
}
override public function update():void{
if (this.isshow){
findHittingsWithOutCheckingIshittest();
};
}
}
}//package com.A25swf.GameEngine.WorldEngine
Section 8
//MoveObject (com.A25swf.GameEngine.WorldEngine.MoveObject)
package com.A25swf.GameEngine.WorldEngine {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class MoveObject extends HittestObject {
var m_direction:Number;// = 0
protected var m_yworldSpeed:Number;// = 0
protected var m_xworldSpeed:Number;// = 0
var m_attritionper:Number;// = 0.8
protected var m_yspeed:Number;// = 0
var m_weight:Number;
var m_xattrition:Number;// = 0
protected var m_worldPowerArray:Array;
var m_attrition:Array;
protected var isInAir:Boolean;// = false
protected var m_xspeed:Number;// = 0
var m_yattrition:Number;// = 0
public static const ON_HIT:String = "on_hit";
public function MoveObject(){
m_xspeed = 0;
m_yspeed = 0;
m_xworldSpeed = 0;
m_yworldSpeed = 0;
m_xattrition = 0;
m_yattrition = 0;
m_attritionper = 0.8;
m_direction = 0;
m_worldPowerArray = new Array();
m_attrition = new Array();
isInAir = false;
super();
this.ismove = true;
}
public function set Arrti(_arg1:Number):void{
m_attritionper = (1 - _arg1);
}
public function hitTest2(_arg1:WorldObject):Boolean{
var _local2:Rectangle;
var _local3:Rectangle;
if (((this.checkY) && (_arg1.checkY))){
_local2 = _arg1.getRect(stage);
_local3 = this.getRect(stage);
trace(_local3.bottom, _local2.top, (_local3.bottom >= _local2.top));
if (_local3.bottom >= _local2.top){
return (false);
};
};
return (super.hitTest(_arg1));
}
private function updateAttrition():void{
var _local1:String;
m_xattrition = 0;
m_yattrition = 0;
for (_local1 in m_attrition) {
m_xattrition = (m_xattrition + m_attrition[_local1].xs);
m_yattrition = (m_yattrition + m_attrition[_local1].ys);
};
m_xattrition = Math.abs(m_xattrition);
m_yattrition = Math.abs(m_yattrition);
}
private function getTruey(_arg1:WorldObject):Number{
var _local2:DisplayObject;
var _local3:Number;
_local2 = _arg1.parent;
_local3 = _arg1.y;
while (((!((_local2 == null))) && (!((_local2 == stage))))) {
_local3 = (_local3 + _local2.y);
_local2 = _local2.parent;
};
return (_local3);
}
private function setToMaxPos(_arg1:Number, _arg2:Number):Point{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:Number;
var _local10:Number;
var _local11:Boolean;
var _local12:Boolean;
_local3 = 0;
_local4 = 0;
_local5 = Math.abs(_arg1);
_local6 = Math.abs(_arg2);
_local7 = ((_local5)!=0) ? (_arg1 / _local5) : 0;
_local8 = ((_local6)!=0) ? (_arg2 / _local6) : 0;
_local9 = this.x;
_local10 = this.y;
_local11 = ((_local7 == 0)) ? true : false;
_local12 = ((_local8 == 0)) ? true : false;
while (((!(_local11)) || (!(_local12)))) {
if (!_local11){
this.x = (this.x + _local7);
_local3++;
if (_local3 >= _local5){
_local11 = true;
};
if (this.checkHitTestHittest()){
this.y = (this.y - 5);
if (this.checkHitTestHittest()){
this.y = (this.y + 5);
_local11 = true;
this.x = (this.x - _local7);
XStop();
};
};
};
if (!_local12){
this.y = (this.y + _local8);
_local4++;
if (_local4 >= _local6){
_local12 = true;
};
if (this.checkHitTestHittest()){
_local12 = true;
this.y = (this.y - _local8);
YStop();
};
};
};
return (new Point(_local9, _local10));
}
public function AddWorldPower(_arg1:Power, _arg2:Boolean=false):void{
if (_arg2){
m_attrition.push(_arg1);
updateAttrition();
} else {
m_worldPowerArray.push(_arg1);
updateWorldPower();
};
}
public function checkHitTestHittest():Boolean{
var _local1:String;
for (_local1 in this.hitings) {
if (((this.hitTest(this.hitings[_local1])) && (this.hitings[_local1].isObstructions))){
return (true);
};
};
return (false);
}
public function clearAllPower():void{
m_xspeed = 0;
m_yspeed = 0;
m_xworldSpeed = 0;
m_yworldSpeed = 0;
m_xattrition = 0;
m_yattrition = 0;
m_worldPowerArray = new Array();
m_attrition = new Array();
}
public function Push(_arg1:Power):void{
m_xspeed = (m_xspeed + _arg1.xs);
m_yspeed = (m_yspeed + _arg1.ys);
}
private function updateWorldPower():void{
var _local1:String;
m_xworldSpeed = 0;
m_yworldSpeed = 0;
for (_local1 in m_worldPowerArray) {
m_xworldSpeed = (m_xworldSpeed + m_worldPowerArray[_local1].xs);
m_yworldSpeed = (m_yworldSpeed + m_worldPowerArray[_local1].ys);
};
}
public function XStop():void{
this.m_xspeed = 0;
}
override public function hitTest(_arg1:WorldObject):Boolean{
if (((((this.checkY) && (_arg1.checkY))) && ((m_yspeed < 0)))){
return (false);
};
return (super.hitTest(_arg1));
}
override public function update():void{
if (this.isshow){
m_yspeed = (m_yspeed + m_yworldSpeed);
m_xspeed = (m_xspeed + m_xworldSpeed);
this.x = (this.x + m_xspeed);
this.y = (this.y + m_yspeed);
hitings = new Array();
findHittings();
if (hitings.length > 0){
isInAir = false;
this.x = (this.x - m_xspeed);
this.y = (this.y - m_yspeed);
this.setToMaxPos(m_xspeed, m_yspeed);
this.dispatchEvent(new Event(ON_HIT));
m_yspeed = (m_yspeed * m_attritionper);
m_xspeed = (m_xspeed * m_attritionper);
} else {
isInAir = true;
m_xspeed = (m_xspeed * m_attritionper);
};
};
}
public function YStop():void{
this.m_yspeed = 0;
}
public function get XSpeed():Number{
return (this.m_xspeed);
}
public function DelWorldPower(_arg1:Power, _arg2:Boolean=false):void{
var _local3:String;
if (_arg2){
for (_local3 in m_attrition) {
if (m_attrition[_local3] == _arg1){
m_attrition.splice(_local3, 1);
updateAttrition();
break;
};
};
} else {
for (_local3 in m_worldPowerArray) {
if (m_worldPowerArray[_local3] == _arg1){
m_worldPowerArray.splice(_local3, 1);
updateWorldPower();
break;
};
};
};
}
public function getArrti():Number{
return ((1 - m_attritionper));
}
private function tryup():Boolean{
var _local1:Number;
_local1 = this.y;
this.y = (this.y - 5);
findHittings();
if (hitings.length > 0){
this.y = _local1;
findHittings();
return (true);
};
return (false);
}
}
}//package com.A25swf.GameEngine.WorldEngine
Section 9
//Power (com.A25swf.GameEngine.WorldEngine.Power)
package com.A25swf.GameEngine.WorldEngine {
public class Power {
public var ys:Number;// = 0
private var m_direction:Number;// = 0
private var m_power:Number;// = 0
public var xs:Number;// = 0
public function Power(_arg1:Number, _arg2:Number){
xs = 0;
ys = 0;
m_power = 0;
m_direction = 0;
super();
m_power = _arg1;
m_direction = _arg2;
bulid();
}
private function bulid():void{
var _local1:Number;
_local1 = ((-(m_direction) * Math.PI) / 180);
ys = (Math.sin(_local1) * m_power);
xs = (Math.cos(_local1) * m_power);
}
public function get power():Number{
return (m_power);
}
public function set direction(_arg1:Number):void{
m_direction = _arg1;
bulid();
}
public function get direction():Number{
return (m_direction);
}
}
}//package com.A25swf.GameEngine.WorldEngine
Section 10
//World (com.A25swf.GameEngine.WorldEngine.World)
package com.A25swf.GameEngine.WorldEngine {
import flash.events.*;
import flash.display.*;
import com.A25swf.GameEngine.WorldItem.*;
public class World extends MovieClip {
private var m_height:Number;// = 400
private var m_width:Number;// = 1300
private var m_back:MovieClip;
public var showin:Array;
public static var CurrentWorld:World;
public function World(){
showin = new Array();
m_width = 1300;
m_height = 400;
super();
CurrentWorld = this;
m_back = new MovieClip();
this.addEventListener(Event.ADDED_TO_STAGE, onAdd);
this.addEventListener(Event.ENTER_FRAME, update);
redarwScreen();
}
public function redarwScreen():void{
m_back.x = -400;
m_back.graphics.drawRect(0, 0, this.m_width, this.m_height);
}
public function addItem(_arg1:WorldObject):void{
var _item = _arg1;
if (_item.ismove){
try {
MoveObject(_item).AddWorldPower(new Power(2, 270));
} catch(e:Error) {
};
};
this.addChild(_item);
}
public function updateScreen():void{
var _local1:WorldObject;
var _local2:String;
for (_local2 in WorldObject.WorldItems) {
_local1 = WorldObject.WorldItems[_local2];
if ((((_local1 is Ground)) || (_local1.awaysshow))){
_local1.isshow = true;
} else {
if (m_back.hitTestObject(_local1)){
_local1.isshow = true;
} else {
if (_local1.checkShow){
_local1.isshow = false;
};
};
};
};
}
public function set WorldHeight(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
m_height = _arg1;
redarwScreen();
}
public function clear():void{
if (this.parent != null){
this.parent.removeChild(this.m_back);
};
}
private function onAdd(_arg1:Event):void{
stage.addChildAt(m_back, 0);
}
public function update(_arg1:Event):void{
var _local2:WorldObject;
var _local3:int;
_local3 = 0;
while (_local3 < this.numChildren) {
_local2 = (this.getChildAt(_local3) as WorldObject);
if (((_local2.ismove) && (_local2.autoUpdate))){
_local2.update();
};
_local3++;
};
}
public function set WorldWidth(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
m_width = _arg1;
redarwScreen();
}
}
}//package com.A25swf.GameEngine.WorldEngine
Section 11
//WorldObject (com.A25swf.GameEngine.WorldEngine.WorldObject)
package com.A25swf.GameEngine.WorldEngine {
import flash.display.*;
public class WorldObject extends MovieClip {
public var outattrition:Number;// = 1
public var checkShow:Boolean;// = true
public var isObstructions:Boolean;// = true
public var isshow:Boolean;// = true
public var ishittest:Boolean;// = true
public var autoUpdate:Boolean;// = true
public var checkY:Boolean;// = false
public var foot:DisplayObject;
public var ismove:Boolean;// = false
public var hittype:int;// = 0
public var awaysshow:Boolean;// = false
public static var WorldItems:Array = new Array();
public function WorldObject(){
ismove = false;
isshow = true;
ishittest = true;
outattrition = 1;
checkY = false;
autoUpdate = true;
checkShow = true;
hittype = 0;
isObstructions = true;
awaysshow = false;
super();
foot = this;
WorldItems.push(this);
}
public function update():void{
}
}
}//package com.A25swf.GameEngine.WorldEngine
Section 12
//Ground (com.A25swf.GameEngine.WorldItem.Ground)
package com.A25swf.GameEngine.WorldItem {
import com.A25swf.GameEngine.WorldEngine.*;
public class Ground extends HittestObject {
public function Ground(){
this.alpha = 0;
this.outattrition = 0.5;
this.checkY = false;
}
override public function update():void{
super.update();
}
}
}//package com.A25swf.GameEngine.WorldItem
Section 13
//BianFu (com.A25swf.GuaiWu.BianFu)
package com.A25swf.GuaiWu {
import com.A25swf.GameEngine.WorldEngine.*;
import com.A25swf.*;
public class BianFu extends MyEnemy {
private var myoldX:Number;// = 0
private var lockmove:Boolean;// = false
public function BianFu(){
myoldX = 0;
lockmove = false;
super();
myoldX = this.x;
}
override protected function isHitGround():Boolean{
this.isInAir = false;
if (myoldX == 0){
myoldX = this.x;
};
if (Math.abs((this.x - myoldX)) < 100){
lockmove = true;
return (true);
};
if ((((Math.abs((this.x - myoldX)) > 200)) && (lockmove))){
lockmove = false;
return (false);
};
return (true);
}
private function onInFirstFrame():void{
this.stop();
}
override public function AddWorldPower(_arg1:Power, _arg2:Boolean=false):void{
if ((((_arg1.direction == 0)) || ((_arg1.direction == 180)))){
super.AddWorldPower.apply(null, arguments);
};
}
}
}//package com.A25swf.GuaiWu
Section 14
//DuJiao (com.A25swf.GuaiWu.DuJiao)
package com.A25swf.GuaiWu {
import com.A25swf.*;
public class DuJiao extends MyEnemy {
}
}//package com.A25swf.GuaiWu
Section 15
//FengYang (com.A25swf.GuaiWu.FengYang)
package com.A25swf.GuaiWu {
import com.A25swf.*;
public class FengYang extends MyEnemy {
}
}//package com.A25swf.GuaiWu
Section 16
//mogu (com.A25swf.GuaiWu.mogu)
package com.A25swf.GuaiWu {
import com.A25swf.*;
public class mogu extends MyEnemy {
}
}//package com.A25swf.GuaiWu
Section 17
//ShiRenHua (com.A25swf.GuaiWu.ShiRenHua)
package com.A25swf.GuaiWu {
import flash.events.*;
import com.A25swf.GameEngine.WorldEngine.*;
import flash.utils.*;
import com.A25swf.*;
public class ShiRenHua extends MyEnemy {
private var myTimer:Timer;
public function ShiRenHua(){
this.isObstructions = false;
this.addFrameScript(1, onInFirstFrame);
this.addFrameScript(24, attack);
this.clearAllPower();
stop();
if (myTimer != null){
myTimer.stop();
};
myTimer = new Timer(3000, 1);
myTimer.addEventListener(TimerEvent.TIMER, GOGO);
myTimer.start();
}
private function attack():void{
var _local1:ZiDan;
if ((((this.parent == null)) || (isDead))){
myTimer.stop();
} else {
if (((!(isDead)) && (this.isshow))){
_local1 = new ZiDan(this);
_local1.x = (this.x - 50);
_local1.y = (this.y - 15);
GameEngine.currentGame.currentWorld.addChild(_local1);
};
};
}
override protected function turn():void{
}
private function onInFirstFrame():void{
this.stop();
}
private function GOGO(_arg1:TimerEvent):void{
this.play();
myTimer = new Timer(3000, 1);
myTimer.addEventListener(TimerEvent.TIMER, GOGO);
myTimer.start();
}
override public function YouAreDead():void{
super.YouAreDead();
myTimer.stop();
this.stop();
this.addFrameScript(1, null);
this.addFrameScript(24, null);
}
override public function AddWorldPower(_arg1:Power, _arg2:Boolean=false):void{
}
}
}//package com.A25swf.GuaiWu
Section 18
//tuzi (com.A25swf.GuaiWu.tuzi)
package com.A25swf.GuaiWu {
import com.A25swf.*;
public class tuzi extends MyEnemy {
public function tuzi(){
this.scaleX = -(this.scaleX);
}
}
}//package com.A25swf.GuaiWu
Section 19
//WoNit (com.A25swf.GuaiWu.WoNit)
package com.A25swf.GuaiWu {
import com.A25swf.*;
public class WoNit extends MyEnemy {
}
}//package com.A25swf.GuaiWu
Section 20
//XianRenZhang (com.A25swf.GuaiWu.XianRenZhang)
package com.A25swf.GuaiWu {
import com.A25swf.GameEngine.WorldEngine.*;
import com.A25swf.*;
public class XianRenZhang extends MyEnemy {
override protected function turn():void{
}
override public function AddWorldPower(_arg1:Power, _arg2:Boolean=false):void{
}
}
}//package com.A25swf.GuaiWu
Section 21
//XiaoYL (com.A25swf.GuaiWu.XiaoYL)
package com.A25swf.GuaiWu {
import com.A25swf.GameEngine.WorldEngine.*;
import flash.utils.*;
import com.A25swf.*;
public class XiaoYL extends MyEnemy {
private var myoldX:Number;// = 0
private var myTimer:Timer;
private var myjupmPower:Power;
private var lockmove:Boolean;// = false
public function XiaoYL(){
myoldX = 0;
lockmove = false;
super();
stop();
this.addFrameScript(1, onInFirstFrame);
myoldX = this.x;
}
override protected function isHitGround():Boolean{
this.isInAir = false;
if (myoldX == 0){
myoldX = this.x;
};
if (Math.abs((this.x - myoldX)) < 100){
lockmove = true;
return (true);
};
if ((((Math.abs((this.x - myoldX)) > 200)) && (lockmove))){
lockmove = false;
return (false);
};
return (true);
}
private function onInFirstFrame():void{
this.stop();
}
override public function AddWorldPower(_arg1:Power, _arg2:Boolean=false):void{
if ((((_arg1.direction == 0)) || ((_arg1.direction == 180)))){
super.AddWorldPower.apply(null, arguments);
};
}
}
}//package com.A25swf.GuaiWu
Section 22
//YL (com.A25swf.GuaiWu.YL)
package com.A25swf.GuaiWu {
public class YL extends XiaoYL {
}
}//package com.A25swf.GuaiWu
Section 23
//Yu (com.A25swf.GuaiWu.Yu)
package com.A25swf.GuaiWu {
import flash.events.*;
import com.A25swf.GameEngine.WorldEngine.*;
import flash.utils.*;
import com.A25swf.*;
public class Yu extends MyEnemy {
private var myTimer:Timer;
private var myjupmPower:Power;
public function Yu(){
this.addFrameScript(1, onInFirstFrame);
this.DelWorldPower(movePower);
this.clearAllPower();
myjupmPower = new Power(5, 180);
movePower = new Power(0, 180);
myTimer = new Timer(3000);
myTimer.addEventListener(TimerEvent.TIMER, GOGO);
}
override protected function turn():void{
this.DelWorldPower(myjupmPower);
if (myjupmPower.direction == 180){
myjupmPower = new Power(5, 0);
this.scaleX = -(this.scaleX);
} else {
this.scaleX = -(this.scaleX);
myjupmPower = new Power(5, 180);
};
}
private function onInFirstFrame():void{
this.DelWorldPower(myjupmPower);
}
private function GOGO(_arg1:TimerEvent):void{
this.play();
this.AddWorldPower(myjupmPower);
}
override public function AddWorldPower(_arg1:Power, _arg2:Boolean=false):void{
}
}
}//package com.A25swf.GuaiWu
Section 24
//YunShi (com.A25swf.GuaiWu.YunShi)
package com.A25swf.GuaiWu {
import com.A25swf.GameEngine.WorldEngine.*;
import com.A25swf.*;
public class YunShi extends MyEnemy {
override protected function turn():void{
}
override public function AddWorldPower(_arg1:Power, _arg2:Boolean=false):void{
}
}
}//package com.A25swf.GuaiWu
Section 25
//ZiDan (com.A25swf.GuaiWu.ZiDan)
package com.A25swf.GuaiWu {
import com.A25swf.GameEngine.WorldEngine.*;
import com.A25swf.*;
public class ZiDan extends MyEnemy {
public function ZiDan(_arg1:Object=null){
var _local2:Number;
var _local3:Number;
var _local4:Power;
super();
trace("ZiDan", _arg1);
_local2 = ((this.x - GameEngine.currentGame.currentRole.x) - GameEngine.currentGame.currentRole.parent.x);
_local3 = ((this.y - GameEngine.currentGame.currentRole.y) - GameEngine.currentGame.currentRole.parent.y);
_local4 = new Power(1, 180);
super.AddWorldPower(_local4);
}
override protected function turn():void{
}
override public function update():void{
super.update();
if (!this.isshow){
this.parent.removeChild(this);
};
}
}
}//package com.A25swf.GuaiWu
Section 26
//click (com.A25swf.Sound.click)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class click extends Sound {
public function click(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 27
//Level1 (com.A25swf.Sound.Level1)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class Level1 extends Sound {
public function Level1(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 28
//Level2 (com.A25swf.Sound.Level2)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class Level2 extends Sound {
public function Level2(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 29
//Level3 (com.A25swf.Sound.Level3)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class Level3 extends Sound {
public function Level3(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 30
//Level4 (com.A25swf.Sound.Level4)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class Level4 extends Sound {
public function Level4(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 31
//Level5 (com.A25swf.Sound.Level5)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class Level5 extends Sound {
public function Level5(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 32
//musicMainMenu (com.A25swf.Sound.musicMainMenu)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class musicMainMenu extends Sound {
public function musicMainMenu(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 33
//musicWinGame (com.A25swf.Sound.musicWinGame)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class musicWinGame extends Sound {
public function musicWinGame(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 34
//sndBonusPoints (com.A25swf.Sound.sndBonusPoints)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class sndBonusPoints extends Sound {
public function sndBonusPoints(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 35
//sndEnemyDie (com.A25swf.Sound.sndEnemyDie)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class sndEnemyDie extends Sound {
public function sndEnemyDie(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 36
//sndExtraLife (com.A25swf.Sound.sndExtraLife)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class sndExtraLife extends Sound {
public function sndExtraLife(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 37
//sndFlightPower (com.A25swf.Sound.sndFlightPower)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class sndFlightPower extends Sound {
public function sndFlightPower(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 38
//sndJump (com.A25swf.Sound.sndJump)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class sndJump extends Sound {
public function sndJump(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 39
//sndLevelKey (com.A25swf.Sound.sndLevelKey)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class sndLevelKey extends Sound {
public function sndLevelKey(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 40
//sndPlayerStunned (com.A25swf.Sound.sndPlayerStunned)
package com.A25swf.Sound {
import flash.net.*;
import flash.media.*;
public class sndPlayerStunned extends Sound {
public function sndPlayerStunned(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null){
super(_arg1, _arg2);
}
}
}//package com.A25swf.Sound
Section 41
//SoundCenter (com.A25swf.Sound.SoundCenter)
package com.A25swf.Sound {
import flash.media.*;
public class SoundCenter {
public static var Level7Sound:Sound = new Level2();
public static var Level5Sound:Sound = new Level5();
public static var ClickSound:Sound = new click();
public static var Level1Sound:Sound = new Level1();
public static var Level3Sound:Sound = new Level3();
public static var MenuSound:Sound = new musicMainMenu();
public static var Level8Sound:Sound = new Level3();
public static var PlayerStunnedSound:Sound = new sndPlayerStunned();
public static var Level4Sound:Sound = new Level4();
public static var JumpSound:Sound = new sndJump();
public static var ExtraLifeSound:Sound = new sndExtraLife();
public static var RunSound:Sound = new runingSound();
public static var Level6Sound:Sound = new Level1();
public static var BonusPointsSound:Sound = new sndBonusPoints();
public static var Level2Sound:Sound = new Level2();
public static var WinSound:Sound = new musicWinGame();
public static var EnemyDieSound:Sound = new sndEnemyDie();
public static var FlightPowerSound:Sound = new sndFlightPower();
public static var LevelKeySound:Sound = new sndLevelKey();
}
}//package com.A25swf.Sound
Section 42
//ADDUP (com.A25swf.ADDUP)
package com.A25swf {
import flash.events.*;
import flash.display.*;
import com.A25swf.Sound.*;
public class ADDUP extends MovieClip {
private var inxi:int;// = 0
public function ADDUP(){
inxi = 0;
super();
this.scaleX = 0.5;
this.scaleY = 0.5;
this.y = -140;
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
SoundCenter.ExtraLifeSound.play(0, 1);
}
private function onEnterFrame(_arg1:Event):void{
inxi++;
if (inxi >= 25){
this.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
if (this.parent != null){
this.parent.removeChild(this);
};
};
}
}
}//package com.A25swf
Section 43
//flyHat (com.A25swf.flyHat)
package com.A25swf {
import com.A25swf.Sound.*;
public class flyHat extends MyItem {
override public function hit():void{
GameEngine.currentGame.currentRole.flyPowerNumber = (GameEngine.currentGame.currentRole.flyPowerNumber + 20);
GameEngine.currentGame.currentShow.update();
this.parent.removeChild(this);
SoundCenter.FlightPowerSound.play(0, 1);
}
}
}//package com.A25swf
Section 44
//GameEngine (com.A25swf.GameEngine)
package com.A25swf {
import flash.events.*;
import flash.net.*;
import flash.media.*;
import flash.display.*;
import com.A25swf.GameEngine.WorldEngine.*;
import com.A25swf.Sound.*;
import flash.utils.*;
import com.A25swf.GameEngine.Control.*;
import flash.text.*;
public class GameEngine extends MovieClip {
public var currentShow:MyShowBar;
public var leftButton:SimpleButton;
public var tes:TextField;
public var aaa:MovieClip;
public var worldMap:WorldObject;
public var rightButton:SimpleButton;
public var preloader:MovieClip;
private var m_nextLiveMark:int;// = 50000
private var m_stonte:Number;// = 0
public var leveltext:TextField;
public var finalScore:TextField;
private var gotoScene:String;// = "map"
private var tempString:String;// = ""
private var m_startper:int;// = 0
private var m_Mark:Number;// = 0
public var 连接:SimpleButton;
public var currentLevel:int;// = 1
public var currentRole:MyRole;
public var currentWorld:World;
private var m_Life:Number;// = 7
public var myBonus:int;// = 0
public static var currentGame:GameEngine;
private static var currentSound:SoundChannel = new SoundChannel();
public function GameEngine(){
var ti:Timer;
var addFun:Function;
m_Mark = 0;
m_stonte = 0;
m_Life = 7;
m_nextLiveMark = 50000;
m_startper = 0;
gotoScene = "map";
currentLevel = 1;
myBonus = 0;
tempString = "";
super();
addFrameScript(4, frame5, 13, frame14, 14, frame15, 41, frame42, 65, frame66, 84, frame85, 123, frame124, 159, frame160, 198, frame199, 241, frame242, 272, frame273, 298, frame299, 308, frame309, 309, frame310, 310, frame311, 340, frame341);
tes.text = (tes.text + (tempString + "======\r"));
tes.text = (tes.text + ("GameEngine" + "\r"));
tes.text = (tes.text + (this.root.loaderInfo.bytesLoaded + "\r"));
tes.text = (tes.text + (this.root.loaderInfo.bytesTotal + "\r"));
this.root.loaderInfo.addEventListener(Event.INIT, onshow);
连接.addEventListener(MouseEvent.CLICK, function (){
navigateToURL(new URLRequest("http://sillybull.com"));
});
ti = new Timer(100);
addFun = function (_arg1:TimerEvent):void{
var _local2:int;
m_startper++;
if (preloader.infoMC != null){
_local2 = Math.round(((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal) * 100));
if (_local2 > m_startper){
_local2 = m_startper;
};
preloader.infoMC.text = (_local2.toString() + "%");
preloader.line.scaleX = (0.01 * _local2);
if (_local2 == 100){
ti.stop();
onCom();
play();
};
};
};
ti.addEventListener(TimerEvent.TIMER, addFun);
ti.start();
preloader.line.scaleX = 0.01;
preloader.infoMC.text = "0%";
this.stop();
}
function frame273(){
stop();
}
function frame160(){
stop();
}
private function onBackButtonClick(_arg1:Event):void{
SoundCenter.ClickSound.play(0, 1);
currentSound.stop();
currentSound = SoundCenter.MenuSound.play();
this.gotoAndStop(1, "selected");
}
public function initMap(_arg1:Event):void{
if (((!((this.rightButton == null))) && (!((this.leftButton == null))))){
this.removeEventListener(Event.ENTER_FRAME, initMap);
trace("this.currentLevel222", this.currentLevel);
this.gotoAndPlay(("s" + (this.currentLevel - 1).toString()));
this.addEventListener(Event.ENTER_FRAME, myplay);
this.rightButton.addEventListener(MouseEvent.CLICK, onBackButtonClick);
this.leftButton.addEventListener(MouseEvent.CLICK, onGOButtonClick);
};
}
function frame299(){
stop();
this.finalScore.text = GameEngine.currentGame.myMark.toString();
stage.addEventListener(MouseEvent.CLICK, function (){
navigateToURL(new URLRequest("http://sillybull.com"));
});
}
function frame14(){
trace(222222222222);
}
function frame15(){
stop();
}
public function initWorld(_arg1:Event=null):void{
var _local2:World;
var _local3:Number;
var _local4:String;
var _local5:MyRole;
if (worldMap == null){
WorldObject.WorldItems = new Array();
return;
};
this.removeEventListener(Event.ENTER_FRAME, initWorld);
_local2 = new World();
_local2.x = -50;
worldMap.cacheAsBitmap = true;
_local3 = (WorldObject.WorldItems.length - 1);
while (_local3 > 0) {
if (!worldMap.contains(WorldObject.WorldItems[_local3])){
WorldObject.WorldItems.splice(_local3, 1);
};
_local3--;
};
for (_local4 in WorldObject.WorldItems) {
if (WorldObject.WorldItems[_local4].ismove){
WorldObject.WorldItems[_local4].x = (WorldObject.WorldItems[_local4].x + WorldObject.WorldItems[_local4].parent.x);
WorldObject.WorldItems[_local4].y = (WorldObject.WorldItems[_local4].y + WorldObject.WorldItems[_local4].parent.y);
_local2.addItem(WorldObject.WorldItems[_local4]);
};
};
_local2.addChildAt(worldMap, 0);
if (currentRole == null){
_local5 = new MyRole();
currentRole = _local5;
};
currentRole.clearAllPower();
currentRole.x = 275;
currentRole.y = 200;
_local2.addItem(currentRole);
currentWorld = _local2;
MyEnemy.myTarget = _local5;
stage.addChild(_local2);
currentShow = new MyShowBar();
stage.addChild(currentShow);
}
function frame5(){
stop();
}
public function gotoGameOver():void{
currentSound.stop();
currentSound = SoundCenter.WinSound.play(0, 999);
this.gotoAndStop(1, "GameIsOver");
this.addEventListener(Event.ENTER_FRAME, initGameOver);
this.currentRole.parent.removeChild(this.currentRole);
this.currentWorld.clear();
this.currentShow.parent.removeChild(this.currentShow);
this.currentWorld.parent.removeChild(this.currentWorld);
m_Life = 7;
currentLevel = 1;
}
public function set StonteNum(_arg1:Number):void{
m_stonte = _arg1;
if ((m_stonte % 100) == 0){
this.myLife++;
this.currentRole.addChild(new ADDUP());
};
}
function frame199(){
stop();
}
public function get myMark():Number{
return (this.m_Mark);
}
function frame42(){
stop();
}
public function initHighSc(_arg1:Event=null):void{
if (this.rightButton != null){
this.removeEventListener(Event.ENTER_FRAME, initHowToPlay);
this.rightButton.addEventListener(MouseEvent.CLICK, onRightButtonClick);
};
}
public function get myLife():Number{
return (this.m_Life);
}
private function myplay(_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, myplay);
this.play();
}
function frame66(){
stop();
}
function frame309(){
stop();
stage.addEventListener(MouseEvent.CLICK, function (){
navigateToURL(new URLRequest("http://sillybull.com"));
});
}
private function onLeftButtonClick(_arg1:MouseEvent):void{
SoundCenter.ClickSound.play(0, 1);
this.gotoAndStop(2);
}
private function onProgess(_arg1:ProgressEvent):void{
tes.text = (tes.text + ("onProgess" + "\r"));
tempString = (tempString + ("onProgess" + "\r"));
if (preloader.infoMC != null){
};
}
function frame310(){
stop();
}
function frame311(){
stop();
}
private function onCom(_arg1:Event=null):void{
tes.text = (tes.text + ("onCom" + "\r"));
preloader.infoMC.text = "100%";
preloader.line.scaleX = 1;
currentGame = this;
KeyInput.MyStage = stage;
currentSound = SoundCenter.MenuSound.play();
stage.quality = StageQuality.MEDIUM;
}
function frame85(){
stop();
}
private function initGameOver(_arg1:Event):void{
if (this.finalScore != null){
this.removeEventListener(Event.ENTER_FRAME, initGameOver);
this.finalScore.text = this.myMark.toString();
this.rightButton.addEventListener(MouseEvent.CLICK, onRightButtonClick);
};
}
public function set myMark(_arg1:Number):void{
m_Mark = _arg1;
if (this.currentShow != null){
this.currentShow.update();
if (m_Mark >= m_nextLiveMark){
this.myLife++;
m_nextLiveMark = (m_nextLiveMark * 2);
this.currentRole.addChild(new ADDUP());
};
};
}
public function get StonteNum():Number{
return (m_stonte);
}
function frame341(){
stop();
}
private function onshow(_arg1:Event=null):void{
tes.text = (tes.text + ("onshow" + "\r"));
tempString = (tempString + ("onshow" + "\r"));
}
public function set myLife(_arg1:Number):void{
m_Life = _arg1;
if (this.currentShow != null){
this.currentShow.update();
};
}
public function initHowToPlay(_arg1:Event=null):void{
if (this.rightButton != null){
this.removeEventListener(Event.ENTER_FRAME, initHowToPlay);
this.rightButton.addEventListener(MouseEvent.CLICK, onRightButtonClick);
this.leftButton.addEventListener(MouseEvent.CLICK, onLeftButtonClick);
};
}
function frame242(){
stop();
}
function frame124(){
stop();
}
private function onRightButtonClick(_arg1:MouseEvent):void{
trace("this.currentFrame ", this.currentFrame);
SoundCenter.ClickSound.play(0, 1);
if (this.currentFrame == 1){
currentSound.stop();
currentSound = SoundCenter.MenuSound.play();
this.gotoAndStop(1, "selected");
} else {
this.gotoAndStop(1);
};
}
private function onGOButtonClick(_arg1:Event):void{
SoundCenter.ClickSound.play(0, 1);
currentSound.stop();
worldMap = null;
gotoScene = ("Scene_" + this.currentLevel.toString());
switch (this.currentLevel){
case 1:
currentSound = SoundCenter.Level1Sound.play(0, 999);
break;
case 2:
currentSound = SoundCenter.Level2Sound.play(0, 999);
break;
case 3:
currentSound = SoundCenter.Level3Sound.play(0, 999);
break;
case 4:
currentSound = SoundCenter.Level4Sound.play(0, 999);
break;
case 5:
currentSound = SoundCenter.Level5Sound.play(0, 999);
break;
case 6:
currentSound = SoundCenter.Level6Sound.play(0, 999);
break;
case 7:
currentSound = SoundCenter.Level7Sound.play(0, 999);
break;
case 8:
currentSound = SoundCenter.Level8Sound.play(0, 999);
break;
};
this.gotoAndStop(1, gotoScene);
this.addEventListener(Event.ENTER_FRAME, initWorld);
}
public static function startGame():void{
if (((!((currentGame.leveltext == null))) && (!((currentGame.leveltext.text == ""))))){
trace("currentGame.currentLevel", currentGame.currentLevel, currentGame.leveltext.text);
};
currentSound.stop();
if (((!((currentGame.currentWorld == null))) && (!((currentGame.currentWorld.parent == null))))){
currentGame.currentWorld.clear();
currentGame.currentWorld.parent.removeChild(currentGame.currentWorld);
currentGame.currentWorld = null;
};
if (((!((currentGame.currentShow == null))) && (!((currentGame.currentShow.parent == null))))){
currentGame.currentShow.parent.removeChild(currentGame.currentShow);
};
currentGame.rightButton = null;
currentGame.leftButton = null;
currentGame.gotoScene = "map";
currentGame.gotoAndStop(1, "map");
currentGame.addEventListener(Event.ENTER_FRAME, currentGame.initMap);
}
public static function gotoHighSc():void{
currentSound.stop();
currentGame.gotoScene = "HighSc";
currentGame.gotoAndStop(1, "HighSc");
currentGame.addEventListener(Event.ENTER_FRAME, currentGame.initHighSc);
}
public static function gotoHowToPlay():void{
currentSound.stop();
currentGame.rightButton = null;
currentGame.leftButton = null;
currentGame.gotoScene = "HowToPlay";
currentGame.gotoAndStop(1, "HowToPlay");
currentGame.addEventListener(Event.ENTER_FRAME, currentGame.initHowToPlay);
}
}
}//package com.A25swf
Section 45
//LevelUp (com.A25swf.LevelUp)
package com.A25swf {
import flash.events.*;
import flash.display.*;
import com.A25swf.Sound.*;
import flash.text.*;
public class LevelUp extends MovieClip {
public var leftButton:SimpleButton;
public var total_bonus:TextField;
public var total_score:TextField;
public var onClick:Function;
public function LevelUp(){
SoundCenter.LevelKeySound.play(0, 1);
total_score.text = String(GameEngine.currentGame.myMark);
total_bonus.text = String(GameEngine.currentGame.myBonus);
leftButton.addEventListener(MouseEvent.CLICK, onMouseClick);
}
private function onMouseClick(_arg1:MouseEvent):void{
if (onClick != null){
onClick();
};
}
}
}//package com.A25swf
Section 46
//LuBiao (com.A25swf.LuBiao)
package com.A25swf {
import flash.display.*;
public class LuBiao extends MovieClip {
private static var NowLuBiao:Array = new Array();
public static var StartLuBiao:LuBiao;
public static var LuBiaoNum:int = 0;
public static var EndLuBiao:LuBiao;
public function LuBiao(){
LuBiaoNum++;
NowLuBiao.push(this);
if (LuBiaoNum == 2){
if (NowLuBiao[0].x > NowLuBiao[1].x){
EndLuBiao = NowLuBiao[0];
StartLuBiao = NowLuBiao[1];
} else {
EndLuBiao = NowLuBiao[1];
StartLuBiao = NowLuBiao[0];
};
LuBiaoNum = 0;
NowLuBiao = new Array();
};
}
}
}//package com.A25swf
Section 47
//MianBao (com.A25swf.MianBao)
package com.A25swf {
import flash.display.*;
public class MianBao extends MovieClip {
public function MianBao(){
this.x = 10;
this.y = -149;
this.gotoAndStop((Math.floor((Math.random() * 10)) % this.totalFrames));
GameEngine.currentGame.myMark = (GameEngine.currentGame.myMark + 2000);
}
}
}//package com.A25swf
Section 48
//MyBox (com.A25swf.MyBox)
package com.A25swf {
public class MyBox extends MyItem {
private var isplay:Boolean;// = false
public function MyBox(){
isplay = false;
super();
this.addFrameScript((this.totalFrames - 1), removeMe);
}
private function removeMe():void{
try {
this.parent.removeChild(this);
} catch(e:Error) {
};
}
override public function hit():void{
if (isplay){
return;
};
this.play();
isplay = true;
this.addChild(new MianBao());
}
}
}//package com.A25swf
Section 49
//MyEnemy (com.A25swf.MyEnemy)
package com.A25swf {
import flash.display.*;
import com.A25swf.GameEngine.WorldEngine.*;
import com.A25swf.Sound.*;
public class MyEnemy extends MoveObject {
public var myFoot:MovieClip;
public var myLooker:MyEyes;
public var dead:MovieClip;
public var isDead:Boolean;// = false
public var hityou:MovieClip;
protected var movePower:Power;
protected var ismoving:Boolean;// = false
public static var Enemys:Array = new Array();
public static var myTarget:WorldObject;
public function MyEnemy(){
isDead = false;
movePower = new Power(2, 180);
ismoving = false;
super();
this.myFoot.visible = false;
this.myLooker.visible = false;
this.hityou.visible = false;
this.foot = this.myFoot;
if (dead != null){
dead.visible = false;
dead.stop();
};
ismoving = true;
this.isObstructions = false;
this.AddWorldPower(movePower);
this.addFrameScript(1, null);
Enemys.push(this);
}
protected function turn():void{
ismoving = false;
this.DelWorldPower(movePower);
if (movePower.direction == 180){
movePower = new Power(2, 0);
this.scaleX = -(this.scaleX);
} else {
this.scaleX = -(this.scaleX);
movePower = new Power(2, 180);
};
ismoving = true;
this.AddWorldPower(movePower);
}
override public function update():void{
var a:String;
if (!this.isDead){
super.update();
this.hittype = 2;
myLooker.update();
if (isHitGround()){
if (!ismoving){
ismoving = true;
this.AddWorldPower(movePower);
};
} else {
if (!isInAir){
turn();
};
};
for (a in this.hitings) {
if ((this.hitings[a] is MyRole)){
this.hitings[a].ihityou(this);
};
};
} else {
try {
if (((!((dead == null))) && (!(dead.visible)))){
while (this.numChildren > 0) {
this.removeChildAt(0).visible = false;
};
this.addChild(dead);
dead.visible = true;
dead.play();
this.stop();
dead.addFrameScript((dead.totalFrames - 1), removeMe);
};
} catch(e:Error) {
};
};
}
protected function isHitGround():Boolean{
return ((((myLooker.hitings.toString().indexOf("Ground1") >= 0)) && ((this.hitings.length > 0))));
}
private function removeMe():void{
if (parent != null){
this.parent.removeChild(this);
trace("del ", this.name);
};
}
public function YouAreDead():void{
trace("is in....");
isDead = true;
SoundCenter.EnemyDieSound.play(0, 1);
if (dead != null){
while (this.numChildren > 0) {
this.removeChildAt(0).visible = false;
};
this.graphics.clear();
this.addChild(dead);
dead.visible = true;
dead.gotoAndPlay(1);
dead.addFrameScript((dead.totalFrames - 1), removeMe);
this.stop();
};
}
}
}//package com.A25swf
Section 50
//MyEyes (com.A25swf.MyEyes)
package com.A25swf {
import com.A25swf.GameEngine.WorldEngine.*;
public class MyEyes extends HittestObject {
public function MyEyes(){
this.awaysshow = true;
this.ishittest = false;
}
}
}//package com.A25swf
Section 51
//MyGround (com.A25swf.MyGround)
package com.A25swf {
import flash.events.*;
import flash.geom.*;
import com.A25swf.GameEngine.WorldItem.*;
import com.A25swf.GameEngine.Roles.*;
public class MyGround extends Ground {
private var oldx:Number;
private var oldy:Number;
private var incx:Number;
public function MyGround(){
oldx = this.parent.x;
oldy = this.parent.y;
this.checkY = true;
this.addEventListener(Event.ENTER_FRAME, moveItem);
}
public function moveItem(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:Rectangle;
if (this.isshow){
_local2 = (this.parent.x - oldx);
_local3 = (this.parent.y - oldy);
for (_local4 in this.hitings) {
if ((this.hitings[_local4] is MyRole)){
this.hitings[_local4].incX(_local2);
};
this.hitings[_local4].incY(_local3);
this.hitings[_local4].y = this.getRect(this.hitings[_local4].parent).top;
};
oldx = this.parent.x;
oldy = this.parent.y;
for (_local4 in this.hitings) {
if ((this.hitings[_local4] is Role)){
trace("11111111111111111111111111");
_local5 = this.getRect(this.hitings[_local4].parent);
this.hitings[_local4].y = _local5.top;
};
};
this.hitings = new Array();
};
}
}
}//package com.A25swf
Section 52
//MyGround2 (com.A25swf.MyGround2)
package com.A25swf {
import flash.events.*;
import flash.display.*;
public class MyGround2 extends MyGround {
public function MyGround2(){
MovieClip(parent.parent).stop();
MovieClip(parent.parent).addFrameScript(39, stopme);
}
private function stopme():void{
try {
this.parent.parent.parent.removeChild(this.parent.parent);
MovieClip(parent.parent).stop();
} catch(e:Error) {
};
}
override public function moveItem(_arg1:Event):void{
var _local2:String;
if (this.isshow){
for (_local2 in this.hitings) {
if ((this.hitings[_local2] is MyRole)){
MovieClip(parent.parent).play();
};
};
};
}
}
}//package com.A25swf
Section 53
//MyItem (com.A25swf.MyItem)
package com.A25swf {
import com.A25swf.GameEngine.WorldEngine.*;
import com.A25swf.Sound.*;
public class MyItem extends HittestObject {
public var mark:Number;// = 1000
public function MyItem(){
mark = 1000;
super();
stop();
this.checkY = false;
this.isObstructions = false;
}
public function hit():void{
if (parent){
SoundCenter.BonusPointsSound.play(0, 1);
GameEngine.currentGame.myBonus++;
GameEngine.currentGame.myMark = (GameEngine.currentGame.myMark + 100);
GameEngine.currentGame.currentShow.update();
if (this.parent.removeChild(this)){
};
};
}
override public function update():void{
var _local1:String;
super.update();
for (_local1 in this.hitings) {
if ((this.hitings[_local1] is MyRole)){
this.hitings[_local1].ihityou(this);
};
};
}
}
}//package com.A25swf
Section 54
//MyRole (com.A25swf.MyRole)
package com.A25swf {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import com.A25swf.GameEngine.WorldEngine.*;
import flash.geom.*;
import com.A25swf.Sound.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import com.A25swf.GameEngine.Roles.*;
public class MyRole extends ControlRole {
public var myfoot:MovieClip;
private var flyPower:Power;
public var flyPowerNumber:Number;// = 100
private var isMoveingRight:Boolean;// = false
public var isJump:Boolean;// = false
private var isMoveingLeft:Boolean;// = false
private var hasChangeX:Number;// = 80
private var writeFrame:int;// = 0
public var player:MovieClip;
private var ishiting:int;// = 0
private var myScale:Number;// = 0.7
private var nowPlay:String;// = ""
private var lockWX:Boolean;// = false
private var changePer:Number;// = 80
private var backhall:Boolean;
private var nowSound:SoundChannel;
private var isUpPress:Boolean;// = false
public function MyRole(){
hasChangeX = 80;
changePer = 80;
ishiting = 0;
isJump = false;
isMoveingLeft = false;
isMoveingRight = false;
isUpPress = false;
flyPowerNumber = 100;
myScale = 0.7;
lockWX = false;
nowSound = new SoundChannel();
nowPlay = "";
writeFrame = 0;
super();
this.foot = this.myfoot;
this.foot.visible = false;
this.checkShow = false;
flyPower = new Power(5, 90);
this.upPower = new Power(25, 90);
this.checkY = true;
this.scaleX = myScale;
this.scaleY = myScale;
}
private function setWorldX():void{
var _local1:Number;
_local1 = World.CurrentWorld.x;
if (_local1 > -50){
};
if (_local1 < (650 - World.CurrentWorld.width)){
};
}
private function myGotoAndStop(_arg1:String):void{
if (this.player.currentLabel != _arg1){
this.player.gotoAndStop(_arg1);
};
}
public function incX(_arg1:Number):void{
var _local2:Number;
var _local3:Point;
_local2 = this.x;
this.x = (this.x + _arg1);
_local3 = new Point(this.x, this.y);
_local3 = this.localToGlobal(_local3);
World.CurrentWorld.x = (World.CurrentWorld.x + (_local2 - this.x));
}
override public function OnPressKey(_arg1:KeyboardEvent):void{
if (ishiting > 20){
return;
};
if (_arg1.keyCode == 32){
if (((!(this.isUpPress)) && ((this.flyPowerNumber > 0)))){
this.isUpPress = true;
this.isJump = true;
this.AddWorldPower(flyPower);
SetActionStyle();
};
};
}
override public function MoveUp():void{
if (ishiting > 20){
return;
};
if (((!(isJump)) && ((this.m_yspeed == 0)))){
isJump = true;
this.Push(upPower);
playSound("jump");
};
SetActionStyle();
}
private function playSound(_arg1:String):void{
if (nowPlay != _arg1){
nowSound.stop();
nowPlay = _arg1;
switch (_arg1){
case "run":
nowSound = SoundCenter.RunSound.play(0, 9999);
break;
case "stand":
break;
case "yun":
nowSound = SoundCenter.PlayerStunnedSound.play(0, 1);
break;
case "jump":
nowSound = SoundCenter.JumpSound.play(0, 1);
break;
case "hit":
break;
};
};
}
override public function OnKeyUp(_arg1:KeyboardEvent):void{
if (ishiting > 20){
return;
};
if (_arg1.keyCode == 32){
this.isUpPress = false;
this.DelWorldPower(flyPower);
SetActionStyle();
};
}
override public function MoveRight():void{
super.MoveRight();
isMoveingRight = true;
this.scaleX = myScale;
SetActionStyle();
}
public function incY(_arg1:Number):void{
this.y = (this.y + _arg1);
}
override public function StopMoveRight():void{
super.StopMoveRight();
isMoveingRight = false;
}
override public function update():void{
var oldX:Number;
var _p:Number;
var a:String;
var mylv:LevelUp;
var baclhall:MovieClip;
var tempTween:Tween;
var thifunction:Function;
var newTimer:Timer;
if (ishiting > 0){
ishiting--;
if (ishiting <= 30){
if ((ishiting % 3) == 0){
this.visible = !(this.visible);
};
};
} else {
this.visible = true;
this.hittype = 1;
};
oldX = this.x;
if (ishiting > 20){
this.m_xspeed = -(this.m_xworldSpeed);
};
super.update();
_p = (this.x + World.CurrentWorld.x);
if (((((((oldX - this.x) < 0)) && ((_p > 265)))) && (!(lockWX)))){
World.CurrentWorld.x = (World.CurrentWorld.x + (oldX - this.x));
setWorldX();
} else {
if (((((((oldX - this.x) > 0)) && ((_p < 275)))) && (!(lockWX)))){
World.CurrentWorld.x = (World.CurrentWorld.x + (oldX - this.x));
setWorldX();
};
};
hasChangeX = (hasChangeX + (oldX - this.x));
if (Math.abs(this.hasChangeX) >= changePer){
World.CurrentWorld.updateScreen();
hasChangeX = 0;
};
for (a in this.hitings) {
if ((((this.hitings[a] is MyEnemy)) && (!(this.hitings[a].isDead)))){
if (!this.hitTestObject(this.hitings[a].hityou)){
if (this.hitings[a].parent != null){
try {
this.hitings[a].YouAreDead();
} catch(e:Error) {
trace(e.message);
};
isJump = true;
this.Push(new Power(20, 90));
this.myGotoAndStop("hit");
} else {
delete this.hitings[a];
};
} else {
ihityou(this.hitings[a]);
};
} else {
if ((this.hitings[a] is MyGround)){
MyGround(this.hitings[a]).hitings.push(this);
} else {
if ((this.hitings[a] is MyItem)){
MyItem(this.hitings[a]).hit();
};
};
};
};
if (this.isUpPress){
this.flyPowerNumber--;
GameEngine.currentGame.currentShow.update();
if (this.flyPowerNumber == 0){
this.isUpPress = false;
this.isJump = false;
this.DelWorldPower(flyPower);
SetActionStyle();
};
};
if (this.y < 20){
this.y = 20;
this.m_yspeed = 0;
};
if ((((this.x < (LuBiao.EndLuBiao.x + LuBiao.EndLuBiao.parent.x))) && ((this.x > (LuBiao.StartLuBiao.x + LuBiao.StartLuBiao.parent.x))))){
lockWX = false;
} else {
lockWX = true;
if (this.x > (LuBiao.EndLuBiao.x + LuBiao.EndLuBiao.parent.x)){
try {
if (this.currentLabel == "run"){
this.gotoAndStop("stand");
};
for (a in MyEnemy.Enemys) {
if (MyEnemy.Enemys[a].isshow){
MyEnemy(MyEnemy.Enemys[a]).YouAreDead();
};
};
} catch(e:Error) {
};
writeFrame++;
if (writeFrame >= 3){
GameEngine.currentGame.currentLevel++;
GameEngine.currentGame.currentWorld.removeEventListener(Event.ENTER_FRAME, GameEngine.currentGame.currentWorld.update);
writeFrame = 0;
mylv = new LevelUp();
mylv.x = 16;
mylv.y = 60;
stage.addChild(mylv);
mylv.onClick = function (){
isUpPress = false;
isJump = false;
DelWorldPower(flyPower);
SetActionStyle();
mylv.parent.removeChild(mylv);
GameEngine.startGame();
};
};
};
};
if ((((this.y >= 500)) && (!(this.backhall)))){
this.backhall = true;
baclhall = new MovieClip();
baclhall.graphics.beginFill(0);
baclhall.graphics.drawRect(0, 0, 550, 400);
baclhall.graphics.endFill();
stage.addChild(baclhall);
tempTween = new Tween(baclhall, "alpha", None.easeNone, 0.01, 1, 1, true);
thifunction = function (_arg1:TimerEvent):void{
trace("ininin", baclhall);
stage.removeChild(baclhall);
whenhitaenmy(false);
x = ((LuBiao.StartLuBiao.x + 100) + LuBiao.StartLuBiao.parent.x);
y = 200;
m_xspeed = 0;
m_yspeed = 0;
World.CurrentWorld.x = ((0 - LuBiao.StartLuBiao.x) - LuBiao.StartLuBiao.parent.x);
World.CurrentWorld.updateScreen();
backhall = false;
};
newTimer = new Timer(1000, 1);
newTimer.addEventListener(TimerEvent.TIMER, thifunction);
newTimer.start();
};
}
public function ihityou(_arg1:WorldObject):void{
if ((_arg1 is MyEnemy)){
if (ishiting <= 0){
if (MyEnemy(_arg1).x < this.x){
new Tween(this, "x", None.easeOut, this.x, (this.x + 20), 0.2, true);
} else {
new Tween(this, "x", None.easeOut, this.x, (this.x - 20), 0.2, true);
};
this.hittype = 2;
ishiting = 70;
playSound("yun");
whenhitaenmy();
};
} else {
if ((_arg1 is MyItem)){
GameEngine.currentGame.myMark = (GameEngine.currentGame.myMark + MyItem(_arg1).mark);
if (_arg1.parent != null){
_arg1.parent.removeChild(_arg1);
};
};
};
SetActionStyle();
}
private function SetActionStyle():void{
if (ishiting > 20){
this.myGotoAndStop("yun");
} else {
if (isUpPress){
playSound("");
this.myGotoAndStop("fly");
} else {
if (((isMoveingLeft) || (isMoveingRight))){
if (isJump){
this.myGotoAndStop("jump");
} else {
playSound("run");
this.myGotoAndStop("run");
};
} else {
if (isJump){
playSound("");
this.myGotoAndStop("jump");
} else {
playSound("stand");
this.myGotoAndStop("stand");
};
};
};
};
}
private function whenhitaenmy(_arg1:Boolean=true):void{
isUpPress = false;
this.DelWorldPower(flyPower);
this.m_yspeed = 0;
GameEngine.currentGame.myLife--;
if (GameEngine.currentGame.myLife < 0){
ishiting = 0;
GameEngine.currentGame.gotoGameOver();
};
}
override public function MoveLeft():void{
super.MoveLeft();
isMoveingLeft = true;
this.scaleX = -(myScale);
SetActionStyle();
}
override public function StopMoveLeft():void{
super.StopMoveLeft();
isMoveingLeft = false;
}
override public function YStop():void{
super.YStop();
isJump = false;
SetActionStyle();
}
}
}//package com.A25swf
Section 55
//MyShowBar (com.A25swf.MyShowBar)
package com.A25swf {
import flash.display.*;
import flash.text.*;
public class MyShowBar extends MovieClip {
public var mystone:TextField;
public var flyingpoint:MovieClip;
public var mymark:TextField;
public var mylifes:TextField;
public function MyShowBar(){
update();
}
public function update():void{
mymark.text = GameEngine.currentGame.myMark.toString();
mylifes.text = GameEngine.currentGame.myLife.toString();
mystone.text = GameEngine.currentGame.StonteNum.toString();
if (GameEngine.currentGame.currentRole.flyPowerNumber >= 100){
flyingpoint.scaleX = 1;
} else {
flyingpoint.scaleX = (GameEngine.currentGame.currentRole.flyPowerNumber / 100);
};
}
}
}//package com.A25swf
Section 56
//MyStone (com.A25swf.MyStone)
package com.A25swf {
public class MyStone extends MyItem {
override public function hit():void{
super.hit();
if ((this is MyStone)){
GameEngine.currentGame.StonteNum++;
GameEngine.currentGame.currentShow.update();
};
}
}
}//package com.A25swf
Section 57
//MyWorld (com.A25swf.MyWorld)
package com.A25swf {
import com.A25swf.GameEngine.WorldEngine.*;
public class MyWorld extends WorldObject {
public function MyWorld(){
this.ishittest = false;
}
}
}//package com.A25swf
Section 58
//RongJiang (com.A25swf.RongJiang)
package com.A25swf {
import flash.display.*;
public class RongJiang extends MyItem {
private var myShiu:ShuiHua;
public var myFoot:MovieClip;
private var hasshuihua:Boolean;// = false
public function RongJiang(){
hasshuihua = false;
super();
this.play();
this.foot = myFoot;
this.isObstructions = false;
}
private function removeShui():void{
try {
hasshuihua = false;
this.removeChild(myShiu);
} catch(e:Error) {
};
}
override public function hit():void{
if (!this.hasshuihua){
this.hasshuihua = true;
myShiu = new ShuiHua();
myShiu.addFrameScript((myShiu.totalFrames - 1), removeShui);
myShiu.x = (275 - (this.x + GameEngine.currentGame.currentWorld.x));
this.addChildAt(myShiu, 0);
};
}
}
}//package com.A25swf
Section 59
//ShuiHua (com.A25swf.ShuiHua)
package com.A25swf {
import flash.display.*;
public class ShuiHua extends MovieClip {
public function ShuiHua(){
this.y = 30;
}
}
}//package com.A25swf
Section 60
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 61
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 62
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 63
//RoleAction_211 (GameEngine_fla.RoleAction_211)
package GameEngine_fla {
import flash.display.*;
public dynamic class RoleAction_211 extends MovieClip {
public function RoleAction_211(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package GameEngine_fla
Section 64
//selected_182 (GameEngine_fla.selected_182)
package GameEngine_fla {
import flash.display.*;
public dynamic class selected_182 extends MovieClip {
public function selected_182(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package GameEngine_fla
Section 65
//Symbol43a_1 (GameEngine_fla.Symbol43a_1)
package GameEngine_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol43a_1 extends MovieClip {
public var bull:MovieClip;
public var line:MovieClip;
public var infoMC:TextField;
}
}//package GameEngine_fla
Section 66
//Symbol56_196 (GameEngine_fla.Symbol56_196)
package GameEngine_fla {
import flash.display.*;
public dynamic class Symbol56_196 extends MovieClip {
public function Symbol56_196(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package GameEngine_fla
Section 67
//Symbol59_17 (GameEngine_fla.Symbol59_17)
package GameEngine_fla {
import flash.events.*;
import flash.net.*;
import flash.display.*;
public dynamic class Symbol59_17 extends MovieClip {
public var bull:SimpleButton;
public function Symbol59_17(){
addFrameScript(0, frame1);
}
function frame1(){
bull.addEventListener(MouseEvent.CLICK, function (){
navigateToURL(new URLRequest("http://sillybull.com"));
});
}
}
}//package GameEngine_fla
Section 68
//Timeline_188 (GameEngine_fla.Timeline_188)
package GameEngine_fla {
import flash.display.*;
public dynamic class Timeline_188 extends MovieClip {
public function Timeline_188(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package GameEngine_fla
Section 69
//Timeline_189 (GameEngine_fla.Timeline_189)
package GameEngine_fla {
import flash.display.*;
public dynamic class Timeline_189 extends MovieClip {
public function Timeline_189(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package GameEngine_fla
Section 70
//Timeline_197 (GameEngine_fla.Timeline_197)
package GameEngine_fla {
import flash.display.*;
public dynamic class Timeline_197 extends MovieClip {
public function Timeline_197(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package GameEngine_fla
Section 71
//Timeline_201 (GameEngine_fla.Timeline_201)
package GameEngine_fla {
import flash.display.*;
public dynamic class Timeline_201 extends MovieClip {
public function Timeline_201(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package GameEngine_fla
Section 72
//Timeline_36 (GameEngine_fla.Timeline_36)
package GameEngine_fla {
import flash.display.*;
public dynamic class Timeline_36 extends MovieClip {
public function Timeline_36(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package GameEngine_fla
Section 73
//Ground1 (Ground1)
package {
import com.A25swf.GameEngine.WorldItem.*;
public dynamic class Ground1 extends Ground {
}
}//package
Section 74
//Ground2 (Ground2)
package {
import com.A25swf.*;
public dynamic class Ground2 extends MyGround {
}
}//package
Section 75
//item1 (item1)
package {
import com.A25swf.*;
public dynamic class item1 extends MyStone {
}
}//package
Section 76
//item2 (item2)
package {
import com.A25swf.*;
public dynamic class item2 extends MyStone {
}
}//package
Section 77
//item3 (item3)
package {
import com.A25swf.*;
public dynamic class item3 extends MyStone {
}
}//package
Section 78
//item4 (item4)
package {
import com.A25swf.*;
public dynamic class item4 extends MyStone {
}
}//package
Section 79
//item5 (item5)
package {
import com.A25swf.*;
public dynamic class item5 extends MyStone {
}
}//package
Section 80
//MyWorld1 (MyWorld1)
package {
import com.A25swf.*;
public dynamic class MyWorld1 extends MyWorld {
}
}//package
Section 81
//MyWorld2 (MyWorld2)
package {
import com.A25swf.*;
public dynamic class MyWorld2 extends MyWorld {
}
}//package
Section 82
//MyWorld3 (MyWorld3)
package {
import com.A25swf.*;
public dynamic class MyWorld3 extends MyWorld {
}
}//package
Section 83
//MyWorld4 (MyWorld4)
package {
import com.A25swf.*;
public dynamic class MyWorld4 extends MyWorld {
}
}//package
Section 84
//MyWorld5 (MyWorld5)
package {
import com.A25swf.*;
public dynamic class MyWorld5 extends MyWorld {
}
}//package
Section 85
//MyWorld6 (MyWorld6)
package {
import com.A25swf.*;
public dynamic class MyWorld6 extends MyWorld {
}
}//package
Section 86
//MyWorld7 (MyWorld7)
package {
import com.A25swf.*;
public dynamic class MyWorld7 extends MyWorld {
}
}//package
Section 87
//MyWorld8 (MyWorld8)
package {
import com.A25swf.*;
public dynamic class MyWorld8 extends MyWorld {
}
}//package
Section 88
//RongJiang2 (RongJiang2)
package {
import com.A25swf.*;
public dynamic class RongJiang2 extends RongJiang {
}
}//package
Section 89
//runingSound (runingSound)
package {
import flash.media.*;
public dynamic class runingSound extends Sound {
}
}//package
Section 90
//XianRenZhang (XianRenZhang)
package {
import com.A25swf.GuaiWu.*;
public dynamic class XianRenZhang extends XianRenZhang {
}
}//package