Section 1
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
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 easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Iris (fl.transitions.Iris)
package fl.transitions {
import flash.display.*;
import flash.geom.*;
public class Iris extends Transition {
protected var _minDimension:Number;// = NAN
protected var _shape:String;// = "SQUARE"
protected var _cornerMode:Boolean;// = false
protected var _renderFunction:Function;
protected var _maxDimension:Number;// = NAN
protected var _mask:MovieClip;
protected var _startPoint:uint;// = 5
public static const CIRCLE:String = "CIRCLE";
public static const SQUARE:String = "SQUARE";
public function Iris(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
_startPoint = 5;
_cornerMode = false;
_shape = SQUARE;
_maxDimension = NaN;
_minDimension = NaN;
super(_arg1, _arg2, _arg3);
if (_arg2.startPoint){
this._startPoint = _arg2.startPoint;
};
if (_arg2.shape){
this._shape = _arg2.shape;
};
this._maxDimension = Math.max(this._width, this._height);
this._minDimension = Math.min(this._width, this._height);
if ((this._startPoint % 2)){
this._cornerMode = true;
};
if (this._shape == SQUARE){
if (this._cornerMode){
this._renderFunction = this._renderSquareCorner;
} else {
this._renderFunction = this._renderSquareEdge;
};
} else {
if (this._shape == CIRCLE){
this._renderFunction = this._renderCircle;
};
};
this._initMask();
}
protected function _drawHalfCircle(_arg1:MovieClip, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
_local3 = 0;
_local4 = 0;
_arg1.graphics.lineTo(0, -(_arg2));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg2) + _local3), (-(_arg2) + _local4), ((Math.sin((Math.PI / 4)) * _arg2) + _local3), ((-(Math.sin((Math.PI / 4))) * _arg2) + _local4));
_arg1.graphics.curveTo((_arg2 + _local3), ((-(Math.tan((Math.PI / 8))) * _arg2) + _local4), (_arg2 + _local3), _local4);
_arg1.graphics.curveTo((_arg2 + _local3), ((Math.tan((Math.PI / 8)) * _arg2) + _local4), ((Math.sin((Math.PI / 4)) * _arg2) + _local3), ((Math.sin((Math.PI / 4)) * _arg2) + _local4));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg2) + _local3), (_arg2 + _local4), _local3, (_arg2 + _local4));
_arg1.graphics.lineTo(0, 0);
}
protected function _initMask():void{
var _local1:MovieClip;
var _local2:Rectangle;
_local1 = (this._mask = new MovieClip());
_local1.visible = false;
this._content.addChild(_local1);
_local2 = this._innerBounds;
switch (this._startPoint){
case 1:
_local1.x = _local2.left;
_local1.y = _local2.top;
break;
case 4:
_local1.x = _local2.left;
_local1.y = ((_local2.top + _local2.bottom) * 0.5);
break;
case 3:
_local1.rotation = 90;
_local1.x = _local2.right;
_local1.y = _local2.top;
break;
case 2:
_local1.rotation = 90;
_local1.x = ((_local2.left + _local2.right) * 0.5);
_local1.y = _local2.top;
break;
case 9:
_local1.rotation = 180;
_local1.x = _local2.right;
_local1.y = _local2.bottom;
break;
case 6:
_local1.rotation = 180;
_local1.x = _local2.right;
_local1.y = ((_local2.top + _local2.bottom) * 0.5);
break;
case 7:
_local1.rotation = -90;
_local1.x = _local2.left;
_local1.y = _local2.bottom;
break;
case 8:
_local1.rotation = -90;
_local1.x = ((_local2.left + _local2.right) * 0.5);
_local1.y = _local2.bottom;
break;
case 5:
_local1.x = ((_local2.left + _local2.right) * 0.5);
_local1.y = ((_local2.top + _local2.bottom) * 0.5);
break;
};
}
protected function _renderSquareEdge(_arg1:Number):void{
var _local2:MovieClip;
var _local3:uint;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local2 = this._mask;
_local2.graphics.clear();
_local2.graphics.beginFill(0xFF0000);
_local3 = this._startPoint;
_local4 = (_arg1 * this._width);
_local5 = (_arg1 * this._height);
_local6 = (_arg1 * this._maxDimension);
if ((((_local3 == 4)) || ((_local3 == 6)))){
this.drawBox(_local2, 0, (-0.5 * _local5), _local4, _local5);
} else {
if (this._height < this._width){
this.drawBox(_local2, 0, (-0.5 * _local6), _local5, _local4);
} else {
this.drawBox(_local2, 0, (-0.5 * _local6), _local6, _local6);
};
};
_local2.graphics.endFill();
}
protected function _renderSquareCorner(_arg1:Number):void{
var _local2:MovieClip;
var _local3:uint;
var _local4:Number;
var _local5:Number;
_local2 = this._mask;
_local2.graphics.clear();
_local2.graphics.beginFill(0xFF0000);
_local3 = this._startPoint;
_local4 = (_arg1 * this._width);
_local5 = (_arg1 * this._height);
if (_local3 == 5){
this.drawBox(_local2, (-0.5 * _local4), (-0.5 * _local5), _local4, _local5);
} else {
if ((((_local3 == 3)) || ((_local3 == 7)))){
this.drawBox(_local2, 0, 0, _local5, _local4);
} else {
this.drawBox(_local2, 0, 0, _local4, _local5);
};
};
_local2.graphics.endFill();
}
override protected function _render(_arg1:Number):void{
this._renderFunction(_arg1);
}
protected function _drawQuarterCircle(_arg1:MovieClip, _arg2:Number):void{
var _local3:Number;
var _local4:Number;
_local3 = 0;
_local4 = 0;
_arg1.graphics.lineTo(_arg2, 0);
_arg1.graphics.curveTo((_arg2 + _local3), ((Math.tan((Math.PI / 8)) * _arg2) + _local4), ((Math.sin((Math.PI / 4)) * _arg2) + _local3), ((Math.sin((Math.PI / 4)) * _arg2) + _local4));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg2) + _local3), (_arg2 + _local4), _local3, (_arg2 + _local4));
}
override public function get type():Class{
return (Iris);
}
override public function cleanUp():void{
this._content.removeChild(this._mask);
this._content.mask = null;
super.cleanUp();
}
override public function start():void{
this._content.mask = this._mask;
super.start();
}
protected function _renderCircle(_arg1:Number):void{
var _local2:MovieClip;
var _local3:Number;
_local2 = this._mask;
_local2.graphics.clear();
_local2.graphics.beginFill(0xFF0000);
_local3 = 0;
if (this._startPoint == 5){
_local3 = (0.5 * Math.sqrt(((this._width * this._width) + (this._height * this._height))));
this.drawCircle(_local2, 0, 0, (_arg1 * _local3));
} else {
if (this._cornerMode){
_local3 = Math.sqrt(((this._width * this._width) + (this._height * this._height)));
this._drawQuarterCircle(_local2, (_arg1 * _local3));
} else {
if ((((this._startPoint == 4)) || ((this._startPoint == 6)))){
_local3 = Math.sqrt(((this._width * this._width) + ((0.25 * this._height) * this._height)));
} else {
if ((((this._startPoint == 2)) || ((this._startPoint == 8)))){
_local3 = Math.sqrt((((0.25 * this._width) * this._width) + (this._height * this._height)));
};
};
this._drawHalfCircle(_local2, (_arg1 * _local3));
};
};
_local2.graphics.endFill();
}
}
}//package fl.transitions
Section 3
//Transition (fl.transitions.Transition)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class Transition extends EventDispatcher {
protected var _direction:uint;// = 0
protected var _progress:Number;
public var ID:int;
protected var _twn:Tween;
protected var _content:MovieClip;
protected var _height:Number;// = NAN
protected var _width:Number;// = NAN
protected var _outerBounds:Rectangle;
protected var _easing:Function;
protected var _innerBounds:Rectangle;
protected var _manager:TransitionManager;
protected var _duration:Number;// = 2
public static const IN:uint = 0;
public static const OUT:uint = 1;
public function Transition(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
_direction = 0;
_duration = 2;
_width = NaN;
_height = NaN;
super();
this.content = _arg1;
this.direction = _arg2.direction;
this.duration = _arg2.duration;
this.easing = _arg2.easing;
this.manager = _arg3;
this._innerBounds = this.manager._innerBounds;
this._outerBounds = this.manager._outerBounds;
this._width = this.manager._width;
this._height = this.manager._height;
this._resetTween();
}
public function stop():void{
this._twn.fforward();
this._twn.stop();
}
private function _resetTween():void{
if (this._twn){
this._twn.stop();
this._twn.removeEventListener(TweenEvent.MOTION_FINISH, this.onMotionFinished);
};
this._twn = new Tween(this, "", this.easing, 0, 1, this.duration, true);
this._twn.stop();
this._twn.prop = "progress";
this._twn.addEventListener(TweenEvent.MOTION_FINISH, this.onMotionFinished, false, 0, true);
}
public function onMotionFinished(_arg1:Object):void{
if (this.direction == Transition.OUT){
this.dispatchEvent(new Event("transitionOutDone"));
} else {
this.dispatchEvent(new Event("transitionInDone"));
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
if (_arg1){
this._duration = _arg1;
if (this._twn){
this._twn.duration = _arg1;
};
};
}
public function get easing():Function{
return (this._easing);
}
public function get manager():TransitionManager{
return (this._manager);
}
public function get progress():Number{
return (this._progress);
}
protected function _render(_arg1:Number):void{
}
public function get type():Class{
return (Transition);
}
public function drawCircle(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number):void{
_arg1.graphics.moveTo((_arg2 + _arg4), _arg3);
_arg1.graphics.curveTo((_arg4 + _arg2), ((Math.tan((Math.PI / 8)) * _arg4) + _arg3), ((Math.sin((Math.PI / 4)) * _arg4) + _arg2), ((Math.sin((Math.PI / 4)) * _arg4) + _arg3));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg4) + _arg2), (_arg4 + _arg3), _arg2, (_arg4 + _arg3));
_arg1.graphics.curveTo(((-(Math.tan((Math.PI / 8))) * _arg4) + _arg2), (_arg4 + _arg3), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg2), ((Math.sin((Math.PI / 4)) * _arg4) + _arg3));
_arg1.graphics.curveTo((-(_arg4) + _arg2), ((Math.tan((Math.PI / 8)) * _arg4) + _arg3), (-(_arg4) + _arg2), _arg3);
_arg1.graphics.curveTo((-(_arg4) + _arg2), ((-(Math.tan((Math.PI / 8))) * _arg4) + _arg3), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg2), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg3));
_arg1.graphics.curveTo(((-(Math.tan((Math.PI / 8))) * _arg4) + _arg2), (-(_arg4) + _arg3), _arg2, (-(_arg4) + _arg3));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg4) + _arg2), (-(_arg4) + _arg3), ((Math.sin((Math.PI / 4)) * _arg4) + _arg2), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg3));
_arg1.graphics.curveTo((_arg4 + _arg2), ((-(Math.tan((Math.PI / 8))) * _arg4) + _arg3), (_arg4 + _arg2), _arg3);
}
public function cleanUp():void{
this.removeEventListener("transitionInDone", this._manager.transitionInDone);
this.removeEventListener("transitionOutDone", this._manager.transitionOutDone);
this.stop();
}
public function set easing(_arg1:Function):void{
this._easing = _arg1;
if (this._twn){
this._twn.func = _arg1;
};
}
public function set manager(_arg1:TransitionManager):void{
if (this._manager){
this.removeEventListener("transitionInDone", this._manager.transitionInDone);
this.removeEventListener("transitionOutDone", this._manager.transitionOutDone);
};
this._manager = _arg1;
this.addEventListener("transitionInDone", this._manager.transitionInDone);
this.addEventListener("transitionOutDone", this._manager.transitionOutDone);
}
public function set progress(_arg1:Number):void{
if (this._progress == _arg1){
return;
};
this._progress = _arg1;
if (this._direction){
this._render((1 - _arg1));
} else {
this._render(_arg1);
};
this.dispatchEvent(new Event("transitionProgress"));
}
public function start():void{
this.content.visible = true;
this._twn.start();
}
public function drawBox(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
_arg1.graphics.moveTo(_arg2, _arg3);
_arg1.graphics.lineTo((_arg2 + _arg4), _arg3);
_arg1.graphics.lineTo((_arg2 + _arg4), (_arg3 + _arg5));
_arg1.graphics.lineTo(_arg2, (_arg3 + _arg5));
_arg1.graphics.lineTo(_arg2, _arg3);
}
public function set content(_arg1:MovieClip):void{
if (_arg1){
this._content = _arg1;
if (this._twn){
this._twn.obj = _arg1;
};
};
}
private function _noEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public function get content():MovieClip{
return (this._content);
}
public function set direction(_arg1:Number):void{
this._direction = (_arg1) ? 1 : 0;
}
public function get direction():Number{
return (this._direction);
}
}
}//package fl.transitions
Section 4
//TransitionManager (fl.transitions.TransitionManager)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class TransitionManager extends EventDispatcher {
public var _innerBounds:Rectangle;
private var _visualPropList:Object;
private var _triggerEvent:String;
public var className:String;// = "TransitionManager"
public var type:Object;
private var _contentAppearance:Object;
private var _content:MovieClip;
public var _width:Number;// = NAN
public var _height:Number;// = NAN
public var _outerBounds:Rectangle;
private var _transitions:Object;
private static var IDCount:int = 0;
public function TransitionManager(_arg1:MovieClip){
type = TransitionManager;
className = "TransitionManager";
_width = NaN;
_height = NaN;
_visualPropList = {x:null, y:null, scaleX:null, scaleY:null, alpha:null, rotation:null};
super();
this.content = _arg1;
this._transitions = {};
}
public function get content():MovieClip{
return (this._content);
}
public function removeAllTransitions():void{
var _local1:Transition;
for each (_local1 in this._transitions) {
_local1.cleanUp();
this.removeTransition(_local1);
};
}
function transitionInDone(_arg1:Object):void{
var _local2:Boolean;
this.removeTransition(_arg1.target);
if (this.numInTransitions == 0){
_local2 = this._content.visible;
if ((((this._triggerEvent == "hide")) || ((this._triggerEvent == "hideChild")))){
this._content.visible = false;
};
if (_local2){
this.dispatchEvent(new Event("allTransitionsInDone"));
};
};
}
public function get numOutTransitions():Number{
var _local1:Number;
var _local2:Object;
var _local3:Transition;
_local1 = 0;
_local2 = this._transitions;
for each (_local3 in _local2) {
if (_local3.direction){
_local1++;
};
};
return (_local1);
}
public function get contentAppearance():Object{
return (this._contentAppearance);
}
public function saveContentAppearance():void{
var _local1:MovieClip;
var _local2:Object;
var _local3:String;
_local1 = this._content;
if (!this._contentAppearance){
_local2 = (this._contentAppearance = {});
for (_local3 in this._visualPropList) {
_local2[_local3] = _local1[_local3];
};
_local2.colorTransform = _local1.transform.colorTransform;
};
this._innerBounds = _local1.getBounds(_local1);
this._outerBounds = _local1.getBounds(_local1.parent);
this._width = _local1.width;
this._height = _local1.height;
}
public function addTransition(_arg1:Transition):Transition{
_arg1.ID = ++TransitionManager.IDCount;
this._transitions[_arg1.ID] = _arg1;
return (_arg1);
}
public function startTransition(_arg1:Object):Transition{
var _local2:Class;
var _local3:Transition;
this.removeTransition(this.findTransition(_arg1));
_local2 = _arg1.type;
_local3 = new _local2(this._content, _arg1, this);
this.addTransition(_local3);
_local3.start();
return (_local3);
}
function transitionOutDone(_arg1:Object):void{
var _local2:Boolean;
this.removeTransition(_arg1.target);
if (this.numOutTransitions == 0){
this.restoreContentAppearance();
_local2 = this._content.visible;
if (((_local2) && ((((_triggerEvent == "hide")) || ((_triggerEvent == "hideChild")))))){
this._content.visible = false;
};
if (_local2){
this.dispatchEvent(new Event("allTransitionsOutDone"));
};
};
}
public function restoreContentAppearance():void{
var _local1:MovieClip;
var _local2:Object;
var _local3:String;
_local1 = this._content;
_local2 = this._contentAppearance;
for (_local3 in this._visualPropList) {
_local1[_local3] = _local2[_local3];
};
_local1.transform.colorTransform = _local2.colorTransform;
}
public function get numTransitions():Number{
var _local1:Number;
var _local2:Transition;
_local1 = 0;
for each (_local2 in this._transitions) {
_local1++;
};
return (_local1);
}
public function findTransition(_arg1:Object):Transition{
var _local2:Transition;
for each (_local2 in this._transitions) {
if (_local2.type == _arg1.type){
return (_local2);
};
};
return (null);
}
public function set content(_arg1:MovieClip):void{
this._content = _arg1;
this.saveContentAppearance();
}
public function get numInTransitions():Number{
var _local1:Number;
var _local2:Object;
var _local3:Transition;
_local1 = 0;
_local2 = this._transitions;
for each (_local3 in _local2) {
if (!_local3.direction){
_local1++;
};
};
return (_local1);
}
public function removeTransition(_arg1:Transition):Boolean{
if (((((!(_arg1)) || (!(this._transitions)))) || (!(this._transitions[_arg1.ID])))){
return (false);
};
_arg1.cleanUp();
return (delete this._transitions[_arg1.ID]);
}
public function get transitionsList():Object{
return (this._transitions);
}
public static function start(_arg1:MovieClip, _arg2:Object):Transition{
if (!_arg1.__transitionManager){
_arg1.__transitionManager = new TransitionManager(_arg1);
};
if (_arg2.direction == 1){
_arg1.__transitionManager._triggerEvent = "hide";
} else {
_arg1.__transitionManager._triggerEvent = "reveal";
};
return (_arg1.__transitionManager.startTransition(_arg2));
}
}
}//package fl.transitions
Section 5
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 6
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 7
//ceri_m_33 (marooned_main_01_fla.ceri_m_33)
package marooned_main_01_fla {
import flash.display.*;
public dynamic class ceri_m_33 extends MovieClip {
public function ceri_m_33(){
addFrameScript(53, frame54);
}
function frame54(){
stop();
}
}
}//package marooned_main_01_fla
Section 8
//dream3_m_30 (marooned_main_01_fla.dream3_m_30)
package marooned_main_01_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class dream3_m_30 extends MovieClip {
public function dream3_m_30(){
addFrameScript(91, frame92);
}
function frame92(){
stop();
MovieClip(this.parent).dreamDone();
}
}
}//package marooned_main_01_fla
Section 9
//endClip_34 (marooned_main_01_fla.endClip_34)
package marooned_main_01_fla {
import flash.display.*;
public dynamic class endClip_34 extends MovieClip {
public var snake_mc:MovieClip;
public var sun2_mc:MovieClip;
public var sea_mc:MovieClip;
public var clouds_mc:MovieClip;
public var shipScene_mc:MovieClip;
public var cloud_mc:cloud_m;
}
}//package marooned_main_01_fla
Section 10
//guyShipArrives_m_31 (marooned_main_01_fla.guyShipArrives_m_31)
package marooned_main_01_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class guyShipArrives_m_31 extends MovieClip {
public function guyShipArrives_m_31(){
addFrameScript(153, frame154);
}
function frame154(){
stop();
MovieClip(this.parent).shipAtIsland();
}
}
}//package marooned_main_01_fla
Section 11
//headLogo_m_32 (marooned_main_01_fla.headLogo_m_32)
package marooned_main_01_fla {
import flash.display.*;
public dynamic class headLogo_m_32 extends MovieClip {
public function headLogo_m_32(){
addFrameScript(75, frame76);
}
function frame76(){
stop();
}
}
}//package marooned_main_01_fla
Section 12
//intro_19 (marooned_main_01_fla.intro_19)
package marooned_main_01_fla {
import flash.display.*;
public dynamic class intro_19 extends MovieClip {
public var title_mc:MovieClip;
}
}//package marooned_main_01_fla
Section 13
//MainTimeline (marooned_main_01_fla.MainTimeline)
package marooned_main_01_fla {
import flash.events.*;
import fl.transitions.*;
import flash.display.*;
import fl.transitions.easing.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var headDream:headDream_m;
public var guyPick:guyPick_m;
public var g_flowerOneState:int;
public var g_seedOneFallen:Boolean;
public var headPick:headPick_m;
public var currentMusic:String;
public var rainTwo:rainTwo_m;
public var rainOne:rainOne_m;
public var musicPlaying:Boolean;
public var flowerOne_mc:flower_m;
public var myTransitionManager:TransitionManager;
public var newMusic:String;
public var sun_mc:MovieClip;
public var guyX:int;
public var guyY:int;
public var volAdjust:Number;
public var endScene:theEnd_m;
public var headX:int;
public var headY:int;
public var shipScene_mc:MovieClip;
public var clouds_mc:MovieClip;
public var headHat:headHat_m;
public var trans:SoundTransform;
public var flowerTwo_mc:flower_m;
public var logo_mc:MovieClip;
public var g_state:int;
public var guyUmAway:guyUmAway_m;
public var snake_mc:MovieClip;
public var channel:SoundChannel;
public var g_snakeEating:Boolean;
public var sunshine_mc:sunshine_m;
public var headUmbrella:headUmbrella_m;
public var rainY:int;
public var shipMusic:shipLoop;
public var rainContainer:placeholder;
public var dream_mc:MovieClip;
public var rainX:int;
public var guyContainer:placeholder;
public var guyDream:guyDream_m;
public var end_mc:MovieClip;
public var ceri_mc:MovieClip;
public var g_seedTwoFallen:Boolean;
public var sea_mc:MovieClip;
public var guyUmbrella:guyUmbrella_m;
public var endSc2_mc:MovieClip;
public var headIdle:headIdle_m;
public var guyIdle:guyIdle_m;
public var cloud_mc:cloud_m;
public var endContainer:placeholder;
public var mainMusic:mainLoop;
public var g_flowerTwoState:int;
public function MainTimeline(){
addFrameScript(1, frame2, 2, frame3, 7, frame8, 197, frame198, 335, frame336);
}
public function disableDream(){
dream_mc.visible = false;
dream_mc.stop();
}
public function seedDropped(){
if (g_state == 5){
};
}
public function initSnake(){
snake_mc.stop();
snake_mc.buttonMode = true;
snake_mc.addEventListener(MouseEvent.CLICK, snakeClick);
}
public function disableFlowerOne(){
if (flowerOne_mc.visible){
flowerOne_mc.visible = false;
flowerOne_mc.stop();
};
}
public function flowerTwoClick(_arg1:MouseEvent):void{
switch (g_flowerTwoState){
case 0:
flowerTwo_mc.gotoAndPlay("petals");
g_flowerTwoState = 1;
break;
case 1:
flowerTwo_mc.gotoAndPlay("fruit");
g_flowerTwoState = 2;
break;
case 2:
flowerTwo_mc.gotoAndPlay("drop");
g_flowerTwoState = 3;
g_seedTwoFallen = true;
if (((g_seedOneFallen) && (g_seedTwoFallen))){
if (!g_snakeEating){
snake_mc.gotoAndPlay("seedtwo");
g_snakeEating = true;
guyPickUp("pickOne");
} else {
guyPickUp("pickTwo");
};
g_state = 5;
} else {
g_snakeEating = true;
snake_mc.gotoAndPlay("seedTwo");
};
break;
};
}
public function initGuy(){
addChild(guyContainer);
guyContainer.x = guyX;
guyContainer.y = guyY;
guyContainer.addChild(guyIdle);
guyContainer.addChild(headIdle);
headIdle.x = headX;
headIdle.y = headY;
guyIdle.gotoAndPlay(1);
headIdle.gotoAndPlay(1);
guyContainer.buttonMode = true;
guyContainer.addEventListener(MouseEvent.CLICK, guyClick);
}
public function dreamDone(){
disableDream();
enableCloud();
guyContainer.removeChild(guyDream);
guyContainer.removeChild(headDream);
guyContainer.addChild(guyIdle);
guyContainer.addChild(headIdle);
headIdle.x = headX;
headIdle.y = headY;
guyIdle.gotoAndPlay(1);
headIdle.gotoAndPlay(1);
}
public function setMusicLoop():void{
if (currentMusic == "mainMusic"){
newMusic = "shipMusic";
} else {
newMusic = "mainMusic";
};
playSound();
}
public function ceriRollOver(_arg1:MouseEvent):void{
ceri_mc.gotoAndPlay("over");
}
public function playSound():void{
if (!musicPlaying){
channel = this[newMusic].play();
currentMusic = newMusic;
musicPlaying = true;
channel.addEventListener(Event.SOUND_COMPLETE, soundComplete);
};
}
public function flowerOneClick(_arg1:MouseEvent):void{
switch (g_flowerOneState){
case 0:
flowerOne_mc.gotoAndPlay("petals");
g_flowerOneState = 1;
break;
case 1:
flowerOne_mc.gotoAndPlay("fruit");
g_flowerOneState = 2;
break;
case 2:
flowerOne_mc.gotoAndPlay("drop");
g_flowerOneState = 3;
g_seedOneFallen = true;
if (((g_seedOneFallen) && (g_seedTwoFallen))){
if (!g_snakeEating){
snake_mc.gotoAndPlay("seedOne");
g_snakeEating = true;
guyPickUp("pickTwo");
} else {
guyPickUp("pickOne");
};
g_state = 5;
} else {
g_snakeEating = true;
snake_mc.gotoAndPlay("seedOne");
};
break;
};
}
public function initFlowers(){
flowerOne_mc.visible = true;
flowerOne_mc.gotoAndPlay("bud");
flowerTwo_mc.visible = true;
flowerTwo_mc.gotoAndPlay("bud");
}
public function removeEndGame(){
this.removeChild(endContainer);
}
public function snakeClick(_arg1:MouseEvent):void{
if (g_state < 5){
snake_mc.gotoAndPlay("click");
};
}
public function cloudClick(_arg1:MouseEvent):void{
if (g_state == 2){
cloud_mc.removeEventListener(MouseEvent.CLICK, cloudClick);
cloud_mc.buttonMode = false;
rainContainer.addChild(rainTwo);
rainTwo.gotoAndPlay(1);
g_state = 3;
} else {
rainContainer.addChild(rainOne);
rainOne.gotoAndPlay(1);
g_state = 1;
if (!guyContainer.buttonMode){
guyContainer.buttonMode = true;
guyContainer.addEventListener(MouseEvent.CLICK, guyClick);
};
};
}
function frame3(){
mainMusic = new mainLoop();
shipMusic = new shipLoop();
currentMusic = "";
newMusic = "";
musicPlaying = false;
trans = new SoundTransform(1, 0);
volAdjust = 0.1;
}
function frame2(){
stop();
}
public function seedTwoPickedUp(){
g_flowerTwoState = 0;
snake_mc.buttonMode = false;
snake_mc.removeEventListener(MouseEvent.CLICK, snakeClick);
}
function frame8(){
g_state = -1;
g_flowerOneState = 0;
g_flowerTwoState = 0;
g_seedOneFallen = false;
g_seedTwoFallen = false;
g_snakeEating = false;
guyContainer = new placeholder();
guyIdle = new guyIdle_m();
guyDream = new guyDream_m();
guyUmbrella = new guyUmbrella_m();
guyUmAway = new guyUmAway_m();
guyPick = new guyPick_m();
guyX = 176;
guyY = 394;
headIdle = new headIdle_m();
headDream = new headDream_m();
headUmbrella = new headUmbrella_m();
headPick = new headPick_m();
headHat = new headHat_m();
headX = -3;
headY = -38;
rainContainer = new placeholder();
rainOne = new rainOne_m();
rainTwo = new rainTwo_m();
rainX = 76;
rainY = -128;
stop();
disableShipScene();
fadeVolume();
disableDream();
disableSunshine();
disableFlowers();
initGuy();
initCloud();
initSun();
initSnake();
initLogo();
initCeri();
}
public function seedOnePickedUp(){
g_flowerTwoState = 0;
snake_mc.buttonMode = false;
snake_mc.removeEventListener(MouseEvent.CLICK, snakeClick);
}
public function logoClick(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gilestimms.com");
navigateToURL(_local2);
}
public function enableCloud():void{
cloud_mc.buttonMode = true;
cloud_mc.addEventListener(MouseEvent.CLICK, cloudClick);
}
public function sunClick(_arg1:MouseEvent):void{
if (g_state == 3){
sunshine_mc.visible = true;
sunshine_mc.gotoAndPlay(1);
putAwayUmbrella();
g_state = 4;
};
sun_mc.gotoAndPlay(1);
}
function frame198(){
endContainer = new placeholder();
endScene = new theEnd_m();
myTransitionManager = new TransitionManager(endSc2_mc);
myTransitionManager.startTransition({type:Iris, direction:Transition.OUT, duration:2, easing:Regular.easeOut, shape:Iris.CIRCLE});
myTransitionManager.addEventListener("allTransitionsOutDone", animationComplete);
}
public function seedTwoEaten(){
g_snakeEating = false;
g_seedTwoFallen = false;
g_flowerTwoState = 0;
if (g_state == 5){
disableFlowerTwo();
} else {
flowerTwo_mc.gotoAndPlay("bud");
};
}
public function onEnterFrame(_arg1:Event):void{
if (trans.volume > 0){
trans.volume = (trans.volume - volAdjust);
channel.soundTransform = trans;
} else {
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
if (musicPlaying){
channel.stop();
};
musicPlaying = false;
setMusicLoop();
trans.volume = 1;
};
}
public function fadeVolume():void{
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function seedOneEaten(){
g_snakeEating = false;
g_seedOneFallen = false;
g_flowerOneState = 0;
if (g_state == 5){
disableFlowerOne();
} else {
flowerOne_mc.gotoAndPlay("bud");
};
}
public function guyHelmetClick(_arg1:MouseEvent):void{
guyContainer.removeChild(headPick);
guyContainer.addChild(headHat);
headHat.x = headX;
headHat.y = headY;
guyPick.gotoAndPlay("wearHelmet");
headHat.gotoAndPlay(1);
guyContainer.buttonMode = false;
guyContainer.removeEventListener(MouseEvent.CLICK, guyHelmetClick);
}
public function initLogo(){
logo_mc.stop();
logo_mc.buttonMode = true;
logo_mc.addEventListener(MouseEvent.ROLL_OVER, logoRollOver);
logo_mc.addEventListener(MouseEvent.ROLL_OUT, logoRollOut);
logo_mc.addEventListener(MouseEvent.CLICK, logoClick);
}
public function animationComplete(_arg1:Event):void{
endSc2_mc.stop();
this.addChild(endContainer);
endContainer.x = 0;
endContainer.y = 0;
endContainer.addChild(endScene);
endScene.gotoAndPlay(1);
}
public function shipAtIsland(){
gotoAndPlay("end");
}
public function ceriClick(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.cerifrostmusic.com");
navigateToURL(_local2);
}
public function guyClick(_arg1:MouseEvent):void{
if (g_state == -1){
guyContainer.buttonMode = false;
guyContainer.removeEventListener(MouseEvent.CLICK, guyClick);
guyContainer.removeChild(guyIdle);
guyContainer.removeChild(headIdle);
guyContainer.addChild(guyDream);
guyContainer.addChild(headDream);
headDream.x = headX;
headDream.y = headY;
guyDream.gotoAndPlay(1);
headDream.gotoAndPlay(1);
dream_mc.visible = true;
dream_mc.gotoAndPlay(1);
g_state = 0;
} else {
if (g_state == 1){
guyContainer.removeChild(guyIdle);
guyContainer.removeChild(headIdle);
guyContainer.addChild(guyUmbrella);
guyContainer.addChild(headUmbrella);
headUmbrella.x = headX;
headUmbrella.y = headY;
guyUmbrella.gotoAndPlay(1);
guyContainer.removeEventListener(MouseEvent.CLICK, guyClick);
guyContainer.buttonMode = false;
g_state = 2;
};
};
}
public function putAwayUmbrella(){
guyContainer.removeChild(guyUmbrella);
guyContainer.addChildAt(guyUmAway, 0);
guyUmAway.gotoAndPlay(1);
}
public function initCloud(){
addChild(rainContainer);
rainContainer.x = rainX;
rainContainer.y = rainY;
}
public function initFruit(){
}
public function initSun(){
sun_mc.stop();
sun_mc.buttonMode = true;
sun_mc.addEventListener(MouseEvent.CLICK, sunClick);
}
public function ceriRollOut(_arg1:MouseEvent):void{
ceri_mc.gotoAndStop("up");
}
public function initCeri(){
ceri_mc.stop();
ceri_mc.buttonMode = true;
ceri_mc.addEventListener(MouseEvent.ROLL_OVER, ceriRollOver);
ceri_mc.addEventListener(MouseEvent.ROLL_OUT, ceriRollOut);
ceri_mc.addEventListener(MouseEvent.CLICK, ceriClick);
}
public function logoRollOut(_arg1:MouseEvent):void{
logo_mc.gotoAndStop("up");
}
public function initBuds(){
flowerOne_mc.buttonMode = true;
flowerOne_mc.addEventListener(MouseEvent.CLICK, flowerOneClick);
flowerTwo_mc.buttonMode = true;
flowerTwo_mc.addEventListener(MouseEvent.CLICK, flowerTwoClick);
}
function frame336(){
stop();
}
public function startShipScene(){
fadeVolume();
sun_mc.removeEventListener(MouseEvent.CLICK, sunClick);
sun_mc.buttonMode = false;
logo_mc.removeEventListener(MouseEvent.ROLL_OVER, logoRollOver);
logo_mc.removeEventListener(MouseEvent.ROLL_OUT, logoRollOut);
logo_mc.removeEventListener(MouseEvent.CLICK, logoClick);
logo_mc.buttonMode = false;
logo_mc.visible = false;
ceri_mc.removeEventListener(MouseEvent.ROLL_OVER, ceriRollOver);
ceri_mc.removeEventListener(MouseEvent.ROLL_OUT, ceriRollOut);
ceri_mc.removeEventListener(MouseEvent.CLICK, ceriClick);
ceri_mc.buttonMode = false;
ceri_mc.visible = false;
guyContainer.removeChild(guyPick);
guyContainer.removeChild(headHat);
shipScene_mc.alpha = 1;
shipScene_mc.gotoAndPlay(1);
}
public function soundComplete(_arg1:Event):void{
channel = this[currentMusic].play();
channel.addEventListener(Event.SOUND_COMPLETE, soundComplete);
}
public function disableFlowers(){
flowerOne_mc.visible = false;
flowerOne_mc.stop();
flowerTwo_mc.visible = false;
flowerTwo_mc.stop();
}
public function initPetals(){
}
public function disableSunshine(){
sunshine_mc.visible = false;
sunshine_mc.stop();
initFlowers();
}
public function fruitDone(){
}
public function disableShipScene(){
shipScene_mc.stop();
shipScene_mc.alpha = 0;
}
public function logoRollOver(_arg1:MouseEvent):void{
logo_mc.gotoAndPlay("over");
}
public function enableHelmet(){
guyContainer.buttonMode = true;
guyContainer.addEventListener(MouseEvent.CLICK, guyHelmetClick);
}
public function guyPickUp(_arg1:String){
guyContainer.removeChild(guyUmAway);
guyContainer.removeChild(headUmbrella);
guyContainer.addChild(guyPick);
guyContainer.addChild(headPick);
headPick.x = headX;
headPick.y = headY;
guyPick.gotoAndPlay(_arg1);
headPick.gotoAndPlay(1);
}
public function disableFlowerTwo(){
if (flowerTwo_mc.visible){
flowerTwo_mc.visible = false;
flowerTwo_mc.stop();
};
}
}
}//package marooned_main_01_fla
Section 14
//marooned_m_21 (marooned_main_01_fla.marooned_m_21)
package marooned_main_01_fla {
import flash.display.*;
public dynamic class marooned_m_21 extends MovieClip {
public function marooned_m_21(){
addFrameScript(137, frame138);
}
function frame138(){
MovieClip(this.parent.parent).gotoAndPlay("sound");
}
}
}//package marooned_main_01_fla
Section 15
//snake_m_26 (marooned_main_01_fla.snake_m_26)
package marooned_main_01_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class snake_m_26 extends MovieClip {
public function snake_m_26(){
addFrameScript(39, frame40, 66, frame67, 67, frame68, 76, frame77, 98, frame99, 99, frame100, 103, frame104);
}
function frame77(){
stop();
}
function frame100(){
MovieClip(this.parent).seedTwoEaten();
}
function frame104(){
stop();
}
function frame99(){
}
function frame40(){
stop();
}
function frame67(){
}
function frame68(){
MovieClip(this.parent).seedOneEaten();
}
}
}//package marooned_main_01_fla
Section 16
//sun_m_28 (marooned_main_01_fla.sun_m_28)
package marooned_main_01_fla {
import flash.display.*;
public dynamic class sun_m_28 extends MovieClip {
public function sun_m_28(){
addFrameScript(36, frame37);
}
function frame37(){
stop();
}
}
}//package marooned_main_01_fla
Section 17
//Timeline_1 (marooned_main_01_fla.Timeline_1)
package marooned_main_01_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class Timeline_1 extends MovieClip {
public const FRAME_RATE_ADJUST:Boolean = true;
public const LOADER_FRAME_RATE:Number = 30;
public const AUTO_PLAY:Boolean = false;
public var bar:MovieClip;
public var ngButton:SimpleButton;
public var playButton:SimpleButton;
public var movieFrameRate:Number;
public var loadingComplete:Boolean;
public var tankLogo:MovieClip;
public var initialized:Boolean;
public function Timeline_1(){
addFrameScript(0, frame1, 50, frame51);
}
public function init():void{
if (initialized){
return;
};
movieFrameRate = 0;
if (((FRAME_RATE_ADJUST) && (stage))){
movieFrameRate = stage.frameRate;
stage.frameRate = LOADER_FRAME_RATE;
};
initialized = true;
stop();
if (((root) && ((root is MovieClip)))){
MovieClip(root).stop();
};
loadingComplete = false;
ngButton.addEventListener(MouseEvent.CLICK, ngButtonClickHandler, false, 0, true);
addEventListener(Event.ENTER_FRAME, enterFrameHandler, false, 0, true);
if (meetsVersion([9, 0, 28, 0])){
addEventListener(Event.REMOVED_FROM_STAGE, cleanup, false, 0, true);
};
enterFrameHandler();
}
public function enterFrameHandler(_arg1:Event=null):void{
var _local2:Number;
if (((((!(movieFrameRate)) && (FRAME_RATE_ADJUST))) && (stage))){
movieFrameRate = stage.frameRate;
stage.frameRate = LOADER_FRAME_RATE;
};
if (!loadingComplete){
_local2 = 0;
if (loaderInfo){
_local2 = (loaderInfo.bytesLoaded / loaderInfo.bytesTotal);
};
if (bar){
bar.scaleX = _local2;
};
if (_local2 == 1){
loadingComplete = true;
if (AUTO_PLAY){
startMovie();
} else {
gotoAndPlay("loaded");
};
};
};
}
public function meetsVersion(_arg1:Array):Boolean{
var _local2:Array;
var _local3:uint;
_local2 = String(Capabilities.version.split(" ")[1]).split(",");
_local3 = 0;
while (_local3 < _arg1.length) {
if (uint(_local2[_local3]) > _arg1[_local3]){
return (true);
};
if (uint(_local2[_local3]) < _arg1[_local3]){
return (false);
};
_local3++;
};
return (true);
}
public function playButtonClickHandler(_arg1:Event=null):void{
startMovie();
}
function frame1(){
initialized = false;
init();
}
public function ngButtonClickHandler(_arg1:Event):void{
navigateToURL(new URLRequest("http://www.newgrounds.com"), "_blank");
}
public function cleanup(_arg1:Event=null){
if (initialized){
ngButton.removeEventListener(MouseEvent.CLICK, ngButtonClickHandler);
removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
if (meetsVersion([9, 0, 28, 0])){
removeEventListener(Event.REMOVED_FROM_STAGE, cleanup);
};
if (movieFrameRate){
stage.frameRate = movieFrameRate;
movieFrameRate = 0;
};
};
initialized = false;
}
function frame51(){
stop();
if (((playButton) && (!(playButton.hasEventListener(MouseEvent.CLICK))))){
playButton.addEventListener(MouseEvent.CLICK, playButtonClickHandler, false, 0, true);
};
}
public function startMovie():void{
cleanup();
if (((root) && ((root is MovieClip)))){
MovieClip(root).play();
};
dispatchEvent(new Event(Event.COMPLETE));
}
}
}//package marooned_main_01_fla
Section 18
//Timeline_16 (marooned_main_01_fla.Timeline_16)
package marooned_main_01_fla {
import flash.display.*;
public dynamic class Timeline_16 extends MovieClip {
public function Timeline_16(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package marooned_main_01_fla
Section 19
//cloud_m (cloud_m)
package {
import flash.display.*;
public dynamic class cloud_m extends MovieClip {
}
}//package
Section 20
//flower_m (flower_m)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class flower_m extends MovieClip {
public function flower_m(){
addFrameScript(31, frame32, 53, frame54, 99, frame100, 117, frame118);
}
function frame100(){
stop();
MovieClip(this.parent).fruitDone();
}
function frame118(){
stop();
MovieClip(this.parent).seedDropped();
}
function frame32(){
stop();
MovieClip(this.parent).initBuds();
}
function frame54(){
stop();
MovieClip(this.parent).initFruit();
}
}
}//package
Section 21
//guyDream_m (guyDream_m)
package {
import flash.display.*;
public dynamic class guyDream_m extends MovieClip {
}
}//package
Section 22
//guyIdle_m (guyIdle_m)
package {
import flash.display.*;
public dynamic class guyIdle_m extends MovieClip {
public function guyIdle_m(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 23
//guyPick_m (guyPick_m)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class guyPick_m extends MovieClip {
public function guyPick_m(){
addFrameScript(0, frame1, 12, frame13, 13, frame14, 36, frame37, 49, frame50, 50, frame51, 276, frame277, 298, frame299);
}
function frame277(){
stop();
MovieClip(this.parent.parent).enableHelmet();
}
function frame299(){
stop();
MovieClip(this.parent.parent).startShipScene();
}
function frame14(){
MovieClip(this.parent.parent).seedTwoPickedUp();
}
function frame1(){
}
function frame13(){
MovieClip(this.parent.parent).disableFlowerTwo();
}
function frame37(){
stop();
gotoAndPlay("make");
}
function frame51(){
MovieClip(this.parent.parent).seedOnePickedUp();
}
function frame50(){
MovieClip(this.parent.parent).disableFlowerOne();
}
}
}//package
Section 24
//guyUmAway_m (guyUmAway_m)
package {
import flash.display.*;
public dynamic class guyUmAway_m extends MovieClip {
public function guyUmAway_m(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package
Section 25
//guyUmbrella_m (guyUmbrella_m)
package {
import flash.display.*;
public dynamic class guyUmbrella_m extends MovieClip {
public function guyUmbrella_m(){
addFrameScript(71, frame72);
}
function frame72(){
stop();
}
}
}//package
Section 26
//headDream_m (headDream_m)
package {
import flash.display.*;
public dynamic class headDream_m extends MovieClip {
}
}//package
Section 27
//headHat_m (headHat_m)
package {
import flash.display.*;
public dynamic class headHat_m extends MovieClip {
}
}//package
Section 28
//headIdle_m (headIdle_m)
package {
import flash.display.*;
public dynamic class headIdle_m extends MovieClip {
}
}//package
Section 29
//headPick_m (headPick_m)
package {
import flash.display.*;
public dynamic class headPick_m extends MovieClip {
}
}//package
Section 30
//headPlaceholder_m (headPlaceholder_m)
package {
import flash.display.*;
public dynamic class headPlaceholder_m extends MovieClip {
}
}//package
Section 31
//headUmbrella_m (headUmbrella_m)
package {
import flash.display.*;
public dynamic class headUmbrella_m extends MovieClip {
}
}//package
Section 32
//mainLoop (mainLoop)
package {
import flash.media.*;
public dynamic class mainLoop extends Sound {
}
}//package
Section 33
//placeholder (placeholder)
package {
import flash.display.*;
public dynamic class placeholder extends MovieClip {
}
}//package
Section 34
//rainOne_m (rainOne_m)
package {
import flash.display.*;
public dynamic class rainOne_m extends MovieClip {
public function rainOne_m(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package
Section 35
//rainTwo_m (rainTwo_m)
package {
import flash.display.*;
public dynamic class rainTwo_m extends MovieClip {
public function rainTwo_m(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package
Section 36
//shipLoop (shipLoop)
package {
import flash.media.*;
public dynamic class shipLoop extends Sound {
}
}//package
Section 37
//sunshine_m (sunshine_m)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class sunshine_m extends MovieClip {
public function sunshine_m(){
addFrameScript(77, frame78);
}
function frame78(){
stop();
MovieClip(root).disableSunshine();
}
}
}//package
Section 38
//theEnd_m (theEnd_m)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class theEnd_m extends MovieClip {
public var replay_btn:SimpleButton;
public function theEnd_m(){
addFrameScript(18, frame19, 22, frame23);
}
function frame19(){
replay_btn.enabled = false;
}
function frame23(){
stop();
replay_btn.enabled = true;
replay_btn.addEventListener(MouseEvent.CLICK, replayGame);
}
public function replayGame(_arg1:MouseEvent):void{
MovieClip(this.parent.parent).gotoAndStop("main");
MovieClip(this.parent.parent).removeEndGame();
}
}
}//package