Section 1
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 3
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 4
//expression_5 (KelseySlap_fla.expression_5)
package KelseySlap_fla {
import flash.display.*;
public dynamic class expression_5 extends MovieClip {
public function expression_5(){
addFrameScript(6, frame7, 15, frame16, 25, frame26, 35, frame36);
}
function frame7(){
stop();
}
function frame16(){
stop();
}
function frame26(){
stop();
}
function frame36(){
stop();
}
}
}//package KelseySlap_fla
Section 5
//MainTimeline (KelseySlap_fla.MainTimeline)
package KelseySlap_fla {
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var btnIntroStart:introStartButton;
public var myFrame:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var expression:MovieClip;
public var bat:bat1;
public var kelsey:MovieClip;
public var myTween:Tween;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
var _local2:* = this.loaderInfo.url;
var _local3:* = false;
if (_local2.search("file:") != -1){
_local3 = true;
};
if (_local2.search("deviantart.net") != -1){
_local3 = true;
};
if (_local3 == true){
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
};
}
public function startGame(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local2:*;
bat.gotoAndPlay(2);
addRed();
_local2 = Math.floor((Math.random() * 4));
if (_local2 == 0){
expression.gotoAndPlay(1);
} else {
if (_local2 == 1){
expression.gotoAndPlay(10);
} else {
if (_local2 == 2){
expression.gotoAndPlay(20);
} else {
expression.gotoAndPlay(30);
};
};
};
}
public function mouseWheelUsed(_arg1:MouseEvent):void{
bat.rotation = (bat.rotation + (_arg1.delta * 10));
}
public function updateMouseCursor(_arg1:Event){
bat.x = stage.mouseX;
bat.y = stage.mouseY;
}
public function addRed():void{
var _local1:*;
var _local2:*;
_local2 = Math.floor((Math.random() * 3));
if (_local2 == 0){
_local1 = new red1();
} else {
if (_local2 == 1){
_local1 = new red2();
} else {
_local1 = new red3();
};
};
myFrame.addChild(_local1);
_local1.scaleX = ((Math.random() * 2) + 1);
_local1.scaleY = ((Math.random() * 2) + 1);
_local1.alpha = (((Math.random() * 5) / 10) + 0.2);
_local1.x = bat.x;
_local1.y = bat.y;
myTween = new Tween(_local1, "alpha", Regular.easeIn, _local1.alpha, (Math.floor((Math.random() * 2)) / 10), (Math.floor((Math.random() * 6)) + 2), true);
myTween.FPS = 40;
myTween.addEventListener(TweenEvent.MOTION_FINISH, clearBruise);
}
public function clearBruise(_arg1:TweenEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (Math.floor((Math.random() * 100)) < 20){
_local2 = myTween.obj;
_local3 = _local2.x;
_local4 = _local2.y;
myFrame.removeChild(_local2);
_local5 = Math.floor((Math.random() * 4));
if (_local5 == 0){
_local2 = new blue1();
} else {
if (_local5 == 1){
_local2 = new green1();
} else {
if (_local5 == 2){
_local2 = new orange1();
} else {
_local2 = new purple1();
};
};
};
myFrame.addChild(_local2);
_local2.scaleX = ((Math.random() * 2) + 1);
_local2.scaleY = ((Math.random() * 2) + 1);
_local2.alpha = 0;
_local2.x = _local3;
_local2.y = _local4;
myTween = new Tween(_local2, "alpha", Regular.easeOut, 0, (((Math.random() * 5) / 10) + 0.2), (Math.floor((Math.random() * 5)) + 2), true);
myTween.FPS = 40;
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelUsed);
bat.mouseEnabled = false;
bat.addEventListener(Event.ENTER_FRAME, updateMouseCursor);
Mouse.hide();
expression.gotoAndStop(7);
}
}
}//package KelseySlap_fla
Section 6
//bat1 (bat1)
package {
import flash.display.*;
public dynamic class bat1 extends MovieClip {
public function bat1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 7
//blue1 (blue1)
package {
import flash.display.*;
public dynamic class blue1 extends MovieClip {
}
}//package
Section 8
//green1 (green1)
package {
import flash.display.*;
public dynamic class green1 extends MovieClip {
}
}//package
Section 9
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 10
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package
Section 11
//orange1 (orange1)
package {
import flash.display.*;
public dynamic class orange1 extends MovieClip {
}
}//package
Section 12
//purple1 (purple1)
package {
import flash.display.*;
public dynamic class purple1 extends MovieClip {
}
}//package
Section 13
//red1 (red1)
package {
import flash.display.*;
public dynamic class red1 extends MovieClip {
}
}//package
Section 14
//red2 (red2)
package {
import flash.display.*;
public dynamic class red2 extends MovieClip {
}
}//package
Section 15
//red3 (red3)
package {
import flash.display.*;
public dynamic class red3 extends MovieClip {
}
}//package