Section 1
//Animator (fl.motion.Animator)
package fl.motion {
import flash.geom.*;
import flash.events.*;
import flash.display.*;
public class Animator extends EventDispatcher {
private var targetState:Object;
public var transformationPoint:Point;
private var _isPlaying:Boolean;// = false
private var _time:int;// = -1
private var _target:DisplayObject;
public var repeatCount:int;// = 1
private var _lastRenderedTime:int;// = -1
private var playCount:int;// = 0
private var _motion:Motion;
public var orientToPath:Boolean;// = false
public var autoRewind:Boolean;// = false
public var positionMatrix:Matrix;
private static var enterFrameBeacon:MovieClip = new MovieClip();
public function Animator(_arg1:XML=null, _arg2:DisplayObject=null){
orientToPath = false;
autoRewind = false;
repeatCount = 1;
_isPlaying = false;
_lastRenderedTime = -1;
_time = -1;
playCount = 0;
super();
this.motion = new Motion(_arg1);
this.target = _arg2;
}
public function stop():void{
enterFrameBeacon.removeEventListener(Event.ENTER_FRAME, this.enterFrameHandler);
this._isPlaying = false;
this.playCount = 0;
this.rewind();
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_END));
}
public function get target():DisplayObject{
return (this._target);
}
public function set time(_arg1:int):void{
var _local2:Motion;
var _local3:Keyframe;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Point;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Matrix;
var _local13:Point;
var _local14:Number;
var _local15:Number;
var _local16:ColorTransform;
var _local17:Number;
var _local18:Number;
var _local19:Number;
if (_arg1 == this._time){
return;
};
_local2 = this.motion;
if (_arg1 > (_local2.duration - 1)){
_arg1 = (_local2.duration - 1);
} else {
if (_arg1 < 0){
_arg1 = 0;
};
};
this._time = _arg1;
this.dispatchEvent(new MotionEvent(MotionEvent.TIME_CHANGE));
_local3 = _local2.getCurrentKeyframe(_arg1);
_local4 = (((_local3.index == this._lastRenderedTime)) && (!(_local3.tweens.length)));
if (_local4){
return;
};
this._target.visible = false;
if (!_local3.blank){
_local5 = _local2.getValue(_arg1, Tweenables.X);
_local6 = _local2.getValue(_arg1, Tweenables.Y);
_local7 = new Point(_local5, _local6);
if (this.positionMatrix){
_local7 = this.positionMatrix.transformPoint(_local7);
};
_local7.x = (_local7.x + this.targetState.x);
_local7.y = (_local7.y + this.targetState.y);
_local8 = (_local2.getValue(_arg1, Tweenables.SCALE_X) * this.targetState.scaleX);
_local9 = (_local2.getValue(_arg1, Tweenables.SCALE_Y) * this.targetState.scaleY);
_local10 = 0;
_local11 = 0;
if (this.orientToPath){
_local17 = _local2.getValue((_arg1 + 1), Tweenables.X);
_local18 = _local2.getValue((_arg1 + 1), Tweenables.Y);
_local19 = (Math.atan2((_local18 - _local6), (_local17 - _local5)) * (180 / Math.PI));
if (!isNaN(_local19)){
_local10 = (_local19 + this.targetState.skewX);
_local11 = (_local19 + this.targetState.skewY);
};
} else {
_local10 = (_local2.getValue(_arg1, Tweenables.SKEW_X) + this.targetState.skewX);
_local11 = (_local2.getValue(_arg1, Tweenables.SKEW_Y) + this.targetState.skewY);
};
_local12 = new Matrix((_local8 * Math.cos((_local11 * (Math.PI / 180)))), (_local8 * Math.sin((_local11 * (Math.PI / 180)))), (-(_local9) * Math.sin((_local10 * (Math.PI / 180)))), (_local9 * Math.cos((_local10 * (Math.PI / 180)))), _local7.x, _local7.y);
_local13 = _local12.transformPoint(this.targetState.transformPointInternal);
_local14 = (_local12.tx - _local13.x);
_local15 = (_local12.ty - _local13.y);
_local12.tx = (_local12.tx + _local14);
_local12.ty = (_local12.ty + _local15);
this._target.rotation = _local11;
this._target.transform.matrix = _local12;
this._target.scaleX = _local8;
this._target.scaleY = _local9;
_local16 = _local2.getColorTransform(_arg1);
if (_local16){
this._target.transform.colorTransform = _local16;
};
this._target.filters = _local2.getFilters(_arg1);
this._target.blendMode = _local3.blendMode;
this._target.cacheAsBitmap = _local3.cacheAsBitmap;
this._target.visible = true;
};
this._lastRenderedTime = this._time;
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_UPDATE));
}
private function enterFrameHandler(_arg1:Event):void{
this.nextFrame();
}
public function set target(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Point;
if (!_arg1){
return;
};
this._target = _arg1;
this.targetState = {};
this.targetState.scaleX = this._target.scaleX;
this.targetState.scaleY = this._target.scaleY;
this.targetState.skewX = MatrixTransformer.getSkewX(this._target.transform.matrix);
this.targetState.skewY = MatrixTransformer.getSkewY(this._target.transform.matrix);
this.targetState.matrix = this._target.transform.matrix;
_local2 = (this.targetState.bounds = this._target.getBounds(this._target));
if (this.transformationPoint){
_local3 = ((this.transformationPoint.x * _local2.width) + _local2.left);
_local4 = ((this.transformationPoint.y * _local2.height) + _local2.top);
this.targetState.transformPointInternal = new Point(_local3, _local4);
_local5 = this.targetState.matrix.transformPoint(this.targetState.transformPointInternal);
this.targetState.x = _local5.x;
this.targetState.y = _local5.y;
} else {
this.targetState.transformPointInternal = new Point(0, 0);
this.targetState.x = this._target.x;
this.targetState.y = this._target.y;
};
}
public function get isPlaying():Boolean{
return (_isPlaying);
}
public function resume():void{
enterFrameBeacon.addEventListener(Event.ENTER_FRAME, this.enterFrameHandler, false, 0, true);
this._isPlaying = true;
}
private function handleLastFrame():void{
this.playCount++;
if ((((this.repeatCount == 0)) || ((this.playCount < this.repeatCount)))){
this.rewind();
} else {
this.end();
};
}
public function get motion():Motion{
return (this._motion);
}
public function nextFrame():void{
if (this.time >= (this.motion.duration - 1)){
this.handleLastFrame();
} else {
this.time++;
};
}
public function play():void{
if (!this._isPlaying){
enterFrameBeacon.addEventListener(Event.ENTER_FRAME, this.enterFrameHandler, false, 0, true);
this._isPlaying = true;
};
this.playCount = 0;
this.rewind();
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_START));
}
public function rewind():void{
this.time = 0;
}
public function end():void{
enterFrameBeacon.removeEventListener(Event.ENTER_FRAME, this.enterFrameHandler);
this._isPlaying = false;
this.playCount = 0;
if (this.autoRewind){
this.rewind();
} else {
if (this.time != (this.motion.duration - 1)){
this.time = (this.motion.duration - 1);
};
};
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_END));
}
public function get time():int{
return (this._time);
}
public function pause():void{
enterFrameBeacon.removeEventListener(Event.ENTER_FRAME, this.enterFrameHandler);
this._isPlaying = false;
}
public function set motion(_arg1:Motion):void{
this._motion = _arg1;
if (((_arg1.source) && (_arg1.source.transformationPoint))){
this.transformationPoint = _arg1.source.transformationPoint.clone();
};
}
public static function fromXMLString(_arg1:String, _arg2:DisplayObject=null):Animator{
return (new Animator(new XML(_arg1), _arg2));
}
}
}//package fl.motion
Section 2
//BezierEase (fl.motion.BezierEase)
package fl.motion {
import flash.geom.*;
public class BezierEase implements ITween {
public var points:Array;
private var firstNode:Point;
private var _target:String;// = ""
private var lastNode:Point;
public function BezierEase(_arg1:XML=null){
_target = "";
super();
this.points = [];
this.parseXML(_arg1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number;
var _local6:Array;
var _local7:Number;
if (_arg4 <= 0){
return (NaN);
};
_local5 = (_arg1 / _arg4);
if (_local5 <= 0){
return (_arg2);
};
if (_local5 >= 1){
return ((_arg2 + _arg3));
};
this.firstNode = new Point(0, _arg2);
this.lastNode = new Point(1, (_arg2 + _arg3));
_local6 = [this.firstNode].concat(this.points);
_local6.push(this.lastNode);
_local7 = CustomEase.getYForPercent(_local5, _local6);
return (_local7);
}
private function parseXML(_arg1:XML=null):BezierEase{
var _local2:XMLList;
var _local3:XML;
if (!_arg1){
return (this);
};
if (_arg1.@target.length()){
this.target = _arg1.@target;
};
_local2 = _arg1.elements();
for each (_local3 in _local2) {
this.points.push(new Point(Number(_local3.@x), Number(_local3.@y)));
};
return (this);
}
}
}//package fl.motion
Section 3
//BezierSegment (fl.motion.BezierSegment)
package fl.motion {
import flash.geom.*;
public class BezierSegment {
public var a:Point;
public var c:Point;
public var b:Point;
public var d:Point;
public function BezierSegment(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point){
this.a = _arg1;
this.b = _arg2;
this.c = _arg3;
this.d = _arg4;
}
public function getYForX(_arg1:Number, _arg2:Array=null):Number{
var _local3:Array;
var _local4:Number;
var _local5:Number;
var _local6:Number;
if (this.a.x < this.d.x){
if (_arg1 <= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 >= (this.d.x - 1E-16)){
return (this.d.y);
};
} else {
if (_arg1 >= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 <= (this.d.x - 1E-16)){
return (this.d.y);
};
};
if (!_arg2){
_arg2 = getCubicCoefficients(this.a.x, this.b.x, this.c.x, this.d.x);
};
_local3 = getCubicRoots(_arg2[0], _arg2[1], _arg2[2], (_arg2[3] - _arg1));
_local4 = NaN;
if (_local3.length == 0){
_local4 = 0;
} else {
if (_local3.length == 1){
_local4 = _local3[0];
} else {
for each (_local6 in _local3) {
if ((((0 <= _local6)) && ((_local6 <= 1)))){
_local4 = _local6;
break;
};
};
};
};
if (isNaN(_local4)){
return (NaN);
};
_local5 = getSingleValue(_local4, this.a.y, this.b.y, this.c.y, this.d.y);
return (_local5);
}
public function getValue(_arg1:Number):Point{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = this.a.x;
_local3 = (((((_arg1 * _arg1) * (this.d.x - _local2)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.x - _local2)) + ((1 - _arg1) * (this.b.x - _local2))))) * _arg1) + _local2);
_local4 = this.a.y;
_local5 = (((((_arg1 * _arg1) * (this.d.y - _local4)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.y - _local4)) + ((1 - _arg1) * (this.b.y - _local4))))) * _arg1) + _local4);
return (new Point(_local3, _local5));
}
public static function getCubicCoefficients(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Array{
return ([(((-(_arg1) + (3 * _arg2)) - (3 * _arg3)) + _arg4), (((3 * _arg1) - (6 * _arg2)) + (3 * _arg3)), ((-3 * _arg1) + (3 * _arg2)), _arg1]);
}
public static function getSingleValue(_arg1:Number, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):Number{
return ((((((_arg1 * _arg1) * (_arg5 - _arg2)) + ((3 * (1 - _arg1)) * ((_arg1 * (_arg4 - _arg2)) + ((1 - _arg1) * (_arg3 - _arg2))))) * _arg1) + _arg2));
}
public static function getCubicRoots(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0):Array{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:int;
var _local16:Number;
if (!_arg1){
return (BezierSegment.getQuadraticRoots(_arg2, _arg3, _arg4));
};
if (_arg1 != 1){
_arg2 = (_arg2 / _arg1);
_arg3 = (_arg3 / _arg1);
_arg4 = (_arg4 / _arg1);
};
_local5 = (((_arg2 * _arg2) - (3 * _arg3)) / 9);
_local6 = (((((_arg2 * _arg2) - (3 * _arg3)) / 9) * _local5) * _local5);
_local7 = ((((((2 * _arg2) * _arg2) * _arg2) - ((9 * _arg2) * _arg3)) + (27 * _arg4)) / 54);
_local8 = (_local6 - (_local7 * _local7));
if (_local8 >= 0){
if (!_local5){
return ([0]);
};
_local9 = Math.acos((_local7 / Math.sqrt(_local6)));
_local10 = Math.sqrt(_local5);
_local11 = (((-2 * _local10) * Math.cos((_local9 / 3))) - (_arg2 / 3));
_local12 = (((-2 * _local10) * Math.cos(((_local9 + (2 * Math.PI)) / 3))) - (_arg2 / 3));
_local13 = (((-2 * _local10) * Math.cos(((_local9 + (4 * Math.PI)) / 3))) - (_arg2 / 3));
return ([_local11, _local12, _local13]);
//unresolved jump
};
_local14 = Math.pow((Math.sqrt(-(_local8)) + Math.abs(_local7)), (1 / 3));
_local15 = ((_local7)>0) ? 1 : ((_local7 < 0)) ? -1 : 0;
_local16 = ((-(_local15) * (_local14 + (_local5 / _local14))) - (_arg2 / 3));
return ([_local16]);
}
public static function getQuadraticRoots(_arg1:Number, _arg2:Number, _arg3:Number):Array{
var _local4:Array;
var _local5:Number;
var _local6:int;
var _local7:Number;
_local4 = [];
if (!_arg1){
if (!_arg2){
return ([]);
};
_local4[0] = (-(_arg3) / _arg2);
return (_local4);
};
_local5 = ((_arg2 * _arg2) - ((4 * _arg1) * _arg3));
_local6 = ((_local5)>0) ? 1 : ((_local5 < 0)) ? -1 : 0;
if (_local6 < 0){
return ([]);
};
if (!_local6){
_local4[0] = (-(_arg2) / (2 * _arg1));
} else {
_local4[0] = (_local4[1] = (-(_arg2) / (2 * _arg1)));
_local7 = (Math.sqrt(_local5) / (2 * _arg1));
_local4[0] = (_local4[0] - _local7);
_local4[1] = (_local4[1] + _local7);
};
return (_local4);
}
}
}//package fl.motion
Section 4
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor: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){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _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 interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = 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 fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 5
//CustomEase (fl.motion.CustomEase)
package fl.motion {
import flash.geom.*;
public class CustomEase implements ITween {
public var points:Array;
private var firstNode:Point;
private var _target:String;// = ""
private var lastNode:Point;
public function CustomEase(_arg1:XML=null){
_target = "";
super();
this.points = [];
this.parseXML(_arg1);
this.firstNode = new Point(0, 0);
this.lastNode = new Point(1, 1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number;
var _local6:Array;
var _local7:Number;
if (_arg4 <= 0){
return (NaN);
};
_local5 = (_arg1 / _arg4);
if (_local5 <= 0){
return (_arg2);
};
if (_local5 >= 1){
return ((_arg2 + _arg3));
};
_local6 = [this.firstNode].concat(this.points);
_local6.push(this.lastNode);
_local7 = getYForPercent(_local5, _local6);
return ((_arg2 + (_local7 * _arg3)));
}
private function parseXML(_arg1:XML=null):CustomEase{
var _local2:XMLList;
var _local3:XML;
if (!_arg1){
return (this);
};
if (_arg1.@target.length()){
this.target = _arg1.@target;
};
_local2 = _arg1.elements();
for each (_local3 in _local2) {
this.points.push(new Point(Number(_local3.@x), Number(_local3.@y)));
};
return (this);
}
static function getYForPercent(_arg1:Number, _arg2:Array):Number{
var _local3:BezierSegment;
var _local4:Array;
var _local5:int;
var _local6:BezierSegment;
var _local7:Number;
var _local8:int;
var _local9:BezierSegment;
_local3 = new BezierSegment(_arg2[0], _arg2[1], _arg2[2], _arg2[3]);
_local4 = [_local3];
_local5 = 3;
while (_local5 < (_arg2.length - 3)) {
_local4.push(new BezierSegment(_arg2[_local5], _arg2[(_local5 + 1)], _arg2[(_local5 + 2)], _arg2[(_local5 + 3)]));
_local5 = (_local5 + 3);
};
_local6 = _local3;
if (_arg2.length >= 5){
_local8 = 0;
while (_local8 < _local4.length) {
_local9 = _local4[_local8];
if ((((_local9.a.x <= _arg1)) && ((_arg1 <= _local9.d.x)))){
_local6 = _local9;
break;
};
_local8++;
};
};
_local7 = _local6.getYForX(_arg1);
return (_local7);
}
}
}//package fl.motion
Section 6
//FunctionEase (fl.motion.FunctionEase)
package fl.motion {
import flash.utils.*;
public class FunctionEase implements ITween {
private var _functionName:String;// = ""
public var parameters:Array;// = null
private var _target:String;// = ""
public var easingFunction:Function;// = null
public function FunctionEase(_arg1:XML=null){
_functionName = "";
easingFunction = null;
parameters = null;
_target = "";
super();
this.parseXML(_arg1);
}
public function get functionName():String{
return (this._functionName);
}
public function set functionName(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:String;
var _local5:Class;
_local2 = _arg1.split(".");
_local3 = _local2.pop();
_local4 = _local2.join(".");
_local5 = (getDefinitionByName(_local4) as Class);
if ((_local5[_local3] is Function)){
this.easingFunction = _local5[_local3];
this._functionName = _arg1;
};
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Array;
if ((this.parameters is Array)){
_local5 = [_arg1, _arg2, _arg3, _arg4].concat(this.parameters);
return (this.easingFunction.apply(null, _local5));
};
return (this.easingFunction(_arg1, _arg2, _arg3, _arg4));
}
private function parseXML(_arg1:XML=null):FunctionEase{
if (!_arg1){
return (this);
};
if (_arg1.@functionName.length()){
this.functionName = _arg1.@functionName;
};
return (this);
}
}
}//package fl.motion
Section 7
//ITween (fl.motion.ITween)
package fl.motion {
public interface ITween {
function get target():String;
function set target(_arg1:String):void;
function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number;
}
}//package fl.motion
Section 8
//Keyframe (fl.motion.Keyframe)
package fl.motion {
import flash.filters.*;
import flash.display.*;
import flash.utils.*;
public class Keyframe {
public var skewX:Number;// = NAN
public var blendMode:String;
public var skewY:Number;// = NAN
public var firstFrame:String;
public var tweenScale:Boolean;// = true
public var cacheAsBitmap:Boolean;// = false
public var rotateTimes:uint;// = 0
public var tweenSync:Boolean;// = false
public var loop:String;
public var scaleX:Number;// = NAN
private var _index:int;// = -1
public var blank:Boolean;// = false
public var tweenSnap:Boolean;// = false
public var scaleY:Number;// = NAN
public var color:Color;
public var rotateDirection:String;
public var orientToPath:Boolean;// = false
public var tweens:Array;
public var label:String;// = ""
public var x:Number;// = NAN
public var y:Number;// = NAN
public var filters:Array;
public function Keyframe(_arg1:XML=null){
_index = -1;
x = NaN;
y = NaN;
scaleX = NaN;
scaleY = NaN;
skewX = NaN;
skewY = NaN;
label = "";
tweenScale = true;
tweenSnap = false;
tweenSync = false;
cacheAsBitmap = false;
blendMode = BlendMode.NORMAL;
rotateDirection = RotateDirection.AUTO;
rotateTimes = 0;
orientToPath = false;
blank = false;
super();
this.tweens = [];
this.filters = [];
this.parseXML(_arg1);
}
public function set index(_arg1:int):void{
this._index = ((_arg1)<0) ? 0 : _arg1;
if (this._index == 0){
this.setDefaults();
};
}
public function getTween(_arg1:String=""):ITween{
var _local2:ITween;
for each (_local2 in this.tweens) {
if ((((((((_local2.target == _arg1)) || ((((_local2.target == "rotation")) && ((((_arg1 == "skewX")) || ((_arg1 == "skewY")))))))) || ((((_local2.target == "position")) && ((((_arg1 == "x")) || ((_arg1 == "y")))))))) || ((((_local2.target == "scale")) && ((((_arg1 == "scaleX")) || ((_arg1 == "scaleY")))))))){
return (_local2);
};
};
return (null);
}
public function setValue(_arg1:String, _arg2:Number):void{
this[_arg1] = _arg2;
}
public function getValue(_arg1:String):Number{
return (Number(this[_arg1]));
}
public function get index():int{
return (this._index);
}
private function setDefaults():void{
if (isNaN(this.x)){
this.x = 0;
};
if (isNaN(this.y)){
this.y = 0;
};
if (isNaN(this.scaleX)){
this.scaleX = 1;
};
if (isNaN(this.scaleY)){
this.scaleY = 1;
};
if (isNaN(this.skewX)){
this.skewX = 0;
};
if (isNaN(this.skewY)){
this.skewY = 0;
};
if (!this.color){
this.color = new Color();
};
}
public function affectsTweenable(_arg1:String=""):Boolean{
return (((((((((((!(_arg1)) || (!(isNaN(this[_arg1]))))) || ((((_arg1 == "color")) && (this.color))))) || ((((_arg1 == "filters")) && (this.filters.length))))) || (this.blank))) || (this.getTween())));
}
private function parseXML(_arg1:XML=null):Keyframe{
var indexString:String;
var indexValue:int;
var tweenableNames:Array;
var tweenableName:String;
var elements:XMLList;
var filtersArray:Array;
var child:XML;
var attribute:XML;
var attributeValue:String;
var name:String;
var tweenChildren:XMLList;
var tweenChild:XML;
var tweenName:String;
var filtersChildren:XMLList;
var filterXML:XML;
var filterName:String;
var filterClassName:String;
var filterClass:Object;
var filterInstance:BitmapFilter;
var filterTypeInfo:XML;
var accessorList:XMLList;
var ratios:Array;
var attrib:XML;
var attribName:String;
var accessor:XML;
var attribType:String;
var attribValue:String;
var uintValue:uint;
var valuesArray:Array;
var xml = _arg1;
if (!xml){
return (this);
};
indexString = xml.@index.toXMLString();
indexValue = parseInt(indexString);
if (indexString){
this.index = indexValue;
} else {
throw (new Error("<Keyframe> is missing the required attribute \"index\"."));
};
if (xml.@label.length()){
this.label = xml.@label;
};
if (xml.@tweenScale.length()){
this.tweenScale = (xml.@tweenScale.toString() == "true");
};
if (xml.@tweenSnap.length()){
this.tweenSnap = (xml.@tweenSnap.toString() == "true");
};
if (xml.@tweenSync.length()){
this.tweenSync = (xml.@tweenSync.toString() == "true");
};
if (xml.@blendMode.length()){
this.blendMode = xml.@blendMode;
};
if (xml.@cacheAsBitmap.length()){
this.cacheAsBitmap = (xml.@cacheAsBitmap.toString() == "true");
};
if (xml.@rotateDirection.length()){
this.rotateDirection = xml.@rotateDirection;
};
if (xml.@rotateTimes.length()){
this.rotateTimes = parseInt(xml.@rotateTimes);
};
if (xml.@orientToPath.length()){
this.orientToPath = (xml.@orientToPath.toString() == "true");
};
if (xml.@blank.length()){
this.blank = (xml.@blank.toString() == "true");
};
tweenableNames = ["x", "y", "scaleX", "scaleY", "rotation", "skewX", "skewY"];
for each (tweenableName in tweenableNames) {
attribute = xml.attribute(tweenableName)[0];
if (!attribute){
} else {
attributeValue = attribute.toString();
if (attributeValue){
this[tweenableName] = Number(attributeValue);
};
};
};
elements = xml.elements();
filtersArray = [];
for each (child in elements) {
name = child.localName();
if (name == "tweens"){
tweenChildren = child.elements();
for each (tweenChild in tweenChildren) {
tweenName = tweenChild.localName();
if (tweenName == "SimpleEase"){
this.tweens.push(new SimpleEase(tweenChild));
} else {
if (tweenName == "CustomEase"){
this.tweens.push(new CustomEase(tweenChild));
} else {
if (tweenName == "BezierEase"){
this.tweens.push(new BezierEase(tweenChild));
} else {
if (tweenName == "FunctionEase"){
this.tweens.push(new FunctionEase(tweenChild));
};
};
};
};
};
} else {
if (name == "filters"){
filtersChildren = child.elements();
for each (filterXML in filtersChildren) {
filterName = filterXML.localName();
filterClassName = ("flash.filters." + filterName);
if (filterName == "AdjustColorFilter"){
} else {
filterClass = getDefinitionByName(filterClassName);
filterInstance = new (filterClass);
filterTypeInfo = describeType(filterInstance);
accessorList = filterTypeInfo.accessor;
ratios = [];
for each (attrib in filterXML.attributes()) {
attribName = attrib.localName();
accessor = accessorList.(@name == attribName)[0];
attribType = accessor.@type;
attribValue = attrib.toString();
if (attribType == "int"){
filterInstance[attribName] = parseInt(attribValue);
} else {
if (attribType == "uint"){
filterInstance[attribName] = (parseInt(attribValue) as uint);
uintValue = (parseInt(attribValue) as uint);
} else {
if (attribType == "Number"){
filterInstance[attribName] = Number(attribValue);
} else {
if (attribType == "Boolean"){
filterInstance[attribName] = (attribValue == "true");
} else {
if (attribType == "Array"){
attribValue = attribValue.substring(1, (attribValue.length - 1));
valuesArray = null;
if ((((attribName == "ratios")) || ((attribName == "colors")))){
valuesArray = splitUint(attribValue);
} else {
if (attribName == "alphas"){
valuesArray = splitNumber(attribValue);
};
};
if (attribName == "ratios"){
ratios = valuesArray;
} else {
if (valuesArray){
filterInstance[attribName] = valuesArray;
};
};
} else {
if (attribType == "String"){
filterInstance[attribName] = attribValue;
};
};
};
};
};
};
};
if (ratios.length){
filterInstance["ratios"] = ratios;
};
filtersArray.push(filterInstance);
};
};
} else {
if (name == "color"){
this.color = Color.fromXML(child);
};
};
};
this.filters = filtersArray;
};
return (this);
}
public function set rotation(_arg1:Number):void{
if (((isNaN(this.skewX)) || (isNaN(this.skewY)))){
this.skewX = _arg1;
} else {
this.skewX = (this.skewX + (_arg1 - this.skewY));
};
this.skewY = _arg1;
}
public function get rotation():Number{
return (this.skewY);
}
private static function splitNumber(_arg1:String):Array{
var _local2:Array;
var _local3:int;
_local2 = _arg1.split(",");
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3] = Number(_local2[_local3]);
_local3++;
};
return (_local2);
}
private static function splitUint(_arg1:String):Array{
var _local2:Array;
var _local3:int;
_local2 = _arg1.split(",");
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3] = (parseInt(_local2[_local3]) as uint);
_local3++;
};
return (_local2);
}
private static function splitInt(_arg1:String):Array{
var _local2:Array;
var _local3:int;
_local2 = _arg1.split(",");
_local3 = 0;
while (_local3 < _local2.length) {
_local2[_local3] = (parseInt(_local2[_local3]) as int);
_local3++;
};
return (_local2);
}
}
}//package fl.motion
Section 9
//MatrixTransformer (fl.motion.MatrixTransformer)
package fl.motion {
import flash.geom.*;
public class MatrixTransformer {
public static function getSkewY(_arg1:Matrix):Number{
return ((Math.atan2(_arg1.b, _arg1.a) * (180 / Math.PI)));
}
public static function getScaleX(_arg1:Matrix):Number{
return (Math.sqrt(((_arg1.a * _arg1.a) + (_arg1.b * _arg1.b))));
}
public static function getScaleY(_arg1:Matrix):Number{
return (Math.sqrt(((_arg1.c * _arg1.c) + (_arg1.d * _arg1.d))));
}
public static function setSkewXRadians(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
_local3 = getScaleY(_arg1);
_arg1.c = (-(_local3) * Math.sin(_arg2));
_arg1.d = (_local3 * Math.cos(_arg2));
}
public static function setRotation(_arg1:Matrix, _arg2:Number):void{
setRotationRadians(_arg1, (_arg2 * (Math.PI / 180)));
}
public static function rotateAroundInternalPoint(_arg1:Matrix, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:Point;
_local5 = new Point(_arg2, _arg3);
_local5 = _arg1.transformPoint(_local5);
_arg1.tx = (_arg1.tx - _local5.x);
_arg1.ty = (_arg1.ty - _local5.y);
_arg1.rotate((_arg4 * (Math.PI / 180)));
_arg1.tx = (_arg1.tx + _local5.x);
_arg1.ty = (_arg1.ty + _local5.y);
}
public static function setSkewX(_arg1:Matrix, _arg2:Number):void{
setSkewXRadians(_arg1, (_arg2 * (Math.PI / 180)));
}
public static function setSkewY(_arg1:Matrix, _arg2:Number):void{
setSkewYRadians(_arg1, (_arg2 * (Math.PI / 180)));
}
public static function setScaleX(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local3 = getScaleX(_arg1);
if (_local3){
_local4 = (_arg2 / _local3);
_arg1.a = (_arg1.a * _local4);
_arg1.b = (_arg1.b * _local4);
} else {
_local5 = getSkewYRadians(_arg1);
_arg1.a = (Math.cos(_local5) * _arg2);
_arg1.b = (Math.sin(_local5) * _arg2);
};
}
public static function setScaleY(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local3 = getScaleY(_arg1);
if (_local3){
_local4 = (_arg2 / _local3);
_arg1.c = (_arg1.c * _local4);
_arg1.d = (_arg1.d * _local4);
} else {
_local5 = getSkewXRadians(_arg1);
_arg1.c = (-(Math.sin(_local5)) * _arg2);
_arg1.d = (Math.cos(_local5) * _arg2);
};
}
public static function setRotationRadians(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
_local3 = getRotationRadians(_arg1);
_local4 = getSkewXRadians(_arg1);
setSkewXRadians(_arg1, ((_local4 + _arg2) - _local3));
setSkewYRadians(_arg1, _arg2);
}
public static function setSkewYRadians(_arg1:Matrix, _arg2:Number):void{
var _local3:Number;
_local3 = getScaleX(_arg1);
_arg1.a = (_local3 * Math.cos(_arg2));
_arg1.b = (_local3 * Math.sin(_arg2));
}
public static function getSkewX(_arg1:Matrix):Number{
return ((Math.atan2(-(_arg1.c), _arg1.d) * (180 / Math.PI)));
}
public static function getSkewYRadians(_arg1:Matrix):Number{
return (Math.atan2(_arg1.b, _arg1.a));
}
public static function getSkewXRadians(_arg1:Matrix):Number{
return (Math.atan2(-(_arg1.c), _arg1.d));
}
public static function getRotation(_arg1:Matrix):Number{
return ((getRotationRadians(_arg1) * (180 / Math.PI)));
}
public static function rotateAroundExternalPoint(_arg1:Matrix, _arg2:Number, _arg3:Number, _arg4:Number):void{
_arg1.tx = (_arg1.tx - _arg2);
_arg1.ty = (_arg1.ty - _arg3);
_arg1.rotate((_arg4 * (Math.PI / 180)));
_arg1.tx = (_arg1.tx + _arg2);
_arg1.ty = (_arg1.ty + _arg3);
}
public static function getRotationRadians(_arg1:Matrix):Number{
return (getSkewYRadians(_arg1));
}
public static function matchInternalPointWithExternal(_arg1:Matrix, _arg2:Point, _arg3:Point):void{
var _local4:Point;
var _local5:Number;
var _local6:Number;
_local4 = _arg1.transformPoint(_arg2);
_local5 = (_arg3.x - _local4.x);
_local6 = (_arg3.y - _local4.y);
_arg1.tx = (_arg1.tx + _local5);
_arg1.ty = (_arg1.ty + _local6);
}
}
}//package fl.motion
Section 10
//Motion (fl.motion.Motion)
package fl.motion {
import flash.filters.*;
import flash.geom.*;
import flash.utils.*;
public class Motion {
private var _keyframesCompact:Array;
public var keyframes:Array;
public var source:Source;
private var _duration:int;// = 0
private static var typeCache:Object = {};
public function Motion(_arg1:XML=null){
var _local2:Keyframe;
_duration = 0;
super();
this.keyframes = [];
this.parseXML(_arg1);
if (!this.source){
this.source = new Source();
};
if (this.duration == 0){
_local2 = new Keyframe();
_local2.index = 0;
this.addKeyframe(_local2);
};
}
public function getFilters(_arg1:Number):Array{
var _local2:Array;
var _local3:Keyframe;
var _local4:Array;
var _local5:Number;
var _local6:ITween;
var _local7:Keyframe;
var _local8:Array;
var _local9:Number;
var _local10:Number;
_local2 = null;
_local3 = this.getCurrentKeyframe(_arg1, "filters");
if (((!(_local3)) || (!(_local3.filters.length)))){
return ([]);
};
_local4 = _local3.filters;
_local5 = (_arg1 - _local3.index);
_local6 = ((_local3.getTween("filters")) || (_local3.getTween()));
if ((((_local5 == 0)) || (!(_local6)))){
_local2 = _local4;
} else {
if (_local6){
_local7 = this.getNextKeyframe(_arg1, "filters");
if (((!(_local7)) || (!(_local7.filters.length)))){
_local2 = _local4;
} else {
_local8 = _local7.filters;
_local9 = (_local7.index - _local3.index);
_local10 = _local6.getValue(_local5, 0, 1, _local9);
_local2 = interpolateFilters(_local4, _local8, _local10);
};
};
};
return (_local2);
}
public function getCurrentKeyframe(_arg1:int, _arg2:String=""):Keyframe{
var _local3:int;
var _local4:Keyframe;
if (((((isNaN(_arg1)) || ((_arg1 < 0)))) || ((_arg1 > (this.duration - 1))))){
return (null);
};
_local3 = _arg1;
while (_local3 > 0) {
_local4 = this.keyframes[_local3];
if (((_local4) && (_local4.affectsTweenable(_arg2)))){
return (_local4);
};
_local3--;
};
return (this.keyframes[0]);
}
public function get duration():int{
if (this._duration < this.keyframes.length){
this._duration = this.keyframes.length;
};
return (this._duration);
}
public function get keyframesCompact():Array{
var _local1:Keyframe;
this._keyframesCompact = [];
for each (_local1 in this.keyframes) {
if (_local1){
this._keyframesCompact.push(_local1);
};
};
return (this._keyframesCompact);
}
private function parseXML(_arg1:XML):Motion{
var _local2:XMLList;
var _local3:Number;
var _local4:XML;
var _local5:XML;
if (!_arg1){
return (this);
};
if (_arg1.@duration.length()){
this._duration = parseInt(_arg1.@duration);
};
_local2 = _arg1.elements();
_local3 = 0;
while (_local3 < _local2.length()) {
_local4 = _local2[_local3];
if (_local4.localName() == "source"){
_local5 = _local4.children()[0];
this.source = new Source(_local5);
} else {
if (_local4.localName() == "Keyframe"){
this.addKeyframe(new Keyframe(_local4));
};
};
_local3++;
};
return (this);
}
public function set duration(_arg1:int):void{
if (_arg1 < this.keyframes.length){
_arg1 = this.keyframes.length;
};
this._duration = _arg1;
}
private function indexOutOfRange(_arg1:int):Boolean{
return (((((isNaN(_arg1)) || ((_arg1 < 0)))) || ((_arg1 > (this.duration - 1)))));
}
public function addKeyframe(_arg1:Keyframe):void{
this.keyframes[_arg1.index] = _arg1;
if (this.duration < this.keyframes.length){
this.duration = this.keyframes.length;
};
}
public function setValue(_arg1:int, _arg2:String, _arg3:Number):void{
var _local4:Keyframe;
if (_arg1 == 0){
return;
};
_local4 = this.keyframes[_arg1];
if (!_local4){
_local4 = new Keyframe();
_local4.index = _arg1;
this.addKeyframe(_local4);
};
_local4.setValue(_arg2, _arg3);
}
public function getNextKeyframe(_arg1:int, _arg2:String=""):Keyframe{
var _local3:int;
var _local4:Keyframe;
if (((((isNaN(_arg1)) || ((_arg1 < 0)))) || ((_arg1 > (this.duration - 1))))){
return (null);
};
_local3 = (_arg1 + 1);
while (_local3 < this.keyframes.length) {
_local4 = this.keyframes[_local3];
if (((_local4) && (_local4.affectsTweenable(_arg2)))){
return (_local4);
};
_local3++;
};
return (null);
}
public function getValue(_arg1:Number, _arg2:String):Number{
var _local3:Number;
var _local4:Keyframe;
var _local5:Number;
var _local6:Number;
var _local7:ITween;
var _local8:String;
var _local9:Keyframe;
var _local10:Number;
var _local11:Number;
var _local12:Number;
_local3 = NaN;
_local4 = this.getCurrentKeyframe(_arg1, _arg2);
if (((!(_local4)) || (_local4.blank))){
return (NaN);
};
_local5 = _local4.getValue(_arg2);
if (((isNaN(_local5)) && ((_local4.index > 0)))){
_local5 = this.getValue((_local4.index - 1), _arg2);
};
if (isNaN(_local5)){
return (NaN);
};
_local6 = (_arg1 - _local4.index);
if (_local6 == 0){
return (_local5);
};
_local7 = ((_local4.getTween(_arg2)) || (_local4.getTween()));
if (((((!(_local7)) || (((!(_local4.tweenScale)) && ((((_arg2 == Tweenables.SCALE_X)) || ((_arg2 == Tweenables.SCALE_Y)))))))) || ((((_local4.rotateDirection == RotateDirection.NONE)) && ((((((_arg2 == Tweenables.ROTATION)) || ((_arg2 == Tweenables.SKEW_X)))) || ((_arg2 == Tweenables.SKEW_Y)))))))){
return (_local5);
};
_local8 = _arg2;
if (_local7.target == ""){
_local8 = "";
};
_local9 = this.getNextKeyframe(_arg1, _local8);
if (((!(_local9)) || (_local9.blank))){
return (_local5);
};
_local10 = _local9.getValue(_arg2);
if (isNaN(_local10)){
_local10 = _local5;
};
_local11 = (_local10 - _local5);
if ((((((_arg2 == Tweenables.SKEW_X)) || ((_arg2 == Tweenables.SKEW_Y)))) || ((_arg2 == Tweenables.ROTATION)))){
if (_local4.rotateDirection == RotateDirection.AUTO){
_local11 = (_local11 % 360);
if (_local11 > 180){
_local11 = (_local11 - 360);
} else {
if (_local11 < -180){
_local11 = (_local11 + 360);
};
};
} else {
if (_local4.rotateDirection == RotateDirection.CW){
if (_local11 < 0){
_local11 = ((_local11 % 360) + 360);
};
_local11 = (_local11 + (_local4.rotateTimes * 360));
} else {
if (_local11 > 0){
_local11 = ((_local11 % 360) - 360);
};
_local11 = (_local11 - (_local4.rotateTimes * 360));
};
};
};
_local12 = (_local9.index - _local4.index);
_local3 = _local7.getValue(_local6, _local5, _local11, _local12);
return (_local3);
}
public function set keyframesCompact(_arg1:Array):void{
var _local2:Keyframe;
this._keyframesCompact = _arg1.concat();
this.keyframes = [];
for each (_local2 in this._keyframesCompact) {
this.addKeyframe(_local2);
};
}
public function getColorTransform(_arg1:int):ColorTransform{
var _local2:ColorTransform;
var _local3:Keyframe;
var _local4:ColorTransform;
var _local5:Number;
var _local6:ITween;
var _local7:Keyframe;
var _local8:ColorTransform;
var _local9:Number;
var _local10:Number;
_local2 = null;
_local3 = this.getCurrentKeyframe(_arg1, "color");
if (((!(_local3)) || (!(_local3.color)))){
return (null);
};
_local4 = _local3.color;
_local5 = (_arg1 - _local3.index);
_local6 = ((((_local3.getTween("color")) || (_local3.getTween("alpha")))) || (_local3.getTween()));
if ((((_local5 == 0)) || (!(_local6)))){
_local2 = _local4;
} else {
if (_local6){
_local7 = this.getNextKeyframe(_arg1, "color");
if (((!(_local7)) || (!(_local7.color)))){
_local2 = _local4;
} else {
_local8 = _local7.color;
_local9 = (_local7.index - _local3.index);
_local10 = _local6.getValue(_local5, 0, 1, _local9);
_local2 = Color.interpolateTransform(_local4, _local8, _local10);
};
};
};
return (_local2);
}
private static function getTypeInfo(_arg1):XML{
var _local2:String;
_local2 = "";
if ((_arg1 is String)){
_local2 = _arg1;
} else {
_local2 = getQualifiedClassName(_arg1);
};
if ((_local2 in typeCache)){
return (typeCache[_local2]);
};
if ((_arg1 is String)){
_arg1 = getDefinitionByName(_arg1);
};
return ((typeCache[_local2] = describeType(_arg1)));
}
public static function interpolateFilter(_arg1:BitmapFilter, _arg2:BitmapFilter, _arg3:Number):BitmapFilter{
var _local4:Number;
var _local5:BitmapFilter;
var _local6:XML;
var _local7:XMLList;
var _local8:XML;
var _local9:String;
var _local10:String;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:Array;
var _local15:Array;
var _local16:Array;
var _local17:int;
var _local18:int;
var _local19:int;
var _local20:int;
var _local21:int;
var _local22:Number;
var _local23:uint;
var _local24:Number;
var _local25:int;
var _local26:Number;
var _local27:uint;
var _local28:Number;
var _local29:int;
var _local30:uint;
var _local31:Number;
if (((!(_arg2)) || (!((_arg1["constructor"] == _arg2["constructor"]))))){
return (_arg1);
};
if (_arg3 > 1){
_arg3 = 1;
} else {
if (_arg3 < 0){
_arg3 = 0;
};
};
_local4 = (1 - _arg3);
_local5 = _arg1.clone();
_local6 = getTypeInfo(_arg1);
_local7 = _local6.accessor;
for each (_local8 in _local7) {
_local9 = _local8.@name.toString();
_local10 = _local8.@type;
if ((((_local10 == "Number")) || ((_local10 == "int")))){
_local5[_local9] = ((_arg1[_local9] * _local4) + (_arg2[_local9] * _arg3));
} else {
if (_local10 == "uint"){
switch (_local9){
case "color":
case "highlightColor":
case "shadowColor":
_local11 = _arg1[_local9];
_local12 = _arg2[_local9];
_local13 = Color.interpolateColor(_local11, _local12, _arg3);
_local5[_local9] = _local13;
break;
default:
_local5[_local9] = ((_arg1[_local9] * _local4) + (_arg2[_local9] * _arg3));
break;
};
};
};
};
if ((((_arg1 is GradientGlowFilter)) || ((_arg1 is GradientBevelFilter)))){
_local14 = [];
_local15 = [];
_local16 = [];
_local17 = _arg1["ratios"].length;
_local18 = _arg2["ratios"].length;
_local19 = Math.max(_local17, _local18);
_local20 = 0;
while (_local20 < _local19) {
_local21 = Math.min(_local20, (_local17 - 1));
_local22 = _arg1["ratios"][_local21];
_local23 = _arg1["colors"][_local21];
_local24 = _arg1["alphas"][_local21];
_local25 = Math.min(_local20, (_local18 - 1));
_local26 = _arg2["ratios"][_local25];
_local27 = _arg2["colors"][_local25];
_local28 = _arg2["alphas"][_local25];
_local29 = ((_local22 * _local4) + (_local26 * _arg3));
_local30 = Color.interpolateColor(_local23, _local27, _arg3);
_local31 = ((_local24 * _local4) + (_local28 * _arg3));
_local14[_local20] = _local29;
_local15[_local20] = _local30;
_local16[_local20] = _local31;
_local20++;
};
_local5["colors"] = _local15;
_local5["alphas"] = _local16;
_local5["ratios"] = _local14;
};
return (_local5);
}
public static function interpolateFilters(_arg1:Array, _arg2:Array, _arg3:Number):Array{
var _local4:Array;
var _local5:int;
var _local6:BitmapFilter;
var _local7:BitmapFilter;
var _local8:BitmapFilter;
if (_arg1.length != _arg2.length){
return (null);
};
_local4 = [];
_local5 = 0;
while (_local5 < _arg1.length) {
_local6 = _arg1[_local5];
_local7 = _arg2[_local5];
_local8 = interpolateFilter(_local6, _local7, _arg3);
if (_local8){
_local4.push(_local8);
};
_local5++;
};
return (_local4);
}
public static function fromXMLString(_arg1:String):Motion{
var _local2:XML;
_local2 = new XML(_arg1);
return (new Motion(_local2));
}
}
}//package fl.motion
Section 11
//MotionEvent (fl.motion.MotionEvent)
package fl.motion {
import flash.events.*;
public class MotionEvent extends Event {
public static const MOTION_UPDATE:String = "motionUpdate";
public static const TIME_CHANGE:String = "timeChange";
public static const MOTION_START:String = "motionStart";
public static const MOTION_END:String = "motionEnd";
public function MotionEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new MotionEvent(this.type, this.bubbles, this.cancelable));
}
}
}//package fl.motion
Section 12
//RotateDirection (fl.motion.RotateDirection)
package fl.motion {
public class RotateDirection {
public static const CW:String = "cw";
public static const CCW:String = "ccw";
public static const NONE:String = "none";
public static const AUTO:String = "auto";
}
}//package fl.motion
Section 13
//SimpleEase (fl.motion.SimpleEase)
package fl.motion {
public class SimpleEase implements ITween {
private var _ease:Number;// = 0
private var _target:String;// = ""
public function SimpleEase(_arg1:XML=null){
_ease = 0;
_target = "";
super();
this.parseXML(_arg1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
private function parseXML(_arg1:XML=null):SimpleEase{
if (_arg1){
if (_arg1.@ease.length()){
this.ease = Number(_arg1.@ease);
};
};
return (this);
}
public function get ease():Number{
return (this._ease);
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (easeQuadPercent(_arg1, _arg2, _arg3, _arg4, this.ease));
}
public function set ease(_arg1:Number):void{
this._ease = ((_arg1 > 1)) ? 1 : ((_arg1 < -1)) ? -1 : (isNaN(_arg1)) ? 0 : _arg1;
}
public static function easeQuadPercent(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Number{
if (_arg4 <= 0){
return (NaN);
};
if (_arg1 <= 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 >= 1){
return ((_arg2 + _arg3));
};
if (!_arg5){
return (((_arg3 * _arg1) + _arg2));
};
if (_arg5 > 1){
_arg5 = 1;
} else {
if (_arg5 < -1){
_arg5 = -1;
};
};
if (_arg5 < 0){
return ((((_arg3 * _arg1) * ((_arg1 * -(_arg5)) + (1 + _arg5))) + _arg2));
};
return ((((_arg3 * _arg1) * (((2 - _arg1) * _arg5) + (1 - _arg5))) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg4 <= 0){
return (NaN);
};
if (_arg1 <= 0){
return (_arg2);
};
if (_arg1 >= _arg4){
return ((_arg2 + _arg3));
};
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.motion
Section 14
//Source (fl.motion.Source)
package fl.motion {
import flash.geom.*;
public class Source {
public var instanceName:String;// = ""
public var symbolName:String;// = ""
public var dimensions:Rectangle;
public var scaleX:Number;// = 1
public var skewY:Number;// = 0
public var skewX:Number;// = 0
public var scaleY:Number;// = 1
public var elementType:String;// = ""
public var transformationPoint:Point;
public var linkageID:String;// = ""
public var frameRate:Number;// = NAN
public var x:Number;// = 0
public var y:Number;// = 0
public var rotation:Number;// = 0
public function Source(_arg1:XML=null){
frameRate = NaN;
elementType = "";
symbolName = "";
instanceName = "";
linkageID = "";
x = 0;
y = 0;
scaleX = 1;
scaleY = 1;
skewX = 0;
skewY = 0;
rotation = 0;
super();
this.parseXML(_arg1);
}
private function parseXML(_arg1:XML=null):Source{
var _local2:XMLList;
var _local3:XML;
var _local4:XML;
var _local5:XML;
if (!_arg1){
return (this);
};
if (_arg1.@instanceName){
this.instanceName = String(_arg1.@instanceName);
};
if (_arg1.@symbolName){
this.symbolName = String(_arg1.@symbolName);
};
if (_arg1.@linkageID){
this.linkageID = String(_arg1.@linkageID);
};
if (!isNaN(_arg1.@frameRate)){
this.frameRate = Number(_arg1.@frameRate);
};
_local2 = _arg1.elements();
for each (_local3 in _local2) {
if (_local3.localName() == "transformationPoint"){
_local4 = _local3.children()[0];
this.transformationPoint = new Point(Number(_local4.@x), Number(_local4.@y));
} else {
if (_local3.localName() == "dimensions"){
_local5 = _local3.children()[0];
this.dimensions = new Rectangle(Number(_local5.@left), Number(_local5.@top), Number(_local5.@width), Number(_local5.@height));
};
};
};
return (this);
}
}
}//package fl.motion
Section 15
//Tweenables (fl.motion.Tweenables)
package fl.motion {
public class Tweenables {
public static const SCALE_X:String = "scaleX";
public static const SCALE_Y:String = "scaleY";
public static const SKEW_X:String = "skewX";
public static const SKEW_Y:String = "skewY";
public static const X:String = "x";
public static const Y:String = "y";
public static const ROTATION:String = "rotation";
}
}//package fl.motion
Section 16
//backgrounds_level3_speedboatmv_28 (fowlplay_ng_fla.backgrounds_level3_speedboatmv_28)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class backgrounds_level3_speedboatmv_28 extends MovieClip {
public function backgrounds_level3_speedboatmv_28(){
addFrameScript(421, frame422);
}
function frame422(){
stop();
}
}
}//package fowlplay_ng_fla
Section 17
//bars_111 (fowlplay_ng_fla.bars_111)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class bars_111 extends MovieClip {
public var skip_mc:MovieClip;
}
}//package fowlplay_ng_fla
Section 18
//bird3_mc_243 (fowlplay_ng_fla.bird3_mc_243)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class bird3_mc_243 extends MovieClip {
public function bird3_mc_243(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package fowlplay_ng_fla
Section 19
//bird5_attack_271 (fowlplay_ng_fla.bird5_attack_271)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class bird5_attack_271 extends MovieClip {
public function bird5_attack_271(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package fowlplay_ng_fla
Section 20
//bird5_attack_leg_272 (fowlplay_ng_fla.bird5_attack_leg_272)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class bird5_attack_leg_272 extends MovieClip {
public function bird5_attack_leg_272(){
addFrameScript(5, frame6);
}
function frame6(){
gotoAndPlay(5);
}
}
}//package fowlplay_ng_fla
Section 21
//end_credits_217 (fowlplay_ng_fla.end_credits_217)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class end_credits_217 extends MovieClip {
public var link_mc:endLink;
public var musicLink:MovieClip;
}
}//package fowlplay_ng_fla
Section 22
//end2_194 (fowlplay_ng_fla.end2_194)
package fowlplay_ng_fla {
import flash.filters.*;
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class end2_194 extends MovieClip {
public var endBox:MovieClip;
public var scoreBoard_mc:final_score;
public var bars_mc:MovieClip;
public var menu_btn:MovieClip;
public function end2_194(){
addFrameScript(0, frame1, 233, frame234, 387, frame388, 404, frame405);
}
function frame1(){
Mouse.show();
}
function frame234(){
SoundMixer.stopAll();
}
function frame405(){
stop();
menu_btn.addEventListener(MouseEvent.CLICK, gotoMain);
menu_btn.buttonMode = true;
endBox.musicLink.addEventListener(MouseEvent.MOUSE_DOWN, gotoLink3);
endBox.musicLink.buttonMode = true;
endBox.link_mc.addEventListener(MouseEvent.MOUSE_DOWN, gotoLink2);
endBox.link_mc.buttonMode = true;
}
public function gotoMain(_arg1:Event):void{
menu_btn.removeEventListener(MouseEvent.CLICK, gotoMain);
endBox.musicLink.removeEventListener(MouseEvent.MOUSE_DOWN, gotoLink3);
endBox.link_mc.removeEventListener(MouseEvent.MOUSE_DOWN, gotoLink2);
MovieClip(this.parent).gotoAndStop(3);
}
public function gotoLink2(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesquat.com/free-online-games/");
navigateToURL(_local2);
endBox.link_mc.removeEventListener(MouseEvent.MOUSE_DOWN, gotoLink2);
}
public function gotoLink3(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://nemesistheory.newgrounds.com");
navigateToURL(_local2);
endBox.musicLink.removeEventListener(MouseEvent.MOUSE_DOWN, gotoLink3);
}
function frame388(){
trace(MovieClip(this.parent).endScore.toString());
MovieClip(this.parent).skipHide_mc.visible = false;
scoreBoard_mc.score_txt.text = MovieClip(this.parent).endScore.toString();
}
}
}//package fowlplay_ng_fla
Section 23
//gamesquat_intro_31 (fowlplay_ng_fla.gamesquat_intro_31)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class gamesquat_intro_31 extends MovieClip {
public function gamesquat_intro_31(){
addFrameScript(264, frame265);
}
function frame265(){
MovieClip(this.parent).play();
}
}
}//package fowlplay_ng_fla
Section 24
//hud_btm_154 (fowlplay_ng_fla.hud_btm_154)
package fowlplay_ng_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hud_btm_154 extends MovieClip {
public var speedo_mc:MovieClip;
public var score_txt:TextField;
public var shitoMeter:MovieClip;
public var combo_mc:MovieClip;
public var weaponSelect_mc:MovieClip;
}
}//package fowlplay_ng_fla
Section 25
//hud_combo_167 (fowlplay_ng_fla.hud_combo_167)
package fowlplay_ng_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hud_combo_167 extends MovieClip {
public var combo_txt:TextField;
public var comboBar_mc:MovieClip;
}
}//package fowlplay_ng_fla
Section 26
//hud_combo_timer_168 (fowlplay_ng_fla.hud_combo_timer_168)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class hud_combo_timer_168 extends MovieClip {
public function hud_combo_timer_168(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package fowlplay_ng_fla
Section 27
//hud_poo_bar_157 (fowlplay_ng_fla.hud_poo_bar_157)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class hud_poo_bar_157 extends MovieClip {
public function hud_poo_bar_157(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package fowlplay_ng_fla
Section 28
//hud_progress_178 (fowlplay_ng_fla.hud_progress_178)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class hud_progress_178 extends MovieClip {
public function hud_progress_178(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package fowlplay_ng_fla
Section 29
//hud_quality_170 (fowlplay_ng_fla.hud_quality_170)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class hud_quality_170 extends MovieClip {
public function hud_quality_170(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package fowlplay_ng_fla
Section 30
//hud_speedo_155 (fowlplay_ng_fla.hud_speedo_155)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class hud_speedo_155 extends MovieClip {
public var needle_mc:MovieClip;
}
}//package fowlplay_ng_fla
Section 31
//hud_top_169 (fowlplay_ng_fla.hud_top_169)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class hud_top_169 extends MovieClip {
public var qualityPress_mc:MovieClip;
public var muteButton_mc:hud_mute;
public var quality_mc:MovieClip;
public function hud_top_169(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package fowlplay_ng_fla
Section 32
//hud_top2_177 (fowlplay_ng_fla.hud_top2_177)
package fowlplay_ng_fla {
import flash.display.*;
import flash.text.*;
public dynamic class hud_top2_177 extends MovieClip {
public var targetScore_mc:MovieClip;
public var targetScore_txt:TextField;
public var highCombo_txt:TextField;
}
}//package fowlplay_ng_fla
Section 33
//hud_weapon_159 (fowlplay_ng_fla.hud_weapon_159)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class hud_weapon_159 extends MovieClip {
public function hud_weapon_159(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package fowlplay_ng_fla
Section 34
//intro_120 (fowlplay_ng_fla.intro_120)
package fowlplay_ng_fla {
import flash.display.*;
import flash.media.*;
public dynamic class intro_120 extends MovieClip {
public var flower:MovieClip;
public var bars_mc:MovieClip;
public function intro_120(){
addFrameScript(149, frame150, 679, frame680);
}
function frame680(){
MovieClip(this.parent).nextFrame();
}
function frame150(){
SoundMixer.stopAll();
}
}
}//package fowlplay_ng_fla
Section 35
//jimp_intro_57 (fowlplay_ng_fla.jimp_intro_57)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class jimp_intro_57 extends MovieClip {
public function jimp_intro_57(){
addFrameScript(104, frame105);
}
function frame105(){
MovieClip(this.parent).play();
}
}
}//package fowlplay_ng_fla
Section 36
//loadObject1_93 (fowlplay_ng_fla.loadObject1_93)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class loadObject1_93 extends MovieClip {
public function loadObject1_93(){
addFrameScript(0, frame1, 33, frame34);
}
function frame1(){
stop();
}
function frame34(){
stop();
}
}
}//package fowlplay_ng_fla
Section 37
//loadObject10_98 (fowlplay_ng_fla.loadObject10_98)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class loadObject10_98 extends MovieClip {
public function loadObject10_98(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
stop();
}
}
}//package fowlplay_ng_fla
Section 38
//loadObject2_91 (fowlplay_ng_fla.loadObject2_91)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class loadObject2_91 extends MovieClip {
public function loadObject2_91(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
stop();
}
function frame62(){
stop();
}
}
}//package fowlplay_ng_fla
Section 39
//loadObject3_107 (fowlplay_ng_fla.loadObject3_107)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class loadObject3_107 extends MovieClip {
public function loadObject3_107(){
addFrameScript(0, frame1, 33, frame34);
}
function frame1(){
stop();
}
function frame34(){
stop();
}
}
}//package fowlplay_ng_fla
Section 40
//loadObject4_108 (fowlplay_ng_fla.loadObject4_108)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class loadObject4_108 extends MovieClip {
public function loadObject4_108(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package fowlplay_ng_fla
Section 41
//loadObject5_100 (fowlplay_ng_fla.loadObject5_100)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class loadObject5_100 extends MovieClip {
public function loadObject5_100(){
addFrameScript(0, frame1, 66, frame67);
}
function frame1(){
stop();
}
function frame67(){
stop();
}
}
}//package fowlplay_ng_fla
Section 42
//loadObject6_96 (fowlplay_ng_fla.loadObject6_96)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class loadObject6_96 extends MovieClip {
public function loadObject6_96(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package fowlplay_ng_fla
Section 43
//MainTimeline (fowlplay_ng_fla.MainTimeline)
package fowlplay_ng_fla {
import flash.filters.*;
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var game_mc:MovieClip;
public var skipHide_mc:MovieClip;
public var total:Number;
public var loadingMovie:MovieClip;
public var finalTimer:Timer;
public var bar_mc:loadingBar;
public var tune1Channel:SoundChannel;
public var endScore:Number;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
public function doneLoading1():void{
this.removeEventListener(Event.ENTER_FRAME, loading1);
gotoAndStop(1, "Scene 3");
}
public function loading(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:*;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
_local4 = ((_local3 / _local2) * 100);
if ((((_local4 > 10)) && ((loadingMovie.load1.currentFrame < 2)))){
loadingMovie.load1.play();
} else {
if ((((_local4 > 20)) && ((loadingMovie.load2.currentFrame < 2)))){
loadingMovie.load2.play();
} else {
if ((((_local4 > 35)) && ((loadingMovie.load3.currentFrame < 2)))){
loadingMovie.load3.play();
} else {
if ((((_local4 > 55)) && ((loadingMovie.load4.currentFrame < 2)))){
loadingMovie.load4.play();
} else {
if ((((_local4 > 70)) && ((loadingMovie.load5.currentFrame < 2)))){
loadingMovie.load5.play();
} else {
if ((((_local4 > 85)) && ((loadingMovie.load6.currentFrame < 2)))){
loadingMovie.load6.play();
} else {
if ((((_local4 >= 100)) && ((loadingMovie.load7.currentFrame < 2)))){
loadingMovie.load7.play();
finalTimer.start();
};
};
};
};
};
};
};
}
function frame3(){
stop();
game_mc.addEventListener(MouseEvent.MOUSE_DOWN, gotoLink);
game_mc.buttonMode = true;
}
public function doneLoading(_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, loading);
finalTimer.removeEventListener(TimerEvent.TIMER, doneLoading);
loadingMovie.play();
}
function frame7(){
stop();
endScore = 0;
trace(("your score: " + endScore));
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, loading1);
total = this.stage.loaderInfo.bytesTotal;
trace(total);
}
function frame6(){
stop();
loadingMovie.bars_mc.skip_mc.setVisible = true;
loadingMovie.bars_mc.skip_mc.buttonMode = true;
loadingMovie.bars_mc.skip_mc.addEventListener(MouseEvent.CLICK, skipScene);
}
public function loading1(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:*;
_local2 = this.stage.loaderInfo.bytesTotal;
_local3 = this.stage.loaderInfo.bytesLoaded;
_local4 = ((_local3 / _local2) * 100);
trace(_local4);
bar_mc.gotoAndStop(Math.floor(_local4));
if (_local4 == 100){
doneLoading1();
};
}
function frame4(){
stop();
}
function frame5(){
stop();
this.addEventListener(Event.ENTER_FRAME, loading);
finalTimer = new Timer(2000, 1);
finalTimer.addEventListener(TimerEvent.TIMER, doneLoading);
Mouse.show();
MochiBot.track(this, "98997062");
}
public function skipScene(_arg1:Event):void{
var _local2:Tune1;
var _local3:SoundChannel;
var _local4:SoundTransform;
loadingMovie.bars_mc.skip_mc.removeEventListener(MouseEvent.CLICK, skipScene);
SoundMixer.stopAll();
_local2 = new Tune1();
_local4 = new SoundTransform();
_local4.volume = 0.4;
_local3 = _local2.play(0, int.MAX_VALUE);
_local3.soundTransform = _local4;
nextFrame();
}
public function gotoLink(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesquat.com/free-online-games/");
navigateToURL(_local2);
game_mc.removeEventListener(MouseEvent.MOUSE_DOWN, gotoLink);
}
}
}//package fowlplay_ng_fla
Section 44
//mcEntireGame_148 (fowlplay_ng_fla.mcEntireGame_148)
package fowlplay_ng_fla {
import fl.motion.*;
import flash.filters.*;
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mcEntireGame_148 extends MovieClip {
public var shitStreakTotal:Number;
public var contraption_mc:MovieClip;
public var floatCount:int;
public var tutorial_mc:newtutorial;
public var stageLeft:Number;
public var owlTimer;
public var continue_mc:MovieClip;
public var turretHeight:Number;
public var cloudCreator:Timer;
public var transform1:SoundTransform;
public var enemyList:Array;
public var soundBtnUp:Boolean;
public var floatTimer:Timer;
public var comboTimer:Timer;
public var owlDelay:Number;
public var shotTimer:Timer;
public var weap2:Boolean;
public var loadEnemy:int;
public var targetsOnScreen:Array;
public var totalFrame:int;
public var comboLevel:Number;
public var hudTop_mc:MovieClip;
public var score:Number;
public var stats:Stats;
public var wonkTargetY:Number;
public var contVelX:Number;
public var contVelY:Number;
public var turretWidth:Number;
public var wonkTargetX:Number;
public var level3Back;
public var weaponSelected:int;
public var targetX:int;
public var targetY:int;
public var framesToSkip:int;
public var propHit_mc:MovieClip;
public var blockGap:int;
public var song:Tune1;
public var swallowTimer;
public var count:int;
public var topHud2_mc:MovieClip;
public var birdHalf2;
public var easing:int;
public var wonkyTimer:Timer;
public var poisonTimer:Timer;
public var birdHalf1;
public var loadBlock:int;
public var enterTimer:Timer;
public var escaped_mc:MovieClip;
public var vcam_mc_xml:XML;
public var swallowDelay:Number;
public var highestCombo:int;
public var levels:Array;
public var mouse_mc:cursor;
public var enemiesOnScreen:Boolean;
public var primingLevel:Level1;
public var currentFrames:int;
public var targetScore:Array;
public var simpleBird:SimpleBird;
public var seagullTimer;
public var currentLevel:Number;
public var monsterTimer;
public var eagleTimer;
public var pooEasing:int;
public var stageRight:Number;
public var monsterDelay:Number;
public var vcam_mc_animator:Animator;
public var restart_mc:mcRestart;
public var endOfLevelTimer;
public var seagullDelay:Number;
public var previousScore:Number;
public var hud_mc:MovieClip;
public var eagleDelay:Number;
public var levelCount:int;
public var comboIncrease:Number;
public var distance:int;
public var finalScore_mc:final_score_thin;
public var vcam_mc:MovieClip;
public var comboMultiplyer:Number;
public function mcEntireGame_148(){
addFrameScript(0, frame1);
}
public function shootPoison(_arg1:Event):void{
var _local2:int;
var _local3:*;
trace("in shootPoison");
if (shitStreakTotal < 1){
endShitStreak();
} else {
_local2 = Math.ceil((Math.random() * 4));
switch (_local2){
case 1:
_local3 = new PoisonPoo1(targetsOnScreen);
break;
case 2:
_local3 = new PoisonPoo2(targetsOnScreen);
break;
case 3:
_local3 = new PoisonPoo3(targetsOnScreen);
break;
case 4:
_local3 = new PoisonPoo4(targetsOnScreen);
break;
};
trace("poo chosen");
_local3.x = (contraption_mc.x + (contraption_mc.width / 9));
_local3.y = (contraption_mc.y + (contraption_mc.height / 2));
_local3.scaleX = contraption_mc.scaleX;
_local3._initX = (((targetX - contraption_mc.x) / pooEasing) * -1);
_local3.scaleY = contraption_mc.scaleY;
trace("adding poo");
addChildAt(_local3, (getChildIndex(hud_mc) - 1));
shitStreakTotal = (shitStreakTotal - 2);
};
}
public function removeFloat():void{
floatCount--;
stage.addEventListener(KeyboardEvent.KEY_DOWN, shootFloat);
}
public function addFloat():void{
floatCount++;
if (floatCount < 2){
stage.addEventListener(KeyboardEvent.KEY_DOWN, shootFloat);
};
}
public function zoomIn():void{
vcam_mc_xml = <Motion duration="28" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="30" x="273.7" y="248.65" scaleX="0.993" scaleY="1.242" rotation="0" elementType="movie clip" instanceName="vcam_mc" symbolName="VCam_AS3_Interactive">
<dimensions>
<geom:Rectangle left="-275" top="-200" width="550" height="400"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="27" tweenSnap="true" tweenSync="true" x="-17.599999999999966" y="-16" scaleX="0.5579053373615308" scaleY="0.5571658615136875">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
</Motion>
;
vcam_mc_animator = new Animator(vcam_mc_xml, vcam_mc);
vcam_mc_animator.play();
}
public function initComponents(_arg1:Event):void{
turretWidth = (contraption_mc.width / 10);
turretHeight = (contraption_mc.height / 5);
hudTop_mc.addEventListener(MouseEvent.MOUSE_OVER, showMouse);
propHit_mc.visible = false;
easing = 5;
pooEasing = 50;
weaponSelected = 1;
score = 0;
comboLevel = 0;
shotTimer = new Timer(300, 1);
targetsOnScreen = new Array();
cloudCreator.start();
contraption_mc.removeEventListener(Event.ENTER_FRAME, finalPosition);
this.addEventListener(MouseEvent.MOUSE_MOVE, moveCursor);
Mouse.hide();
this.addEventListener(Event.ENTER_FRAME, updateDisplay);
contraption_mc.removeEventListener(MouseEvent.CLICK, initComponents);
stage.focus = stage;
removeChild(tutorial_mc);
levelLoader();
}
function frame1(){
stop();
comboMultiplyer = 1;
comboIncrease = 0.25;
comboLevel = 0;
shitStreakTotal = 0;
highestCombo = 0;
targetScore = new Array(3200, 7000, 18000);
cloudCreator = new Timer((Math.random() * 7000), 1);
wonkyTimer = new Timer(20, 50);
endOfLevelTimer = new Timer(4000, 1);
currentLevel = 0;
transform1 = new SoundTransform();
song = new Tune1();
weap2 = false;
levelCount = 0;
levels = new Array(new Level1(), new Level2(), new Level3());
levels[1]._velocX = -0.2;
levels[2]._velocX = -0.18;
level3Back = new Level3Back();
previousScore = 0;
primingLevel = new Level1();
primingLevel.x = 0;
primingLevel.y = 240;
addChildAt(primingLevel, 1);
stageRight = (stage.stageWidth + 20);
stageLeft = -40;
hud_mc.combo_mc.comboBar_mc.gotoAndStop(60);
cloudCreator.addEventListener(TimerEvent.TIMER, cloudFactory);
hudTop_mc.qualityPress_mc.addEventListener(MouseEvent.CLICK, qualityControl);
hudTop_mc.muteButton_mc.addEventListener(MouseEvent.CLICK, soundControl);
contraption_mc.addEventListener(Event.ENTER_FRAME, startGame);
soundBtnUp = true;
swallowDelay = 10000;
eagleDelay = 10000;
seagullDelay = 8000;
owlDelay = 20000;
monsterDelay = 1500;
eagleTimer = new Timer(((Math.random() * 10000) + eagleDelay));
swallowTimer = new Timer(((Math.random() * 10000) + swallowDelay));
seagullTimer = new Timer(((Math.random() * 10000) + seagullDelay));
owlTimer = new Timer(((Math.random() * 10000) + owlDelay));
monsterTimer = new Timer(((Math.random() * 300) + monsterDelay));
vcam_mc.visible = false;
removeChild(finalScore_mc);
removeChild(restart_mc);
removeChild(continue_mc);
}
public function createEagle(_arg1:Event):void{
var _local2:*;
_local2 = new EagleBird(contraption_mc);
_local2.x = ((0 - _local2.width) - 30);
_local2.y = ((Math.random() * (stage.stageHeight - 200)) + 80);
_local2.scaleX = ((Math.random() * 0.3) + 0.4);
_local2.scaleY = _local2.scaleX;
targetsOnScreen.push(_local2);
addChildAt(_local2, getChildIndex(contraption_mc));
}
public function goWonky():void{
vcam_mc_xml = <Motion duration="30" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="30" x="275.3" y="249.25" scaleX="1" scaleY="1.25" rotation="0" elementType="movie clip" instanceName="vcam_mc" symbolName="VCam_AS3_Interactive">
<dimensions>
<geom:Rectangle left="-275" top="-200" width="550" height="400"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="1" tweenSnap="true" tweenSync="true" x="0.05000000000001137" y="1.1500000000000057">
<color>
<Color redMultiplier="0.64" greenMultiplier="0.64" blueMultiplier="0.64" alphaMultiplier="1" redOffset="93" greenOffset="0" blueOffset="0" alphaOffset="0"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="2" tweenSnap="true" tweenSync="true" y="-1.75">
<color>
<Color tintColor="0xFF0000" tintMultiplier="0.73"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="3" tweenSnap="true" tweenSync="true" x="-1.9499999999999886" y="-1.1999999999999886">
<color>
<Color redMultiplier="0.41" greenMultiplier="0.41" blueMultiplier="0.41" alphaMultiplier="1" redOffset="149" greenOffset="0" blueOffset="0" alphaOffset="0"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="4" tweenSnap="true" tweenSync="true" x="0.5999999999999659" y="1.3000000000000114">
<color>
<Color redMultiplier="0.56" greenMultiplier="0.56" blueMultiplier="0.56" alphaMultiplier="1" redOffset="112" greenOffset="0" blueOffset="0" alphaOffset="0"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="5" tweenSnap="true" tweenSync="true" x="0.44999999999998863" y="3.0999999999999943">
<color>
<Color redMultiplier="0.71" greenMultiplier="0.71" blueMultiplier="0.71" alphaMultiplier="1" redOffset="75" greenOffset="0" blueOffset="0" alphaOffset="0"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="6" tweenSnap="true" tweenSync="true" x="3.3000000000000114" y="2">
<color>
<Color redMultiplier="0.86" greenMultiplier="0.86" blueMultiplier="0.86" alphaMultiplier="1" redOffset="38" greenOffset="0" blueOffset="0" alphaOffset="0"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="7" tweenSnap="true" tweenSync="true" x="-0.8500000000000227" y="0.9000000000000057">
<color>
<Color/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="8" tweenSnap="true" tweenSync="true" x="0.14999999999997726" y="-2.0999999999999943">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="9" tweenSnap="true" tweenSync="true" y="5.050000000000011">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="10" tweenSnap="true" tweenSync="true" y="2.8000000000000114">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="11" tweenSnap="true" tweenSync="true" x="2.1499999999999773" y="2.6500000000000057">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="12" tweenSnap="true" tweenSync="true" x="-3" y="2.5500000000000114">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="13" tweenSnap="true" tweenSync="true" x="-0.8000000000000114" y="5.400000000000006">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="14" tweenSnap="true" tweenSync="true" x="3.099999999999966" y="4">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="15" tweenSnap="true" tweenSync="true" x="-2.0500000000000114" y="-2.0999999999999943">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="16" tweenSnap="true" tweenSync="true" x="-1.9499999999999886" y="3.0500000000000114">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="17" tweenSnap="true" tweenSync="true" x="0.14999999999997726" y="0.9000000000000057">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="18" tweenSnap="true" tweenSync="true" y="-2.0999999999999943">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="19" tweenSnap="true" tweenSync="true" y="5.050000000000011">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="20" tweenSnap="true" tweenSync="true" y="2.8000000000000114">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="21" tweenSnap="true" tweenSync="true" x="2.1499999999999773" y="2.6500000000000057">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="22" tweenSnap="true" tweenSync="true" x="-3" y="2.5500000000000114">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="23" tweenSnap="true" tweenSync="true" x="-0.8000000000000114" y="5.400000000000006">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="24" tweenSnap="true" tweenSync="true" x="3.099999999999966" y="4">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="25" tweenSnap="true" tweenSync="true" x="-2.0500000000000114" y="-2.0999999999999943">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="26" tweenSnap="true" tweenSync="true" x="-1.9499999999999886" y="3.0500000000000114">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="27" tweenSnap="true" tweenSync="true" x="0.14999999999997726" y="0.9000000000000057">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="28" tweenSnap="true" tweenSync="true" y="-2.0999999999999943">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="29" tweenSnap="true" tweenSync="true" y="0.9000000000000057">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
</Motion>
;
vcam_mc_animator = new Animator(vcam_mc_xml, vcam_mc);
vcam_mc_animator.play();
}
public function megaPoo(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 51)) && ((shitStreakTotal > 0)))){
targetsOnScreen = targetsOnScreen.filter(isAlive, null);
hud_mc.weaponSelect_mc.gotoAndStop("shitstreak");
weaponSelected = 3;
contraption_mc.turret_container_mc.gotoAndStop(2);
stage.addEventListener(KeyboardEvent.KEY_UP, stopSpray);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, megaPoo);
poisonTimer = new Timer(45);
poisonTimer.addEventListener(TimerEvent.TIMER, shootPoison);
poisonTimer.start();
};
}
public function hideMouse(_arg1:MouseEvent):void{
Mouse.hide();
_arg1.target.removeEventListener(MouseEvent.MOUSE_OUT, hideMouse);
_arg1.target.addEventListener(MouseEvent.MOUSE_OVER, showMouse);
}
public function moveCursor(_arg1:Event):void{
mouse_mc.x = mouseX;
mouse_mc.y = mouseY;
}
public function zoomOut():void{
vcam_mc_xml = <Motion duration="28" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="30" x="256.1" y="232.65" scaleX="0.554" scaleY="0.692" rotation="0" elementType="movie clip" instanceName="vcam_mc" symbolName="VCam_AS3_Interactive">
<dimensions>
<geom:Rectangle left="-275" top="-200" width="550" height="400"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="27" tweenSnap="true" tweenSync="true" x="17.599999999999966" y="16" scaleX="1.7924187725631768" scaleY="1.7947976878612717">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
</Motion>
;
vcam_mc_animator = new Animator(vcam_mc_xml, vcam_mc);
vcam_mc_animator.play();
Mouse.hide();
}
public function firstZoom():void{
vcam_mc_xml = <Motion duration="68" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="30" x="152.1" y="246.25" scaleX="0.554" scaleY="0.692" rotation="0" elementType="movie clip" instanceName="vcam_mc" symbolName="VCam_AS3_Interactive">
<dimensions>
<geom:Rectangle left="-275" top="-200" width="550" height="400"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="67" tweenSnap="true" tweenSync="true" x="104.00000000000003" y="-13.599999999999994">
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
</Motion>
;
vcam_mc_animator = new Animator(vcam_mc_xml, vcam_mc);
vcam_mc_animator.play();
}
public function levelLoader():void{
if (levelCount == 0){
if (this.contains(primingLevel)){
removeChild(primingLevel);
} else {
zoomOut();
};
addChildAt(levels[0], 1);
levels[0].x = 0;
levels[0].y = 240;
levels[levelCount].scrollLevel();
blockGap = 2500;
topHud2_mc.targetScore_txt.text = String(targetScore[0]);
topHud2_mc.targetScore_mc.gotoAndStop(Math.ceil(((score / targetScore[(levelCount - 1)]) * 100)));
hud_mc.score_txt.text = String(score);
monsterTimer.addEventListener(TimerEvent.TIMER, createMonster);
seagullTimer.addEventListener(TimerEvent.TIMER, createSeagull);
swallowTimer.addEventListener(TimerEvent.TIMER, createSwallow);
seagullTimer.start();
monsterTimer.start();
swallowTimer.start();
stage.addEventListener(KeyboardEvent.KEY_DOWN, megaPoo);
stage.addEventListener(KeyboardEvent.KEY_DOWN, shootPoo);
stage.addEventListener(KeyboardEvent.KEY_DOWN, shootFloat);
contraption_mc.addEventListener(Event.ENTER_FRAME, moveContraption);
if ((((stats.currentFrame > 50)) && ((stats.currentFrame > 4)))){
stats.gotoAndPlay("statsOff");
};
levelCount++;
enemyList = new Array(new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 5.4), new EnemyBlock(blockGap, 4.1), new EnemyBlock(blockGap, 4.5), new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 3.2), new EnemyBlock(blockGap, 2.2), new EnemyBlock(blockGap, 2), new EnemyBlock(blockGap, 4.6), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 4), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 3), new EnemyBlock(blockGap, 4.12), new EnemyBlock(blockGap, 2), new EnemyBlock(blockGap, 4.7), new EnemyBlock(blockGap, 5.3), new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 5.4), new EnemyBlock(blockGap, 1.2), new EnemyBlock(blockGap, 4.1), new EnemyBlock(blockGap, 4.5));
monsterTimer.start();
this.addEventListener(Event.ENTER_FRAME, sequenceEnemies);
} else {
if (levelCount == 1){
addChildAt(levels[1], 1);
if (this.contains(levels[0])){
removeChild(levels[0]);
};
stage.quality = StageQuality.MEDIUM;
hudTop_mc.quality_mc.gotoAndStop(2);
levels[1].x = 0;
levels[1].y = 240;
levels[levelCount].scrollLevel();
zoomOut();
stats.gotoAndPlay("statsOff");
trace("start next level");
blockGap = 2000;
contraption_mc.removeEventListener(MouseEvent.CLICK, levelLoader);
contraption_mc.addEventListener(Event.ENTER_FRAME, moveContraption);
stage.addEventListener(KeyboardEvent.KEY_DOWN, shootPoo);
stage.addEventListener(KeyboardEvent.KEY_DOWN, megaPoo);
stage.addEventListener(KeyboardEvent.KEY_DOWN, shootFloat);
monsterTimer.addEventListener(TimerEvent.TIMER, createMonster);
swallowTimer.addEventListener(TimerEvent.TIMER, createSwallow);
owlTimer.addEventListener(TimerEvent.TIMER, createOwl);
seagullTimer.addEventListener(TimerEvent.TIMER, createSeagull);
owlTimer.start();
swallowTimer.start();
seagullTimer.start();
monsterTimer.start();
swallowDelay = (swallowDelay - 3000);
enemyList = new Array(new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 4), new EnemyBlock(blockGap, 4.1), new EnemyBlock(blockGap, 4.2), new EnemyBlock(blockGap, 4.3), new EnemyBlock(blockGap, 4.3), new EnemyBlock(blockGap, 4.2), new EnemyBlock(blockGap, 4.1), new EnemyBlock(blockGap, 4), new EnemyBlock(blockGap, 5.2), new EnemyBlock(blockGap, 5), new EnemyBlock(blockGap, 5), new EnemyBlock(blockGap, 3.2), new EnemyBlock(blockGap, 2), new EnemyBlock(blockGap, 1.1), new EnemyBlock(blockGap, 6), new EnemyBlock(blockGap, 8), new EnemyBlock(blockGap, 4.11), new EnemyBlock(blockGap, 4.12), new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 6), new EnemyBlock(blockGap, 1.2), new EnemyBlock(blockGap, 5.3), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 4.8), new EnemyBlock(blockGap, 8), new EnemyBlock(blockGap, 1), new EnemyBlock(blockGap, 4), new EnemyBlock(blockGap, 4.9), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 7.1), new EnemyBlock(blockGap, 6.1), new EnemyBlock(blockGap, 3.1), new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 5.5), new EnemyBlock(blockGap, 4), new EnemyBlock(blockGap, 4.1), new EnemyBlock(blockGap, 4.2), new EnemyBlock(blockGap, 4.3), new EnemyBlock(blockGap, 4.3), new EnemyBlock(blockGap, 4.2), new EnemyBlock(blockGap, 4.1), new EnemyBlock(blockGap, 4), new EnemyBlock(blockGap, 5.2), new EnemyBlock(blockGap, 5), new EnemyBlock(blockGap, 5), new EnemyBlock(blockGap, 3.2), new EnemyBlock(blockGap, 2), new EnemyBlock(blockGap, 1.1), new EnemyBlock(blockGap, 6), new EnemyBlock(blockGap, 8));
loadEnemy = 0;
loadBlock = 0;
hud_mc.score_txt.text = String(score);
topHud2_mc.targetScore_mc.gotoAndStop(Math.ceil(((score / targetScore[(levelCount - 1)]) * 100)));
weap2 = true;
topHud2_mc.targetScore_txt.text = String(targetScore[1]);
this.addEventListener(Event.ENTER_FRAME, sequenceEnemies);
levelCount++;
} else {
if (levelCount == 2){
levels[2].x = 0;
levels[2].y = 240;
addChildAt(levels[2], 2);
if (this.contains(levels[1])){
removeChild(levels[1]);
};
stage.quality = StageQuality.MEDIUM;
hudTop_mc.quality_mc.gotoAndStop(2);
if (this.contains(level3Back)){
removeChild(level3Back);
level3Back.x = 240;
level3Back.y = 25.5;
addChildAt(level3Back, 1);
} else {
level3Back.x = 240;
level3Back.y = 25.5;
addChildAt(level3Back, 1);
};
zoomOut();
levels[levelCount].scrollLevel();
blockGap = 1750;
enemyList = new Array(new EnemyBlock(blockGap, 1), new EnemyBlock(blockGap, 4.12), new EnemyBlock(blockGap, 5.3), new EnemyBlock(blockGap, 6.1), new EnemyBlock(blockGap, 7.1), new EnemyBlock(blockGap, 2.2), new EnemyBlock(blockGap, 3.1), new EnemyBlock(blockGap, 4.4), new EnemyBlock(blockGap, 4.4), new EnemyBlock(blockGap, 4.8), new EnemyBlock(blockGap, 8), new EnemyBlock(blockGap, 1), new EnemyBlock(blockGap, 4), new EnemyBlock(blockGap, 4.9), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 7.1), new EnemyBlock(blockGap, 6.1), new EnemyBlock(blockGap, 4.8), new EnemyBlock(blockGap, 8), new EnemyBlock(blockGap, 1), new EnemyBlock(blockGap, 4), new EnemyBlock(blockGap, 4.9), new EnemyBlock(blockGap, 10), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 7.1), new EnemyBlock(blockGap, 6.1), new EnemyBlock(blockGap, 3.3), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 4.12), new EnemyBlock(blockGap, 6), new EnemyBlock(blockGap, 8), new EnemyBlock(blockGap, 5.3), new EnemyBlock(blockGap, 5.2), new EnemyBlock(blockGap, 1.1), new EnemyBlock(blockGap, 1.2), new EnemyBlock(blockGap, 6.2), new EnemyBlock(blockGap, 3.1), new EnemyBlock(blockGap, 7.1), new EnemyBlock(blockGap, 1), new EnemyBlock(blockGap, 4.12), new EnemyBlock(blockGap, 5.3), new EnemyBlock(blockGap, 6.1), new EnemyBlock(blockGap, 7.1), new EnemyBlock(blockGap, 2.2), new EnemyBlock(blockGap, 3.1), new EnemyBlock(blockGap, 4.4), new EnemyBlock(blockGap, 4.4), new EnemyBlock(blockGap, 4.8), new EnemyBlock(blockGap, 8), new EnemyBlock(blockGap, 1), new EnemyBlock(blockGap, 4), new EnemyBlock(blockGap, 4.9), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 7.1), new EnemyBlock(blockGap, 6.1), new EnemyBlock(blockGap, 4.8), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 7.1), new EnemyBlock(blockGap, 6.1), new EnemyBlock(blockGap, 5.2), new EnemyBlock(blockGap, 1), new EnemyBlock(blockGap, 2), new EnemyBlock(blockGap, 3.3), new EnemyBlock(blockGap, 2.3), new EnemyBlock(blockGap, 4.12), new EnemyBlock(blockGap, 6), new EnemyBlock(blockGap, 8), new EnemyBlock(blockGap, 5.3), new EnemyBlock(blockGap, 5.2));
loadEnemy = 0;
loadBlock = 0;
swallowDelay = (swallowDelay - 1000);
seagullDelay = (seagullDelay - 200);
eagleDelay = (eagleDelay - 3000);
levelCount++;
stats.gotoAndPlay("statsOff");
trace("start next level");
contraption_mc.removeEventListener(MouseEvent.CLICK, levelLoader);
contraption_mc.addEventListener(Event.ENTER_FRAME, moveContraption);
stage.addEventListener(KeyboardEvent.KEY_DOWN, shootPoo);
stage.addEventListener(KeyboardEvent.KEY_DOWN, megaPoo);
this.addEventListener(Event.ENTER_FRAME, sequenceEnemies);
swallowTimer.addEventListener(TimerEvent.TIMER, createSwallow);
eagleTimer.addEventListener(TimerEvent.TIMER, createEagle);
monsterTimer.addEventListener(TimerEvent.TIMER, createMonster);
owlTimer.addEventListener(TimerEvent.TIMER, createOwl);
seagullTimer.addEventListener(TimerEvent.TIMER, createSeagull);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, shootFloat);
owlTimer.start();
swallowTimer.start();
seagullTimer.start();
monsterTimer.start();
eagleTimer.start();
hud_mc.score_txt.text = String(score);
topHud2_mc.targetScore_mc.gotoAndStop(Math.ceil(((score / targetScore[(levelCount - 1)]) * 100)));
topHud2_mc.targetScore_txt.text = String(targetScore[2]);
};
};
};
}
public function mainMenu(_arg1:Event):void{
_arg1.target.removeEventListener(MouseEvent.CLICK, mainMenu);
stats.removeEventListener(MouseEvent.MOUSE_OVER, showMouse);
stats.statsPanel.gameSquat_mc.removeEventListener(MouseEvent.CLICK, gotoURL);
MovieClip(this.parent).gotoAndStop(3);
}
public function moveContraption(_arg1:Event):void{
targetX = this.mouseX;
targetY = this.mouseY;
contraption_mc.x = (contraption_mc.x + ((targetX - contraption_mc.x) / easing));
contraption_mc.y = (contraption_mc.y + ((targetY - contraption_mc.y) / easing));
contraption_mc.rotation = ((targetX - contraption_mc.x) / easing);
propHit_mc.x = contraption_mc.x;
propHit_mc.y = contraption_mc.y;
propHit_mc.rotation = contraption_mc.rotation;
}
public function finalPosition(_arg1:Event):void{
targetX = 165;
targetY = 215;
contraption_mc.x = (contraption_mc.x + ((targetX - contraption_mc.x) / 40));
contraption_mc.y = (contraption_mc.y + ((targetY - contraption_mc.y) / 40));
contraption_mc.rotation = ((targetX - contraption_mc.x) / 40);
propHit_mc.x = contraption_mc.x;
propHit_mc.y = contraption_mc.y;
propHit_mc.rotation = contraption_mc.rotation;
if ((((contraption_mc.x == targetX)) && ((contraption_mc.y == targetY)))){
contraption_mc.removeEventListener(Event.ENTER_FRAME, finalPosition);
};
}
public function createSwallow(_arg1:Event):void{
var _local2:*;
_local2 = new SwallowBird();
_local2.x = (0 - _local2.width);
_local2.y = ((Math.random() * (stage.stageHeight - 200)) + 80);
_local2.scaleX = ((Math.random() * 0.3) + 0.4);
_local2.scaleY = _local2.scaleX;
targetsOnScreen.push(_local2);
addChildAt(_local2, getChildIndex(contraption_mc));
}
public function endOfLevel(_arg1:Event):void{
trace("end of level");
levels[(levelCount - 1)].stopMove();
contraption_mc.removeEventListener(Event.ENTER_FRAME, moveContraption);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, shootPoo);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, megaPoo);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, shootFloat);
contraption_mc.addEventListener(Event.ENTER_FRAME, finalPosition);
if (comboLevel > highestCombo){
highestCombo = comboLevel;
topHud2_mc.highCombo_txt.text = highestCombo.toString();
};
zoomIn();
stats.visible = true;
stats.play();
stats.addEventListener(MouseEvent.MOUSE_OVER, showMouse);
stats.statsPanel.gameSquat_mc.addEventListener(MouseEvent.CLICK, gotoURL);
stats.statsPanel.gameSquat_mc.buttonMode = true;
stats.statsPanel.combo_got.text = String(("X " + highestCombo.toString()));
trace(("high combo: " + stats.statsPanel.combo_got.text));
stats.statsPanel.score_got.text = score.toString();
trace(("score u got: " + stats.statsPanel.score_got.text));
stats.statsPanel.required_txt.text = targetScore[(levelCount - 1)].toString();
trace(("required score: " + stats.statsPanel.required_txt.text));
if (score < targetScore[(levelCount - 1)]){
trace("Not Enough Revenge!");
trace(score);
trace(targetScore[(levelCount - 1)]);
loadEnemy = 0;
loadBlock = 0;
addChild(restart_mc);
shitStreakTotal = 0;
levelCount--;
contraption_mc.addEventListener(MouseEvent.CLICK, fuckingLevelLoad);
score = previousScore;
} else {
trace(score);
trace(targetScore[(levelCount - 1)]);
trace("You Shat on loads of them!");
addChild(continue_mc);
contraption_mc.addEventListener(MouseEvent.CLICK, fuckingLevelLoad);
previousScore = score;
if (levelCount > 2){
escaped_mc.visible = true;
addChildAt(finalScore_mc, 10);
finalScore_mc.menu_btn.addEventListener(MouseEvent.MOUSE_DOWN, mainMenu);
finalScore_mc.finalScore_txt.text = score.toString();
MovieClip(this.parent).endScore = score;
stats.gotoAndStop(1);
removeChild(continue_mc);
};
};
}
public function createOwl(_arg1:Event):void{
var _local2:*;
_local2 = new OwlBird();
_local2.x = (stage.stageWidth + _local2.width);
_local2.y = ((Math.random() * (stage.stageHeight - 200)) + 80);
_local2.scaleX = ((Math.random() * 0.3) + 0.4);
_local2.scaleY = _local2.scaleX;
targetsOnScreen.push(_local2);
addChildAt(_local2, getChildIndex(contraption_mc));
}
public function loadNext(_arg1:Event):void{
var _local2:LevelFailed;
var _local3:LevelComplete;
enemyList[loadBlock].enemyList[loadEnemy].x = enemyList[loadBlock].enemyListX[loadEnemy];
enemyList[loadBlock].enemyList[loadEnemy].y = enemyList[loadBlock].enemyListY[loadEnemy];
enemyList[loadBlock].enemyList[loadEnemy].scaleX = ((Math.random() * 0.3) + 0.6);
enemyList[loadBlock].enemyList[loadEnemy].scaleY = enemyList[loadBlock].enemyList[loadEnemy].scaleX;
if (enemyList[loadBlock].enemyListInitX[loadEnemy] != 0){
enemyList[loadBlock].enemyList[loadEnemy]._velocX = enemyList[loadBlock].enemyListInitX[loadEnemy];
};
if (enemyList[loadBlock].enemyListInitY[loadEnemy] != 0){
enemyList[loadBlock].enemyList[loadEnemy]._velocY = enemyList[loadBlock].enemyListInitY[loadEnemy];
};
addChildAt(enemyList[loadBlock].enemyList[loadEnemy], getChildIndex(contraption_mc));
targetsOnScreen.push(enemyList[loadBlock].enemyList[loadEnemy]);
loadEnemy++;
if (loadEnemy >= enemyList[loadBlock].enemyList.length){
loadEnemy = 0;
loadBlock++;
};
if (loadBlock < enemyList.length){
enemyList[loadBlock].makeBlock();
this.addEventListener(Event.ENTER_FRAME, sequenceEnemies);
} else {
monsterTimer.removeEventListener(TimerEvent.TIMER, createMonster);
endOfLevelTimer.addEventListener(TimerEvent.TIMER, endOfLevel);
endOfLevelTimer.start();
if (score < targetScore[(levelCount - 1)]){
_local2 = new LevelFailed();
_local2.x = 130;
_local2.y = 130;
addChild(_local2);
} else {
_local3 = new LevelComplete();
_local3.x = 130;
_local3.y = 130;
addChild(_local3);
};
monsterTimer.removeEventListener(TimerEvent.TIMER, createMonster);
eagleTimer.removeEventListener(TimerEvent.TIMER, createEagle);
owlTimer.removeEventListener(TimerEvent.TIMER, createOwl);
swallowTimer.removeEventListener(TimerEvent.TIMER, createSwallow);
seagullTimer.removeEventListener(TimerEvent.TIMER, createSeagull);
};
}
public function gotoURL(_arg1:Event){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesquat.com/free-online-games/");
navigateToURL(_local2);
}
public function cloudFactory(_arg1:Event):void{
var _local2:*;
var _local3:int;
_local3 = Math.ceil((Math.random() * 4));
if (_local3 == 1){
_local2 = new Cloud1();
} else {
if (_local3 == 2){
_local2 = new Cloud2();
} else {
if (_local3 == 3){
_local2 = new Cloud3();
} else {
_local2 = new Cloud4();
};
};
};
_local2.y = ((Math.random() * stage.stageHeight) - 300);
_local2.x = (stage.stageWidth + _local2.width);
addChildAt(_local2, (getChildIndex(contraption_mc) - 1));
cloudCreator = new Timer(((Math.random() * 5000) + 2000), 1);
cloudCreator.start();
cloudCreator.addEventListener(TimerEvent.TIMER, cloudFactory);
}
public function endShitStreak(){
trace("in endStreak");
poisonTimer.stop();
poisonTimer.removeEventListener(TimerEvent.TIMER, shootPoison);
trace("removing listeners");
stage.removeEventListener(KeyboardEvent.KEY_UP, stopSpray);
stage.addEventListener(KeyboardEvent.KEY_DOWN, megaPoo);
trace("play turrent anim");
contraption_mc.turret_container_mc.gotoAndStop(1);
}
public function createSeagull(_arg1:Event):void{
var _local2:*;
_local2 = new SeagullBird();
_local2.x = ((stage.stageWidth + _local2.width) + 30);
_local2.y = ((Math.random() * (stage.stageHeight - 200)) + 80);
_local2.scaleX = ((Math.random() * 0.3) + 0.4);
_local2.scaleY = _local2.scaleX;
targetsOnScreen.push(_local2);
addChildAt(_local2, getChildIndex(contraption_mc));
}
public function createMonster(_arg1:Event):void{
simpleBird = new SimpleBird();
simpleBird.x = ((stage.stageWidth + simpleBird.width) + 30);
simpleBird.y = ((Math.random() * (stage.stageHeight - 200)) + 80);
simpleBird.scaleX = ((Math.random() * 0.3) + 0.6);
simpleBird.scaleY = simpleBird.scaleX;
targetsOnScreen.push(simpleBird);
addChildAt(simpleBird, getChildIndex(contraption_mc));
enemiesOnScreen = true;
if (targetsOnScreen.length > 40){
targetsOnScreen = targetsOnScreen.filter(isAlive, null);
};
}
public function startWonky():void{
if (!wonkyTimer.running){
wonkyTimer.start();
goWonky();
comboLevel = Math.ceil((comboLevel / 2));
} else {
if (wonkyTimer.running){
wonkyTimer.reset();
};
};
}
public function soundControl(_arg1:Event):void{
var _local2:SoundChannel;
if (soundBtnUp){
transform1.volume = 0;
SoundMixer.soundTransform = transform1;
soundBtnUp = false;
} else {
soundBtnUp = true;
transform1.volume = 1;
SoundMixer.soundTransform = transform1;
};
}
public function endOfGame(_arg1:Event):void{
var _local2:LevelComplete;
trace("end of level");
levels[(levelCount - 1)].stopMove();
contraption_mc.removeEventListener(Event.ENTER_FRAME, moveContraption);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, shootPoo);
contraption_mc.addEventListener(Event.ENTER_FRAME, finalPosition);
if (comboLevel > highestCombo){
highestCombo = comboLevel;
};
zoomIn();
stats.visible = true;
stats.play();
stats.statsPanel.combo_got.text = highestCombo.toString();
stats.statsPanel.score_got.text = score.toString();
stats.statsPanel.required_txt.text = targetScore[(levelCount - 1)].toString();
_local2 = new LevelComplete();
_local2.x = 130;
_local2.y = 130;
addChild(_local2);
Mouse.show();
}
public function qualityControl(_arg1:Event):void{
if (hudTop_mc.quality_mc.currentFrame == 1){
stage.quality = StageQuality.MEDIUM;
hudTop_mc.quality_mc.gotoAndStop(2);
} else {
if (hudTop_mc.quality_mc.currentFrame == 2){
stage.quality = StageQuality.LOW;
hudTop_mc.quality_mc.gotoAndStop(3);
} else {
if (hudTop_mc.quality_mc.currentFrame == 3){
stage.quality = StageQuality.HIGH;
hudTop_mc.quality_mc.gotoAndStop(1);
};
};
};
}
public function sequenceEnemies(_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, sequenceEnemies);
enemyList[loadBlock].makeBlock();
enterTimer = new Timer(enemyList[loadBlock].enterTimes[loadEnemy], 1);
enterTimer.addEventListener(TimerEvent.TIMER, loadNext);
enterTimer.start();
}
public function endGame():void{
var _local1:int;
var _local2:SoundChannel;
stage.removeEventListener(KeyboardEvent.KEY_UP, stopSpray);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, shootPoo);
this.contraption_mc.removeEventListener(Event.ENTER_FRAME, moveContraption);
this.removeEventListener(Event.ENTER_FRAME, updateDisplay);
this.removeEventListener(Event.ENTER_FRAME, moveCursor);
poisonTimer.removeEventListener(TimerEvent.TIMER, shootPoison);
this.removeEventListener(Event.ENTER_FRAME, sequenceEnemies);
this.swallowTimer.removeEventListener(TimerEvent.TIMER, createSwallow);
this.eagleTimer.removeEventListener(TimerEvent.TIMER, createEagle);
this.monsterTimer.removeEventListener(TimerEvent.TIMER, createMonster);
this.owlTimer.removeEventListener(TimerEvent.TIMER, createOwl);
this.seagullTimer.removeEventListener(TimerEvent.TIMER, createSeagull);
comboTimer.removeEventListener(TimerEvent.TIMER, comboOver);
this.removeEventListener(MouseEvent.MOUSE_MOVE, moveCursor);
contraption_mc.removeEventListener(Event.ENTER_FRAME, finalPosition);
endOfLevelTimer.removeEventListener(TimerEvent.TIMER, endOfLevel);
enterTimer.removeEventListener(TimerEvent.TIMER, loadNext);
targetsOnScreen = targetsOnScreen.filter(isAlive, null);
_local1 = 0;
while (_local1 < targetsOnScreen.length) {
targetsOnScreen[_local1].unloadEvents();
_local1++;
};
targetsOnScreen = new Array();
if (this.contains(level3Back)){
removeChild(level3Back);
};
stage.quality = StageQuality.HIGH;
transform1.volume = 1;
SoundMixer.soundTransform = transform1;
SoundMixer.stopAll();
MovieClip(this.parent).endScore = score;
MovieClip(this.parent).gotoAndStop(6);
}
public function shootFloat(_arg1:KeyboardEvent):void{
var _local2:FloatPoo;
if (_arg1.keyCode == 50){
weaponSelected = 2;
hud_mc.weaponSelect_mc.gotoAndStop("floater");
stage.removeEventListener(KeyboardEvent.KEY_DOWN, shootFloat);
_local2 = new FloatPoo(targetsOnScreen);
_local2._initX = (((targetX - contraption_mc.x) / pooEasing) * -1);
_local2.x = (contraption_mc.x + (contraption_mc.width / 19));
_local2.y = (contraption_mc.y + (contraption_mc.height / 2.3));
_local2.scaleX = (contraption_mc.scaleX + 0.2);
_local2.scaleY = (contraption_mc.scaleY + 0.2);
contraption_mc.turret_container_mc.turret_mc.gotoAndPlay(1);
addChildAt(_local2, getChildIndex(contraption_mc));
addFloat();
};
}
public function comboOver(_arg1:Event):void{
if (comboLevel > highestCombo){
highestCombo = comboLevel;
topHud2_mc.highCombo_txt.text = highestCombo.toString();
};
if (comboLevel > 10){
comboLevel = Math.round((comboLevel / 1.5));
comboMultiplyer = Math.round((comboMultiplyer / 1.5));
hud_mc.combo_mc.comboBar_mc.gotoAndPlay(1);
} else {
comboLevel = 0;
comboMultiplyer = 1;
comboTimer.removeEventListener(TimerEvent.TIMER, comboOver);
comboTimer = null;
};
hud_mc.combo_mc.combo_txt.text = String(comboLevel);
}
public function startGame(_arg1:Event){
tutorial_mc.tutStart_mc.addEventListener(MouseEvent.CLICK, initComponents);
contraption_mc.addEventListener(Event.ENTER_FRAME, finalPosition);
contraption_mc.removeEventListener(Event.ENTER_FRAME, startGame);
}
public function pooRelease(_arg1:Event):void{
shotTimer.removeEventListener(TimerEvent.TIMER, pooRelease);
stage.addEventListener(KeyboardEvent.KEY_DOWN, shootPoo);
}
public function showMouse(_arg1:MouseEvent):void{
Mouse.show();
_arg1.target.removeEventListener(MouseEvent.MOUSE_OVER, showMouse);
_arg1.target.addEventListener(MouseEvent.MOUSE_OUT, hideMouse);
}
public function shootPoo(_arg1:KeyboardEvent):void{
var _local2:BrickPoo;
if (_arg1.keyCode == 49){
stage.removeEventListener(KeyboardEvent.KEY_DOWN, shootPoo);
weaponSelected = 1;
hud_mc.weaponSelect_mc.gotoAndStop("brickshit");
_local2 = new BrickPoo(targetsOnScreen);
_local2.x = (contraption_mc.x + (contraption_mc.width / 13.5));
_local2.y = (contraption_mc.y + (contraption_mc.height / 3));
_local2.scaleX = contraption_mc.scaleX;
_local2._initX = (((targetX - contraption_mc.x) / pooEasing) * -1);
_local2.scaleY = contraption_mc.scaleY;
trace("shot timer");
shotTimer.addEventListener(TimerEvent.TIMER, pooRelease);
shotTimer.start();
trace("animation");
contraption_mc.turret_container_mc.turret_mc.gotoAndPlay(1);
trace("add child");
addChildAt(_local2, getChildIndex(contraption_mc));
trace("added");
};
}
public function updateDisplay(_arg1:Event):void{
var _local2:int;
var _local3:splitSplat;
hud_mc.speedo_mc.needle_mc.rotation = (((targetX - contraption_mc.x) / 3) - 30);
hud_mc.shitoMeter.gotoAndStop(Math.ceil((shitStreakTotal + 10)));
if (enemiesOnScreen){
_local2 = (0 + count);
while (_local2 < (targetsOnScreen.length + count)) {
if (((((targetsOnScreen[_local2]._birdDead) && (targetsOnScreen[_local2].scoreNotTaken))) && (!(targetsOnScreen[_local2].fellOffScreen)))){
if (targetsOnScreen[_local2].birdType == "SwallowBird"){
comboLevel = (comboLevel + 4);
};
comboLevel++;
if (shitStreakTotal < 100){
shitStreakTotal = (shitStreakTotal + Math.ceil((comboLevel / 3)));
};
if (!targetsOnScreen[_local2].deathByPropeller){
score = (score + Math.round((targetsOnScreen[_local2].pointsWorth * comboMultiplyer)));
};
targetsOnScreen[_local2].scoreNotTaken = false;
if (comboTimer == null){
comboTimer = new Timer(1000);
comboTimer.addEventListener(TimerEvent.TIMER, comboOver);
comboTimer.start();
hud_mc.combo_mc.comboBar_mc.gotoAndPlay(1);
} else {
comboTimer.reset();
comboTimer.start();
hud_mc.combo_mc.comboBar_mc.gotoAndPlay(1);
};
hud_mc.score_txt.text = String(score);
if (((score / targetScore[(levelCount - 1)]) * 100) < 101){
topHud2_mc.targetScore_mc.gotoAndStop(Math.ceil(((score / targetScore[(levelCount - 1)]) * 100)));
} else {
if (((score / targetScore[(levelCount - 1)]) * 100) >= 100){
topHud2_mc.targetScore_mc.gotoAndStop(100);
};
};
hud_mc.combo_mc.combo_txt.text = String(comboLevel);
comboMultiplyer = (comboMultiplyer + comboIncrease);
};
if (((((propHit_mc.hitTestObject(targetsOnScreen[_local2])) && (!((targetsOnScreen[_local2].birdType == "SwanBird"))))) && (!((targetsOnScreen[_local2].birdType == "OwlBird"))))){
targetsOnScreen[_local2]._birdDead = true;
targetsOnScreen[_local2].visible = false;
targetsOnScreen[_local2].deathByPropeller = true;
score = (score + Math.round(targetsOnScreen[_local2].pointsWorth));
if (targetsOnScreen[_local2].birdType == "SimpleBird"){
birdHalf2 = new SimpleBirdSliceBottom(targetsOnScreen[_local2].x, targetsOnScreen[_local2].y, targetsOnScreen[_local2]._velocX, targetsOnScreen[_local2]._velocY, targetsOnScreen[_local2].scaleX, targetsOnScreen[_local2].scaleY, targetsOnScreen);
birdHalf1 = new SimpleBirdSliceTop(targetsOnScreen[_local2].x, targetsOnScreen[_local2].y, targetsOnScreen[_local2]._velocX, targetsOnScreen[_local2]._velocY, targetsOnScreen[_local2].scaleX, targetsOnScreen[_local2].scaleY, targetsOnScreen);
addChildAt(birdHalf1, getChildIndex(contraption_mc));
addChildAt(birdHalf2, getChildIndex(contraption_mc));
} else {
if (targetsOnScreen[_local2].birdType == "SeagullBird"){
birdHalf2 = new SeagullSliceBottom((targetsOnScreen[_local2].x + (targetsOnScreen[_local2].width / 2)), (targetsOnScreen[_local2].y + (targetsOnScreen[_local2].height / 1.2)), targetsOnScreen[_local2]._velocX, targetsOnScreen[_local2]._velocY, targetsOnScreen[_local2].scaleX, targetsOnScreen[_local2].scaleY, targetsOnScreen);
birdHalf1 = new SeagullSliceTop((targetsOnScreen[_local2].x + (targetsOnScreen[_local2].width / 2)), (targetsOnScreen[_local2].y + (targetsOnScreen[_local2].height / 1.2)), targetsOnScreen[_local2]._velocX, targetsOnScreen[_local2]._velocY, targetsOnScreen[_local2].scaleX, targetsOnScreen[_local2].scaleY, targetsOnScreen);
addChildAt(birdHalf1, getChildIndex(contraption_mc));
addChildAt(birdHalf2, getChildIndex(contraption_mc));
} else {
if (targetsOnScreen[_local2].birdType == "SwallowBird"){
birdHalf2 = new SwallowBirdSliceBottom((targetsOnScreen[_local2].x + (targetsOnScreen[_local2].width / 2)), (targetsOnScreen[_local2].y + (targetsOnScreen[_local2].height / 1.2)), targetsOnScreen[_local2]._velocX, targetsOnScreen[_local2]._velocY, targetsOnScreen[_local2].scaleX, targetsOnScreen[_local2].scaleY, targetsOnScreen);
birdHalf1 = new SwallowBirdSliceTop((targetsOnScreen[_local2].x + (targetsOnScreen[_local2].width / 2)), (targetsOnScreen[_local2].y + (targetsOnScreen[_local2].height / 1.2)), targetsOnScreen[_local2]._velocX, targetsOnScreen[_local2]._velocY, targetsOnScreen[_local2].scaleX, targetsOnScreen[_local2].scaleY, targetsOnScreen);
addChildAt(birdHalf1, getChildIndex(contraption_mc));
addChildAt(birdHalf2, getChildIndex(contraption_mc));
comboLevel = (comboLevel + 4);
} else {
if (targetsOnScreen[_local2].birdType == "EagleBird"){
birdHalf2 = new EagleSliceBottom((targetsOnScreen[_local2].x + (targetsOnScreen[_local2].width / 2)), (targetsOnScreen[_local2].y + (targetsOnScreen[_local2].height / 1.2)), targetsOnScreen[_local2]._velocX, targetsOnScreen[_local2]._velocY, targetsOnScreen[_local2].scaleX, targetsOnScreen[_local2].scaleY, targetsOnScreen);
birdHalf1 = new EagleSliceTop((targetsOnScreen[_local2].x + (targetsOnScreen[_local2].width / 2)), (targetsOnScreen[_local2].y + (targetsOnScreen[_local2].height / 1.2)), targetsOnScreen[_local2]._velocX, targetsOnScreen[_local2]._velocY, targetsOnScreen[_local2].scaleX, targetsOnScreen[_local2].scaleY, targetsOnScreen);
addChildAt(birdHalf1, getChildIndex(contraption_mc));
addChildAt(birdHalf2, getChildIndex(contraption_mc));
};
};
};
};
_local3 = new splitSplat();
_local3.x = (targetsOnScreen[_local2].x + (targetsOnScreen[_local2].width / 2));
_local3.y = (targetsOnScreen[_local2].y + (targetsOnScreen[_local2].height / 2));
addChild(_local3);
targetsOnScreen.splice(_local2, 1);
if (comboTimer == null){
comboTimer = new Timer(1000);
comboTimer.addEventListener(TimerEvent.TIMER, comboOver);
comboTimer.start();
hud_mc.combo_mc.comboBar_mc.gotoAndPlay(1);
} else {
comboTimer.reset();
comboTimer.start();
hud_mc.combo_mc.comboBar_mc.gotoAndPlay(1);
};
comboLevel++;
if (shitStreakTotal < 100){
shitStreakTotal = (shitStreakTotal + Math.ceil((comboLevel / 3)));
};
hud_mc.combo_mc.combo_txt.text = String(comboLevel);
comboMultiplyer = (comboMultiplyer + comboIncrease);
hud_mc.score_txt.text = String(score);
};
_local2++;
};
};
}
public function isAlive(_arg1, _arg2:int, _arg3:Array):Boolean{
return (!((_arg1._birdDead == true)));
}
public function stopSpray(_arg1:KeyboardEvent):void{
endShitStreak();
}
public function fuckingLevelLoad(_arg1:Event):void{
contraption_mc.removeEventListener(MouseEvent.CLICK, fuckingLevelLoad);
stats.removeEventListener(MouseEvent.MOUSE_OVER, showMouse);
stats.statsPanel.gameSquat_mc.removeEventListener(MouseEvent.CLICK, gotoURL);
if (this.contains(restart_mc)){
removeChild(restart_mc);
};
if (this.contains(continue_mc)){
removeChild(continue_mc);
};
if (escaped_mc.visible){
escaped_mc.visible = false;
};
levelLoader();
}
}
}//package fowlplay_ng_fla
Section 45
//player_cannon_125 (fowlplay_ng_fla.player_cannon_125)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class player_cannon_125 extends MovieClip {
public var turret_mc:MovieClip;
public var spurting_turret_mc:MovieClip;
public function player_cannon_125(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package fowlplay_ng_fla
Section 46
//player_cannon_shoot_126 (fowlplay_ng_fla.player_cannon_shoot_126)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class player_cannon_shoot_126 extends MovieClip {
public function player_cannon_shoot_126(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package fowlplay_ng_fla
Section 47
//player_machine_124 (fowlplay_ng_fla.player_machine_124)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class player_machine_124 extends MovieClip {
public var turret_container_mc:MovieClip;
public var peddler_mc:MovieClip;
}
}//package fowlplay_ng_fla
Section 48
//preloader_68 (fowlplay_ng_fla.preloader_68)
package fowlplay_ng_fla {
import flash.filters.*;
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class preloader_68 extends MovieClip {
public var musicLink2_mc:MovieClip;
public var load1:MovieClip;
public var load3:MovieClip;
public var load4:MovieClip;
public var load6:MovieClip;
public var load2:MovieClip;
public var load5:MovieClip;
public var load7:MovieClip;
public var game1_mc:btn_sponsor;
public var bars_mc:MovieClip;
public var play_btn:btn_play;
public var title_mc:logo;
public function preloader_68(){
addFrameScript(0, frame1, 27, frame28, 51, frame52);
}
public function musicLink2(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://nemesistheory.newgrounds.com");
navigateToURL(_local2);
musicLink2_mc.removeEventListener(MouseEvent.MOUSE_DOWN, musicLink2);
}
function frame1(){
stop();
bars_mc.skip_mc.setVisible = false;
}
public function playGame(_arg1:Event):void{
play_btn.removeEventListener(MouseEvent.ROLL_OVER, rollOverPlay);
play_btn.removeEventListener(MouseEvent.ROLL_OUT, rollOutPlay);
play_btn.removeEventListener(MouseEvent.CLICK, playGame);
game1_mc.removeEventListener(MouseEvent.ROLL_OVER, rollOverPlay);
game1_mc.removeEventListener(MouseEvent.MOUSE_DOWN, gotoLink1);
musicLink2_mc.removeEventListener(MouseEvent.MOUSE_DOWN, musicLink2);
play();
}
public function rollOutPlay(_arg1:Event):void{
_arg1.currentTarget.addEventListener(MouseEvent.ROLL_OVER, rollOverPlay);
_arg1.currentTarget.removeEventListener(MouseEvent.ROLL_OUT, rollOutPlay);
_arg1.currentTarget.gotoAndStop(1);
}
function frame28(){
title_mc.play();
stop();
play_btn.addEventListener(MouseEvent.CLICK, playGame);
play_btn.addEventListener(MouseEvent.ROLL_OVER, rollOverPlay);
play_btn.buttonMode = true;
game1_mc.addEventListener(MouseEvent.ROLL_OVER, rollOverPlay);
game1_mc.addEventListener(MouseEvent.MOUSE_DOWN, gotoLink1);
game1_mc.buttonMode = true;
musicLink2_mc.addEventListener(MouseEvent.MOUSE_DOWN, musicLink2);
musicLink2_mc.buttonMode = true;
}
public function rollOverPlay(_arg1:Event):void{
_arg1.currentTarget.removeEventListener(MouseEvent.ROLL_OVER, rollOverPlay);
_arg1.currentTarget.addEventListener(MouseEvent.ROLL_OUT, rollOutPlay);
_arg1.currentTarget.gotoAndStop(2);
}
function frame52(){
MovieClip(this.parent).play();
}
public function gotoLink1(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesquat.com/free-online-games/");
navigateToURL(_local2);
game1_mc.removeEventListener(MouseEvent.MOUSE_DOWN, gotoLink1);
}
}
}//package fowlplay_ng_fla
Section 49
//quality_press_176 (fowlplay_ng_fla.quality_press_176)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class quality_press_176 extends MovieClip {
public function quality_press_176(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package fowlplay_ng_fla
Section 50
//stats1_185 (fowlplay_ng_fla.stats1_185)
package fowlplay_ng_fla {
import flash.display.*;
import flash.text.*;
public dynamic class stats1_185 extends MovieClip {
public var combo_got:TextField;
public var score_got:TextField;
public var gameSquat_mc:gamesquat_btn;
public var required_txt:TextField;
public function stats1_185(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package fowlplay_ng_fla
Section 51
//swanEscape_179 (fowlplay_ng_fla.swanEscape_179)
package fowlplay_ng_fla {
import flash.display.*;
public dynamic class swanEscape_179 extends MovieClip {
public function swanEscape_179(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package fowlplay_ng_fla
Section 52
//VCam_AS3_110 (fowlplay_ng_fla.VCam_AS3_110)
package fowlplay_ng_fla {
import flash.filters.*;
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class VCam_AS3_110 extends MovieClip {
public var sH:Number;
public var rp:Point;
public var sW:Number;
public var bounds_obj:Object;
public var camH:Number;
public var camW:Number;
public var oldScaleMode:String;
public function VCam_AS3_110(){
addFrameScript(0, frame1);
}
public function set scaleX2(_arg1:Number):void{
setProperty2("scaleX", _arg1);
}
function frame1(){
mouseEnabled = false;
visible = false;
oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
sW = stage.stageWidth;
sH = stage.stageHeight;
stage.scaleMode = oldScaleMode;
bounds_obj = this.getBounds(this);
camH = bounds_obj.height;
camW = bounds_obj.width;
rp = new Point(x, y);
addEventListener(Event.ENTER_FRAME, camControl);
addEventListener(Event.REMOVED_FROM_STAGE, reset);
camControl();
}
public function set x2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x + (_arg1 - _local2.x));
}
public function get rotation2():Number{
return (parent.rotation);
}
public function camControl(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
rp.x = x;
rp.y = y;
_local2 = (camH * scaleY);
_local3 = (camW * scaleX);
_local4 = (sH / _local2);
_local5 = (sW / _local3);
x2 = ((_local3 / 2) * _local5);
y2 = ((_local2 / 2) * _local4);
scaleX2 = _local5;
scaleY2 = _local4;
rotation2 = -(rotation);
parent.filters = this.filters;
parent.transform.colorTransform = this.transform.colorTransform;
}
public function set scaleY2(_arg1:Number):void{
setProperty2("scaleY", _arg1);
}
public function get scaleX2():Number{
return (parent.scaleX);
}
public function get x2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.x);
}
public function setProperty2(_arg1:String, _arg2:Number):void{
var _local3:Point;
var _local4:Point;
_local3 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent[_arg1] = _arg2;
_local4 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x - (_local4.x - _local3.x));
parent.y = (parent.y - (_local4.y - _local3.y));
}
public function set y2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.y = (parent.y + (_arg1 - _local2.y));
}
public function reset(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, camControl);
removeEventListener(Event.REMOVED_FROM_STAGE, reset);
parent.scaleX = 1;
parent.scaleY = 1;
parent.x = 0;
parent.y = 0;
parent.rotation = 0;
parent.visible = true;
}
public function get scaleY2():Number{
return (parent.scaleY);
}
public function get y2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.y);
}
public function set rotation2(_arg1:Number):void{
setProperty2("rotation", _arg1);
}
}
}//package fowlplay_ng_fla
Section 53
//VCam_AS3_Interactive_153 (fowlplay_ng_fla.VCam_AS3_Interactive_153)
package fowlplay_ng_fla {
import flash.filters.*;
import flash.geom.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class VCam_AS3_Interactive_153 extends MovieClip {
public var sH:Number;
public var rp:Point;
public var sW:Number;
public var bounds_obj:Object;
public var camH:Number;
public var camW:Number;
public var oldScaleMode:String;
public function VCam_AS3_Interactive_153(){
addFrameScript(0, frame1);
}
public function set scaleX2(_arg1:Number):void{
setProperty2("scaleX", _arg1);
}
function frame1(){
mouseEnabled = false;
visible = true;
oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
sW = stage.stageWidth;
sH = stage.stageHeight;
stage.scaleMode = oldScaleMode;
bounds_obj = this.getBounds(this);
camH = bounds_obj.height;
camW = bounds_obj.width;
rp = new Point(x, y);
addEventListener(Event.ENTER_FRAME, camControl);
addEventListener(Event.REMOVED_FROM_STAGE, reset);
camControl();
}
public function set x2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x + (_arg1 - _local2.x));
}
public function get rotation2():Number{
return (parent.rotation);
}
public function camControl(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
rp.x = x;
rp.y = y;
_local2 = (camH * scaleY);
_local3 = (camW * scaleX);
_local4 = (sH / _local2);
_local5 = (sW / _local3);
x2 = ((_local3 / 2) * _local5);
y2 = ((_local2 / 2) * _local4);
scaleX2 = _local5;
scaleY2 = _local4;
rotation2 = -(rotation);
parent.filters = this.filters;
parent.transform.colorTransform = this.transform.colorTransform;
}
public function set scaleY2(_arg1:Number):void{
setProperty2("scaleY", _arg1);
}
public function get scaleX2():Number{
return (parent.scaleX);
}
public function get x2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.x);
}
public function setProperty2(_arg1:String, _arg2:Number):void{
var _local3:Point;
var _local4:Point;
_local3 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent[_arg1] = _arg2;
_local4 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.x = (parent.x - (_local4.x - _local3.x));
parent.y = (parent.y - (_local4.y - _local3.y));
}
public function set y2(_arg1:Number):void{
var _local2:Point;
_local2 = parent.parent.globalToLocal(parent.localToGlobal(rp));
parent.y = (parent.y + (_arg1 - _local2.y));
}
public function reset(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, camControl);
removeEventListener(Event.REMOVED_FROM_STAGE, reset);
parent.scaleX = 1;
parent.scaleY = 1;
parent.x = 0;
parent.y = 0;
parent.rotation = 0;
parent.visible = true;
}
public function get scaleY2():Number{
return (parent.scaleY);
}
public function get y2():Number{
var _local1:Point;
_local1 = parent.parent.globalToLocal(parent.localToGlobal(rp));
return (_local1.y);
}
public function set rotation2(_arg1:Number):void{
setProperty2("rotation", _arg1);
}
}
}//package fowlplay_ng_fla
Section 54
//BrickPoo (BrickPoo)
package {
import flash.events.*;
import flash.display.*;
public class BrickPoo extends MovieClip {
public var _targetsOnScreen:Array;
public var _gravity:Number;
public var _frictionX:Number;
public var _frictionY:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
private var loopCount:uint;// = 0
public function BrickPoo(_arg1:Array){
_targetsOnScreen = new Array();
loopCount = 0;
super();
_targetsOnScreen = _arg1;
this.addEventListener(Event.ADDED, initPoo);
}
public function pooFall(_arg1:Event):void{
var _local2:int;
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + (_gravity - _frictionY));
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (_velocX * -1.8);
_local2 = 0;
while (_local2 < _targetsOnScreen.length) {
if (hitTestObject(_targetsOnScreen[_local2])){
_targetsOnScreen[_local2].hitsLeft--;
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
if (_targetsOnScreen[_local2].hitsLeft <= 0){
_targetsOnScreen[_local2]._birdDead = true;
};
break;
};
_local2++;
};
};
}
public function initPoo(_arg1:Event):void{
this._velocX = _initX;
this._velocY = 10;
this._gravity = 2;
this._frictionX = 0.95;
this._frictionY = 0.95;
this.addEventListener(Event.ENTER_FRAME, pooFall);
this.removeEventListener(Event.ADDED, initPoo);
}
}
}//package
Section 55
//btn_play (btn_play)
package {
import flash.display.*;
public dynamic class btn_play extends MovieClip {
public function btn_play(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 56
//btn_sponsor (btn_sponsor)
package {
import flash.display.*;
public dynamic class btn_sponsor extends MovieClip {
public function btn_sponsor(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 57
//Cloud (Cloud)
package {
import flash.events.*;
import flash.display.*;
public class Cloud extends MovieClip {
public var distance:Number;
public var _velocX:Number;
public function Cloud(){
this._velocX = (((Math.random() * 1.5) + 0.5) * -1);
this.scaleX = (Math.random() + 0.5);
this.scaleY = this.scaleX;
if (Math.random() > 0.5){
this.scaleX = (this.scaleX * -1);
};
this.addEventListener(Event.ADDED, initCloud);
}
public function initCloud(_arg1:Event):void{
this.addEventListener(Event.ENTER_FRAME, cloudMove);
this.removeEventListener(Event.ADDED, initCloud);
}
public function cloudMove(_arg1:Event):void{
if ((((this.x > ((stage.stageWidth + this.width) + 50))) || ((this.x < (0 - (this.width * 1.5)))))){
this.removeEventListener(Event.ENTER_FRAME, cloudMove);
this.parent.removeChild(this);
} else {
this.x = (this.x + this._velocX);
};
}
}
}//package
Section 58
//Cloud1 (Cloud1)
package {
public dynamic class Cloud1 extends Cloud {
}
}//package
Section 59
//Cloud2 (Cloud2)
package {
public dynamic class Cloud2 extends Cloud {
}
}//package
Section 60
//Cloud3 (Cloud3)
package {
public dynamic class Cloud3 extends Cloud {
}
}//package
Section 61
//Cloud4 (Cloud4)
package {
public dynamic class Cloud4 extends Cloud {
}
}//package
Section 62
//cursor (cursor)
package {
import flash.display.*;
public dynamic class cursor extends MovieClip {
}
}//package
Section 63
//EagleBird (EagleBird)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class EagleBird extends MovieClip {
private var shot:Boolean;// = false
public var deathByPropeller:Boolean;// = false
public var fellOffScreen:Boolean;// = false
private var shootY:Number;
public var _birdDead:Boolean;// = false
public var _gravity:Number;
public var _frictionX:Number;
private var shootX:Number;
public var contraption:MovieClip;
public var hitAlready:Boolean;// = false
public var _velocX:Number;// = 0
public var pointsWorth:int;// = 100
public var scoreNotTaken:Boolean;// = true
public var _velocY:Number;// = 0
public var hitsLeft:int;// = 1
public var _enterLeft:Boolean;
public var birdType:String;
public var eagleTimer:Timer;
public var _maxSpeed:int;// = 6
public function EagleBird(_arg1:MovieClip){
_velocX = 0;
_velocY = 0;
_birdDead = false;
_maxSpeed = 6;
pointsWorth = 100;
deathByPropeller = false;
scoreNotTaken = true;
fellOffScreen = false;
hitAlready = false;
hitsLeft = 1;
shot = false;
super();
addFrameScript(20, frame21, 21, frame22, 22, frame23);
this._velocX = 1.5;
this._velocY = 0;
this._gravity = 1.5;
this._birdDead = false;
birdType = "EagleBird";
contraption = _arg1;
this.addEventListener(Event.ADDED_TO_STAGE, initBird);
}
public function birdFly(_arg1:Event):void{
if ((((this.x > ((stage.stageWidth + this.width) + 50))) || ((this.x < (0 - (this.width * 2.2)))))){
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
_birdDead = true;
fellOffScreen = true;
} else {
if ((((((this.x > 70)) && (!(shot)))) && (!(_birdDead)))){
shot = true;
eagleTimer = new Timer(1000, 1);
eagleTimer.start();
eagleTimer.addEventListener(TimerEvent.TIMER, startShoot);
this.removeEventListener(Event.ENTER_FRAME, birdFly);
} else {
this.x = (this.x + this._velocX);
if (_birdDead){
this._velocY = (this._velocY + _gravity);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation - (_velocX * 1.8));
this._frictionX = 0.95;
this.gotoAndStop(8);
};
};
};
}
public function unloadEvents():void{
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
}
function frame23(){
stop();
}
function frame22(){
stop();
}
function frame21(){
gotoAndPlay(1);
}
private function eagleShoot(_arg1:Event):void{
if ((((this.x > ((stage.stageWidth + this.width) + 50))) || ((this.x < (0 - (this.width * 2.2)))))){
this.removeEventListener(Event.ENTER_FRAME, eagleShoot);
this.parent.removeChild(this);
_birdDead = true;
fellOffScreen = true;
} else {
this.x = (this.x + shootX);
this.y = (this.y + shootY);
if (((((this.hitTestObject(contraption)) && (!(hitAlready)))) && (!(_birdDead)))){
MovieClip(this.parent).startWonky();
this.hitAlready = true;
};
if (_birdDead){
this._velocY = (this._velocY + _gravity);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation - (_velocX * 1.8));
this._frictionX = 0.95;
this.gotoAndStop("dead");
};
};
}
private function startShoot(_arg1:Event):void{
shootX = ((contraption.x - this.x) / 15);
shootY = ((contraption.y - this.y) / 15);
this.gotoAndPlay("attack");
this.addEventListener(Event.ENTER_FRAME, eagleShoot);
}
public function initBird(_arg1:Event):void{
this.addEventListener(Event.ENTER_FRAME, birdFly);
this.removeEventListener(Event.ADDED_TO_STAGE, initBird);
}
}
}//package
Section 64
//EagleSliceBottom (EagleSliceBottom)
package {
import flash.events.*;
import flash.display.*;
public class EagleSliceBottom extends MovieClip {
private var _curX:Number;
public var _gravity:Number;
private var _curVelocY:Number;
public var _frictionX:Number;
public var _frictionY:Number;
private var _curRotation:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public var _initY:int;
private var _curVelocX:Number;
private var _rotateAdd:Number;
private var _curY:Number;
public function EagleSliceBottom(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Array){
_curX = _arg1;
_curY = _arg2;
_curVelocX = _arg3;
_curVelocY = _arg4;
this.scaleX = _arg5;
this.scaleY = _arg6;
this.addEventListener(Event.ADDED, initSlice);
}
public function sliceFall(_arg1:Event):void{
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, sliceFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + _gravity);
_rotateAdd = (_rotateAdd - _frictionY);
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation + _rotateAdd);
};
}
public function initSlice(_arg1:Event):void{
this._velocX = ((_curVelocX * (Math.random() * 6)) - (6 * Math.random()));
this._velocY = ((_curVelocY * (Math.random() * 6)) - (16 * Math.random()));
_rotateAdd = ((_curVelocY * ((Math.random() * 3) - 6)) * -1);
this._gravity = 1.5;
this._frictionX = 0.95;
this._frictionY = 0.2;
this.x = _curX;
this.y = _curY;
this.addEventListener(Event.ENTER_FRAME, sliceFall);
this.removeEventListener(Event.ADDED, initSlice);
}
}
}//package
Section 65
//EagleSliceTop (EagleSliceTop)
package {
import flash.events.*;
import flash.display.*;
public class EagleSliceTop extends MovieClip {
private var _curX:Number;
public var _gravity:Number;
private var _curVelocY:Number;
public var _frictionX:Number;
public var _frictionY:Number;
private var _curRotation:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public var _initY:int;
private var _curVelocX:Number;
private var _rotateAdd:Number;
private var _curY:Number;
public function EagleSliceTop(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Array){
_curX = _arg1;
_curY = _arg2;
_curVelocX = _arg3;
_curVelocY = _arg4;
this.scaleX = _arg5;
this.scaleY = _arg6;
this.addEventListener(Event.ADDED, initSlice);
}
public function sliceFall(_arg1:Event):void{
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, sliceFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + _gravity);
_rotateAdd = (_rotateAdd + _frictionY);
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation + _rotateAdd);
};
}
public function initSlice(_arg1:Event):void{
this._velocX = ((_curVelocX * (Math.random() * 3)) - (6 * Math.random()));
this._velocY = ((_curVelocY * (Math.random() * 3)) - (16 * Math.random()));
_rotateAdd = (_curVelocY / 5);
this._gravity = 1.5;
this._frictionX = 0.95;
this._frictionY = 0.2;
this.x = _curX;
this.y = _curY;
this.addEventListener(Event.ENTER_FRAME, sliceFall);
this.removeEventListener(Event.ADDED, initSlice);
}
}
}//package
Section 66
//endLink (endLink)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class endLink extends MovieClip {
public function endLink(){
addFrameScript(0, frame1);
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, gotoLink2);
this.buttonMode = true;
}
public function gotoLink2(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gamesquat.com/free-online-games/");
navigateToURL(_local2);
this.removeEventListener(MouseEvent.CLICK, gotoLink2);
}
}
}//package
Section 67
//EnemyBlock (EnemyBlock)
package {
public class EnemyBlock {
private var delay:int;
public var blockGap:int;// = 2500
public var enemyListInitX:Array;
public var enemyListInitY:Array;
private var stageLeft:Number;// = -50
private var stageRight:Number;// = 550
public var enemyList:Array;
public var enterTimes:Array;
public var enemyListX:Array;
public var enemyListY:Array;
private var blockType:Number;
public function EnemyBlock(_arg1:int, _arg2:Number){
stageRight = 550;
stageLeft = (0 - 50);
blockGap = 2500;
super();
delay = _arg1;
blockType = _arg2;
}
private function swallowLine(){
enemyList = new Array(new SwallowBird(), new SwallowBird(), new SwallowBird());
enemyListX = new Array(stageLeft, stageLeft, stageLeft);
enemyListY = new Array(250, 300, 350);
enemyListInitX = new Array(7, 7, 7);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 150, 150);
}
private function lowColumnSwallowSeagull(){
enemyList = new Array(new SeagullBird(), new SimpleBird(), new SwallowBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(320, 350, 390);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 0, 0);
}
private function highColumnSeagull(){
enemyList = new Array(new SeagullBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(220, 250, 280);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 0, 0);
}
private function highBowUp(){
enemyList = new Array(new OwlBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(300, 150, 100, 70, 70, 100, 150);
enemyListInitX = new Array(-4, -5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 300, 300, 300, 300, 300);
}
private function topAndBottomMiddle(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(170, 250, 170, 250, 170, 250, 170, 250);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 300, 0, 300, 0, 300, 0);
}
private function lowColumnSeagull(){
enemyList = new Array(new SeagullBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(320, 350, 380);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 0, 0);
}
private function fattyCombo(){
enemyList = new Array(new SimpleBird(), new SeagullBird(), new SimpleBird(), new SeagullBird(), new SimpleBird(), new SeagullBird(), new SimpleBird(), new SeagullBird(), new SwallowBird(), new SwallowBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(70, 270, 70, 270, 70, 270, 70, 270, 320, 320);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5, -5, -5, -8, -7.5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 350, 0, 350, 0, 350, 0, 150, 150);
}
private function highColumn(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(70, 100, 130);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 0, 0);
}
private function highBowDown(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(70, 100, 150, 150, 100, 70);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0);
enterTimes = new Array(0, 300, 300, 300, 300, 300);
}
private function lowColumnHigh(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(220, 250, 280);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 0, 0);
}
private function midBowUp(){
enemyList = new Array(new OwlBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(370, 250, 200, 170, 170, 200, 250);
enemyListInitX = new Array(-4, -5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 300, 300, 300, 300, 300);
}
private function topAndBottomSimpleSeagull(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SeagullBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(70, 350, 70, 350, 240, 70, 350, 70, 350);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 300, 0, 150, 150, 0, 300, 0);
}
private function topAndBottomSimple(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(70, 350, 70, 350, 70, 350, 70, 350);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 300, 0, 300, 0, 300, 0);
}
private function swan(){
enemyList = new Array();
enemyList.push(new SwanBird());
enemyListX = new Array();
enemyListX.push(stageRight);
enemyListY = new Array();
enemyListY.push(250);
enemyListInitX = new Array();
enemyListInitX.push(-0.5);
enemyListInitY = new Array();
enemyListInitY.push(0);
enterTimes = new Array();
enterTimes.push(100);
}
private function DoubleHighRow(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(150, 190, 150, 190, 150, 190);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 300, 0, 300, 0);
}
private function circleSimple(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(200, 150, 250, 200, 150, 250, 200);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 150, 0, 150, 150, 0, 150);
}
private function seagullGuardHigh(){
enemyList = new Array(new SeagullBird(), new SimpleBird(), new SeagullBird(), new SimpleBird(), new SeagullBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(200, 240, 200, 240, 200, 240);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 300, 350, 0, 350, 0);
}
private function highColumnLow(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(120, 150, 170);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 0, 0);
}
private function DoubleLowRow(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(280, 350, 280, 350, 280, 350);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 300, 0, 300, 0);
}
private function midBowDown(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(170, 200, 250, 250, 200, 170);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0);
enterTimes = new Array(0, 300, 300, 300, 300, 300);
}
private function staggeredSeagullColumnReverse(){
enemyList = new Array(new SeagullBird(), new SeagullBird(), new SeagullBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(320, 350, 380);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 400, 400);
}
public function makeBlock():void{
blockGap = delay;
switch (blockType){
case 1:
threeSimpleWithChop();
break;
case 1.1:
lowStreak();
break;
case 1.2:
lowestStreak();
break;
case 2:
simpleCluster();
break;
case 2.1:
simpleClusterLow();
break;
case 2.2:
circleSimple();
break;
case 2.3:
circleSimpleLow();
break;
case 3:
seagullGuardHigh();
break;
case 3.1:
seagullGuard();
break;
case 3.2:
topAndBottomSimple();
break;
case 3.3:
topAndBottomMiddle();
break;
case 3.4:
topAndBottomSimpleSeagull();
break;
case 4:
highColumn();
break;
case 4.1:
highColumnLow();
break;
case 4.2:
lowColumnHigh();
break;
case 4.3:
lowColumn();
break;
case 4.4:
highColumnSeagull();
break;
case 4.5:
lowColumnSeagull();
break;
case 4.6:
highColumnSwallowSeagull();
break;
case 4.7:
lowColumnSwallowSeagull();
break;
case 4.8:
staggeredSimpleOther();
break;
case 4.9:
staggeredSimple();
break;
case 4.11:
staggeredSeagullColumn();
break;
case 4.12:
staggeredSeagullColumnReverse();
break;
case 5:
DoubleHighRow();
break;
case 5.1:
DoubleMidRow();
break;
case 5.2:
DoubleLowRow();
break;
case 5.3:
highRow();
break;
case 5.4:
midRow();
break;
case 5.5:
lowRow();
break;
case 6:
highBowUp();
break;
case 6.1:
midBowUp();
break;
case 6.2:
highBowDown();
break;
case 6.3:
midBowDown();
break;
case 7:
swallowBlob1();
break;
case 7.1:
swallowBlob2();
break;
case 7.2:
swallowLine();
break;
case 8:
seagullBlock();
break;
case 8.1:
fattyCombo();
break;
case 10:
swan();
break;
};
}
private function DoubleMidRow(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(200, 275, 200, 275, 200, 275);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 300, 0, 300, 0);
}
private function staggeredSeagullColumn(){
enemyList = new Array(new SeagullBird(), new SeagullBird(), new SeagullBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(380, 350, 320);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 400, 400);
}
private function simpleClusterLow(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(100, 170, 130, 100, 170, 130, 100, 170, 130, 170);
enemyListInitX = new Array(-6, -6, -6, -6, -6, -6, -6, -6, -6, -6);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 200, 200, 0, 200, 200, 0, 200);
}
private function swallowBlob1(){
enemyList = new Array(new SwallowBird(), new SwallowBird(), new SwallowBird(), new SwallowBird(), new SwallowBird());
enemyListX = new Array(stageLeft, stageLeft, stageLeft, stageLeft, stageLeft);
enemyListY = new Array(70, 100, 150, 100, 150);
enemyListInitX = new Array(7, 7, 7, 7, 7);
enemyListInitY = new Array(0.05, 0.05, 0.05, 0.05, 0.05);
enterTimes = new Array(blockGap, 0, 0, 150, 0);
}
private function highColumnSwallowSeagull(){
enemyList = new Array(new SeagullBird(), new SimpleBird(), new SwallowBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(220, 250, 290);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 0, 0);
}
private function lowColumn(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(320, 350, 380);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 0, 0);
}
private function lowestStreak(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(350, 350, 350, 200);
enemyListInitX = new Array(-6, -6, -6, -8);
enemyListInitY = new Array(0, 0, 0, 0);
enterTimes = new Array(blockGap, 300, 300, 0);
}
private function highRow(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(200, 200, 200);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 300, 300);
}
private function staggeredSimpleOther(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(380, 350, 320);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 150, 150);
}
private function staggeredSimple(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(320, 350, 380);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 150, 150);
}
private function swallowBlob2(){
enemyList = new Array(new SwallowBird(), new SwallowBird(), new SwallowBird(), new SwallowBird(), new SwallowBird());
enemyListX = new Array(stageLeft, stageLeft, stageLeft, stageLeft, stageLeft);
enemyListY = new Array(100, 150, 100, 150, 150);
enemyListInitX = new Array(7, 7, 7, 7, 7);
enemyListInitY = new Array(0.05, 0.05, 0.05, 0.05, 0.05);
enterTimes = new Array(blockGap, 0, 150, 0, 150);
}
private function circleSimpleLow(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(300, 250, 350, 300, 250, 350, 300);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 150, 0, 150, 150, 0, 150);
}
private function lowRow(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(350, 350, 350);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 300, 300);
}
private function simpleCluster(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(200, 270, 230, 200, 270, 230, 200, 270, 230, 270);
enemyListInitX = new Array(-6, -6, -6, -6, -6, -6, -6, -6, -6, -6);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 200, 200, 0, 200, 200, 0, 200);
}
private function simplesThenOwl(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird(), new OwlBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(100, 170, 130, 100, 170, 130, 100, 170, 130, 170, 400);
enemyListInitX = new Array(-6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 200, 200, 0, 200, 200, 0, 200, 0);
}
private function seagullGuard(){
enemyList = new Array(new SeagullBird(), new SimpleBird(), new SeagullBird(), new SimpleBird(), new SeagullBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(300, 340, 300, 340, 300, 340);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 300, 350, 0, 350, 0);
}
private function midRow(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight);
enemyListY = new Array(275, 275, 275);
enemyListInitX = new Array(-5, -5, -5);
enemyListInitY = new Array(0, 0, 0);
enterTimes = new Array(blockGap, 300, 300);
}
private function lowStreak(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(300, 300, 300, 130);
enemyListInitX = new Array(-6, -6, -6, -8);
enemyListInitY = new Array(0, 0, 0, 0);
enterTimes = new Array(blockGap, 300, 300, 0);
}
private function threeSimpleWithChop(){
enemyList = new Array(new SimpleBird(), new SimpleBird(), new SimpleBird(), new SimpleBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(200, 200, 200, 70);
enemyListInitX = new Array(-6, -6, -6, -8);
enemyListInitY = new Array(0, 0, 0, 0);
enterTimes = new Array(blockGap, 300, 300, 0);
}
private function seagullBlock(){
enemyList = new Array(new SeagullBird(), new SeagullBird(), new SeagullBird(), new SeagullBird(), new SeagullBird(), new SeagullBird());
enemyListX = new Array(stageRight, stageRight, stageRight, stageRight, stageRight, stageRight);
enemyListY = new Array(200, 300, 200, 300, 200, 300);
enemyListInitX = new Array(-5, -5, -5, -5, -5, -5);
enemyListInitY = new Array(0, 0, 0, 0, 0, 0);
enterTimes = new Array(blockGap, 0, 350, 0, 350, 0);
}
}
}//package
Section 68
//final_score (final_score)
package {
import flash.display.*;
import flash.text.*;
public dynamic class final_score extends MovieClip {
public var score_txt:TextField;
}
}//package
Section 69
//final_score_thin (final_score_thin)
package {
import flash.display.*;
import flash.text.*;
public dynamic class final_score_thin extends MovieClip {
public var finalScore_txt:TextField;
public var menu_btn:MovieClip;
}
}//package
Section 70
//FloatPoo (FloatPoo)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class FloatPoo extends MovieClip {
public var _targetsOnScreen:Array;
public var _gravity:Number;
public var _frictionX:Number;
public var _frictionY:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
private var hitTimer:Timer;
private var hitReady:Boolean;// = true
public function FloatPoo(_arg1:Array){
_targetsOnScreen = new Array();
hitReady = true;
super();
_targetsOnScreen = _arg1;
this.addEventListener(Event.ADDED, initPoo);
}
public function pooFall(_arg1:Event):void{
var _local2:int;
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, pooFall);
MovieClip(this.parent).removeFloat();
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + _gravity);
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (_velocX * -1.8);
_local2 = 0;
while (_local2 < _targetsOnScreen.length) {
if (((hitReady) && (this.hitTestObject(_targetsOnScreen[_local2])))){
hitReady = false;
_targetsOnScreen[_local2].hitsLeft--;
hitTimer = new Timer(330, 1);
hitTimer.addEventListener(TimerEvent.TIMER, pooHitOn);
hitTimer.start();
if (_targetsOnScreen[_local2].hitsLeft <= 0){
_targetsOnScreen[_local2]._birdDead = true;
};
break;
};
_local2++;
};
};
}
function pooHitOn(_arg1:Event):void{
hitReady = true;
}
public function initPoo(_arg1:Event):void{
this._velocX = _initX;
this._velocY = 3;
this._gravity = 0.01;
this._frictionX = 0.99;
this._frictionY = 0.99;
this.addEventListener(Event.ENTER_FRAME, pooFall);
this.removeEventListener(Event.ADDED, initPoo);
}
}
}//package
Section 71
//gamesquat_btn (gamesquat_btn)
package {
import flash.display.*;
public dynamic class gamesquat_btn extends MovieClip {
public function gamesquat_btn(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package
Section 72
//gh4 (gh4)
package {
public dynamic class gh4 extends Level {
}
}//package
Section 73
//hud_mute (hud_mute)
package {
import flash.display.*;
public dynamic class hud_mute extends MovieClip {
public function hud_mute(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.buttonMode = true;
stop();
}
function frame2(){
stop();
}
}
}//package
Section 74
//Level (Level)
package {
import flash.events.*;
import flash.display.*;
public class Level extends MovieClip {
public var _velocX:Number;
public function Level(){
this._velocX = (0.3 * -1);
this.addEventListener(Event.ADDED, initLevel);
}
public function stopMove():void{
this.removeEventListener(Event.ENTER_FRAME, LevelMove);
}
public function initLevel(_arg1:Event):void{
this.removeEventListener(Event.ADDED, initLevel);
}
public function LevelMove(_arg1:Event):void{
if (this.x > 500){
this.removeEventListener(Event.ENTER_FRAME, LevelMove);
this.parent.removeChild(this);
} else {
this.x = (this.x + this._velocX);
};
}
public function scrollLevel(){
this.addEventListener(Event.ENTER_FRAME, LevelMove);
}
}
}//package
Section 75
//Level1 (Level1)
package {
public dynamic class Level1 extends Level {
}
}//package
Section 76
//Level2 (Level2)
package {
public dynamic class Level2 extends Level {
}
}//package
Section 77
//Level3 (Level3)
package {
public dynamic class Level3 extends Level {
}
}//package
Section 78
//Level3Back (Level3Back)
package {
import flash.display.*;
public dynamic class Level3Back extends MovieClip {
}
}//package
Section 79
//LevelComplete (LevelComplete)
package {
import flash.display.*;
public dynamic class LevelComplete extends MovieClip {
public function LevelComplete(){
addFrameScript(129, frame130);
}
function frame130(){
stop();
MovieClip(this.parent).removeChild(this);
}
}
}//package
Section 80
//LevelFailed (LevelFailed)
package {
import flash.display.*;
public dynamic class LevelFailed extends MovieClip {
public function LevelFailed(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
MovieClip(this.parent).removeChild(this);
}
}
}//package
Section 81
//loadingBar (loadingBar)
package {
import flash.display.*;
public dynamic class loadingBar extends MovieClip {
}
}//package
Section 82
//logo (logo)
package {
import flash.display.*;
public dynamic class logo extends MovieClip {
public function logo(){
addFrameScript(0, frame1, 30, frame31);
}
function frame1(){
stop();
}
function frame31(){
stop();
}
}
}//package
Section 83
//mcFoodPoo1 (mcFoodPoo1)
package {
import flash.display.*;
public dynamic class mcFoodPoo1 extends MovieClip {
}
}//package
Section 84
//mcFoodPoo2 (mcFoodPoo2)
package {
import flash.display.*;
public dynamic class mcFoodPoo2 extends MovieClip {
}
}//package
Section 85
//mcFoodPoo3 (mcFoodPoo3)
package {
import flash.display.*;
public dynamic class mcFoodPoo3 extends MovieClip {
}
}//package
Section 86
//mcQualityPress (mcQualityPress)
package {
import flash.display.*;
public dynamic class mcQualityPress extends MovieClip {
public function mcQualityPress(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package
Section 87
//mcRestart (mcRestart)
package {
import flash.display.*;
public dynamic class mcRestart extends MovieClip {
}
}//package
Section 88
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 89
//newtutorial (newtutorial)
package {
import flash.events.*;
import flash.display.*;
public dynamic class newtutorial extends MovieClip {
public var tutForw_mc:nextTip;
public var tutBack_mc:nextTip;
public var tutStart_mc:tutorialStart;
public function newtutorial(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
tutForw_mc.addEventListener(MouseEvent.CLICK, bum);
tutBack_mc.addEventListener(MouseEvent.CLICK, prevTip);
tutStart_mc.addEventListener(MouseEvent.CLICK, startGame);
tutForw_mc.buttonMode = true;
tutBack_mc.buttonMode = true;
tutStart_mc.buttonMode = true;
}
public function prevTip(_arg1:MouseEvent):void{
if (this.currentFrame > 1){
prevFrame();
};
}
public function startGame(_arg1:MouseEvent):void{
}
public function bum(_arg1:MouseEvent):void{
if (this.currentFrame <= 3){
nextFrame();
};
}
}
}//package
Section 90
//nextTip (nextTip)
package {
import flash.display.*;
public dynamic class nextTip extends MovieClip {
}
}//package
Section 91
//OwlBird (OwlBird)
package {
import flash.events.*;
import flash.display.*;
public class OwlBird extends MovieClip {
public var deathByPropeller:Boolean;// = false
public var fellOffScreen:Boolean;// = false
public var _birdDead:Boolean;// = false
public var _gravity:Number;
public var _frictionX:Number;
public var _velocX:Number;// = 0
public var pointsWorth:int;// = 150
public var scoreNotTaken:Boolean;// = true
public var _velocY:Number;// = 0
public var hitsLeft:int;// = 30
public var _enterLeft:Boolean;
public var birdType:String;
public var _maxSpeed:int;// = 6
public function OwlBird(){
_velocX = 0;
_velocY = 0;
_birdDead = false;
_maxSpeed = 6;
pointsWorth = 150;
deathByPropeller = false;
scoreNotTaken = true;
fellOffScreen = false;
hitsLeft = 30;
super();
addFrameScript(11, frame12, 23, frame24, 35, frame36, 47, frame48);
this._velocX = (((Math.random() * 0.6) + 0.6) * -1);
this._velocY = 0;
this._gravity = 1.5;
this._birdDead = false;
birdType = "OwlBird";
this.scaleX = 0.9;
this.scaleY = 0.9;
this.addEventListener(Event.ADDED_TO_STAGE, initBird);
}
public function birdFly(_arg1:Event):void{
if ((((((hitsLeft < 30)) && ((hitsLeft > 19)))) && ((this.currentFrame < 12)))){
this.gotoAndPlay("hitOnce");
} else {
if ((((((hitsLeft < 20)) && ((hitsLeft > 9)))) && ((this.currentFrame < 24)))){
this.gotoAndPlay("hitTwice");
} else {
if ((((((hitsLeft < 10)) && ((hitsLeft > 0)))) && ((this.currentFrame < 37)))){
this.gotoAndPlay("hitTHRICE");
};
};
};
if ((((((this.x > ((stage.stageWidth + this.width) + 50))) || ((this.x < (0 - (this.width * 2.2)))))) || ((this.y > stage.stageHeight)))){
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
_birdDead = true;
fellOffScreen = true;
} else {
this.x = (this.x + this._velocX);
if (_birdDead){
this._velocY = (this._velocY + _gravity);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation - (_velocX * 1.8));
this._frictionX = 0.95;
this.gotoAndStop("dead");
};
};
}
public function unloadEvents():void{
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
}
function frame12(){
gotoAndPlay(1);
}
function frame36(){
gotoAndPlay("hitTwice");
}
function frame24(){
gotoAndPlay("hitOnce");
}
function frame48(){
gotoAndPlay("hitTHRICE");
}
public function initBird(_arg1:Event):void{
this.addEventListener(Event.ENTER_FRAME, birdFly);
this.removeEventListener(Event.ADDED_TO_STAGE, initBird);
}
}
}//package
Section 92
//PoisonPoo1 (PoisonPoo1)
package {
import flash.events.*;
import flash.display.*;
public class PoisonPoo1 extends MovieClip {
public var _targetsOnScreen:Array;
public var _gravity:Number;
public var _frictionX:Number;
public var _frictionY:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public function PoisonPoo1(_arg1:Array){
_targetsOnScreen = new Array();
super();
_targetsOnScreen = _arg1;
this.addEventListener(Event.ADDED, initPoo);
}
public function pooFall(_arg1:Event):void{
var _local2:int;
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + (_gravity - _frictionY));
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
_local2 = 0;
while (_local2 < _targetsOnScreen.length) {
if (this.hitTestObject(_targetsOnScreen[_local2])){
_targetsOnScreen[_local2].hitsLeft--;
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
if (_targetsOnScreen[_local2].hitsLeft <= 0){
_targetsOnScreen[_local2]._birdDead = true;
};
break;
};
_local2++;
};
};
}
public function initPoo(_arg1:Event):void{
this._velocX = ((Math.random() * 10) - 5);
this._velocY = 10;
this._gravity = 2;
this._frictionX = 0.95;
this._frictionY = 0.95;
this.rotation = (Math.random() * 360);
this.addEventListener(Event.ENTER_FRAME, pooFall);
this.removeEventListener(Event.ADDED, initPoo);
}
}
}//package
Section 93
//PoisonPoo2 (PoisonPoo2)
package {
import flash.events.*;
import flash.display.*;
public class PoisonPoo2 extends MovieClip {
public var _targetsOnScreen:Array;
public var _gravity:Number;
public var _frictionX:Number;
public var _frictionY:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public function PoisonPoo2(_arg1:Array){
_targetsOnScreen = new Array();
super();
_targetsOnScreen = _arg1;
this.addEventListener(Event.ADDED, initPoo);
}
public function pooFall(_arg1:Event):void{
var _local2:int;
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + (_gravity - _frictionY));
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
_local2 = 0;
while (_local2 < _targetsOnScreen.length) {
if (this.hitTestObject(_targetsOnScreen[_local2])){
_targetsOnScreen[_local2].hitsLeft--;
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
if (_targetsOnScreen[_local2].hitsLeft <= 0){
_targetsOnScreen[_local2]._birdDead = true;
};
break;
};
_local2++;
};
};
}
public function initPoo(_arg1:Event):void{
this._velocX = ((Math.random() * 10) - 5);
this._velocY = 10;
this._gravity = 2;
this._frictionX = 0.95;
this._frictionY = 0.95;
this.rotation = (Math.random() * 360);
this.addEventListener(Event.ENTER_FRAME, pooFall);
this.removeEventListener(Event.ADDED, initPoo);
}
}
}//package
Section 94
//PoisonPoo3 (PoisonPoo3)
package {
import flash.events.*;
import flash.display.*;
public class PoisonPoo3 extends MovieClip {
public var _targetsOnScreen:Array;
public var _gravity:Number;
public var _frictionX:Number;
public var _frictionY:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public function PoisonPoo3(_arg1:Array){
_targetsOnScreen = new Array();
super();
_targetsOnScreen = _arg1;
this.addEventListener(Event.ADDED, initPoo);
}
public function pooFall(_arg1:Event):void{
var _local2:int;
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + (_gravity - _frictionY));
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
_local2 = 0;
while (_local2 < _targetsOnScreen.length) {
if (this.hitTestObject(_targetsOnScreen[_local2])){
_targetsOnScreen[_local2].hitsLeft--;
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
if (_targetsOnScreen[_local2].hitsLeft <= 0){
_targetsOnScreen[_local2]._birdDead = true;
};
break;
};
_local2++;
};
};
}
public function initPoo(_arg1:Event):void{
this._velocX = ((Math.random() * 10) - 5);
this._velocY = 10;
this._gravity = 2;
this._frictionX = 0.95;
this._frictionY = 0.95;
this.rotation = (Math.random() * 360);
this.addEventListener(Event.ENTER_FRAME, pooFall);
this.removeEventListener(Event.ADDED, initPoo);
}
}
}//package
Section 95
//PoisonPoo4 (PoisonPoo4)
package {
import flash.events.*;
import flash.display.*;
public class PoisonPoo4 extends MovieClip {
public var _targetsOnScreen:Array;
public var _gravity:Number;
public var _frictionX:Number;
public var _frictionY:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public function PoisonPoo4(_arg1:Array){
_targetsOnScreen = new Array();
super();
_targetsOnScreen = _arg1;
this.addEventListener(Event.ADDED, initPoo);
}
public function pooFall(_arg1:Event):void{
var _local2:int;
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + (_gravity - _frictionY));
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
_local2 = 0;
while (_local2 < _targetsOnScreen.length) {
if (this.hitTestObject(_targetsOnScreen[_local2])){
_targetsOnScreen[_local2].hitsLeft--;
this.removeEventListener(Event.ENTER_FRAME, pooFall);
this.parent.removeChild(this);
if (_targetsOnScreen[_local2].hitsLeft <= 0){
_targetsOnScreen[_local2]._birdDead = true;
};
break;
};
_local2++;
};
};
}
public function initPoo(_arg1:Event):void{
this._velocX = ((Math.random() * 10) - 5);
this._velocY = 10;
this._gravity = 2;
this._frictionX = 0.95;
this._frictionY = 0.95;
this.rotation = (Math.random() * 360);
this.addEventListener(Event.ENTER_FRAME, pooFall);
this.removeEventListener(Event.ADDED, initPoo);
}
}
}//package
Section 96
//SeagullBird (SeagullBird)
package {
import flash.events.*;
import flash.display.*;
public class SeagullBird extends MovieClip {
public var deathByPropeller:Boolean;// = false
public var fellOffScreen:Boolean;// = false
public var _birdDead:Boolean;// = false
public var _gravity:Number;
public var _frictionX:Number;
public var _velocX:Number;// = 0
public var pointsWorth:int;// = 30
public var scoreNotTaken:Boolean;// = true
public var _velocY:Number;// = 0
public var hitsLeft:int;// = 2
public var _enterLeft:Boolean;
public var birdType:String;
public var _maxSpeed:int;// = 6
public function SeagullBird(){
_velocX = 0;
_velocY = 0;
_birdDead = false;
_maxSpeed = 6;
pointsWorth = 30;
deathByPropeller = false;
scoreNotTaken = true;
fellOffScreen = false;
hitsLeft = 2;
super();
addFrameScript(19, frame20, 39, frame40);
this._velocX = (((Math.random() * 0.9) + 1.5) * -1);
this._velocY = 0;
this._gravity = 1.5;
this._birdDead = false;
birdType = "SeagullBird";
this.addEventListener(Event.ADDED, initBird);
}
public function birdFly(_arg1:Event):void{
if ((((hitsLeft < 2)) && ((this.currentFrame < 21)))){
this.gotoAndPlay("hit");
};
if ((this.x > this.x) < (0 - (this.width * 2.2))){
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
_birdDead = true;
fellOffScreen = true;
} else {
this.x = (this.x + this._velocX);
if (_birdDead){
this._velocY = (this._velocY + _gravity);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation - (_velocX * 3.8));
this._frictionX = 0.95;
this.gotoAndStop("dead");
};
};
}
public function unloadEvents():void{
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
}
function frame20(){
gotoAndPlay(1);
}
function frame40(){
gotoAndPlay("21");
}
public function initBird(_arg1:Event):void{
this.addEventListener(Event.ENTER_FRAME, birdFly);
this.removeEventListener(Event.ADDED, initBird);
}
}
}//package
Section 97
//SeagullSliceBottom (SeagullSliceBottom)
package {
import flash.events.*;
import flash.display.*;
public class SeagullSliceBottom extends MovieClip {
private var _curX:Number;
public var _gravity:Number;
private var _curVelocY:Number;
public var _frictionX:Number;
public var _frictionY:Number;
private var _curRotation:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public var _initY:int;
private var _curVelocX:Number;
private var _rotateAdd:Number;
private var _curY:Number;
public function SeagullSliceBottom(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Array){
_curX = _arg1;
_curY = _arg2;
_curVelocX = _arg3;
_curVelocY = _arg4;
this.scaleX = _arg5;
this.scaleY = _arg6;
this.addEventListener(Event.ADDED, initSlice);
}
public function sliceFall(_arg1:Event):void{
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, sliceFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + _gravity);
_rotateAdd = (_rotateAdd - _frictionY);
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation + _rotateAdd);
};
}
public function initSlice(_arg1:Event):void{
this._velocX = ((_curVelocX * (Math.random() * 6)) - (6 * Math.random()));
this._velocY = ((_curVelocY * (Math.random() * 6)) - (16 * Math.random()));
_rotateAdd = ((_curVelocY * ((Math.random() * 3) - 6)) * -1);
this._gravity = 1.5;
this._frictionX = 0.95;
this._frictionY = 0.2;
this.x = _curX;
this.y = _curY;
this.addEventListener(Event.ENTER_FRAME, sliceFall);
this.removeEventListener(Event.ADDED, initSlice);
}
}
}//package
Section 98
//SeagullSliceTop (SeagullSliceTop)
package {
import flash.events.*;
import flash.display.*;
public class SeagullSliceTop extends MovieClip {
private var _curX:Number;
public var _gravity:Number;
private var _curVelocY:Number;
public var _frictionX:Number;
public var _frictionY:Number;
private var _curRotation:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public var _initY:int;
private var _curVelocX:Number;
private var _rotateAdd:Number;
private var _curY:Number;
public function SeagullSliceTop(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Array){
_curX = _arg1;
_curY = _arg2;
_curVelocX = _arg3;
_curVelocY = _arg4;
this.scaleX = _arg5;
this.scaleY = _arg6;
this.addEventListener(Event.ADDED, initSlice);
}
public function sliceFall(_arg1:Event):void{
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, sliceFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + _gravity);
_rotateAdd = (_rotateAdd + _frictionY);
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation + _rotateAdd);
};
}
public function initSlice(_arg1:Event):void{
this._velocX = ((_curVelocX * (Math.random() * 3)) - (6 * Math.random()));
this._velocY = ((_curVelocY * (Math.random() * 3)) - (16 * Math.random()));
_rotateAdd = (_curVelocY / 5);
this._gravity = 1.5;
this._frictionX = 0.95;
this._frictionY = 0.2;
this.x = _curX;
this.y = _curY;
this.addEventListener(Event.ENTER_FRAME, sliceFall);
this.removeEventListener(Event.ADDED, initSlice);
}
}
}//package
Section 99
//SimpleBird (SimpleBird)
package {
import flash.events.*;
import flash.display.*;
public class SimpleBird extends MovieClip {
public var deathByPropeller:Boolean;// = false
public var fellOffScreen:Boolean;// = false
public var _birdDead:Boolean;// = false
public var _gravity:Number;
public var _frictionX:Number;
public var _velocX:Number;// = 0
public var pointsWorth:int;// = 10
public var scoreNotTaken:Boolean;// = true
public var _velocY:Number;// = 0
public var hitsLeft:int;// = 1
public var _enterLeft:Boolean;
public var birdType:String;
public var _maxSpeed:int;// = 6
public function SimpleBird(){
_velocX = 0;
_velocY = 0;
_birdDead = false;
_maxSpeed = 6;
pointsWorth = 10;
deathByPropeller = false;
scoreNotTaken = true;
fellOffScreen = false;
hitsLeft = 1;
super();
addFrameScript(6, frame7, 7, frame8);
this._velocX = (((Math.random() * 2) + 4) * -1);
this._velocY = 0;
this._gravity = 1.5;
this._birdDead = false;
birdType = "SimpleBird";
this.addEventListener(Event.ADDED_TO_STAGE, initBird);
}
public function birdFly(_arg1:Event):void{
if ((((((this.x > ((stage.stageWidth + this.width) + 50))) || ((this.x < (0 - (this.width * 2.2)))))) || ((this.y > stage.stageHeight)))){
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
_birdDead = true;
fellOffScreen = true;
} else {
this.x = (this.x + this._velocX);
if (_birdDead){
this._velocY = (this._velocY + _gravity);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation - (_velocX * 1.8));
this._frictionX = 0.95;
this.gotoAndStop(8);
};
};
}
public function unloadEvents():void{
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
}
function frame7(){
gotoAndPlay(1);
}
function frame8(){
stop();
}
public function initBird(_arg1:Event):void{
this.addEventListener(Event.ENTER_FRAME, birdFly);
this.removeEventListener(Event.ADDED_TO_STAGE, initBird);
}
}
}//package
Section 100
//SimpleBirdSliceBottom (SimpleBirdSliceBottom)
package {
import flash.events.*;
import flash.display.*;
public class SimpleBirdSliceBottom extends MovieClip {
private var _curX:Number;
public var _gravity:Number;
private var _curVelocY:Number;
public var _frictionX:Number;
public var _frictionY:Number;
private var _curRotation:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public var _initY:int;
private var _curVelocX:Number;
private var _rotateAdd:Number;
private var _curY:Number;
public function SimpleBirdSliceBottom(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Array){
_curX = _arg1;
_curY = _arg2;
_curVelocX = _arg3;
_curVelocY = _arg4;
this.scaleX = _arg5;
this.scaleY = _arg6;
this.addEventListener(Event.ADDED, initSlice);
}
public function sliceFall(_arg1:Event):void{
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, sliceFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + (_gravity - _frictionY));
_rotateAdd = (_rotateAdd - _frictionY);
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation + _rotateAdd);
};
}
public function initSlice(_arg1:Event):void{
this._velocX = ((_curVelocX * (Math.random() * 3)) - (6 * Math.random()));
this._velocY = ((_curVelocY * (Math.random() * 3)) - (6 * Math.random()));
_rotateAdd = ((_curVelocY * (Math.random() * 3)) - 6);
this._gravity = 1.5;
this._frictionX = 0.95;
this._frictionY = 0.95;
this.x = _curX;
this.y = _curY;
this.addEventListener(Event.ENTER_FRAME, sliceFall);
this.removeEventListener(Event.ADDED, initSlice);
}
}
}//package
Section 101
//SimpleBirdSliceTop (SimpleBirdSliceTop)
package {
import flash.events.*;
import flash.display.*;
public class SimpleBirdSliceTop extends MovieClip {
private var _curX:Number;
public var _gravity:Number;
private var _curVelocY:Number;
public var _frictionX:Number;
public var _frictionY:Number;
private var _curRotation:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public var _initY:int;
private var _curVelocX:Number;
private var _rotateAdd:Number;
private var _curY:Number;
public function SimpleBirdSliceTop(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Array){
_curX = _arg1;
_curY = _arg2;
_curVelocX = _arg3;
_curVelocY = _arg4;
this.scaleX = _arg5;
this.scaleY = _arg6;
this.addEventListener(Event.ADDED, initSlice);
}
public function sliceFall(_arg1:Event):void{
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, sliceFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + (_gravity - _frictionY));
_rotateAdd = (_rotateAdd + _frictionY);
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation + _rotateAdd);
};
}
public function initSlice(_arg1:Event):void{
this._velocX = ((_curVelocX * (Math.random() * 3)) - (6 * Math.random()));
this._velocY = ((_curVelocY * (Math.random() * 3)) - (6 * Math.random()));
_rotateAdd = (((_curVelocY * (Math.random() * 3)) - (6 * 2)) * -1);
this._gravity = 1.5;
this._frictionX = 0.95;
this._frictionY = 0.95;
this.x = _curX;
this.y = _curY;
this.addEventListener(Event.ENTER_FRAME, sliceFall);
this.removeEventListener(Event.ADDED, initSlice);
}
}
}//package
Section 102
//splitSplat (splitSplat)
package {
import flash.display.*;
public dynamic class splitSplat extends MovieClip {
public function splitSplat(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
this.rotation = 90;
}
function frame20(){
stop();
this.parent.removeChild(this);
}
}
}//package
Section 103
//Stats (Stats)
package {
import flash.display.*;
public dynamic class Stats extends MovieClip {
public var statsPanel:MovieClip;
public function Stats(){
addFrameScript(0, frame1, 80, frame81, 155, frame156);
}
function frame156(){
this.visible = false;
}
function frame81(){
gotoAndPlay("startbob");
}
function frame1(){
stop();
this.visible = false;
}
}
}//package
Section 104
//sun_mc (sun_mc)
package {
import flash.display.*;
public dynamic class sun_mc extends MovieClip {
}
}//package
Section 105
//SwallowBird (SwallowBird)
package {
import flash.events.*;
import flash.display.*;
public class SwallowBird extends MovieClip {
public var deathByPropeller:Boolean;// = false
public var fellOffScreen:Boolean;// = false
public var _birdDead:Boolean;// = false
public var _gravity:Number;
public var flipPoint:Number;
public var _frictionX:Number;
public var _velocX:Number;// = 0
public var pointsWorth:int;// = 20
public var scoreNotTaken:Boolean;// = true
public var _velocY:Number;// = 0
public var hitsLeft:int;// = 1
public var _enterLeft:Boolean;
public var birdType:String;
public var _maxSpeed:int;// = 6
public function SwallowBird(){
_velocX = 0;
_velocY = 0;
_birdDead = false;
_maxSpeed = 6;
pointsWorth = 20;
deathByPropeller = false;
scoreNotTaken = true;
fellOffScreen = false;
hitsLeft = 1;
flipPoint = (Math.random() * 300);
super();
addFrameScript(0, frame1, 1, frame2);
this._velocX = ((Math.random() * 7) + 7);
this._gravity = -1.5;
this._birdDead = false;
birdType = "SwallowBird";
this.addEventListener(Event.ADDED_TO_STAGE, initBird);
}
public function birdFly(_arg1:Event):void{
if ((((((this.x > ((stage.stageWidth + this.width) + 50))) || ((this.x < (0 - (this.width * 2.2)))))) || ((this.y > stage.stageHeight)))){
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
_birdDead = true;
fellOffScreen = true;
} else {
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
if (_birdDead){
this._velocY = (this._velocY - _gravity);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation + (_velocX * 0.5));
this._frictionX = 0.95;
this.gotoAndStop("hit");
};
};
}
function frame2(){
stop();
}
public function unloadEvents():void{
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
}
function frame1(){
stop();
}
public function initBird(_arg1:Event):void{
this.addEventListener(Event.ENTER_FRAME, birdFly);
this.removeEventListener(Event.ADDED_TO_STAGE, initBird);
}
}
}//package
Section 106
//SwallowBirdSliceBottom (SwallowBirdSliceBottom)
package {
import flash.events.*;
import flash.display.*;
public class SwallowBirdSliceBottom extends MovieClip {
private var _curX:Number;
public var _gravity:Number;
private var _curVelocY:Number;
public var _frictionX:Number;
public var _frictionY:Number;
private var _curRotation:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public var _initY:int;
private var _curVelocX:Number;
private var _rotateAdd:Number;
private var _curY:Number;
public function SwallowBirdSliceBottom(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Array){
_curX = _arg1;
_curY = _arg2;
_curVelocX = _arg3;
_curVelocY = _arg4;
this.scaleX = _arg5;
this.scaleY = _arg6;
this.addEventListener(Event.ADDED, initSlice);
}
public function sliceFall(_arg1:Event):void{
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, sliceFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + (_gravity - _frictionY));
_rotateAdd = (_rotateAdd - _frictionY);
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation + _rotateAdd);
};
}
public function initSlice(_arg1:Event):void{
this._velocX = ((_curVelocX * (Math.random() * 3)) - (6 * Math.random()));
this._velocY = ((_curVelocY * (Math.random() * 3)) - (6 * Math.random()));
_rotateAdd = ((_curVelocY * (Math.random() * 3)) - 6);
this._gravity = 1.5;
this._frictionX = 0.95;
this._frictionY = 0.95;
this.x = _curX;
this.y = _curY;
this.addEventListener(Event.ENTER_FRAME, sliceFall);
this.removeEventListener(Event.ADDED, initSlice);
}
}
}//package
Section 107
//SwallowBirdSliceTop (SwallowBirdSliceTop)
package {
import flash.events.*;
import flash.display.*;
public class SwallowBirdSliceTop extends MovieClip {
private var _curX:Number;
public var _gravity:Number;
private var _curVelocY:Number;
public var _frictionX:Number;
public var _frictionY:Number;
private var _curRotation:Number;
public var _initX:int;
public var _velocX:Number;
public var _velocY:Number;
public var _initY:int;
private var _curVelocX:Number;
private var _rotateAdd:Number;
private var _curY:Number;
public function SwallowBirdSliceTop(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Array){
_curX = _arg1;
_curY = _arg2;
_curVelocX = _arg3;
_curVelocY = _arg4;
this.scaleX = _arg5;
this.scaleY = _arg6;
this.addEventListener(Event.ADDED, initSlice);
}
public function sliceFall(_arg1:Event):void{
if (this.y > stage.stageHeight){
this.removeEventListener(Event.ENTER_FRAME, sliceFall);
this.parent.removeChild(this);
} else {
this._velocX = (this._velocX * _frictionX);
this._velocY = (this._velocY + (_gravity - _frictionY));
_rotateAdd = (_rotateAdd + _frictionY);
this.x = (this.x + this._velocX);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation + _rotateAdd);
};
}
public function initSlice(_arg1:Event):void{
this._velocX = ((_curVelocX * (Math.random() * 3)) - (6 * Math.random()));
this._velocY = ((_curVelocY * (Math.random() * 3)) - (6 * Math.random()));
_rotateAdd = (((_curVelocY * (Math.random() * 3)) - (6 * 2)) * -1);
this._gravity = 1.5;
this._frictionX = 0.95;
this._frictionY = 0.95;
this.x = _curX;
this.y = _curY;
this.addEventListener(Event.ENTER_FRAME, sliceFall);
this.removeEventListener(Event.ADDED, initSlice);
}
}
}//package
Section 108
//SwanBird (SwanBird)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class SwanBird extends MovieClip {
public var deathByPropeller:Boolean;// = false
public var fellOffScreen:Boolean;// = false
public var _birdDead:Boolean;// = false
public var _gravity:Number;
public var _frictionX:Number;
public var eogTimer:Timer;
public var _velocX:Number;// = 0
public var pointsWorth:int;// = 1000
public var scoreNotTaken:Boolean;// = true
public var _velocY:Number;// = 0
public var hitsLeft:int;// = 100
public var _enterLeft:Boolean;
public var birdType:String;
public var _maxSpeed:int;// = 6
public function SwanBird(){
_velocX = 0;
_velocY = 0;
_birdDead = false;
_maxSpeed = 6;
pointsWorth = 1000;
deathByPropeller = false;
scoreNotTaken = true;
fellOffScreen = false;
hitsLeft = 100;
eogTimer = new Timer(2000, 1);
super();
addFrameScript(24, frame25, 49, frame50, 74, frame75, 99, frame100, 100, frame101);
this._velocX = (((Math.random() * 0.6) + 0.3) * -1);
this._velocY = 0;
this._gravity = 1.5;
this._birdDead = false;
birdType = "SwanBird";
this.scaleX = 0.3;
this.scaleY = 0.3;
this.addEventListener(Event.ADDED_TO_STAGE, initBird);
}
public function birdFly(_arg1:Event):void{
if ((((((hitsLeft < 100)) && ((hitsLeft > 99)))) && ((this.currentFrame < 12)))){
this.gotoAndPlay("hitOnce");
} else {
if ((((((hitsLeft < 50)) && ((hitsLeft > 51)))) && ((this.currentFrame < 24)))){
this.gotoAndPlay("hitTwice");
} else {
if ((((((hitsLeft < 50)) && ((hitsLeft > 0)))) && ((this.currentFrame < 37)))){
this.gotoAndPlay("hitTHRICE");
};
};
};
if ((((((this.x > ((stage.stageWidth + this.width) + 50))) || ((this.x < (0 - (this.width * 2.2)))))) || ((this.y > stage.stageHeight)))){
if (this._birdDead){
eogTimer.addEventListener(TimerEvent.TIMER, endGamePlease);
eogTimer.start();
} else {
MovieClip(this.parent).removeChild(this);
};
this.removeEventListener(Event.ENTER_FRAME, birdFly);
_birdDead = true;
fellOffScreen = true;
} else {
this.x = (this.x + this._velocX);
if (_birdDead){
this._velocY = (this._velocY + _gravity);
this.y = (this.y + this._velocY);
this.rotation = (this.rotation - (_velocX * 1.8));
this._frictionX = 0.95;
this.gotoAndStop("dead");
};
};
}
public function unloadEvents():void{
this.removeEventListener(Event.ENTER_FRAME, birdFly);
this.parent.removeChild(this);
}
function frame75(){
gotoAndPlay("hitTwice");
}
function frame25(){
gotoAndPlay(1);
}
function frame100(){
gotoAndPlay("hitTHRICE");
}
function endGamePlease(_arg1:Event){
eogTimer.removeEventListener(TimerEvent.TIMER, endGamePlease);
MovieClip(this.parent).endGame();
}
function frame101(){
stop();
}
function frame50(){
gotoAndPlay("hitOnce");
}
public function initBird(_arg1:Event):void{
this.addEventListener(Event.ENTER_FRAME, birdFly);
this.removeEventListener(Event.ADDED_TO_STAGE, initBird);
}
}
}//package
Section 109
//Tune1 (Tune1)
package {
import flash.media.*;
public dynamic class Tune1 extends Sound {
}
}//package
Section 110
//tutorialStart (tutorialStart)
package {
import flash.display.*;
public dynamic class tutorialStart extends MovieClip {
}
}//package