STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228134
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5122

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/68446380?noj=FRM68446380-17DC" width="1" height="1"></div>

paper-planes.swf

This is the info page for
Flash #114178

(Click the ID number above for more basic data on this flash file.)


Text
PAUSED
PARESS SPACE OR P TO CONTINUE

STAGE 8

1

GAME OVER

SUBMIT SCORE

SUBMIT SCORE

QUIT

QUIT

PLAY AGAIN

PLAY AGAIN

GOAL !!

1234567890GO!

use                arrow keys or                  keys on your keyboard

A

D

ï

ð

CONTROLS

Player 1

Player 2

GOAL!!

WINNER

WINNER

YOUR BEST SCORE

0

0000

PAPER PLANES

SELECT GAME

HIGH SCORES

HIGH SCORES

INSTRUCTIONS

INSTRUCTIONS

2 Players 1 Keyboard

Endless

Time Mode

Race

ENDLESS

TIME MODE LEVEL:

INSTRUCTIONS

Control the paper plane and avoid obstacles while descending.
Use                arrow keys or               keys on your keyboard to steer the
plane.  The steeper the angle, the faster the plane will go.
There are 3 game modes:

ENDLESS:

Fly as far as possible. The further the distance, the highter the score. If the plane hits an
obstackle, the game ends. You have 3 lives.

TIME MODE:

Complete the stage as quickly as possible. The fastest time will be saved as the stage
record. If the plane hits an obstackle, the game ends. You have 3 lives.

RACE:

Two players can race using a single computer and keyboard. The first plane to cross the
goal line wins. You have unlimited lives in this game mode.

GO BACK

GO BACK

SELECT STAGE

ActionScript [AS3]

Section 1
//ManagedSound (com.quickflashgames.sound.ManagedSound) package com.quickflashgames.sound { import flash.media.*; import gs.*; import gs.events.*; public class ManagedSound { public var channel:SoundChannel; public var transform:SoundTransform; public var vol:Number; public var sound:Sound; public var mute:Boolean;// = false public function ManagedSound(_arg1:Sound, _arg2:Number=1){ mute = false; super(); sound = _arg1; vol = _arg2; } function tweenFadeOutFinished(_arg1:TweenEvent):void{ stop(); } public function stop():void{ if (channel){ channel.stop(); }; } public function muteIt(_arg1:Boolean):void{ mute = _arg1; if (((transform) && (channel))){ if (mute){ transform.volume = 0; } else { transform.volume = vol; }; channel.soundTransform = transform; }; } function tweenFadeInFinished(_arg1:TweenEvent):void{ } function reportFadeInProgress(_arg1:TweenEvent):void{ if (mute == true){ transform.volume = 0; }; channel.soundTransform = transform; } function reportFadeOutProgress(_arg1:TweenEvent):void{ if (mute == true){ transform.volume = 0; }; channel.soundTransform = transform; } public function fadeAndPlay(_arg1:Number, _arg2:int, _arg3:int):void{ channel = sound.play(_arg2, _arg3); transform = channel.soundTransform; transform.volume = 0; channel.soundTransform = transform; if (channel){ transform = channel.soundTransform; TweenMax.to(transform, _arg1, {volume:vol, onUpdateListener:reportFadeInProgress, onCompleteListener:tweenFadeInFinished}); }; } public function play(_arg1:int, _arg2:int):void{ channel = sound.play(_arg1, _arg2); transform = channel.soundTransform; transform.volume = vol; if (mute == true){ transform.volume = 0; }; channel.soundTransform = transform; } public function fadeAndStop(_arg1:Number):void{ if (channel){ transform = channel.soundTransform; TweenMax.to(transform, _arg1, {volume:0, onUpdateListener:reportFadeOutProgress, onCompleteListener:tweenFadeOutFinished}); }; } } }//package com.quickflashgames.sound
Section 2
//SoundManager (com.quickflashgames.sound.SoundManager) package com.quickflashgames.sound { import flash.media.*; public class SoundManager { private var sounds:Array; public var mute:Boolean;// = false private static var INSTANCE:SoundManager; public function SoundManager(){ sounds = new Array(); mute = false; super(); } public function muteAll(_arg1:Boolean):void{ var _local2:ManagedSound; mute = _arg1; for each (_local2 in sounds) { _local2.muteIt(_arg1); }; } public function playSound(_arg1:String, _arg2:Number=0, _arg3:int=0, _arg4:int=0):void{ var _local5:ManagedSound; _local5 = ManagedSound(sounds[_arg1]); if (_arg2 == 0){ _local5.play(_arg3, _arg4); } else { _local5.fadeAndPlay(_arg2, _arg3, _arg4); }; } public function stopSound(_arg1:String, _arg2:Number=0):void{ var _local3:ManagedSound; _local3 = ManagedSound(sounds[_arg1]); if (_arg2 == 0){ _local3.stop(); } else { _local3.fadeAndStop(2); }; } public function addSoundByClassName(_arg1:String, _arg2:Sound, _arg3:Number=1):void{ var _local4:ManagedSound; _local4 = new ManagedSound(_arg2, _arg3); sounds[_arg1] = _local4; } public static function getInstance():SoundManager{ if (!INSTANCE){ INSTANCE = new (SoundManager); }; return (INSTANCE); } } }//package com.quickflashgames.sound
Section 3
//Back (gs.easing.Back) package gs.easing { public class Back { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{ _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ _arg5 = (_arg5 * 1.525); return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2)); }; _arg1 = (_arg1 - 2); _arg5 = (_arg5 * 1.525); return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2)); } } }//package gs.easing
Section 4
//TweenEvent (gs.events.TweenEvent) package gs.events { import flash.events.*; public class TweenEvent extends Event { public var info:Object; public static const UPDATE:String = "update"; public static const START:String = "start"; public static const version:Number = 0.9; public static const COMPLETE:String = "complete"; public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); this.info = _arg2; } override public function clone():Event{ return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable)); } } }//package gs.events
Section 5
//OverwriteManager (gs.OverwriteManager) package gs { import flash.utils.*; import flash.errors.*; public class OverwriteManager { public static const ALL:int = 1; public static const NONE:int = 0; public static const AUTO:int = 2; public static const CONCURRENT:int = 3; public static const version:Number = 1; public static var mode:int; public static var enabled:Boolean; public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array, _arg4:Array, _arg5:Array):void{ var _local6:int; var _local7:String; _local6 = (_arg4.length - 1); while (_local6 > -1) { if (_arg1[_arg4[_local6].name] != undefined){ _arg4.splice(_local6, 1); }; _local6--; }; _local6 = (_arg3.length - 1); while (_local6 > -1) { if (_arg1[_arg3[_local6][4]] != undefined){ _arg3.splice(_local6, 1); }; _local6--; }; _local6 = (_arg5.length - 1); while (_local6 > -1) { if (_arg1[_arg5[_local6].name] != undefined){ _arg5.splice(_local6, 1); }; _local6--; }; for (_local7 in _arg1) { delete _arg2[_local7]; }; } public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{ var _local3:Object; var _local4:int; var _local5:Number; var _local6:Array; var _local7:int; var _local8:TweenLite; var _local9:Object; var _local10:String; _local3 = _arg1.vars; _local4 = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite); if ((((_local4 < 2)) || ((_arg2 == null)))){ return; }; _local5 = _arg1.startTime; _local6 = []; _local7 = (_arg2.length - 1); while (_local7 > -1) { _local8 = _arg2[_local7]; if (((((!((_local8 == _arg1))) && ((_local8.startTime <= _local5)))) && (((_local8.startTime + ((_local8.duration * 1000) / _local8.combinedTimeScale)) > _local5)))){ _local6[_local6.length] = _local8; }; _local7--; }; if (_local6.length == 0){ return; }; if (_local4 == AUTO){ if (_local3.isTV == true){ _local3 = _local3.exposedProps; }; _local9 = {}; for (_local10 in _local3) { if ((((((((((((((((((((((((((((((((((((((((((((_local10 == "ease")) || ((_local10 == "delay")))) || ((_local10 == "overwrite")))) || ((_local10 == "onComplete")))) || ((_local10 == "onCompleteParams")))) || ((_local10 == "runBackwards")))) || ((_local10 == "persist")))) || ((_local10 == "onUpdate")))) || ((_local10 == "onUpdateParams")))) || ((_local10 == "timeScale")))) || ((_local10 == "onStart")))) || ((_local10 == "onStartParams")))) || ((_local10 == "renderOnStart")))) || ((_local10 == "proxiedEase")))) || ((_local10 == "easeParams")))) || ((_local10 == "onCompleteAll")))) || ((_local10 == "onCompleteAllParams")))) || ((_local10 == "yoyo")))) || ((_local10 == "loop")))) || ((_local10 == "onCompleteListener")))) || ((_local10 == "onStartListener")))) || ((_local10 == "onUpdateListener")))){ } else { _local9[_local10] = 1; if (_local10 == "shortRotate"){ _local9.rotation = 1; } else { if (_local10 == "removeTint"){ _local9.tint = 1; } else { if (_local10 == "autoAlpha"){ _local9.alpha = 1; _local9.visible = 1; }; }; }; }; }; _local7 = (_local6.length - 1); while (_local7 > -1) { _local6[_local7].killVars(_local9); _local7--; }; } else { _local7 = (_local6.length - 1); while (_local7 > -1) { _local6[_local7].enabled = false; _local7--; }; }; } public static function init(_arg1:int=2):int{ if (TweenLite.version < 9.29){ }; TweenLite.overwriteManager = OverwriteManager; mode = _arg1; enabled = true; return (mode); } } }//package gs
Section 6
//TweenFilterLite (gs.TweenFilterLite) package gs { import flash.filters.*; import flash.utils.*; public class TweenFilterLite extends TweenLite { protected var _hf:Boolean;// = false protected var _endMatrix:Array; protected var _roundProps:Boolean; protected var _cmf:ColorMatrixFilter; protected var _filters:Array; protected var _clrsa:Array; protected var _matrix:Array; protected var _timeScale:Number; public static var removeTween:Function = TweenLite.removeTween; private static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; private static var _lumB:Number = 0.072169; public static var delayedCall:Function = TweenLite.delayedCall; public static var killTweensOf:Function = TweenLite.killTweensOf; public static var version:Number = 9.29; private static var _lumG:Number = 0.71516; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _lumR:Number = 0.212671; protected static var _globalTimeScale:Number = 1; public function TweenFilterLite(_arg1:Object, _arg2:Number, _arg3:Object){ _hf = false; _filters = []; super(_arg1, _arg2, _arg3); if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenFilterLite)))){ _timeScale = 1; this.combinedTimeScale = _globalTimeScale; } else { _timeScale = this.combinedTimeScale; this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale); }; if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){ this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale))); }; if (TweenLite.version < 9.29){ }; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; if (_arg1){ this.combinedTimeScale = (_timeScale * _globalTimeScale); }; } override public function render(_arg1:uint):void{ var _local2:Number; var _local3:Number; var _local4:Object; var _local5:int; var _local6:Number; var _local7:int; var _local8:Array; var _local9:int; _local2 = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0; } else { _local3 = this.ease(_local2, 0, 1, this.duration); }; if (!_roundProps){ _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3])); _local5--; }; } else { _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; if (_local4[5]){ _local6 = (_local4[2] + (_local3 * _local4[3])); _local7 = ((_local6)<0) ? -1 : 1; _local4[0][_local4[1]] = ((((_local6 % 1) * _local7))>0.5) ? (int(_local6) + _local7) : int(_local6); } else { _local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3])); }; _local5--; }; }; if (_hf){ _local5 = (_clrsa.length - 1); while (_local5 > -1) { _local4 = _clrsa[_local5]; _local4.f[_local4.p] = ((((_local4.sr + (_local3 * _local4.cr)) << 16) | ((_local4.sg + (_local3 * _local4.cg)) << 8)) | (_local4.sb + (_local3 * _local4.cb))); _local5--; }; if (_cmf != null){ ColorMatrixFilter(_cmf).matrix = _matrix; }; _local8 = this.target.filters; _local5 = 0; while (_local5 < _filters.length) { _local9 = (_local8.length - 1); while (_local9 > -1) { if ((_local8[_local9] is _filters[_local5].type)){ _local8.splice(_local9, 1, _filters[_local5].filter); break; }; _local9--; }; _local5++; }; this.target.filters = _local8; }; if (_hst){ _local5 = (_subTweens.length - 1); while (_local5 > -1) { _subTweens[_local5].proxy(_subTweens[_local5], _local2); _local5--; }; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } override public function killVars(_arg1:Object):void{ if (TweenLite.overwriteManager.enabled){ TweenLite.overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, ((_filters) || ([]))); }; } public function get timeScale():Number{ return (_timeScale); } public function set timeScale(_arg1:Number):void{ if (_arg1 < 1E-5){ _arg1 = (_timeScale = 1E-5); } else { _timeScale = _arg1; _arg1 = (_arg1 * _globalTimeScale); }; this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1))); if (this.startTime != 999999999999999){ this.startTime = (this.initTime + (this.delay * (1000 / _arg1))); }; this.combinedTimeScale = _arg1; } override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:int; var _local4:Object; var _local5:Object; var _local6:Object; var _local7:int; var _local8:String; if (((!(_arg1)) && (TweenLite.overwriteManager.enabled))){ TweenLite.overwriteManager.manageOverwrites(this, masterList[this.target]); }; _clrsa = []; _filters = []; _matrix = _idMatrix.slice(); _arg2 = (_arg2 + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter roundProps "); _roundProps = Boolean((this.vars.roundProps is Array)); if (_isDisplayObject){ if (this.vars.blurFilter != null){ _local4 = this.vars.blurFilter; addFilter("blurFilter", _local4, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, ((_local4.quality) || (2)))); }; if (this.vars.glowFilter != null){ _local4 = this.vars.glowFilter; addFilter("glowFilter", _local4, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, ((_local4.strength) || (1)), ((_local4.quality) || (2)), _local4.inner, _local4.knockout)); }; if (this.vars.colorMatrixFilter != null){ _local4 = this.vars.colorMatrixFilter; _local5 = addFilter("colorMatrixFilter", _local4, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix)); _cmf = _local5.filter; _matrix = ColorMatrixFilter(_cmf).matrix; if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){ _endMatrix = _local4.matrix; } else { if (_local4.relative == true){ _endMatrix = _matrix.slice(); } else { _endMatrix = _idMatrix.slice(); }; _endMatrix = setBrightness(_endMatrix, _local4.brightness); _endMatrix = setContrast(_endMatrix, _local4.contrast); _endMatrix = setHue(_endMatrix, _local4.hue); _endMatrix = setSaturation(_endMatrix, _local4.saturation); _endMatrix = setThreshold(_endMatrix, _local4.threshold); if (!isNaN(_local4.colorize)){ _endMatrix = colorize(_endMatrix, _local4.colorize, _local4.amount); } else { if (!isNaN(_local4.color)){ _endMatrix = colorize(_endMatrix, _local4.color, _local4.amount); }; }; }; _local3 = 0; while (_local3 < _endMatrix.length) { if (((!((_matrix[_local3] == _endMatrix[_local3]))) && (!((_matrix[_local3] == undefined))))){ this.tweens[this.tweens.length] = [_matrix, _local3.toString(), _matrix[_local3], (_endMatrix[_local3] - _matrix[_local3]), "colorMatrixFilter"]; }; _local3++; }; }; if (this.vars.dropShadowFilter != null){ _local4 = this.vars.dropShadowFilter; addFilter("dropShadowFilter", _local4, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_local4.quality) || (2)), _local4.inner, _local4.knockout, _local4.hideObject)); }; if (this.vars.bevelFilter != null){ _local4 = this.vars.bevelFilter; addFilter("bevelFilter", _local4, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_local4.quality) || (2)))); }; if (this.vars.runBackwards == true){ _local3 = (_clrsa.length - 1); while (_local3 > -1) { _local6 = _clrsa[_local3]; _clrsa[_local3].sr = (_local6.sr + _local6.cr); _local6.cr = (_local6.cr * -1); _local6.sg = (_local6.sg + _local6.cg); _local6.cg = (_local6.cg * -1); _local6.sb = (_local6.sb + _local6.cb); _local6.cb = (_local6.cb * -1); _local6.f[_local6.p] = (((_local6.sr << 16) | (_local6.sg << 8)) | _local6.sb); _local3--; }; }; super.initTweenVals(true, _arg2); } else { super.initTweenVals(_arg1, _arg2); }; if (_roundProps){ _local3 = (this.vars.roundProps.length - 1); while (_local3 > -1) { _local8 = this.vars.roundProps[_local3]; _local7 = (this.tweens.length - 1); while (_local7 > -1) { if ((((this.tweens[_local7][1] == _local8)) && ((this.tweens[_local7][0] == this.target)))){ this.tweens[_local7][5] = true; break; }; _local7--; }; _local3--; }; }; } private function addFilter(_arg1:String, _arg2:Object, _arg3:Class, _arg4:Array, _arg5:BitmapFilter):Object{ var _local6:Object; var _local7:Array; var _local8:int; var _local9:String; var _local10:Number; var _local11:Object; var _local12:Object; _local6 = {type:_arg3, name:_arg1}; _local7 = this.target.filters; _local8 = 0; while (_local8 < _local7.length) { if ((_local7[_local8] is _arg3)){ _local6.filter = _local7[_local8]; break; }; _local8++; }; if (_local6.filter == undefined){ _local6.filter = _arg5; _local7[_local7.length] = _local6.filter; this.target.filters = _local7; }; _local8 = 0; while (_local8 < _arg4.length) { _local9 = _arg4[_local8]; if (_arg2[_local9] != undefined){ if ((((((_local9 == "color")) || ((_local9 == "highlightColor")))) || ((_local9 == "shadowColor")))){ _local11 = HEXtoRGB(_local6.filter[_local9]); _local12 = HEXtoRGB(_arg2[_local9]); _clrsa[_clrsa.length] = {f:_local6.filter, p:_local9, sr:_local11.rb, cr:(_local12.rb - _local11.rb), sg:_local11.gb, cg:(_local12.gb - _local11.gb), sb:_local11.bb, cb:(_local12.bb - _local11.bb)}; } else { if ((((((((_local9 == "quality")) || ((_local9 == "inner")))) || ((_local9 == "knockout")))) || ((_local9 == "hideObject")))){ _local6.filter[_local9] = _arg2[_local9]; } else { if (typeof(_arg2[_local9]) == "number"){ _local10 = (_arg2[_local9] - _local6.filter[_local9]); } else { _local10 = Number(_arg2[_local9]); }; this.tweens[this.tweens.length] = [_local6.filter, _local9, _local6.filter[_local9], _local10, _arg1]; }; }; }; _local8++; }; _filters[_filters.length] = _local6; _hf = true; return (_local6); } public static function setHue(_arg1:Array, _arg2:Number):Array{ var _local3:Number; var _local4:Number; var _local5:Array; if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 * (Math.PI / 180)); _local3 = Math.cos(_arg2); _local4 = Math.sin(_arg2); _local5 = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; return (applyMatrix(_local5, _arg1)); } public static function setContrast(_arg1:Array, _arg2:Number):Array{ var _local3:Array; if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 + 0.01); _local3 = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function applyMatrix(_arg1:Array, _arg2:Array):Array{ var _local3:Array; var _local4:int; var _local5:int; var _local6:int; var _local7:int; if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (_arg2); }; _local3 = []; _local4 = 0; _local5 = 0; _local6 = 0; while (_local6 < 4) { _local7 = 0; while (_local7 < 5) { if (_local7 == 4){ _local5 = _arg1[(_local4 + 4)]; } else { _local5 = 0; }; _local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5); _local7++; }; _local4 = (_local4 + 5); _local6++; }; return (_local3); } public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{ var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Array; if (isNaN(_arg2)){ return (_arg1); }; if (isNaN(_arg3)){ _arg3 = 1; }; _local4 = (((_arg2 >> 16) & 0xFF) / 0xFF); _local5 = (((_arg2 >> 8) & 0xFF) / 0xFF); _local6 = ((_arg2 & 0xFF) / 0xFF); _local7 = (1 - _arg3); _local8 = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local8, _arg1)); } public static function setBrightness(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = ((_arg2 * 100) - 100); return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1)); } public static function setSaturation(_arg1:Array, _arg2:Number):Array{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Array; if (isNaN(_arg2)){ return (_arg1); }; _local3 = (1 - _arg2); _local4 = (_local3 * _lumR); _local5 = (_local3 * _lumG); _local6 = (_local3 * _lumB); _local7 = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local7, _arg1)); } public static function setGlobalTimeScale(_arg1:Number):void{ var _local2:Dictionary; var _local3:int; var _local4:Array; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; _local2 = masterList; _globalTimeScale = _arg1; for each (_local4 in _local2) { _local3 = (_local4.length - 1); while (_local3 > -1) { if ((_local4[_local3] is TweenFilterLite)){ _local4[_local3].timeScale = (_local4[_local3].timeScale * 1); }; _local3--; }; }; } public static function get globalTimeScale():Number{ return (_globalTimeScale); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{ _arg3.runBackwards = true; return (new TweenFilterLite(_arg1, _arg2, _arg3)); } public static function set globalTimeScale(_arg1:Number):void{ setGlobalTimeScale(_arg1); } public static function HEXtoRGB(_arg1:Number):Object{ return ({rb:(_arg1 >> 16), gb:((_arg1 >> 8) & 0xFF), bb:(_arg1 & 0xFF)}); } public static function setThreshold(_arg1:Array, _arg2:Number):Array{ var _local3:Array; if (isNaN(_arg2)){ return (_arg1); }; _local3 = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{ return (new TweenFilterLite(_arg1, _arg2, _arg3)); } } }//package gs
Section 7
//TweenLite (gs.TweenLite) package gs { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; public class TweenLite { public var delay:Number; protected var _hasUpdate:Boolean; public var started:Boolean; protected var _subTweens:Array; public var initted:Boolean; public var active:Boolean; public var startTime:Number; public var target:Object; public var duration:Number; protected var _hst:Boolean; protected var _isDisplayObject:Boolean; public var gc:Boolean; public var vars:Object; public var ease:Function; public var tweens:Array; protected var _specialVars:Object; public var combinedTimeScale:Number; public var initTime:Number; private static var _timer:Timer = new Timer(2000); private static var _classInitted:Boolean; public static var defaultEase:Function = TweenLite.easeOut; public static var version:Number = 9.29; public static var masterList:Dictionary = new Dictionary(false); public static var currentTime:uint; public static var overwriteManager:Object; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public static var timingSprite:Sprite = new Sprite(); public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ var _local4:int; super(); if (_arg1 == null){ return; }; if (!_classInitted){ currentTime = getTimer(); timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; _timer.addEventListener("timer", killGarbage, false, 0, true); _timer.start(); _classInitted = true; }; this.vars = _arg3; this.duration = ((_arg2) || (0.001)); this.delay = ((_arg3.delay) || (0)); this.combinedTimeScale = ((_arg3.timeScale) || (1)); this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0)))); this.target = _arg1; _isDisplayObject = Boolean((_arg1 is DisplayObject)); if (!(this.vars.ease is Function)){ this.vars.ease = defaultEase; }; if (this.vars.easeParams != null){ this.vars.proxiedEase = this.vars.ease; this.vars.ease = easeProxy; }; this.ease = this.vars.ease; if (!isNaN(Number(this.vars.autoAlpha))){ this.vars.alpha = Number(this.vars.autoAlpha); this.vars.visible = Boolean((this.vars.alpha > 0)); }; _specialVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars; this.tweens = []; _subTweens = []; _hst = (this.initted = false); this.initTime = currentTime; this.startTime = (this.initTime + (this.delay * 1000)); _local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite); if ((((masterList[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){ masterList[_arg1] = []; }; masterList[_arg1].push(this); if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){ initTweenVals(); if (this.active){ render((this.startTime + 1)); } else { render(this.startTime); }; if (((((!((_specialVars.visible == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){ this.target.visible = _specialVars.visible; }; }; } public function set enabled(_arg1:Boolean):void{ var _local2:Array; var _local3:Boolean; var _local4:int; if (_arg1){ if (masterList[this.target] == undefined){ masterList[this.target] = [this]; } else { _local2 = masterList[this.target]; _local4 = (_local2.length - 1); while (_local4 > -1) { if (_local2[_local4] == this){ _local3 = true; break; }; _local4--; }; if (!_local3){ masterList[this.target].push(this); }; }; }; this.gc = (_arg1) ? false : true; if (this.gc){ this.active = false; } else { this.active = this.started; }; } public function render(_arg1:uint):void{ var _local2:Number; var _local3:Number; var _local4:Object; var _local5:int; _local2 = ((_arg1 - this.startTime) * 0.001); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0; } else { _local3 = this.ease(_local2, 0, 1, this.duration); }; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4[0][_local4[1]] = (_local4[2] + (_local3 * _local4[3])); _local5--; }; if (_hst){ _local5 = (_subTweens.length - 1); while (_local5 > -1) { _subTweens[_local5].proxy(_subTweens[_local5], _local2); _local5--; }; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } public function activate():void{ this.started = (this.active = true); if (!this.initted){ initTweenVals(); }; if (this.vars.onStart != null){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (this.duration == 0.001){ this.startTime = (this.startTime - 1); }; } public function clear():void{ this.tweens = []; _subTweens = []; this.vars = {}; _hst = (_hasUpdate = false); } protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{ var _local6:String; _subTweens[_subTweens.length] = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5}; for (_local6 in _arg4) { if (typeof(_arg4[_local6]) == "number"){ this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], (_arg4[_local6] - _arg3[_local6]), _arg1]; } else { this.tweens[this.tweens.length] = [_arg3, _local6, _arg3[_local6], Number(_arg4[_local6]), _arg1]; }; }; _hst = true; } public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:String; var _local4:int; var _local5:Array; var _local6:ColorTransform; var _local7:ColorTransform; var _local8:Object; if (((!(_arg1)) && (overwriteManager.enabled))){ overwriteManager.manageOverwrites(this, masterList[this.target]); }; if ((this.target is Array)){ _local5 = ((this.vars.endArray) || ([])); _local4 = 0; while (_local4 < _local5.length) { if (((!((this.target[_local4] == _local5[_local4]))) && (!((this.target[_local4] == undefined))))){ this.tweens[this.tweens.length] = [this.target, _local4.toString(), this.target[_local4], (_local5[_local4] - this.target[_local4]), _local4.toString()]; }; _local4++; }; } else { if (((((!((typeof(_specialVars.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){ _local6 = this.target.transform.colorTransform; _local7 = new ColorTransform(); if (_specialVars.alpha != undefined){ _local7.alphaMultiplier = _specialVars.alpha; delete _specialVars.alpha; } else { _local7.alphaMultiplier = this.target.alpha; }; if (((!((this.vars.removeTint == true))) && (((((!((_specialVars.tint == null))) && (!((_specialVars.tint == ""))))) || ((_specialVars.tint == 0)))))){ _local7.color = _specialVars.tint; }; addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local6, endColor:_local7}); }; if (((!((_specialVars.frame == null))) && (_isDisplayObject))){ addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_specialVars.frame}, {target:this.target}); }; if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){ addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target}); }; if (((!((_specialVars.visible == null))) && (_isDisplayObject))){ addSubTween("visible", visibleProxy, {}, {}, {tween:this}); }; for (_local3 in _specialVars) { if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((((_local3 == "timeScale")) && (!((this.target is TweenLite))))))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){ } else { if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){ if (typeof(_specialVars[_local3]) == "number"){ this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], (_specialVars[_local3] - this.target[_local3]), _local3]; } else { this.tweens[this.tweens.length] = [this.target, _local3, this.target[_local3], Number(_specialVars[_local3]), _local3]; }; }; }; }; }; if (this.vars.runBackwards == true){ _local4 = (this.tweens.length - 1); while (_local4 > -1) { _local8 = this.tweens[_local4]; _local8[2] = (_local8[2] + _local8[3]); _local8[3] = (_local8[3] * -1); _local4--; }; }; if (this.vars.onUpdate != null){ _hasUpdate = true; }; this.initted = true; } protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams))); } public function killVars(_arg1:Object):void{ if (overwriteManager.enabled){ overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []); }; } public function get enabled():Boolean{ return ((this.gc) ? false : true); } public function complete(_arg1:Boolean=false):void{ if (!_arg1){ if (!this.initted){ initTweenVals(); }; this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale)); render(currentTime); return; }; if (this.vars.persist != true){ this.enabled = false; }; if (this.vars.onComplete != null){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); }; } public static function frameProxy(_arg1:Object, _arg2:Number=0):void{ _arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame)); } public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{ if (_arg1 != null){ if (_arg2){ _arg1.clear(); }; _arg1.enabled = false; }; } public static function visibleProxy(_arg1:Object, _arg2:Number):void{ var _local3:TweenLite; _local3 = _arg1.info.tween; if (_local3.duration == _arg2){ if (((!((_local3.vars.runBackwards == true))) && ((_local3.ease == _local3.vars.ease)))){ _local3.target.visible = _local3.vars.visible; }; } else { if (_local3.target.visible != true){ _local3.target.visible = true; }; }; } public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{ var _local3:Array; var _local4:int; var _local5:TweenLite; if (((!((_arg1 == null))) && (!((masterList[_arg1] == undefined))))){ _local3 = masterList[_arg1]; _local4 = (_local3.length - 1); while (_local4 > -1) { _local5 = _local3[_local4]; if (((_arg2) && (!(_local5.gc)))){ _local5.complete(false); }; _local5.clear(); _local4--; }; delete masterList[_arg1]; }; } public static function updateAll(_arg1:Event=null):void{ var _local2:uint; var _local3:Dictionary; var _local4:Array; var _local5:int; var _local6:TweenLite; _local2 = (currentTime = getTimer()); _local3 = masterList; for each (_local4 in _local3) { _local5 = (_local4.length - 1); while (_local5 > -1) { _local6 = _local4[_local5]; if (_local6 == null){ } else { if (_local6.active){ _local6.render(_local2); } else { if (_local6.gc){ _local4.splice(_local5, 1); } else { if (_local2 >= _local6.startTime){ _local6.activate(); _local6.render(_local2); }; }; }; }; _local5--; }; }; } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0})); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; return (new TweenLite(_arg1, _arg2, _arg3)); } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function tintProxy(_arg1:Object, _arg2:Number=0):void{ var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; _local3 = _arg1.target.progress; _local4 = (1 - _local3); _local5 = _arg1.info.color; _local6 = _arg1.info.endColor; _arg1.info.target.transform.colorTransform = new ColorTransform(((_local5.redMultiplier * _local4) + (_local6.redMultiplier * _local3)), ((_local5.greenMultiplier * _local4) + (_local6.greenMultiplier * _local3)), ((_local5.blueMultiplier * _local4) + (_local6.blueMultiplier * _local3)), ((_local5.alphaMultiplier * _local4) + (_local6.alphaMultiplier * _local3)), ((_local5.redOffset * _local4) + (_local6.redOffset * _local3)), ((_local5.greenOffset * _local4) + (_local6.greenOffset * _local3)), ((_local5.blueOffset * _local4) + (_local6.blueOffset * _local3)), ((_local5.alphaOffset * _local4) + (_local6.alphaOffset * _local3))); } public static function volumeProxy(_arg1:Object, _arg2:Number=0):void{ _arg1.info.target.soundTransform = _arg1.target; } protected static function killGarbage(_arg1:TimerEvent):void{ var _local2:Dictionary; var _local3:Object; var _local4:Array; _local2 = masterList; for (_local3 in _local2) { if (_local2[_local3].length == 0){ delete _local2[_local3]; }; }; } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } } }//package gs
Section 8
//TweenMax (gs.TweenMax) package gs { import flash.events.*; import gs.events.*; import flash.utils.*; public class TweenMax extends TweenFilterLite implements IEventDispatcher { protected var _dispatcher:EventDispatcher; protected var _callbacks:Object; public var pauseTime:Number; protected static const _RAD2DEG:Number = 57.2957795130823; public static var removeTween:Function = TweenLite.removeTween; private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(); ; protected static var _pausedTweens:Dictionary = new Dictionary(false); public static var setGlobalTimeScale:Function = TweenFilterLite.setGlobalTimeScale; public static var killTweensOf:Function = TweenLite.killTweensOf; public static var version:Number = 3.41; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){ super(_arg1, _arg2, _arg3); if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ initDispatcher(); if ((((_arg2 == 0)) && ((this.delay == 0)))){ onUpdateDispatcher(); onCompleteDispatcher(); }; }; if ((((this.vars.yoyo == true)) || ((this.vars.loop == true)))){ this.vars.persist = true; }; if (TweenFilterLite.version < 9.29){ }; } public function restart(_arg1:Boolean=false):void{ if (_arg1){ this.initTime = currentTime; this.startTime = (currentTime + (this.delay * (1000 / this.combinedTimeScale))); } else { this.startTime = currentTime; this.initTime = (currentTime - (this.delay * (1000 / this.combinedTimeScale))); }; if (this.target != this.vars.onComplete){ render(this.startTime); }; this.pauseTime = NaN; this.enabled = true; } protected function adjustStartValues():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Object; var _local5:int; _local1 = this.progress; if (_local1 != 0){ _local2 = (1 / (1 - this.ease((_local1 * this.duration), 0, 1, this.duration))); _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local3 = (_local4[2] + _local4[3]); _local4[3] = ((_local3 - _local4[0][_local4[1]]) * _local2); _local4[2] = (_local3 - _local4[3]); _local5--; }; }; } public function resume():void{ this.enabled = true; if (!isNaN(this.pauseTime)){ this.initTime = (this.initTime + (currentTime - this.pauseTime)); this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale))); this.pauseTime = NaN; if (((!(this.started)) && ((currentTime >= this.startTime)))){ activate(); } else { this.active = this.started; }; _pausedTweens[this] = null; delete _pausedTweens[this]; }; } public function get paused():Boolean{ return ((this.startTime == 999999999999999)); } public function killProperties(_arg1:Array):void{ var _local2:Object; var _local3:int; _local2 = {}; _local3 = (_arg1.length - 1); while (_local3 > -1) { if (this.vars[_arg1[_local3]] != null){ _local2[_arg1[_local3]] = 1; }; _local3--; }; killVars(_local2); } public function get progress():Number{ var _local1:Number; var _local2:Number; _local1 = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime; _local2 = (((((_local1 - this.initTime) * 0.001) - (this.delay / this.combinedTimeScale)) / this.duration) * this.combinedTimeScale); if (_local2 > 1){ return (1); }; if (_local2 < 0){ return (0); }; return (_local2); } override public function complete(_arg1:Boolean=false):void{ if ((((this.vars.yoyo == true)) || ((this.vars.loop == true)))){ if (this.vars.yoyo == true){ this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease; }; this.startTime = (_arg1) ? (this.startTime + (this.duration * (1000 / this.combinedTimeScale))) : currentTime; this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); } else { if (this.vars.persist == true){ pause(); }; }; super.complete(_arg1); } public function invalidate(_arg1:Boolean=true):void{ var _local2:Number; if (this.initted){ _local2 = this.progress; if (((!(_arg1)) && (!((_local2 == 0))))){ this.progress = 0; }; this.tweens = []; _subTweens = []; _specialVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars; initTweenVals(); _timeScale = ((this.vars.timeScale) || (1)); this.combinedTimeScale = (_timeScale * _globalTimeScale); this.delay = ((this.vars.delay) || (0)); if (isNaN(this.pauseTime)){ this.startTime = (this.initTime + ((this.delay * 1000) / this.combinedTimeScale)); }; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ if (_dispatcher != null){ this.vars.onStart = _callbacks.onStart; this.vars.onUpdate = _callbacks.onUpdate; this.vars.onComplete = _callbacks.onComplete; _dispatcher = null; }; initDispatcher(); }; if (_local2 != 0){ if (_arg1){ adjustStartValues(); } else { this.progress = _local2; }; }; }; } public function dispatchEvent(_arg1:Event):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.dispatchEvent(_arg1)); } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_dispatcher != null){ _dispatcher.removeEventListener(_arg1, _arg2, _arg3); }; } public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{ var _local4:Number; var _local5:Object; var _local6:int; var _local7:Object; var _local8:Array; var _local9:Array; _local4 = this.progress; if (((!((this.vars[_arg1] == undefined))) && (this.initted))){ if (((!(_arg3)) && (!((_local4 == 0))))){ _local6 = (this.tweens.length - 1); while (_local6 > -1) { if (this.tweens[_local6][4] == _arg1){ this.tweens[_local6][0][this.tweens[_local6][1]] = this.tweens[_local6][2]; }; _local6--; }; }; _local5 = {}; _local5[_arg1] = 1; killVars(_local5); }; this.vars[_arg1] = _arg2; if (this.initted){ _local7 = this.vars; _local8 = this.tweens; _local9 = _subTweens; this.vars = {}; this.tweens = []; _subTweens = []; this.vars[_arg1] = _arg2; initTweenVals(); if (((!((this.ease == reverseEase))) && ((_local7.ease is Function)))){ this.ease = _local7.ease; }; if (((_arg3) && (!((_local4 == 0))))){ adjustStartValues(); }; this.vars = _local7; this.tweens = _local8.concat(this.tweens); _subTweens = _local9.concat(_subTweens); }; } override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:String; var _local4:int; var _local5:Object; var _local6:Object; var _local7:Array; var _local8:Function; var _local9:Number; _arg2 = (_arg2 + " hexColors bezier bezierThrough shortRotation orientToBezier quaternions onCompleteAll onCompleteAllParams yoyo loop onCompleteListener onUpdateListener onStartListener "); if (((!(_arg1)) && (TweenLite.overwriteManager.enabled))){ TweenLite.overwriteManager.manageOverwrites(this, masterList[this.target]); }; _local8 = bezierProxy; if (this.vars.orientToBezier == true){ this.vars.orientToBezier = [["x", "y", "rotation", 0]]; _local8 = bezierProxy2; } else { if ((this.vars.orientToBezier is Array)){ _local8 = bezierProxy2; }; }; if (((!((this.vars.bezier == undefined))) && ((this.vars.bezier is Array)))){ _local6 = {}; _local7 = this.vars.bezier; _local4 = 0; while (_local4 < _local7.length) { for (_local3 in _local7[_local4]) { if (_local6[_local3] == undefined){ _local6[_local3] = [this.target[_local3]]; }; if (typeof(_local7[_local4][_local3]) == "number"){ _local6[_local3].push(_local7[_local4][_local3]); } else { _local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3]))); }; }; _local4++; }; for (_local3 in _local6) { if (typeof(this.vars[_local3]) == "number"){ _local6[_local3].push(this.vars[_local3]); } else { _local6[_local3].push((this.target[_local3] + Number(this.vars[_local3]))); }; delete this.vars[_local3]; }; addSubTween("bezier", _local8, {t:0}, {t:1}, {props:parseBeziers(_local6, false), target:this.target, orientToBezier:this.vars.orientToBezier}); }; if (((!((this.vars.bezierThrough == undefined))) && ((this.vars.bezierThrough is Array)))){ _local6 = {}; _local7 = this.vars.bezierThrough; _local4 = 0; while (_local4 < _local7.length) { for (_local3 in _local7[_local4]) { if (_local6[_local3] == undefined){ _local6[_local3] = [this.target[_local3]]; }; if (typeof(_local7[_local4][_local3]) == "number"){ _local6[_local3].push(_local7[_local4][_local3]); } else { _local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3]))); }; }; _local4++; }; for (_local3 in _local6) { if (typeof(this.vars[_local3]) == "number"){ _local6[_local3].push(this.vars[_local3]); } else { _local6[_local3].push((this.target[_local3] + Number(this.vars[_local3]))); }; delete this.vars[_local3]; }; addSubTween("bezierThrough", _local8, {t:0}, {t:1}, {props:parseBeziers(_local6, true), target:this.target, orientToBezier:this.vars.orientToBezier}); }; if (!isNaN(this.vars.shortRotation)){ _local9 = ((this.vars.shortRotation - this.target.rotation) % 360); if (((this.vars.shortRotation - this.target.rotation) % 360) != (_local9 % 180)){ _local9 = ((_local9)<0) ? (_local9 + 360) : (_local9 - 360); }; this.tweens[this.tweens.length] = [this.target, "rotation", this.target.rotation, _local9, "rotation"]; }; if (((!((this.vars.hexColors == undefined))) && ((typeof(this.vars.hexColors) == "object")))){ for (_local3 in this.vars.hexColors) { addSubTween("hexColors", hexColorsProxy, {r:(this.target[_local3] >> 16), g:((this.target[_local3] >> 8) & 0xFF), b:(this.target[_local3] & 0xFF)}, {r:(this.vars.hexColors[_local3] >> 16), g:((this.vars.hexColors[_local3] >> 8) & 0xFF), b:(this.vars.hexColors[_local3] & 0xFF)}, {prop:_local3, target:this.target}); }; }; super.initTweenVals(true, _arg2); } public function set progress(_arg1:Number):void{ this.startTime = (currentTime - ((this.duration * _arg1) * 1000)); this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); if (!this.started){ activate(); }; render(currentTime); if (!isNaN(this.pauseTime)){ this.pauseTime = currentTime; this.startTime = 999999999999999; this.active = false; }; } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if (_dispatcher == null){ initDispatcher(); }; if ((((_arg1 == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){ this.vars.onUpdate = onUpdateDispatcher; _hasUpdate = true; }; _dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } protected function onUpdateDispatcher(... _args):void{ if (_callbacks.onUpdate != null){ _callbacks.onUpdate.apply(null, this.vars.onUpdateParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); } public function set paused(_arg1:Boolean):void{ if (_arg1){ pause(); } else { resume(); }; } public function willTrigger(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.willTrigger(_arg1)); } public function set reversed(_arg1:Boolean):void{ if (this.reversed != _arg1){ reverse(); }; } public function get reversed():Boolean{ return ((this.ease == reverseEase)); } protected function onStartDispatcher(... _args):void{ if (_callbacks.onStart != null){ _callbacks.onStart.apply(null, this.vars.onStartParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START)); } protected function initDispatcher():void{ var _local1:Object; var _local2:String; if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); _callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete}; _local1 = {}; for (_local2 in this.vars) { _local1[_local2] = this.vars[_local2]; }; this.vars = _local1; this.vars.onStart = onStartDispatcher; this.vars.onComplete = onCompleteDispatcher; if ((this.vars.onStartListener is Function)){ _dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true); }; if ((this.vars.onUpdateListener is Function)){ _dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true); this.vars.onUpdate = onUpdateDispatcher; _hasUpdate = true; }; if ((this.vars.onCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true); }; }; } public function reverse(_arg1:Boolean=true, _arg2:Boolean=true):void{ var _local3:Number; this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease; _local3 = this.progress; if (((_arg1) && ((_local3 > 0)))){ this.startTime = (currentTime - ((((1 - _local3) * this.duration) * 1000) / this.combinedTimeScale)); this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale))); }; if (_arg2 != false){ if (_local3 < 1){ resume(); } else { restart(); }; }; } public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.ease((_arg4 - _arg1), _arg2, _arg3, _arg4)); } public function hasEventListener(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.hasEventListener(_arg1)); } public function pause():void{ if (isNaN(this.pauseTime)){ this.pauseTime = currentTime; this.startTime = 999999999999999; this.enabled = false; _pausedTweens[this] = this; }; } protected function onCompleteDispatcher(... _args):void{ if (_callbacks.onComplete != null){ _callbacks.onComplete.apply(null, this.vars.onCompleteParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); } public static function sequence(_arg1:Object, _arg2:Array):Array{ var _local3:uint; _local3 = 0; while (_local3 < _arg2.length) { _arg2[_local3].target = _arg1; _local3++; }; return (multiSequence(_arg2)); } public static function bezierProxy(_arg1:Object, _arg2:Number=0):void{ var _local3:Number; var _local4:Object; var _local5:Object; var _local6:int; var _local7:String; var _local8:Object; var _local9:Number; var _local10:uint; _local3 = _arg1.target.t; _local4 = _arg1.info.props; _local5 = _arg1.info.target; if (_local3 == 1){ for (_local7 in _local4) { _local6 = (_local4[_local7].length - 1); _local5[_local7] = _local4[_local7][_local6].e; }; } else { for (_local7 in _local4) { _local10 = _local4[_local7].length; if (_local3 < 0){ _local6 = 0; } else { if (_local3 >= 1){ _local6 = (_local10 - 1); } else { _local6 = int((_local10 * _local3)); }; }; _local9 = ((_local3 - (_local6 * (1 / _local10))) * _local10); _local8 = _local4[_local7][_local6]; _local5[_local7] = (_local8.s + (_local9 * (((2 * (1 - _local9)) * (_local8.cp - _local8.s)) + (_local9 * (_local8.e - _local8.s))))); }; }; } public static function hexColorsProxy(_arg1:Object, _arg2:Number=0):void{ _arg1.info.target[_arg1.info.prop] = uint((((_arg1.target.r << 16) | (_arg1.target.g << 8)) | _arg1.target.b)); } public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{ var _local3:int; var _local4:Array; var _local5:Object; var _local6:String; var _local7:Object; _local7 = {}; if (_arg2){ for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 2){ _local5[_local5.length] = {s:_local4[0], cp:(_local4[1] - ((_local4[2] - _local4[0]) / 4)), e:_local4[1]}; _local3 = 1; while (_local3 < (_local4.length - 1)) { _local5[_local5.length] = {s:_local4[_local3], cp:(_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)].cp)), e:_local4[(_local3 + 1)]}; _local3++; }; } else { _local5[_local5.length] = {s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]}; }; }; } else { for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 3){ _local5[_local5.length] = {s:_local4[0], cp:_local4[1], e:((_local4[1] + _local4[2]) / 2)}; _local3 = 2; while (_local3 < (_local4.length - 2)) { _local5[_local5.length] = {s:_local5[(_local3 - 2)].e, cp:_local4[_local3], e:((_local4[_local3] + _local4[(_local3 + 1)]) / 2)}; _local3++; }; _local5[_local5.length] = {s:_local5[(_local5.length - 1)].e, cp:_local4[(_local4.length - 2)], e:_local4[(_local4.length - 1)]}; } else { if (_local4.length == 3){ _local5[_local5.length] = {s:_local4[0], cp:_local4[1], e:_local4[2]}; } else { if (_local4.length == 2){ _local5[_local5.length] = {s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]}; }; }; }; }; }; return (_local7); } public static function bezierProxy2(_arg1:Object, _arg2:Number=0):void{ var _local3:Object; var _local4:Object; var _local5:Array; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Array; var _local10:Number; var _local11:uint; bezierProxy(_arg1, _arg2); _local3 = {}; _local4 = _arg1.info.target; _arg1.info.target = _local3; _arg1.target.t = (_arg1.target.t + 0.01); bezierProxy(_arg1); _local5 = _arg1.info.orientToBezier; _local11 = 0; while (_local11 < _local5.length) { _local9 = _local5[_local11]; _local10 = ((_local9[3]) || (0)); _local7 = (_local3[_local9[0]] - _local4[_local9[0]]); _local8 = (_local3[_local9[1]] - _local4[_local9[1]]); _local4[_local9[2]] = ((Math.atan2(_local8, _local7) * _RAD2DEG) + _local10); _local11++; }; _arg1.info.target = _local4; _arg1.target.t = (_arg1.target.t - 0.01); } public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(true, _arg1, _arg2); } public static function set globalTimeScale(_arg1:Number):void{ setGlobalTimeScale(_arg1); } public static function get globalTimeScale():Number{ return (_globalTimeScale); } public static function killAllDelayedCalls(_arg1:Boolean=false):void{ killAll(_arg1, false, true); } public static function multiSequence(_arg1:Array):Array{ var _local2:Dictionary; var _local3:Array; var _local4:int; var _local5:Number; var _local6:Object; var _local7:Object; var _local8:Number; var _local9:Number; var _local10:uint; var _local11:Object; var _local12:String; _local2 = new Dictionary(); _local3 = []; _local4 = TweenLite.overwriteManager.mode; _local5 = 0; _local10 = 0; while (_local10 < _arg1.length) { _local6 = _arg1[_local10]; _local9 = ((_local6.time) || (0)); _local11 = {}; for (_local12 in _local6) { _local11[_local12] = _local6[_local12]; }; delete _local11.time; _local8 = ((_local11.delay) || (0)); _local11.delay = (_local5 + _local8); _local7 = _local11.target; delete _local11.target; if (_local4 == 1){ if (_local2[_local7] == undefined){ _local2[_local7] = _local11; } else { _local11.overwrite = 2; }; }; _local3[_local3.length] = new TweenMax(_local7, _local9, _local11); _local5 = (_local5 + (_local9 + _local8)); _local10++; }; return (_local3); } public static function getTweensOf(_arg1:Object):Array{ var _local2:Array; var _local3:Array; var _local4:int; _local2 = masterList[_arg1]; _local3 = []; if (_local2 != null){ _local4 = (_local2.length - 1); while (_local4 > -1) { if (!_local2[_local4].gc){ _local3[_local3.length] = _local2[_local4]; }; _local4--; }; }; return (_local3); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{ return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, persist:_arg4, overwrite:0})); } public static function isTweening(_arg1:Object):Boolean{ var _local2:Array; var _local3:int; _local2 = getTweensOf(_arg1); _local3 = (_local2.length - 1); while (_local3 > -1) { if (((_local2[_local3].active) && (!(_local2[_local3].gc)))){ return (true); }; _local3--; }; return (false); } public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{ var _local4:Array; var _local5:Boolean; var _local6:int; _local4 = getAllTweens(); _local6 = (_local4.length - 1); while (_local6 > -1) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ if (_arg1){ _local4[_local6].complete(false); _local4[_local6].clear(); } else { TweenLite.removeTween(_local4[_local6], true); }; }; _local6--; }; } public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{ var _local4:Array; var _local5:Boolean; var _local6:int; _local4 = getAllTweens(); _local6 = (_local4.length - 1); while (_local6 > -1) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local4[_local6] is TweenMax)) && ((((_local5 == _arg3)) || (!((_local5 == _arg2))))))){ _local4[_local6].paused = _arg1; }; _local6--; }; } public static function callbackProxy(_arg1:Array, _arg2:Array=null):void{ var _local3:uint; _local3 = 0; while (_local3 < _arg1.length) { if (_arg1[_local3] != undefined){ _arg1[_local3].apply(null, _arg2[_local3]); }; _local3++; }; } public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object):Array{ _arg3.runBackwards = true; return (allTo(_arg1, _arg2, _arg3)); } public static function killAllTweens(_arg1:Boolean=false):void{ killAll(_arg1, true, false); } public static function getAllTweens():Array{ var _local1:Dictionary; var _local2:Array; var _local3:Array; var _local4:int; var _local5:TweenLite; _local1 = masterList; _local2 = []; for each (_local3 in _local1) { _local4 = (_local3.length - 1); while (_local4 > -1) { if (!_local3[_local4].gc){ _local2[_local2.length] = _local3[_local4]; }; _local4--; }; }; for each (_local5 in _pausedTweens) { _local2[_local2.length] = _local5; }; return (_local2); } public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(false, _arg1, _arg2); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ _arg3.runBackwards = true; return (new TweenMax(_arg1, _arg2, _arg3)); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ return (new TweenMax(_arg1, _arg2, _arg3)); } public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object):Array{ var _local4:int; var _local5:Object; var _local6:String; var _local7:Number; var _local8:Object; var _local9:Array; var _local10:Number; if (_arg1.length == 0){ return ([]); }; _local9 = []; _local10 = ((_arg3.delayIncrement) || (0)); delete _arg3.delayIncrement; if (_arg3.onCompleteAll == undefined){ _local8 = _arg3; } else { _local8 = {}; for (_local6 in _arg3) { _local8[_local6] = _arg3[_local6]; }; _local8.onCompleteParams = [[_arg3.onComplete, _arg3.onCompleteAll], [_arg3.onCompleteParams, _arg3.onCompleteAllParams]]; _local8.onComplete = TweenMax.callbackProxy; delete _arg3.onCompleteAll; }; delete _arg3.onCompleteAllParams; if (_local10 == 0){ _local4 = 0; while (_local4 < (_arg1.length - 1)) { _local5 = {}; for (_local6 in _arg3) { _local5[_local6] = _arg3[_local6]; }; _local9[_local9.length] = new TweenMax(_arg1[_local4], _arg2, _local5); _local4++; }; } else { _local7 = ((_arg3.delay) || (0)); _local4 = 0; while (_local4 < (_arg1.length - 1)) { _local5 = {}; for (_local6 in _arg3) { _local5[_local6] = _arg3[_local6]; }; _local5.delay = (_local7 + (_local4 * _local10)); _local9[_local9.length] = new TweenMax(_arg1[_local4], _arg2, _local5); _local4++; }; _local8.delay = (_local7 + ((_arg1.length - 1) * _local10)); }; _local9[_local9.length] = new TweenMax(_arg1[(_arg1.length - 1)], _arg2, _local8); if ((_arg3.onCompleteAllListener is Function)){ _local9[(_local9.length - 1)].addEventListener(TweenEvent.COMPLETE, _arg3.onCompleteAllListener); }; return (_local9); } } }//package gs
Section 9
//MochiAd (mochi.as3.MochiAd) package mochi.as3 { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return ("3.02 as3"); } public static function showClickAwayAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_timeout:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var sendHostProgress:Boolean; var options = _arg1; DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{ }, ad_finished:function ():void{ }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; ad_timeout = options.ad_timeout; delete options.ad_timeout; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; sendHostProgress = false; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; if (!this.parent){ delete this.onEnterFrame; return; }; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; _local3 = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (this.root == null){ _local3 = true; }; if (_local3){ delete this.onEnterFrame; }; }; doOnEnterFrame(chk); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function _allowDomains(_arg1:String):String{ var _local2:String; _local2 = _arg1.split("/")[2].split(":")[0]; if (Security.sandboxType == "application"){ return (_local2); }; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (_arg1.origFrameRate != undefined){ _arg1.stage.frameRate = _arg1.origFrameRate; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad._containerLCName != undefined){ _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"}); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (_local2 > chk.ad_msec){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local3:Object; var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; _local3 = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; if (_local3.clip == undefined){ throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite.")); }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; if (_local3.id == "test"){ }; return (_local3); } public static function _cleanup(_arg1:Object):void{ var idx:Number; var k:String; var lc:LocalConnection; var f:Function; var mc = _arg1; if (("lc" in mc)){ lc = mc.lc; f = function ():void{ try { lc.client = null; lc.close(); } catch(e:Error) { }; }; setTimeout(f, 0); }; idx = DisplayObjectContainer(mc).numChildren; while (idx > 0) { idx = (idx - 1); DisplayObjectContainer(mc).removeChildAt(idx); }; for (k in mc) { delete mc[k]; }; } public static function load(_arg1:Object):MovieClip{ var DEFAULTS:Object; var clip:Object; var depth:Number; var mc:MovieClip; var wh:Array; var lv:URLVariables; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!MochiAd._isNetworkAvailable()){ return (null); }; try { if (clip._mochiad_loaded){ return (null); }; } catch(e:Error) { throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, "_mochiad", depth); wh = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; //unresolved jump }; lv = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; mc.lcName = name; lv.lc = name; lv.st = getTimer(); loader = new Loader(); g = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime())); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{ }); loader.load(req); mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{ var _local4:Array; var _local5:Number; _local4 = _arg2.split("."); _local5 = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return (undefined); }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; if (typeof(_arg1[_local4[_local5]]) == "function"){ return (_arg1[_local4[_local5]].apply(_arg1, _arg3)); }; return (undefined); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip; _local4 = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local3:Object; var _local4:Number; var _local5:Number; var _local6:Array; _local3 = _arg2.getBounds(_arg2.root); _local4 = 0; _local5 = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function adShowing(_arg1:Object):void{ _arg1.origFrameRate = _arg1.stage.frameRate; _arg1.stage.frameRate = 30; } public static function getValue(_arg1:Object, _arg2:String):Object{ var _local3:Array; var _local4:Number; _local3 = _arg2.split("."); _local4 = 0; while (_local4 < (_local3.length - 1)) { if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){ return (undefined); }; _arg1 = _arg1[_local3[_local4]]; _local4++; }; return (_arg1[_local3[_local4]]); } public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{ var _local4:Object; var _local5:Object; switch (_arg3.id){ case "setValue": MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value); break; case "getValue": _local4 = MochiAd.getValue(_arg1, _arg3.objectName); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4); break; case "runMethod": _local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5); break; }; } public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Array; var _local5:Number; _local4 = _arg2.split("."); _local5 = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return; }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; _arg1[_local4[_local5]] = _arg3; } public static function showPreGameAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var bar:MovieClip; var bar_color:Number; var bar_background:Number; var bar_outline:Number; var backing_mc:MovieClip; var backing:Object; var inside_mc:MovieClip; var inside:Object; var outline_mc:MovieClip; var outline:Object; var complete:Boolean; var unloaded:Boolean; var f:Function; var sendHostProgress:Boolean; var fn:Function; var r:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ }, ad_skipped:function ():void{ }, ad_progress:function (_arg1:Number):void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){ options.ad_started(); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); return; }; clip = options.clip; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ var fn:Function; MochiAd._cleanup(mc); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); bar = createEmptyMovieClip(chk, "_mochiad_bar", 4); if (options.no_progress_bar){ bar.visible = false; delete options.no_progress_bar; } else { bar.x = 10; bar.y = (h - 20); }; bar_color = options.color; delete options.color; bar_background = options.background; delete options.background; bar_outline = options.outline; delete options.outline; backing_mc = createEmptyMovieClip(bar, "_outline", 1); backing = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo((w - 20), 0); backing.lineTo((w - 20), 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); inside_mc = createEmptyMovieClip(bar, "_inside", 2); inside = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo((w - 20), 0); inside.lineTo((w - 20), 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; outline_mc = createEmptyMovieClip(bar, "_outline", 3); outline = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo((w - 20), 0); outline.lineTo((w - 20), 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; f = function (_arg1:Event):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); complete = true; if (unloaded){ MochiAd.unload(clip); }; }; if (clip.loaderInfo.bytesLoaded == clip.loaderInfo.bytesTotal){ complete = true; } else { if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; } else { clip.loaderInfo.addEventListener(Event.COMPLETE, f); }; } else { clip.loaderInfo.addEventListener(Event.COMPLETE, f); }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; mc.rpcTestFn = function (_arg1:String):Object{ return (_arg1); }; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; sendHostProgress = false; mc.sendHostLoadProgress = function (_arg1:String):void{ sendHostProgress = true; }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Object; var _local3:Number; var _local4:Boolean; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Object; var _local10:Number; var _local11:Number; if (((!(this.parent)) || (!(this.parent.parent)))){ delete this["onEnterFrame"]; return; }; _local1 = this.parent.parent.root; _local2 = this.parent._mochiad_ctr; _local3 = (getTimer() - this.started); _local4 = false; _local5 = _local1.loaderInfo.bytesTotal; _local6 = _local1.loaderInfo.bytesLoaded; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; _local7 = ((100 * _local6) / _local5); _local8 = ((100 * _local3) / chk.ad_msec); _local9 = this._mochiad_bar._inside; _local10 = Math.min(100, Math.min(((_local7) || (0)), _local8)); _local10 = Math.max(this.last_pcnt, _local10); this.last_pcnt = _local10; _local9.scaleX = (_local10 * 0.01); options.ad_progress(_local10); if (sendHostProgress){ clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7}); if (_local7 == 100){ sendHostProgress = false; }; }; if (!chk.showing){ _local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local11 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){ options.ad_failed(); _local4 = true; }; }; }; if (_local3 > chk.ad_msec){ _local4 = true; }; if (((complete) && (_local4))){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ MochiAd.showInterLevelAd(_arg1); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var f:Function; var mc = _arg1; f = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package mochi.as3
Section 10
//MochiDigits (mochi.as3.MochiDigits) package mochi.as3 { public final class MochiDigits { private var Sibling:MochiDigits; private var Fragment:Number; private var Encoder:Number; public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{ Encoder = 0; setValue(_arg1, _arg2); } public function set value(_arg1:Number):void{ setValue(_arg1); } public function reencode():void{ var _local1:uint; _local1 = int((2147483647 * Math.random())); Fragment = (Fragment ^ (_local1 ^ Encoder)); Encoder = _local1; } public function toString():String{ var _local1:String; _local1 = String.fromCharCode((Fragment ^ Encoder)); if (Sibling != null){ _local1 = (_local1 + Sibling.toString()); }; return (_local1); } public function get value():Number{ return (Number(this.toString())); } public function setValue(_arg1:Number=0, _arg2:uint=0):void{ var _local3:String; _local3 = _arg1.toString(); var _temp1 = _arg2; _arg2 = (_arg2 + 1); Fragment = (_local3.charCodeAt(_temp1) ^ Encoder); if (_arg2 < _local3.length){ Sibling = new MochiDigits(_arg1, _arg2); } else { Sibling = null; }; reencode(); } public function addValue(_arg1:Number):void{ value = (value + _arg1); } } }//package mochi.as3
Section 11
//MochiScores (mochi.as3.MochiScores) package mochi.as3 { import flash.display.*; import flash.text.*; public class MochiScores { private static var boardID:String; public static var onErrorHandler:Object; public static var onCloseHandler:Object; public static function showLeaderboard(_arg1:Object=null):void{ var n:Number; var options = _arg1; if (options != null){ if (options.clip != null){ if ((options.clip is Sprite)){ MochiServices.setContainer(options.clip); }; delete options.clip; } else { MochiServices.setContainer(); }; MochiServices.stayOnTop(); if (options.name != null){ if ((options.name is TextField)){ if (options.name.text.length > 0){ options.name = options.name.text; }; }; }; if (options.score != null){ if ((options.score is TextField)){ if (options.score.text.length > 0){ options.score = options.score.text; }; } else { if ((options.score is MochiDigits)){ options.score = options.score.value; }; }; n = Number(options.score); if (isNaN(n)){ } else { if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){ } else { if (Math.floor(n) != n){ }; options.score = n; }; }; }; if (options.onDisplay != null){ options.onDisplay(); } else { if (MochiServices.clip != null){ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); //unresolved jump }; }; }; } else { options = {}; if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); //unresolved jump }; }; if (options.onClose != null){ onCloseHandler = options.onClose; } else { onCloseHandler = function ():void{ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.play(); //unresolved jump }; }; }; if (options.onError != null){ onErrorHandler = options.onError; } else { onErrorHandler = null; }; if (options.boardID == null){ if (MochiScores.boardID != null){ options.boardID = MochiScores.boardID; }; }; MochiServices.warnID(options.boardID, true); MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function closeLeaderboard():void{ MochiServices.send("scores_closeLeaderboard"); } public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function requestList(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_requestList", null, _arg1, _arg2); } public static function scoresArrayToObjects(_arg1:Object):Object{ var _local2:Object; var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; _local2 = {}; for (_local7 in _arg1) { if (typeof(_arg1[_local7]) == "object"){ if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){ _local2[_local7] = []; _local5 = _arg1[_local7]; _local4 = 0; while (_local4 < _local5.rows.length) { _local6 = {}; _local3 = 0; while (_local3 < _local5.cols.length) { _local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3]; _local3++; }; _local2[_local7].push(_local6); _local4++; }; } else { _local2[_local7] = {}; for (_local8 in _arg1[_local7]) { _local2[_local7][_local8] = _arg1[_local7][_local8]; }; }; } else { _local2[_local7] = _arg1[_local7]; }; }; return (_local2); } public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{ _arg1 = Number(_arg1); if (isNaN(_arg1)){ } else { if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){ } else { if (Math.floor(_arg1) != _arg1){ }; _arg1 = Number(_arg1); }; }; MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function onClose(_arg1:Object=null):void{ if (_arg1 != null){ if (_arg1.error != null){ if (_arg1.error == true){ if (onErrorHandler != null){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; onErrorHandler(_arg1.errorCode); MochiServices.doClose(); return; }; }; }; }; onCloseHandler(); MochiServices.doClose(); } public static function setBoardID(_arg1:String):void{ MochiServices.warnID(_arg1, true); MochiScores.boardID = _arg1; MochiServices.send("scores_setBoardID", {boardID:_arg1}); } } }//package mochi.as3
Section 12
//MochiServices (mochi.as3.MochiServices) package mochi.as3 { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; import flash.geom.*; public class MochiServices { private static var _container:Object; private static var _connected:Boolean = false; private static var _swfVersion:String; public static var netupAttempted:Boolean = false; private static var _sendChannel:LocalConnection; private static var _clip:MovieClip; private static var _loader:Loader; private static var _id:String; private static var _listenChannel:LocalConnection; public static var widget:Boolean = false; private static var _timer:Timer; private static var _sendChannelName:String; private static var _connecting:Boolean = false; public static var onError:Object; private static var _listenChannelName:String = "__ms_"; private static var _servicesURL:String = "http://www.mochiads.com/static/lib/services/services.swf"; public static var netup:Boolean = true; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function get connected():Boolean{ return (_connected); } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (_clip != null){ if (_clip._queue != null){ while (_clip._queue.length > 0) { _local2 = _clip._queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _clip._callbacks[_local2.callbackID]; }; delete _clip._callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; }; } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ onError("NotConnected"); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); }; if (_clip != null){ if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){ _clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _clip._nextcallbackID++; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } public static function get childClip():Object{ return (_clip); } private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{ var _local3:Array; var _local4:int; var _local5:Array; var _local6:Array; var _local7:MovieClip; var _local8:LocalConnection; var _local9:String; var _local10:ByteArray; var _local11:ByteArray; var _local12:uint; var _local13:uint; var _local14:Loader; _local3 = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23]; _local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3]; _local6 = [0, 64, 0, 0, 0]; _local7 = new MovieClip(); _local8 = new LocalConnection(); _local9 = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().getTime())); _local8 = new LocalConnection(); _local7.lc = _local8; _local7.click = _arg2; _local8.client = _local7; _local8.connect(_local9); _local10 = new ByteArray(); _local11 = new ByteArray(); _local11.endian = Endian.LITTLE_ENDIAN; _local11.writeShort(1); _local11.writeUTFBytes(((_arg1 + " ") + _local9)); _local11.writeByte(0); _local12 = ((_local3.length + _local11.length) + 4); _local13 = (_local12 + 35); _local10.endian = Endian.LITTLE_ENDIAN; _local10.writeUTFBytes("FWS"); _local10.writeByte(8); _local10.writeUnsignedInt(_local13); for each (_local4 in _local5) { _local10.writeByte(_local4); }; _local10.writeUnsignedInt(_local12); _local10.writeByte(136); _local10.writeShort(_local11.length); _local10.writeBytes(_local11); for each (_local4 in _local3) { _local10.writeByte(_local4); }; for each (_local4 in _local6) { _local10.writeByte(_local4); }; _local14 = new Loader(); _local14.loadBytes(_local10); _local7.addChild(_local14); return (_local7); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{ var vars:Object; var avm1Click:DisplayObject; var s:String; var i:Number; var x:String; var req:URLRequest; var loader:Loader; var setURL:Function; var err:Function; var complete:Function; var url = _arg1; var burl = _arg2; var btn = _arg3; var onClick = _arg4; vars = new Object(); vars["mav"] = getVersion(); vars["swfv"] = "9"; vars["swfurl"] = btn.loaderInfo.loaderURL; vars["fv"] = Capabilities.version; vars["os"] = Capabilities.os; vars["lang"] = Capabilities.language; vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); s = "?"; i = 0; for (x in vars) { if (i != 0){ s = (s + "&"); }; i = (i + 1); s = (((s + x) + "=") + escape(vars[x])); }; req = new URLRequest("http://x.mochiads.com/linkping.swf"); loader = new Loader(); setURL = function (_arg1:String):void{ var _local2:Rectangle; if (avm1Click){ btn.removeChild(avm1Click); }; avm1Click = clickMovie(_arg1, onClick); _local2 = btn.getBounds(btn); btn.addChild(avm1Click); avm1Click.x = _local2.x; avm1Click.y = _local2.y; avm1Click.scaleX = (0.01 * _local2.width); avm1Click.scaleY = (0.01 * _local2.height); }; err = function (_arg1:Object):void{ netup = false; _arg1.target.removeEventListener(_arg1.type, arguments.callee); setURL(burl); }; complete = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; if (netup){ setURL((url + s)); } else { setURL(burl); }; if (!((netupAttempted) || (_connected))){ netupAttempted = true; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); }; } public static function warnID(_arg1:String, _arg2:Boolean):void{ var _local3:Number; _arg1 = _arg1.toLowerCase(); if (_arg1.length != 16){ return; }; if (_arg1 == "1e113c7239048b3f"){ if (_arg2){ //unresolved jump }; return; } else { if (_arg1 == "84993a1de4031cd8"){ if (_arg2){ //unresolved jump }; return; }; }; _local3 = 0; while (_local3 < _arg1.length) { switch (_arg1.charAt(_local3)){ case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": case "a": case "b": case "c": case "d": case "e": case "f": break; default: return; }; _local3++; }; } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _listenChannel.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); } catch(error:Error) { }; }; } public static function allowDomains(_arg1:String):String{ var _local2:String; if (Security.sandboxType != "application"){ Security.allowDomain("*"); Security.allowInsecureDomain("*"); }; if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; if (Security.sandboxType != "application"){ Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; }; return (_local2); } public static function getVersion():String{ return ("3.02 as3"); } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); if (_clip.parent != null){ Sprite(_clip.parent).removeChild(_clip); }; } private static function onStatus(_arg1:StatusEvent):void{ switch (_arg1.level){ case "error": _connected = false; _listenChannel.connect(_listenChannelName); break; }; } public static function get id():String{ return (_id); } private static function urlOptions(_arg1:Object):Object{ var _local2:Object; var _local3:String; var _local4:Array; var _local5:Number; var _local6:Array; _local2 = {}; _local3 = _arg1.loaderInfo.parameters.mochiad_options; if (_local3){ _local4 = _local3.split("&"); _local5 = 0; while (_local5 < _local4.length) { _local6 = _local4[_local5].split("="); _local2[unescape(_local6[0])] = unescape(_local6[1]); _local5++; }; }; return (_local2); } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_arg1 != null){ if ((_arg1 is Sprite)){ _container = _arg1; }; }; if (_arg2){ if ((_container is Sprite)){ Sprite(_container).addChild(_clip); }; }; } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; if (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } private static function initComChannels():void{ if (!_connected){ _sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL}); _listenChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _clip.onReceive = function (_arg1:Object):void{ var cb:String; var cblst:Object; var method:*; var methodName:String; var obj:Object; var pkg = _arg1; cb = pkg.callbackID; cblst = this.client._callbacks[cb]; if (!cblst){ return; }; method = cblst.callbackMethod; methodName = ""; obj = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; if (obj[method] != null){ method = obj[method]; //unresolved jump }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { }; }; }; delete this.client._callbacks[cb]; }; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; _connecting = false; _connected = true; while (_clip._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift()); }; }; } private static function listen():void{ _listenChannel = new LocalConnection(); _listenChannel.client = _clip; _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; _listenChannel.allowDomain("*", "localhost"); _listenChannel.allowInsecureDomain("*", "localhost"); _listenChannel.connect(_listenChannelName); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ var clipname:String; var f:Function; var req:URLRequest; var vars:URLVariables; var id = _arg1; var clip = _arg2; clipname = ("_mochiservices_com_" + id); if (_clip != null){ return (_clip); }; if (!MochiServices.isNetworkAvailable()){ return (null); }; if (urlOptions(clip).servicesURL != undefined){ _servicesURL = urlOptions(clip).servicesURL; }; MochiServices.allowDomains(_servicesURL); _clip = createEmptyMovieClip(clip, clipname, 10336, false); _loader = new Loader(); f = function (_arg1:Object):void{ _clip._mochiad_ctr_failed = true; MochiServices.disconnect(); MochiServices.onError("IOError"); }; _listenChannelName = (_listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor((Math.random() * 99999)))); _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); req = new URLRequest(_servicesURL); vars = new URLVariables(); vars.listenLC = _listenChannelName; vars.mochiad_options = clip.loaderInfo.parameters.mochiad_options; if (widget){ vars.widget = true; }; req.data = vars; listen(); _loader.load(req); _clip.addChild(_loader); _clip._mochiservices_com = _loader; _sendChannel = new LocalConnection(); _clip._queue = []; _clip._nextcallbackID = 0; _clip._callbacks = {}; _timer = new Timer(10000, 1); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); return (_clip); } public static function get clip():Object{ return (_container); } public static function bringToTop(_arg1:Event):void{ var e = _arg1; if (MochiServices.clip != null){ if (MochiServices.childClip != null){ try { if (MochiServices.clip.numChildren > 1){ MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1)); }; } catch(errorObject:Error) { _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; }; } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; warnID(id, false); if ((clip is DisplayObject)){ if (((!(_connected)) && ((_clip == null)))){ _connecting = true; init(id, clip); }; //unresolved jump }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ }; }; }; } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var mc:MovieClip; var parent = _arg1; var name = _arg2; var depth = _arg3; var doAdd = _arg4; mc = new MovieClip(); if (doAdd){ if (((false) && (depth))){ parent.addChildAt(mc, depth); } else { parent.addChild(mc); }; }; try { parent[name] = mc; } catch(e:Error) { throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; mc["_name"] = name; return (mc); } public static function connectWait(_arg1:TimerEvent):void{ if (!_connected){ _clip._mochiad_ctr_failed = true; MochiServices.disconnect(); MochiServices.onError("IOError"); }; } } }//package mochi.as3
Section 13
//all_3 (paper_fla.all_3) package paper_fla { import flash.display.*; public dynamic class all_3 extends MovieClip { public function all_3(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package paper_fla
Section 14
//buttn_14 (paper_fla.buttn_14) package paper_fla { import flash.display.*; public dynamic class buttn_14 extends MovieClip { public function buttn_14(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package paper_fla
Section 15
//intruct_mc_24 (paper_fla.intruct_mc_24) package paper_fla { import flash.display.*; public dynamic class intruct_mc_24 extends MovieClip { public function intruct_mc_24(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package paper_fla
Section 16
//MainTimeline (paper_fla.MainTimeline) package paper_fla { import com.quickflashgames.sound.*; import flash.media.*; import flash.display.*; import flash.events.*; import gs.*; import flash.filters.*; import gs.easing.*; import mochi.as3.*; import flash.text.*; import flash.net.*; import flash.utils.*; import flash.system.*; import flash.geom.*; import flash.errors.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var btnGoBack1:SimpleButton; public var btime:int; public var playagainvisible:Boolean; public var btn_mc:MovieClip; public var so:SharedObject; public var arr:Array; public var i; public var g_mc:MovieClip; public var go_mc:Go1; public var o:Object; public var pause_mc:Paused; public var gameOver_mc:MovieClip; public var border_mc:MovieClip; public var boardID:String; public var audio_mc:MovieClip; public var mmt:Object; public var title_mc:MovieClip; public var lives:int; public var hist:Array; public var btnh_mc:MovieClip; public var btnGoBack:SimpleButton; public var kr:Boolean; public var kl:Boolean; public var btnURL:BtnQFG; public var btnX:int; public var btnY:int; public var gmask_mc:MovieClip; public var strURL:String; public var lives_mc:MovieClip; public var best_mc:Best; public var gameh_mc:Sprite; public var gameOver; public function MainTimeline(){ addFrameScript(0, frame1, 3, frame4, 10, frame11, 13, frame14, 18, frame19, 28, frame29, 35, frame36, 47, frame48, 60, frame61, 70, frame71, 85, frame86, 96, frame97, 97, frame98, 107, frame108, 108, frame109, 118, frame119, 119, frame120, 129, frame130, 130, frame131, 140, frame141, 141, frame142, 151, frame152, 152, frame153, 162, frame163, 163, frame164, 173, frame174, 174, frame175, 184, frame185, 185, frame186, 195, frame196, 196, frame197, 206, frame207, 207, frame208, 217, frame218, 218, frame219, 228, frame229, 229, frame230, 239, frame240, 240, frame241, 250, frame251, 251, frame252, 261, frame262, 262, frame263, 272, frame273, 273, frame274, 283, frame284, 285, frame286); } function frame152(){ gotoAndStop("title"); } public function showGameOver():void{ gameOver_mc = new GameOver(); if (Global.gameType == 1){ gameOver_mc.gotoAndStop(2); }; gameh_mc.addChild(gameOver_mc); gameOver_mc.x = 825; gameOver_mc.y = 200; TweenMax.to(gameOver_mc, 1, {x:275, ease:Back.easeOut, delay:0.5}); gameOver_mc.addEventListener("playagain", playagainClicked); gameOver_mc.addEventListener("quit", quitClicked); gameOver_mc.addEventListener("submitscore", goSubmitClicked); playagainvisible = true; } function frame273(){ gotoAndStop("title"); } function frame153(){ o = {n:[1, 13, 0, 5, 12, 4, 5, 14, 0, 6, 2, 4, 1, 7, 14, 6], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID}); } public function onFinishGameHGoneQuit(_arg1:Sprite):void{ cleanup(); removeChild(gameh_mc); gameh_mc = null; gotoAndStop("title"); SoundManager.getInstance().playSound("TitleBG", 0, 0, 99999); } function frame274(){ o = {n:[14, 14, 4, 13, 9, 5, 7, 14, 9, 7, 12, 3, 10, 3, 12, 6], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID, score:Global.score}); } public function mute(_arg1:Event):void{ var _local2:Boolean; _local2 = SoundManager.getInstance().mute; SoundManager.getInstance().muteAll(!(_local2)); _local2 = SoundManager.getInstance().mute; so.data.mute.val = _local2; if (_local2 == true){ audio_mc.gotoAndStop(2); } else { audio_mc.gotoAndStop(1); }; } function frame163(){ gotoAndStop("title"); } function frame164(){ o = {n:[1, 13, 0, 5, 12, 4, 5, 14, 0, 6, 2, 4, 1, 7, 14, 6], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID, score:Global.score}); } function frame286(){ gotoAndStop("title"); } function frame284(){ gotoAndStop("title"); } public function timerHandler(_arg1:TimerEvent):void{ g_mc.resumeGame(); } function frame174(){ gotoAndStop("title"); } function frame175(){ o = {n:[5, 1, 14, 12, 15, 5, 11, 15, 7, 15, 8, 6, 11, 12, 1, 8], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID}); } function frame14(){ stop(); } public function lostLife(_arg1:Event):void{ var _local2:Timer; lives--; if (lives > 0){ lives_mc.gotoAndStop(lives); _local2 = new Timer(2000, 1); _local2.start(); _local2.addEventListener(TimerEvent.TIMER, timerHandler); } else { gameOver = true; gameh_mc.removeChild(lives_mc); showGameOver(); SoundManager.getInstance().stopSound("GameLoop", 1); }; } public function pauseunpause(){ if (gameOver == false){ if (g_mc.paused == false){ if (g_mc.pauseGame()){ if (!gameh_mc.contains(pause_mc)){ gameh_mc.addChild(pause_mc); }; pause_mc.x = 825; pause_mc.y = 200; TweenMax.to(pause_mc, 0.5, {x:275, ease:Back.easeOut, delay:0}); }; } else { if (g_mc.unpauseGame()){ TweenMax.to(pause_mc, 0.5, {x:-275, ease:Back.easeOut, delay:0, onComplete:onFinishHidePause, onCompleteParams:[pause_mc]}); }; }; }; } function frame186(){ o = {n:[5, 1, 14, 12, 15, 5, 11, 15, 7, 15, 8, 6, 11, 12, 1, 8], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID, score:Global.score}); } public function quit(){ TweenMax.to(gameh_mc, 1, {x:-550, ease:Back.easeIn, delay:0, onComplete:onFinishGameHGoneQuit, onCompleteParams:[gameh_mc]}); } function frame185(){ gotoAndStop("title"); } function frame1(){ MochiServices.connect("a390487c37ef5724", root); strURL = stage.loaderInfo.url; stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; } function frame29(){ if (Global.gameType == 0){ gotoAndPlay("arrays"); } else { gotoAndPlay("selectStage"); }; } function frame19(){ btnGoBack1.addEventListener(MouseEvent.CLICK, goBackFromStages1); stop(); } function frame11(){ SoundManager.getInstance().addSoundByClassName("TitleBG", new TitleBG()); SoundManager.getInstance().addSoundByClassName("HitSound", new HitSound()); SoundManager.getInstance().addSoundByClassName("Tick", new Tick()); SoundManager.getInstance().addSoundByClassName("FinishSound", new FinishSound()); SoundManager.getInstance().playSound("TitleBG", 0, 0, 99999); SoundManager.getInstance().addSoundByClassName("GameLoop", new GameLoop()); so = SharedObject.getLocal("paperplanes"); Global.so = so; hist = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0); if (so.data.hist == undefined){ so.data.hist = hist; } else { hist = so.data.hist; }; Global.hist = hist; if (so.data.mute == undefined){ mmt = new Object(); mmt.val = false; so.data.mute = mmt; } else { mmt = so.data.mute; SoundManager.getInstance().muteAll(mmt.val); if (so.data.mute.val == true){ audio_mc.gotoAndStop(2); } else { audio_mc.gotoAndStop(1); }; }; audio_mc.addEventListener(MouseEvent.CLICK, mute); audio_mc.buttonMode = true; } public function selectLevelRollOut(_arg1:MouseEvent){ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); if (Global.gameType == 1){ _local2.clouds2.stop(); _local2.plane1.stop(); } else { _local2.clouds3.stop(); _local2.plane1.stop(); _local2.plane2.stop(); }; } function frame197(){ o = {n:[8, 15, 5, 10, 9, 0, 4, 10, 3, 13, 0, 12, 13, 9, 15, 15], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID}); } function frame4(){ MochiAd.showPreGameAd({clip:root, id:"a390487c37ef5724", res:"550x400", background:0xFFFFFF, color:6724044, outline:0xFFFFFF, no_bg:true}); } function frame36(){ btnh_mc = new MovieClip(); addChild(btnh_mc); btnY = 80; btnX = 50; i = 0; while (i < 8) { btn_mc = new LevelButton(); btn_mc.x = btnX; btn_mc.y = btnY; btn_mc.num = (i + 1); btn_mc.txtLevel.text = ("STAGE " + String((i + 1))); btn_mc.txtLevel.mouseEnabled = false; btnX = (btnX + 160); if ((((i == 2)) || ((i == 5)))){ btnX = 50; btnY = (btnY + 100); }; btnh_mc.addChild(btn_mc); if (Global.gameType == 1){ btn_mc.clouds1.visible = (btn_mc.clouds3.visible = false); btn_mc.plane2.visible = false; } else { btn_mc.clouds1.visible = (btn_mc.clouds2.visible = false); }; if ((((i == 5)) || ((i == 6)))){ btn_mc.hider.visible = true; } else { btn_mc.hider.visible = false; }; btn_mc.clouds1.stop(); btn_mc.clouds2.stop(); btn_mc.clouds3.stop(); btn_mc.plane1.stop(); btn_mc.plane2.stop(); btn_mc.buttonMode = true; btn_mc.addEventListener(MouseEvent.ROLL_OVER, selectLevelRollOver); btn_mc.addEventListener(MouseEvent.ROLL_OUT, selectLevelRollOut); btn_mc.addEventListener(MouseEvent.CLICK, selectLevelClicked); i++; }; btnGoBack.addEventListener(MouseEvent.CLICK, goBackFromStages); stop(); } function frame196(){ gotoAndStop("title"); } public function cleanup(){ playagainvisible = false; this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, kd); this.stage.removeEventListener(KeyboardEvent.KEY_UP, ku); removeEventListener(Event.ENTER_FRAME, oef); } public function onFinishHidePause(_arg1:MovieClip):void{ if (gameh_mc.contains(pause_mc)){ gameh_mc.removeChild(pause_mc); }; } function frame48(){ if (Global.gameType == 0){ arr = [{x:-70, w:200, h:10, y:170}, {x:140, w:200, h:10, y:310}, {x:-70, w:200, h:10, y:420}, {x:130, w:200, h:10, y:550}, {x:-40, w:200, h:10, y:680}, {x:140, w:200, h:20, y:800}, {x:-60, w:200, h:10, y:920}, {x:-80, w:200, h:20, y:1050}, {x:180, w:200, h:20, y:1050}, {x:-50, w:200, h:10, y:1160}, {x:120, w:200, h:10, y:1270}, {x:-70, w:200, h:10, y:1380}, {x:-90, w:200, h:90, y:1450}, {x:170, w:200, h:90, y:1450}, {x:-90, w:200, h:90, y:1540}, {x:170, w:200, h:90, y:1540}, {x:-90, w:200, h:90, y:1630}, {x:170, w:200, h:90, y:1630}, {x:-90, w:200, h:90, y:1720}, {x:170, w:200, h:90, y:1720}, {x:-90, w:200, h:90, y:1810}, {x:170, w:200, h:90, y:1810}, {x:-90, w:200, h:90, y:1900}, {x:170, w:200, h:90, y:1900}, {x:-90, w:200, h:90, y:1990}, {x:170, w:200, h:90, y:1990}, {x:130, w:200, h:40, y:2130}, {x:-70, w:200, h:10, y:2230}, {x:130, w:200, h:10, y:2320}, {x:-70, w:200, h:10, y:2420}, {x:130, w:200, h:10, y:2500}, {x:-50, w:200, h:10, y:2640}, {x:110, w:200, h:10, y:2770}, {x:-60, w:200, h:40, y:2880}, {x:120, w:200, h:20, y:3030}, {x:-100, w:200, h:90, y:3160}, {x:170, w:200, h:90, y:3160}, {x:-100, w:200, h:90, y:3250}, {x:170, w:200, h:90, y:3250}, {x:-90, w:200, h:90, y:3340}, {x:180, w:200, h:90, y:3340}, {x:-80, w:200, h:90, y:3430}, {x:180, w:200, h:90, y:3430}, {x:-80, w:200, h:90, y:3520}, {x:180, w:200, h:90, y:3520}, {x:-80, w:200, h:90, y:3610}, {x:180, w:200, h:90, y:3610}, {x:-80, w:200, h:90, y:3700}, {x:180, w:200, h:90, y:3700}, {x:140, w:200, h:40, y:3860}, {x:-50, w:200, h:10, y:3980}, {x:120, w:200, h:20, y:4090}, {x:-40, w:200, h:10, y:4200}, {x:50, w:70, h:10, y:4350}, {x:10, w:50, h:10, y:4470}, {x:-60, w:200, h:10, y:4620}, {x:140, w:200, h:20, y:4720}, {x:-50, w:200, h:20, y:4850}, {x:120, w:200, h:20, y:4990}, {x:-30, w:200, h:20, y:5100}, {x:100, w:200, h:10, y:5260}, {x:-90, w:200, h:10, y:5400}, {x:170, w:200, h:10, y:5400}, {x:140, w:200, h:40, y:5480}, {x:-50, w:200, h:40, y:5610}, {x:130, w:200, h:40, y:5760}, {x:-60, w:200, h:20, y:5900}, {x:120, w:200, h:20, y:6050}, {x:-60, w:200, h:20, y:6180}, {x:130, w:200, h:20, y:6330}, {x:-130, w:200, h:10, y:6340}, {x:-60, w:200, h:20, y:6470}, {x:110, w:200, h:20, y:6600}, {x:-70, w:200, h:90, y:6720}, {x:-40, w:200, h:90, y:6810}, {x:-20, w:200, h:90, y:6900}, {x:0, w:200, h:90, y:6990}, {x:190, w:200, h:40, y:7170}, {x:-30, w:200, h:40, y:7310}, {x:60, w:50, h:10, y:7450}, {x:30, w:50, h:10, y:7570}, {x:150, w:70, h:10, y:7730}, {x:100, w:70, h:10, y:7870}, {x:40, w:50, h:10, y:7990}, {x:130, w:200, h:20, y:8210}, {x:-50, w:200, h:90, y:8320}, {x:130, w:200, h:90, y:8500}, {x:-30, w:200, h:40, y:8700}, {x:-100, w:200, h:20, y:8880}, {x:160, w:200, h:20, y:8880}, {x:130, w:50, h:10, y:9030}, {x:-90, w:200, h:20, y:9160}, {x:110, w:200, h:20, y:9280}, {x:-60, w:200, h:20, y:9390}, {x:110, w:200, h:20, y:9510}, {x:-60, w:200, h:20, y:9610}, {x:110, w:200, h:20, y:9720}, {x:-60, w:200, h:20, y:9830}, {x:120, w:200, h:20, y:9930}, {x:-70, w:200, h:20, y:10040}, {x:100, w:200, h:20, y:10150}, {x:-60, w:200, h:20, y:10270}, {x:-150, w:200, h:20, y:10390}, {x:130, w:200, h:20, y:10390}, {x:-20, w:200, h:20, y:10540}, {x:110, w:200, h:90, y:10670}, {x:-50, w:200, h:20, y:10860}, {x:110, w:200, h:10, y:10980}, {x:-50, w:200, h:20, y:11090}, {x:90, w:200, h:20, y:11210}, {x:-50, w:200, h:20, y:11330}, {x:90, w:200, h:20, y:11440}, {x:-50, w:200, h:20, y:11560}, {x:90, w:200, h:20, y:11690}, {x:-50, w:200, h:10, y:11810}, {x:110, w:200, h:10, y:11930}, {x:60, w:50, h:10, y:12020}, {x:180, w:50, h:10, y:12120}, {x:-70, w:200, h:20, y:12250}, {x:90, w:200, h:40, y:12370}, {x:-40, w:200, h:40, y:12510}, {x:110, w:200, h:40, y:12650}, {x:-30, w:200, h:20, y:0x3200}, {x:110, w:200, h:20, y:12940}, {x:-40, w:200, h:20, y:13070}, {x:100, w:200, h:90, y:13190}, {x:-40, w:200, h:10, y:13380}, {x:90, w:200, h:10, y:13500}, {x:-20, w:200, h:10, y:13620}, {x:90, w:200, h:10, y:13740}, {x:-30, w:200, h:10, y:13860}, {x:70, w:200, h:90, y:13980}, {x:-30, w:200, h:90, y:14180}, {x:60, w:200, h:10, y:14380}, {x:-30, w:200, h:20, y:14490}, {x:110, w:200, h:40, y:14600}, {x:-50, w:200, h:40, y:14730}, {x:120, w:200, h:40, y:14860}, {x:-40, w:200, h:20, y:14980}, {x:70, w:200, h:90, y:15140}, {x:70, w:200, h:90, y:15230}, {x:-40, w:200, h:90, y:15400}, {x:120, w:200, h:40, y:15570}, {x:130, w:50, h:10, y:15660}, {x:-30, w:70, h:10, y:15750}, {x:150, w:70, h:10, y:15840}, {x:70, w:200, h:90, y:15960}, {x:-40, w:200, h:20, y:16140}, {x:110, w:200, h:40, y:16250}, {x:-40, w:200, h:20, y:16380}, {x:70, w:50, h:10, y:16500}, {x:120, w:70, h:10, y:16530}, {x:50, w:50, h:10, y:16570}, {x:-110, w:200, h:90, y:16660}, {x:150, w:200, h:90, y:16660}, {x:-100, w:200, h:90, y:16750}, {x:150, w:200, h:90, y:16750}, {x:-100, w:200, h:90, y:16840}, {x:150, w:200, h:90, y:16840}, {x:-130, w:200, h:90, y:17080}, {x:120, w:200, h:90, y:17080}, {x:-130, w:200, h:90, y:17170}, {x:120, w:200, h:90, y:17170}, {x:-100, w:200, h:90, y:17320}, {x:150, w:200, h:90, y:17320}, {x:-100, w:200, h:90, y:17410}, {x:150, w:200, h:90, y:17410}, {x:-60, w:200, h:90, y:17560}, {x:190, w:200, h:90, y:17560}, {x:-60, w:200, h:90, y:17650}, {x:190, w:200, h:90, y:17650}, {x:-90, w:200, h:90, y:17800}, {x:160, w:200, h:90, y:17800}, {x:-90, w:200, h:90, y:17890}, {x:160, w:200, h:90, y:17890}, {x:-20, w:68, h:8, y:18040}, {x:100, w:68, h:8, y:18040}, {x:220, w:68, h:8, y:18040}, {x:-90, w:200, h:90, y:18110}, {x:160, w:200, h:90, y:18110}, {x:-90, w:200, h:90, y:18200}, {x:160, w:200, h:90, y:18200}, {x:-110, w:200, h:90, y:18340}, {x:140, w:200, h:90, y:18340}, {x:-110, w:200, h:90, y:18430}, {x:140, w:200, h:90, y:18430}, {x:-110, w:200, h:90, y:18520}, {x:140, w:200, h:90, y:18520}, {x:-70, w:200, h:90, y:18680}, {x:180, w:200, h:90, y:18680}, {x:-70, w:200, h:90, y:18770}, {x:180, w:200, h:90, y:18770}, {x:-70, w:200, h:90, y:18860}, {x:180, w:200, h:90, y:18860}, {x:40, w:68, h:8, y:19000}, {x:150, w:68, h:8, y:19000}, {x:-30, w:68, h:8, y:19070}, {x:90, w:68, h:8, y:19070}, {x:220, w:68, h:8, y:19070}, {x:30, w:68, h:8, y:19150}, {x:150, w:68, h:8, y:19150}, {x:-30, w:68, h:8, y:19220}, {x:90, w:68, h:8, y:19220}, {x:220, w:68, h:8, y:19220}, {x:-130, w:200, h:90, y:19300}, {x:120, w:200, h:90, y:19300}, {x:-130, w:200, h:90, y:19390}, {x:120, w:200, h:90, y:19390}, {x:-70, w:200, h:90, y:19550}, {x:180, w:200, h:90, y:19550}, {x:-70, w:200, h:90, y:19640}, {x:180, w:200, h:90, y:19640}, {x:-100, w:200, h:90, y:19800}, {x:150, w:200, h:90, y:19800}, {x:-100, w:200, h:90, y:19890}, {x:150, w:200, h:90, y:19890}, {x:90, w:68, h:8, y:20080}, {x:-20, w:52, h:10, y:20290}, {x:100, w:200, h:10, y:20290}, {x:-110, w:200, h:10, y:20350}, {x:150, w:200, h:10, y:20350}, {x:-80, w:200, h:10, y:20420}, {x:190, w:200, h:10, y:20420}, {x:-30, w:200, h:10, y:20490}, {x:230, w:200, h:10, y:20490}, {x:-20, w:200, h:10, y:0x5050}, {x:40, w:50, h:10, y:20620}, {x:30, w:52, h:10, y:20690}, {x:160, w:52, h:10, y:20690}, {x:90, w:68, h:8, y:20760}, {x:-70, w:200, h:10, y:20830}, {x:200, w:200, h:10, y:20830}, {x:-30, w:200, h:10, y:20890}, {x:240, w:52, h:10, y:20890}, {x:0, w:200, h:10, y:20950}, {x:-40, w:200, h:10, y:21030}, {x:230, w:52, h:10, y:21030}, {x:-80, w:200, h:10, y:21100}, {x:190, w:68, h:8, y:21100}, {x:-140, w:200, h:10, y:21170}, {x:130, w:200, h:10, y:21170}, {x:100, w:52, h:10, y:21260}, {x:40, w:52, h:10, y:21320}, {x:160, w:52, h:10, y:21320}, {x:-20, w:52, h:10, y:21400}, {x:100, w:52, h:10, y:21400}, {x:220, w:52, h:10, y:21400}, {x:-110, w:200, h:90, y:21510}, {x:150, w:200, h:90, y:21510}, {x:-40, w:200, h:10, y:21830}, {x:150, w:200, h:10, y:21930}, {x:-40, w:200, h:10, y:22030}, {x:150, w:200, h:10, y:22150}, {x:-40, w:200, h:10, y:22250}, {x:50, w:50, h:10, y:22370}, {x:190, w:50, h:10, y:22370}, {x:20, w:51, h:10, y:22480}, {x:160, w:51, h:10, y:22480}, {x:50, w:50, h:10, y:22590}, {x:190, w:50, h:10, y:22590}, {x:-70, w:200, h:40, y:22690}, {x:120, w:200, h:40, y:22810}, {x:-60, w:200, h:40, y:22920}, {x:0, w:50, h:10, y:23070}, {x:140, w:50, h:10, y:23070}, {x:60, w:51, h:10, y:23160}, {x:220, w:51, h:10, y:23160}, {x:20, w:50, h:10, y:23240}, {x:170, w:50, h:10, y:23240}, {x:-70, w:200, h:40, y:23330}, {x:130, w:200, h:40, y:23440}, {x:-60, w:200, h:40, y:23540}, {x:50, w:66, h:8, y:23660}, {x:180, w:66, h:8, y:23660}, {x:0, w:67, h:8, y:23750}, {x:150, w:67, h:8, y:23750}, {x:50, w:66, h:8, y:23830}, {x:180, w:66, h:8, y:23830}, {x:-100, w:200, h:90, y:23910}, {x:160, w:200, h:90, y:23910}, {x:-10, w:52, h:10, y:24080}, {x:110, w:52, h:10, y:24080}, {x:210, w:52, h:10, y:24080}, {x:-100, w:200, h:90, y:24150}, {x:160, w:200, h:90, y:24150}, {x:0, w:66, h:8, y:24350}, {x:190, w:67, h:8, y:24430}, {x:-90, w:200, h:40, y:24590}]; Global.arr = arr; SoundManager.getInstance().stopSound("TitleBG", 1); gotoAndPlay("type1"); }; if ((((Global.gameType == 1)) || ((Global.gameType == 2)))){ if (Global.gameLevel == 1){ arr = [{x:-70, w:200, h:10, y:170}, {x:140, w:200, h:10, y:310}, {x:-70, w:200, h:10, y:420}, {x:130, w:200, h:10, y:550}, {x:-40, w:200, h:10, y:680}, {x:140, w:200, h:20, y:800}, {x:-60, w:200, h:10, y:920}, {x:-80, w:200, h:20, y:1050}, {x:180, w:200, h:20, y:1050}, {x:-50, w:200, h:10, y:1160}, {x:120, w:200, h:10, y:1270}, {x:-70, w:200, h:10, y:1380}, {x:-90, w:200, h:90, y:1450}, {x:170, w:200, h:90, y:1450}, {x:-90, w:200, h:90, y:1540}, {x:170, w:200, h:90, y:1540}, {x:-90, w:200, h:90, y:1630}, {x:170, w:200, h:90, y:1630}, {x:-90, w:200, h:90, y:1720}, {x:170, w:200, h:90, y:1720}, {x:-90, w:200, h:90, y:1810}, {x:170, w:200, h:90, y:1810}, {x:-90, w:200, h:90, y:1900}, {x:170, w:200, h:90, y:1900}, {x:-90, w:200, h:90, y:1990}, {x:170, w:200, h:90, y:1990}, {x:130, w:200, h:40, y:2130}, {x:-70, w:200, h:10, y:2230}, {x:130, w:200, h:10, y:2320}, {x:-70, w:200, h:10, y:2420}, {x:130, w:200, h:10, y:2500}, {x:-50, w:200, h:10, y:2640}, {x:110, w:200, h:10, y:2770}, {x:-60, w:200, h:40, y:2880}, {x:120, w:200, h:20, y:3030}, {x:-100, w:200, h:90, y:3160}, {x:170, w:200, h:90, y:3160}, {x:-100, w:200, h:90, y:3250}, {x:170, w:200, h:90, y:3250}, {x:-90, w:200, h:90, y:3340}, {x:180, w:200, h:90, y:3340}, {x:-80, w:200, h:90, y:3430}, {x:180, w:200, h:90, y:3430}, {x:-80, w:200, h:90, y:3520}, {x:180, w:200, h:90, y:3520}, {x:-80, w:200, h:90, y:3610}, {x:180, w:200, h:90, y:3610}, {x:-80, w:200, h:90, y:3700}, {x:180, w:200, h:90, y:3700}, {x:140, w:200, h:40, y:3860}, {x:-50, w:200, h:10, y:3980}, {x:120, w:200, h:20, y:4090}, {x:-10, w:300, h:8, y:4310}]; }; if (Global.gameLevel == 2){ arr = [{x:-130, w:200, h:90, y:240}, {x:120, w:200, h:90, y:240}, {x:-130, w:200, h:90, y:330}, {x:120, w:200, h:90, y:330}, {x:-100, w:200, h:90, y:480}, {x:150, w:200, h:90, y:480}, {x:-100, w:200, h:90, y:570}, {x:150, w:200, h:90, y:570}, {x:-60, w:200, h:90, y:720}, {x:190, w:200, h:90, y:720}, {x:-60, w:200, h:90, y:810}, {x:190, w:200, h:90, y:810}, {x:-90, w:200, h:90, y:960}, {x:160, w:200, h:90, y:960}, {x:-90, w:200, h:90, y:1050}, {x:160, w:200, h:90, y:1050}, {x:-20, w:68, h:8, y:1200}, {x:100, w:68, h:8, y:1200}, {x:220, w:68, h:8, y:1200}, {x:-90, w:200, h:90, y:1270}, {x:160, w:200, h:90, y:1270}, {x:-90, w:200, h:90, y:1360}, {x:160, w:200, h:90, y:1360}, {x:-110, w:200, h:90, y:1500}, {x:140, w:200, h:90, y:1500}, {x:-110, w:200, h:90, y:1590}, {x:140, w:200, h:90, y:1590}, {x:-110, w:200, h:90, y:1680}, {x:140, w:200, h:90, y:1680}, {x:-70, w:200, h:90, y:1840}, {x:180, w:200, h:90, y:1840}, {x:-70, w:200, h:90, y:1930}, {x:180, w:200, h:90, y:1930}, {x:-70, w:200, h:90, y:2020}, {x:180, w:200, h:90, y:2020}, {x:40, w:68, h:8, y:2160}, {x:150, w:68, h:8, y:2160}, {x:-30, w:68, h:8, y:2230}, {x:90, w:68, h:8, y:2230}, {x:220, w:68, h:8, y:2230}, {x:30, w:68, h:8, y:2310}, {x:150, w:68, h:8, y:2310}, {x:-30, w:68, h:8, y:2380}, {x:90, w:68, h:8, y:2380}, {x:220, w:68, h:8, y:2380}, {x:-130, w:200, h:90, y:2460}, {x:120, w:200, h:90, y:2460}, {x:-130, w:200, h:90, y:2550}, {x:120, w:200, h:90, y:2550}, {x:-70, w:200, h:90, y:2710}, {x:180, w:200, h:90, y:2710}, {x:-70, w:200, h:90, y:2800}, {x:180, w:200, h:90, y:2800}, {x:-100, w:200, h:90, y:2960}, {x:150, w:200, h:90, y:2960}, {x:-100, w:200, h:90, y:3050}, {x:150, w:200, h:90, y:3050}, {x:90, w:68, h:8, y:3240}, {x:0, w:300, h:8, y:3390}]; }; if (Global.gameLevel == 3){ arr = [{x:-20, w:52, h:10, y:210}, {x:100, w:200, h:10, y:210}, {x:-110, w:200, h:10, y:270}, {x:150, w:200, h:10, y:270}, {x:-80, w:200, h:10, y:340}, {x:190, w:200, h:10, y:340}, {x:-30, w:200, h:10, y:410}, {x:230, w:200, h:10, y:410}, {x:-20, w:200, h:10, y:480}, {x:40, w:50, h:10, y:540}, {x:30, w:52, h:10, y:610}, {x:160, w:52, h:10, y:610}, {x:90, w:68, h:8, y:680}, {x:-70, w:200, h:10, y:750}, {x:200, w:200, h:10, y:750}, {x:-30, w:200, h:10, y:810}, {x:240, w:52, h:10, y:810}, {x:0, w:200, h:10, y:870}, {x:-40, w:200, h:10, y:950}, {x:230, w:52, h:10, y:950}, {x:-80, w:200, h:10, y:1020}, {x:190, w:68, h:8, y:1020}, {x:-140, w:200, h:10, y:1090}, {x:130, w:200, h:10, y:1090}, {x:100, w:52, h:10, y:1180}, {x:40, w:52, h:10, y:1240}, {x:160, w:52, h:10, y:1240}, {x:-20, w:52, h:10, y:1320}, {x:100, w:52, h:10, y:1320}, {x:220, w:52, h:10, y:1320}, {x:-110, w:200, h:90, y:1430}, {x:150, w:200, h:90, y:1430}, {x:0, w:300, h:8, y:1630}]; }; if (Global.gameLevel == 4){ arr = [{x:-40, w:200, h:10, y:320}, {x:150, w:200, h:10, y:420}, {x:-40, w:200, h:10, y:520}, {x:150, w:200, h:10, y:640}, {x:-40, w:200, h:10, y:740}, {x:50, w:50, h:10, y:860}, {x:190, w:50, h:10, y:860}, {x:20, w:51, h:10, y:970}, {x:160, w:51, h:10, y:970}, {x:50, w:50, h:10, y:1080}, {x:190, w:50, h:10, y:1080}, {x:-70, w:200, h:40, y:1180}, {x:120, w:200, h:40, y:1300}, {x:-60, w:200, h:40, y:1410}, {x:0, w:50, h:10, y:1560}, {x:140, w:50, h:10, y:1560}, {x:60, w:51, h:10, y:1650}, {x:220, w:51, h:10, y:1650}, {x:20, w:50, h:10, y:1730}, {x:170, w:50, h:10, y:1730}, {x:-70, w:200, h:40, y:1820}, {x:130, w:200, h:40, y:1930}, {x:-60, w:200, h:40, y:2030}, {x:50, w:66, h:8, y:2150}, {x:180, w:66, h:8, y:2150}, {x:0, w:67, h:8, y:2240}, {x:150, w:67, h:8, y:2240}, {x:50, w:66, h:8, y:2320}, {x:180, w:66, h:8, y:2320}, {x:-100, w:200, h:90, y:2400}, {x:160, w:200, h:90, y:2400}, {x:-10, w:52, h:10, y:0x0A0A}, {x:110, w:52, h:10, y:0x0A0A}, {x:210, w:52, h:10, y:0x0A0A}, {x:-100, w:200, h:90, y:2640}, {x:160, w:200, h:90, y:2640}, {x:0, w:66, h:8, y:2840}, {x:190, w:67, h:8, y:2920}, {x:0, w:300, h:8, y:3040}]; }; if (Global.gameLevel == 5){ arr = [{x:-90, w:200, h:40, y:160}, {x:150, w:200, h:40, y:160}, {x:-110, w:200, h:40, y:240}, {x:130, w:200, h:40, y:240}, {x:-130, w:200, h:40, y:320}, {x:110, w:200, h:40, y:320}, {x:-150, w:200, h:40, y:400}, {x:90, w:200, h:40, y:400}, {x:-170, w:200, h:40, y:480}, {x:70, w:200, h:40, y:480}, {x:-140, w:200, h:40, y:560}, {x:100, w:200, h:40, y:560}, {x:-120, w:200, h:40, y:640}, {x:120, w:200, h:40, y:640}, {x:-100, w:200, h:40, y:720}, {x:140, w:200, h:40, y:720}, {x:70, w:200, h:10, y:840}, {x:-80, w:200, h:40, y:940}, {x:140, w:200, h:40, y:940}, {x:-60, w:200, h:40, y:1070}, {x:160, w:200, h:40, y:1070}, {x:-20, w:200, h:40, y:1190}, {x:200, w:200, h:40, y:1190}, {x:-50, w:200, h:40, y:1310}, {x:170, w:200, h:40, y:1310}, {x:-80, w:200, h:40, y:1430}, {x:140, w:200, h:40, y:1430}, {x:-70, w:200, h:40, y:1560}, {x:150, w:200, h:40, y:1560}, {x:0, w:300, h:8, y:1740}]; }; if (Global.gameLevel == 6){ arr = [{x:-100, w:200, h:10, y:180}, {x:100, w:200, h:10, y:300}, {x:-80, w:200, h:10, y:400}, {x:100, w:200, h:10, y:510}, {x:-60, w:200, h:10, y:620}, {x:0, w:200, h:10, y:730}, {x:-100, w:200, h:90, y:840}, {x:160, w:200, h:90, y:840}, {x:-100, w:200, h:90, y:930}, {x:160, w:200, h:90, y:930}, {x:150, w:200, h:40, y:1090}, {x:-50, w:200, h:40, y:1210}, {x:140, w:200, h:40, y:1330}, {x:-40, w:200, h:40, y:1440}, {x:140, w:200, h:40, y:1560}, {x:70, w:200, h:40, y:1700}, {x:-90, w:200, h:90, y:1820}, {x:160, w:200, h:90, y:1820}, {x:-90, w:200, h:90, y:1910}, {x:160, w:200, h:90, y:1910}, {x:0, w:300, h:8, y:2170}]; }; if (Global.gameLevel == 7){ arr = [{x:200, w:50, h:10, y:210}, {x:100, w:51, h:10, y:320}, {x:210, w:51, h:10, y:320}, {x:-10, w:52, h:10, y:410}, {x:100, w:52, h:10, y:410}, {x:210, w:52, h:10, y:410}, {x:-10, w:52, h:10, y:470}, {x:100, w:52, h:10, y:470}, {x:210, w:52, h:10, y:470}, {x:-10, w:52, h:10, y:530}, {x:100, w:52, h:10, y:530}, {x:210, w:52, h:10, y:530}, {x:-10, w:200, h:10, y:640}, {x:10, w:200, h:10, y:720}, {x:-10, w:67, h:8, y:840}, {x:40, w:66, h:8, y:930}, {x:160, w:66, h:8, y:930}, {x:210, w:67, h:8, y:1030}, {x:-10, w:52, h:10, y:1100}, {x:110, w:52, h:10, y:1100}, {x:220, w:52, h:10, y:1100}, {x:-10, w:52, h:10, y:1160}, {x:110, w:52, h:10, y:1160}, {x:220, w:52, h:10, y:1160}, {x:-10, w:52, h:10, y:1220}, {x:110, w:52, h:10, y:1220}, {x:220, w:52, h:10, y:1220}, {x:-20, w:68, h:8, y:1330}, {x:110, w:200, h:10, y:1330}, {x:70, w:200, h:10, y:1420}, {x:-90, w:200, h:40, y:1520}, {x:150, w:200, h:40, y:1520}, {x:-90, w:200, h:40, y:1560}, {x:150, w:200, h:40, y:1560}, {x:0, w:300, h:8, y:1730}]; }; if (Global.gameLevel == 8){ arr = [{x:-10, w:52, h:10, y:260}, {x:0, w:68, h:8, y:350}, {x:-100, w:200, h:10, y:470}, {x:-120, w:200, h:90, y:570}, {x:130, w:200, h:90, y:570}, {x:-120, w:200, h:90, y:660}, {x:130, w:200, h:90, y:660}, {x:-120, w:200, h:90, y:750}, {x:130, w:200, h:90, y:750}, {x:-120, w:200, h:90, y:840}, {x:130, w:200, h:90, y:840}, {x:-120, w:200, h:90, y:930}, {x:130, w:200, h:90, y:930}, {x:-120, w:200, h:90, y:1020}, {x:130, w:200, h:90, y:1020}, {x:210, w:52, h:10, y:1200}, {x:190, w:68, h:8, y:0x0500}, {x:150, w:200, h:10, y:1390}, {x:-90, w:200, h:90, y:1450}, {x:160, w:200, h:90, y:1450}, {x:-90, w:200, h:90, y:1540}, {x:160, w:200, h:90, y:1540}, {x:-90, w:200, h:90, y:1630}, {x:160, w:200, h:90, y:1630}, {x:-90, w:200, h:90, y:1720}, {x:160, w:200, h:90, y:1720}, {x:-90, w:200, h:90, y:1810}, {x:160, w:200, h:90, y:1810}, {x:-90, w:200, h:90, y:1900}, {x:160, w:200, h:90, y:1900}, {x:30, w:67, h:8, y:2120}, {x:180, w:67, h:8, y:2120}, {x:60, w:67, h:8, y:2210}, {x:210, w:67, h:8, y:2210}, {x:90, w:67, h:8, y:2300}, {x:230, w:67, h:8, y:2300}, {x:100, w:68, h:8, y:2420}, {x:100, w:68, h:8, y:2500}, {x:100, w:68, h:8, y:2580}, {x:50, w:66, h:8, y:2680}, {x:180, w:66, h:8, y:2680}, {x:30, w:66, h:8, y:2770}, {x:160, w:66, h:8, y:2770}, {x:10, w:66, h:8, y:2860}, {x:140, w:66, h:8, y:2860}, {x:-100, w:200, h:40, y:2950}, {x:160, w:200, h:40, y:2950}, {x:-100, w:200, h:40, y:3030}, {x:160, w:200, h:40, y:3030}, {x:-90, w:200, h:40, y:3150}, {x:150, w:200, h:40, y:3150}, {x:-90, w:200, h:40, y:3230}, {x:150, w:200, h:40, y:3230}, {x:-80, w:200, h:40, y:3370}, {x:140, w:200, h:40, y:3370}, {x:-80, w:200, h:40, y:3410}, {x:140, w:200, h:40, y:3410}, {x:0, w:300, h:8, y:3570}]; }; SoundManager.getInstance().stopSound("TitleBG", 1); Global.arr = arr; if (Global.gameType == 1){ gotoAndPlay("type1"); } else { gotoAndStop("type2"); }; }; stop(); } public function onFinishGameHSettle(_arg1:Sprite):void{ go_mc = new Go1(); go_mc.y = 200; go_mc.x = 825; gameh_mc.addChild(go_mc); go_mc.addEventListener("ready", imready); TweenMax.to(go_mc, 0.5, {x:275, ease:Back.easeIn, delay:0.5, onComplete:onFinishGoSettle, onCompleteParams:[go_mc]}); } public function goBackFromStages(_arg1:MouseEvent){ cleanupStages(); gotoAndStop("title"); } public function quitClicked(_arg1:Event):void{ quit(); } function frame61(){ btnURL.addEventListener(MouseEvent.CLICK, gotoURL); gameh_mc = new Sprite(); g_mc = new Game(); border_mc = new Border(); gmask_mc = new GameMask(); lives_mc = new Lives(); lives = 3; gameOver = false; pause_mc = new Paused(); playagainvisible = false; best_mc = new Best(); g_mc.addEventListener("collision", lostLife); g_mc.addEventListener("goal", goaled); g_mc.addEventListener("newscore", newscore); lives_mc.gotoAndStop(lives); lives_mc.x = 10; lives_mc.y = 10; addChild(gameh_mc); gameh_mc.addChild(gmask_mc); gameh_mc.addChild(border_mc); gameh_mc.addChild(lives_mc); gameh_mc.addChild(g_mc); border_mc.x = (gmask_mc.x = (g_mc.x = 150)); border_mc.y = (gmask_mc.y = (g_mc.y = 10)); g_mc.mask = gmask_mc; gameh_mc.addChild(best_mc); best_mc.x = 435; best_mc.y = 10; if (Global.gameType == 1){ best_mc.txtTitle.text = "YOUR BEST TIME"; btime = Global.hist[Global.gameLevel]; if (btime == 0){ best_mc.txtScore.text = "00:00:00"; } else { best_mc.txtScore.text = makeTimeString(Global.hist[Global.gameLevel]); }; } else { best_mc.txtScore.text = String(Global.hist[0]); }; g_mc.init(clone(Global.arr)); gameh_mc.x = -550; TweenMax.to(gameh_mc, 0.5, {x:0, ease:Back.easeIn, delay:0, onComplete:onFinishGameHSettle, onCompleteParams:[gameh_mc]}); kl = false; kr = false; this.stage.addEventListener(KeyboardEvent.KEY_DOWN, kd); this.stage.addEventListener(KeyboardEvent.KEY_UP, ku); this.stage.focus = this; addEventListener(Event.ENTER_FRAME, oef); stop(); } public function addZero(_arg1:int):String{ var _local2:String; _local2 = String(_arg1); if (_local2.length == 1){ return (("0" + _local2)); }; return (_local2); } public function goSubmitClicked(_arg1:Event):void{ if (Global.gameType == 0){ Global.score = Global.score; } else { Global.score = Global.score2; }; TweenMax.to(gameh_mc, 1, {x:-550, ease:Back.easeIn, delay:0, onComplete:onFinishGameHGoneSubmit, onCompleteParams:[gameh_mc]}); } public function newscore(_arg1:Event):void{ if (Global.gameType == 1){ best_mc.txtScore.text = makeTimeString(Global.hist[Global.gameLevel]); } else { best_mc.txtScore.text = String(Global.hist[0]); }; } public function cleanupStages(){ removeChild(btnh_mc); btnh_mc = null; } public function imready(_arg1:Event):void{ g_mc.startGame(); SoundManager.getInstance().playSound("GameLoop", 0, 0, 99999); TweenMax.to(go_mc, 1, {x:-275, ease:Back.easeOut, delay:0, onComplete:onFinishGoGone, onCompleteParams:[go_mc]}); } public function selectLevelRollOver(_arg1:MouseEvent){ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); if (Global.gameType == 1){ _local2.clouds2.play(); _local2.plane1.play(); } else { _local2.clouds3.play(); _local2.plane1.play(); _local2.plane2.play(); }; } public function gotoURL(_arg1:Event){ navigateToURL(new URLRequest("http://www.quickflashgames.com/"), "_blank"); } public function goaled(_arg1:Event):void{ g_mc.celebrate(); gameOver_mc = new GameOverGoal(); gameh_mc.addChild(gameOver_mc); gameOver_mc.x = 825; gameOver_mc.y = 200; TweenMax.to(gameOver_mc, 1, {x:275, ease:Back.easeOut, delay:0.5}); gameOver_mc.addEventListener("playagain", playagainClicked); gameOver_mc.addEventListener("quit", quitClicked); gameOver_mc.addEventListener("submitscore", goSubmitClicked); playagainvisible = true; SoundManager.getInstance().stopSound("GameLoop", 1); } public function onFinishGameHGoneSubmit(_arg1:Sprite):void{ cleanup(); removeChild(gameh_mc); gameh_mc = null; if (Global.gameType == 0){ gotoAndPlay("sendScores0"); } else { gotoAndPlay(("sendScores" + String(Global.gameLevel))); }; } public function goBackFromStages1(_arg1:MouseEvent){ gotoAndStop("title"); } public function selectLevelClicked(_arg1:MouseEvent){ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); Global.gameLevel = _local2.num; if (Global.gameType == 1){ cleanupStages(); gotoAndPlay("arrays"); } else { cleanupStages(); gotoAndPlay("arrays"); }; } public function onFinishGameHGone(_arg1:Sprite):void{ cleanup(); removeChild(gameh_mc); gameh_mc = null; gotoAndPlay((currentFrame - 1)); } function frame86(){ o = {n:[3, 3, 0, 4, 5, 9, 2, 5, 4, 8, 11, 0, 6, 12, 6, 7], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID}); } function frame207(){ gotoAndStop("title"); } function frame208(){ o = {n:[8, 15, 5, 10, 9, 0, 4, 10, 3, 13, 0, 12, 13, 9, 15, 15], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID, score:Global.score}); } function frame98(){ o = {n:[3, 3, 0, 4, 5, 9, 2, 5, 4, 8, 11, 0, 6, 12, 6, 7], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID, score:Global.score}); } function frame71(){ stop(); } public function oef(_arg1:Event):void{ if (this.stage.focus != this){ this.stage.focus = this; }; g_mc.setControls(kl, kr); } function frame97(){ gotoAndStop("title"); } function frame218(){ gotoAndStop("title"); } function frame219(){ o = {n:[13, 4, 10, 12, 8, 14, 13, 11, 8, 7, 3, 0, 10, 0, 12, 1], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID}); } public function clone(_arg1:Object){ var _local2:ByteArray; _local2 = new ByteArray(); _local2.writeObject(_arg1); _local2.position = 0; return (_local2.readObject()); } public function ku(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.LEFT)) || ((_arg1.keyCode == 65)))){ kl = false; }; if ((((_arg1.keyCode == Keyboard.RIGHT)) || ((_arg1.keyCode == 68)))){ kr = false; }; } function frame109(){ o = {n:[15, 15, 11, 13, 5, 7, 14, 12, 1, 6, 7, 13, 8, 10, 2, 0], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID}); } public function kd(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.LEFT)) || ((_arg1.keyCode == 65)))){ kl = true; }; if ((((_arg1.keyCode == Keyboard.RIGHT)) || ((_arg1.keyCode == 68)))){ kr = true; }; if ((((_arg1.keyCode == Keyboard.SPACE)) || ((_arg1.keyCode == 80)))){ pauseunpause(); if ((((_arg1.keyCode == Keyboard.SPACE)) && ((playagainvisible == true)))){ replay(); }; }; } function frame108(){ gotoAndStop("title"); } function frame229(){ gotoAndStop("title"); } function frame230(){ o = {n:[13, 4, 10, 12, 8, 14, 13, 11, 8, 7, 3, 0, 10, 0, 12, 1], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID, score:Global.score}); } public function onFinishGoGone(_arg1:MovieClip):void{ gameh_mc.removeChild(go_mc); go_mc = null; } function frame119(){ gotoAndStop("title"); } function frame240(){ gotoAndStop("title"); } function frame120(){ o = {n:[15, 15, 11, 13, 5, 7, 14, 12, 1, 6, 7, 13, 8, 10, 2, 0], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID, score:Global.score}); } function frame241(){ o = {n:[12, 13, 15, 0, 5, 3, 7, 11, 10, 6, 4, 8, 4, 4, 0, 10], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID}); } function frame130(){ gotoAndStop("title"); } function frame131(){ o = {n:[1, 8, 2, 7, 0, 6, 12, 3, 4, 14, 3, 12, 2, 10, 7, 5], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID}); } public function onFinishGoSettle(_arg1:MovieClip):void{ go_mc.init(); } function frame251(){ gotoAndStop("title"); } function frame252(){ o = {n:[12, 13, 15, 0, 5, 3, 7, 11, 10, 6, 4, 8, 4, 4, 0, 10], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID, score:Global.score}); } public function makeTimeString(_arg1:int):String{ var _local2:int; var _local3:int; var _local4:int; _local2 = 0; _local3 = Math.floor((_arg1 / 1000)); _local4 = ((_arg1 - (_local3 * 1000)) / 10); if (_local3 >= 60){ _local2 = Math.floor((_local3 / 60)); _local3 = (_local3 - (_local2 * 60)); }; return (((((addZero(_local2) + ":") + addZero(_local3)) + ":") + addZero(_local4))); } public function playagainClicked(_arg1:Event):void{ replay(); } function frame141(){ gotoAndStop("title"); } function frame142(){ o = {n:[1, 8, 2, 7, 0, 6, 12, 3, 4, 14, 3, 12, 2, 10, 7, 5], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID, score:Global.score}); } public function replay(){ TweenMax.to(gameh_mc, 1, {x:-550, ease:Back.easeIn, delay:0, onComplete:onFinishGameHGone, onCompleteParams:[gameh_mc]}); } function frame262(){ gotoAndStop("title"); } function frame263(){ o = {n:[14, 14, 4, 13, 9, 5, 7, 14, 9, 7, 12, 3, 10, 3, 12, 6], f:function (_arg1:Number, _arg2:String):String{ if (_arg2.length == 16){ return (_arg2); }; return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16)))); }}; boardID = o.f(0, ""); MochiScores.showLeaderboard({boardID:boardID}); } } }//package paper_fla
Section 17
//sound_mc_36 (paper_fla.sound_mc_36) package paper_fla { import flash.display.*; public dynamic class sound_mc_36 extends MovieClip { public function sound_mc_36(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package paper_fla
Section 18
//STARTBUTTONTITLE_41 (paper_fla.STARTBUTTONTITLE_41) package paper_fla { import flash.display.*; public dynamic class STARTBUTTONTITLE_41 extends MovieClip { public function STARTBUTTONTITLE_41(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package paper_fla
Section 19
//Timeline_35 (paper_fla.Timeline_35) package paper_fla { import flash.display.*; public dynamic class Timeline_35 extends MovieClip { public function Timeline_35(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package paper_fla
Section 20
//Timeline_37 (paper_fla.Timeline_37) package paper_fla { import flash.media.*; import flash.display.*; import flash.events.*; import flash.filters.*; import flash.text.*; import flash.net.*; import flash.utils.*; import flash.system.*; import flash.geom.*; import flash.errors.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.ui.*; import flash.xml.*; public dynamic class Timeline_37 extends MovieClip { public var btnInstructions:SimpleButton; public var btn3:MovieClip; public var btn2:MovieClip; public var btn1:MovieClip; public var scores_mc:MovieClip; public var btnURL:BtnQFG; public var btnScores:SimpleButton; public function Timeline_37(){ addFrameScript(0, frame1); } public function goIntrcut(_arg1:MouseEvent){ (this.parent as MovieClip).gotoAndStop("instructions"); } public function gotoURL(_arg1:Event){ navigateToURL(new URLRequest("http://www.quickflashgames.com/"), "_blank"); } public function clicked(_arg1:MouseEvent):void{ var _local2:MovieClip; var _local3:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); _local3 = (this.parent as MovieClip); if (_local2 == btn1){ Global.gameType = 0; Global.gameLevel = 0; }; if (_local2 == btn2){ Global.gameType = 1; }; if (_local2 == btn3){ Global.gameType = 2; }; _local3.gotoAndPlay("games"); } function frame1(){ btnURL.addEventListener(MouseEvent.CLICK, gotoURL); btnScores.addEventListener(MouseEvent.CLICK, showhidescores); btn1.title.gotoAndStop(1); btn2.title.gotoAndStop(2); btn3.title.gotoAndStop(3); btn1.plane2.visible = (btn2.plane2.visible = false); btn1.buttonMode = (btn2.buttonMode = (btn3.buttonMode = true)); btn1.addEventListener(MouseEvent.ROLL_OVER, rolledOver); btn2.addEventListener(MouseEvent.ROLL_OVER, rolledOver); btn3.addEventListener(MouseEvent.ROLL_OVER, rolledOver); btn1.addEventListener(MouseEvent.ROLL_OUT, rolledOut); btn2.addEventListener(MouseEvent.ROLL_OUT, rolledOut); btn3.addEventListener(MouseEvent.ROLL_OUT, rolledOut); btn1.addEventListener(MouseEvent.CLICK, clicked); btn2.addEventListener(MouseEvent.CLICK, clicked); btn3.addEventListener(MouseEvent.CLICK, clicked); btn1.clouds2.visible = (btn1.clouds3.visible = false); btn2.clouds1.visible = (btn2.clouds3.visible = false); btn3.clouds1.visible = (btn3.clouds2.visible = false); btn1.clouds1.stop(); btn2.clouds2.stop(); btn3.clouds3.stop(); btn1.plane1.stop(); btn2.plane1.stop(); btn3.plane1.stop(); btn3.plane2.gotoAndStop(5); scores_mc.visible = false; btnInstructions.addEventListener(MouseEvent.CLICK, goIntrcut); } public function showhidescores(_arg1:Event){ scores_mc.visible = !(scores_mc.visible); } public function rolledOver(_arg1:MouseEvent):void{ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); _local2.clouds1.play(); _local2.clouds2.play(); _local2.clouds3.play(); _local2.plane1.play(); _local2.plane2.play(); } public function rolledOut(_arg1:MouseEvent):void{ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); _local2.clouds1.stop(); _local2.clouds2.stop(); _local2.clouds3.stop(); _local2.plane1.stop(); _local2.plane2.stop(); } } }//package paper_fla
Section 21
//Timeline_40 (paper_fla.Timeline_40) package paper_fla { import flash.display.*; public dynamic class Timeline_40 extends MovieClip { public var clouds1:MovieClip; public var clouds2:MovieClip; public var clouds3:MovieClip; public var plane2:MovieClip; public var title:MovieClip; public var plane1:MovieClip; public var outline:MovieClip; } }//package paper_fla
Section 22
//Timeline_42 (paper_fla.Timeline_42) package paper_fla { import flash.media.*; import flash.display.*; import flash.events.*; import flash.filters.*; import flash.text.*; import flash.net.*; import flash.utils.*; import flash.system.*; import flash.geom.*; import flash.errors.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.ui.*; import flash.xml.*; public dynamic class Timeline_42 extends MovieClip { public var tmp:LevelNumber; public var i; public var btn_mc:MovieClip; public var num:int; public var btnEndless:SimpleButton; public function Timeline_42(){ addFrameScript(0, frame1); } public function clickedE(_arg1:MouseEvent):void{ (this.parent.parent as MovieClip).gotoAndPlay("showScores0"); } public function clicked(_arg1:MouseEvent):void{ var _local2:MovieClip; var _local3:int; _local2 = (_arg1.currentTarget as MovieClip); _local3 = _local2.num; (this.parent.parent as MovieClip).gotoAndPlay(("showScores" + String(_local3))); } function frame1(){ tmp.visible = false; i = 0; while (i < 8) { btn_mc = new LevelNumber(); num = (i + 1); addChild(btn_mc); btn_mc.y = tmp.y; btn_mc.x = (tmp.x + (i * (tmp.width + 5))); btn_mc.txtNum.text = num; btn_mc.num = num; btn_mc.addEventListener(MouseEvent.CLICK, clicked); btn_mc.addEventListener(MouseEvent.ROLL_OVER, rolledover); btn_mc.addEventListener(MouseEvent.ROLL_OUT, rolledout); btn_mc.buttonMode = true; btn_mc.txtNum.mouseEnabled = false; i++; }; btnEndless.addEventListener(MouseEvent.CLICK, clickedE); } public function rolledover(_arg1:MouseEvent):void{ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); _local2.gotoAndStop(2); } public function rolledout(_arg1:MouseEvent):void{ var _local2:MovieClip; _local2 = (_arg1.currentTarget as MovieClip); _local2.gotoAndStop(1); } } }//package paper_fla
Section 23
//Timeline_45 (paper_fla.Timeline_45) package paper_fla { import com.quickflashgames.sound.*; import flash.media.*; import flash.display.*; import flash.events.*; import gs.*; import flash.filters.*; import gs.easing.*; import flash.text.*; import flash.net.*; import flash.utils.*; import flash.system.*; import flash.geom.*; import flash.errors.*; import adobe.utils.*; import flash.accessibility.*; import flash.external.*; import flash.printing.*; import flash.ui.*; import flash.xml.*; public dynamic class Timeline_45 extends MovieClip { public var kl2:Boolean; public var decided:Boolean; public var lives:int; public var lives2:int; public var gmask2_mc:MovieClip; public var arr:Array; public var g_mc:MovieClip; public var kr:Boolean; public var pause_mc:Paused; public var kl:Boolean; public var border_mc:MovieClip; public var gmask_mc:MovieClip; public var go_mc:Go1; public var gameOver_mc:MovieClip; public var playagainvisible:Boolean; public var g2_mc:MovieClip; public var kr2:Boolean; public var gameh_mc:Sprite; public var lives_mc:MovieClip; public var gameOver; public var border2_mc:MovieClip; public var arr2:Array; public function Timeline_45(){ addFrameScript(0, frame1); } public function imready(_arg1:Event):void{ g_mc.startGame(); g2_mc.startGame(); SoundManager.getInstance().playSound("GameLoop", 0, 0, 99999); TweenMax.to(go_mc, 1, {x:-275, ease:Back.easeOut, delay:0, onComplete:onFinishGoGone, onCompleteParams:[go_mc]}); } public function onFinishGameHGone(_arg1:Sprite):void{ cleanup(); removeChild(gameh_mc); gameh_mc = null; (this.parent as MovieClip).gotoAndPlay("arrays"); } public function quitClicked(_arg1:Event):void{ quit(); } public function showGameOver():void{ gameOver_mc = new GameOver(); if (Global.gameType == 1){ gameOver_mc.gotoAndStop(2); }; gameh_mc.addChild(gameOver_mc); gameOver_mc.x = 825; gameOver_mc.y = 200; TweenMax.to(gameOver_mc, 1, {x:275, ease:Back.easeOut, delay:0.5}); gameOver_mc.addEventListener("playagain", playagainClicked); gameOver_mc.addEventListener("quit", quitClicked); playagainvisible = true; } public function onFinishGameHGoneQuit(_arg1:Sprite):void{ cleanup(); removeChild(gameh_mc); gameh_mc = null; (this.parent as MovieClip).gotoAndStop("title"); SoundManager.getInstance().playSound("TitleBG", 0, 0, 99999); } public function timerHandler(_arg1:TimerEvent):void{ g_mc.resumeGame(); } public function oef(_arg1:Event):void{ if (this.stage.focus != this){ this.stage.focus = this; }; g_mc.setControls(kl, kr); g2_mc.setControls(kl2, kr2); } public function pauseunpause(){ if (gameOver == false){ if (g_mc.paused == false){ if (g_mc.pauseGame()){ if (!gameh_mc.contains(pause_mc)){ gameh_mc.addChild(pause_mc); }; pause_mc.x = 825; pause_mc.y = 200; TweenMax.to(pause_mc, 0.5, {x:275, ease:Back.easeOut, delay:0}); }; } else { if (g_mc.unpauseGame()){ TweenMax.to(pause_mc, 0.5, {x:-275, ease:Back.easeOut, delay:0, onComplete:onFinishHidePause, onCompleteParams:[pause_mc]}); }; }; }; } public function ku(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 65){ kl = false; }; if (_arg1.keyCode == Keyboard.LEFT){ kl2 = false; }; if (_arg1.keyCode == 68){ kr = false; }; if (_arg1.keyCode == Keyboard.RIGHT){ kr2 = false; }; } function frame1(){ this.focusRect = false; decided = false; gameh_mc = new Sprite(); g_mc = new Game(); g2_mc = new Game(); g_mc.player = 1; g2_mc.player = 2; border_mc = new Border(); border2_mc = new Border(); gmask_mc = new GameMask(); gmask2_mc = new GameMask(); lives_mc = new Lives(); lives = 3000; lives2 = 3000; gameOver = false; pause_mc = new Paused(); playagainvisible = false; g_mc.addEventListener("collision", lostLife); g_mc.addEventListener("goal", goaled); g2_mc.addEventListener("collision", lostLife); g2_mc.addEventListener("goal", goaled); lives_mc.gotoAndStop(lives); lives_mc.x = 10; lives_mc.y = 10; addChild(gameh_mc); gameh_mc.addChild(gmask_mc); gameh_mc.addChild(border_mc); gameh_mc.addChild(gmask2_mc); gameh_mc.addChild(border2_mc); gameh_mc.addChild(lives_mc); gameh_mc.addChild(g_mc); gameh_mc.addChild(g2_mc); border_mc.x = (gmask_mc.x = (g_mc.x = 20)); border_mc.y = (gmask_mc.y = (g_mc.y = 10)); border2_mc.x = (gmask2_mc.x = (g2_mc.x = 280)); border2_mc.y = (gmask2_mc.y = (g2_mc.y = 10)); g_mc.mask = gmask_mc; g2_mc.mask = gmask2_mc; arr = clone(Global.arr); arr2 = (clone(arr) as Array); g_mc.init(arr); g2_mc.init(arr2); gameh_mc.x = -550; TweenMax.to(gameh_mc, 0.5, {x:0, ease:Back.easeIn, delay:0, onComplete:onFinishGameHSettle, onCompleteParams:[gameh_mc]}); kl = false; kr = false; kl2 = false; kr2 = false; this.stage.addEventListener(KeyboardEvent.KEY_DOWN, kd); this.stage.addEventListener(KeyboardEvent.KEY_UP, ku); this.stage.focus = this; addEventListener(Event.ENTER_FRAME, oef); stop(); } public function lostLife(_arg1:Event):void{ var _local2:Timer; lives--; if (lives > 0){ lives_mc.gotoAndStop(lives); _local2 = new Timer(2000, 1); _local2.start(); if (_arg1.currentTarget == g_mc){ _local2.addEventListener(TimerEvent.TIMER, timerHandler); }; if (_arg1.currentTarget == g2_mc){ _local2.addEventListener(TimerEvent.TIMER, timerHandler2); }; } else { gameOver = true; gameh_mc.removeChild(lives_mc); showGameOver(); SoundManager.getInstance().stopSound("GameLoop", 1); }; } public function kd(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 65){ kl = true; }; if (_arg1.keyCode == Keyboard.LEFT){ kl2 = true; }; if (_arg1.keyCode == 68){ kr = true; }; if (_arg1.keyCode == Keyboard.RIGHT){ kr2 = true; }; if ((((_arg1.keyCode == Keyboard.SPACE)) || ((_arg1.keyCode == 80)))){ if ((((_arg1.keyCode == Keyboard.SPACE)) && ((playagainvisible == true)))){ replay(); }; }; } public function quit(){ TweenMax.to(gameh_mc, 1, {x:-550, ease:Back.easeIn, delay:0, onComplete:onFinishGameHGoneQuit, onCompleteParams:[gameh_mc]}); } public function clone(_arg1:Object){ var _local2:ByteArray; _local2 = new ByteArray(); _local2.writeObject(_arg1); _local2.position = 0; return (_local2.readObject()); } public function onFinishGoGone(_arg1:MovieClip):void{ gameh_mc.removeChild(go_mc); go_mc = null; } public function timerHandler2(_arg1:TimerEvent):void{ g2_mc.resumeGame(); } public function cleanup(){ playagainvisible = false; this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, kd); this.stage.removeEventListener(KeyboardEvent.KEY_UP, ku); removeEventListener(Event.ENTER_FRAME, oef); } public function onFinishGoSettle(_arg1:MovieClip):void{ go_mc.init(); } public function onFinishGameHSettle(_arg1:Sprite):void{ go_mc = new Go1(); go_mc.instructs_mc.gotoAndStop(2); go_mc.y = 200; go_mc.x = 825; gameh_mc.addChild(go_mc); go_mc.addEventListener("ready", imready); TweenMax.to(go_mc, 0.5, {x:275, ease:Back.easeIn, delay:0.5, onComplete:onFinishGoSettle, onCompleteParams:[go_mc]}); } public function onFinishHidePause(_arg1:MovieClip):void{ if (gameh_mc.contains(pause_mc)){ gameh_mc.removeChild(pause_mc); }; } public function replay(){ TweenMax.to(gameh_mc, 1, {x:-550, ease:Back.easeIn, delay:0, onComplete:onFinishGameHGone, onCompleteParams:[gameh_mc]}); } public function goaled(_arg1:Event):void{ var _local2:Game; if (decided == false){ decided = true; _local2 = (_arg1.target as Game); _local2.celebrate(); gameOver_mc = new Goal2(); if (_local2.player == 1){ gameOver_mc.txtP1.text = "WINNER!"; gameOver_mc.txtP2.text = "LOSER!"; } else { gameOver_mc.txtP2.text = "WINNER!"; gameOver_mc.txtP1.text = "LOSER!"; }; gameh_mc.addChild(gameOver_mc); gameOver_mc.x = 825; gameOver_mc.y = 200; TweenMax.to(gameOver_mc, 1, {x:275, ease:Back.easeOut, delay:0.5}); gameOver_mc.addEventListener("playagain", playagainClicked); gameOver_mc.addEventListener("quit", quitClicked); playagainvisible = true; SoundManager.getInstance().stopSound("GameLoop", 1); }; } public function playagainClicked(_arg1:Event):void{ replay(); } } }//package paper_fla
Section 24
//title_bg_1 (paper_fla.title_bg_1) package paper_fla { import flash.display.*; import flash.events.*; public dynamic class title_bg_1 extends MovieClip { public var distance:int; public var mesh:MovieClip; public function title_bg_1(){ addFrameScript(0, frame1); } public function oef(_arg1:Event):void{ distance = (distance + 2); mesh.y = -((distance % 1600)); } function frame1(){ distance = 0; addEventListener(Event.ENTER_FRAME, oef); } } }//package paper_fla
Section 25
//Best (Best) package { import flash.display.*; import flash.text.*; public dynamic class Best extends MovieClip { public var txtScore:TextField; public var txtTitle:TextField; } }//package
Section 26
//Border (Border) package { import flash.display.*; public dynamic class Border extends MovieClip { } }//package
Section 27
//BtnQFG (BtnQFG) package { import flash.display.*; public dynamic class BtnQFG extends SimpleButton { } }//package
Section 28
//Distance (Distance) package { import flash.display.*; import flash.text.*; public dynamic class Distance extends MovieClip { public var txtD:TextField; } }//package
Section 29
//FinishSound (FinishSound) package { import flash.media.*; public dynamic class FinishSound extends Sound { } }//package
Section 30
//Game (Game) package { import com.quickflashgames.sound.*; import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; public class Game extends MovieClip { private var arrO:Array; private var invincible:Boolean;// = false private var plane_mc:MovieClip; private var particles_mc:Particles; private var timeSince:int;// = 0 private var lastTime:int;// = 0 private var finished:Boolean;// = false private var tiles_mc:Bitmap; private var hider_mc:MovieClip; private var h_mc:Sprite; private var oPointer:int;// = -1 private var bmpData:BitmapData; public var player:int;// = 1 private var tilet_mc:MovieClip; public var goaled:Boolean;// = false private var lastChange2;// = 1 public var paused:Boolean;// = false private var ph_mc:MovieClip; private var d_mc:MovieClip; private var kr:Boolean; private var kl:Boolean; private var gameOn:Boolean;// = false private var arrObst:Array; public var sky_mc:MovieClip; private var level:int;// = 0 private var lastChange;// = 10 private var distance:int; public function Game():void{ gameOn = false; paused = false; oPointer = -1; lastChange = 10; lastChange2 = 1; level = 0; invincible = false; finished = false; timeSince = 0; lastTime = 0; goaled = false; player = 1; super(); } public function setInvincible(_arg1:int){ var _local2:Timer; invincible = true; _local2 = new Timer(1000, 1); _local2.start(); _local2.addEventListener(TimerEvent.TIMER, timerHandler); plane_mc.alpha = 0.5; } private function updateTiles():void{ var _local1:int; _local1 = (distance % 720); tiles_mc.y = -(_local1); } function timerHandler(_arg1:TimerEvent):void{ invincible = false; plane_mc.alpha = 1; } private function resumeGame2(_arg1:Event):void{ removeChild(particles_mc); particles_mc.nullIt(); particles_mc = null; addEventListener(Event.ENTER_FRAME, oef); gameOn = true; plane_mc.visible = true; setInvincible(1000); } public function unpauseGame():Boolean{ if ((((gameOn == false)) && ((paused == true)))){ lastTime = getTimer(); addEventListener(Event.ENTER_FRAME, oef); gameOn = true; paused = false; return (true); }; return (false); } private function updateOs():void{ var _local1:int; var _local2:MovieClip; var _local3:*; var _local4:MovieClip; do { } while (addObject((oPointer + 1))); _local1 = -1; _local2 = null; _local3 = 0; while (_local3 < arrObst.length) { _local4 = arrObst[_local3]; arrObst[_local3].y = (_local4.yy - distance); if ((((_local4.width == 50)) || ((_local4.width == 66)))){ _local4.x = (_local4.x + 3); if (_local4.x > 250){ _local4.x = -(_local4.width); }; }; if ((((_local4.width == 51)) || ((_local4.width == 67)))){ _local4.x = (_local4.x - 3); if (_local4.x < -(_local4.width)){ _local4.x = (0xFF + _local4.width); }; }; if ((_local4.yy + _local4.h) < distance){ _local1 = _local3; _local2 = _local4; }; _local3++; }; if (_local2 != null){ h_mc.removeChild((arrObst[_local1] as MovieClip)); arrObst.splice(_local1, 1); }; } public function updateTimeString(){ if (Global.gameType != 0){ d_mc.txtD.text = makeTimeString(timeSince); }; } private function addZero(_arg1:int):String{ var _local2:String; _local2 = String(_arg1); if (_local2.length == 1){ return (("0" + _local2)); }; return (_local2); } private function movePlane(_arg1:int):void{ if (_arg1 == -1){ if (plane_mc.currentFrame > 1){ plane_mc.gotoAndStop((plane_mc.currentFrame - 1)); }; }; if (_arg1 == 1){ if (plane_mc.currentFrame < plane_mc.totalFrames){ plane_mc.gotoAndStop((plane_mc.currentFrame + 1)); }; }; } public function init(_arg1:Array):void{ var _local2:uint; var _local3:int; var _local4:ColorTransform; arrO = _arg1; tilet_mc = new TILE(); tilet_mc.gotoAndStop(1); if (Global.gameType == 1){ tilet_mc.gotoAndStop(2); }; if (Global.gameType == 2){ if (player == 1){ tilet_mc.gotoAndStop(7); } else { tilet_mc.gotoAndStop(7); }; }; bmpData = new BitmapData(250, 1440, true, 0); bmpData.draw(tilet_mc); tiles_mc = new Bitmap(bmpData); addChild(tiles_mc); h_mc = new Sprite(); addChild(h_mc); plane_mc = new Plane(); addChild(plane_mc); plane_mc.gotoAndStop(plane_mc.totalFrames); ph_mc = new PlaneHitter(); addChild(ph_mc); ph_mc.alpha = 0; if (player == 2){ _local2 = 0xFF0000; _local3 = 0; _local4 = plane_mc.transform.colorTransform; _local4.color = 2298413056; plane_mc.transform.colorTransform = new ColorTransform(1, 0.7, 0.7, 1, 1, 0, 0, 0); }; plane_mc.x = 100; plane_mc.y = 70; ph_mc.x = 100; ph_mc.y = 70; tiles_mc.x = 0; tiles_mc.y = 0; if ((((Global.gameLevel == 6)) || ((Global.gameLevel == 7)))){ hider_mc = new Hider(); addChild(hider_mc); hider_mc.x = plane_mc.x; hider_mc.y = (plane_mc.y + 60); }; d_mc = new Distance(); addChild(d_mc); if (Global.gameType == 0){ d_mc.txtD.text = "0"; } else { d_mc.txtD.text = "00:00:00"; }; d_mc.x = 125; arrObst = new Array(); updateOs(); } public function saveScore(){ Global.score2 = timeSince; } public function pauseGame():Boolean{ if ((((gameOn == true)) && ((goaled == false)))){ removeEventListener(Event.ENTER_FRAME, oef); gameOn = false; paused = true; return (true); }; return (false); } public function updateTime(){ timeSince = (timeSince + (getTimer() - lastTime)); lastTime = getTimer(); } public function setControls(_arg1:Boolean, _arg2:Boolean):void{ kr = _arg2; kl = _arg1; } private function addObject(_arg1:int):Boolean{ var _local2:Boolean; var _local3:Object; var _local4:MovieClip; var _local5:int; var _local6:int; var _local7:int; var _local8:*; var _local9:Object; if (finished == true){ return (false); }; _local2 = false; _local3 = arrO[_arg1]; if (_local3.h == 8){ _local3.h = 10; }; if (_local3.y <= (distance + 380)){ if (_local3.w > 240){ _local4 = new Goal(); _local3.x = 0; _local3.w = _local4.width; _local3.h = _local4.height; } else { _local4 = new Obst(); }; _local4.width = _local3.w; _local4.height = _local3.h; _local4.x = _local3.x; _local4.yy = _local3.y; _local4.h = _local3.h; _local4.y = (_local4.yy - distance); _local4.cacheAsBitmap = true; _local2 = true; h_mc.addChild(_local4); oPointer = _arg1; arrObst.push(_local4); if ((((_arg1 == (arrO.length - 1))) && ((Global.gameType == 0)))){ _arg1 = -1; _local5 = arrO[(arrO.length - 1)].y; _local6 = (arrO[(arrO.length - 1)].y + 100); _local7 = (_local6 - arrO[0].y); _local8 = 0; while (_local8 < arrO.length) { _local9 = arrO[_local8]; arrO[_local8].y = (_local9.y + _local7); _local8++; }; oPointer = _arg1; }; if ((((_arg1 == (arrO.length - 1))) && (!((Global.gameType == 0))))){ finished = true; }; }; return (_local2); } private function oef(_arg1:Event):void{ var _local2:*; var _local3:Number; var _local4:Point; var _local5:*; var _local6:int; var _local7:MovieClip; var _local8:Boolean; var _local9:Boolean; var _local10:Particles; var _local11:ColorTransform; var _local12:int; var _local13:int; if (goaled == false){ updateTime(); }; if ((((kr == true)) || ((kl == true)))){ if (lastChange > lastChange2){ lastChange = 0; if (kr == true){ movePlane(1); }; if (kl == true){ movePlane(-1); }; }; }; _local2 = (plane_mc.currentFrame - 6); plane_mc.x = (plane_mc.x + _local2); if (plane_mc.x <= 15){ plane_mc.x = 15; if (plane_mc.currentFrame < 6){ if (lastChange > lastChange2){ plane_mc.gotoAndStop((plane_mc.currentFrame + 1)); lastChange = 0; }; }; }; if (plane_mc.x >= 235){ plane_mc.x = 235; if (plane_mc.currentFrame > 6){ if (lastChange > lastChange2){ plane_mc.gotoAndStop((plane_mc.currentFrame - 1)); lastChange = 0; }; }; }; ph_mc.x = plane_mc.x; ph_mc.y = plane_mc.y; if ((((Global.gameLevel == 6)) || ((Global.gameLevel == 7)))){ hider_mc.x = plane_mc.x; }; lastChange++; _local3 = 1.3; if (Global.gameLevel == 8){ _local3 = (_local3 * 2); }; distance = (distance + ((6 - Math.abs(_local2)) * _local3)); updateTiles(); updateOs(); _local4 = new Point(plane_mc.x, plane_mc.y); _local4 = this.localToGlobal(_local4); _local5 = 0; while (_local5 < arrObst.length) { _local7 = arrObst[_local5]; _local8 = false; _local9 = false; _local8 = _local7.hitTestPoint(_local4.x, _local4.y, true); _local9 = _local7.hitTestObject(ph_mc); if ((((_local8 == true)) || ((_local9 == true)))){ if (_local7.width > 240){ if (goaled == false){ saveScore(); updateTime(); updateTimeString(); saveScore2(); dispatchEvent(new Event("goal")); SoundManager.getInstance().playSound("FinishSound"); goaled = true; }; } else { if (invincible == false){ dispatchEvent(new Event("collision")); SoundManager.getInstance().playSound("HitSound"); updateTime(); updateTimeString(); plane_mc.visible = false; _local10 = new Particles(); particles_mc = _local10; _local10.init(); addChild(_local10); if (player == 2){ _local11 = _local10.transform.colorTransform; _local11.color = 2298413056; _local10.transform.colorTransform = new ColorTransform(1, 0.7, 0.7, 1, 1, 0, 0, 0); }; _local10.x = plane_mc.x; _local10.y = plane_mc.y; removeEventListener(Event.ENTER_FRAME, oef); gameOn = false; }; }; }; _local5++; }; _local6 = Math.floor((distance / 2000)); if (Global.gameType == 0){ if (level < _local6){ level++; if (tilet_mc.currentFrame == tilet_mc.totalFrames){ tilet_mc.gotoAndStop(1); } else { tilet_mc.gotoAndStop((tilet_mc.currentFrame + 1)); }; bmpData.draw(tilet_mc); }; }; if (Global.gameType != 0){ d_mc.txtD.text = makeTimeString(timeSince); } else { _local12 = Math.floor((distance / 100)); d_mc.txtD.text = String(_local12); _local13 = ((distance / 100) % 220); if (_local13 == 0){ _local13 = 1; }; this.sky_mc.gotoAndStop(_local13); Global.score = _local12; if (Global.hist[0] < _local12){ Global.hist[0] = _local12; Global.so.data.hist = Global.hist; dispatchEvent(new Event("newscore")); }; }; } public function startGame(){ addEventListener(Event.ENTER_FRAME, oef); gameOn = true; lastTime = getTimer(); } public function saveScore2(){ Global.score2 = timeSince; if (Global.gameType == 1){ if ((((Global.hist[Global.gameLevel] > timeSince)) || ((Global.hist[Global.gameLevel] == 0)))){ Global.hist[Global.gameLevel] = timeSince; dispatchEvent(new Event("newscore")); Global.so.data.hist = Global.hist; }; }; } public function celebrate(){ var _local1:Particles; var _local2:Particles; var _local3:Particles; var _local4:ColorTransform; var _local5:ColorTransform; var _local6:ColorTransform; _local1 = new Particles(); _local2 = new Particles(); _local3 = new Particles(); _local1.init(); _local2.init(); _local3.init(); addChild(_local1); addChild(_local2); addChild(_local3); _local1.y = (_local2.y = (_local3.y = plane_mc.y)); _local2.x = plane_mc.x; _local1.x = (plane_mc.x - 20); _local3.x = (plane_mc.x + 20); _local4 = _local2.transform.colorTransform; _local4.color = 0xFFFF00; _local2.transform.colorTransform = _local4; _local5 = _local1.transform.colorTransform; _local5.color = 16738047; _local1.transform.colorTransform = _local5; _local6 = _local3.transform.colorTransform; _local6.color = 0xFF00; _local3.transform.colorTransform = _local6; } private function makeTimeString(_arg1:int):String{ var _local2:int; var _local3:int; var _local4:int; _local2 = 0; _local3 = Math.floor((_arg1 / 1000)); _local4 = ((_arg1 - (_local3 * 1000)) / 10); if (_local3 >= 60){ _local2 = Math.floor((_local3 / 60)); _local3 = (_local3 - (_local2 * 60)); }; return (((((addZero(_local2) + ":") + addZero(_local3)) + ":") + addZero(_local4))); } public function resumeGame():void{ particles_mc.callBack(); particles_mc.addEventListener("calledBack", resumeGame2); } } }//package
Section 31
//GameLoop (GameLoop) package { import flash.media.*; public dynamic class GameLoop extends Sound { } }//package
Section 32
//GameMask (GameMask) package { import flash.display.*; public dynamic class GameMask extends MovieClip { } }//package
Section 33
//GameOver (GameOver) package { import flash.display.*; import flash.events.*; public dynamic class GameOver extends MovieClip { public var btnSubmitScore:SimpleButton; public var btnPlayAgain:SimpleButton; public var btnPlayAgain2:SimpleButton; public var btnQuit2:SimpleButton; public var btnQuit:SimpleButton; public function GameOver(){ addFrameScript(0, frame1, 1, frame2); } public function playAgain2(_arg1:MouseEvent):void{ dispatchEvent(new Event("playagain")); } function frame1(){ stop(); btnPlayAgain.addEventListener(MouseEvent.CLICK, playAgain); btnQuit.addEventListener(MouseEvent.CLICK, quit); btnSubmitScore.addEventListener(MouseEvent.CLICK, submitscore); } public function quit(_arg1:MouseEvent):void{ dispatchEvent(new Event("quit")); } function frame2(){ btnPlayAgain2.addEventListener(MouseEvent.CLICK, playAgain); btnQuit2.addEventListener(MouseEvent.CLICK, quit2); } public function submitscore(_arg1:MouseEvent):void{ dispatchEvent(new Event("submitscore")); } public function playAgain(_arg1:MouseEvent):void{ dispatchEvent(new Event("playagain")); } public function quit2(_arg1:MouseEvent):void{ dispatchEvent(new Event("quit")); } } }//package
Section 34
//GameOverGoal (GameOverGoal) package { import flash.display.*; import flash.events.*; public dynamic class GameOverGoal extends MovieClip { public var btnSubmitScore:SimpleButton; public var btnPlayAgain:SimpleButton; public var btnQuit:SimpleButton; public function GameOverGoal(){ addFrameScript(0, frame1); } function frame1(){ stop(); btnPlayAgain.addEventListener(MouseEvent.CLICK, playAgain); btnQuit.addEventListener(MouseEvent.CLICK, quit); btnSubmitScore.addEventListener(MouseEvent.CLICK, submitscore); } public function quit(_arg1:MouseEvent):void{ dispatchEvent(new Event("quit")); } public function submitscore(_arg1:MouseEvent):void{ dispatchEvent(new Event("submitscore")); } public function playAgain(_arg1:MouseEvent):void{ dispatchEvent(new Event("playagain")); } } }//package
Section 35
//Global (Global) package { import flash.net.*; public class Global { public static var score2:Number = 0; public static var arr:Array; public static var so:SharedObject; public static var gameType:int = 0; public static var hist:Array; public static var score:int = 0; public static var version:int = 1; public static var gameLevel:int = 0; public static var pname:String = ""; public static var soundsAdded:Boolean = false; } }//package
Section 36
//Go1 (Go1) package { import com.quickflashgames.sound.*; import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; public dynamic class Go1 extends MovieClip { public var instructs_mc:MovieClip; public var i:int; public var txt:TextField; public function Go1(){ addFrameScript(0, frame1); } public function init():void{ var _local1:Timer; _local1 = new Timer(1000, 3); _local1.start(); _local1.addEventListener(TimerEvent.TIMER, timerHandler); _local1.addEventListener(TimerEvent.TIMER_COMPLETE, completeHandler); } public function timerHandler(_arg1:TimerEvent):void{ i--; if (i > 0){ txt.text = String(i); SoundManager.getInstance().playSound("Tick"); } else { txt.text = "GO!!"; SoundManager.getInstance().playSound("Tick"); }; } function frame1(){ i = 3; txt.text = String(i); } public function completeHandler(_arg1:TimerEvent):void{ dispatchEvent(new Event("ready")); } } }//package
Section 37
//Goal (Goal) package { import flash.display.*; public dynamic class Goal extends MovieClip { } }//package
Section 38
//Goal2 (Goal2) package { import flash.display.*; import flash.events.*; import flash.text.*; public dynamic class Goal2 extends MovieClip { public var txtP1:TextField; public var txtP2:TextField; public var btnPlayAgain:SimpleButton; public var btnQuit:SimpleButton; public function Goal2(){ addFrameScript(0, frame1); } function frame1(){ stop(); btnPlayAgain.addEventListener(MouseEvent.CLICK, playAgain); btnQuit.addEventListener(MouseEvent.CLICK, quit); } public function quit(_arg1:MouseEvent):void{ dispatchEvent(new Event("quit")); } public function playAgain(_arg1:MouseEvent):void{ dispatchEvent(new Event("playagain")); } } }//package
Section 39
//Hider (Hider) package { import flash.display.*; public dynamic class Hider extends MovieClip { } }//package
Section 40
//HitSound (HitSound) package { import flash.media.*; public dynamic class HitSound extends Sound { } }//package
Section 41
//LevelButton (LevelButton) package { import flash.display.*; import flash.text.*; public dynamic class LevelButton extends MovieClip { public var clouds1:MovieClip; public var clouds2:MovieClip; public var clouds3:MovieClip; public var txtLevel:TextField; public var plane2:MovieClip; public var plane1:MovieClip; public var hider:MovieClip; public var outline:MovieClip; public var num:int; public function LevelButton(){ addFrameScript(0, frame1); } function frame1(){ } } }//package
Section 42
//LevelNumber (LevelNumber) package { import flash.display.*; import flash.text.*; public dynamic class LevelNumber extends MovieClip { public var num:int; public var txtNum:TextField; public function LevelNumber(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 43
//Lives (Lives) package { import flash.display.*; public dynamic class Lives extends MovieClip { public function Lives(){ addFrameScript(2, frame3); } function frame3(){ stop(); } } }//package
Section 44
//Obst (Obst) package { import flash.display.*; public dynamic class Obst extends MovieClip { } }//package
Section 45
//Particles (Particles) package { import flash.display.*; import flash.events.*; public class Particles extends Sprite { private const SPEED3 = 10; private const SPEED = 5; private const GRAVITY = 1; private const SPEED2 = 0.2; private const COUNT = 20; private var counter:int;// = 0 private var cstate:int;// = 0 private var arrP:Array; private var dy:int;// = 0 private var dx:int;// = 0 private var arrDX:Array; private var arrDY:Array; public function Particles(){ arrP = new Array(); arrDX = new Array(); arrDY = new Array(); cstate = 0; dx = 0; dy = 0; counter = 0; super(); } public function init():void{ var _local1:*; var _local2:MovieClip; _local1 = 0; while (_local1 < COUNT) { _local2 = new Piece(); _local2.rotation = randRange(0, 359); if ((_local2.rotation % 2) == 0){ _local2.scaleX = -1; }; _local2.gotoAndPlay(randRange(1, 10)); arrP[_local1] = _local2; arrDX[_local1] = randRange(-(SPEED), SPEED); arrDY[_local1] = randRange(-(SPEED), SPEED); addChild(_local2); _local1++; }; cstate = 1; counter = 0; addEventListener(Event.ENTER_FRAME, oef); } public function nullIt(){ removeEventListener(Event.ENTER_FRAME, oef); } function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1); return (_local3); } private function oef(_arg1:Event):void{ var _local2:*; var _local3:MovieClip; if (cstate == 1){ _local2 = 0; while (_local2 < COUNT) { _local3 = (arrP[_local2] as MovieClip); _local3.x = (_local3.x + arrDX[_local2]); _local3.y = (_local3.y + arrDY[_local2]); if (arrDX[_local2] != 0){ arrDX[_local2] = (arrDX[_local2] + ((arrDX[_local2] > 0)) ? (-(SPEED2) / 2) : (SPEED2 / 2)); }; if (arrDY[_local2] != GRAVITY){ arrDY[_local2] = (arrDY[_local2] + ((arrDY[_local2] > GRAVITY)) ? -(SPEED2) : SPEED2); }; _local2++; }; counter++; if (counter == 60){ }; } else { if (cstate == 2){ _local2 = 0; while (_local2 < COUNT) { _local3 = (arrP[_local2] as MovieClip); _local3.x = (_local3.x + arrDX[_local2]); _local3.y = (_local3.y + arrDY[_local2]); _local2++; }; counter++; if (counter > SPEED3){ dispatchEvent(new Event("calledBack")); cstate = 3; }; }; }; } public function callBack(){ var _local1:*; var _local2:MovieClip; cstate = 2; _local1 = 0; while (_local1 < COUNT) { _local2 = (arrP[_local1] as MovieClip); arrDX[_local1] = -((_local2.x / SPEED3)); arrDY[_local1] = -((_local2.y / SPEED3)); _local1++; }; counter = 0; } } }//package
Section 46
//Paused (Paused) package { import flash.display.*; public dynamic class Paused extends MovieClip { } }//package
Section 47
//Piece (Piece) package { import flash.display.*; public dynamic class Piece extends MovieClip { public function Piece(){ addFrameScript(11, frame12); } function frame12(){ gotoAndPlay(1); } } }//package
Section 48
//Plane (Plane) package { import flash.display.*; public dynamic class Plane extends MovieClip { public function Plane(){ addFrameScript(10, frame11); } function frame11(){ stop(); } } }//package
Section 49
//PlaneHitter (PlaneHitter) package { import flash.display.*; public dynamic class PlaneHitter extends MovieClip { } }//package
Section 50
//Tick (Tick) package { import flash.media.*; public dynamic class Tick extends Sound { } }//package
Section 51
//TILE (TILE) package { import flash.display.*; public dynamic class TILE extends MovieClip { public function TILE(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 52
//TitleBG (TitleBG) package { import flash.media.*; public dynamic class TitleBG extends Sound { } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:3
Symbol 3 MovieClip {paper_fla.title_bg_1}Uses:2Used by:Timeline
Symbol 4 GraphicUsed by:126
Symbol 5 GraphicUsed by:16
Symbol 6 GraphicUsed by:16
Symbol 7 GraphicUsed by:16
Symbol 8 GraphicUsed by:16
Symbol 9 GraphicUsed by:16
Symbol 10 GraphicUsed by:16
Symbol 11 GraphicUsed by:16
Symbol 12 GraphicUsed by:16
Symbol 13 GraphicUsed by:16
Symbol 14 GraphicUsed by:16
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClip {TILE}Uses:5 6 7 8 9 10 11 12 13 14 15Used by:126
Symbol 17 GraphicUsed by:18 112
Symbol 18 MovieClip {PlaneHitter}Uses:17Used by:126
Symbol 19 BitmapUsed by:20 35 60 61
Symbol 20 GraphicUses:19Used by:36
Symbol 21 BitmapUsed by:22 34
Symbol 22 GraphicUses:21Used by:36
Symbol 23 BitmapUsed by:24 33
Symbol 24 GraphicUses:23Used by:36
Symbol 25 BitmapUsed by:26 32
Symbol 26 GraphicUses:25Used by:36
Symbol 27 BitmapUsed by:28 31
Symbol 28 GraphicUses:27Used by:36
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:36
Symbol 31 GraphicUses:27Used by:36
Symbol 32 GraphicUses:25Used by:36
Symbol 33 GraphicUses:23Used by:36
Symbol 34 GraphicUses:21Used by:36
Symbol 35 GraphicUses:19Used by:36 50 62
Symbol 36 MovieClip {Plane}Uses:20 22 24 26 28 30 31 32 33 34 35Used by:126
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClip {Piece}Uses:37Used by:126
Symbol 39 GraphicUsed by:42 76 78 103
Symbol 40 FontUsed by:41 51 57 65 66 67 70 71 73 74 77 80 81 92 93 94 101 102 106 107 113 132 133 134 135 137 138 140 141 142 143 155 165 166 168
Symbol 41 TextUses:40Used by:42
Symbol 42 MovieClip {Paused}Uses:39 41Used by:126
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClip {Obst}Uses:43Used by:126
Symbol 45 GraphicUsed by:55 145
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClipUses:46Used by:55 145
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:48Used by:55
Symbol 50 MovieClipUses:35Used by:55 145
Symbol 51 EditableTextUses:40Used by:55
Symbol 52 GraphicUsed by:54
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClip {paper_fla.buttn_14}Uses:52 53Used by:55 145
Symbol 55 MovieClip {LevelButton}Uses:45 47 49 50 51 54Used by:126
Symbol 56 GraphicUsed by:59
Symbol 57 EditableTextUses:40Used by:59
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClip {LevelNumber}Uses:56 57 58Used by:126 153
Symbol 60 GraphicUses:19Used by:62
Symbol 61 GraphicUses:19Used by:62
Symbol 62 MovieClip {Lives}Uses:35 60 61Used by:126
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClip {GameMask}Uses:63Used by:126
Symbol 65 TextUses:40Used by:76
Symbol 66 TextUses:40Used by:69
Symbol 67 TextUses:40Used by:69
Symbol 68 GraphicUsed by:69 72 75 120 136 139 167
Symbol 69 ButtonUses:66 67 68Used by:76 78
Symbol 70 TextUses:40Used by:72
Symbol 71 TextUses:40Used by:72
Symbol 72 ButtonUses:70 71 68Used by:76 78 103
Symbol 73 TextUses:40Used by:75
Symbol 74 TextUses:40Used by:75
Symbol 75 ButtonUses:73 74 68Used by:76 78 103
Symbol 76 MovieClip {GameOver}Uses:39 65 69 72 75Used by:126
Symbol 77 TextUses:40Used by:78
Symbol 78 MovieClip {GameOverGoal}Uses:39 77 69 72 75Used by:126
Symbol 79 GraphicUsed by:96
Symbol 80 EditableTextUses:40Used by:96
Symbol 81 TextUses:40Used by:95
Symbol 82 GraphicUsed by:86 90
Symbol 83 FontUsed by:84 85
Symbol 84 TextUses:83Used by:86
Symbol 85 TextUses:83Used by:86
Symbol 86 MovieClipUses:82 84 85Used by:95  Timeline
Symbol 87 FontUsed by:88 89
Symbol 88 TextUses:87Used by:90
Symbol 89 TextUses:87Used by:90
Symbol 90 MovieClipUses:82 88 89Used by:95  Timeline
Symbol 91 GraphicUsed by:95
Symbol 92 TextUses:40Used by:95
Symbol 93 TextUses:40Used by:95
Symbol 94 TextUses:40Used by:95
Symbol 95 MovieClip {paper_fla.intruct_mc_24}Uses:81 86 90 91 92 93 94Used by:96
Symbol 96 MovieClip {Go1}Uses:79 80 95Used by:126
Symbol 97 GraphicUsed by:100
Symbol 98 FontUsed by:99
Symbol 99 TextUses:98Used by:100
Symbol 100 MovieClip {Goal}Uses:97 99Used by:126
Symbol 101 EditableTextUses:40Used by:103
Symbol 102 EditableTextUses:40Used by:103
Symbol 103 MovieClip {Goal2}Uses:39 101 102 72 75Used by:126
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClip {Hider}Uses:104Used by:126
Symbol 106 EditableTextUses:40Used by:108
Symbol 107 EditableTextUses:40Used by:108
Symbol 108 MovieClip {Best}Uses:106 107Used by:126
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClip {Border}Uses:109Used by:126
Symbol 111 GraphicUsed by:112
Symbol 112 Button {BtnQFG}Uses:111 17Used by:126 154  Timeline
Symbol 113 EditableTextUses:40Used by:114
Symbol 114 MovieClip {Distance}Uses:113Used by:126
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:119
Symbol 117 BitmapUsed by:118
Symbol 118 GraphicUses:117Used by:119
Symbol 119 MovieClip {paper_fla.Timeline_35}Uses:116 118Used by:120
Symbol 120 MovieClip {Game}Uses:68 119Used by:126
Symbol 121 Sound {TitleBG}Used by:126
Symbol 122 Sound {Tick}Used by:126
Symbol 123 Sound {HitSound}Used by:126
Symbol 124 Sound {GameLoop}Used by:126
Symbol 125 Sound {FinishSound}Used by:126
Symbol 126 MovieClip {paper_fla.all_3}Uses:4 16 18 36 38 42 44 55 59 62 64 76 78 96 100 103 105 108 110 112 114 120 121 122 123 124 125Used by:Timeline
Symbol 127 BitmapUsed by:128
Symbol 128 GraphicUses:127Used by:131
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:131
Symbol 131 MovieClip {paper_fla.sound_mc_36}Uses:128 130Used by:Timeline
Symbol 132 TextUses:40Used by:154
Symbol 133 TextUses:40Used by:154
Symbol 134 TextUses:40Used by:136
Symbol 135 TextUses:40Used by:136
Symbol 136 ButtonUses:134 135 68Used by:154
Symbol 137 TextUses:40Used by:139
Symbol 138 TextUses:40Used by:139
Symbol 139 ButtonUses:137 138 68Used by:154
Symbol 140 TextUses:40Used by:154
Symbol 141 TextUses:40Used by:144
Symbol 142 TextUses:40Used by:144
Symbol 143 TextUses:40Used by:144
Symbol 144 MovieClip {paper_fla.STARTBUTTONTITLE_41}Uses:141 142 143Used by:145
Symbol 145 MovieClip {paper_fla.Timeline_40}Uses:45 47 50 144 54Used by:154
Symbol 146 GraphicUsed by:151
Symbol 147 FontUsed by:148 152
Symbol 148 TextUses:147Used by:151
Symbol 149 GraphicUsed by:151
Symbol 150 GraphicUsed by:151
Symbol 151 ButtonUses:146 148 149 150Used by:153
Symbol 152 TextUses:147Used by:153
Symbol 153 MovieClip {paper_fla.Timeline_42}Uses:151 152 59Used by:154
Symbol 154 MovieClip {paper_fla.Timeline_37}Uses:132 133 136 139 140 145 112 153Used by:Timeline
Symbol 155 TextUses:40Used by:Timeline
Symbol 156 FontUsed by:157 158 161 163
Symbol 157 TextUses:156Used by:Timeline
Symbol 158 TextUses:156Used by:Timeline
Symbol 159 FontUsed by:160 162 164
Symbol 160 TextUses:159Used by:Timeline
Symbol 161 TextUses:156Used by:Timeline
Symbol 162 TextUses:159Used by:Timeline
Symbol 163 TextUses:156Used by:Timeline
Symbol 164 TextUses:159Used by:Timeline
Symbol 165 TextUses:40Used by:167
Symbol 166 TextUses:40Used by:167
Symbol 167 ButtonUses:165 166 68Used by:Timeline
Symbol 168 TextUses:40Used by:Timeline
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClip {paper_fla.Timeline_45}Uses:169Used by:Timeline

Instance Names

"audio_mc"Frame 11Symbol 131 MovieClip {paper_fla.sound_mc_36}
"title_mc"Frame 14Symbol 154 MovieClip {paper_fla.Timeline_37}
"btnGoBack1"Frame 19Symbol 167 Button
"btnGoBack"Frame 36Symbol 167 Button
"btnURL"Frame 61Symbol 112 Button {BtnQFG}
"mesh"Symbol 3 MovieClip {paper_fla.title_bg_1} Frame 1Symbol 2 MovieClip
"clouds1"Symbol 55 MovieClip {LevelButton} Frame 1Symbol 47 MovieClip
"clouds2"Symbol 55 MovieClip {LevelButton} Frame 1Symbol 47 MovieClip
"clouds3"Symbol 55 MovieClip {LevelButton} Frame 1Symbol 47 MovieClip
"hider"Symbol 55 MovieClip {LevelButton} Frame 1Symbol 49 MovieClip
"plane1"Symbol 55 MovieClip {LevelButton} Frame 1Symbol 50 MovieClip
"plane2"Symbol 55 MovieClip {LevelButton} Frame 1Symbol 50 MovieClip
"txtLevel"Symbol 55 MovieClip {LevelButton} Frame 1Symbol 51 EditableText
"outline"Symbol 55 MovieClip {LevelButton} Frame 1Symbol 54 MovieClip {paper_fla.buttn_14}
"txtNum"Symbol 59 MovieClip {LevelNumber} Frame 1Symbol 57 EditableText
"btnSubmitScore"Symbol 76 MovieClip {GameOver} Frame 1Symbol 69 Button
"btnQuit"Symbol 76 MovieClip {GameOver} Frame 1Symbol 72 Button
"btnPlayAgain"Symbol 76 MovieClip {GameOver} Frame 1Symbol 75 Button
"btnQuit2"Symbol 76 MovieClip {GameOver} Frame 2Symbol 72 Button
"btnPlayAgain2"Symbol 76 MovieClip {GameOver} Frame 2Symbol 75 Button
"btnSubmitScore"Symbol 78 MovieClip {GameOverGoal} Frame 1Symbol 69 Button
"btnQuit"Symbol 78 MovieClip {GameOverGoal} Frame 1Symbol 72 Button
"btnPlayAgain"Symbol 78 MovieClip {GameOverGoal} Frame 1Symbol 75 Button
"txt"Symbol 96 MovieClip {Go1} Frame 1Symbol 80 EditableText
"instructs_mc"Symbol 96 MovieClip {Go1} Frame 1Symbol 95 MovieClip {paper_fla.intruct_mc_24}
"txtP1"Symbol 103 MovieClip {Goal2} Frame 1Symbol 101 EditableText
"txtP2"Symbol 103 MovieClip {Goal2} Frame 1Symbol 102 EditableText
"btnQuit"Symbol 103 MovieClip {Goal2} Frame 1Symbol 72 Button
"btnPlayAgain"Symbol 103 MovieClip {Goal2} Frame 1Symbol 75 Button
"txtTitle"Symbol 108 MovieClip {Best} Frame 1Symbol 106 EditableText
"txtScore"Symbol 108 MovieClip {Best} Frame 1Symbol 107 EditableText
"txtD"Symbol 114 MovieClip {Distance} Frame 1Symbol 113 EditableText
"sky_mc"Symbol 120 MovieClip {Game} Frame 1Symbol 119 MovieClip {paper_fla.Timeline_35}
"clouds1"Symbol 145 MovieClip {paper_fla.Timeline_40} Frame 1Symbol 47 MovieClip
"clouds2"Symbol 145 MovieClip {paper_fla.Timeline_40} Frame 1Symbol 47 MovieClip
"clouds3"Symbol 145 MovieClip {paper_fla.Timeline_40} Frame 1Symbol 47 MovieClip
"plane1"Symbol 145 MovieClip {paper_fla.Timeline_40} Frame 1Symbol 50 MovieClip
"plane2"Symbol 145 MovieClip {paper_fla.Timeline_40} Frame 1Symbol 50 MovieClip
"title"Symbol 145 MovieClip {paper_fla.Timeline_40} Frame 1Symbol 144 MovieClip {paper_fla.STARTBUTTONTITLE_41}
"outline"Symbol 145 MovieClip {paper_fla.Timeline_40} Frame 1Symbol 54 MovieClip {paper_fla.buttn_14}
"btnEndless"Symbol 153 MovieClip {paper_fla.Timeline_42} Frame 1Symbol 151 Button
"tmp"Symbol 153 MovieClip {paper_fla.Timeline_42} Frame 1Symbol 59 MovieClip {LevelNumber}
"btnScores"Symbol 154 MovieClip {paper_fla.Timeline_37} Frame 1Symbol 136 Button
"btnInstructions"Symbol 154 MovieClip {paper_fla.Timeline_37} Frame 1Symbol 139 Button
"btn1"Symbol 154 MovieClip {paper_fla.Timeline_37} Frame 1Symbol 145 MovieClip {paper_fla.Timeline_40}
"btn2"Symbol 154 MovieClip {paper_fla.Timeline_37} Frame 1Symbol 145 MovieClip {paper_fla.Timeline_40}
"btn3"Symbol 154 MovieClip {paper_fla.Timeline_37} Frame 1Symbol 145 MovieClip {paper_fla.Timeline_40}
"btnURL"Symbol 154 MovieClip {paper_fla.Timeline_37} Frame 1Symbol 112 Button {BtnQFG}
"scores_mc"Symbol 154 MovieClip {paper_fla.Timeline_37} Frame 1Symbol 153 MovieClip {paper_fla.Timeline_42}

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.
Protect (24)Timeline Frame 10 bytes ""

Labels

"title"Frame 14
"instructions"Frame 19
"games"Frame 29
"selectStage"Frame 36
"arrays"Frame 48
"type1"Frame 61
"type2"Frame 71
"showScores0"Frame 86
"sendScores0"Frame 98
"showScores1"Frame 109
"sendScores1"Frame 120
"showScores2"Frame 131
"sendScores2"Frame 142
"showScores3"Frame 153
"sendScores3"Frame 164
"showScores4"Frame 175
"sendScores4"Frame 186
"showScores5"Frame 197
"sendScores5"Frame 208
"showScores6"Frame 219
"sendScores6"Frame 230
"showScores7"Frame 241
"sendScores7"Frame 252
"showScores8"Frame 263
"sendScores8"Frame 274




http://swfchan.com/23/114178/info.shtml
Created: 11/3 -2019 00:13:32 Last modified: 11/3 -2019 00:13:32 Server time: 17/05 -2024 06:20:22