Section 1
//Main_Fields_ (_Main.Main_Fields_)
package _Main {
import flash.display.*;
import flash.events.*;
public final class Main_Fields_ {
public static var camera_x:Number;
public static var camera_y:Number;
public static var gravity:Number;
public static var particle_list:Array;
public static var player:Particle;
public static var stage:Stage;
public static var treadmill:Treadmill;
public static var frame_counter:uint;
public static var phase_X:Number;
public static var keystate:Object;
public function Main_Fields_():void{
}
public static function key_press_callback(_arg1:KeyboardEvent):void{
if (!Main_Fields_.keystate.A){
true;
};
var _local2:Boolean = true;
Main_Fields_.keystate.A = _local2;
if (!Main_Fields_.keystate.B){
true;
};
var _local3:Boolean = true;
Main_Fields_.keystate.B = _local3;
if (!Main_Fields_.keystate.L){
true;
};
var _local4:Boolean = true;
Main_Fields_.keystate.L = _local4;
if (!Main_Fields_.keystate.R){
true;
};
var _local5:Boolean = true;
Main_Fields_.keystate.R = _local5;
if (!Main_Fields_.keystate.X){
true;
};
var _local6:Boolean = true;
Main_Fields_.keystate.X = _local6;
if (!Main_Fields_.keystate.Y){
true;
};
var _local7:Boolean = true;
Main_Fields_.keystate.Y = _local7;
if (!Main_Fields_.keystate.LEFT){
true;
};
var _local8:Boolean = true;
Main_Fields_.keystate.LEFT = _local8;
if (!Main_Fields_.keystate.UP){
true;
};
var _local9:Boolean = true;
Main_Fields_.keystate.UP = _local9;
if (!Main_Fields_.keystate.RIGHT){
true;
};
var _local10:Boolean = true;
Main_Fields_.keystate.RIGHT = _local10;
if (!Main_Fields_.keystate.DOWN){
true;
};
var _local11:Boolean = true;
Main_Fields_.keystate.DOWN = _local11;
if (!Main_Fields_.keystate.START){
true;
};
var _local12:Boolean = true;
Main_Fields_.keystate.START = _local12;
if (!Main_Fields_.keystate.SELECT){
true;
};
var _local13:Boolean = true;
Main_Fields_.keystate.SELECT = _local13;
}
public static function key_release_callback(_arg1:KeyboardEvent):void{
if (Main_Fields_.keystate.A){
false;
};
var _local2:Boolean;
Main_Fields_.keystate.A = _local2;
if (Main_Fields_.keystate.B){
false;
};
var _local3:Boolean;
Main_Fields_.keystate.B = _local3;
if (Main_Fields_.keystate.L){
false;
};
var _local4:Boolean;
Main_Fields_.keystate.L = _local4;
if (Main_Fields_.keystate.R){
false;
};
var _local5:Boolean;
Main_Fields_.keystate.R = _local5;
if (Main_Fields_.keystate.X){
false;
};
var _local6:Boolean;
Main_Fields_.keystate.X = _local6;
if (Main_Fields_.keystate.Y){
false;
};
var _local7:Boolean;
Main_Fields_.keystate.Y = _local7;
if (Main_Fields_.keystate.LEFT){
false;
};
var _local8:Boolean;
Main_Fields_.keystate.LEFT = _local8;
if (Main_Fields_.keystate.UP){
false;
};
var _local9:Boolean;
Main_Fields_.keystate.UP = _local9;
if (Main_Fields_.keystate.RIGHT){
false;
};
var _local10:Boolean;
Main_Fields_.keystate.RIGHT = _local10;
if (Main_Fields_.keystate.DOWN){
false;
};
var _local11:Boolean;
Main_Fields_.keystate.DOWN = _local11;
if (Main_Fields_.keystate.START){
false;
};
var _local12:Boolean;
Main_Fields_.keystate.START = _local12;
if (Main_Fields_.keystate.SELECT){
false;
};
var _local13:Boolean;
Main_Fields_.keystate.SELECT = _local13;
}
public static function frame_callback(_arg1:Event):void{
var _local4 = (null as Particle);
Main_Fields_.camera_x = (Main_Fields_.camera_x + ((2 * (Main_Fields_.player.x - Main_Fields_.camera_x)) / Main_Fields_.stage.frameRate));
if (Main_Fields_.keystate.LEFT){
Main_Fields_.player.accelerateXTopSpeed(-8, 0.5);
};
if (Main_Fields_.keystate.RIGHT){
Main_Fields_.player.accelerateXTopSpeed(8, 0.5);
};
if (Main_Fields_.keystate.A){
false;
};
if (false){
Main_Fields_.player.vy = 0.5;
if (Main_Fields_.keystate.UP){
Main_Fields_.player.vy = (Main_Fields_.player.vy + 0.3);
};
};
if (Main_Fields_.keystate.DOWN){
false;
};
if (false){
Main_Fields_.player.accelerate(0, (-0.5 * Main_Fields_.gravity));
};
if (Main_Fields_.keystate.START){
Main_Fields_.player.set_x(0);
};
Main_Fields_.treadmill.set_visible(true);
Main_Fields_.treadmill.set_scroll((-(Main_Fields_.camera_x) * 128));
Main_Fields_.frame_counter = (Main_Fields_.frame_counter + 1);
var _local2:int;
var _local3:Array = Main_Fields_.particle_list;
while (_local2 < _local3.length) {
_local4 = _local3[_local2];
_local2++;
if (!(_local4.active)){
} else {
_local4.set_x((_local4.x + (_local4.vx / Main_Fields_.stage.frameRate)));
_local4.set_y((_local4.y + (_local4.vy / Main_Fields_.stage.frameRate)));
if (!(_local4.floating)){
_local4.accelerate(0, -(Main_Fields_.gravity));
};
if (_local4.y <= 0){
_local4.vy = Math.min(_local4.vy, 0);
_local4.set_y(0);
_local4.accelerate((-2 * _local4.vx), 0);
};
if (Math.abs(_local4.vx) < 0.1){
_local4.vx = 0;
};
};
};
}
}
Main_Fields_.camera_x = 0;
Main_Fields_.camera_y = 0;
Main_Fields_.gravity = 1;
Main_Fields_.particle_list = [];
Main_Fields_.frame_counter = 0;
Main_Fields_.phase_X = 0;
Main_Fields_.keystate = {A:false, B:false, X:false, Y:false, L:false, R:false, LEFT:false, UP:false, RIGHT:false, DOWN:false, START:false, SELECT:false};
}//package _Main
Section 2
//Boot (flash.Boot)
package flash {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import haxe.*;
public class Boot extends MovieClip {
public static var tf:TextField;
public static var lines:Array;
public static var lastError:Error;
public static var skip_constructor:Boolean;
public static var IN_E:int;
public function Boot():void{
}
public function start():void{
var _local3:* = null;
var _local2:MovieClip = Lib.current;
try {
if (_local2 == this){
false;
};
if (false){
false;
};
if (false){
_local2.stage.align = "TOP_LEFT";
};
} catch(#InvalidMultinameIndex#) {
_local3 = !NULL!;
};
if (_local2.stage == null){
_local2.addEventListener(Event.ADDED_TO_STAGE, doInitDelay);
} else {
if (_local2.stage.stageWidth != 0){
true;
};
if (true){
setTimeout(start, 1);
} else {
init();
};
};
}
public function init():void{
throw (Exception.thrown("assert"));
}
public function doInitDelay(_arg1):void{
Lib.current.removeEventListener(Event.ADDED_TO_STAGE, doInitDelay);
start();
}
public static function enum_to_string(_arg1:Object):String{
var _local3:int;
var _local4 = (null as Array);
var _local5:* = null;
if (_arg1.params == null){
return (_arg1.tag);
};
var _local2:Array = [];
if (Boot.IN_E > 15){
_local2.push("...");
} else {
Boot.IN_E = (Boot.IN_E + 1);
_local3 = 0;
_local4 = _arg1.params;
while (_local3 < _local4.length) {
_local5 = _local4[_local3];
_local3++;
_local2.push(Boot.__string_rec(_local5, ""));
};
Boot.IN_E = (Boot.IN_E - 1);
};
return ((((_arg1.tag + "(") + _local2.join(",")) + ")"));
}
public static function __instanceof(_arg1, _arg2):Boolean{
var _local4:* = null;
try {
if (_arg2 == Dynamic){
return (!((_arg1 == null)));
};
return ((_arg1 is _arg2));
} catch!ERROR! return (false);
}
public static function __clear_trace():void{
if (Boot.tf == null){
return;
};
Boot.tf.parent.removeChild(Boot.tf);
Boot.tf = null;
Boot.lines = null;
}
public static function __set_trace_color(_arg1:uint):void{
var _local2:TextField = Boot.getTrace();
_local2.textColor = _arg1;
_local2.filters = [];
}
public static function getTrace():TextField{
var _local2 = (null as TextFormat);
var _local1:MovieClip = Lib.current;
if (Boot.tf == null){
Boot.tf = new TextField();
_local2 = Boot.tf.getTextFormat();
_local2.font = "_sans";
Boot.tf.defaultTextFormat = _local2;
Boot.tf.selectable = false;
Boot.tf.width = ((_local1.stage)==null) ? 800 : _local1.stage.stageWidth;
Boot.tf.autoSize = TextFieldAutoSize.LEFT;
Boot.tf.mouseEnabled = false;
};
if (_local1.stage == null){
_local1.addChild(Boot.tf);
} else {
_local1.stage.addChild(Boot.tf);
};
return (Boot.tf);
}
public static function __trace(_arg1, _arg2:Object):void{
var _local6:int;
var _local7 = (null as Array);
var _local8:* = null;
var _local3:TextField = Boot.getTrace();
var _local4:String = ((_arg2)==null) ? "(null)" : ((_arg2.fileName + ":") + _arg2.lineNumber);
if (Boot.lines == null){
Boot.lines = [];
};
var _local5:String = ((_local4 + ": ") + Boot.__string_rec(_arg1, ""));
if (_arg2 != null){
false;
};
if (false){
_local6 = 0;
_local7 = _arg2.customParams;
while (_local6 < _local7.length) {
_local8 = _local7[_local6];
_local6++;
_local5 = (_local5 + ("," + Boot.__string_rec(_local8, "")));
};
};
Boot.lines = Boot.lines.concat(_local5.split("\n"));
_local3.text = Boot.lines.join("\n");
var _local9:Stage = Lib.current.stage;
if (_local9 == null){
return;
};
while (if (Boot.lines.length > 1){
false;
}, false) {
Boot.lines.shift();
_local3.text = Boot.lines.join("\n");
};
}
public static function __string_rec(_arg1, _arg2:String, _arg3:int=5):String{
var _local6 = (null as String);
var _local7 = (null as String);
var _local8:* = null;
var _local9:Boolean;
var _local10 = (null as Array);
var _local11:int;
var _local12:int;
var _local13:int;
var _local14 = (null as Array);
var _local15 = (null as String);
if (_arg3 <= 0){
return ("<...>");
};
var _local5:String = getQualifiedClassName(_arg1);
_local6 = _local5;
if (_local6 == "Array"){
if (_arg1 == Array){
return ("#Array");
};
_local7 = "[";
_local9 = true;
_local10 = _arg1;
_local11 = 0;
_local12 = _local10.length;
while (_local11 < _local12) {
_local11++;
_local13 = _local11;
if (_local9){
_local9 = false;
} else {
_local7 = (_local7 + ",");
};
_local7 = (_local7 + Boot.__string_rec(_local10[_local13], _arg2, (_arg3 - 1)));
};
return ((_local7 + "]"));
} else {
if (_local6 == "Object"){
_local11 = 0;
_local14 = [];
_local8 = _arg1;
for (/*?*/in _arg1) {
_local14.push(//unresolved nextvalue or nextname);
};
_local10 = _local14;
_local7 = "{";
_local9 = true;
_local11 = 0;
_local12 = _local10.length;
while (_local11 < _local12) {
_local11++;
_local13 = _local11;
_local15 = _local10[_local13];
if (_local15 == "toString"){
try {
return (_arg1.toString());
} catch(#InvalidMultinameIndex#) {
_local8 = !NULL!;
};
};
if (_local9){
_local9 = false;
} else {
_local7 = (_local7 + ",");
};
_local7 = (_local7 + (((" " + _local15) + " : ") + Boot.__string_rec(_arg1[_local15], _arg2, (_arg3 - 1))));
};
if (!(_local9)){
_local7 = (_local7 + " ");
};
_local7 = (_local7 + "}");
return (_local7);
} else {
_local6 = typeof(_arg1);
if (_local6 == "function"){
return ("<function>");
} else {
if (_local6 == "undefined"){
return ("null");
//unresolved jump
};
};
};
};
return (new String(_arg1));
}
public static function fromCodePoint(_arg1:int):String{
var _local2:ByteArray = new ByteArray();
_local2.endian = Endian.LITTLE_ENDIAN;
_local2.writeShort(((_arg1 >> 10) + 55232));
_local2.writeShort(((_arg1 & 1023) + 0xDC00));
_local2.position = 0;
return (_local2.readMultiByte(4, "unicode"));
}
public static function __unprotect__(_arg1:String):String{
return (_arg1);
}
public static function mapDynamic(_arg1, _arg2){
if ((_arg1 is Array)){
return (_arg1["mapHX"](_arg2));
//unresolved jump
};
return (_arg1["map"](_arg2));
}
public static function filterDynamic(_arg1, _arg2){
if ((_arg1 is Array)){
return (_arg1["filterHX"](_arg2));
//unresolved jump
};
return (_arg1["filter"](_arg2));
}
}
var _local1:* = Date;
_local1.now = function (){
return (new (Date));
};
_local1.fromTime = function (_arg1):Date{
var _local2:Date = new (Date);
_local2.setTime(_arg1);
return (_local2);
};
_local1.fromString = function (_arg1:String):Date{
var _local2 = (null as Array);
var _local3 = (null as Date);
var _local4 = (null as Array);
var _local5 = (null as Array);
//unexpected switch
throw (Exception.thrown(("Invalid date format : " + _arg1)));
//unresolved jump
_local2 = _arg1.split(":");
_local3 = new (Date);
_local3.setTime(0);
_local3.setUTCHours(_local2[0]);
_local3.setUTCMinutes(_local2[1]);
_local3.setUTCSeconds(_local2[2]);
return (_local3);
//unresolved jump
_local2 = _arg1.split("-");
return (new Date(_local2[0], (_local2[1] - 1), _local2[2], 0, 0, 0));
//unresolved jump
_local2 = _arg1.split(" ");
_local4 = _local2[0].split("-");
_local5 = _local2[1].split(":");
return (new Date(_local4[0], (_local4[1] - 1), _local4[2], _local5[0], _local5[1], _local5[2]));
};
_local1.prototype["toString"] = function ():String{
var _local1:Date = this;
var _local2:int = (_local1.getMonth() + 1);
var _local3:int = _local1.getDate();
var _local4:int = _local1.getHours();
var _local5:int = _local1.getMinutes();
var _local6:int = _local1.getSeconds();
return (((((((((((_local1.getFullYear() + "-") + ((_local2)<10) ? ("0" + _local2) : ("" + _local2)) + "-") + ((_local3)<10) ? ("0" + _local3) : ("" + _local3)) + " ") + ((_local4)<10) ? ("0" + _local4) : ("" + _local4)) + ":") + ((_local5)<10) ? ("0" + _local5) : ("" + _local5)) + ":") + ((_local6)<10) ? ("0" + _local6) : ("" + _local6)));
};
var _local2:* = Array.prototype;
_local2.copy = function (){
return (this.slice());
};
_local2.insert = function (_arg1, _arg2):void{
this.splice(_arg1, 0, _arg2);
};
_local2.contains = function (_arg1):Boolean{
return (!((this.indexOf(_arg1) == -1)));
};
_local2.remove = function (_arg1):Boolean{
var _local2:int = this.indexOf(_arg1);
if (_local2 == -1){
return (false);
};
this.splice(_local2, 1);
return (true);
};
_local2.iterator = function ():ArrayIterator{
return (new ArrayIterator(this));
};
_local2.keyValueIterator = function ():ArrayKeyValueIterator{
return (new ArrayKeyValueIterator(this));
};
_local2.resize = function (_arg1):void{
this.length = _arg1;
};
_local2.setPropertyIsEnumerable("copy", false);
_local2.setPropertyIsEnumerable("insert", false);
_local2.setPropertyIsEnumerable("contains", false);
_local2.setPropertyIsEnumerable("remove", false);
_local2.setPropertyIsEnumerable("iterator", false);
_local2.setPropertyIsEnumerable("keyValueIterator", false);
_local2.setPropertyIsEnumerable("resize", false);
_local2["filter"] = function (_arg1:Function):Array{
var _local2:Array = [];
var _local3:int;
var _local4:int = this.length;
while (_local3 < _local4) {
if (_arg1(this[_local3])){
_local2.push(this[_local3]);
};
_local3++;
};
return (_local2);
};
_local2["map"] = function (_arg1:Function):Array{
var _local2:Array = [];
var _local3:int;
var _local4:int = this.length;
while (_local3 < _local4) {
_local2.push(_arg1(this[_local3]));
_local3++;
};
return (_local2);
};
_local2.setPropertyIsEnumerable("map", false);
_local2.setPropertyIsEnumerable("filter", false);
String.prototype.charCodeAt = function (_arg1):Object{
var _local2:String = this;
var _local3:Number = _local2.charCodeAt(_arg1);
if (isNaN(_local3)){
return (null);
};
return (_local3);
};
Boot.skip_constructor = false;
Boot.IN_E = 0;
}//package flash
Section 3
//Lib (flash.Lib)
package flash {
import flash.display.*;
public class Lib {
public static var current:MovieClip;
public function Lib():void{
}
}
}//package flash
Section 4
//ArrayIterator (haxe.iterators.ArrayIterator)
package haxe.iterators {
public class ArrayIterator {
public var array:Array;
public function ArrayIterator(_arg1:Array):void{
array = _arg1;
}
}
}//package haxe.iterators
Section 5
//ArrayKeyValueIterator (haxe.iterators.ArrayKeyValueIterator)
package haxe.iterators {
public class ArrayKeyValueIterator {
public var current:int;
public var array:Array;
public function ArrayKeyValueIterator(_arg1:Array):void{
current = 0;
array = _arg1;
}
public function next():Object{
var _local1:int = current;
current = (_local1 + 1);
return ({value:array[current], key:_local1});
}
public function hasNext():Boolean{
return ((current < array.length));
}
}
}//package haxe.iterators
Section 6
//Exception (haxe.Exception)
package haxe {
public class Exception extends Error {
public var __skipStack:int;
public var __previousException:Exception;
public var __nativeStack:String;
public var __nativeException:Error;
public function Exception(_arg1:String, _arg2:Exception=undefined, _arg3=undefined):void{
super(_arg1);
__previousException = _arg2;
if (_arg3 != null){
false;
};
if (false){
__nativeException = _arg3;
__nativeStack = NativeStackTrace.normalize(_arg3.getStackTrace());
} else {
__nativeException = this;
__nativeStack = NativeStackTrace.normalize(new Error().getStackTrace(), 1);
};
}
final public function get_native(){
return (__nativeException);
}
public static function thrown(_arg1){
var _local2 = (null as ValueException);
if ((_arg1 is Exception)){
return (_arg1.get_native());
//unresolved jump
};
if ((_arg1 is Error)){
return (_arg1);
//unresolved jump
};
_local2 = new ValueException(_arg1);
_local2.__skipStack = (_local2.__skipStack + 1);
return (_local2);
}
}
}//package haxe
Section 7
//NativeStackTrace (haxe.NativeStackTrace)
package haxe {
public class NativeStackTrace {
public function NativeStackTrace():void{
}
public static function normalize(_arg1:String, _arg2:int=0):String{
var _local3:String = _arg1.substring(0, 6);
if (_local3 != "Error\n"){
//unresolved if
};
_arg2++;
//unresolved jump
return (NativeStackTrace.skipLines(_arg1, _arg2));
}
public static function skipLines(_arg1:String, _arg2:int, _arg3:int=0):String{
if (_arg2 > 0){
_arg3 = _arg1.indexOf("\n", _arg3);
if (_arg3 < 0){
return ("");
} else {
_arg2--;
return (NativeStackTrace.skipLines(_arg1, _arg2, (_arg3 + 1)));
};
//unresolved jump
};
return (_arg1.substring(_arg3));
}
}
}//package haxe
Section 8
//ValueException (haxe.ValueException)
package haxe {
public class ValueException extends Exception {
public var value;
public function ValueException(_arg1, _arg2:Exception=undefined, _arg3=undefined):void{
super(Std.string(_arg1), _arg2, _arg3);
value = _arg1;
}
}
}//package haxe
Section 9
//BackgroundImage (BackgroundImage)
package {
import flash.display.*;
public class BackgroundImage extends BitmapData {
public function BackgroundImage(_arg1:int, _arg2:int, _arg3:Object=undefined, _arg4:Object=undefined):void{
if (_arg3 == null){
_arg3 = true;
};
if (_arg4 == null){
_arg4 = -1;
};
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package
Section 10
//BackgroundMusic (BackgroundMusic)
package {
import flash.media.*;
import flash.net.*;
public class BackgroundMusic extends Sound {
public function BackgroundMusic(_arg1:URLRequest=undefined, _arg2:SoundLoaderContext=undefined):void{
super(_arg1, _arg2);
}
}
}//package
Section 11
//boot_16b7 (boot_16b7)
package {
import flash.*;
public class boot_16b7 extends Boot {
public function boot_16b7():void{
if (Lib.current == null){
Lib.current = this;
};
start();
}
override public function init():void{
Math.NaN = Number.NaN;
Math.NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;
Math.POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
Math.isFinite = function (_arg1:Number):Boolean{
return (isFinite(_arg1));
};
Math.isNaN = function (_arg1:Number):Boolean{
return (isNaN(_arg1));
};
Main.main();
}
}
}//package
Section 12
//Cloud1 (Cloud1)
package {
import flash.display.*;
public class Cloud1 extends BitmapData {
public function Cloud1(_arg1:int, _arg2:int, _arg3:Object=undefined, _arg4:Object=undefined):void{
if (_arg3 == null){
_arg3 = true;
};
if (_arg4 == null){
_arg4 = -1;
};
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package
Section 13
//Cloud2 (Cloud2)
package {
import flash.display.*;
public class Cloud2 extends BitmapData {
public function Cloud2(_arg1:int, _arg2:int, _arg3:Object=undefined, _arg4:Object=undefined):void{
if (_arg3 == null){
_arg3 = true;
};
if (_arg4 == null){
_arg4 = -1;
};
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package
Section 14
//Cloud3 (Cloud3)
package {
import flash.display.*;
public class Cloud3 extends BitmapData {
public function Cloud3(_arg1:int, _arg2:int, _arg3:Object=undefined, _arg4:Object=undefined):void{
if (_arg3 == null){
_arg3 = true;
};
if (_arg4 == null){
_arg4 = -1;
};
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package
Section 15
//Cloud4 (Cloud4)
package {
import flash.display.*;
public class Cloud4 extends BitmapData {
public function Cloud4(_arg1:int, _arg2:int, _arg3:Object=undefined, _arg4:Object=undefined):void{
if (_arg3 == null){
_arg3 = true;
};
if (_arg4 == null){
_arg4 = -1;
};
super(_arg1, _arg2, _arg3, _arg4);
}
}
}//package
Section 16
//Dynamic (Dynamic)
package {
public class Dynamic {
public function Dynamic():void{
}
}
}//package
Section 17
//Main (Main)
package {
import flash.display.*;
import _Main.*;
import flash.media.*;
import flash.*;
import flash.events.*;
public class Main {
public function Main():void{
}
public static function main():void{
var _local1:Sound = new BackgroundMusic();
_local1.play(0, 0);
Main_Fields_.stage = Lib.current.stage;
Main_Fields_.stage.scaleMode = StageScaleMode.NO_BORDER;
Main_Fields_.stage.align = StageAlign.TOP;
var _local2:Bitmap = new Bitmap(new BackgroundImage(0, 0));
Main_Fields_.stage.addChild(_local2);
Main_Fields_.treadmill = new Treadmill([new Cloud1(0, 0), new Cloud2(0, 0), new Cloud3(0, 0), new Cloud4(0, 0)]);
Main_Fields_.player = new Particle();
Main_Fields_.player.graphics.beginFill(43775);
Main_Fields_.player.graphics.drawCircle(0, 0, 20);
Main_Fields_.player.floating = false;
Main_Fields_.stage.addEventListener(Event.ENTER_FRAME, Main_Fields_.frame_callback);
Main_Fields_.stage.addEventListener(KeyboardEvent.KEY_DOWN, Main_Fields_.key_press_callback);
Main_Fields_.stage.addEventListener(KeyboardEvent.KEY_UP, Main_Fields_.key_release_callback);
}
}
}//package
Section 18
//Particle (Particle)
package {
import flash.display.*;
import _Main.*;
public class Particle {
public var y:Number;
public var x:Number;
public var vy:Number;
public var vx:Number;
public var sprite_handle:Sprite;
public var graphics:Graphics;
public var floating:Boolean;
public var active:Boolean;
public function Particle():void{
floating = true;
active = true;
vy = 0;
vx = 0;
sprite_handle = new Sprite();
graphics = sprite_handle.graphics;
set_x(0);
set_y(0);
Main_Fields_.stage.addChild(sprite_handle);
Main_Fields_.particle_list.insert(Main_Fields_.particle_list.length, this);
}
public function set_y(_arg1:Number):Number{
y = _arg1;
sprite_handle.y = (((Main_Fields_.camera_y - y) + 0.5) * Main_Fields_.stage.stageHeight);
return (_arg1);
}
public function set_x(_arg1:Number):Number{
x = _arg1;
sprite_handle.x = (((x - Main_Fields_.camera_x) + 0.5) * Main_Fields_.stage.stageWidth);
return (_arg1);
}
public function set_active(_arg1:Boolean):Boolean{
active = _arg1;
sprite_handle.visible = _arg1;
return (_arg1);
}
public function accelerateXTopSpeed(_arg1:Number, _arg2:Number):void{
accelerate(_arg1, 0);
vx = Math.max(Math.min(vx, _arg2), -(_arg2));
}
public function accelerate(_arg1:Number, _arg2:Number):void{
vx = (vx + (_arg1 / Main_Fields_.stage.frameRate));
vy = (vy + (_arg2 / Main_Fields_.stage.frameRate));
}
}
}//package
Section 19
//Std (Std)
package {
import flash.*;
public class Std {
public function Std():void{
}
public static function isOfType(_arg1, _arg2):Boolean{
return (Boot.__instanceof(_arg1, _arg2));
}
public static function string(_arg1):String{
return (Boot.__string_rec(_arg1, ""));
}
}
}//package
Section 20
//Treadmill (Treadmill)
package {
import flash.display.*;
import _Main.*;
public class Treadmill {
public var visible:Boolean;
public var scroll:Number;
public var data:Array;
public var bmap:Array;
public function Treadmill(_arg1:Array):void{
visible = true;
scroll = 0;
data = _arg1;
bmap = [];
var _local2:int;
while (_local2 < _arg1.length) {
bmap.insert(_local2, new Bitmap(_arg1[_local2]));
bmap[_local2].width = Main_Fields_.stage.stageWidth;
bmap[_local2].height = Main_Fields_.stage.stageHeight;
Main_Fields_.stage.addChild(bmap[_local2]);
bmap[_local2].visible = (_local2 == 0);
_local2++;
};
}
public function set_visible(_arg1:Boolean):Boolean{
visible = _arg1;
var _local2:int = Math.floor((scroll / Main_Fields_.stage.stageWidth));
var _local3:int = (_local2 % bmap.length);
var _local4:int = ((_local3 + 1) % bmap.length);
bmap[_local3].visible = _arg1;
bmap[_local4].visible = _arg1;
return (_arg1);
}
public function set_scroll(_arg1:Number):Number{
scroll = _arg1;
var _local2:int = (bmap.length * Main_Fields_.stage.stageWidth);
while (scroll >= _local2) {
scroll = (scroll - _local2);
};
while (scroll < 0) {
scroll = (scroll + _local2);
};
var _local3:int = Math.floor((scroll / Main_Fields_.stage.stageWidth));
var _local4:int = (_local3 % bmap.length);
var _local5:int = ((_local4 + 1) % bmap.length);
var _local6:int;
while (_local6 < bmap.length) {
if (_local6 == _local4){
bmap[_local6].x = (scroll - (_local4 * Main_Fields_.stage.stageWidth));
bmap[_local6].visible = visible;
} else {
if (_local6 == _local5){
bmap[_local6].x = (scroll - ((_local4 + 1) * Main_Fields_.stage.stageWidth));
bmap[_local6].visible = visible;
} else {
bmap[_local6].visible = false;
};
};
_local6++;
};
return (_arg1);
}
public function get_length():int{
return ((Main_Fields_.stage.stageWidth * bmap.length));
}
}
}//package