Section 1
//Key (delta.ui.Key)
package delta.ui {
import flash.events.*;
public class Key {
private var keys:Array;
public function Key(_arg1:Object):void{
keys = new Array(222);
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, downhandle, false, 0, true);
_arg1.addEventListener(KeyboardEvent.KEY_UP, uphandle, false, 0, true);
}
private function uphandle(_arg1:KeyboardEvent):void{
keys[_arg1.keyCode] = false;
}
public function isUp(_arg1:uint, ... _args):Boolean{
var _local3:uint;
if (_args.length == 0){
return (!(keys[_arg1]));
};
if (keys[_arg1]){
return (false);
};
_local3 = 0;
while (_local3 < _args.length) {
if (keys[_args[_local3]]){
return (false);
};
_local3++;
};
return (true);
}
private function downhandle(_arg1:KeyboardEvent):void{
keys[_arg1.keyCode] = true;
}
public function isDown(_arg1:uint, ... _args):Boolean{
var _local3:uint;
if (_args.length == 0){
return (keys[_arg1]);
};
if (!(keys[_arg1])){
return (false);
};
_local3 = 0;
while (_local3 < _args.length) {
if (!(keys[_args[_local3]])){
return (false);
};
_local3++;
};
return (true);
}
}
}//package delta.ui
Section 2
//coins (coins)
package {
import flash.display.*;
public dynamic class coins extends MovieClip {
}
}//package
Section 3
//NG20703 (NG20703)
package {
import flash.media.*;
public dynamic class NG20703 extends Sound {
}
}//package
Section 4
//NG37040 (NG37040)
package {
import flash.media.*;
public dynamic class NG37040 extends Sound {
}
}//package
Section 5
//NG62399 (NG62399)
package {
import flash.media.*;
public dynamic class NG62399 extends Sound {
}
}//package
Section 6
//NG85732 (NG85732)
package {
import flash.media.*;
public dynamic class NG85732 extends Sound {
}
}//package
Section 7
//Timeline0_60d642274c24bb4f939b2822a7fc2a4d (Timeline0_60d642274c24bb4f939b2822a7fc2a4d)
package {
import adobe.utils.*;
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
import delta.ui.*;
public dynamic class Timeline0_60d642274c24bb4f939b2822a7fc2a4d extends MovieClip {
public var spect:ByteArray;
public var gametype:String;
public var mxdiff:Number;
public var loada:MovieClip;
public var song2b:SimpleButton;
public var percent:Number;
public var mouseb:SimpleButton;
public var key:Key;
public var newCoin:MovieClip;
public var comment:String;
public var paus:Boolean;
public var song3b:SimpleButton;
public var blur:BlurFilter;
public var songlength:Number;
public var scount;
public var song4b:SimpleButton;
public var songUp:Boolean;
public var score;
public var credits:SimpleButton;
public var scorePerc:Number;
public var song6b:SimpleButton;
public var scoredis:TextField;
public var opsec:Number;
public var vol:Number;
public var menub:SimpleButton;
public var commentry:TextField;
public var howtob:SimpleButton;
public var swing:MovieClip;
public var place:String;
public var sond:Sound;
public var divider:Number;
public var channel:SoundChannel;
public var oldV:MovieClip;
public var coincount:Number;
public var madecoin:Boolean;
public var graph:BitmapData;
public var agLink:SimpleButton;
public var ngLink:SimpleButton;
public var bitmco:MovieClip;
public var arrows:SimpleButton;
public var playB:SimpleButton;
public var cvol;
public var loadcounta:Number;
public var avel:Number;
public var swingdisp:MovieClip;
public var menub2:SimpleButton;
public var menub3:SimpleButton;
public var mydiff:Number;
public var playb:SimpleButton;
public var glow:GlowFilter;
public var adiff:Number;
public var currentC:Number;
public var mspeed:Number;
public function Timeline0_60d642274c24bb4f939b2822a7fc2a4d(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 36, frame37, 59, frame60, 60, frame61);
}
public function loadComplete(){
play();
this.removeEventListener(ProgressEvent.PROGRESS, loading);
this.removeEventListener(Event.ENTER_FRAME, loadcheck);
}
public function song2f(_arg1:MouseEvent){
_arg1.target.parent.songUp = false;
_arg1.target.parent.place = "NG20703";
nextFrame();
}
public function howtobc(_arg1){
gotoAndStop("howto");
}
public function mousego(_arg1){
gametype = "mouse";
gotoAndStop("songs");
}
public function song3f(_arg1:MouseEvent){
_arg1.target.parent.songUp = false;
_arg1.target.parent.place = "NG62399";
nextFrame();
}
public function endOfSong(_arg1:Event){
play();
this.stage.removeEventListener(Event.ENTER_FRAME, oefw);
this.stage.removeEventListener(Event.ENTER_FRAME, oef);
}
function frame7(){
song2b.addEventListener(MouseEvent.CLICK, song2f);
song3b.addEventListener(MouseEvent.CLICK, song3f);
song4b.addEventListener(MouseEvent.CLICK, song4f);
song6b.addEventListener(MouseEvent.CLICK, song6f);
}
function frame3(){
stage.quality = "LOW";
stop();
}
function frame6(){
menub2.addEventListener(MouseEvent.CLICK, menubc);
arrows.addEventListener(MouseEvent.CLICK, arrowgo);
mouseb.addEventListener(MouseEvent.CLICK, mousego);
}
function frame1(){
stop();
try {
if (getVersion.substr(4, 1) < 9){
};
} catch(errObject:Error) {
oldV.visible = false;
};
stop();
loadcounta = 0;
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loading);
this.addEventListener(Event.ENTER_FRAME, loadcheck);
}
public function playbc(_arg1){
gotoAndStop("play1");
}
function frame5(){
menub.addEventListener(MouseEvent.CLICK, menubc);
}
function frame4(){
stop();
playb.addEventListener(MouseEvent.CLICK, playbc);
howtob.addEventListener(MouseEvent.CLICK, howtobc);
credits.addEventListener(MouseEvent.CLICK, creditsc);
ngLink.addEventListener(MouseEvent.CLICK, ngGo);
agLink.addEventListener(MouseEvent.CLICK, agGo);
}
public function song4f(_arg1:MouseEvent){
_arg1.target.parent.songUp = false;
_arg1.target.parent.place = ("NG" + "85732");
nextFrame();
}
public function die(){
;
currentC = 0;
removeEventListener(Event.ENTER_FRAME, oefw);
removeEventListener(Event.ENTER_FRAME, oef);
}
public function ngGo(_arg1){
navigateToURL(new URLRequest("http://www.newgrounds.com/"));
}
function frame8(){
stage.quality = "LOW";
stop();
paus = false;
score = 0;
avel = 0;
divider = (Math.PI / 180);
mspeed = 14;
coincount = 0;
currentC = 0;
addEventListener(Event.ENTER_FRAME, oef);
swing.visible = false;
bitmco.visible = false;
key = new Key(stage);
spect = new ByteArray();
blur = new BlurFilter(13, 2, 3);
glow = new GlowFilter(13311, 0.3, 3, 3, 8, 3);
vol = 0;
madecoin = false;
scount = 0;
Spectrum(place);
channel.addEventListener(Event.SOUND_COMPLETE, endOfSong);
}
function frame2(){
stop();
playB.useHandCursor = true;
playB.addEventListener(MouseEvent.CLICK, playF);
}
public function arrowgo(_arg1){
gametype = "arrows";
gotoAndStop("songs");
}
function frame37(){
die();
}
public function song6f(_arg1:MouseEvent){
_arg1.target.parent.songUp = false;
_arg1.target.parent.place = ("NG" + "37040");
nextFrame();
}
function frame61(){
menub3.addEventListener(MouseEvent.CLICK, menubc);
}
function frame60(){
menub3.addEventListener(MouseEvent.CLICK, menubc);
stop();
graph.fillRect(graph.rect, 0xCC00);
songlength = (sond.length / 1000);
opsec = (int(((score / songlength) * 10)) / 10);
scorePerc = int(((score / coincount) * 100));
if (scorePerc > 0){
comment = "The only way you could get this bad a score is if you were deliberatly dodging all the orbs. STOP IT!!!!";
};
if (scorePerc > 10){
comment = "If you are this bad, you dont deserve to live. Go die now.";
};
if (scorePerc > 20){
comment = "You really, really, really suck ass at this game.";
};
if (scorePerc > 30){
comment = "Siriously, you SUCK at this game. Next time, PUT SOME EFFORT IN!!!";
};
if (scorePerc > 40){
comment = "You just plain suck.";
};
if (scorePerc > 50){
comment = "You only got about half. Thats crap.";
};
if (scorePerc > 60){
comment = "Your really quite bad at this, arent you?";
};
if (scorePerc > 70){
comment = "Thats OK... if your blind and deaf.";
};
if (scorePerc > 75){
comment = "This isn't great score, but better than some of the retards who play this.";
};
if (scorePerc > 80){
comment = "Not bad, But LOTS of room for improvement.";
};
if (scorePerc > 85){
comment = "You're pretty good.";
};
if (scorePerc > 90){
comment = "You're really quite good at this, yaknow.";
};
if (scorePerc > 95){
comment = "Wowza. You're a master at this.";
};
if (scorePerc > 97){
comment = "OMFG!!!11!!!! U R TEH PWNZER!!11!!!";
};
commentry.text = ((((((((((("You got " + score) + " out of ") + coincount) + " orbs, thats ") + scorePerc) + "%. On average, you got ") + opsec) + " orbs per second in that ") + int(songlength)) + " second long song. ") + comment);
}
public function creditsc(_arg1){
gotoAndStop("creds");
}
public function oefw(_arg1:Event):void{
var _local2:ByteArray;
var _local3:int;
madecoin = false;
_local2 = new ByteArray();
SoundMixer.computeSpectrum(_local2);
graph.fillRect(graph.rect, 0xCC00);
oldvol = Math.abs(vol);
_local3 = 0;
while (_local3 < 0x0200) {
cvol = _local2.readFloat();
if (_local3 < 0x0100){
graph.setPixel32((_local3 + 5), (20 + ((vol = cvol) * 20)), 4294967295);
} else {
graph.setPixel32((_local3 - 251), (40 + ((vol = cvol) * 20)), 4294967295);
};
if (((!(madecoin)) && ((currentC < 8)))){
if (Math.abs(vol) > (oldvol * 200)){
makeCoin();
madecoin = true;
};
};
oldvol = Math.abs(vol);
_local3++;
};
graph.applyFilter(graph, graph.rect, new Point(), blur);
graph.applyFilter(graph, graph.rect, new Point(), glow);
}
public function loading(_arg1:ProgressEvent):void{
loadcounta = 0;
percent = (_arg1.bytesLoaded / _arg1.bytesTotal);
loada.scaleX = percent;
if (percent == 1){
loadComplete();
};
}
public function oef(_arg1):void{
if (gametype == "arrows"){
swing.rotation = (swing.rotation + avel);
adiff = -(swing.rotation);
if (key.isDown(Keyboard.LEFT)){
avel++;
};
if (key.isDown(Keyboard.RIGHT)){
avel--;
};
if (key.isDown(Keyboard.DOWN)){
avel = (avel * 0.8);
};
avel = (avel * 0.95);
if (Math.abs(avel) > mspeed){
if (avel < 0){
avel = -(mspeed);
} else {
avel = mspeed;
};
};
} else {
if (gametype == "mouse"){
mxdiff = (swing.x - stage.mouseX);
mydiff = (swing.y - stage.mouseY);
swing.rotation = ((Math.atan2(mydiff, mxdiff) / divider) + 90);
};
};
swingdisp.rotation = swing.rotation;
}
public function playF(_arg1:Event){
play();
}
public function makeCoin():void{
var coinoef:*;
coinoef = function (_arg1:Event):void{
var _local2:*;
_local2 = _arg1.target;
coiny = ((Math.sin((_arg1.target.rotation * (Math.PI / 180))) * _local2.height) + _local2.y);
coinx = ((Math.cos((_arg1.target.rotation * (Math.PI / 180))) * _local2.width) + _local2.x);
if (((((swing.hitTestObject(_local2)) && ((_local2.scaleX > 0.8)))) && ((_local2.scaleX < 1)))){
currentC--;
_arg1.target.removeEventListener(Event.ENTER_FRAME, coinoef);
_arg1.target.parent.removeChild(DisplayObject(_arg1.target));
score++;
scoredis.text = score;
};
_arg1.target.scaleX = (_arg1.target.scaleX + ((gametype == "arrows")) ? 0.03 : 0.05);
_arg1.target.scaleY = (_arg1.target.scaleY + ((gametype == "arrows")) ? 0.03 : 0.05);
if (_arg1.target.scaleX > 2.3){
currentC--;
_arg1.target.removeEventListener(Event.ENTER_FRAME, coinoef);
_arg1.target.parent.removeChild(DisplayObject(_arg1.target));
};
};
coincount++;
currentC++;
stage.addChild((newCoin = new coins()));
newCoin.rotation = (getTimer() * 0.5);
newCoin.x = swing.x;
newCoin.y = swing.y;
newCoin.scaleY = (newCoin.scaleX = 0.01);
newCoin.addEventListener(Event.ENTER_FRAME, coinoef);
}
public function agGo(_arg1){
navigateToURL(new URLRequest("http://www.armorgames.com/"));
}
public function menubc(_arg1){
gotoAndStop("menu");
}
public function loadcheck(_arg1:Event){
if (loadcounta > 4){
loadComplete();
loada.scaleX = 1;
};
loadcounta++;
}
public function Spectrum(_arg1:String):void{
var _local2:Bitmap;
graph = new BitmapData(263, 60, true, 0);
_local2 = new Bitmap(graph);
addChild(_local2);
_local2.x = bitmco.x;
_local2.y = bitmco.y;
addEventListener(Event.ENTER_FRAME, oefw);
if (songUp){
sond = new Sound(new URLRequest(_arg1));
} else {
switch (_arg1){
case "NG37040":
sond = new NG37040();
break;
case "NG20703":
sond = new NG20703();
break;
case "NG62399":
sond = new NG62399();
break;
case "NG85732":
sond = new NG85732();
break;
};
};
channel = sond.play(0, 0);
}
}
}//package
Section 8
//Timeline6_d3e4977c17563b49859c37e5d08a4fda (Timeline6_d3e4977c17563b49859c37e5d08a4fda)
package {
import adobe.utils.*;
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline6_d3e4977c17563b49859c37e5d08a4fda extends MovieClip {
public function Timeline6_d3e4977c17563b49859c37e5d08a4fda(){
addFrameScript(14, frame15);
}
function frame15(){
this.parent.play();
}
}
}//package