Section 1
//FlashChecker (classes.gamezhero.FlashChecker)
package classes.gamezhero {
import flash.display.*;
public dynamic class FlashChecker extends MovieClip {
public var b:SimpleButton;
public function FlashChecker(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package classes.gamezhero
Section 2
//MD5 (com.gamezhero.as3.crypto.MD5)
package com.gamezhero.as3.crypto {
import com.gamezhero.as3.utils.*;
public class MD5 {
private function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
private function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
private function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
private function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int;
_local9 = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
private function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
private function createBlocks(_arg1:String):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = new Array();
_local3 = (_arg1.length * 8);
_local4 = 0xFF;
_local5 = 0;
while (_local5 < _local3) {
_local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32)));
_local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3;
return (_local2);
}
public function hash(_arg1:String):String{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:Array;
var _local11:int;
var _local12:int;
_local2 = 1732584193;
_local3 = -271733879;
_local4 = -1732584194;
_local5 = 271733878;
_local10 = createBlocks(_arg1);
_local11 = _local10.length;
_local12 = 0;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 1)], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 3)], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 5)], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 7)], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 9)], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 11)], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 13)], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 15)], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 6)], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 0)], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 10)], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 4)], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 14)], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 8)], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 2)], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 12)], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 8)], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 14)], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 4)], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 10)], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 0)], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 6)], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 12)], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 2)], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 7)], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 5)], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 3)], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 1)], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 15)], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 13)], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 11)], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 9)], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
private function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
}
}//package com.gamezhero.as3.crypto
Section 3
//ClassLoader (com.gamezhero.as3.utils.ClassLoader)
package com.gamezhero.as3.utils {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class ClassLoader extends EventDispatcher {
private var loader:Loader;
private var request:URLRequest;
private var swfLib:String;
private var loadedClass:Class;
public static var CLASS_LOADED:String = "classLoaded";
public static var LOAD_ERROR:String = "loadError";
public function ClassLoader(){
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
}
public function getClass(_arg1:String):Class{
var className = _arg1;
try {
return ((loader.contentLoaderInfo.applicationDomain.getDefinition(className) as Class));
} catch(e:Error) {
trace("ERROR");
};
return (null);
}
private function securityErrorHandler(_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.LOAD_ERROR));
}
private function completeHandler(_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.CLASS_LOADED));
}
private function ioErrorHandler(_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.LOAD_ERROR));
}
public function load(_arg1:String):void{
var _local2:LoaderContext;
swfLib = _arg1;
request = new URLRequest(swfLib);
_local2 = new LoaderContext();
_local2.applicationDomain = new ApplicationDomain();
loader.load(request, _local2);
}
}
}//package com.gamezhero.as3.utils
Section 4
//IntUtil (com.gamezhero.as3.utils.IntUtil)
package com.gamezhero.as3.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local3:String;
var _local4:int;
var _local5:int;
_local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int;
_local3 = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package com.gamezhero.as3.utils
Section 5
//SubmitArea (com.gamezhero.as3.SubmitArea)
package com.gamezhero.as3 {
import flash.display.*;
import flash.events.*;
import com.gamezhero.as3.crypto.*;
import com.gamezhero.as3.utils.*;
import flash.text.*;
import flash.system.*;
public class SubmitArea extends MovieClip {
private var x_pos:Number;// = 0
private var goal:MovieClip;
private var infoText:TextField;
private var score_value:Number;// = 0
private var y_pos:Number;// = 0
public var secret:MD5;
private var scoreLibrary:ClassLoader;
private var score;
public var versionGame:String;// = "1.0"
public static const CONTINUE:String = "gamezhero_continue";
public static const SUBMITED:String = "gamezhero_submited";
public function SubmitArea(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:Number):void{
versionGame = "1.0";
score_value = 0;
x_pos = 0;
y_pos = 0;
super();
x_pos = _arg2;
y_pos = _arg3;
goal = _arg1;
score_value = _arg4;
Security.allowDomain("www.gamezhero.com", "gamezhero.com", "files.gamezhero.com", "*.gamezhero.com");
secret = new MD5();
scoreLibrary = new ClassLoader();
scoreLibrary.addEventListener(ClassLoader.LOAD_ERROR, loadErrorHandler);
scoreLibrary.addEventListener(ClassLoader.CLASS_LOADED, classLoadedHandler);
scoreLibrary.load("http://files.gamezhero.com/online/orbitrunner/score/score.swf");
createIniText();
infoText.text = "loading score...";
goal.addChild(this);
}
public function submitAction(_arg1:String=""):void{
diactivateAllEvents();
goal.removeChild(this);
dispatchEvent(new Event(SUBMITED));
}
public function loadErrorHandler(_arg1:Event=null):void{
(infoText as TextField).text = "error loading";
}
public function diactivateAllEvents():void{
scoreLibrary.removeEventListener(ClassLoader.LOAD_ERROR, loadErrorHandler);
scoreLibrary.removeEventListener(ClassLoader.CLASS_LOADED, classLoadedHandler);
}
public function createIniText():void{
var _local1:TextFormat;
infoText = new TextField();
infoText.autoSize = TextFieldAutoSize.LEFT;
_local1 = new TextFormat();
_local1.color = 0xFFFFFF;
_local1.size = 11;
_local1.font = "Arial";
infoText.defaultTextFormat = _local1;
this.addChild(infoText);
infoText.x = 10;
infoText.y = 10;
}
public function continueAction():void{
diactivateAllEvents();
goal.removeChild(this);
dispatchEvent(new Event(CONTINUE));
}
public function classLoadedHandler(_arg1:Event=null):void{
var _local2:Class;
this.x = x_pos;
this.y = y_pos;
(infoText as TextField).text = "";
_local2 = scoreLibrary.getClass("Score");
score = new _local2((this as MovieClip), null, score_value, "ENG");
this.addChild(score);
}
}
}//package com.gamezhero.as3
Section 6
//GamePreloader (com.gamezhero.gamezhero.GamePreloader)
package com.gamezhero.gamezhero {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class GamePreloader extends MovieClip {
private var obj:Object;
private var urls:Dictionary;
public var bg:MovieClip;
public var intro:MovieClip;
private var par:MovieClip;
public static const finish:String = "PRELOAD_COMPLETE";
public function GamePreloader(_arg1:MovieClip, _arg2:Object):void{
var _local3:ContextMenu;
var _local4:ContextMenuBuiltInItems;
var _local5:String;
var _local6:ContextMenuItem;
urls = new Dictionary();
super();
obj = _arg2;
par = _arg1;
par.addChild(this);
stage.addEventListener(Event.RESIZE, resizeStage);
this.addEventListener(Event.ENTER_FRAME, iniPreloader);
resizeStage(null);
_local3 = new ContextMenu();
_local3.hideBuiltInItems();
_local4 = _local3.builtInItems;
for (_local5 in _arg2.gamezhero_menu) {
_local6 = new ContextMenuItem(_local5);
_local6.caption = _local5;
urls[_local6] = _arg2.gamezhero_menu[_local5];
_local6.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, getURLContextMenu);
_local3.customItems.push(_local6);
};
par.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
par.loaderInfo.addEventListener(Event.COMPLETE, comp);
this.parent.contextMenu = _local3;
this.addEventListener(MouseEvent.MOUSE_DOWN, getURLPreloader);
this.useHandCursor = true;
this.buttonMode = true;
}
public function comp(_arg1:Event=null):void{
}
public function action(_arg1:Event=null):void{
var _local2:Event;
this.removeEventListener(Event.ENTER_FRAME, iniPreloader);
stage.removeEventListener(Event.RESIZE, resizeStage);
par.loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
par.loaderInfo.removeEventListener(Event.COMPLETE, comp);
_local2 = new Event(finish);
this.dispatchEvent(_local2);
par.removeChild(this);
}
public function getURLPreloader(_arg1:MouseEvent=null):void{
getURL(obj.gamezhero_url);
}
public function getURL(_arg1:String):void{
var _local2:URLRequest;
_local2 = new URLRequest(_arg1);
navigateToURL(_local2, "_blank");
}
public function ioErrorHandler(_arg1:Event):void{
}
public function resizeStage(_arg1:Event):void{
this["bg"].width = Math.round(stage.stageWidth);
this["bg"].height = Math.round(stage.stageHeight);
this["intro"].x = Math.round((stage.stageWidth / 2));
this["intro"].y = Math.round((stage.stageHeight / 2));
}
public function getURLContextMenu(_arg1:ContextMenuEvent=null):void{
getURL(urls[_arg1.target]);
}
public function iniPreloader(_arg1:Event):void{
var _local2:Number;
_local2 = (-128 + (132 * (par.loaderInfo.bytesLoaded / par.loaderInfo.bytesTotal)));
this["intro"]["pr"]["begun"].x = (this["intro"]["pr"]["begun"].x - ((this["intro"]["pr"]["begun"].x - _local2) / 5));
if (par.loaderInfo.bytesLoaded != par.loaderInfo.bytesTotal){
if (this["intro"].currentLabel == "stopFrame"){
this["intro"].stop();
};
} else {
if (this["intro"].currentLabel == "stopFrame"){
this["intro"].play();
};
if (this["intro"].currentFrame == this["intro"].totalFrames){
this["intro"].stop();
action();
};
if (obj.debug){
action();
};
};
}
}
}//package com.gamezhero.gamezhero
Section 7
//ClassLoader (com.gamezhero.utils.ClassLoader)
package com.gamezhero.utils {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class ClassLoader extends EventDispatcher {
private var loader:Loader;
private var request:URLRequest;
private var swfLib:String;
private var loadedClass:Class;
public static var CLASS_LOADED:String = "classLoaded";
public static var LOAD_ERROR:String = "loadError";
public function ClassLoader(){
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
}
public function getClass(_arg1:String):Class{
var className = _arg1;
try {
return ((loader.contentLoaderInfo.applicationDomain.getDefinition(className) as Class));
} catch(e:Error) {
trace("ERROR");
};
return (null);
}
private function securityErrorHandler(_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.LOAD_ERROR));
}
private function completeHandler(_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.CLASS_LOADED));
}
private function ioErrorHandler(_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.LOAD_ERROR));
}
public function load(_arg1:String):void{
var _local2:LoaderContext;
swfLib = _arg1;
request = new URLRequest(swfLib);
_local2 = new LoaderContext();
_local2.applicationDomain = new ApplicationDomain();
loader.load(request, _local2);
}
}
}//package com.gamezhero.utils
Section 8
//EventManager (custom.EventManager)
package custom {
import flash.events.*;
import flash.utils.*;
public class EventManager {
private static var targetMap:Dictionary = new Dictionary();
private static function onEvent(_arg1:Event):void{
var _local2:IEventDispatcher;
var _local3:Dictionary;
var _local4:String;
var _local5:Function;
var _local6:Array;
_local2 = (_arg1.currentTarget as IEventDispatcher);
_local3 = targetMap[_local2];
_local4 = _arg1.type;
_local5 = _local3[_local4].listener;
_local6 = _local3[_local4].args;
if ((_local6[0] is Event)){
_local6.shift();
};
_local6.unshift(_arg1);
_local5.apply(_local2, _local6);
}
public static function addEvent(_arg1:IEventDispatcher, _arg2:String, _arg3:Function, ... _args):void{
var _local5:Dictionary;
_local5 = ((targetMap[_arg1] == undefined)) ? new Dictionary() : targetMap[_arg1];
_local5[_arg2] = {listener:_arg3, args:_args};
targetMap[_arg1] = _local5;
_arg1.addEventListener(_arg2, onEvent);
}
public static function removeEvent(_arg1:IEventDispatcher, _arg2:String):void{
var _local3:Dictionary;
_local3 = targetMap[_arg1];
delete _local3[_arg2];
_arg1.removeEventListener(_arg2, onEvent);
}
}
}//package custom
Section 9
//MathUtil (custom.MathUtil)
package custom {
public final class MathUtil {
public static var ONE_EIGHTY_OVER_PI:Number = 57.2957795130823;
public static var PI_OVER_ONE_EIGHTY:Number = 0.0174532925199433;
public static function ceil(_arg1:Number):int{
return (((_arg1)==int(_arg1)) ? _arg1 : (int(_arg1) + 1));
}
public static function abs(_arg1:Number):Number{
if (_arg1 < 0){
_arg1 = -(_arg1);
};
return (_arg1);
}
public static function sin(_arg1:Number):Number{
if (_arg1 < -3.14159265){
_arg1 = (_arg1 + 6.28318531);
} else {
if (_arg1 > 3.14159265){
_arg1 = (_arg1 - 6.28318531);
};
};
if (_arg1 < 0){
_arg1 = ((1.27323954 * _arg1) + ((0.405284735 * _arg1) * _arg1));
if (_arg1 < 0){
_arg1 = ((0.225 * ((_arg1 * -(_arg1)) - _arg1)) + _arg1);
} else {
_arg1 = ((0.225 * ((_arg1 * _arg1) - _arg1)) + _arg1);
};
} else {
_arg1 = ((1.27323954 * _arg1) - ((0.405284735 * _arg1) * _arg1));
if (_arg1 < 0){
_arg1 = ((0.225 * ((_arg1 * -(_arg1)) - _arg1)) + _arg1);
} else {
_arg1 = ((0.225 * ((_arg1 * _arg1) - _arg1)) + _arg1);
};
};
return (_arg1);
}
public static function floor(_arg1:Number):Number{
return (int(_arg1));
}
public static function cos(_arg1:Number):Number{
return (sin((_arg1 + 1.57079632)));
}
}
}//package custom
Section 10
//Raster (custom.Raster)
package custom {
import flash.display.*;
import flash.geom.*;
public class Raster {
public static function aaCircle(_arg1:BitmapData, _arg2:Number, _arg3:Number, _arg4:int, _arg5:Number):void{
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:Number;
var _local10:Number;
var _local11:Function;
var _local12:Function;
_local6 = _arg4;
_local7 = 0;
_local9 = 0;
_local11 = Math.sqrt;
_local12 = Math.ceil;
_arg1.setPixel((_arg2 + _local6), (_arg3 + _local7), _arg5);
_arg1.setPixel((_arg2 - _local6), (_arg3 + _local7), _arg5);
_arg1.setPixel((_arg2 + _local7), (_arg3 + _local6), _arg5);
_arg1.setPixel((_arg2 + _local7), (_arg3 - _local6), _arg5);
while (_local6 > (_local7 + 1)) {
_local7++;
_local10 = (_local12(_local11(((_arg4 * _arg4) - (_local7 * _local7)))) - _local11(((_arg4 * _arg4) - (_local7 * _local7))));
if (_local10 < _local9){
_local6--;
};
drawAlphaPixel(_arg1, (_arg2 + _local6), (_arg3 + _local7), (1 - _local10), _arg5);
drawAlphaPixel(_arg1, ((_arg2 + _local6) - 1), (_arg3 + _local7), _local10, _arg5);
drawAlphaPixel(_arg1, (_arg2 - _local6), (_arg3 + _local7), (1 - _local10), _arg5);
drawAlphaPixel(_arg1, ((_arg2 - _local6) + 1), (_arg3 + _local7), _local10, _arg5);
drawAlphaPixel(_arg1, (_arg2 + _local6), (_arg3 - _local7), (1 - _local10), _arg5);
drawAlphaPixel(_arg1, ((_arg2 + _local6) - 1), (_arg3 - _local7), _local10, _arg5);
drawAlphaPixel(_arg1, (_arg2 - _local6), (_arg3 - _local7), (1 - _local10), _arg5);
drawAlphaPixel(_arg1, ((_arg2 - _local6) + 1), (_arg3 - _local7), _local10, _arg5);
drawAlphaPixel(_arg1, (_arg2 + _local7), (_arg3 + _local6), (1 - _local10), _arg5);
drawAlphaPixel(_arg1, (_arg2 + _local7), ((_arg3 + _local6) - 1), _local10, _arg5);
drawAlphaPixel(_arg1, (_arg2 - _local7), (_arg3 + _local6), (1 - _local10), _arg5);
drawAlphaPixel(_arg1, (_arg2 - _local7), ((_arg3 + _local6) - 1), _local10, _arg5);
drawAlphaPixel(_arg1, (_arg2 + _local7), (_arg3 - _local6), (1 - _local10), _arg5);
drawAlphaPixel(_arg1, (_arg2 + _local7), ((_arg3 - _local6) + 1), _local10, _arg5);
drawAlphaPixel(_arg1, (_arg2 - _local7), (_arg3 - _local6), (1 - _local10), _arg5);
drawAlphaPixel(_arg1, (_arg2 - _local7), ((_arg3 - _local6) + 1), _local10, _arg5);
_local9 = _local10;
};
}
public static function cubicBezier(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int, _arg9:int, _arg10:Number, _arg11:int=5):void{
var _local12:Number;
var _local13:Number;
var _local14:int;
var _local15:int;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:int;
var _local25:int;
var _local26:int;
var _local27:int;
_local12 = _arg2;
_local13 = _arg3;
_local16 = 0;
_local17 = (1 / _arg11);
_local24 = 0;
while (++_local24 <= _arg11) {
_local18 = (_local17 * _local24);
_local19 = ((_local17 * _local24) * _local18);
_local20 = (_local19 * _local18);
_local21 = (1 - _local18);
_local22 = ((1 - _local18) * _local21);
_local23 = (_local22 * _local21);
_local14 = ((((_local23 * _arg2) + (((3 * _local18) * _local22) * _arg4)) + (((3 * _arg6) * _local19) * _local21)) + (_arg8 * _local20));
_local15 = ((((_local23 * _arg3) + (((3 * _local18) * _local22) * _arg5)) + (((3 * _arg7) * _local19) * _local21)) + (_arg9 * _local20));
_local16 = (_local16 + Math.sqrt((((_local14 - _local12) * (_local14 - _local12)) + ((_local15 - _local13) * (_local15 - _local13)))));
_local12 = _local14;
_local13 = _local15;
};
_local25 = Math.floor(_local16);
_local17 = (1 / _local25);
_local26 = _arg2;
_local27 = _arg3;
_local24 = -1;
while (++_local24 <= _local25) {
_local18 = (_local17 * _local24);
_local19 = ((_local17 * _local24) * _local18);
_local20 = (_local19 * _local18);
_local21 = (1 - _local18);
_local22 = ((1 - _local18) * _local21);
_local23 = (_local22 * _local21);
_local14 = ((((_local23 * _arg2) + (((3 * _local18) * _local22) * _arg4)) + (((3 * _arg6) * _local19) * _local21)) + (_arg8 * _local20));
_local15 = ((((_local23 * _arg3) + (((3 * _local18) * _local22) * _arg5)) + (((3 * _arg7) * _local19) * _local21)) + (_arg9 * _local20));
Line(_arg1, _local26, _local27, _local14, _local15, _arg10);
_local26 = _local14;
_local27 = _local15;
};
}
private static function checkLine(_arg1:Object, _arg2:int, _arg3:int, _arg4:BitmapData, _arg5:int, _arg6:Rectangle):void{
if (_arg1[_arg3]){
if (_arg1[_arg3] > _arg2){
_arg6.width = (_arg1[_arg3] - _arg2);
_arg6.x = _arg2;
_arg6.y = _arg3;
_arg4.fillRect(_arg6, _arg5);
} else {
_arg6.width = (_arg2 - _arg1[_arg3]);
_arg6.x = _arg1[_arg3];
_arg6.y = _arg3;
_arg4.fillRect(_arg6, _arg5);
};
} else {
_arg1[_arg3] = _arg2;
};
}
public static function Line(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:Number):void{
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
_local13 = _arg2;
_local14 = _arg3;
_local7 = (_arg4 - _arg2);
_local8 = (_arg5 - _arg3);
_local10 = ((_local7)>0) ? 1 : -1;
_local11 = ((_local8)>0) ? 1 : -1;
_local7 = Math.abs(_local7);
_local8 = Math.abs(_local8);
_arg1.setPixel32(_local13, _local14, _arg6);
if (_local7 > _local8){
_local12 = (_local7 / 2);
_local9 = 1;
while (_local9 <= _local7) {
_local13 = (_local13 + _local10);
_local12 = (_local12 + _local8);
if (_local12 >= _local7){
_local12 = (_local12 - _local7);
_local14 = (_local14 + _local11);
};
_arg1.setPixel32(_local13, _local14, _arg6);
_local9++;
};
} else {
_local12 = (_local8 / 2);
_local9 = 1;
while (_local9 <= _local8) {
_local14 = (_local14 + _local11);
_local12 = (_local12 + _local7);
if (_local12 >= _local8){
_local12 = (_local12 - _local8);
_local13 = (_local13 + _local10);
};
_arg1.setPixel32(_local13, _local14, _arg6);
_local9++;
};
};
}
public static function quadBezier(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:Number, _arg9:int=3):void{
var _local10:Number;
var _local11:Number;
var _local12:int;
var _local13:int;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:int;
var _local21:int;
var _local22:int;
var _local23:int;
_local10 = _arg2;
_local11 = _arg3;
_local14 = 0;
_local15 = (1 / _arg9);
_local20 = 0;
while (++_local20 <= _arg9) {
_local16 = (_local15 * _local20);
_local17 = ((_local15 * _local20) * _local16);
_local18 = (1 - _local16);
_local19 = ((1 - _local16) * _local18);
_local12 = (((_local19 * _arg2) + (((2 * _local16) * _local18) * _arg4)) + (_local17 * _arg6));
_local13 = (((_local19 * _arg3) + (((2 * _local16) * _local18) * _arg5)) + (_local17 * _arg7));
_local14 = (_local14 + Math.sqrt((((_local12 - _local10) * (_local12 - _local10)) + ((_local13 - _local11) * (_local13 - _local11)))));
_local10 = _local12;
_local11 = _local13;
};
_local21 = Math.floor(_local14);
_local15 = (1 / _local21);
_local22 = _arg2;
_local23 = _arg3;
_local20 = -1;
while (++_local20 <= _local21) {
_local16 = (_local15 * _local20);
_local17 = ((_local15 * _local20) * _local16);
_local18 = (1 - _local16);
_local19 = ((1 - _local16) * _local18);
_local12 = (((_local19 * _arg2) + (((2 * _local16) * _local18) * _arg4)) + (_local17 * _arg6));
_local13 = (((_local19 * _arg3) + (((2 * _local16) * _local18) * _arg5)) + (_local17 * _arg7));
Line(_arg1, _local22, _local23, _local12, _local13, _arg8);
_local22 = _local12;
_local23 = _local13;
};
}
public static function circle(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:Number):void{
var _local6:int;
var _local7:int;
var _local8:int;
_local6 = 0;
_local7 = _arg4;
_local8 = (1 - _arg4);
_arg1.setPixel32((_arg2 + _local6), (_arg3 + _local7), _arg5);
_arg1.setPixel32((_arg2 + _local6), (_arg3 - _local7), _arg5);
_arg1.setPixel32((_arg2 - _local7), (_arg3 + _local6), _arg5);
_arg1.setPixel32((_arg2 + _local7), (_arg3 + _local6), _arg5);
while (_local7 > _local6) {
if (_local8 < 0){
_local8 = (_local8 + ((2 * _local6) + 3));
} else {
_local8 = (_local8 + ((2 * (_local6 - _local7)) + 5));
_local7--;
};
_local6++;
_arg1.setPixel32((_arg2 + _local6), (_arg3 + _local7), _arg5);
_arg1.setPixel32((_arg2 - _local6), (_arg3 + _local7), _arg5);
_arg1.setPixel32((_arg2 + _local6), (_arg3 - _local7), _arg5);
_arg1.setPixel32((_arg2 - _local6), (_arg3 - _local7), _arg5);
_arg1.setPixel32((_arg2 - _local7), (_arg3 + _local6), _arg5);
_arg1.setPixel32((_arg2 - _local7), (_arg3 - _local6), _arg5);
_arg1.setPixel32((_arg2 + _local7), (_arg3 - _local6), _arg5);
_arg1.setPixel32((_arg2 + _local7), (_arg3 + _local6), _arg5);
};
}
public static function triangle(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:Number):void{
Line(_arg1, _arg2, _arg3, _arg4, _arg5, _arg8);
Line(_arg1, _arg4, _arg5, _arg6, _arg7, _arg8);
Line(_arg1, _arg6, _arg7, _arg2, _arg3, _arg8);
}
public static function filledTri(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:Number):void{
var _local9:Object;
_local9 = {};
lineTri(_local9, _arg1, _arg2, _arg3, _arg4, _arg5, _arg8);
lineTri(_local9, _arg1, _arg4, _arg5, _arg6, _arg7, _arg8);
lineTri(_local9, _arg1, _arg6, _arg7, _arg2, _arg3, _arg8);
}
public static function aaLine(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:Number):void{
var _local7:Boolean;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:Number;
var _local12:int;
var _local13:Number;
var _local14:Number;
var _local15:int;
var _local16:int;
var _local17:Number;
var _local18:Number;
var _local19:int;
var _local20:int;
var _local21:int;
_local7 = (Math.abs((_arg5 - _arg3)) > Math.abs((_arg4 - _arg2)));
if (_local7){
_local8 = _arg2;
_arg2 = _arg3;
_arg3 = _local8;
_local8 = _arg4;
_arg4 = _arg5;
_arg5 = _local8;
};
if (_arg2 > _arg4){
_local8 = _arg2;
_arg2 = _arg4;
_arg4 = _local8;
_local8 = _arg3;
_arg3 = _arg5;
_arg5 = _local8;
};
_local9 = (_arg4 - _arg2);
_local10 = (_arg5 - _arg3);
_local11 = (_local10 / _local9);
_local12 = _arg2;
_local13 = (_arg3 + (_local11 * (_local12 - _arg2)));
_local14 = (1 - ((_arg2 + 0.5) % 1));
_local15 = _local12;
_local16 = Math.floor(_local13);
_local17 = ((1 - (_local13 % 1)) * _local14);
if (_local7){
};
_local17 = ((_local13 % 1) * _local14);
if (_local7){
};
_local18 = (_local13 + _local11);
_local12 = _arg4;
_local13 = (_arg5 + (_local11 * (_local12 - _arg4)));
_local14 = ((_arg4 + 0.5) % 1);
_local19 = _local12;
_local20 = Math.floor(_local13);
_local17 = ((1 - (_local13 % 1)) * _local14);
if (_local7){
drawAlphaPixel(_arg1, _local20, _local19, _local17, _arg6);
} else {
drawAlphaPixel(_arg1, _local19, _local20, _local17, _arg6);
};
_local17 = ((_local13 % 1) * _local14);
if (_local7){
drawAlphaPixel(_arg1, (_local20 + 1), _local19, _local17, _arg6);
} else {
drawAlphaPixel(_arg1, _local19, (_local20 + 1), _local17, _arg6);
};
_local21 = _local15;
while (_local21++ < _local19) {
_local17 = (1 - (_local18 % 1));
if (_local7){
drawAlphaPixel(_arg1, _local18, _local21, _local17, _arg6);
} else {
drawAlphaPixel(_arg1, _local21, _local18, _local17, _arg6);
};
_local17 = (_local18 % 1);
if (_local7){
drawAlphaPixel(_arg1, (_local18 + 1), _local21, _local17, _arg6);
} else {
drawAlphaPixel(_arg1, _local21, (_local18 + 1), _local17, _arg6);
};
_local18 = (_local18 + _local11);
};
}
private static function drawAlphaPixel(_arg1:BitmapData, _arg2:int, _arg3:int, _arg4:Number, _arg5:Number):void{
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:uint;
_local6 = _arg1.getPixel32(_arg2, _arg3);
_local7 = ((_local6 & 0xFF0000) >> 16);
_local8 = ((_local6 & 0xFF00) >> 8);
_local9 = (_local6 & 0xFF);
_local10 = ((_arg5 & 0xFF0000) >> 16);
_local11 = ((_arg5 & 0xFF00) >> 8);
_local12 = (_arg5 & 0xFF);
_local13 = 0xFF;
_local14 = ((_local10 * _arg4) + (_local7 * (1 - _arg4)));
_local15 = ((_local11 * _arg4) + (_local8 * (1 - _arg4)));
_local16 = ((_local12 * _arg4) + (_local9 * (1 - _arg4)));
_local17 = ((((_local13 << 24) + (_local14 << 16)) + (_local15 << 8)) + _local16);
_arg1.setPixel32(_arg2, _arg3, _local17);
}
private static function lineTri(_arg1:Object, _arg2:BitmapData, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:Number):void{
var _local8:Boolean;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:int;
var _local18:int;
var _local19:Rectangle;
var _local20:int;
_local8 = (((_arg6 - _arg4) * (_arg6 - _arg4)) > ((_arg5 - _arg3) * (_arg5 - _arg3)));
if (_local8){
_local9 = _arg3;
_arg3 = _arg4;
_arg4 = _local9;
_local9 = _arg5;
_arg5 = _arg6;
_arg6 = _local9;
};
if (_arg3 > _arg5){
_arg3 = (_arg3 ^ _arg5);
_arg5 = (_arg5 ^ _arg3);
_arg3 = (_arg3 ^ _arg5);
_arg4 = (_arg4 ^ _arg6);
_arg6 = (_arg6 ^ _arg4);
_arg4 = (_arg4 ^ _arg6);
};
_local10 = (_arg5 - _arg3);
_local11 = Math.abs((_arg6 - _arg4));
_local12 = 0;
_local13 = _arg4;
_local14 = ((_arg4 < _arg6)) ? 1 : -1;
_local15 = _arg3;
_local16 = (_arg5 - (_local10 >> 1));
_local17 = _arg5;
_local18 = _arg6;
_local19 = new Rectangle();
_local20 = 0;
_local19.x = 0;
_local19.y = 0;
_local19.width = 0;
_local19.height = 1;
while (_local15++ <= _local16) {
if (_local8){
checkLine(_arg1, _local13, _local15, _arg2, _arg7, _local19);
if (((!((_local17 == _arg5))) && (!((_local17 == _local16))))){
checkLine(_arg1, _local18, (_local17 + 1), _arg2, _arg7, _local19);
};
};
_local12 = (_local12 + _local11);
if ((_local12 << 1) >= _local10){
if (!_local8){
checkLine(_arg1, ((_local15 - _local20) + 1), _local13, _arg2, _arg7, _local19);
if (_local17 != _local16){
checkLine(_arg1, (_local17 + 1), _local18, _arg2, _arg7, _local19);
};
};
_local20 = 0;
_local13 = (_local13 + _local14);
_local18 = (_local18 - _local14);
_local12 = (_local12 - _local10);
};
_local20++;
_local17--;
};
if (!_local8){
checkLine(_arg1, ((_local15 - _local20) + 1), _local13, _arg2, _arg7, _local19);
};
}
}
}//package custom
Section 11
//bgs_47 (orbitrunner__fla.bgs_47)
package orbitrunner__fla {
import flash.display.*;
public dynamic class bgs_47 extends MovieClip {
public function bgs_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 12
//blick_40 (orbitrunner__fla.blick_40)
package orbitrunner__fla {
import flash.display.*;
public dynamic class blick_40 extends MovieClip {
public function blick_40(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 13
//boom_26 (orbitrunner__fla.boom_26)
package orbitrunner__fla {
import flash.display.*;
public dynamic class boom_26 extends MovieClip {
public function boom_26(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package orbitrunner__fla
Section 14
//button1_10 (orbitrunner__fla.button1_10)
package orbitrunner__fla {
import flash.display.*;
import flash.text.*;
public dynamic class button1_10 extends MovieClip {
public var gfx1:MovieClip;
public var blackcover:MovieClip;
public var textbox:TextField;
public var bflash:MovieClip;
public var gfx2:MovieClip;
public function button1_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 15
//button1gfx_11 (orbitrunner__fla.button1gfx_11)
package orbitrunner__fla {
import flash.display.*;
public dynamic class button1gfx_11 extends MovieClip {
public var outline:MovieClip;
public function button1gfx_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 16
//button1gfx1_13 (orbitrunner__fla.button1gfx1_13)
package orbitrunner__fla {
import flash.display.*;
import flash.text.*;
public dynamic class button1gfx1_13 extends MovieClip {
public var outline:MovieClip;
public var textbox:TextField;
}
}//package orbitrunner__fla
Section 17
//buttonflash_14 (orbitrunner__fla.buttonflash_14)
package orbitrunner__fla {
import flash.display.*;
public dynamic class buttonflash_14 extends MovieClip {
public function buttonflash_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 18
//buttongfx_27 (orbitrunner__fla.buttongfx_27)
package orbitrunner__fla {
import flash.display.*;
public dynamic class buttongfx_27 extends MovieClip {
public function buttongfx_27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 19
//buttongfx2_28 (orbitrunner__fla.buttongfx2_28)
package orbitrunner__fla {
import flash.display.*;
public dynamic class buttongfx2_28 extends MovieClip {
public function buttongfx2_28(){
addFrameScript(39, frame40, 52, frame53);
}
function frame40(){
stop();
}
function frame53(){
stop();
}
}
}//package orbitrunner__fla
Section 20
//buttons_7 (orbitrunner__fla.buttons_7)
package orbitrunner__fla {
import flash.display.*;
public dynamic class buttons_7 extends MovieClip {
public var b2:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var b1:MovieClip;
public var b3:MovieClip;
public var bb:MovieClip;
public var bw:MovieClip;
public function buttons_7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 21
//buttonwindow_16 (orbitrunner__fla.buttonwindow_16)
package orbitrunner__fla {
import flash.display.*;
public dynamic class buttonwindow_16 extends MovieClip {
public var outline:MovieClip;
public function buttonwindow_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 22
//cursor1_43 (orbitrunner__fla.cursor1_43)
package orbitrunner__fla {
import flash.display.*;
public dynamic class cursor1_43 extends MovieClip {
public var gfx:MovieClip;
public function cursor1_43(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 23
//cursorgfx_44 (orbitrunner__fla.cursorgfx_44)
package orbitrunner__fla {
import flash.display.*;
public dynamic class cursorgfx_44 extends MovieClip {
public var gfx:MovieClip;
}
}//package orbitrunner__fla
Section 24
//endlevel_69 (orbitrunner__fla.endlevel_69)
package orbitrunner__fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class endlevel_69 extends MovieClip {
public var textholder:MovieClip;
public var bg:MovieClip;
public var btn3:SimpleButton;
public var btn2:SimpleButton;
public var menu:MovieClip;
public var btn1:SimpleButton;
public var txt:TextField;
public var btn4:SimpleButton;
public function endlevel_69(){
addFrameScript(0, frame1, 6, frame7, 13, frame14, 79, frame80);
}
function frame80(){
this.gotolevel(this.lvl);
stop();
}
function frame14(){
this.gotolevel(this.lvl);
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 25
//endlevelgfx2__72 (orbitrunner__fla.endlevelgfx2__72)
package orbitrunner__fla {
import flash.display.*;
public dynamic class endlevelgfx2__72 extends MovieClip {
public function endlevelgfx2__72(){
addFrameScript(53, frame54);
}
function frame54(){
stop();
}
}
}//package orbitrunner__fla
Section 26
//endlevelgfx2_70 (orbitrunner__fla.endlevelgfx2_70)
package orbitrunner__fla {
import flash.display.*;
import flash.text.*;
public dynamic class endlevelgfx2_70 extends MovieClip {
public var textbox:TextField;
}
}//package orbitrunner__fla
Section 27
//EVERYTHING_46 (orbitrunner__fla.EVERYTHING_46)
package orbitrunner__fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import custom.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class EVERYTHING_46 extends MovieClip {
public var showbg;
public var completeLevels;
public var gcons;
public var numpl;
public var contbg2:MovieClip;
public var aa;
public var lvl;
public var trophy:MovieClip;
public var obj2;
public var starA;
public var qb2:MovieClip;
public var gamestage:MovieClip;
public var qb1:MovieClip;
public var failed;
public var a;
public var b;
public var c;
public var f;
public var g;
public var h;
public var i;
public var showtrails;
public var d;
public var qb3:MovieClip;
public var q;
public var leveltxt:TextField;
public var t;
public var u;
public var snide;
public var newxyoffset;
public var k;
public var r;
public var j;
public var lvlc;
public var bb;
public var s;
public var failtxt:TextField;
public var offscreen;
public var v;
public var bd:BitmapData;
public var cc;
public var ee;
public var faults;
public var e;
public var dd;
public var so;
public var stageborder:MovieClip;
public var numstars;
public var prelevel;
public var failtext2;
public var lineA;
public var bgs;
public var gamerect;
public var subts;
public var infotext:MovieClip;
public var gg;
public var lvls;
public var ff;
public var mouseDown;
public var texts;
public var contbg:MovieClip;
public var linecols;
public var starysp;
public var timertxt:TextField;
public var textalpha;
public var obj;
public var premousex;
public var exit;
public var ii;
public var bgpic:MovieClip;
public var numlvls;
public var plsA;
public var hh;
public var soundon;
public var showmouseefx;
public var offscreengravityoff;
public var cont1:MovieClip;
public var starxsp;
public var cont2:MovieClip;
public var rstart;
public var z:uint;
public var endgame;
public var faultsLost:Number;
public var jj;
public var failtext;
public var premousey;
public var begintext;
public var quickgame;
public var time;
public var gameon;
public var plcols;
public var kk;
public var collisions;
public var tb1:MovieClip;
public var tb2:MovieClip;
public var bmp:Bitmap;
public var endlevel:MovieClip;
public var showstars;
public var numbgs;
public var introtext;
public var screenx;
public var screeny;
public var keyDown:Array;
public var tcons;
public var pl0:MovieClip;
public var starangle;
public var pl0efx:MovieClip;
public var expA;
public var savestring;
public var timeBegin:Number;
public var timeron;
public var mouseactive;
public var flash:MovieClip;
public var dragmouse;
public function EVERYTHING_46(){
addFrameScript(0, frame1);
}
public function gotolevel(_arg1){
var var1 = _arg1;
if (endgame == 0){
try {
if (lvls[var1][0]){
removestars();
if (showstars == 1){
genstars();
};
removeplanets();
lvl = var1;
setplanets();
flash.gotoAndPlay(2);
};
} catch(e) {
cleardata();
endgamefunc();
trace();
};
};
}
public function qbclick(_arg1:MouseEvent, _arg2):void{
if (_arg2 == 1){
this.quality = 0;
};
if (_arg2 == 2){
this.quality = 1;
};
if (_arg2 == 3){
this.quality = 2;
};
setquality();
}
public function gobutton(){
if (endgame == 0){
if (prelevel == 1){
prelevel = 0;
gameon = 1;
bd.fillRect(bd.rect, 0);
time = (time - 0.1);
if (soundon == 1){
this.playsfx(4);
};
};
};
}
public function mouseUpFunction(_arg1){
mouseDown = false;
}
public function disthyp(_arg1, _arg2){
return (Math.sqrt((Math.pow(_arg1, 2) + Math.pow(_arg2, 2))));
}
public function ri(_arg1, _arg2){
if (_arg1 == _arg2){
return (_arg1);
};
return ((_arg1 + int((((Math.random() * _arg2) - _arg1) + 1))));
}
public function setquality(){
if (this.quality == 0){
stage.quality = StageQuality.LOW;
};
if (this.quality == 1){
stage.quality = StageQuality.MEDIUM;
};
if (this.quality == 2){
stage.quality = StageQuality.HIGH;
};
}
public function bover(_arg1:MouseEvent, _arg2):void{
_arg2.gotoAndStop(2);
}
public function removestars(){
q = 0;
while (q < starA.length) {
contbg.removeChild(starA[q]);
q++;
};
starA = [];
}
public function atan2(_arg1, _arg2){
if (_arg2 >= 0){
return (Math.atan((_arg1 / _arg2)));
};
return ((Math.atan((_arg1 / _arg2)) + Math.PI));
}
public function keyDownFunction(_arg1){
if ((((_arg1.keyCode == 81)) && ((keyDown[81] == false)))){
if ((((prelevel == 1)) && ((gameon == 0)))){
exit = 1;
pl0.stopDrag();
gotomenu2();
};
};
if ((((_arg1.keyCode == 32)) && ((keyDown[32] == false)))){
gobutton();
};
keyDown[_arg1.keyCode] = true;
}
public function show1dec(_arg1){
_arg1 = (Math.round((10 * _arg1)) / 10);
t = _arg1;
if (Math.round(_arg1) == _arg1){
t = (t + ".0");
};
return (t);
}
public function savedata(_arg1){
so.data.faults = faults;
so.data.lvl = _arg1;
}
public function oefplanets(_arg1){
var _local2:exp1;
if ((((endgame == 0)) && ((exit == 0)))){
pl0efx.rotation = (pl0efx.rotation - 6);
if ((((prelevel == 0)) && ((gameon == 1)))){
if (infotext.alpha > 0){
infotext.alpha = (infotext.alpha - 0.1);
};
};
if ((((((prelevel == 0)) && ((gameon == 0)))) && ((failed == 1)))){
if (infotext.alpha < textalpha){
infotext.alpha = (infotext.alpha + 0.25);
};
if (infotext.alpha > textalpha){
infotext.alpha = textalpha;
};
};
pl0.xx = pl0.x;
pl0.yy = pl0.y;
if (time < 0){
time = 0;
};
if ((((prelevel == 1)) || ((gameon == 1)))){
q = 1;
while (q <= numpl) {
obj = plsA[q];
obj.srot = Math.atan(((obj.y - mouseY) / (obj.x - mouseX)));
obj.srot = (obj.srot * (180 / Math.PI));
if ((obj.x - mouseX) < 0){
obj.srot = (obj.srot + 180);
};
obj.shade.rotation = (obj.srot + 90);
q++;
};
};
if (gameon == 1){
timertxt.text = (("Time Left: " + show1dec(time)) + ri(0, 9));
plsA[0].gfx.rotation = (plsA[0].gfx.rotation + 0.5);
q = 1;
while (q <= numpl) {
obj = plsA[q];
if (obj.removed == 0){
if (gamestage.hitTestPoint(obj.x, obj.y)){
obj.onstage = 1;
} else {
if ((((obj.onstage == 1)) && ((offscreen == 1)))){
obj.gfx.width = 2;
obj.gfx.height = 2;
obj.gotoAndStop(2);
levelfailure();
showfailtext(2);
if (soundon == 1){
this.playsfx(4);
};
};
obj.onstage = 0;
};
};
q++;
};
q = 1;
while (q <= numpl) {
obj = plsA[q];
if (obj.removed == 0){
obj.xx = (obj.xx + ((obj.xsp * tcons) + (((tcons * tcons) * obj.xac) / 2)));
obj.yy = (obj.yy + ((obj.ysp * tcons) + (((tcons * tcons) * obj.yac) / 2)));
obj.x = (Math.round((obj.xx * 10)) / 10);
obj.y = (Math.round((obj.yy * 10)) / 10);
if (showtrails == 1){
Raster.aaLine(bd, obj.xxold, obj.yyold, obj.x, obj.y, obj.linecol);
};
obj.gfx.rotation = (obj.gfx.rotation + (disthyp(obj.xsp, obj.ysp) * obj.rotmult));
obj.xxold = obj.x;
obj.yyold = obj.y;
};
q++;
};
q = 1;
while (q <= numpl) {
obj = plsA[q];
if (obj.removed == 0){
obj.xsp2 = (obj.xsp + ((tcons * obj.xac) / 2));
obj.ysp2 = (obj.ysp + ((tcons * obj.yac) / 2));
obj.xac = 0;
obj.yac = 0;
r = rstart;
while (r <= numpl) {
if (r !== q){
if ((((((r > 0)) || ((((((r == 0)) && ((obj.onstage == 1)))) && ((offscreengravityoff == 1)))))) || ((offscreengravityoff == 0)))){
obj2 = plsA[r];
if (obj2.removed == 0){
obj.dx = (obj.xx - obj2.xx);
obj.dy = (obj.yy - obj2.yy);
obj.ang = Math.atan((obj.dy / obj.dx));
if (obj.dx < 0){
obj.ang = (obj.ang + Math.PI);
};
obj.dist = distpts(obj.xx, obj.yy, obj2.xx, obj2.yy);
if (r == 0){
};
if (obj.dist < ((obj.rad + obj2.rad) - 1)){
obj.collide = 1;
};
if ((((obj.collide == 1)) && ((collisions == 1)))){
_local2 = new exp1();
_local2.x = obj.x;
_local2.y = obj.y;
_local2.scaleX = (((obj.rad + obj.rad) / 80) + 0.8);
_local2.scaleY = _local2.scaleX;
_local2.rotation = (30 * ri(1, 12));
this.addChild(_local2);
if (soundon == 1){
this.playsfx(3);
};
expA.push(_local2);
obj.removed = 1;
obj.gfx.width = 2;
obj.gfx.height = 2;
obj.gotoAndStop(2);
if (r == 0){
obj2.gotoAndStop(2);
} else {
obj2.gotoAndStop(2);
obj2.gfx.width = 2;
obj2.gfx.height = 2;
obj2.removed = 1;
};
levelfailure();
showfailtext(1);
r = (numpl + 1);
q = (numpl + 1);
} else {
if (r == 0){
};
obj.acc = ((obj2.ms * gcons) / Math.pow(obj.dist, 2));
obj.xac = (obj.xac + (-(Math.cos(obj.ang)) * obj.acc));
obj.yac = (obj.yac + (-(Math.sin(obj.ang)) * obj.acc));
if (q == 1){
};
};
};
};
};
r++;
};
if (obj.removed == 0){
obj.xsp = (obj.xsp2 + ((tcons * obj.xac) / 2));
obj.ysp = (obj.ysp2 + ((tcons * obj.yac) / 2));
obj.spang = Math.atan((obj.ysp / obj.xsp));
if (obj.spang < 0){
obj.spang = (obj.spang + Math.PI);
};
};
};
q++;
};
};
if (showmouseefx == 1){
pl0efx.x = pl0.x;
pl0efx.y = pl0.y;
};
if ((((prelevel == 1)) || ((gameon == 1)))){
if (dragmouse == 0){
pl0.x = mouseX;
pl0.y = mouseY;
};
};
};
}
public function endgamefunc2(){
bgpic.gotoAndStop((ri(1, numbgs) + 1));
flash.gotoAndPlay(2);
removeplanets();
if (showstars == 1){
genstars();
};
trophy.x = 250;
trophy.gotoAndPlay(2);
stageborder.gotoAndStop(3);
endgame = 1;
pl0.stopDrag();
pl0.x = -100;
pl0efx.x = -100;
infotext.alpha = textalpha;
infotext.textbox.infotext0.text = "";
infotext.textbox.infotext.text = "";
infotext.textbox.infotext2.text = "";
leveltxt.text = "GAME OVER";
timertxt.text = "Time Left: 0.00";
}
public function getScore():Number{
var score:Number;
var i:*;
score = 0;
trace(so.data.completeLevels.length);
for (i in so.data.completeLevels) {
trace("LEVEL ", i, so.data.completeLevels[i]);
score = (score + (lvls[so.data.completeLevels[i]][0][2] * 10));
trace("!!! ", lvls[so.data.completeLevels[i]][0][2]);
};
score = (score - (faultsLost * 10));
try {
if (time != 0){
score = (score + ((timeBegin - time) * 10));
};
} catch(e:Error) {
};
trace(score, faultsLost, timeBegin, time);
if (score < 0){
score = 0;
};
return (Math.round(score));
}
public function show2dec(_arg1){
_arg1 = (Math.round((100 * _arg1)) / 100);
t = _arg1;
if (Math.round(_arg1) == _arg1){
t = (t + ".00");
} else {
if (Math.round((_arg1 * 10)) == (_arg1 * 10)){
t = (t + "0");
};
};
return (t);
}
public function gotoURL(_arg1){
var request:URLRequest;
var var1 = _arg1;
request = new URLRequest(var1);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function genstars(){
var _local1:star1;
q = 0;
while (q <= numstars) {
_local1 = new star1();
_local1.x = ri(0, 500);
_local1.y = ri(60, 500);
_local1.moveratex = (1 / int(Math.sqrt((10 * ri(3, 200)))));
_local1.moveratey = ((((ri(0, 22) - 8) / 10) + 1) * _local1.moveratex);
_local1.ix = _local1.x;
_local1.iy = _local1.y;
_local1.scaleY = (ri(1, 10) / 38);
_local1.scaleX = _local1.scaleY;
_local1.alpha = (ri(40, 80) / 100);
_local1.moveratex = (_local1.moveratex * ((_local1.scaleY / 3) * 14));
_local1.moveratey = (_local1.moveratey * ((_local1.scaleY / 3) * 14));
if (ri(0, 20) == 20){
_local1.gotoAndStop(2);
_local1.rotation = (ri(0, 11) * 30);
_local1.moveratex = (_local1.moveratex / ri(1, 3));
_local1.moveratey = (_local1.moveratey / ri(1, 3));
_local1.alpha = (_local1.alpha - 0.1);
_local1.scaleX = (_local1.scaleX * ((ri(0, 4) / 10) + 1));
};
contbg.addChild(_local1);
starA.push(_local1);
q++;
};
}
public function gotomenu2(){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
removestars();
this.gotomenu();
}
public function getnewx(_arg1, _arg2, _arg3, _arg4){
if ((((_arg1 == 0)) || ((_arg1 == 2)))){
return (_arg2);
};
if (_arg1 == 1){
return ((((gamestage.width + gamestage.x) + newxyoffset) + _arg3));
};
if (_arg1 == 3){
return (((gamestage.x - newxyoffset) - _arg3));
};
if (_arg1 == -1){
return (_arg2);
};
}
public function setplanets(){
var _local1:pl;
if (showbg == 1){
bgpic.gotoAndStop(bgs[lvl]);
};
failed = 0;
endlevel.gotoAndStop(1);
infotext.textbox.infotext0.text = subts[MathUtil.ceil((lvl / 10))];
infotext.textbox.infotext.text = ((("LEVEL " + lvl) + ": ") + lvls[lvl][0][1]);
infotext.textbox.infotext.text = (infotext.textbox.infotext.text + ("\n" + texts[lvl]));
infotext.textbox.infotext2.text = begintext;
infotext.alpha = textalpha;
starangle = (30 * ri(1, 12));
q = 0;
while (q < expA.length) {
this.removeChild(expA[q]);
q++;
};
expA = [];
plsA = [];
lineA = [];
plcols = [];
time = lvls[lvl][0][2];
timeBegin = lvls[lvl][0][2];
if (dragmouse == 1){
pl0.startDrag(true, gamerect);
};
if (quickgame == 1){
time = (time / 4);
};
numpl = (lvls[lvl][1].length - 1);
q = 1;
while (q <= numpl) {
_local1 = new pl();
_local1.side = lvls[lvl][1][q][0];
_local1.xxyy = lvls[lvl][1][q][1];
_local1.depth = lvls[lvl][1][q][2];
_local1.xsp = lvls[lvl][1][q][3];
_local1.ysp = lvls[lvl][1][q][4];
_local1.ms = lvls[lvl][1][q][5];
if (lvls[lvl][1][q].length > 6){
_local1.col = lvls[lvl][1][q][6];
} else {
_local1.gotcol = 0;
while (_local1.gotcol == 0) {
_local1.col = ri(1, 16);
if (searchArray(plcols, _local1.col) == -1){
plcols.push(_local1.col);
_local1.gotcol = 1;
};
};
};
_local1.linecol = linecols[_local1.col];
_local1.rotmult = ((ri(0, 1) * 2) - 1);
_local1.gfx.gotoAndStop(_local1.col);
_local1.width = ((Math.pow(_local1.ms, (1 / 2)) * 20) + 7);
_local1.height = _local1.width;
_local1.rad = (_local1.width / 2);
_local1.x = getnewx(_local1.side, _local1.xxyy, _local1.depth, _local1.rad);
_local1.y = getnewy(_local1.side, _local1.xxyy, _local1.depth, _local1.rad);
_local1.gfx.rotation = (ri(0, 35) * 10);
if ((((((((_local1.x >= 0)) && ((_local1.x <= 500)))) && ((_local1.y >= 60)))) && ((_local1.y <= 500)))){
a = (_local1.x + (_local1.xsp * 30));
b = (_local1.y + (_local1.ysp * 30));
Raster.aaLine(bd, _local1.x, _local1.y, a, b, _local1.linecol);
};
_local1.xx = _local1.x;
_local1.yy = _local1.y;
_local1.xxold = _local1.xx;
_local1.yyold = _local1.yy;
_local1.xsp2 = _local1.xsp;
_local1.ysp2 = _local1.ysp;
_local1.xac = 0;
_local1.yac = 0;
_local1.onstage = 0;
_local1.collide = 0;
_local1.removed = 0;
plsA[q] = _local1;
cont2.addChild(_local1);
q++;
};
plsA[0] = pl0;
plsA[0].removed = 0;
plsA[0].ms = lvls[lvl][0][3];
plsA[0].gotoAndStop(1);
plsA[0].gfx.rotation = 0;
plsA[0].width = ((Math.pow(plsA[0].ms, (1 / 2)) * 20) + 7);
plsA[0].height = plsA[0].width;
plsA[0].rad = ((plsA[0].width / 2) - 2);
pl0efx.rotation = 0;
pl0efx.width = (22 + (plsA[0].width * 1.6));
pl0efx.height = pl0efx.width;
plsA[0].gfx.rotation = (30 * ri(1, 12));
leveltxt.text = ((("LEVEL " + lvl) + ": ") + lvls[lvl][0][1]);
timertxt.text = (("Time Left: " + show1dec(time)) + "0");
stageborder.gotoAndStop(1);
gameon = 0;
prelevel = 1;
premousex = mouseX;
premousey = mouseY;
if (mouseactive == 1){
rstart = 0;
} else {
rstart = 1;
};
}
public function getnewy(_arg1, _arg2, _arg3, _arg4){
if ((((_arg1 == 1)) || ((_arg1 == 3)))){
return (_arg2);
};
if (_arg1 == 2){
return ((((gamestage.height + gamestage.y) + newxyoffset) + _arg3));
};
if (_arg1 == 0){
return (((gamestage.y - newxyoffset) - _arg3));
};
if (_arg1 == -1){
return (_arg3);
};
}
public function timerHandler(_arg1:TimerEvent){
if (timeron == 1){
if ((((gameon == 1)) && ((endgame == 0)))){
time = (time - 0.1);
gamestage.nextFrame();
};
if ((((time <= 0)) && ((gameon == 1)))){
levelcomplete();
};
};
}
public function timer(){
var _local1:Timer;
_local1 = new Timer(100, 0);
_local1.addEventListener("timer", timerHandler);
_local1.start();
}
public function keyUpFunction(_arg1){
keyDown[_arg1.keyCode] = false;
}
public function showfailtext(_arg1){
failed = 1;
if (_arg1 == 1){
a = ri(0, (failtext.length - 1));
infotext.textbox.infotext.text = failtext[a];
};
if (_arg1 == 2){
a = ri(0, (failtext2.length - 1));
infotext.textbox.infotext.text = failtext2[a];
};
infotext.textbox.infotext2.text = "";
infotext.textbox.infotext0.text = "";
infotext.alpha = 0;
}
public function levelcomplete(){
timertxt.text = "Time Left: 0.00";
gameon = 0;
stageborder.gotoAndStop(3);
endlevel.textholder.textbox.text = "LEVEL COMPLETE!";
endlevel.cool = true;
endlevel.gotoAndPlay(2);
endlevel.lvl = (lvl + 1);
pl0.stopDrag();
if (soundon == 1){
this.playsfx(1);
};
if (lvl == 1){
so.clear();
so.data.faults = null;
so.data.lvl = null;
so.data.completeLevels = new Array();
so.data.skipLevel = 5;
};
so.data.completeLevels[lvl] = lvl;
try {
if (lvls[(lvl + 1)][0]){
savedata((lvl + 1));
};
} catch(e) {
savedata(lvl);
};
}
public function removeplanets(){
q = 1;
while (q <= numpl) {
cont2.removeChild(plsA[q]);
q++;
};
bd.fillRect(bd.rect, 0);
plsA = [];
lineA = [];
}
public function cleardata(){
so.clear();
so.data.faults = null;
so.data.lvl = null;
so.data.completeLevels = new Array();
so.data.skipLevel = 5;
}
function frame1(){
quickgame = 0;
this.quality = 0;
showtrails = 1;
showbg = 1;
showstars = 1;
soundon = 1;
showmouseefx = 1;
if (showmouseefx == 0){
pl0efx.x = -100;
};
dragmouse = 1;
snide = 1;
collisions = 1;
offscreen = 1;
timeron = 1;
offscreengravityoff = 1;
faults = 0;
if (this.targfaults !== 0){
faults = this.targfaults;
};
if (this.targlevel !== 1){
lvl = this.targlevel;
} else {
lvl = 1;
};
gcons = 400;
tcons = 1.5;
exit = 0;
setquality();
stage.quality = StageQuality.HIGH;
qb1.textbox.text = "L";
qb2.textbox.text = "M";
qb3.textbox.text = "H";
EventManager.addEvent(qb1, MouseEvent.CLICK, qbclick, 1);
EventManager.addEvent(qb2, MouseEvent.CLICK, qbclick, 2);
EventManager.addEvent(qb3, MouseEvent.CLICK, qbclick, 3);
q = 1;
while (q <= 3) {
EventManager.addEvent(this[("qb" + q)], MouseEvent.ROLL_OVER, bover, this[("qb" + q)]);
EventManager.addEvent(this[("qb" + q)], MouseEvent.ROLL_OUT, bout, this[("qb" + q)]);
q++;
};
tb1.textbox.text = "TRAILS";
tb2.textbox.text = "SOUND";
EventManager.addEvent(tb1, MouseEvent.CLICK, tbclick, 1, tb1);
EventManager.addEvent(tb2, MouseEvent.CLICK, tbclick, 2, tb2);
EventManager.addEvent(tb1, MouseEvent.ROLL_OVER, bover, tb1);
EventManager.addEvent(tb1, MouseEvent.ROLL_OUT, bout, tb1);
EventManager.addEvent(tb2, MouseEvent.ROLL_OVER, bover, tb2);
EventManager.addEvent(tb2, MouseEvent.ROLL_OUT, bout, tb2);
introtext = "Now for the poignant introduction. The Sun's job is not an easy one. Our neighborly flaming gas ball must govern the eternal path of the planet we call home. To coax weighty rocks with a gentle tug of an imaginary string, to persuade the trajectories of its subjects with a universal force, and most of all, to preserve the life itself that thrives upon these planetary shelters. This is the duty of our Sun. This is the task that must be fulfilled. Perhaps it is suitable to bestow this honor upon a god. Alas, there is only one such god. The Sun God.";
keyDown = new Array();
q = 48;
while (q <= 122) {
keyDown[q] = false;
q++;
};
keyDown[32] = false;
mouseDown = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpFunction);
this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownFunction);
this.addEventListener(MouseEvent.MOUSE_UP, mouseUpFunction);
gamerect = new Rectangle(gamestage.x, gamestage.y, gamestage.width, gamestage.height);
plsA = new Array();
lineA = new Array();
expA = new Array();
starA = new Array();
mouseactive = 1;
screenx = 500;
screeny = 500;
savestring = "orbitrunnersave";
so = SharedObject.getLocal(savestring);
newxyoffset = 20;
numstars = 250;
if (showstars == 1){
genstars();
};
this.addEventListener(Event.ENTER_FRAME, staroef);
linecols = new Array();
linecols[0] = 0xFFFFFF;
linecols[1] = 0xFF0000;
linecols[2] = 0xFF6600;
linecols[3] = 0xFFAA00;
linecols[4] = 0xFFFF00;
linecols[5] = 0xFF00;
linecols[6] = 65433;
linecols[7] = 39423;
linecols[8] = 3355647;
linecols[9] = 26316;
linecols[10] = 0xFF00FF;
linecols[11] = 0xFFFFFF;
linecols[12] = 12290116;
linecols[13] = 4491519;
linecols[14] = 16724991;
linecols[15] = 11184844;
linecols[16] = 13417301;
linecols[17] = 39423;
linecols[18] = 3355647;
linecols[19] = 0x6600FF;
linecols[20] = 0xFF00FF;
bd = new BitmapData(500, 500, true, 0);
bmp = new Bitmap(bd);
contbg2.addChild(bmp);
subts = new Array();
subts[1] = "LEVELS 1-10: Basic Levels";
subts[2] = "LEVELS 11-20: Medium Levels";
subts[3] = "LEVELS 21-30: Tough Levels";
subts[4] = "You made it.";
faultsLost = 0;
timeBegin = 0;
completeLevels = new Array();
texts = new Array();
lvls = new Array();
bgs = new Array();
numbgs = 5;
numlvls = 40;
q = 0;
while (q <= numlvls) {
lvls[q] = new Array();
lvls[q][1] = new Array();
lvls[q][1].push(0);
bgs[q] = (((q + 1) % numbgs) + 2);
texts[q] = " ";
lvlc = 1;
if (q == lvlc){
lvls[q][0] = new Array(0, "Newbie", 14, 1);
lvls[q][1].push(new Array(2, 100, -200, 0, -1.5, 0.8));
texts[q] = "Use your mouse to control the Sun! To advance to the next level, keep control of the planet for a certain time (shown above). The first ten levels let you get used to the gravitation system. For this level, you can leave the Sun in the middle of the screen to get the planet to orbit you.";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Pair", 15, 2);
lvls[q][1].push(new Array(0, 290, -70, -2, 0, 0.15));
lvls[q][1].push(new Array(2, 270, -100, 2, 0, 0.15));
texts[q] = "Try two planets. Remember that each planet has its own gravitational field, so planets can pull on each other too. And again, you don't have to move around too much in this level.";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Heavyset", 10, 20);
lvls[q][1].push(new Array(1, 290, -120, 0, -7.2, 0.05));
lvls[q][1].push(new Array(3, 230, -120, 0, 7.2, 0.05));
texts[q] = "The Sun's size tells you its mass, which tells you how powerful its gravitational force is. As such, these planets need a lot more speed to maintain their orbits.";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Satellite", 14, 1);
lvls[q][1].push(new Array(0, 110, -220, 0, 1.6, 0.5));
lvls[q][1].push(new Array(0, 135, -220, 0, 4.42, 0));
texts[q] = "Now we have a planet and a moon. Make sure the two don't collide!";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Cloverpass", 10, 2);
r = 140;
s = 2;
a = -1;
while (a <= 2) {
k = (((a * Math.PI) / 2) - 0.3);
i = ((r * Math.cos(k)) + 0xFF);
j = ((r * Math.sin(k)) + 290);
u = (s * Math.cos(((k + (Math.PI / 2)) + 0)));
v = (s * Math.sin(((k + (Math.PI / 2)) + 0)));
b = 0.01;
if (a == 0){
};
c = (((a + 2) * 2) - 1);
lvls[q][1].push(new Array(-1, i, j, u, v, b));
a++;
};
texts[q] = "Find the center...";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Sneak Attack", 14, 1);
lvls[q][1].push(new Array(3, 120, 15, 2, 0, 0.5));
texts[q] = "Planets can also come from off-screen! You'll need to move around to get them into orbit, or else they'll go hyperbola on you.";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Sneak Attack Part Deux", 14, 1);
lvls[q][1].push(new Array(1, 425, 10, -1.5, 0, 0.5));
lvls[q][1].push(new Array(1, 400, 10, -4.32, 0, 0));
texts[q] = "Now there's a moon tagging along. Be a bit more careful this time...";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Binary", 14, 1);
lvls[q][1].push(new Array(3, 125, -50, 0.6, 0, 0.25));
lvls[q][1].push(new Array(3, 155, -50, 3.5, 0, 0.4));
texts[q] = "These two like to stick together. But they'll still orbit you.";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Two Moons", 14, 1);
lvls[q][1].push(new Array(0, 400, 15, 0, 1.5, 0.5));
lvls[q][1].push(new Array(0, 375, 15, 0, 4.32, 0));
lvls[q][1].push(new Array(0, 425, 15, 0, -1.32, 0));
texts[q] = "A planet can have more than one moon. If the Sun is too close, you might pull the moons toward each other. And we don't want that.";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Brush With Death", 6, 1);
lvls[q][1].push(new Array(1, 225, -40, -2, 0, 0.5));
lvls[q][1].push(new Array(3, 275, -40, 3, 0, 0.5));
texts[q] = "Oh noes! They's gonna hit!";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Gentle Giants", 10, 1);
lvls[q][1].push(new Array(-1, 250, 230, 2, 0, 40));
lvls[q][1].push(new Array(-1, 250, 350, -10, 0, 4));
texts[q] = "Whoa, there!";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Incoming!", 9, 1);
lvls[q][1].push(new Array(-1, 100, 220, 0, 1.6, 0.5));
lvls[q][1].push(new Array(-1, 125, 220, 0, 4.42, 0));
lvls[q][1].push(new Array(-1, 1000, 50, -4.8, 1.3, 0.2));
texts[q] = "2 o'clock.";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Follow Thru", 8, 0.8);
lvls[q][1].push(new Array(-1, 0, 400, 2, 0, 0.4));
lvls[q][1].push(new Array(-1, 130, 390, 2, 0, 0.3));
lvls[q][1].push(new Array(-1, 260, 380, 2, 0, 0.3));
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Fly By", 9, 1);
lvls[q][1].push(new Array(-1, 400, 300, -1, 2, 0.3));
lvls[q][1].push(new Array(-1, -1000, 200, 4.5, 0, 0.1));
texts[q] = "Wait for it... Wait for it... Then get behind it to slow it down...";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Blitz", 3, 1);
lvls[q][1].push(new Array(0, 150, 0, 0, 2, 0.5));
lvls[q][1].push(new Array(1, 210, 0, -2, 0, 0.5));
lvls[q][1].push(new Array(2, 350, 0, 0, -2, 0.5));
lvls[q][1].push(new Array(3, 350, 0, 2, 0, 0.5));
texts[q] = "Quick! Just three seconds!";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Disarray", 5, 1);
lvls[q][1].push(new Array(-1, 100, 250, 0, 1, 0.5));
lvls[q][1].push(new Array(-1, 300, 150, 1, 2, 1));
lvls[q][1].push(new Array(-1, 250, 370, 1, -1.8, 0.2));
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Imminent", 8, 1.3);
lvls[q][1].push(new Array(-1, 500, 250, -2, 0.1, 0.5));
lvls[q][1].push(new Array(-1, 240, 500, 0.1, -2, 0.8));
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Askew", 6, 1);
lvls[q][1].push(new Array(-1, 270, 300, 0, -1.6, 0.5));
lvls[q][1].push(new Array(-1, 20, 200, 1, 2, 1));
lvls[q][1].push(new Array(-1, 320, 420, 1, -1.8, 0.2));
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Many Moons", 8, 1);
f = 100;
g = 288;
i = 0.5;
j = 0;
b = 0.7;
lvls[q][1].push(new Array(-1, f, g, i, j, b));
a = (Math.atan((j / i)) + (Math.PI / 2));
r = 1;
while (r < 6) {
d = ((18 * r) + 10);
s = -(Math.sqrt(MathUtil.abs(((gcons * b) / d))));
ff = ((Math.cos(a) * d) + f);
gg = ((Math.sin(a) * d) + g);
ii = ((Math.cos((a + (Math.PI / 2))) * s) + i);
jj = ((Math.sin((a + (Math.PI / 2))) * s) + j);
lvls[q][1].push(new Array(-1, ff, gg, ii, jj, 0));
texts[q] = "";
r++;
};
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Collision Course", 7, 1);
lvls[q][1].push(new Array(2, 100, 20, 1, -2, 0.5));
lvls[q][1].push(new Array(2, 135, 38, 2, -4, 0));
lvls[q][1].push(new Array(0, 80, 20, 1, 1.8, 1));
texts[q] = "Watch out, these are getting harder...";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Rendezvous", 6, 1);
f = 400;
g = 120;
i = -0.5;
j = 1;
b = 0.4;
d = 28;
lvls[q][1].push(new Array(-1, f, g, i, j, b));
a = (Math.atan((j / i)) + (Math.PI / 2));
s = -(Math.sqrt(MathUtil.abs(((gcons * b) / d))));
ff = ((Math.cos(a) * d) + f);
gg = ((Math.sin(a) * d) + g);
ii = ((Math.cos((a + (Math.PI / 2))) * s) + i);
jj = ((Math.sin((a + (Math.PI / 2))) * s) + j);
lvls[q][1].push(new Array(-1, ff, gg, ii, jj, 0));
f = 100;
g = 440;
i = 0.5;
j = -1;
b = 0.4;
d = 28;
lvls[q][1].push(new Array(-1, f, g, i, j, b));
a = (Math.atan((j / i)) + (Math.PI / 2));
s = -(Math.sqrt(MathUtil.abs(((gcons * b) / d))));
ff = ((Math.cos(a) * d) + f);
gg = ((Math.sin(a) * d) + g);
ii = ((Math.cos((a + (Math.PI / 2))) * s) + i);
jj = ((Math.sin((a + (Math.PI / 2))) * s) + j);
lvls[q][1].push(new Array(-1, ff, gg, ii, jj, 0));
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Outburst", 8, 0.5);
r = 20;
s = 2.5;
a = -1;
while (a <= 2) {
k = (((a * Math.PI) / 2) - 0.7);
i = ((r * Math.cos(k)) + 245);
j = ((r * Math.sin(k)) + 270);
u = (s * Math.cos((k + 1)));
v = (s * Math.sin((k + 1)));
b = (0.1 + (0.02 * a));
lvls[q][1].push(new Array(-1, i, j, u, v, b));
a++;
};
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Entropy", 7, 1.2);
lvls[q][1].push(new Array(-1, 400, 300, -0.5, 1.7, 0.6));
lvls[q][1].push(new Array(-1, 180, 450, 1, -2, 1.1));
lvls[q][1].push(new Array(-1, 70, 250, 2, 1, 0.25));
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Hairpin", 10, 0.5);
g = 450;
s = -1;
b = 0.01;
lvls[q][1].push(new Array(-1, 50, g, 0, s, b));
lvls[q][1].push(new Array(-1, 100, g, 0, s, b));
lvls[q][1].push(new Array(-1, 150, g, 0, s, b));
lvls[q][1].push(new Array(-1, 200, g, 0, s, b));
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Impending Doom", 6, 1);
lvls[q][1].push(new Array(-1, 50, 180, 1, 0.8, 0.1));
f = 200;
g = 800;
i = 0.1;
j = -4;
b = 1.2;
d = 30;
lvls[q][1].push(new Array(-1, f, g, i, j, b));
a = (Math.atan((j / i)) + (Math.PI / 2));
s = -(Math.sqrt(MathUtil.abs(((gcons * b) / d))));
ff = ((Math.cos(a) * d) + f);
gg = ((Math.sin(a) * d) + g);
ii = ((Math.cos((a + (Math.PI / 2))) * s) + i);
jj = ((Math.sin((a + (Math.PI / 2))) * s) + j);
lvls[q][1].push(new Array(-1, ff, gg, ii, jj, 0));
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Goliath", 5, 5);
lvls[q][1].push(new Array(-1, 50, 480, 0, 0, 10));
lvls[q][1].push(new Array(-1, 120, 380, 3, -2, 1));
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Followers", 7, 5);
f = 400;
g = 120;
i = -0.5;
j = 1;
b = 0.6;
d = 16;
lvls[q][1].push(new Array(-1, f, g, i, j, b));
a = 2;
r = 1;
while (r <= 3) {
d = (d + 10);
s = -(Math.sqrt(MathUtil.abs(((gcons * b) / d))));
a = (a + ((2 * Math.PI) / 3));
ff = ((Math.cos(a) * d) + f);
gg = ((Math.sin(a) * d) + g);
ii = ((Math.cos((a + (Math.PI / 2))) * s) + i);
jj = ((Math.sin((a + (Math.PI / 2))) * s) + j);
lvls[q][1].push(new Array(-1, ff, gg, ii, jj, 0));
r++;
};
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Streaks", 11, 2);
s = 2;
f = 290;
g = 50;
a = 0;
while (a <= 3) {
f = (f + 28);
g = (g - 70);
s = (s - 0.3);
u = 0;
v = s;
b = 0.01;
lvls[q][1].push(new Array(-1, f, g, u, v, b));
a++;
};
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Escape", 6, 5);
lvls[q][1].push(new Array(-1, 380, 250, 1, -3.8, 0.8));
lvls[q][1].push(new Array(-1, 380, 380, 0, 0, 5));
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Triplets", 5, 0.7);
f = -1.5;
g = -0.2;
r = 40;
s = 1.6;
b = 0.5;
a = 0;
while (a <= 2) {
k = ((((a * 2) * Math.PI) / 3) - 0.1);
i = ((r * Math.cos(k)) + 430);
j = ((r * Math.sin(k)) + 400);
u = ((s * Math.cos((k + (Math.PI / 2)))) + f);
v = ((s * Math.sin((k + (Math.PI / 2)))) + g);
lvls[q][1].push(new Array(-1, i, j, u, v, b));
a++;
};
texts[q] = "";
};
lvlc++;
if (q == lvlc){
lvls[q][0] = new Array(0, "Victory Lap", 10, 1);
f = 250;
g = 280;
r = 110;
s = 1.55;
a = -1;
while (a <= 3) {
k = (((2 * a) * Math.PI) / 5);
i = ((r * Math.cos(k)) + f);
j = ((r * Math.sin(k)) + g);
u = (s * Math.cos(((k + (Math.PI / 2)) + 0)));
v = (s * Math.sin(((k + (Math.PI / 2)) + 0)));
b = 0.001;
c = ((a + 2) * 2);
lvls[q][1].push(new Array(-1, i, j, u, v, b, c));
a++;
};
r = 140;
s = 1.78;
a = -1;
while (a <= 3) {
k = ((((2 * a) * Math.PI) / 5) + 0.1);
i = ((r * Math.cos(k)) + f);
j = ((r * Math.sin(k)) + g);
u = (s * Math.cos(((k - (Math.PI / 2)) + 0)));
v = (s * Math.sin(((k - (Math.PI / 2)) + 0)));
b = 0;
c = (((a + 2) * 2) - 1);
lvls[q][1].push(new Array(-1, i, j, u, v, b, c));
a++;
};
texts[q] = "How pretty.";
};
q++;
};
gameon = 1;
prelevel = 0;
endgame = 0;
timer();
textalpha = 0.85;
failtxt.text = ("Faults: " + faults);
begintext = "Press Q to exit to the main menu. \n(Your progress will be saved.)";
begintext = (begintext + "\n\nCLICK or press SPACE to begin.");
failtext = new Array();
failtext.push("Fault: Collision.");
failtext2 = new Array();
failtext2.push("Fault: Out of Bounds");
plcols = new Array();
endlevel.gotolevel = gotolevel;
setplanets();
this.addEventListener(Event.ENTER_FRAME, oefplanets);
if (((!((so.data.faults == null))) && (!((so.data.lvl == null))))){
completeLevels = new Array();
trace(so.data.lvl);
z = 1;
while (z < Number(so.data.lvl)) {
completeLevels[z] = z;
trace("INI ", z);
z++;
};
faultsLost = so.data.faults;
trace("INI faultsLost", faultsLost);
};
}
public function distpts(_arg1, _arg2, _arg3, _arg4){
return (Math.sqrt((Math.pow((_arg1 - _arg3), 2) + Math.pow((_arg2 - _arg4), 2))));
}
public function searchArray(_arg1, _arg2){
i = 0;
while (i < _arg1.length) {
if (_arg1[i] == _arg2){
return (i);
};
i++;
};
return (-1);
}
public function endgamefunc(){
bgpic.gotoAndStop((ri(1, numbgs) + 1));
flash.gotoAndPlay(2);
removeplanets();
if (showstars == 1){
genstars();
};
trophy.x = 250;
trophy.gotoAndPlay(2);
stageborder.gotoAndStop(3);
endgame = 1;
pl0.stopDrag();
pl0.x = -100;
pl0efx.x = -100;
infotext.alpha = textalpha;
infotext.textbox.infotext0.text = "";
infotext.textbox.infotext.text = "";
infotext.textbox.infotext2.text = "";
leveltxt.text = "CONGRATULATIONS";
timertxt.text = "Time Left: 0.00";
}
public function levelfailure(){
stageborder.gotoAndStop(2);
endlevel.textholder.textbox.text = "Oops !!!";
endlevel.cool = false;
gameon = 0;
endlevel.gotoAndPlay(3);
endlevel.lvl = lvl;
faults++;
faultsLost = faults;
pl0.stopDrag();
failtxt.text = ("Faults: " + faults);
if (lvl !== 1){
savedata(lvl);
};
}
public function skipLevelFunc(){
so.data.skipLevel--;
trace((("skipLevelFunc " + lvl) + 1));
try {
if (lvls[(lvl + 1)][0]){
savedata((lvl + 1));
};
} catch(e) {
savedata(lvl);
};
endlevel.lvl = (lvl + 1);
}
public function staroef(_arg1){
var _local2:*;
bgpic.x = (((mouseX - 250) / 20) + 250);
bgpic.y = (((mouseY - 280) / 20) + 280);
if (starangle){
starxsp = (Math.cos(starangle) / 2);
starysp = (Math.sin(starangle) / 2);
};
q = 0;
while (q < starA.length) {
_local2 = starA[q];
_local2.x = (((mouseX - 250) * _local2.moveratex) + _local2.ix);
_local2.y = (((mouseY - 280) * _local2.moveratey) + _local2.iy);
_local2.ix = (_local2.ix + ((_local2.moveratex * starxsp) * 10));
_local2.iy = (_local2.iy + ((_local2.moveratey * starysp) * 10));
if ((((starxsp > 0)) && ((_local2.x > 510)))){
_local2.ix = -10;
};
if ((((starxsp <= 0)) && ((_local2.x < -10)))){
_local2.ix = 510;
};
if ((((starysp > 0)) && ((_local2.y > 510)))){
_local2.iy = 50;
};
if ((((starysp <= 0)) && ((_local2.y < 50)))){
_local2.iy = 510;
};
q++;
};
}
public function bout(_arg1:MouseEvent, _arg2):void{
_arg2.gotoAndStop(1);
}
public function tbclick(_arg1:MouseEvent, _arg2, _arg3):void{
if (_arg2 == 1){
if (showtrails == 1){
showtrails = 0;
_arg3.red.alpha = 1;
} else {
if (showtrails == 0){
showtrails = 1;
_arg3.red.alpha = 0;
};
};
};
if (_arg2 == 2){
if (soundon == 1){
soundon = 0;
_arg3.red.alpha = 1;
this.stopmusic();
} else {
if (soundon == 0){
soundon = 1;
_arg3.red.alpha = 0;
this.playmusic();
};
};
};
}
public function mouseDownFunction(_arg1){
if ((((mouseDown == false)) && (gamestage.hitTestPoint(mouseX, mouseY)))){
gobutton();
};
mouseDown = true;
}
public function sendscores(_arg1, _arg2){
var abrazor30Data:URLRequest;
var variables:URLVariables;
var verbs:Number;
var viper:String;
var loader:URLLoader;
var dataOnLoad:Function;
var var1 = _arg1;
var var2 = _arg2;
dataOnLoad = function (_arg1:Event){
};
abrazor30Data = new URLRequest("http://rankz.armorbot.com/submit/as3_v0.php");
abrazor30Data.method = URLRequestMethod.POST;
variables = new URLVariables();
variables.flashkey = "bUdqRUNwT1U=";
variables.SU0249 = "Mjc3MGolZSVhJW4lcw==";
variables.bmFtZTE = var1;
verbs = var2;
viper = (verbs + "Z");
variables.c2NvcmUx = viper.split("0").join("U");
variables.c2NvcmUx = variables.c2NvcmUx.split("").join("A");
variables.c2NvcmUx = variables.c2NvcmUx.split("AU").join("Y");
variables.c2NvcmUx = variables.c2NvcmUx.split("A1").join("B");
variables.c2NvcmUx = variables.c2NvcmUx.split(".").join("N");
abrazor30Data.data = variables;
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, dataOnLoad);
loader.load(abrazor30Data);
}
}
}//package orbitrunner__fla
Section 28
//flash_85 (orbitrunner__fla.flash_85)
package orbitrunner__fla {
import flash.display.*;
public dynamic class flash_85 extends MovieClip {
public function flash_85(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 29
//gamestage_54 (orbitrunner__fla.gamestage_54)
package orbitrunner__fla {
import flash.display.*;
public dynamic class gamestage_54 extends MovieClip {
public function gamestage_54(){
addFrameScript(0, frame1, 492, frame493);
}
function frame1(){
stop();
}
function frame493(){
gotoAndStop(1);
}
}
}//package orbitrunner__fla
Section 30
//gameZheroPreloader_95 (orbitrunner__fla.gameZheroPreloader_95)
package orbitrunner__fla {
import flash.display.*;
public dynamic class gameZheroPreloader_95 extends MovieClip {
public var pr:MovieClip;
public function gameZheroPreloader_95(){
addFrameScript(104, frame105);
}
function frame105(){
stop();
}
}
}//package orbitrunner__fla
Section 31
//infotext_58 (orbitrunner__fla.infotext_58)
package orbitrunner__fla {
import flash.display.*;
public dynamic class infotext_58 extends MovieClip {
public var textbox:MovieClip;
public function infotext_58(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 32
//MainTimeline (orbitrunner__fla.MainTimeline)
package orbitrunner__fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import custom.*;
import com.gamezhero.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import com.gamezhero.gamezhero.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var gotolevel;
public var gotlvl;
public var gotfaults;
public var music:darkdreams;
public var bbs;
public var starA;
public var sf1:sfx1;
public var sf2:sfx2;
public var youtubeBtn:SimpleButton;
public var gamezheroBtn:SimpleButton;
public var sc:SoundChannel;
public var numbs;
public var bs;
public var sf4:sfx4;
public var a;
public var sf;
public var c;
public var arr;
public var b;
public var so;
public var m:MovieClip;
public var q;
public var s;
public var tx;
public var sf3:sfx3;
public var r;
public var faults;
public var numstars;
public var pro;
public var everything:MovieClip;
public var beiy;
public var continueok;
public var bset;
public var starysp;
public var starxsp;
public var whichbut;
public var proLibrary:ClassLoader;
public var cursor:MovieClip;
public var menu:MovieClip;
public var moreurl2;
public var menuon;
public var num;
public var isPlaying:Boolean;
public var proFlag:Boolean;
public var difficulty;
public var starangle;
public var savestring;
public var sc2:SoundChannel;
public var secok;
public var var1;
public var moreurl;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function loadErrorHandler(_arg1:Event):void{
}
public function ri(_arg1, _arg2){
return ((_arg1 + int((((Math.random() * _arg2) - _arg1) + 1))));
}
public function removestars(){
q = 0;
while (q < starA.length) {
menu.contbg.removeChild(starA[q]);
q++;
};
starA = [];
}
public function nextStep(_arg1:Event=null):void{
if (pro){
pro.stopPopUp();
};
stage.align = "";
this.gotoAndStop(2);
}
function frame3(){
everything.flash.gotoAndPlay(2);
everything.targlevel = gotolevel;
everything.targfaults = faults;
everything.savestring = savestring;
everything.playmusic = playmusic;
everything.stopmusic = stopmusic;
everything.playsfx = playsfx;
everything.gotomenu = gotomenu;
stop();
}
function frame2(){
(gamezheroBtn as SimpleButton).addEventListener(MouseEvent.CLICK, gamezhero1);
(youtubeBtn as SimpleButton).addEventListener(MouseEvent.CLICK, gamezhero2);
music = new darkdreams();
isPlaying = false;
playmusic();
sf = new Array();
sf1 = new sfx1();
sf2 = new sfx2();
sf3 = new sfx3();
sf4 = new sfx4();
sf[1] = sf1;
sf[2] = sf2;
sf[3] = sf3;
sf[4] = sf4;
stop();
cursor.x = mouseX;
cursor.y = mouseY;
cursor.startDrag();
var1 = 0;
menuon = 1;
bs = new Array();
bbs = new Array();
numbs = 5;
whichbut = 0;
bset = 1;
beiy = menu.buttonefx.y;
setbuttons();
tx = new Array();
tx[1] = "NEW GAME";
tx[2] = "CONTINUE";
tx[3] = "INSTRUCTIONS";
tx[4] = "MORE GAMES";
tx[5] = "TOP SCORE";
tx[7] = "BACK";
savestring = "orbitrunnersave";
so = SharedObject.getLocal(savestring);
if (so.data.lvl != undefined){
gotlvl = so.data.lvl;
gotfaults = so.data.faults;
tx[2] = (tx[2] + (((" (" + "LV.") + gotlvl) + ")"));
continueok = 1;
} else {
continueok = 0;
};
if (continueok == 0){
bs[2].blackcover.x = 0;
bs[2].gfx1.outline.alpha = 0;
bs[2].gfx2.outline.alpha = 0;
} else {
bs[2].blackcover.x = 400;
};
menu.buttonefx.width = (menu.buttonefx.width + 5);
q = 1;
while (q <= numbs) {
bs[q].gfx1.textbox.text = tx[q];
bs[q].textbox.text = tx[q];
q++;
};
bs[7].gfx1.textbox.text = tx[7];
bs[7].textbox.text = tx[7];
moreurl = "http://www.gamezhero.com/?utm_campaign=orbitrunner&utm_source=orbitrunner&utm_medium=main_menu";
moreurl2 = "http://www.gamezhero.com/topscore/orbitrunner/recent.html?utm_campaign=orbitrunner&utm_source=orbitrunner&utm_medium=top_score";
q = 1;
while (q <= numbs) {
if (((!((q === 2))) || ((((q == 2)) && ((continueok == 1)))))){
EventManager.addEvent(bs[q], MouseEvent.ROLL_OVER, buttonover, q, 1);
EventManager.addEvent(bs[q], MouseEvent.ROLL_OUT, buttonout, q, 1);
EventManager.addEvent(bs[q], MouseEvent.CLICK, buttonclick, q, 1);
};
q++;
};
EventManager.addEvent(bs[7], MouseEvent.ROLL_OVER, buttonover, 7, 2);
EventManager.addEvent(bs[7], MouseEvent.ROLL_OUT, buttonout, 7, 2);
EventManager.addEvent(bs[7], MouseEvent.CLICK, buttonclick, 7, 2);
starA = new Array();
numstars = 250;
this.addEventListener(Event.ENTER_FRAME, staroef);
}
function frame1(){
this.mask = (this["m"] as MovieClip);
secok = 1;
stop();
Security.allowDomain("gamezhero.com", "files.gamezhero.com", "eufiles.gamezhero.com", "*.gamezhero.com", "*", "*.*", "*.*.*");
stage.stageFocusRect = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
iniMainStage();
proFlag = false;
iniMainStage();
}
public function resetyh(){
arr = bs;
num = numbs;
q = 1;
while (q <= num) {
r = arr[q];
r.targy = r.iy;
r.targh = r.ih;
r.gfx1.alpha = 1;
q++;
};
}
public function playsfx(_arg1){
if (sf[_arg1]){
sc2 = sf[_arg1].play(0, 1);
};
}
public function classLoadedHandler(_arg1:Event):void{
var foo:Number;
var proClass:Class;
var e = _arg1;
foo = Number(root.loaderInfo.parameters["gamezhero_code"]);
try {
proClass = proLibrary.getClass("superPro3");
pro = new proClass(this, 1197710244855, foo, "orbitrunner");
} catch(e:Error) {
};
}
public function setbuttons(){
q = 1;
while (q <= numbs) {
bs[q] = menu.buttons[("b" + q)];
bs[q].targy = bs[q].y;
bs[q].iy = bs[q].y;
bs[q].targh = bs[q].height;
bs[q].ih = bs[q].height;
bs[q].y = (bs[q].y - 600);
trace(q, bs[q].targh);
q++;
};
bs[6] = menu.buttons.bw;
bs[6].targy = (bs[3].iy + 540);
bs[7] = menu.buttons.bb;
bs[7].targy = (bs[5].iy + 600);
q = 6;
while (q <= 7) {
bs[q].iy = bs[q].y;
bs[q].targh = bs[q].height;
bs[q].ih = bs[q].height;
q++;
};
}
public function iniPreloader():void{
var _local1:Object;
var _local2:GamePreloader;
_local1 = new Object();
_local1.game_name = "orbitrunner";
_local1.debug = false;
_local1.gamezhero_url = "http://www.gamezhero.com/?utm_campaign=orbitrunner&utm_source=orbitrunner&utm_medium=preloader";
_local1.gamezhero_menu = {Free Online Games @ Gamezhero.com:"http://www.gamezhero.com/?utm_campaign=orbitrunner&utm_source=orbitrunner&utm_medium=context_menu", Send To Friends:"http://www.gamezhero.com/sendtofriends/orbitrunner-games.html?utm_campaign=orbitrunner&utm_source=orbitrunner&utm_medium=send_to_friends_context_menu", Put This Game To Your Blog or Site:"http://www.gamezhero.com/freewebsitegames/orbitrunner-games.html?utm_campaign=orbitrunner&utm_source=orbitrunner&utm_medium=free_web_site_games_context"};
_local2 = new GamePreloader(this, _local1);
_local2.addEventListener(GamePreloader.finish, nextStep);
}
public function buttonover(_arg1:MouseEvent, _arg2, _arg3):void{
arr = bs;
num = numbs;
if ((((((menuon == 1)) && (!((_arg2 === 6))))) && ((bset == _arg3)))){
playsfx(4);
whichbut = _arg2;
arr[_arg2].gfx1.alpha = 0;
arr[_arg2].targh = (arr[_arg2].ih + 18);
arr[_arg2].bflash.gotoAndPlay(2);
menu.buttonefx.gotoAndStop(2);
if (_arg3 == 1){
q = 1;
while (q <= num) {
if (q !== _arg2){
if (q > _arg2){
arr[q].targy = (arr[q].iy + 28);
} else {
arr[q].targy = (arr[q].iy - 28);
};
};
q++;
};
};
};
}
public function buttonout(_arg1:MouseEvent, _arg2, _arg3):void{
arr = bs;
num = numbs;
if ((((menuon == 1)) && ((bset == _arg3)))){
whichbut = 0;
menu.buttonefx.gotoAndStop(1);
arr[_arg2].gfx1.alpha = 1;
arr[_arg2].targh = r.ih;
if (_arg3 == 1){
q = 1;
while (q <= num) {
r = arr[q];
r.targy = r.iy;
r.targh = r.ih;
q++;
};
};
};
}
public function gotoURL(_arg1){
var request:URLRequest;
var var1 = _arg1;
request = new URLRequest(var1);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function genstars(){
var _local1:star1;
q = 0;
while (q <= numstars) {
_local1 = new star1();
_local1.x = ri(0, 500);
_local1.y = ri(60, 500);
_local1.moveratex = (1 / int(Math.sqrt((10 * ri(3, 200)))));
_local1.moveratey = ((((ri(0, 22) - 8) / 10) + 1) * _local1.moveratex);
_local1.ix = _local1.x;
_local1.iy = _local1.y;
_local1.scaleY = ((ri(1, 10) / 2) / 14);
_local1.scaleX = _local1.scaleY;
_local1.alpha = (ri(40, 60) / 100);
_local1.moveratex = (_local1.moveratex * ((_local1.scaleY / 3) * 40));
_local1.moveratey = (_local1.moveratey * ((_local1.scaleY / 3) * 40));
if (ri(0, 20) == 20){
_local1.gotoAndStop(2);
_local1.rotation = (ri(0, 23) * 15);
_local1.moveratex = (_local1.moveratex / ri(1, 3));
_local1.moveratey = (_local1.moveratey / ri(1, 3));
_local1.alpha = (_local1.alpha - 0.1);
_local1.scaleX = (_local1.scaleX * ((ri(0, 4) / 10) + 1));
};
menu.contbg.addChild(_local1);
starA.push(_local1);
q++;
};
}
public function gotomenu(){
gotoAndPlay(2);
}
public function iniMainStage():void{
loadPro();
iniPreloader();
this.gotoAndStop(1);
}
public function resetyh2(){
arr = bs;
num = numbs;
r = arr[7];
r.targy = r.iy;
r.targh = r.ih;
r.gfx1.alpha = 1;
}
public function stopmusic(){
try {
sc.stop();
sc2.stop();
} catch(e) {
trace("Error Stop Music");
};
}
public function playmusic(){
stopmusic();
sc = music.play(0, 2500);
}
public function buttonclick(_arg1:MouseEvent, _arg2, _arg3):void{
if (_arg3 == 1){
if (_arg2 == 1){
faults = 0;
so.data.faults = null;
so.data.lvl = null;
so.data.completeLevels = new Array();
so.data.skipLevel = 5;
gotogame(0);
};
if (_arg2 == 2){
faults = gotfaults;
gotogame(gotlvl);
};
if (_arg2 == 3){
bs[6].gotoAndStop(1);
gotobset2();
};
if (_arg2 == 4){
gotoURL(moreurl);
};
if (_arg2 == 5){
gotoURL(moreurl2);
};
};
if (_arg3 == 2){
gotobset1();
};
playsfx(2);
}
public function gamezhero1(_arg1:Event=null){
gotoURL("http://www.gamezhero.com/?utm_campaign=orbitrunner&utm_source=orbitrunner&utm_medium=zorro_logo");
}
public function gamezhero2(_arg1:Event=null){
gotoURL("http://www.youtube.com/watch?v=hRUBzv4yUos");
}
public function staroef(_arg1){
var _local2:*;
if (starangle){
starxsp = (Math.cos(starangle) / 5);
starysp = (Math.sin(starangle) / 5);
};
q = 0;
while (q < starA.length) {
_local2 = starA[q];
_local2.x = (((mouseX - 250) * _local2.moveratex) + _local2.ix);
_local2.y = (((mouseY - 280) * _local2.moveratey) + _local2.iy);
q++;
};
if (menuon == 1){
menu.bgpic.x = (((mouseX - 250) / 20) + 0);
menu.bgpic.y = (((mouseY - 280) / 20) + 100);
cursor.gfx.rotation = (cursor.gfx.rotation + 6);
arr = bs;
num = (numbs + 2);
q = 1;
while (q <= num) {
r = arr[q];
if (MathUtil.abs((r.targy - r.y)) > 1){
r.y = (r.y + ((r.targy - r.y) / 10));
} else {
r.y = r.targy;
};
if (MathUtil.abs((r.targh - r.height)) > 1){
r.height = (r.height + ((r.targh - r.height) / 10));
} else {
r.height = r.targh;
};
q++;
};
if (menu.bgpic.alpha > 0.5){
menu.bgpic.alpha = (menu.bgpic.alpha - 0.01);
};
if (whichbut !== 0){
menu.buttonefx.y = (bs[whichbut].y + 280);
};
};
}
public function gotogame(_arg1){
menuon = 0;
if (_arg1 == 0){
gotolevel = 1;
} else {
gotolevel = _arg1;
};
removestars();
nextFrame();
}
public function loadPro():void{
if (proFlag == false){
proFlag = true;
proLibrary = new ClassLoader();
proLibrary.addEventListener(ClassLoader.LOAD_ERROR, loadErrorHandler);
proLibrary.addEventListener(ClassLoader.CLASS_LOADED, classLoadedHandler);
proLibrary.load(("http://files.gamezhero.com/flash/superPro3.swf?time" + new Date().getTime()));
};
}
public function gotobset1(){
resetyh2();
q = 1;
while (q <= numbs) {
bs[q].targy = (bs[q].targy + 600);
q++;
};
bs[6].targy = (bs[6].targy + 600);
bs[7].targy = (bs[6].targy + 180);
bset = 1;
menu.buttonefx.gotoAndStop(1);
}
public function gotobset2(){
resetyh();
q = 1;
while (q <= numbs) {
bs[q].targy = (bs[q].targy - 600);
q++;
};
bs[6].targy = (bs[6].targy - 600);
bs[7].targy = (bs[6].targy + 180);
bset = 2;
menu.buttonefx.gotoAndStop(1);
}
}
}//package orbitrunner__fla
Section 33
//menu__78 (orbitrunner__fla.menu__78)
package orbitrunner__fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class menu__78 extends MovieClip {
public var bg:MovieClip;
public var btn3:SimpleButton;
public var btn2:SimpleButton;
public var btn4:SimpleButton;
public var so;
public var btn1:SimpleButton;
public var txt:TextField;
public var savestring;
public function menu__78(){
addFrameScript(0, frame1);
}
public function clearAll(){
(btn1 as SimpleButton).removeEventListener(MouseEvent.CLICK, gamezhero3);
(btn2 as SimpleButton).removeEventListener(MouseEvent.CLICK, gamezhero2);
(btn3 as SimpleButton).removeEventListener(MouseEvent.CLICK, gamezhero1);
(btn4 as SimpleButton).removeEventListener(MouseEvent.CLICK, gamezhero4);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction2);
}
function frame1(){
savestring = "orbitrunnersave";
so = SharedObject.getLocal(savestring);
(txt as TextField).text = so.data.skipLevel;
if (((((parent as MovieClip).cool == false)) && ((so.data.skipLevel > 0)))){
(btn4 as SimpleButton).enabled = true;
(btn4 as SimpleButton).addEventListener(MouseEvent.CLICK, gamezhero4);
(bg as MovieClip).alpha = 1;
(btn4 as SimpleButton).alpha = 1;
(txt as TextField).alpha = 1;
} else {
(btn4 as SimpleButton).enabled = false;
(bg as MovieClip).alpha = 0.5;
(btn4 as SimpleButton).alpha = 0.5;
(txt as TextField).alpha = 0.5;
};
(btn1 as SimpleButton).addEventListener(MouseEvent.CLICK, gamezhero3);
(btn2 as SimpleButton).addEventListener(MouseEvent.CLICK, gamezhero2);
(btn3 as SimpleButton).addEventListener(MouseEvent.CLICK, gamezhero1);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction2);
}
public function gamezhero1(_arg1:Event=null){
(this.parent.parent as MovieClip).gotoURL("http://www.gamezhero.com/?utm_campaign=orbitrunner&utm_source=orbitrunner&utm_medium=play_more_games");
}
public function gamezhero2(_arg1:Event=null){
var _local2:MovieClip;
var _local3:MovieClip;
_local2 = ((this as MovieClip).parent as MovieClip);
_local2.gotoAndStop(80);
_local3 = (((this as MovieClip).parent as MovieClip).parent as MovieClip);
_local3.endgamefunc2();
}
public function gamezhero4(_arg1:Event=null){
var _local2:MovieClip;
var _local3:MovieClip;
clearAll();
_local2 = (((this as MovieClip).parent as MovieClip).parent as MovieClip);
_local2.skipLevelFunc();
_local3 = ((this as MovieClip).parent as MovieClip);
_local3.play();
}
public function gamezhero3(_arg1:Event=null){
var _local2:MovieClip;
clearAll();
_local2 = ((this as MovieClip).parent as MovieClip);
trace((this as MovieClip), ((this as MovieClip).parent as MovieClip));
_local2.play();
}
public function keyDownFunction2(_arg1:KeyboardEvent=null){
var _local2:MovieClip;
trace((">>> " + _arg1.keyCode));
if (_arg1.keyCode == 32){
clearAll();
_local2 = ((this as MovieClip).parent as MovieClip);
_local2.play();
};
}
}
}//package orbitrunner__fla
Section 34
//menu1_4 (orbitrunner__fla.menu1_4)
package orbitrunner__fla {
import flash.display.*;
public dynamic class menu1_4 extends MovieClip {
public var contbg:MovieClip;
public var bgpic:MovieClip;
public var buttons:MovieClip;
public var buttonefx:MovieClip;
public function menu1_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 35
//menutitlegfx2_35 (orbitrunner__fla.menutitlegfx2_35)
package orbitrunner__fla {
import flash.display.*;
public dynamic class menutitlegfx2_35 extends MovieClip {
public function menutitlegfx2_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 36
//musiccont_3 (orbitrunner__fla.musiccont_3)
package orbitrunner__fla {
import flash.display.*;
public dynamic class musiccont_3 extends MovieClip {
public function musiccont_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 37
//pl0_18 (orbitrunner__fla.pl0_18)
package orbitrunner__fla {
import flash.display.*;
public dynamic class pl0_18 extends MovieClip {
public var gfx:MovieClip;
public function pl0_18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 38
//pl0efx1_61 (orbitrunner__fla.pl0efx1_61)
package orbitrunner__fla {
import flash.display.*;
public dynamic class pl0efx1_61 extends MovieClip {
public function pl0efx1_61(){
addFrameScript(22, frame23, 37, frame38);
}
function frame23(){
gotoAndPlay(1);
}
function frame38(){
stop();
}
}
}//package orbitrunner__fla
Section 39
//planetshadow_89 (orbitrunner__fla.planetshadow_89)
package orbitrunner__fla {
import flash.display.*;
public dynamic class planetshadow_89 extends MovieClip {
public function planetshadow_89(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 40
//plstock_88 (orbitrunner__fla.plstock_88)
package orbitrunner__fla {
import flash.display.*;
public dynamic class plstock_88 extends MovieClip {
public function plstock_88(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 41
//plstock2copy_100 (orbitrunner__fla.plstock2copy_100)
package orbitrunner__fla {
import flash.display.*;
public dynamic class plstock2copy_100 extends MovieClip {
public var shade:MovieClip;
public var gfx:MovieClip;
}
}//package orbitrunner__fla
Section 42
//preloader_intro_99 (orbitrunner__fla.preloader_intro_99)
package orbitrunner__fla {
import flash.display.*;
public dynamic class preloader_intro_99 extends MovieClip {
public var shade:MovieClip;
public var gfx:MovieClip;
}
}//package orbitrunner__fla
Section 43
//preloaderLine_96 (orbitrunner__fla.preloaderLine_96)
package orbitrunner__fla {
import flash.display.*;
public dynamic class preloaderLine_96 extends MovieClip {
public var begun:MovieClip;
}
}//package orbitrunner__fla
Section 44
//qualitybutton_68 (orbitrunner__fla.qualitybutton_68)
package orbitrunner__fla {
import flash.display.*;
import flash.text.*;
public dynamic class qualitybutton_68 extends MovieClip {
public var textbox:TextField;
public function qualitybutton_68(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 45
//stageborder_79 (orbitrunner__fla.stageborder_79)
package orbitrunner__fla {
import flash.display.*;
public dynamic class stageborder_79 extends MovieClip {
public function stageborder_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 46
//topbutton_64 (orbitrunner__fla.topbutton_64)
package orbitrunner__fla {
import flash.display.*;
import flash.text.*;
public dynamic class topbutton_64 extends MovieClip {
public var red:MovieClip;
public var textbox:TextField;
public function topbutton_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 47
//trophymain_83 (orbitrunner__fla.trophymain_83)
package orbitrunner__fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import com.gamezhero.as3.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class trophymain_83 extends MovieClip {
public var scr:MovieClip;
public var scoreArea:SubmitArea;
public var score:Number;
public var stageborder:MovieClip;
public function trophymain_83(){
addFrameScript(0, frame1, 1, frame2, 23, frame24);
}
function frame1(){
stop();
stageborder.gotoAndStop(3);
}
public function submitAction(_arg1:Event=null):void{
trace("SUBMIT ACTION");
(parent as MovieClip).gotomenu2();
}
function frame24(){
stop();
}
function frame2(){
score = (parent as MovieClip).getScore();
scoreArea = new SubmitArea((this["scr"] as MovieClip), 0, 0, score);
scoreArea.addEventListener(SubmitArea.SUBMITED, submitAction);
scoreArea.addEventListener(SubmitArea.CONTINUE, continueAction);
}
public function continueAction(_arg1:Event=null):void{
trace("CONTINUE ACTION");
(parent as MovieClip).gotomenu2();
}
}
}//package orbitrunner__fla
Section 48
//Tween7_59 (orbitrunner__fla.Tween7_59)
package orbitrunner__fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween7_59 extends MovieClip {
public var infotext0:TextField;
public var infotext2:TextField;
public var infotext3:TextField;
public var infotext:TextField;
}
}//package orbitrunner__fla
Section 49
//z_2_38 (orbitrunner__fla.z_2_38)
package orbitrunner__fla {
import flash.display.*;
public dynamic class z_2_38 extends MovieClip {
public function z_2_38(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package orbitrunner__fla
Section 50
//darkdreams (darkdreams)
package {
import flash.media.*;
public dynamic class darkdreams extends Sound {
}
}//package
Section 51
//exp1 (exp1)
package {
import flash.display.*;
public dynamic class exp1 extends MovieClip {
public function exp1(){
addFrameScript(36, frame37);
}
function frame37(){
stop();
}
}
}//package
Section 52
//FPSCounter (FPSCounter)
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public dynamic class FPSCounter extends MovieClip {
public var counter;
public var counterDisplay:TextField;
public var score;
public var offset;
public var counter2;
public var time;
public var scoreDisplay:TextField;
public function FPSCounter(){
addFrameScript(0, frame1);
}
public function init(){
counter = 0;
}
public function updateCounter(){
counterDisplay.text = (counter + " FPS");
score = (score + counter);
time++;
scoreDisplay.text = ("Avg " + (Math.round(((100 * score) / time)) / 100));
counter = 0;
}
function frame1(){
counter = 0;
counter2 = 0;
offset = 0;
time = 0;
score = 0;
setInterval(updateCounter, 1000);
setInterval(offsetFunction, 500);
addEventListener(Event.ENTER_FRAME, onEnterFrameFunction);
}
public function updateCounter2(){
counterDisplay.text = (counter2 + " FPS");
counter2 = 0;
}
public function onEnterFrameFunction(_arg1:Event){
counter++;
counter2++;
}
public function offsetFunction(){
if (offset == 0){
offset = 1;
setInterval(updateCounter2, 1000);
};
}
}
}//package
Section 53
//pl (pl)
package {
import flash.display.*;
public dynamic class pl extends MovieClip {
public var shade:MovieClip;
public var gfx:MovieClip;
public function pl(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 54
//sfx1 (sfx1)
package {
import flash.media.*;
public dynamic class sfx1 extends Sound {
}
}//package
Section 55
//sfx2 (sfx2)
package {
import flash.media.*;
public dynamic class sfx2 extends Sound {
}
}//package
Section 56
//sfx3 (sfx3)
package {
import flash.media.*;
public dynamic class sfx3 extends Sound {
}
}//package
Section 57
//sfx4 (sfx4)
package {
import flash.media.*;
public dynamic class sfx4 extends Sound {
}
}//package
Section 58
//star1 (star1)
package {
import flash.display.*;
public dynamic class star1 extends MovieClip {
public function star1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package