Section 1
//MainTimeline (DaEgg_fla.MainTimeline)
package DaEgg_fla {
import fl.motion.*;
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public var bgr:MovieClip;
public var txt:TextField;
public var runner:MovieClip;
public var txtnow:TextField;
public var txtmax:TextField;
public var cTransform:ColorTransform;
public var time:Timer;
public var tid:int;
public var nuts;
public var times:int;
public var maxfreq:Number;
public var cTint:Color;
public var derfreq:Number;
public var count:Array;
public var glow:GlowFilter;
public var goal:int;
public var freq:Number;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function clicked(event:Event){
runner.scaleX = (runner.scaleX + (100 / goal));
runner.scaleY = (runner.scaleY + (100 / goal));
freq = (freq + 1);
times = (times + 1);
txt.text = String(times);
count.push(0);
}
public function tick(evt:Event){
freq = (freq / 1.018);
if (nuts > 2){
derfreq = (derfreq + ((nuts - derfreq) / 20));
trace(derfreq);
if (nuts > 7){
if (nuts < 11){
glow.color = ((((0xFF - ((derfreq * 15) * (derfreq - 10))) << 16) | ((0xFF - (derfreq * 15)) << 8)) | (0xFF - ((derfreq * 15) * (-(derfreq) + 11))));
} else {
glow.color = ((((0xFF - (derfreq * 15)) << 16) | ((0xFF - (derfreq * 15)) << 8)) | 0xFF);
};
glow.alpha = (freq / 7);
glow.blurX = ((freq * 4) + (13 * Math.sin(derfreq)));
glow.blurY = ((freq * 4) + (13 * Math.sin(derfreq)));
} else {
glow.color = (((0xFF << 16) | ((0xFF - (derfreq * 15)) << 8)) | (0xFF - (derfreq * 15)));
glow.alpha = (freq / 7);
glow.blurX = (freq * 3);
glow.blurY = (freq * 3);
};
} else {
glow.alpha = (freq / 7);
glow.blurX = (freq * 2);
glow.blurY = (freq * 2);
};
runner.filters = [glow];
}
public function timerHandler(event:TimerEvent):void{
var c:* = count.length;
if (c > 5){
nuts++;
} else {
nuts = (nuts / 2);
};
if (c > maxfreq){
maxfreq = c;
txtmax.text = String(c);
};
txtnow.text = String(c);
count = new Array();
}
public function rgb2hex(r, g, b):Number{
return ((((r << 16) | (g << 8)) | b));
}
public function key(e:KeyboardEvent):void{
switch (e.keyCode){
case Keyboard.SPACE:
break;
};
}
function frame1(){
stage.addEventListener(KeyboardEvent.KEY_DOWN, key);
addEventListener(Event.ENTER_FRAME, tick);
cTransform = transform.colorTransform;
time = new Timer(1000);
tid = 0;
nuts = 0;
time.addEventListener(TimerEvent.TIMER, timerHandler);
time.start();
times = 0;
maxfreq = 0;
cTint = new Color();
runner.stop();
derfreq = 0;
count = new Array();
glow = new GlowFilter();
glow.color = 0xFFFFFF;
glow.alpha = 0;
glow.blurX = 0;
glow.blurY = 0;
glow.quality = BitmapFilterQuality.HIGH;
runner.filters = [glow];
goal = 1000000;
freq = 0;
runner.addEventListener(MouseEvent.MOUSE_DOWN, clicked);
}
}
}//package DaEgg_fla
Section 2
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintColor:Number;// = 0
private var _tintMultiplier:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
public function set brightness(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
var _local2:Number = (1 - Math.abs(_arg1));
var _local3:Number = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function setTint(_arg1:uint, _arg2:Number):void{
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
var _local3:uint = ((_arg1 >> 16) & 0xFF);
var _local4:uint = ((_arg1 >> 8) & 0xFF);
var _local5:uint = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
private function deriveTintColor():uint{
var _local1:Number = (1 / this.tintMultiplier);
var _local2:uint = Math.round((this.redOffset * _local1));
var _local3:uint = Math.round((this.greenOffset * _local1));
var _local4:uint = Math.round((this.blueOffset * _local1));
var _local5:uint = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
var _local2:XML = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number = (1 - _arg3);
var _local5:ColorTransform = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number = (1 - _arg3);
var _local5:uint = ((_arg1 >> 24) & 0xFF);
var _local6:uint = ((_arg1 >> 16) & 0xFF);
var _local7:uint = ((_arg1 >> 8) & 0xFF);
var _local8:uint = (_arg1 & 0xFF);
var _local9:uint = ((_arg2 >> 24) & 0xFF);
var _local10:uint = ((_arg2 >> 16) & 0xFF);
var _local11:uint = ((_arg2 >> 8) & 0xFF);
var _local12:uint = (_arg2 & 0xFF);
var _local13:uint = ((_local5 * _local4) + (_local9 * _arg3));
var _local14:uint = ((_local6 * _local4) + (_local10 * _arg3));
var _local15:uint = ((_local7 * _local4) + (_local11 * _arg3));
var _local16:uint = ((_local8 * _local4) + (_local12 * _arg3));
var _local17:uint = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
}
}//package fl.motion
Section 3
//Symbol7_4 (runner_fla.Symbol7_4)
package runner_fla {
import flash.display.*;
public dynamic class Symbol7_4 extends MovieClip {
public var vegg1:MovieClip;
}
}//package runner_fla