Section 1
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var target:Object;
public var property:String;
public var start:Number;
public var change:Number;
public var name:String;
public var priority:int;
public var isPlugin:Boolean;
public var nextNode:PropTween;
public var prevNode:PropTween;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 2
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
protected var _firstChild:TweenCore;
protected var _lastChild:TweenCore;
public var autoRemoveChildren:Boolean;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.cachedOrphan)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
_arg1.cachedOrphan = false;
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.cachedOrphan){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
_arg1.cachedOrphan = true;
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local5:Number;
var _local6:TweenCore;
var _local4:TweenCore = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
}
}//package com.greensock.core
Section 3
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
protected var _delay:Number;
protected var _hasUpdate:Boolean;
protected var _rawPrevTime:Number;// = -1
protected var _pauseTime:Number;
public var vars:Object;
public var active:Boolean;
public var gc:Boolean;
public var initted:Boolean;
public var timeline:SimpleTimeline;
public var cachedStartTime:Number;
public var cachedTime:Number;
public var cachedTotalTime:Number;
public var cachedDuration:Number;
public var cachedTotalDuration:Number;
public var cachedTimeScale:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var prevNode:TweenCore;
public var cachedOrphan:Boolean;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var data;
public static const version:Number = 1.38;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
this.vars = ((_arg2)!=null) ? _arg2 : {};
this.cachedDuration = (this.cachedTotalDuration = _arg1);
_delay = (this.vars.delay) ? Number(this.vars.delay) : 0;
this.cachedTimeScale = (this.vars.timeScale) ? Number(this.vars.timeScale) : 1;
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
var _local3:SimpleTimeline = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function pause():void{
this.paused = true;
}
public function resume():void{
this.paused = false;
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.totalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime == this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function invalidate():void{
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.gc))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (!_arg2){
this.timeline.remove(this, true);
};
};
this.gc = !(_arg1);
return (false);
}
public function kill():void{
setEnabled(false, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function get delay():Number{
return (_delay);
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get currentTime():Number{
return (this.cachedTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
_pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime));
_pauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
}
}//package com.greensock.core
Section 4
//OverwriteManager (com.greensock.OverwriteManager)
package com.greensock {
import com.greensock.core.*;
import flash.utils.*;
import flash.errors.*;
public class OverwriteManager {
public static const version:Number = 6.02;
public static const NONE:int = 0;
public static const ALL_IMMEDIATE:int = 1;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const ALL_ONSTART:int = 4;
public static const PREEXISTING:int = 5;
public static var mode:int;
public static var enabled:Boolean;
public static function init(_arg1:int=2):int{
if (TweenLite.version < 11.1){
throw (new Error("Warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com."));
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Object, _arg3:Array, _arg4:uint):Boolean{
var _local5:int;
var _local6:Boolean;
var _local7:TweenLite;
var _local13:uint;
var _local14:Number;
var _local15:Number;
var _local16:TweenCore;
var _local17:Number;
var _local18:SimpleTimeline;
if (_arg4 >= 4){
_local13 = _arg3.length;
_local5 = 0;
while (_local5 < _local13) {
_local7 = _arg3[_local5];
if (_local7 != _arg1){
if (_local7.setEnabled(false, false)){
_local6 = true;
};
} else {
if (_arg4 == 5){
break;
};
};
_local5++;
};
return (_local6);
};
var _local8:Number = (_arg1.cachedStartTime + 1E-10);
var _local9:Array = [];
var _local10:Array = [];
var _local11:uint;
var _local12:uint;
_local5 = _arg3.length;
while (--_local5 > -1) {
_local7 = _arg3[_local5];
if ((((_local7 == _arg1)) || (_local7.gc))){
} else {
if (_local7.timeline != _arg1.timeline){
if (!getGlobalPaused(_local7)){
var _temp1 = _local11;
_local11 = (_local11 + 1);
var _local19 = _temp1;
_local10[_local19] = _local7;
};
} else {
if ((((((_local7.cachedStartTime <= _local8)) && ((((_local7.cachedStartTime + _local7.totalDuration) + 1E-10) > _local8)))) && (!(getGlobalPaused(_local7))))){
var _temp2 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp2;
_local9[_local19] = _local7;
};
};
};
};
if (_local11 != 0){
_local14 = _arg1.cachedTimeScale;
_local15 = _local8;
_local18 = _arg1.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.cachedStartTime);
_local18 = _local18.timeline;
};
_local8 = (_local14 * _local15);
_local5 = _local11;
while (--_local5 > -1) {
_local16 = _local10[_local5];
_local14 = _local16.cachedTimeScale;
_local15 = _local16.cachedStartTime;
_local18 = _local16.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.cachedStartTime);
_local18 = _local18.timeline;
};
_local17 = (_local14 * _local15);
if ((((_local17 <= _local8)) && ((((((_local17 + (_local16.totalDuration * _local14)) + 1E-10) > _local8)) || ((_local16.cachedDuration == 0)))))){
var _temp3 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp3;
_local9[_local19] = _local16;
};
};
};
if (_local12 == 0){
return (_local6);
};
_local5 = _local12;
if (_arg4 == 2){
while (--_local5 > -1) {
_local7 = _local9[_local5];
if (_local7.killVars(_arg2)){
_local6 = true;
};
if ((((_local7.cachedPT1 == null)) && (_local7.initted))){
_local7.setEnabled(false, false);
};
};
} else {
while (--_local5 > -1) {
if (TweenLite(_local9[_local5]).setEnabled(false, false)){
_local6 = true;
};
};
};
return (_local6);
}
public static function getGlobalPaused(_arg1:TweenCore):Boolean{
while (_arg1) {
if (_arg1.cachedPaused){
return (true);
};
_arg1 = _arg1.timeline;
};
return (false);
}
}
}//package com.greensock
Section 5
//TimelineLite (com.greensock.TimelineLite)
package com.greensock {
import com.greensock.core.*;
import flash.utils.*;
public class TimelineLite extends SimpleTimeline {
protected var _labels:Object;
protected var _endCaps:Array;
public static const version:Number = 1.38;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(2);
;
public function TimelineLite(_arg1:Object=null){
super(_arg1);
_endCaps = [];
_labels = {};
this.autoRemoveChildren = Boolean((this.vars.autoRemoveChildren == true));
_hasUpdate = Boolean((typeof(this.vars.onUpdate) == "function"));
if ((this.vars.tweens is Array)){
this.insertMultiple(this.vars.tweens, 0, ((this.vars.align)!=null) ? this.vars.align : "normal", (this.vars.stagger) ? Number(this.vars.stagger) : 0);
};
}
override public function addChild(_arg1:TweenCore):void{
var _local4:TweenCore;
var _local5:Number;
if (((!(_arg1.cachedOrphan)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
setDirtyCache(true);
var _local2:TweenCore = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
var _local3:TweenCore = ((_lastChild)!=null) ? _lastChild : _endCaps[1];
if (_local3 == null){
_local3 = _arg1;
_local2 = _local3;
_arg1.nextNode = (_arg1.prevNode = null);
} else {
_local4 = _local3;
_local5 = _arg1.cachedStartTime;
while (((!((_local4 == null))) && ((_local5 <= _local4.cachedStartTime)))) {
_local4 = _local4.prevNode;
};
if (_local4 == null){
_local2.prevNode = _arg1;
_arg1.nextNode = _local2;
_arg1.prevNode = null;
_local2 = _arg1;
} else {
if (_local4.nextNode){
_local4.nextNode.prevNode = _arg1;
} else {
if (_local4 == _local3){
_local3 = _arg1;
};
};
_arg1.prevNode = _local4;
_arg1.nextNode = _local4.nextNode;
_local4.nextNode = _arg1;
};
};
_arg1.cachedOrphan = false;
if (this.gc){
_endCaps[0] = _local2;
_endCaps[1] = _local3;
} else {
_firstChild = _local2;
_lastChild = _local3;
};
}
override public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.cachedOrphan){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
var _local3:TweenCore = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
var _local4:TweenCore = ((_lastChild)!=null) ? _lastChild : _endCaps[1];
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_local4 == _arg1){
_local4 = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_local3 == _arg1){
_local3 = _arg1.nextNode;
};
};
if (this.gc){
_endCaps[0] = _local3;
_endCaps[1] = _local4;
} else {
_firstChild = _local3;
_lastChild = _local4;
};
_arg1.cachedOrphan = true;
setDirtyCache(true);
}
public function insert(_arg1:TweenCore, _arg2=0):void{
if (typeof(_arg2) == "string"){
if (!(_arg2 in _labels)){
addLabel(_arg2, this.duration);
};
_arg2 = Number(_labels[_arg2]);
};
_arg1.cachedStartTime = (Number(_arg2) + _arg1.delay);
addChild(_arg1);
}
public function append(_arg1:TweenCore, _arg2:Number=0):void{
insert(_arg1, (this.duration + _arg2));
}
public function prepend(_arg1:TweenCore, _arg2:Boolean=false):void{
shiftChildren(((_arg1.totalDuration / _arg1.cachedTimeScale) + _arg1.delay), _arg2, 0);
insert(_arg1, 0);
}
public function insertMultiple(_arg1:Array, _arg2=0, _arg3:String="normal", _arg4:Number=0):void{
var _local5:int;
var _local6:TweenCore;
var _local7:Number = ((Number(_arg2)) || (0));
var _local8:uint = _arg1.length;
if (typeof(_arg2) == "string"){
if (!(_arg2 in _labels)){
addLabel(_arg2, this.duration);
};
_local7 = _labels[_arg2];
};
_local5 = 0;
while (_local5 < _local8) {
_local6 = (_arg1[_local5] as TweenCore);
insert(_local6, _local7);
if (_arg3 == "sequence"){
_local7 = (_local6.cachedStartTime + (_local6.totalDuration / _local6.cachedTimeScale));
} else {
if (_arg3 == "start"){
_local6.cachedStartTime = (_local6.cachedStartTime - _local6.delay);
};
};
_local7 = (_local7 + _arg4);
_local5++;
};
}
public function appendMultiple(_arg1:Array, _arg2:Number=0, _arg3:String="normal", _arg4:Number=0):void{
insertMultiple(_arg1, (this.duration + _arg2), _arg3, _arg4);
}
public function prependMultiple(_arg1:Array, _arg2:String="normal", _arg3:Number=0, _arg4:Boolean=false):void{
var _local5:TimelineLite = new TimelineLite({tweens:_arg1, align:_arg2, stagger:_arg3});
shiftChildren(_local5.duration, _arg4, 0);
insertMultiple(_arg1, 0, _arg2, _arg3);
_local5.kill();
}
public function addLabel(_arg1:String, _arg2:Number):void{
_labels[_arg1] = _arg2;
}
public function removeLabel(_arg1:String):Number{
var _local2:Number = _labels[_arg1];
delete _labels[_arg1];
return (_local2);
}
public function getLabelTime(_arg1:String):Number{
return (((_arg1 in _labels)) ? Number(_labels[_arg1]) : -1);
}
protected function parseTimeOrLabel(_arg1):Number{
if (typeof(_arg1) == "string"){
if (!(_arg1 in _labels)){
throw (new Error((("TimelineLite error: the " + _arg1) + " label was not found.")));
};
return (getLabelTime(String(_arg1)));
};
return (Number(_arg1));
}
public function stop():void{
this.paused = true;
}
public function gotoAndPlay(_arg1, _arg2:Boolean=true):void{
setTotalTime(parseTimeOrLabel(_arg1), _arg2);
play();
}
public function gotoAndStop(_arg1, _arg2:Boolean=true):void{
setTotalTime(parseTimeOrLabel(_arg1), _arg2);
this.paused = true;
}
public function goto(_arg1, _arg2:Boolean=true):void{
setTotalTime(parseTimeOrLabel(_arg1), _arg2);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local8:TweenCore;
var _local9:Boolean;
var _local10:Boolean;
var _local11:TweenCore;
var _local12:Number;
if (this.gc){
this.setEnabled(true, false);
} else {
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
};
var _local4:Number = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
var _local5:Number = this.cachedTime;
var _local6:Number = this.cachedStartTime;
var _local7:Number = this.cachedTimeScale;
var _local13:Boolean = this.cachedPaused;
if (_arg1 >= _local4){
if ((((_rawPrevTime <= _local4)) && (!((_rawPrevTime == _arg1))))){
this.cachedTotalTime = (this.cachedTime = _local4);
forceChildrenToEnd(_local4, _arg2);
_local9 = !(this.hasPausedChild());
_local10 = true;
if ((((((this.cachedDuration == 0)) && (_local9))) && ((((_arg1 == 0)) || ((_rawPrevTime < 0)))))){
_arg3 = true;
};
};
} else {
if (_arg1 <= 0){
if (_arg1 < 0){
this.active = false;
if ((((this.cachedDuration == 0)) && ((_rawPrevTime > 0)))){
_arg3 = true;
_local9 = true;
};
};
if ((((_rawPrevTime >= 0)) && (!((_rawPrevTime == _arg1))))){
forceChildrenToBeginning(0, _arg2);
this.cachedTotalTime = 0;
this.cachedTime = 0;
_local10 = true;
if (this.cachedReversed){
_local9 = true;
};
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
};
};
_rawPrevTime = _arg1;
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
this.initted = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (_local10){
} else {
if ((this.cachedTime - _local5) > 0){
_local8 = _firstChild;
while (_local8) {
_local11 = _local8.nextNode;
if (((this.cachedPaused) && (!(_local13)))){
break;
} else {
if (((_local8.active) || (((((!(_local8.cachedPaused)) && ((_local8.cachedStartTime <= this.cachedTime)))) && (!(_local8.gc)))))){
if (!_local8.cachedReversed){
_local8.renderTime(((this.cachedTime - _local8.cachedStartTime) * _local8.cachedTimeScale), _arg2, false);
} else {
_local12 = (_local8.cacheIsDirty) ? _local8.totalDuration : _local8.cachedTotalDuration;
_local8.renderTime((_local12 - ((this.cachedTime - _local8.cachedStartTime) * _local8.cachedTimeScale)), _arg2, false);
};
};
};
_local8 = _local11;
};
} else {
_local8 = _lastChild;
while (_local8) {
_local11 = _local8.prevNode;
if (((this.cachedPaused) && (!(_local13)))){
break;
} else {
if (((_local8.active) || (((((!(_local8.cachedPaused)) && ((_local8.cachedStartTime <= _local5)))) && (!(_local8.gc)))))){
if (!_local8.cachedReversed){
_local8.renderTime(((this.cachedTime - _local8.cachedStartTime) * _local8.cachedTimeScale), _arg2, false);
} else {
_local12 = (_local8.cacheIsDirty) ? _local8.totalDuration : _local8.cachedTotalDuration;
_local8.renderTime((_local12 - ((this.cachedTime - _local8.cachedStartTime) * _local8.cachedTimeScale)), _arg2, false);
};
};
};
_local8 = _local11;
};
};
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (((((_local9) && ((((_local6 == this.cachedStartTime)) || (!((_local7 == this.cachedTimeScale))))))) && ((((_local4 >= this.totalDuration)) || ((this.cachedTime == 0)))))){
complete(true, _arg2);
};
}
protected function forceChildrenToBeginning(_arg1:Number, _arg2:Boolean=false):Number{
var _local4:TweenCore;
var _local5:Number;
var _local3:TweenCore = _lastChild;
var _local6:Boolean = this.cachedPaused;
while (_local3) {
_local4 = _local3.prevNode;
if (((this.cachedPaused) && (!(_local6)))){
break;
} else {
if (((_local3.active) || (((((!(_local3.cachedPaused)) && (!(_local3.gc)))) && (((!((_local3.cachedTotalTime == 0))) || ((_local3.cachedDuration == 0)))))))){
if ((((_arg1 == 0)) && (((!((_local3.cachedDuration == 0))) || ((_local3.cachedStartTime == 0)))))){
_local3.renderTime((_local3.cachedReversed) ? _local3.cachedTotalDuration : 0, _arg2, false);
} else {
if (!_local3.cachedReversed){
_local3.renderTime(((_arg1 - _local3.cachedStartTime) * _local3.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local3.cacheIsDirty) ? _local3.totalDuration : _local3.cachedTotalDuration;
_local3.renderTime((_local5 - ((_arg1 - _local3.cachedStartTime) * _local3.cachedTimeScale)), _arg2, false);
};
};
};
};
_local3 = _local4;
};
return (_arg1);
}
protected function forceChildrenToEnd(_arg1:Number, _arg2:Boolean=false):Number{
var _local4:TweenCore;
var _local5:Number;
var _local3:TweenCore = _firstChild;
var _local6:Boolean = this.cachedPaused;
while (_local3) {
_local4 = _local3.nextNode;
if (((this.cachedPaused) && (!(_local6)))){
break;
} else {
if (((_local3.active) || (((((!(_local3.cachedPaused)) && (!(_local3.gc)))) && (((!((_local3.cachedTotalTime == _local3.cachedTotalDuration))) || ((_local3.cachedDuration == 0)))))))){
if ((((_arg1 == this.cachedDuration)) && (((!((_local3.cachedDuration == 0))) || ((_local3.cachedStartTime == this.cachedDuration)))))){
_local3.renderTime((_local3.cachedReversed) ? 0 : _local3.cachedTotalDuration, _arg2, false);
} else {
if (!_local3.cachedReversed){
_local3.renderTime(((_arg1 - _local3.cachedStartTime) * _local3.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local3.cacheIsDirty) ? _local3.totalDuration : _local3.cachedTotalDuration;
_local3.renderTime((_local5 - ((_arg1 - _local3.cachedStartTime) * _local3.cachedTimeScale)), _arg2, false);
};
};
};
};
_local3 = _local4;
};
return (_arg1);
}
public function hasPausedChild():Boolean{
var _local1:TweenCore = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
while (_local1) {
if (((_local1.cachedPaused) || ((((_local1 is TimelineLite)) && ((_local1 as TimelineLite).hasPausedChild()))))){
return (true);
};
_local1 = _local1.nextNode;
};
return (false);
}
public function getChildren(_arg1:Boolean=true, _arg2:Boolean=true, _arg3:Boolean=true, _arg4:Number=-9999999999):Array{
var _local5:Array = [];
var _local6:uint;
var _local7:TweenCore = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
while (_local7) {
if (_local7.cachedStartTime < _arg4){
} else {
if ((_local7 is TweenLite)){
if (_arg2){
var _temp1 = _local6;
_local6 = (_local6 + 1);
var _local8 = _temp1;
_local5[_local8] = _local7;
};
} else {
if (_arg3){
var _temp2 = _local6;
_local6 = (_local6 + 1);
_local8 = _temp2;
_local5[_local8] = _local7;
};
if (_arg1){
_local5 = _local5.concat(TimelineLite(_local7).getChildren(true, _arg2, _arg3));
};
};
};
_local7 = _local7.nextNode;
};
return (_local5);
}
public function getTweensOf(_arg1:Object, _arg2:Boolean=true):Array{
var _local5:int;
var _local3:Array = getChildren(_arg2, true, false);
var _local4:Array = [];
var _local6:uint = _local3.length;
var _local7:uint;
_local5 = 0;
while (_local5 < _local6) {
if (TweenLite(_local3[_local5]).target == _arg1){
var _temp1 = _local7;
_local7 = (_local7 + 1);
var _local8 = _temp1;
_local4[_local8] = _local3[_local5];
};
_local5++;
};
return (_local4);
}
public function shiftChildren(_arg1:Number, _arg2:Boolean=false, _arg3:Number=0):void{
var _local5:String;
var _local4:TweenCore = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
while (_local4) {
if (_local4.cachedStartTime >= _arg3){
_local4.cachedStartTime = (_local4.cachedStartTime + _arg1);
};
_local4 = _local4.nextNode;
};
if (_arg2){
for (_local5 in _labels) {
if (_labels[_local5] >= _arg3){
_labels[_local5] = (_labels[_local5] + _arg1);
};
};
};
this.setDirtyCache(true);
}
public function killTweensOf(_arg1:Object, _arg2:Boolean=true, _arg3:Object=null):Boolean{
var _local6:TweenLite;
var _local4:Array = getTweensOf(_arg1, _arg2);
var _local5:int = _local4.length;
while (--_local5 > -1) {
_local6 = _local4[_local5];
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
return (Boolean((_local4.length > 0)));
}
override public function invalidate():void{
var _local1:TweenCore = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
while (_local1) {
_local1.invalidate();
_local1 = _local1.nextNode;
};
}
public function clear(_arg1:Array=null):void{
if (_arg1 == null){
_arg1 = getChildren(false, true, true);
};
var _local2:int = _arg1.length;
while (--_local2 > -1) {
TweenCore(_arg1[_local2]).setEnabled(false, false);
};
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:TweenCore;
var _local4:TweenCore;
if (_arg1 == this.gc){
if (_arg1){
_local3 = _endCaps[0];
_firstChild = _local3;
_lastChild = _endCaps[1];
} else {
_local3 = _firstChild;
_endCaps = [_firstChild, _lastChild];
_firstChild = (_lastChild = null);
};
while (_local3) {
_local3.setEnabled(_arg1, true);
_local3 = _local3.nextNode;
};
};
return (super.setEnabled(_arg1, _arg2));
}
public function get currentProgress():Number{
return ((this.cachedTime / this.duration));
}
public function set currentProgress(_arg1:Number):void{
setTotalTime((this.duration * _arg1), false);
}
override public function get duration():Number{
var _local1:Number;
if (this.cacheIsDirty){
_local1 = this.totalDuration;
};
return (this.cachedDuration);
}
override public function set duration(_arg1:Number):void{
if (((!((this.duration == 0))) && (!((_arg1 == 0))))){
this.timeScale = (this.duration / _arg1);
};
}
override public function get totalDuration():Number{
var _local1:Number;
var _local2:Number;
var _local3:TweenCore;
var _local4:Number;
var _local5:TweenCore;
if (this.cacheIsDirty){
_local1 = 0;
_local3 = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
_local4 = -(Infinity);
while (_local3) {
_local5 = _local3.nextNode;
if (_local3.cachedStartTime < _local4){
this.addChild(_local3);
_local4 = _local3.prevNode.cachedStartTime;
} else {
_local4 = _local3.cachedStartTime;
};
if (_local3.cachedStartTime < 0){
_local1 = (_local1 - _local3.cachedStartTime);
this.shiftChildren(-(_local3.cachedStartTime), false, -9999999999);
};
_local2 = (_local3.cachedStartTime + (_local3.totalDuration / _local3.cachedTimeScale));
if (_local2 > _local1){
_local1 = _local2;
};
_local3 = _local5;
};
this.cachedDuration = (this.cachedTotalDuration = _local1);
this.cacheIsDirty = false;
};
return (this.cachedTotalDuration);
}
override public function set totalDuration(_arg1:Number):void{
if (((!((this.totalDuration == 0))) && (!((_arg1 == 0))))){
this.timeScale = (this.totalDuration / _arg1);
};
}
public function get timeScale():Number{
return (this.cachedTimeScale);
}
public function set timeScale(_arg1:Number):void{
if (_arg1 == 0){
_arg1 = 0.0001;
};
var _local2:Number = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
this.cachedStartTime = (_local2 - (((_local2 - this.cachedStartTime) * this.cachedTimeScale) / _arg1));
this.cachedTimeScale = _arg1;
setDirtyCache(false);
}
public function get useFrames():Boolean{
var _local1:SimpleTimeline = this.timeline;
while (_local1.timeline) {
_local1 = _local1.timeline;
};
return (Boolean((_local1 == TweenLite.rootFramesTimeline)));
}
override public function get rawTime():Number{
if (((!((this.cachedTotalTime == 0))) && (!((this.cachedTotalTime == this.cachedTotalDuration))))){
return (this.cachedTotalTime);
};
return (((this.timeline.rawTime - this.cachedStartTime) * this.cachedTimeScale));
}
}
}//package com.greensock
Section 6
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.display.*;
import flash.events.*;
import com.greensock.core.*;
import flash.utils.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
public var target:Object;
public var propTweenLookup:Object;
public var ratio:Number;// = 0
public var cachedPT1:PropTween;
protected var _ease:Function;
protected var _overwrite:uint;
protected var _overwrittenProps:Object;
protected var _hasPlugins:Boolean;
protected var _notifyPluginsOfEnabled:Boolean;
public static const version:Number = 11.36;
public static var plugins:Object = {};
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var defaultEase:Function = TweenLite.easeOut;
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var rootTimeline:SimpleTimeline;
public static var rootFramesTimeline:SimpleTimeline;
public static var masterList:Dictionary = new Dictionary(false);
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onInit:1, onInitParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local5:TweenLite;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (this.vars.timeScale))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
var _local4:Array = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (this.vars.onInit){
this.vars.onInit.apply(null, this.vars.onInitParams);
};
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (--_local2 > -1) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number = this.cachedTime;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
var _local6:PropTween = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (((_arg2) && (!((_arg1 == _overwrittenProps))))){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame++;
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (--_local5 > -1) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false, _arg3:Object=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
if ((_arg1 in masterList)){
_local4 = masterList[_arg1];
_local5 = _local4.length;
while (--_local5 > -1) {
_local6 = _local4[_local5];
if (!_local6.gc){
if (_arg2){
_local6.complete(false, false);
};
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
};
if (_arg3 == null){
delete masterList[_arg1];
};
};
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
}
}//package com.greensock
Section 7
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public class AdLoader {
private static var cpmstarLoader:Loader;
public static function LoadAd(_arg1:int, _arg2:int):DisplayObject{
Security.allowDomain("server.cpmstar.com");
var _local3 = "http://server.cpmstar.com/adviewas3.swf";
cpmstarLoader = new Loader();
cpmstarLoader.load(new URLRequest(((((_local3 + "?poolid=") + _arg1) + "&subpoolid=") + _arg2)));
return (cpmstarLoader);
}
}
}//package CPMStar
Section 8
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 9
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _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) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 10
//_CharactersExporter_576 (PnC_Game_fla._CharactersExporter_576)
package PnC_Game_fla {
import flash.display.*;
public dynamic class _CharactersExporter_576 extends MovieClip {
public function _CharactersExporter_576(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 11
//_EpisodesExporter_63 (PnC_Game_fla._EpisodesExporter_63)
package PnC_Game_fla {
import flash.display.*;
public dynamic class _EpisodesExporter_63 extends MovieClip {
public function _EpisodesExporter_63(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 12
//_SoundsExporter_16 (PnC_Game_fla._SoundsExporter_16)
package PnC_Game_fla {
import flash.display.*;
public dynamic class _SoundsExporter_16 extends MovieClip {
public function _SoundsExporter_16(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
}
function frame2(){
}
}
}//package PnC_Game_fla
Section 13
//_WindowsExporter_17 (PnC_Game_fla._WindowsExporter_17)
package PnC_Game_fla {
import flash.display.*;
public dynamic class _WindowsExporter_17 extends MovieClip {
public function _WindowsExporter_17(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 14
//abroyLogo12_589 (PnC_Game_fla.abroyLogo12_589)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class abroyLogo12_589 extends MovieClip {
public function abroyLogo12_589(){
addFrameScript(0, frame1);
}
public function onMouseClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.abroy.com"), "_blank");
}
function frame1(){
buttonMode = true;
useHandCursor = true;
addEventListener(MouseEvent.CLICK, onMouseClick);
}
}
}//package PnC_Game_fla
Section 15
//all_level2_473 (PnC_Game_fla.all_level2_473)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level2_473 extends MovieClip {
public function all_level2_473(){
addFrameScript(0, frame1, 21, frame22, 56, frame57);
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame57(){
stop();
}
}
}//package PnC_Game_fla
Section 16
//all_level2_476 (PnC_Game_fla.all_level2_476)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class all_level2_476 extends MovieClip {
public function all_level2_476(){
addFrameScript(0, frame1, 53, frame54, 96, frame97, 97, frame98);
}
function frame1(){
stop();
}
function frame54(){
stop();
MovieClip(parent).jf.playAnim("upset", function (){
MovieClip(parent).lose();
});
}
function frame97(){
MovieClip(parent).pult.visible = true;
}
function frame98(){
stop();
}
}
}//package PnC_Game_fla
Section 17
//all_level2_479 (PnC_Game_fla.all_level2_479)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level2_479 extends MovieClip {
public function all_level2_479(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package PnC_Game_fla
Section 18
//all_level2_487 (PnC_Game_fla.all_level2_487)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level2_487 extends MovieClip {
public function all_level2_487(){
addFrameScript(43, frame44, 66, frame67);
}
function frame44(){
}
function frame67(){
stop();
}
}
}//package PnC_Game_fla
Section 19
//all_level2_488 (PnC_Game_fla.all_level2_488)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level2_488 extends MovieClip {
public function all_level2_488(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 20
//all_level2_491 (PnC_Game_fla.all_level2_491)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level2_491 extends MovieClip {
public function all_level2_491(){
addFrameScript(75, frame76);
}
function frame76(){
stop();
}
}
}//package PnC_Game_fla
Section 21
//all_level2_497 (PnC_Game_fla.all_level2_497)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level2_497 extends MovieClip {
public function all_level2_497(){
addFrameScript(0, frame1, 76, frame77);
}
function frame1(){
stop();
}
function frame77(){
stop();
}
}
}//package PnC_Game_fla
Section 22
//all_level4_373 (PnC_Game_fla.all_level4_373)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class all_level4_373 extends MovieClip {
public var bear:MovieClip;
public var cubic:MovieClip;
public var spider:MovieClip;
public var doll:MovieClip;
public function all_level4_373(){
addFrameScript(0, frame1, 61, frame62, 121, frame122, 175, frame176, 234, frame235, 290, frame291);
}
function frame1(){
stop();
}
function frame62(){
stop();
MovieClip(parent).win();
}
function frame122(){
stop();
MovieClip(parent).lose();
}
function frame176(){
stop();
MovieClip(parent).lose();
}
function frame235(){
stop();
MovieClip(parent).lose();
}
function frame291(){
stop();
MovieClip(parent).lose();
}
}
}//package PnC_Game_fla
Section 23
//all_level4_385 (PnC_Game_fla.all_level4_385)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level4_385 extends MovieClip {
public function all_level4_385(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package PnC_Game_fla
Section 24
//all_level4_386 (PnC_Game_fla.all_level4_386)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level4_386 extends MovieClip {
public function all_level4_386(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package PnC_Game_fla
Section 25
//all_level4_388 (PnC_Game_fla.all_level4_388)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level4_388 extends MovieClip {
public function all_level4_388(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package PnC_Game_fla
Section 26
//all_level4_390 (PnC_Game_fla.all_level4_390)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level4_390 extends MovieClip {
public function all_level4_390(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PnC_Game_fla
Section 27
//all_level4_391 (PnC_Game_fla.all_level4_391)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level4_391 extends MovieClip {
public function all_level4_391(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package PnC_Game_fla
Section 28
//all_level8_115 (PnC_Game_fla.all_level8_115)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level8_115 extends MovieClip {
public function all_level8_115(){
addFrameScript(189, frame190, 298, frame299, 346, frame347);
}
function frame190(){
gotoAndPlay(1);
}
function frame299(){
gotoAndPlay(218);
}
function frame347(){
stop();
}
}
}//package PnC_Game_fla
Section 29
//all_level8_127 (PnC_Game_fla.all_level8_127)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level8_127 extends MovieClip {
public function all_level8_127(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package PnC_Game_fla
Section 30
//all_level8_134 (PnC_Game_fla.all_level8_134)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class all_level8_134 extends MovieClip {
public function all_level8_134(){
addFrameScript(13, frame14, 23, frame24);
}
function frame14(){
MovieClip(parent.parent).jf.playAnim("die", function (){
MovieClip(parent.parent).lose();
});
}
function frame24(){
stop();
}
}
}//package PnC_Game_fla
Section 31
//all_level8_136 (PnC_Game_fla.all_level8_136)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level8_136 extends MovieClip {
public function all_level8_136(){
addFrameScript(33, frame34);
}
function frame34(){
gotoAndPlay(7);
}
}
}//package PnC_Game_fla
Section 32
//all_level8_137 (PnC_Game_fla.all_level8_137)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level8_137 extends MovieClip {
public function all_level8_137(){
addFrameScript(31, frame32);
}
function frame32(){
stop();
}
}
}//package PnC_Game_fla
Section 33
//all_level8_70 (PnC_Game_fla.all_level8_70)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level8_70 extends MovieClip {
public function all_level8_70(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 34
//all_level8_89 (PnC_Game_fla.all_level8_89)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class all_level8_89 extends MovieClip {
public function all_level8_89(){
addFrameScript(0, frame1, 204, frame205);
}
function frame1(){
stop();
}
function frame205(){
stop();
MovieClip(parent).win();
}
}
}//package PnC_Game_fla
Section 35
//all_level8_92 (PnC_Game_fla.all_level8_92)
package PnC_Game_fla {
import flash.display.*;
public dynamic class all_level8_92 extends MovieClip {
public function all_level8_92(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 36
//all_level8_94 (PnC_Game_fla.all_level8_94)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class all_level8_94 extends MovieClip {
public function all_level8_94(){
addFrameScript(0, frame1, 96, frame97, 140, frame141);
}
function frame1(){
stop();
}
function frame97(){
MovieClip(parent).astronaut.gotoAndStop(3);
MovieClip(parent).action = true;
}
function frame141(){
stop();
}
}
}//package PnC_Game_fla
Section 37
//button_4 (PnC_Game_fla.button_4)
package PnC_Game_fla {
import flash.display.*;
public dynamic class button_4 extends MovieClip {
public function button_4(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 38
//Console_614 (PnC_Game_fla.Console_614)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Console_614 extends MovieClip {
public var scrollerH:MovieClip;
public var btnClose:MovieClip;
public var command_tf:TextField;
public var content:MovieClip;
public var scrollerV:MovieClip;
public var sbv;
public var sbh;
public function Console_614(){
addFrameScript(0, frame1);
}
public function clearHistory():void{
content.cont_mc.history_tf.text = "";
}
public function clearCommand():void{
command_tf.text = "";
}
public function clearAll():void{
content.cont_mc.history_tf.text = "";
command_tf.text = "";
}
public function addHistory(_arg1:String):void{
content.cont_mc.history_tf.text = (content.cont_mc.history_tf.text + (("> " + _arg1) + "\n"));
}
public function addMessage(_arg1:String):void{
content.cont_mc.history_tf.text = (content.cont_mc.history_tf.text + (_arg1 + "\n"));
}
public function getCommand():String{
return (command_tf.text);
}
public function onBtnCloseClick(_arg1:MouseEvent):void{
visible = false;
}
function frame1(){
sbv = new ScrollBarV(content.cont_mc, content.mask_mc, scrollerV.track_mc, scrollerV.thumb_mc, scrollerV.btnUp, scrollerV.btnDown);
sbh = new ScrollBarH(content.cont_mc, content.mask_mc, scrollerH.track_mc, scrollerH.thumb_mc, scrollerH.btnLeft, scrollerH.btnRight);
btnClose.addEventListener(MouseEvent.CLICK, onBtnCloseClick);
}
}
}//package PnC_Game_fla
Section 39
//cont_617 (PnC_Game_fla.cont_617)
package PnC_Game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cont_617 extends MovieClip {
public var history_tf:TextField;
public function cont_617(){
addFrameScript(0, frame1);
}
function frame1(){
history_tf.autoSize = "left";
}
}
}//package PnC_Game_fla
Section 40
//DustCloudGFX_36 (PnC_Game_fla.DustCloudGFX_36)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class DustCloudGFX_36 extends MovieClip {
public function DustCloudGFX_36(){
addFrameScript(0, frame1, 14, frame15);
}
function frame1(){
stop();
}
function frame15(){
dispatchEvent(new Event("animComplete"));
}
}
}//package PnC_Game_fla
Section 41
//FPSMonitor_596 (PnC_Game_fla.FPSMonitor_596)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public dynamic class FPSMonitor_596 extends MovieClip {
public var _tf:TextField;
public var begTime:Number;
public function FPSMonitor_596(){
addFrameScript(0, frame1);
}
public function onEnterFrameHandler(_arg1:Event):void{
var _local2:Number = (getTimer() - begTime);
var _local3:Number = (1000 / _local2);
if (_local3 >= 24){
_tf.textColor = 0xFF00;
} else {
if (_local3 >= 12){
_tf.textColor = 0xFFFF00;
} else {
_tf.textColor = 0xFF0000;
};
};
_tf.text = _local3.toFixed(3);
begTime = getTimer();
}
function frame1(){
begTime = 0;
addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
}
}
}//package PnC_Game_fla
Section 42
//HelpButton_603 (PnC_Game_fla.HelpButton_603)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class HelpButton_603 extends MovieClip {
public var hit:MovieClip;
public function HelpButton_603(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
public function onOut(_arg1:MouseEvent):void{
gotoAndPlay("out");
}
public function onClick(_arg1:MouseEvent):void{
if (((Game.helplink) && (!((Game.helplink == ""))))){
navigateToURL(new URLRequest(Game.helplink), "_blank");
} else {
Tracer.report("[!]", "Bad link URL.", "HintButton");
};
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
useHandCursor = true;
hitArea = hit;
addEventListener(MouseEvent.ROLL_OVER, onOver);
addEventListener(MouseEvent.ROLL_OUT, onOut);
addEventListener(MouseEvent.CLICK, onClick);
}
function frame2(){
play();
}
function frame8(){
stop();
}
function frame9(){
play();
}
}
}//package PnC_Game_fla
Section 43
//hl_15 (PnC_Game_fla.hl_15)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hl_15 extends MovieClip {
public function hl_15(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package PnC_Game_fla
Section 44
//L1_gate_569 (PnC_Game_fla.L1_gate_569)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L1_gate_569 extends MovieClip {
public function L1_gate_569(){
addFrameScript(0, frame1, 1, frame2, 13, frame14, 24, frame25);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame14(){
MovieClip(parent).gate2.gotoAndPlay(2);
}
function frame25(){
stop();
}
}
}//package PnC_Game_fla
Section 45
//L1_gate2_544 (PnC_Game_fla.L1_gate2_544)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_gate2_544 extends MovieClip {
public function L1_gate2_544(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
stop();
}
}
}//package PnC_Game_fla
Section 46
//L1_solder1_all_532 (PnC_Game_fla.L1_solder1_all_532)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_solder1_all_532 extends MovieClip {
public function L1_solder1_all_532(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 47
//L1_solder2_all_S2_546 (PnC_Game_fla.L1_solder2_all_S2_546)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_solder2_all_S2_546 extends MovieClip {
public function L1_solder2_all_S2_546(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package PnC_Game_fla
Section 48
//L1_swing_565 (PnC_Game_fla.L1_swing_565)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_swing_565 extends MovieClip {
public function L1_swing_565(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 19, frame20);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame20(){
stop();
}
}
}//package PnC_Game_fla
Section 49
//l1solder_1die_543 (PnC_Game_fla.l1solder_1die_543)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l1solder_1die_543 extends MovieClip {
public function l1solder_1die_543(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package PnC_Game_fla
Section 50
//l1solder_2die_S2_561 (PnC_Game_fla.l1solder_2die_S2_561)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l1solder_2die_S2_561 extends MovieClip {
public function l1solder_2die_S2_561(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package PnC_Game_fla
Section 51
//l1solder2_shoot_S2_562 (PnC_Game_fla.l1solder2_shoot_S2_562)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l1solder2_shoot_S2_562 extends MovieClip {
public function l1solder2_shoot_S2_562(){
addFrameScript(36, frame37, 44, frame45);
}
function frame37(){
MovieClip(parent.parent).jf.playAnim("shoot", function (){
MovieClip(parent.parent).lose();
});
}
function frame45(){
stop();
}
}
}//package PnC_Game_fla
Section 52
//l3_bike_434 (PnC_Game_fla.l3_bike_434)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_bike_434 extends MovieClip {
public function l3_bike_434(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 53
//l3_piramida0_422 (PnC_Game_fla.l3_piramida0_422)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l3_piramida0_422 extends MovieClip {
public var part1:MovieClip;
public var part2:MovieClip;
public var part3:MovieClip;
public var part4:MovieClip;
public function l3_piramida0_422(){
addFrameScript(0, frame1, 54, frame55);
}
function frame1(){
stop();
}
function frame55(){
stop();
MovieClip(parent).jf.playAnim("upset", function (){
MovieClip(parent).lose();
});
}
}
}//package PnC_Game_fla
Section 54
//l3_ring1_anim_423 (PnC_Game_fla.l3_ring1_anim_423)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_ring1_anim_423 extends MovieClip {
public function l3_ring1_anim_423(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package PnC_Game_fla
Section 55
//l3_ring2_anim_428 (PnC_Game_fla.l3_ring2_anim_428)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_ring2_anim_428 extends MovieClip {
public function l3_ring2_anim_428(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package PnC_Game_fla
Section 56
//l3_ring3_anim_429 (PnC_Game_fla.l3_ring3_anim_429)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_ring3_anim_429 extends MovieClip {
public function l3_ring3_anim_429(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package PnC_Game_fla
Section 57
//l3_ring4_anim_430 (PnC_Game_fla.l3_ring4_anim_430)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_ring4_anim_430 extends MovieClip {
public function l3_ring4_anim_430(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
}
}//package PnC_Game_fla
Section 58
//L3_steam_453 (PnC_Game_fla.L3_steam_453)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L3_steam_453 extends MovieClip {
public function L3_steam_453(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package PnC_Game_fla
Section 59
//l5_cannon1_318 (PnC_Game_fla.l5_cannon1_318)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l5_cannon1_318 extends MovieClip {
public function l5_cannon1_318(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 17, frame18, 33, frame34, 49, frame50);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame10(){
MovieClip(parent).robot.gotoAndStop(3);
}
function frame18(){
stop();
}
function frame34(){
stop();
}
function frame50(){
stop();
}
}
}//package PnC_Game_fla
Section 60
//l5_car_331 (PnC_Game_fla.l5_car_331)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_car_331 extends MovieClip {
public function l5_car_331(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 61
//l5_gate_344 (PnC_Game_fla.l5_gate_344)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_gate_344 extends MovieClip {
public function l5_gate_344(){
addFrameScript(0, frame1, 15, frame16);
}
function frame1(){
stop();
}
function frame16(){
stop();
}
}
}//package PnC_Game_fla
Section 62
//l5_robot_anim_334 (PnC_Game_fla.l5_robot_anim_334)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_robot_anim_334 extends MovieClip {
public function l5_robot_anim_334(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package PnC_Game_fla
Section 63
//l5_robot_anim_fall_338 (PnC_Game_fla.l5_robot_anim_fall_338)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_robot_anim_fall_338 extends MovieClip {
public function l5_robot_anim_fall_338(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package PnC_Game_fla
Section 64
//l5_robot_anim_gun_340 (PnC_Game_fla.l5_robot_anim_gun_340)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l5_robot_anim_gun_340 extends MovieClip {
public function l5_robot_anim_gun_340(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
MovieClip(parent.parent).jf.playAnim("upset", function (){
MovieClip(parent.parent).lose();
});
}
}
}//package PnC_Game_fla
Section 65
//L5_toy_car_fall_332 (PnC_Game_fla.L5_toy_car_fall_332)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_toy_car_fall_332 extends MovieClip {
public function L5_toy_car_fall_332(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package PnC_Game_fla
Section 66
//l6_fish_234 (PnC_Game_fla.l6_fish_234)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l6_fish_234 extends MovieClip {
public function l6_fish_234(){
addFrameScript(84, frame85, 103, frame104, 128, frame129, 140, frame141);
}
function frame85(){
gotoAndPlay(1);
}
function frame104(){
MovieClip(parent).jf.playAnim("die", function (){
MovieClip(parent).lose();
});
}
function frame129(){
stop();
}
function frame141(){
stop();
}
}
}//package PnC_Game_fla
Section 67
//l6_L6_aqualunger_all_265 (PnC_Game_fla.l6_L6_aqualunger_all_265)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_L6_aqualunger_all_265 extends MovieClip {
public function l6_L6_aqualunger_all_265(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 68
//l6_l6_assets_263 (PnC_Game_fla.l6_l6_assets_263)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_l6_assets_263 extends MovieClip {
public function l6_l6_assets_263(){
addFrameScript(0, frame1, 14, frame15);
}
function frame1(){
stop();
}
function frame15(){
stop();
}
}
}//package PnC_Game_fla
Section 69
//l6_l6_assets_273 (PnC_Game_fla.l6_l6_assets_273)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l6_l6_assets_273 extends MovieClip {
public function l6_l6_assets_273(){
addFrameScript(35, frame36, 42, frame43);
}
function frame36(){
MovieClip(parent.parent).door.gotoAndPlay(2);
}
function frame43(){
stop();
}
}
}//package PnC_Game_fla
Section 70
//l6_l6_items_228 (PnC_Game_fla.l6_l6_items_228)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_l6_items_228 extends MovieClip {
public function l6_l6_items_228(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 71
//l6_L6_octopus_246 (PnC_Game_fla.l6_L6_octopus_246)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_L6_octopus_246 extends MovieClip {
public function l6_L6_octopus_246(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package PnC_Game_fla
Section 72
//l6_octopus2_256 (PnC_Game_fla.l6_octopus2_256)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_octopus2_256 extends MovieClip {
public function l6_octopus2_256(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package PnC_Game_fla
Section 73
//l6_octopus3_257 (PnC_Game_fla.l6_octopus3_257)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_octopus3_257 extends MovieClip {
public function l6_octopus3_257(){
addFrameScript(75, frame76);
}
function frame76(){
gotoAndPlay(7);
}
}
}//package PnC_Game_fla
Section 74
//l6_octopus4_258 (PnC_Game_fla.l6_octopus4_258)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l6_octopus4_258 extends MovieClip {
public function l6_octopus4_258(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
MovieClip(parent.parent).aqualanger.gotoAndStop(2);
}
}
}//package PnC_Game_fla
Section 75
//L6_par_276 (PnC_Game_fla.L6_par_276)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L6_par_276 extends MovieClip {
public function L6_par_276(){
addFrameScript(0, frame1, 70, frame71);
}
function frame1(){
stop();
}
function frame71(){
MovieClip(parent).lose();
}
}
}//package PnC_Game_fla
Section 76
//l7_actions_spear_211 (PnC_Game_fla.l7_actions_spear_211)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l7_actions_spear_211 extends MovieClip {
public function l7_actions_spear_211(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package PnC_Game_fla
Section 77
//l7_dino_all_199 (PnC_Game_fla.l7_dino_all_199)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l7_dino_all_199 extends MovieClip {
public function l7_dino_all_199(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
}
}//package PnC_Game_fla
Section 78
//l7_dino_attack_208 (PnC_Game_fla.l7_dino_attack_208)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l7_dino_attack_208 extends MovieClip {
public function l7_dino_attack_208(){
addFrameScript(19, frame20, 41, frame42);
}
function frame20(){
MovieClip(parent.parent).jf.playAnim("die", function (){
MovieClip(parent.parent).lose();
});
}
function frame42(){
stop();
}
}
}//package PnC_Game_fla
Section 79
//l7_dino_trap_210 (PnC_Game_fla.l7_dino_trap_210)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l7_dino_trap_210 extends MovieClip {
public function l7_dino_trap_210(){
addFrameScript(58, frame59);
}
function frame59(){
gotoAndPlay("loop");
}
}
}//package PnC_Game_fla
Section 80
//l7_dino_trap_anim_209 (PnC_Game_fla.l7_dino_trap_anim_209)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l7_dino_trap_anim_209 extends MovieClip {
public function l7_dino_trap_anim_209(){
addFrameScript(124, frame125);
}
function frame125(){
stop();
}
}
}//package PnC_Game_fla
Section 81
//logo_11 (PnC_Game_fla.logo_11)
package PnC_Game_fla {
import flash.display.*;
public dynamic class logo_11 extends MovieClip {
public function logo_11(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package PnC_Game_fla
Section 82
//Logo_27 (PnC_Game_fla.Logo_27)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Logo_27 extends MovieClip {
public function Logo_27(){
addFrameScript(0, frame1);
}
public function onMouseClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.abroy.com"), "_blank");
}
function frame1(){
buttonMode = true;
useHandCursor = true;
addEventListener(MouseEvent.CLICK, onMouseClick);
}
}
}//package PnC_Game_fla
Section 83
//lvl3_monster_and_biker_433 (PnC_Game_fla.lvl3_monster_and_biker_433)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class lvl3_monster_and_biker_433 extends MovieClip {
public function lvl3_monster_and_biker_433(){
addFrameScript(0, frame1, 114, frame115);
}
function frame1(){
stop();
}
function frame115(){
stop();
MovieClip(parent).win();
}
}
}//package PnC_Game_fla
Section 84
//lvl3_monster_climbs_162 (PnC_Game_fla.lvl3_monster_climbs_162)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class lvl3_monster_climbs_162 extends MovieClip {
public var callback:Function;
public function lvl3_monster_climbs_162(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 85
//lvl3_monster_down_163 (PnC_Game_fla.lvl3_monster_down_163)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class lvl3_monster_down_163 extends MovieClip {
public var callback:Function;
public function lvl3_monster_down_163(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 86
//lvl3_monster_fall_L3_164 (PnC_Game_fla.lvl3_monster_fall_L3_164)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class lvl3_monster_fall_L3_164 extends MovieClip {
public var callback:Function;
public function lvl3_monster_fall_L3_164(){
addFrameScript(60, frame61);
}
function frame61(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 87
//m_eye_upset_149 (PnC_Game_fla.m_eye_upset_149)
package PnC_Game_fla {
import flash.display.*;
public dynamic class m_eye_upset_149 extends MovieClip {
public function m_eye_upset_149(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package PnC_Game_fla
Section 88
//MainTimeline (PnC_Game_fla.MainTimeline)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var game:Game;
public var memDisplay:MovieClip;
public var spfDisplay:MovieClip;
public var message:MovieClip;
public var prel:MovieClip;
public var console:MovieClip;
public var fpsDisplay:MovieClip;
public var _stopped:Boolean;
public var allowRun:Boolean;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function showProgress(_arg1:ProgressEvent):void{
if (!_stopped){
stop();
_stopped = true;
};
var _local2:Number = Math.floor(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100));
var _local3:Number = Math.round(((_arg1.bytesLoaded / _arg1.bytesTotal) * 45));
prel.pr_body.gotoAndStop(_local2);
trace((((((_arg1.bytesLoaded + "/") + _arg1.bytesTotal) + " (") + _local2) + "%)"));
if (_arg1.bytesLoaded >= _arg1.bytesTotal){
removeEventListener(ProgressEvent.PROGRESS, showProgress);
prel.gotoAndPlay(2);
trace("[%] LOADING COMPLETE");
};
}
public function onGameKeyDown(_arg1:KeyboardEvent):void{
if (Game.instance){
if (_arg1.keyCode == 67){
if (!console.visible){
console.visible = true;
} else {
if (stage.focus != console.command_tf){
console.visible = false;
};
};
};
if (_arg1.keyCode == 13){
if (stage.focus == console.command_tf){
CommandProcessor.process(console.getCommand());
};
};
} else {
_arg1.target.removeEventListener(KeyboardEvent.KEY_DOWN, onGameKeyDown);
};
}
function frame1(){
trace("+------------------------------------------------+");
trace("| PRELOADER |");
trace("+------------------------------------------------+");
stop();
_stopped = false;
allowRun = true;
Game.sitelock = false;
Game.gamemode = "normal";
Game.helplink = "http://www.abroy.com/play/adventure-games/juls-getaway-walkthrough";
Game.link1 = "http://www.abroy.com/play/adventure-games/donald-the-dino/";
Game.link2 = "http://www.abroy.com/play/adventure-games/carl-the-chef/";
Game.link3 = "http://www.abroy.com/play/adventure-games/andy-the-athlete/";
Game.link4 = "http://www.abroy.com/play/adventure-games/georg-the-ghost/";
Game.link5 = "http://www.abroy.com/play/adventure-games/gabriel-the-gladiator/";
if (Game.sitelock){
if (loaderInfo.url.indexOf("http://www.abroy.com") == -1){
allowRun = false;
};
};
if (allowRun){
if (loaderInfo.bytesLoaded == loaderInfo.bytesTotal){
removeEventListener(ProgressEvent.PROGRESS, showProgress);
prel.gotoAndPlay(2);
trace("LOADING COMPLETE");
} else {
loaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
};
} else {
prel.pr_body.gotoAndStop(1);
visible = false;
};
}
function frame2(){
stop();
trace("present window");
}
function frame3(){
trace("+------------------------------------------------+");
trace("| EXPORT CLASSES |");
trace("+------------------------------------------------+");
nextFrame();
}
function frame4(){
trace("+------------------------------------------------+");
trace("| MAIN MENU |");
trace("+------------------------------------------------+");
stop();
if (Console.mPlayer.isPlaying){
Console.mPlayer.stopMusic();
};
Console.pac_game = this;
if (Game.gamemode != "debug"){
memDisplay.visible = false;
spfDisplay.visible = false;
fpsDisplay.visible = false;
};
}
function frame5(){
trace("+------------------------------------------------+");
trace("| MAIN GAME |");
trace("+------------------------------------------------+");
stop();
Console.mPlayer.playMusic(new GameMusic());
console.visible = false;
console.alpha = 1;
console.clearAll();
if (Game.gamemode == "debug"){
message.gotoAndStop(2);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onGameKeyDown);
};
}
}
}//package PnC_Game_fla
Section 89
//MeetotherAbroy_49 (PnC_Game_fla.MeetotherAbroy_49)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class MeetotherAbroy_49 extends MovieClip {
public var abrhit:MovieClip;
public function MeetotherAbroy_49(){
addFrameScript(0, frame1);
}
public function onMouseClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.abroy.com"), "_blank");
}
function frame1(){
abrhit.buttonMode = true;
abrhit.useHandCursor = true;
abrhit.addEventListener(MouseEvent.CLICK, onMouseClick);
}
}
}//package PnC_Game_fla
Section 90
//MEMMonitor_594 (PnC_Game_fla.MEMMonitor_594)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public dynamic class MEMMonitor_594 extends MovieClip {
public var _tf:TextField;
public function MEMMonitor_594(){
addFrameScript(0, frame1);
}
public function onEnterFrameHandler(_arg1:Event):void{
var _local2:Number = Utils.getTotalMemory();
if (_local2 <= 16){
_tf.textColor = 0xFF00;
} else {
if (_local2 <= 24){
_tf.textColor = 0xFFFF00;
} else {
_tf.textColor = 0xFF0000;
};
};
_tf.text = _local2.toFixed(3);
}
function frame1(){
addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
}
}
}//package PnC_Game_fla
Section 91
//Menu_586 (PnC_Game_fla.Menu_586)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Menu_586 extends MovieClip {
public var playB:MovieClip;
public var moreg:MovieClip;
public function Menu_586(){
addFrameScript(0, frame1);
}
public function onClick1(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://abroy.com/"), "_blank");
}
public function onOver1(_arg1:MouseEvent):void{
moreg.gotoAndPlay(2);
}
public function onOut1(_arg1:MouseEvent):void{
moreg.gotoAndPlay(2);
}
public function onClick2(_arg1:MouseEvent):void{
Console.enterMainGame();
}
public function onOver2(_arg1:MouseEvent):void{
playB.gotoAndPlay(2);
}
public function onOut2(_arg1:MouseEvent):void{
playB.gotoAndPlay(2);
}
function frame1(){
moreg.buttonMode = true;
moreg.useHandCursor = true;
moreg.addEventListener(MouseEvent.CLICK, onClick1);
playB.buttonMode = true;
playB.useHandCursor = true;
playB.addEventListener(MouseEvent.CLICK, onClick2);
}
}
}//package PnC_Game_fla
Section 92
//Message_613 (PnC_Game_fla.Message_613)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Message_613 extends MovieClip {
public function Message_613(){
addFrameScript(0, frame1, 1, frame2);
}
public function onClick(_arg1:MouseEvent):void{
if (!parent["console"].visible){
parent["console"].visible = true;
} else {
parent["console"].visible = false;
};
}
function frame1(){
stop();
}
function frame2(){
stop();
addEventListener(MouseEvent.CLICK, onClick);
}
}
}//package PnC_Game_fla
Section 93
//monster_died_151 (PnC_Game_fla.monster_died_151)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_died_151 extends MovieClip {
public var callback:Function;
public function monster_died_151(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 94
//monster_died_L1_152 (PnC_Game_fla.monster_died_L1_152)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_died_L1_152 extends MovieClip {
public var callback:Function;
public function monster_died_L1_152(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 95
//monster_honey_156 (PnC_Game_fla.monster_honey_156)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_honey_156 extends MovieClip {
public var callback:Function;
public function monster_honey_156(){
addFrameScript(42, frame43);
}
function frame43(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 96
//monster_jump_up_147 (PnC_Game_fla.monster_jump_up_147)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_jump_up_147 extends MovieClip {
public var callback:Function;
public function monster_jump_up_147(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 97
//monster_L1_NO_154 (PnC_Game_fla.monster_L1_NO_154)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_L1_NO_154 extends MovieClip {
public var callback:Function;
public function monster_L1_NO_154(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 98
//monster_lvl01_155 (PnC_Game_fla.monster_lvl01_155)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_lvl01_155 extends MovieClip {
public var callback:Function;
public function monster_lvl01_155(){
addFrameScript(45, frame46);
}
function frame46(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
MovieClip(parent.parent).strip.visible = true;
}
}
}//package PnC_Game_fla
Section 99
//monster_NO_142 (PnC_Game_fla.monster_NO_142)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_NO_142 extends MovieClip {
public var callback:Function;
public function monster_NO_142(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 100
//monster_pult_160 (PnC_Game_fla.monster_pult_160)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_pult_160 extends MovieClip {
public var callback:Function;
public function monster_pult_160(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 101
//monster_quit_BANANA_158 (PnC_Game_fla.monster_quit_BANANA_158)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_quit_BANANA_158 extends MovieClip {
public var callback:Function;
public function monster_quit_BANANA_158(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 102
//monster_take_down_144 (PnC_Game_fla.monster_take_down_144)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_take_down_144 extends MovieClip {
public var callback:Function;
public function monster_take_down_144(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 103
//monster_take_middle_145 (PnC_Game_fla.monster_take_middle_145)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_take_middle_145 extends MovieClip {
public var callback:Function;
public function monster_take_middle_145(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 104
//monster_take_up_146 (PnC_Game_fla.monster_take_up_146)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_take_up_146 extends MovieClip {
public var callback:Function;
public function monster_take_up_146(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 105
//monster_throw_bumerang_171 (PnC_Game_fla.monster_throw_bumerang_171)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_throw_bumerang_171 extends MovieClip {
public var callback:Function;
public function monster_throw_bumerang_171(){
addFrameScript(27, frame28, 33, frame34);
}
function frame28(){
MovieClip(parent.parent).monster.gotoAndPlay(191);
}
function frame34(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 106
//monster_throw_lamp_165 (PnC_Game_fla.monster_throw_lamp_165)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_throw_lamp_165 extends MovieClip {
public var callback:Function;
public function monster_throw_lamp_165(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 107
//monster_throw_rope_167 (PnC_Game_fla.monster_throw_rope_167)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_throw_rope_167 extends MovieClip {
public var callback:Function;
public function monster_throw_rope_167(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 108
//monster_upset_148 (PnC_Game_fla.monster_upset_148)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class monster_upset_148 extends MovieClip {
public var callback:Function;
public function monster_upset_148(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 109
//moregames_button_01_588 (PnC_Game_fla.moregames_button_01_588)
package PnC_Game_fla {
import flash.display.*;
public dynamic class moregames_button_01_588 extends MovieClip {
public function moregames_button_01_588(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 110
//MuteButton_607 (PnC_Game_fla.MuteButton_607)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class MuteButton_607 extends MovieClip {
public var hit:MovieClip;
public function MuteButton_607(){
addFrameScript(0, frame1, 1, frame2);
}
public function onClick(_arg1:MouseEvent):void{
if (currentFrame == 1){
setVolume(0);
nextFrame();
} else {
setVolume(1);
prevFrame();
};
}
public function setVolume(_arg1:Number):void{
SoundMixer.soundTransform = new SoundTransform(_arg1);
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
useHandCursor = true;
hitArea = hit;
addEventListener(MouseEvent.CLICK, onClick);
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 111
//NextButton_23 (PnC_Game_fla.NextButton_23)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import windows.*;
public dynamic class NextButton_23 extends MovieClip {
public var hit:MovieClip;
public function NextButton_23(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
public function onOut(_arg1:MouseEvent):void{
gotoAndPlay("out");
}
public function onClick(_arg1:MouseEvent):void{
Console.nextEpisode();
if (parent){
(parent as Window).close();
};
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
useHandCursor = true;
hitArea = hit;
addEventListener(MouseEvent.ROLL_OVER, onOver);
addEventListener(MouseEvent.ROLL_OUT, onOut);
addEventListener(MouseEvent.CLICK, onClick);
}
function frame2(){
play();
}
function frame8(){
stop();
}
function frame9(){
play();
}
}
}//package PnC_Game_fla
Section 112
//play_btn_5 (PnC_Game_fla.play_btn_5)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class play_btn_5 extends MovieClip {
public var hit_mc:MovieClip;
public function play_btn_5(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 10, frame11, 19, frame20);
}
public function btnClick(_arg1:MouseEvent):void{
var _local2 = root;
_local2["gotoAndPlay"](2);
}
function frame1(){
stop();
buttonMode = true;
useHandCursor = true;
addEventListener(MouseEvent.CLICK, btnClick);
}
function frame2(){
play();
}
function frame10(){
stop();
}
function frame11(){
play();
}
function frame20(){
gotoAndStop("begin");
}
}
}//package PnC_Game_fla
Section 113
//play_button_01_587 (PnC_Game_fla.play_button_01_587)
package PnC_Game_fla {
import flash.display.*;
public dynamic class play_button_01_587 extends MovieClip {
public function play_button_01_587(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 114
//PlayButton_38 (PnC_Game_fla.PlayButton_38)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import windows.*;
public dynamic class PlayButton_38 extends MovieClip {
public var hit:MovieClip;
public function PlayButton_38(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
public function onOut(_arg1:MouseEvent):void{
gotoAndPlay("out");
}
public function onClick(_arg1:MouseEvent):void{
Console.playEpisode("first");
if (parent){
(parent as Window).close();
};
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
useHandCursor = true;
hitArea = hit;
addEventListener(MouseEvent.ROLL_OVER, onOver);
addEventListener(MouseEvent.ROLL_OUT, onOut);
addEventListener(MouseEvent.CLICK, onClick);
}
function frame2(){
play();
}
function frame8(){
stop();
}
function frame9(){
play();
}
}
}//package PnC_Game_fla
Section 115
//preloadBar_2 (PnC_Game_fla.preloadBar_2)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class preloadBar_2 extends MovieClip {
public var prel;
public function preloadBar_2(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
}
function frame100(){
stop();
prel = root["prel"];
prel.gotoAndPlay(2);
}
}
}//package PnC_Game_fla
Section 116
//Preloader_1 (PnC_Game_fla.Preloader_1)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import CPMStar.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Preloader_1 extends MovieClip {
public var adBox:MovieClip;
public var play_btn:MovieClip;
public var pr_body:MovieClip;
public var prel;
public var CPMStarPoolID:int;
public var CPMStarSubPoolID:int;
public var ad:DisplayObject;
public function Preloader_1(){
addFrameScript(0, frame1, 38, frame39);
}
function frame1(){
stop();
prel = root["prel"];
CPMStarPoolID = 18840;
CPMStarSubPoolID = 602;
ad = AdLoader.LoadAd(CPMStarPoolID, CPMStarSubPoolID);
adBox.addChild(ad);
}
function frame39(){
stop();
}
}
}//package PnC_Game_fla
Section 117
//Present_9 (PnC_Game_fla.Present_9)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Present_9 extends MovieClip {
public function Present_9(){
addFrameScript(149, frame150);
}
function frame150(){
MovieClip(parent).nextFrame();
}
}
}//package PnC_Game_fla
Section 118
//RetryButton_59 (PnC_Game_fla.RetryButton_59)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import windows.*;
public dynamic class RetryButton_59 extends MovieClip {
public var hit:MovieClip;
public function RetryButton_59(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 11, frame12);
}
public function onOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
public function onOut(_arg1:MouseEvent):void{
gotoAndPlay("out");
}
public function onClick(_arg1:MouseEvent):void{
Console.replayEpisode();
if (parent){
(parent as Window).close();
};
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
useHandCursor = true;
hitArea = hit;
addEventListener(MouseEvent.ROLL_OVER, onOver);
addEventListener(MouseEvent.ROLL_OUT, onOut);
addEventListener(MouseEvent.CLICK, onClick);
}
function frame2(){
play();
}
function frame11(){
stop();
}
function frame12(){
play();
}
}
}//package PnC_Game_fla
Section 119
//SPFMonitor_595 (PnC_Game_fla.SPFMonitor_595)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public dynamic class SPFMonitor_595 extends MovieClip {
public var _tf:TextField;
public var begTime:Number;
public function SPFMonitor_595(){
addFrameScript(0, frame1);
}
public function onEnterFrameHandler(_arg1:Event):void{
var _local2:Number = (getTimer() - begTime);
if (_local2 <= 42){
_tf.textColor = 0xFF00;
} else {
if (_local2 <= 83){
_tf.textColor = 0xFFFF00;
} else {
_tf.textColor = 0xFF0000;
};
};
_tf.text = ("" + _local2);
begTime = getTimer();
}
function frame1(){
begTime = 0;
addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
}
}
}//package PnC_Game_fla
Section 120
//Timeline_157 (PnC_Game_fla.Timeline_157)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_157 extends MovieClip {
public var callback:Function;
public function Timeline_157(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 121
//AutoWindow (windows.AutoWindow)
package windows {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class AutoWindow extends Window {
public var gfx:MovieClip;
public var holder:MovieClip;
private var _lifeTimer:Timer;
public function startLifeTimer(_arg1:Number=3000):void{
if (!_lifeTimer){
_lifeTimer = new Timer(_arg1, 1);
_lifeTimer.addEventListener(TimerEvent.TIMER_COMPLETE, closeSelf);
_lifeTimer.start();
} else {
throw (new Error("[AutoWindow] : <startLifeTimer> : Life timer already started."));
};
}
public function stopLifeTimer():void{
if (_lifeTimer){
if (_lifeTimer.running){
_lifeTimer.stop();
};
} else {
throw (new Error("[AutoWindow] : <stopLifeTimer> : Life timer not started."));
};
}
public function restartLifeTimer(_arg1:Number=3000):void{
if (_lifeTimer){
if (_lifeTimer.running){
_lifeTimer.stop();
};
_lifeTimer.reset();
_lifeTimer.delay = _arg1;
_lifeTimer.repeatCount = 1;
} else {
_lifeTimer = new Timer(_arg1, 1);
};
if (!_lifeTimer.hasEventListener(TimerEvent.TIMER_COMPLETE)){
_lifeTimer.addEventListener(TimerEvent.TIMER_COMPLETE, closeSelf);
};
_lifeTimer.start();
}
override public function close():void{
super.close();
if (_lifeTimer){
if (_lifeTimer.running){
_lifeTimer.stop();
};
if (_lifeTimer.hasEventListener(TimerEvent.TIMER_COMPLETE)){
_lifeTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, closeSelf);
};
_lifeTimer = undefined;
};
}
private function closeSelf(_arg1:TimerEvent):void{
_lifeTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, closeSelf);
_lifeTimer = undefined;
close();
}
}
}//package windows
Section 122
//Window (windows.Window)
package windows {
import flash.display.*;
import flash.text.*;
import flash.geom.*;
public class Window extends MovieClip {
public var time_tf:TextField;
public var preloader:MovieClip;
public function close():void{
var _local1:WindowsManager;
if (parent){
_local1 = (parent as WindowsManager);
if (_local1){
_local1.closeActiveWindow();
} else {
throw (new Error("[Window] : <close> : Wrong parent."));
};
};
}
public function alignToCenter():void{
var _local1:Rectangle = getBounds(this);
if (stage){
x = (((stage.stageWidth - width) / 2) - _local1.x);
y = (((stage.stageHeight - height) / 2) - _local1.y);
} else {
x = (((640 - width) / 2) - _local1.x);
y = (((480 - height) / 2) - _local1.y);
};
}
}
}//package windows
Section 123
//WindowsManager (windows.WindowsManager)
package windows {
import flash.display.*;
public class WindowsManager extends Sprite {
protected var _activeWindow:Window;
private static var _instance:WindowsManager;
public function WindowsManager(){
_instance = this;
}
public function get activeWindow():Window{
return (_activeWindow);
}
public function closeActiveWindow():void{
if (_activeWindow){
removeChild(_activeWindow);
_activeWindow = undefined;
} else {
throw (new Error("[WindowsManager] : <closeActiveWindow> : There is no active window."));
};
}
public function openActiveWindow(_arg1:Window):void{
if (_arg1){
if (_activeWindow){
closeActiveWindow();
};
_activeWindow = _arg1;
addChild(_activeWindow);
} else {
throw (new Error("[WindowsManager] : <openActiveWindow> : Can't open non-existing window."));
};
}
public function openFailWindow():Window{
var _local1:Window = new FailWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public function openFinalWindow():Window{
var _local1:Window = new FinalWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public function openHelloWindow():Window{
var _local1:Window = new HelloWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public function openItemWindow():Window{
var _local1:Window = new ItemWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public function openNextWindow():Window{
var _local1:Window = new NextWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public static function get instance():WindowsManager{
return (_instance);
}
}
}//package windows
Section 124
//Activator (Activator)
package {
import flash.display.*;
import flash.events.*;
public class Activator {
private var name:String;
private var episode:Episode;
private var target:Sprite;
private var sprite:Sprite;
private var region:Sprite;
private var state:String;
private var mode:String;
private var onClick:Function;
private var onPoint:Function;
private var onClickCondition:Function;
private var onPointCondition:Function;
private var onClickEvent:String;
private var onPointEvent:String;
public function Activator(_arg1:String, _arg2:Episode, _arg3:Sprite, _arg4:Object){
if (!_arg2.isActivator(_arg1)){
this.name = _arg1;
this.episode = _arg2;
this.target = _arg3;
this.sprite = ((_arg4.sprite is Sprite)) ? _arg4.sprite : null;
this.region = ((_arg4.region is Sprite)) ? _arg4.region : null;
this.state = ((_arg4.state is String)) ? _arg4.state : "active";
this.mode = ((_arg4.mode is String)) ? _arg4.mode : "ever";
this.onClick = ((_arg4.onClick is Function)) ? _arg4.onClick : null;
this.onPoint = ((_arg4.onPoint is Function)) ? _arg4.onPoint : null;
this.onClickCondition = ((_arg4.onClickCondition is Function)) ? _arg4.onClickCondition : null;
this.onPointCondition = ((_arg4.onPointCondition is Function)) ? _arg4.onPointCondition : null;
this.onClickEvent = ((_arg4.onClickEvent is String)) ? _arg4.onClickEvent : null;
this.onPointEvent = ((_arg4.onPointEvent is String)) ? _arg4.onPointEvent : null;
_arg3.tabEnabled = false;
if (_arg4.autoInit != false){
init();
};
} else {
Tracer.report("[X]", "Activator already exists.", "Activator");
};
}
private function onClickHandler(_arg1:MouseEvent):void{
if ((((state == "active")) && (episode.action))){
if ((((onClickCondition == null)) || (((!((onClickCondition == null))) && (onClickCondition()))))){
if (onClick != null){
if (sprite){
sprite.filters = null;
};
if (region){
region.filters = null;
region.visible = false;
};
onClick();
Tracer.report("[i]", (("Activator '" + name) + "': onClick()."), "Activator");
if (onClickEvent){
episode.causeEvent(onClickEvent);
};
if (mode == "once"){
state = "inactive";
};
};
};
};
}
private function onPointHandler(_arg1:MouseEvent):void{
if ((((state == "active")) && (episode.action))){
if ((((onPointCondition == null)) || (((!((onPointCondition == null))) && (onPointCondition()))))){
if (onPoint != null){
onPoint();
Tracer.report("[i]", (("Activator '" + name) + "': onPoint()."), "Activator");
if (onPointEvent){
episode.causeEvent(onPointEvent);
};
if (mode == "once"){
state = "inactive";
};
};
};
};
}
public function init():void{
target.addEventListener(MouseEvent.CLICK, onClickHandler);
target.addEventListener(MouseEvent.MOUSE_OVER, onPointHandler);
target.buttonMode = true;
target.useHandCursor = true;
}
public function activate():void{
state = "active";
target.buttonMode = true;
target.useHandCursor = true;
}
public function deactivate():void{
state = "inactive";
target.buttonMode = false;
target.useHandCursor = false;
}
public function halt():void{
if (target.hasEventListener(MouseEvent.CLICK)){
target.removeEventListener(MouseEvent.CLICK, onClickHandler);
};
if (target.hasEventListener(MouseEvent.MOUSE_OVER)){
target.removeEventListener(MouseEvent.MOUSE_OVER, onClickHandler);
};
target.buttonMode = false;
target.useHandCursor = false;
}
public function kill():void{
deactivate();
halt();
name = undefined;
episode = undefined;
target = undefined;
sprite = undefined;
region = undefined;
state = undefined;
mode = undefined;
onClick = undefined;
onPoint = undefined;
onClickCondition = undefined;
onPointCondition = undefined;
onClickEvent = undefined;
onPointEvent = undefined;
}
}
}//package
Section 125
//Anim_Trap (Anim_Trap)
package {
import flash.display.*;
public dynamic class Anim_Trap extends MovieClip {
public function Anim_Trap(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
Console.getCurrentEpisode().externalCall();
}
}
}//package
Section 126
//Anim_Trap3 (Anim_Trap3)
package {
import flash.display.*;
public dynamic class Anim_Trap3 extends MovieClip {
public function Anim_Trap3(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
Console.getCurrentEpisode().externalCall();
}
}
}//package
Section 127
//Anim_Trap31 (Anim_Trap31)
package {
import flash.display.*;
public dynamic class Anim_Trap31 extends MovieClip {
public function Anim_Trap31(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
Console.getCurrentEpisode().externalCall();
}
}
}//package
Section 128
//Anim_Trap5 (Anim_Trap5)
package {
import flash.display.*;
public dynamic class Anim_Trap5 extends MovieClip {
public function Anim_Trap5(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
Console.getCurrentEpisode().externalCall();
}
}
}//package
Section 129
//Anim_Trap7 (Anim_Trap7)
package {
import flash.display.*;
public dynamic class Anim_Trap7 extends MovieClip {
public function Anim_Trap7(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
Console.getCurrentEpisode().externalCall();
}
}
}//package
Section 130
//Animation (Animation)
package {
import flash.display.*;
import flash.events.*;
public class Animation {
private var name:String;
private var episode:Episode;
private var target:MovieClip;
private var labels:Object;
private var loops:uint;
private var label:String;
private var order:Array;
private var index:uint;
private var frame:uint;
private var prevLabel:String;
private var nextLabel:String;
public function Animation(_arg1:String, _arg2:Episode, _arg3:MovieClip, _arg4:Object){
var _local5:*;
super();
if (!_arg2.isAnimation(_arg1)){
this.name = _arg1;
this.episode = _arg2;
this.target = _arg3;
labels = new Object();
for (_local5 in _arg4) {
if ((((_arg4[_local5] is uint)) || ((_arg4[_local5] is String)))){
if (_arg4[_local5] <= _arg3.totalFrames){
labels[_local5] = _arg4[_local5];
} else {
Tracer.report("[X]", "'frame' can't be greater than total frames number.", "Animation");
};
};
};
} else {
Tracer.report("[X]", "Animation already exists.", "Animation");
};
}
public function play(_arg1:String):void{
if (labels[_arg1]){
if (this.label){
prevLabel = this.label;
};
this.label = _arg1;
loops = 0;
target.gotoAndStop(labels[_arg1]);
target.addEventListener(Event.ENTER_FRAME, animationStarter);
} else {
Tracer.report("[X]", (("There is no such label. {" + _arg1) + "}"), "Animation");
};
}
public function playOnce(_arg1:String):void{
if (labels[_arg1]){
if (this.label){
prevLabel = this.label;
};
this.label = _arg1;
loops = 1;
target.gotoAndStop(labels[_arg1]);
target.addEventListener(Event.ENTER_FRAME, animationStarter);
} else {
Tracer.report("[X]", (("There is no such label. {" + _arg1) + "}"), "Animation");
};
}
public function playLoops(_arg1:String, _arg2:uint):void{
if (labels[_arg1]){
if (this.label){
prevLabel = this.label;
};
this.label = _arg1;
loops = _arg2;
target.gotoAndStop(labels[_arg1]);
target.addEventListener(Event.ENTER_FRAME, animationStarter);
} else {
Tracer.report("[X]", (("There is no such label. {" + _arg1) + "}"), "Animation");
};
}
public function playOrder(_arg1:Array):void{
var _local2:int = _arg1.length;
while (_local2--) {
if (labels[_arg1[_local2]] == null){
Tracer.report("[X]", "Sequence contains wrong label(s).", "Animation");
return;
};
};
order = new Array();
var _local3:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local3) {
order[_local4] = _arg1[_local4];
trace(order[_local4]);
_local4++;
};
index = 0;
if (order[(index + 1)]){
nextLabel = order[(index + 1)];
} else {
nextLabel = null;
};
target.addEventListener(Event.ENTER_FRAME, animationHandler);
this.play(order[index]);
}
private function animationStarter(_arg1:Event):void{
if (_arg1.target.anim){
_arg1.target.removeEventListener(Event.ENTER_FRAME, animationStarter);
_arg1.target.anim.gotoAndPlay(1);
if (loops > 0){
target.addEventListener(Event.ENTER_FRAME, animationStopper);
};
};
}
private function animationStopper(_arg1:Event):void{
if (_arg1.target.anim.currentFrame == _arg1.target.anim.totalFrames){
if (loops == 1){
_arg1.target.removeEventListener(Event.ENTER_FRAME, animationStopper);
_arg1.target.anim.stop();
} else {
loops--;
};
};
}
private function animationHandler(_arg1:Event):void{
if (_arg1.target.anim){
if (_arg1.target.anim.currentFrame == _arg1.target.anim.totalFrames){
trace("next animation");
_arg1.target.removeEventListener(Event.ENTER_FRAME, animationHandler);
if (nextLabel){
index++;
trace(("index=" + index));
if (order[(index + 1)]){
nextLabel = order[(index + 1)];
} else {
nextLabel = null;
};
target.addEventListener(Event.ENTER_FRAME, animationHandler);
play(order[index]);
} else {
_arg1.target.anim.stop();
};
};
};
}
public function pause():void{
if (target.anim){
target.anim.stop();
} else {
Tracer.report("[X]", "No animation to pause.", "Animation");
};
}
public function resume():void{
if (target.anim){
target.anim.play();
} else {
Tracer.report("[X]", "No animation to resume.", "Animation");
};
}
public function kill():void{
if (target.hasEventListener("Event")){
};
label = null;
order = null;
prevLabel = null;
nextLabel = null;
name = null;
episode = null;
target = null;
labels = null;
}
}
}//package
Section 131
//Character (Character)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Character extends MovieClip {
public var anim:MovieClip;
private var labels:Array;
private var waitTimer:Timer;
public var waitTime:Number;// = 10
public var animCallback:Function;
public var animInstrSet:Array;
public function Character(){
init();
}
private function init():void{
labels = new Array();
var _local1:uint = currentLabels.length;
var _local2:uint;
while (_local2 < _local1) {
labels[_local2] = currentLabels[_local2].name;
_local2++;
};
}
private function startWaitTimer():void{
if (waitTimer){
stopWaitTimer();
};
waitTimer = new Timer((waitTime * 1000), 1);
waitTimer.addEventListener(TimerEvent.TIMER_COMPLETE, startIdle);
waitTimer.start();
}
private function stopWaitTimer():void{
if (waitTimer){
waitTimer.reset();
if (waitTimer.hasEventListener(TimerEvent.TIMER_COMPLETE)){
waitTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, startIdle);
};
waitTimer = null;
};
}
private function startIdle(_arg1:TimerEvent):void{
if (anim){
anim.stop();
};
gotoAndStop("idle");
}
public function wait():void{
if (labels.indexOf("idle") != -1){
if (anim){
anim.stop();
};
if (labels.indexOf("none") != -1){
gotoAndStop("idle");
};
startWaitTimer();
} else {
Tracer.report("[X]", "Animation 'idle' isn't exists.", "Character");
};
}
public function halt():void{
stopWaitTimer();
if (anim){
anim.stop();
};
if (labels.indexOf("none") != -1){
gotoAndStop("idle");
};
}
public function turnTo(_arg1:Number):void{
stopWaitTimer();
if (_arg1 <= x){
if (scaleX > 0){
scaleX = (scaleX * -1);
};
} else {
if (scaleX < 0){
scaleX = (scaleX * -1);
};
};
}
public function turnOn(_arg1:String):void{
stopWaitTimer();
switch (_arg1){
case "left":
if (scaleX > 0){
scaleX = (scaleX * -1);
};
break;
case "right":
if (scaleX < 0){
scaleX = (scaleX * -1);
};
break;
};
}
public function turnBack():void{
stopWaitTimer();
scaleX = (scaleX * -1);
}
public function walkTo(_arg1:Number):void{
if (labels.indexOf("walk") != -1){
stopWaitTimer();
if (anim){
anim.stop();
};
turnTo(_arg1);
if (currentLabel != "walk"){
gotoAndStop("walk");
} else {
anim.gotoAndPlay(1);
};
} else {
Tracer.report("[X]", "Animation 'walk' isn't exists.", "Character");
};
}
public function walkToPnv(_arg1:Number):void{
if (labels.indexOf("walkPnv") != -1){
stopWaitTimer();
if (anim){
anim.stop();
};
turnTo(_arg1);
if (currentLabel != "walkPnv"){
gotoAndStop("walkPnv");
} else {
anim.gotoAndPlay(1);
};
} else {
Tracer.report("[X]", "Animation 'walk' isn't exists.", "Character");
};
}
public function playAnim(_arg1:String, _arg2:Function=null, _arg3:Array=null):void{
if (labels.indexOf(_arg1) != -1){
stopWaitTimer();
if (anim){
anim.stop();
};
animCallback = _arg2;
animInstrSet = _arg3;
if (currentLabel != _arg1){
gotoAndStop(_arg1);
} else {
anim.gotoAndPlay(1);
};
} else {
Tracer.report("[X]", (("Animation '" + _arg1) + "' isn't exists."), "Character");
};
}
public function takeItem(_arg1:String, _arg2:Sprite=null, _arg3:Function=null):void{
var itemName = _arg1;
var itemImage = _arg2;
var itemFunct = _arg3;
if (labels.indexOf("take") != -1){
playAnim("take", function (){
Console.getCurrentEpisode().getItem(itemName, itemImage, itemFunct);
});
} else {
Tracer.report("[X]", "Animation 'take' isn't exists.", "Character");
};
}
public function takeItemJump(_arg1:String, _arg2:Sprite=null, _arg3:Function=null):void{
var itemName = _arg1;
var itemImage = _arg2;
var itemFunct = _arg3;
if (labels.indexOf("jamp_take") != -1){
playAnim("jamp_take", function (){
Console.getCurrentEpisode().getItem(itemName, itemImage, itemFunct);
});
} else {
Tracer.report("[X]", "Animation 'take' isn't exists.", "Character");
};
}
public function justAddItem(_arg1:String, _arg2:Sprite=null, _arg3:Function=null):void{
Console.getCurrentEpisode().getItem(_arg1, _arg2, _arg3);
}
public function pickUpItem(_arg1:String, _arg2:Sprite=null, _arg3:Function=null):void{
var itemName = _arg1;
var itemImage = _arg2;
var itemFunct = _arg3;
if (labels.indexOf("pickUp") != -1){
playAnim("pickUp", function (){
Console.getCurrentEpisode().getItem(itemName, itemImage, itemFunct);
});
} else {
Tracer.report("[X]", "Animation 'pickUp' isn't exists.", "Character");
};
}
public function pickUpItemShield(_arg1:String, _arg2:Sprite=null, _arg3:Function=null):void{
var itemName = _arg1;
var itemImage = _arg2;
var itemFunct = _arg3;
if (labels.indexOf("pickUp+shield") != -1){
playAnim("pickUp+shield", function (){
Console.getCurrentEpisode().getItem(itemName, itemImage, itemFunct);
});
} else {
Tracer.report("[X]", "Animation 'pickUp+shield' isn't exists.", "Character");
};
}
}
}//package
Section 132
//Character_02 (Character_02)
package {
public dynamic class Character_02 extends Character {
}
}//package
Section 133
//CommandProcessor (CommandProcessor)
package {
import flash.display.*;
public class CommandProcessor {
public static function process(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:String;
var _local5:*;
if (Game.instance){
_local2 = _arg1.split(" ", 2);
_local3 = _local2[0];
_local4 = _local2[1];
_local5 = (Game.instance.root as Sprite).getChildByName("console");
if (_local5){
switch (_local3){
case "mainMenu":
Console.enterMainMenu();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "loadEpisode":
Console.loadEpisode(_local4);
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "unloadEpisode":
Console.unloadEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "reloadEpisode":
Console.reloadEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "prevEpisode":
Console.prevEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "nextEpisode":
Console.nextEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "startEpisode":
Console.startEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "finishEpisode":
Console.finishEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "playEpisode":
Console.playEpisode(_local4);
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "replayEpisode":
Console.replayEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "winEpisode":
Console.winEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "loseEpisode":
Console.loseEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "enableEpisode":
Console.enableEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "disableEpisode":
Console.disableEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "help":
_local5.addHistory(((_local3 + " : ") + _local4));
_local5.addMessage("Commands list:");
_local5.addMessage(" mainMenu ()");
_local5.addMessage(" loadEpisode (arg1)");
_local5.addMessage(" arg1 - имя эпизода");
_local5.addMessage(" unloadEpisode ()");
_local5.addMessage(" reloadEpisode ()");
_local5.addMessage(" prevEpisode ()");
_local5.addMessage(" nextEpisode ()");
_local5.addMessage(" startEpisode ()");
_local5.addMessage(" finishEpisode ()");
_local5.addMessage(" playEpisode ()");
_local5.addMessage(" replayEpisode ()");
_local5.addMessage(" winEpisode ()");
_local5.addMessage(" loseEpisode ()");
_local5.addMessage(" enableEpisode ()");
_local5.addMessage(" disableEpisode ()");
_local5.addMessage(" help ()");
_local5.addMessage(" clear ()");
_local5.addMessage(" quit ()");
_local5.addMessage(" exit ()");
break;
case "exit":
_local5.addHistory(((_local3 + " : ") + _local4));
_local5.visible = false;
break;
case "quit":
_local5.addHistory(((_local3 + " : ") + _local4));
_local5.visible = false;
break;
case "clear":
_local5.clearHistory();
break;
default:
if (_local3 != ""){
_local5.addHistory((("Unknown command '" + _local3) + "'."));
};
};
};
};
}
}
}//package
Section 134
//Console (Console)
package {
public class Console {
public static var pac_game;
public static var mPlayer:MusicPlayer = new MusicPlayer();
public static var sPlayer:SoundPlayer = new SoundPlayer();
public static function enterMainMenu():void{
if (pac_game){
if (Game.instance){
Utils.disposeDisplayObject(Game.instance);
Game.instance.destroy();
};
pac_game.gotoAndStop("menu");
};
}
public static function enterMainGame():void{
if (pac_game){
pac_game.gotoAndStop("game");
};
}
public static function registerEpisode(_arg1:String, _arg2:uint, _arg3:Class):void{
if (Game.instance){
Game.instance.registerEpisode(_arg1, _arg2, _arg3);
} else {
throw (new Error("[Console] : <registerEpisode> : Game instance isn't exists."));
};
}
public static function unregisterEpisode(_arg1:String):void{
if (Game.instance){
Game.instance.unregisterEpisode(_arg1);
} else {
throw (new Error("[Console] : <unregisterEpisode> : Game instance isn't exists."));
};
}
public static function getCurrentEpisode():Episode{
if (Game.instance){
return (Game.instance.getCurrentEpisode());
};
throw (new Error("[Console] : <getCurrentEpisode> : Game instance isn't exists."));
}
public static function getCurrentEpisodeName():String{
if (Game.instance){
return (Game.instance.getCurrentEpisodeName());
};
throw (new Error("[Console] : <getCurrentEpisodeName> : Game instance isn't exists."));
}
public static function getCurrentEpisodeIndex():int{
if (Game.instance){
return (Game.instance.getCurrentEpisodeIndex());
};
throw (new Error("[Console] : <getCurrentEpisodeIndex> : Game instance isn't exists."));
}
public static function getEpisodeByName(_arg1:String):Episode{
if (Game.instance){
return (Game.instance.getEpisodeByName(_arg1));
};
throw (new Error("[Console] : <getEpisodeByName> : Game instance isn't exists."));
}
public static function getEpisodeByIndex(_arg1:uint):Episode{
if (Game.instance){
return (Game.instance.getEpisodeByIndex(_arg1));
};
throw (new Error("[Console] : <getEpisodeByIndex> : Game instance isn't exists."));
}
public static function loadEpisode(_arg1:String):void{
if (Game.instance){
Game.instance.loadEpisode(_arg1);
} else {
throw (new Error("[Console] : <loadEpisode> : Game instance isn't exists."));
};
}
public static function unloadEpisode():void{
if (Game.instance){
Game.instance.unloadEpisode();
} else {
throw (new Error("[Console] : <unloadEpisode> : Game instance isn't exists."));
};
}
public static function reloadEpisode():void{
if (Game.instance){
Game.instance.reloadEpisode();
} else {
throw (new Error("[Console] : <reloadEpisode> : Game instance isn't exists."));
};
}
public static function prevEpisode():void{
if (Game.instance){
Game.instance.prevEpisode();
} else {
throw (new Error("[Console] : <prevEpisode> : Game instance isn't exists."));
};
}
public static function nextEpisode():void{
if (Game.instance){
Game.instance.nextEpisode();
} else {
throw (new Error("[Console] : <nextEpisode> : Game instance isn't exists."));
};
}
public static function startEpisode():void{
if (Game.instance){
Game.instance.startEpisode();
} else {
throw (new Error("[Console] : <startEpisode> : Game instance isn't exists."));
};
}
public static function finishEpisode():void{
if (Game.instance){
Game.instance.finishEpisode();
} else {
throw (new Error("[Console] : <finishEpisode> : Game instance isn't exists."));
};
}
public static function playEpisode(_arg1:String):void{
if (Game.instance){
Game.instance.playEpisode(_arg1);
} else {
throw (new Error("[Console] : <playEpisode> : Game instance isn't exists."));
};
}
public static function replayEpisode():void{
if (Game.instance){
Game.instance.replayEpisode();
} else {
throw (new Error("[Console] : <replayEpisode> : Game instance isn't exists."));
};
}
public static function winEpisode():void{
if (Game.instance){
Game.instance.winEpisode();
} else {
throw (new Error("[Console] : <winEpisode> : Game instance isn't exists."));
};
}
public static function loseEpisode():void{
if (Game.instance){
Game.instance.loseEpisode();
} else {
throw (new Error("[Console] : <loseEpisode> : Game instance isn't exists."));
};
}
public static function enableEpisode():void{
if (Game.instance){
Game.instance.enableEpisode();
} else {
throw (new Error("[Console] : <enableEpisode> : Game instance isn't exists."));
};
}
public static function disableEpisode():void{
if (Game.instance){
Game.instance.disableEpisode();
} else {
throw (new Error("[Console] : <disableEpisode> : Game instance isn't exists."));
};
}
public static function isPrevEpisode():Boolean{
if (Game.instance){
return (Game.instance.isPrevEpisode());
};
throw (new Error("[Console] : <isPrevEpisode> : Game instance isn't exists."));
}
public static function isNextEpisode():Boolean{
if (Game.instance){
return (Game.instance.isNextEpisode());
};
throw (new Error("[Console] : <isNextEpisode> : Game instance isn't exists."));
}
public static function formatTime(_arg1:Number, _arg2:Boolean=true):String{
var _local3:Number = _arg1;
if (!_arg2){
_local3 = Math.floor((_arg1 / 1000));
};
var _local4:* = Math.floor((_local3 / (60 * 60)));
var _local5:* = (Math.floor((_local3 / 60)) - (_local4 * 60));
var _local6:* = ((_local3 - (_local5 * 60)) - ((_local4 * 60) * 60));
if (_local4 < 10){
_local4 = ("0" + _local4);
};
if (_local5 < 10){
_local5 = ("0" + _local5);
};
if (_local6 < 10){
_local6 = ("0" + _local6);
};
return (((_local5 + ":") + _local6));
}
}
}//package
Section 135
//DefaultIcon (DefaultIcon)
package {
import flash.display.*;
public dynamic class DefaultIcon extends MovieClip {
}
}//package
Section 136
//Displacement (Displacement)
package {
import flash.display.*;
import com.greensock.*;
import fl.transitions.easing.*;
public class Displacement {
public static function appearAt(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number=1, _arg5:Function=null):void{
var _local6:*;
var _local7:*;
if (_arg1){
_arg1.x = _arg2;
_arg1.y = _arg3;
_local6 = (_arg1.scaleX / Math.abs(_arg1.scaleX));
_local7 = (_arg1.scaleY / Math.abs(_arg1.scaleY));
_arg1.scaleX = (_arg4 * _local6);
_arg1.scaleY = (_arg4 * _local7);
if (_arg5 != null){
_arg5();
};
} else {
Tracer.report("[X]", "Object isn't exists.", "[Displacement]");
};
}
public static function motionTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number=1, _arg5:Function=null, _arg6:Number=64):void{
var _local7:Number;
var _local8:Number;
var _local9:*;
var _local10:*;
if (_arg1){
_local7 = Math.sqrt((Math.pow((_arg2 - _arg1.x), 2) + Math.pow((_arg3 - _arg1.y), 2)));
_local8 = (_local7 / Math.abs(_arg6));
_local9 = (_arg1.scaleX / Math.abs(_arg1.scaleX));
_local10 = (_arg1.scaleY / Math.abs(_arg1.scaleY));
TweenLite.to(_arg1, _local8, {x:_arg2, y:_arg3, scaleX:(_arg4 * _local9), scaleY:(_arg4 * _local10), onComplete:_arg5, ease:None.easeNone});
} else {
Tracer.report("[X]", "Object isn't exists.", "[Displacement]");
};
}
public static function onTimeTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number=1, _arg5:Function=null, _arg6:Number=0):void{
var _local7:Number;
var _local8:*;
var _local9:*;
if (_arg1){
_local7 = Math.sqrt((Math.pow((_arg2 - _arg1.x), 2) + Math.pow((_arg3 - _arg1.y), 2)));
_local8 = (_arg1.scaleX / Math.abs(_arg1.scaleX));
_local9 = (_arg1.scaleY / Math.abs(_arg1.scaleY));
TweenLite.to(_arg1, _arg6, {x:_arg2, y:_arg3, scaleX:(_arg4 * _local8), scaleY:(_arg4 * _local9), onComplete:_arg5, ease:None.easeNone});
} else {
Tracer.report("[X]", "Object isn't exists.", "[Displacement]");
};
}
public static function vCurveTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1, _arg6:Number=0, _arg7:Function=null, _arg8:Number=64):void{
var length:Number;
var time:Number;
var sX:*;
var sY:*;
var dY:*;
var mY:*;
var object = _arg1;
var x = _arg2;
var y = _arg3;
var h = _arg4;
var scale = _arg5;
var rotat = _arg6;
var funct = _arg7;
var speed = _arg8;
if (object){
length = Math.sqrt((Math.pow((x - object.x), 2) + Math.pow((y - object.y), 2)));
time = (length / Math.abs(speed));
sX = (object.scaleX / Math.abs(object.scaleX));
sY = (object.scaleY / Math.abs(object.scaleY));
dY = Math.abs((object.y - y));
mY = (Math.min(object.y, y) + dY);
TweenLite.to(object, (time / 2), {y:(mY + h), onComplete:function (){
TweenLite.to(object, (time / 2), {y:y, ease:Strong.easeIn, overwrite:0});
}, ease:Strong.easeOut});
TweenLite.to(object, time, {x:x, scaleX:(scale * sX), scaleY:(scale * sY), rotation:rotat, onComplete:funct, ease:None.easeNone, overwrite:0});
} else {
Tracer.report("[X]", "Object isn't exists.", "[Displacement]");
};
}
public static function hCurveTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1, _arg6:Number=0, _arg7:Function=null, _arg8:Number=64):void{
var length:Number;
var time:Number;
var sX:*;
var sY:*;
var dX:*;
var mX:*;
var object = _arg1;
var x = _arg2;
var y = _arg3;
var w = _arg4;
var scale = _arg5;
var rotat = _arg6;
var funct = _arg7;
var speed = _arg8;
if (object){
length = Math.sqrt((Math.pow((x - object.x), 2) + Math.pow((y - object.y), 2)));
time = (length / Math.abs(speed));
sX = (object.scaleX / Math.abs(object.scaleX));
sY = (object.scaleY / Math.abs(object.scaleY));
dX = Math.abs((object.x - x));
mX = (Math.min(object.x, x) + dX);
TweenLite.to(object, (time / 2), {x:(mX + w), onComplete:function (){
TweenLite.to(object, (time / 2), {x:x, ease:Strong.easeIn, overwrite:0});
}, ease:Strong.easeOut});
TweenLite.to(object, time, {x:x, scaleX:(scale * sX), scaleY:(scale * sY), rotation:rotat, onComplete:funct, ease:None.easeNone, overwrite:0});
} else {
Tracer.report("[X]", "Object isn't exists.", "[Displacement]");
};
}
public static function motionVia(_arg1:Sprite, _arg2:Array, _arg3:Function=null, _arg4:Number=128):void{
var _local5:TimelineLite;
var _local6:*;
var _local7:*;
var _local8:uint;
var _local9:uint;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:Number;
var _local15:Number;
if (_arg1){
_local5 = new TimelineLite();
_local6 = (_arg1.scaleX / Math.abs(_arg1.scaleX));
_local7 = (_arg1.scaleY / Math.abs(_arg1.scaleY));
_local8 = _arg2.length;
_local9 = 0;
while (_local9 < _local8) {
_local10 = _arg2[_local9].x;
_local11 = _arg2[_local9].y;
_local12 = (_arg2[_local9].scale) ? _arg2[_local9].scale : 1;
_local13 = (_arg2[_local9].speed) ? _arg2[_local9].speed : _arg4;
_local14 = Math.sqrt((Math.pow((_local10 - _arg1.x), 2) + Math.pow((_local11 - _arg1.y), 2)));
_local15 = (_local14 / Math.abs(_local13));
if (_local9 < (_local8 - 1)){
_local5.append(new TweenLite(_arg1, _local15, {x:_local10, y:_local11, scaleX:(_local12 * _local6), scaleY:(_local12 * _local7), ease:None.easeNone}));
} else {
_local5.append(new TweenLite(_arg1, _local15, {x:_local10, y:_local11, scaleX:(_local12 * _local6), scaleY:(_local12 * _local7), onComplete:_arg3, ease:None.easeNone}));
};
_local9++;
};
_local5.play();
} else {
Tracer.report("[X]", "Object isn't exists.", "[Displacement]");
};
}
}
}//package
Section 137
//Episode (Episode)
package {
import flash.display.*;
import flash.events.*;
import com.greensock.*;
import fl.transitions.easing.*;
import flash.utils.*;
public class Episode extends MovieClip {
public var rule:MovieClip;
public var aqualanger:MovieClip;
public var astronaut:MovieClip;
public var jf:hero;
public var strip:MovieClip;
public var bear:MovieClip;
public var banana:MovieClip;
public var octopus:MovieClip;
public var do1:MovieClip;
public var bumerang:MovieClip;
public var spaceship:MovieClip;
public var gate1:MovieClip;
public var pult2:MovieClip;
public var screw:MovieClip;
public var do2:MovieClip;
public var monster:MovieClip;
public var gate2:MovieClip;
public var soldier2:MovieClip;
public var statue:MovieClip;
public var do3:MovieClip;
public var fire:MovieClip;
public var soldier1:MovieClip;
public var robot:MovieClip;
public var do4:MovieClip;
public var lamp2:MovieClip;
public var fish:MovieClip;
public var killing:MovieClip;
public var collar:MovieClip;
public var door:MovieClip;
public var part1:MovieClip;
public var bike:MovieClip;
public var effect1:MovieClip;
public var rod:MovieClip;
public var dino:MovieClip;
public var swing:MovieClip;
public var part2:MovieClip;
public var effect2:MovieClip;
public var rope:MovieClip;
public var tape:MovieClip;
public var shoes1:MovieClip;
public var lamp:MovieClip;
public var part3:MovieClip;
public var effect3:MovieClip;
public var shoes2:MovieClip;
public var ger:MovieClip;
public var part4:MovieClip;
public var effect4:MovieClip;
public var car:MovieClip;
public var cup:MovieClip;
public var pult:MovieClip;
public var cannon:MovieClip;
public var honey:MovieClip;
public var ballViolet:MovieClip;
public var gate:MovieClip;
public var ballOrange:MovieClip;
public var skeleton:MovieClip;
public var doll:MovieClip;
public var monkey:MovieClip;
public var epicScene:MovieClip;
public var index:uint;
public var bonusTime:Number;// = 0
public var countTime:Number;// = 0
private var bonusTimer:Timer;
public var inventory:Inventory;
private var itemsRegistry:Object;
private var eventsRegistry:Object;
private var activatorsRegistry:Object;
private var animationsRegistry:Object;
private var waypointsRegistry:Object;
private var camera_x:Number;
private var camera_y:Number;
private var camera_t:Sprite;
private var begTime:Number;
private var endTime:Number;
public var initialize:Function;
public var finalize:Function;
public var cleanOut:Function;
public var intCall:Function;
public var extCall:Function;
public var intISet:Array;
public var extISet:Array;
private var player:Sprite;
public var score:int;// = 0
public var time:Number;
public var action:Boolean;
private var _state:String;
public var waitForReady:Boolean;
public function Episode(){
eventsRegistry = new Object();
activatorsRegistry = new Object();
waypointsRegistry = new Object();
animationsRegistry = new Object();
itemsRegistry = new Object();
camera_x = (Game.screen_w / 2);
camera_y = (Game.screen_h / 2);
inventory = new Inventory(this);
_state = "created";
Tracer.report("[$]", "EPISODE_CREATED");
addEventListener("episodeReady", onEpisodeReady);
}
public function load():void{
}
private function onEpisodeReady(_arg1:Event):void{
removeEventListener("episodeReady", onEpisodeReady);
_state = "loaded";
if (waitForReady){
waitForReady = false;
start();
};
}
public function unload():void{
var _local1:String;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:String;
if (_state != "unloaded"){
if (_state == "started"){
finish();
};
if (((bonusTimer) && (bonusTimer.running))){
bonusTimer.reset();
};
if (cleanOut != null){
cleanOut();
};
for (_local1 in activatorsRegistry) {
removeActivator(_local1);
};
activatorsRegistry = undefined;
inventory.destroy();
inventory = undefined;
for (_local2 in itemsRegistry) {
unregisterItem(_local2);
};
itemsRegistry = undefined;
for (_local3 in eventsRegistry) {
unregisterEvent(_local3);
};
eventsRegistry = undefined;
for (_local4 in animationsRegistry) {
removeAnimation(_local4);
};
animationsRegistry = undefined;
for (_local5 in waypointsRegistry) {
removeWaypoint(_local5);
};
waypointsRegistry = undefined;
bonusTime = undefined;
countTime = undefined;
bonusTimer = undefined;
camera_x = undefined;
camera_y = undefined;
camera_t = undefined;
begTime = undefined;
endTime = undefined;
initialize = undefined;
finalize = undefined;
cleanOut = undefined;
intCall = undefined;
extCall = undefined;
intISet = undefined;
extISet = undefined;
player = undefined;
score = undefined;
time = undefined;
action = undefined;
waitForReady = undefined;
_state = "unloaded";
} else {
throw (new Error("[Episode] : <unload> : Episode was already unloaded."));
};
}
public function start():void{
Tracer.report("[$]", "EPISODE_ATTEMPT_TO_START");
if (_state == "loaded"){
Game.instance.episodesManager.visible = true;
Game.instance.invView.visible = true;
Game.instance.helpButton.visible = true;
Game.instance.muteButton.visible = true;
if (initialize != null){
initialize();
};
begTime = getTimer();
_state = "started";
Tracer.report("[$]", "EPISODE_STARTED");
} else {
waitForReady = true;
Tracer.report("[$]", "EPISODE_WAIT_FOR_READY");
};
}
public function finish():void{
if (!time){
endTime = getTimer();
time = (endTime - begTime);
Game.instance.totalTime = (Game.instance.totalTime + time);
};
if (((bonusTimer) && (bonusTimer.running))){
bonusTimer.reset();
};
if (finalize != null){
finalize();
};
_state = "finished";
Tracer.report("[$]", "EPISODE_FINISHED");
}
public function win():void{
action = false;
finish();
if (Console.isNextEpisode()){
Game.instance.showNextWindow();
} else {
Game.instance.showFinalWindow();
};
_state = "FINISHED";
}
public function lose():void{
action = false;
finish();
Game.instance.showFailWindow();
_state = "FINISHED";
}
public function enable():void{
action = true;
}
public function disable():void{
action = false;
}
public function externalCall():void{
var _local1:Function;
if (extCall != null){
_local1 = extCall;
extCall = undefined;
_local1();
};
}
public function internalCall():void{
var _local1:Function;
if (intCall != null){
_local1 = intCall;
intCall = undefined;
_local1();
};
}
public function externalISet():void{
var _local1:Function;
if (extISet){
if (extISet.length){
if ((extISet[0] is Function)){
_local1 = extISet.shift();
_local1();
if (((extISet) && (!(extISet.length)))){
extISet = undefined;
};
};
} else {
extISet = undefined;
};
};
}
public function internalISet():void{
var _local1:Function;
if (intISet){
if (intISet.length){
if ((intISet[0] is Function)){
_local1 = intISet.shift();
_local1();
if (((intISet) && (!(intISet.length)))){
intISet = undefined;
};
};
} else {
intISet = undefined;
};
};
}
public function getTimeBonus():Number{
return (countTime);
}
public function getScore():Number{
return (score);
}
public function startBonusTimer(_arg1:Number):void{
if (!bonusTimer){
bonusTime = _arg1;
countTime = bonusTime;
bonusTimer = new Timer(1000, bonusTime);
bonusTimer.addEventListener(TimerEvent.TIMER, onBonusTimer);
bonusTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onBonusTimerComplete);
bonusTimer.start();
} else {
throw (new Error("[Episode] : <startBonusTimer> : Bonus timer already exists."));
};
}
public function stopBonusTimer():void{
if (bonusTimer){
if (bonusTimer.running){
bonusTimer.stop();
};
} else {
throw (new Error("[Episode] : <stopBonusTimer> : Bonus timer not exists."));
};
}
private function onBonusTimer(_arg1:TimerEvent):void{
countTime--;
}
private function onBonusTimerComplete(_arg1:TimerEvent):void{
if (countTime > 0){
countTime = 0;
};
bonusTimer.removeEventListener(TimerEvent.TIMER, onBonusTimer);
bonusTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, onBonusTimerComplete);
Tracer.report("[i]", "BonusTimer: completed.", "Episode");
}
public function setPlayer(_arg1:Sprite):void{
player = _arg1;
}
public function getPlayer():Sprite{
return (player);
}
public function appearAt(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number=1, _arg5:Function=null):void{
if (_arg1){
Displacement.appearAt(_arg1, _arg2, _arg3, _arg4, _arg5);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function motionTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number=1, _arg5:Function=null, _arg6:Number=128):void{
if (_arg1){
Displacement.motionTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function onTimeTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number=1, _arg5:Function=null, _arg6:Number=0):void{
if (_arg1){
Displacement.onTimeTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function vCurveTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1, _arg6:Number=0, _arg7:Function=null, _arg8:Number=64):void{
if (_arg1){
Displacement.vCurveTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function hCurveTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1, _arg6:Number=0, _arg7:Function=null, _arg8:Number=64):void{
if (_arg1){
Displacement.hCurveTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function motionVia(_arg1:Sprite, _arg2:Array, _arg3:Function=null, _arg4:Number=128):void{
if (_arg1){
Displacement.motionVia(_arg1, _arg2, _arg3, _arg4);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function addWaypoint(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number=1, _arg5:Function=null):void{
if (!waypointsRegistry[_arg1]){
waypointsRegistry[_arg1] = new Waypoint(_arg1, this, _arg2, _arg3, _arg4, _arg5);
} else {
Tracer.report("[X]", (("Waypoint '" + _arg1) + "' already registered."), "Episode");
throw (new Error((("[Episode] : <addWaypoint> : Waypoint '" + _arg1) + "' already registered.")));
};
}
public function removeWaypoint(_arg1:String):void{
if (waypointsRegistry[_arg1]){
waypointsRegistry[_arg1].kill();
delete waypointsRegistry[_arg1];
} else {
Tracer.report("[X]", (("Waypoint '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <removeWaypoint> : Waypoint '" + _arg1) + "' isn't registered.")));
};
}
public function moveToWaypoint(_arg1:Sprite, _arg2:String, _arg3:Function=null, _arg4:Number=64):void{
var wp:Waypoint;
var object = _arg1;
var name = _arg2;
var funct = _arg3;
var speed = _arg4;
if (waypointsRegistry[name]){
wp = waypointsRegistry[name];
motionTo(object, wp.x, wp.y, wp.scale, function ():void{
funct();
if ((wp.funct is Function)){
wp.funct();
};
}, speed);
} else {
Tracer.report("[X]", (("Waypoint '" + name) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <moveToWaypoint> : Waypoint '" + name) + "' isn't registered.")));
};
}
public function cameraTo(_arg1:Number, _arg2:Number, _arg3:Function=null, _arg4:Number=64):void{
var _local5:Number = Math.sqrt((Math.pow((_arg1 - camera_x), 2) + Math.pow((_arg2 - camera_y), 2)));
var _local6:Number = (_local5 / Math.abs(_arg4));
camera_x = _arg1;
camera_y = _arg2;
TweenLite.to(this, _local6, {x:(-(camera_x) + (Game.screen_w / 2)), y:(-(camera_y) + (Game.screen_h / 2)), onComplete:_arg3});
}
public function cameraAt(_arg1:Number, _arg2:Number, _arg3:Function=null):void{
camera_x = _arg1;
camera_y = _arg2;
this.x = (-(camera_x) + (Game.screen_w / 2));
this.y = (-(camera_y) + (Game.screen_h / 2));
if (_arg3 != null){
_arg3();
};
}
public function cameraVia(_arg1:Array, _arg2:Function=null, _arg3:Number=128):void{
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local4:TimelineLite = new TimelineLite();
var _local5:uint = _arg1.length;
var _local6:uint;
while (_local6 < _local5) {
_local7 = _arg1[_local6].x;
_local8 = _arg1[_local6].y;
_local9 = Math.sqrt((Math.pow((_local7 - camera_x), 2) + Math.pow((_local8 - camera_y), 2)));
_local10 = (_local9 / Math.abs(_arg3));
camera_x = _local7;
camera_y = _local8;
if (_local6 < (_local5 - 1)){
_local4.append(new TweenLite(this, _local10, {x:(-(camera_x) + (Game.screen_w / 2)), y:(-(camera_y) + (Game.screen_h / 2))}));
} else {
_local4.append(new TweenLite(this, _local10, {x:(-(camera_x) + (Game.screen_w / 2)), y:(-(camera_y) + (Game.screen_h / 2)), onComplete:_arg2}));
};
_local6++;
};
_local4.play();
}
public function registerItem(_arg1:String, _arg2=null, _arg3:String=null, _arg4=null, _arg5:String=null):void{
if (!itemsRegistry[_arg1]){
itemsRegistry[_arg1] = new Item(_arg1, _arg2, _arg3, _arg4, _arg5);
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' already registered."), "Episode");
throw (new Error((("[Episode] : <registerItem> : Item '" + _arg1) + "' already registered.")));
};
}
public function unregisterItem(_arg1:String):void{
if (itemsRegistry[_arg1]){
itemsRegistry[_arg1].destroy();
delete itemsRegistry[_arg1];
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <unregisterItem> : Item '" + _arg1) + "' isn't registered.")));
};
}
public function callItem(_arg1:String):Item{
if (itemsRegistry[_arg1]){
return (itemsRegistry[_arg1]);
};
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <callItem> : Item '" + _arg1) + "' isn't registered.")));
}
public function isItem(_arg1:String):Boolean{
return (Boolean(itemsRegistry[_arg1]));
}
public function getItem(_arg1:String, _arg2:Sprite=null, _arg3:Function=null, _arg4:String=null, _arg5:Boolean=true):void{
if (itemsRegistry[_arg1]){
inventory.takeItem(_arg1, _arg5);
if (_arg2){
_arg2.visible = false;
removeChild(_arg2);
};
if (_arg3 != null){
_arg3();
};
if (_arg4){
causeEvent(_arg4);
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <getItem> : Item '" + _arg1) + "' isn't registered.")));
};
}
public function putItem(_arg1:String, _arg2=null, _arg3:Number=0, _arg4:Number=0, _arg5:Function=null, _arg6:String=null):void{
var _local7:*;
if (itemsRegistry[_arg1]){
if (inventory.hasItem(_arg1)){
inventory.removeItem(_arg1);
if (_arg2){
if ((_arg2 is Sprite)){
_arg2.x = _arg3;
_arg2.y = _arg4;
_arg2.visible = true;
} else {
_local7 = new (_arg2);
_local7.x = _arg3;
_local7.y = _arg4;
addChild(_local7);
};
};
if (_arg5 != null){
_arg5();
};
if (_arg6){
causeEvent(_arg6);
};
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <putItem> : Item '" + _arg1) + "' isn't registered.")));
};
}
public function useItem(_arg1:String, _arg2:Function=null, _arg3:String=null, _arg4:Boolean=false):void{
if (itemsRegistry[_arg1]){
if (inventory.hasItem(_arg1)){
if (_arg4){
inventory.removeItem(_arg1);
};
if (_arg2 != null){
_arg2();
};
if (_arg3){
causeEvent(_arg3);
};
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <useItem> : Item '" + _arg1) + "' isn't registered.")));
};
}
public function deleteItem(_arg1:String, _arg2:Function=null, _arg3:String=null):void{
if (itemsRegistry[_arg1]){
if (inventory.hasItem(_arg1)){
inventory.removeItem(_arg1);
if (_arg2 != null){
_arg2();
};
if (_arg3){
causeEvent(_arg3);
};
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <deleteItem> : Item '" + _arg1) + "' isn't registered.")));
};
}
public function applyItems(_arg1:Array, _arg2:Function=null, _arg3:String=null, _arg4:Boolean=false):void{
var _local5:uint;
var _local7:String;
var _local6:uint = _arg1.length;
_local5 = 0;
while (_local5 < _local6) {
_local7 = _arg1[_local5];
if (itemsRegistry[_local7]){
if (!inventory.hasItem(_local7)){
Tracer.report("[X]", (("Item '" + _local7) + "' not found in inventory."), "Episode");
throw (new Error((("[Episode] : <applyItems> : Item '" + _local7) + "' not found in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + _local7) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <applyItems> : Item '" + _local7) + "' isn't registered.")));
};
_local5++;
};
if (_arg4){
_local5 = 0;
while (_local5 < _local6) {
inventory.removeItem(_arg1[_local5]);
_local5++;
};
};
if (_arg2 != null){
_arg2();
};
if (_arg3){
causeEvent(_arg3);
};
}
public function makeItem(_arg1:String, _arg2:Array, _arg3:Number=0, _arg4:Function=null, _arg5:String=null):void{
var i:uint;
var iLim:uint;
var matName:String;
var timer:Timer;
var makeIt:Function;
var name = _arg1;
var materials = _arg2;
var time = _arg3;
var funct = _arg4;
var eventName = _arg5;
if (itemsRegistry[name]){
iLim = materials.length;
i = 0;
while (i < iLim) {
matName = materials[i];
if (itemsRegistry[matName]){
if (!inventory.hasItem(matName)){
Tracer.report("[X]", (("Item '" + matName) + "' not found in inventory."), "Episode");
throw (new Error((("[Episode] : <makeItem> : Item '" + matName) + "' not found in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + matName) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <makeItem> : Item '" + matName) + "' isn't registered.")));
};
i = (i + 1);
};
if (time){
makeIt = function (_arg1:TimerEvent):void{
var event = _arg1;
event.target.removeEventListener(TimerEvent.TIMER_COMPLETE, makeIt);
inventory.makeItemAnimated(name, materials, function ():void{
if (funct != null){
funct();
};
if (eventName){
causeEvent(eventName);
};
});
};
timer = new Timer((time * 1000), 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, makeIt);
timer.start();
} else {
inventory.makeItemAnimated(name, materials, function ():void{
if (funct != null){
funct();
};
if (eventName){
causeEvent(eventName);
};
});
};
} else {
Tracer.report("[X]", (("Item '" + name) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <makeItem> : Item '" + name) + "' isn't registered.")));
};
}
public function addActivator(_arg1:String, _arg2:Sprite, _arg3:Object):void{
if (!activatorsRegistry[_arg1]){
activatorsRegistry[_arg1] = new Activator(_arg1, this, _arg2, _arg3);
} else {
Tracer.report("[X]", (("Activator '" + _arg1) + "' already registered."), "Episode");
throw (new Error((("[Episode] : <addActivator> : Activator '" + _arg1) + "' already registered.")));
};
}
public function removeActivator(_arg1:String):void{
if (activatorsRegistry[_arg1]){
activatorsRegistry[_arg1].kill();
delete activatorsRegistry[_arg1];
} else {
Tracer.report("[X]", (("Activator '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <removeActivator> : Activator '" + _arg1) + "' isn't registered.")));
};
}
public function callActivator(_arg1:String):Activator{
if (activatorsRegistry[_arg1]){
return (activatorsRegistry[_arg1]);
};
Tracer.report("[X]", (("Activator '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <callActivator> : Activator '" + _arg1) + "' isn't registered.")));
}
public function isActivator(_arg1:String):Boolean{
return (Boolean(activatorsRegistry[_arg1]));
}
public function addAnimation(_arg1:String, _arg2:MovieClip, _arg3:Object):void{
if (!animationsRegistry[_arg1]){
animationsRegistry[_arg1] = new Animation(_arg1, this, _arg2, _arg3);
} else {
Tracer.report("[X]", (("Animation '" + _arg1) + "' already registered."), "Episode");
throw (new Error((("[Episode] : <addAnimation> : Animation '" + _arg1) + "' already registered.")));
};
}
public function removeAnimation(_arg1:String):void{
if (animationsRegistry[_arg1]){
animationsRegistry[_arg1].kill();
delete animationsRegistry[_arg1];
} else {
Tracer.report("[X]", (("Animation '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <removeAnimation> : Animation '" + _arg1) + "' isn't registered.")));
};
}
public function callAnimation(_arg1:String):Animation{
if (animationsRegistry[_arg1]){
return (animationsRegistry[_arg1]);
};
Tracer.report("[X]", (("Animation '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <removeAnimation> : Animation '" + _arg1) + "' isn't registered.")));
}
public function isAnimation(_arg1:String):Boolean{
return (Boolean(animationsRegistry[_arg1]));
}
public function registerEvent(_arg1:String, _arg2:Boolean=false):void{
if (eventsRegistry[_arg1] == null){
eventsRegistry[_arg1] = _arg2;
} else {
Tracer.report("[X]", (("Event '" + _arg1) + "' already registered."), "Episode");
throw (new Error((("[Episode] : <registerEvent> : Event '" + _arg1) + "' already registered.")));
};
}
public function unregisterEvent(_arg1:String):void{
if (eventsRegistry[_arg1] != null){
delete eventsRegistry[_arg1];
} else {
Tracer.report("[X]", (("Event '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <unregisterEvent> : Event '" + _arg1) + "' isn't registered.")));
};
}
public function causeEvent(_arg1:String):void{
if (eventsRegistry[_arg1] != null){
dispatchEvent(new Event(_arg1));
eventsRegistry[_arg1] = true;
} else {
Tracer.report("[X]", (("Event '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <causeEvent> : Event '" + _arg1) + "' isn't registered.")));
};
}
public function forceEvent(_arg1:String):void{
if (eventsRegistry[_arg1] != null){
dispatchEvent(new Event(_arg1));
} else {
Tracer.report("[X]", (("Event '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <forceEvent> : Event '" + _arg1) + "' isn't registered.")));
};
}
public function setupEvent(_arg1:String, _arg2:Boolean):void{
if (eventsRegistry[_arg1] != null){
eventsRegistry[_arg1] = _arg2;
} else {
Tracer.report("[X]", (("Event '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <setupEvent> : Event '" + _arg1) + "' isn't registered.")));
};
}
public function isEvent(_arg1:String):Boolean{
if (eventsRegistry[_arg1] != null){
return (true);
};
return (false);
}
public function ifThis(_arg1:String):Boolean{
if (eventsRegistry[_arg1] != null){
return (eventsRegistry[_arg1]);
};
Tracer.report("[X]", (("Event '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifThis> : Event '" + _arg1) + "' isn't registered.")));
}
public function ifNotThis(_arg1:String):Boolean{
if (eventsRegistry[_arg1] != null){
return (!(eventsRegistry[_arg1]));
};
Tracer.report("[X]", (("Event '" + _arg1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifNotThis> : Event '" + _arg1) + "' isn't registered.")));
}
public function ifThese(_arg1:Array):Boolean{
var _local3:String;
var _local2:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local2) {
_local3 = _arg1[_local4];
if (eventsRegistry[_local3] != null){
if (!eventsRegistry[_local3]){
return (false);
};
} else {
Tracer.report("[X]", (("Event '" + _local3) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifThese> : Event '" + _local3) + "' isn't registered.")));
};
_local4++;
};
return (true);
}
public function ifNotThese(_arg1:Array):Boolean{
var _local3:String;
var _local2:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local2) {
_local3 = _arg1[_local4];
if (eventsRegistry[_local3] != null){
if (eventsRegistry[_local3]){
return (false);
};
} else {
Tracer.report("[X]", (("Event '" + _local3) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifNotThese> : Event '" + _local3) + "' isn't registered.")));
};
_local4++;
};
return (true);
}
public function ifAny(_arg1:Array):Boolean{
var _local3:String;
var _local2:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local2) {
_local3 = _arg1[_local4];
if (eventsRegistry[_local3] != null){
if (eventsRegistry[_local3]){
return (true);
};
} else {
Tracer.report("[X]", (("Event '" + _local3) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifAny> : Event '" + _local3) + "' isn't registered.")));
};
_local4++;
};
return (false);
}
public function ifNotAny(_arg1:Array):Boolean{
var _local3:String;
var _local2:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local2) {
_local3 = _arg1[_local4];
if (eventsRegistry[_local3] != null){
if (!eventsRegistry[_local3]){
return (true);
};
} else {
Tracer.report("[X]", (("Event '" + _local3) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifNotAny> : Event '" + _local3) + "' isn't registered.")));
};
_local4++;
};
return (false);
}
public function ifAll():Boolean{
var _local1:String;
for (_local1 in eventsRegistry) {
if (eventsRegistry[_local1] != null){
if (!eventsRegistry[_local1]){
return (false);
};
} else {
Tracer.report("[X]", (("Event '" + _local1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifAll> : Event '" + _local1) + "' isn't registered.")));
};
};
return (true);
}
public function ifNone():Boolean{
var _local1:String;
for (_local1 in eventsRegistry) {
if (eventsRegistry[_local1] != null){
if (eventsRegistry[_local1]){
return (false);
};
} else {
Tracer.report("[X]", (("Event '" + _local1) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifNone> : Event '" + _local1) + "' isn't registered.")));
};
};
return (true);
}
public function ifEach(_arg1:Array, _arg2:Boolean):Boolean{
var _local4:String;
var _local3:uint = _arg1.length;
var _local5:uint;
while (_local5 < _local3) {
_local4 = _arg1[_local5];
if (eventsRegistry[_local4] != null){
if (eventsRegistry[_local4] != _arg2){
return (false);
};
} else {
Tracer.report("[X]", (("Event '" + _local4) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifEach> : Event '" + _local4) + "' isn't registered.")));
};
_local5++;
};
return (true);
}
public function ifOneOf(_arg1:Array, _arg2:Boolean):Boolean{
var _local4:String;
var _local3:uint = _arg1.length;
var _local5:uint;
while (_local5 < _local3) {
_local4 = _arg1[_local5];
if (eventsRegistry[_local4] != null){
if (eventsRegistry[_local4] == _arg2){
return (true);
};
} else {
Tracer.report("[X]", (("Event '" + _local4) + "' isn't registered."), "Episode");
throw (new Error((("[Episode] : <ifOneOf> : Event '" + _local4) + "' isn't registered.")));
};
_local5++;
};
return (false);
}
public function listItemsRegistry():void{
var _local2:String;
trace("[S] LIST: itemsRegistry:");
var _local1:uint;
for (_local2 in itemsRegistry) {
trace((((" - " + _local2) + " = ") + itemsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function listEventsRegistry():void{
var _local2:String;
trace("[S] LIST: eventsRegistry:");
var _local1:uint;
for (_local2 in eventsRegistry) {
trace((((" - " + _local2) + " = ") + eventsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function listActivatorsRegistry():void{
var _local2:String;
trace("[S] LIST: activatorsRegistry:");
var _local1:uint;
for (_local2 in activatorsRegistry) {
trace((((" - " + _local2) + " = ") + activatorsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function listAnimationsRegistry():void{
var _local2:String;
trace("[S] LIST: animationsRegistry:");
var _local1:uint;
for (_local2 in animationsRegistry) {
trace((((" - " + _local2) + " = ") + animationsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function listWaypointsRegistry():void{
var _local2:String;
trace("[S] LIST: waypointsRegistry:");
var _local1:uint;
for (_local2 in waypointsRegistry) {
trace((((" - " + _local2) + " = ") + waypointsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function listChildren():void{
var _local2:DisplayObject;
trace("[S] LIST: children:");
var _local1:uint = numChildren;
var _local3:uint;
while (_local3 < _local1) {
_local2 = getChildAt(_local3);
trace((((" - " + _local2.name) + " = ") + _local2));
_local3++;
};
trace((" Total number: " + _local1));
}
public function listInventoryItems():void{
inventory.listItems();
}
}
}//package
Section 138
//Episode_01 (Episode_01)
package {
import flash.events.*;
public dynamic class Episode_01 extends Episode {
public function Episode_01(){
addFrameScript(0, frame1);
}
public function takeStrip():void{
action = false;
jf.walkTo(318);
motionTo(jf, 318, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("strip", strip, function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("strip2_ok");
});
});
removeActivator("do3");
}
public function takeCup():void{
action = false;
jf.walkTo(318);
motionTo(jf, 318, jf.y, 1, function (){
jf.turnOn("left");
jf.takeItem("cup", cup, function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("cup1_ok");
});
});
removeActivator("cup");
}
public function takeRule():void{
action = false;
jf.walkTo(404);
motionTo(jf, 404, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("rule", rule, function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("rule1_ok");
});
});
removeActivator("rule");
}
public function jfFree():void{
action = false;
jf.playAnim("l1_start", function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("strip1_ok");
});
}
public function tiedSoldier2():void{
action = false;
jf.walkTo(404);
motionTo(jf, 404, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("strip");
jf.playAnim("pickUp", function (){
jf.wait();
jf.playAnim("idle");
action = true;
gate1.gotoAndStop(2);
soldier2.gotoAndStop(2);
causeEvent("strip3_ok");
});
});
removeActivator("soldier2");
}
public function placeRuleAndCup():void{
action = false;
jf.walkTo(363);
motionTo(jf, 363, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("rule");
deleteItem("cup");
jf.playAnim("pickUp", function (){
jf.wait();
jf.playAnim("idle");
action = true;
swing.gotoAndStop(3);
causeEvent("rule2_ok");
causeEvent("cup2_ok");
});
});
}
public function makeAllRight():void{
action = false;
jf.walkTo(363);
motionTo(jf, 363, jf.y, 1, function (){
jf.turnOn("right");
swing.gotoAndPlay(4);
gate1.gotoAndPlay(3);
soldier2.gotoAndStop(3);
soldier1.gotoAndStop(2);
jf.playAnim("jump", function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("soldier2_ok");
causeEvent("soldier1_ok");
});
});
removeActivator("do1");
}
public function makeAllWrong():void{
action = false;
jf.walkTo(363);
motionTo(jf, 363, jf.y, 1, function (){
jf.turnOn("right");
swing.gotoAndPlay(4);
soldier2.gotoAndStop(4);
gate1.gotoAndPlay(3);
soldier1.gotoAndStop(2);
jf.playAnim("jump", function (){
jf.wait();
jf.playAnim("idle");
});
});
removeActivator("do1");
}
public function goWin():void{
action = false;
jf.walkTo(700);
motionTo(jf, 700, jf.y, 1, function (){
win();
});
removeActivator("do2");
}
public function jfRefused():void{
if (ifNotThis("strip1_ok")){
jf.playAnim("l1_refused", function (){
jf.playAnim("l1_idle");
});
} else {
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
};
}
function frame1(){
jf.gotoAndStop("l1_idle");
initialize = function ():void{
action = true;
soldier1.gotoAndStop(1);
strip.visible = false;
swing.gotoAndStop(1);
soldier2.gotoAndStop(1);
gate1.gotoAndStop(1);
jf.gotoAndStop("l1_idle");
gate2.gotoAndStop(1);
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("rule", Item_Rule);
registerItem("cup", Item_Cup);
registerItem("strip", Item_Strip);
registerEvent("strip1_ok");
registerEvent("strip2_ok");
registerEvent("strip3_ok");
registerEvent("cup1_ok");
registerEvent("cup2_ok");
registerEvent("rule1_ok");
registerEvent("rule2_ok");
registerEvent("soldier1_ok");
registerEvent("soldier2_ok");
addActivator("do2", do2, {onClick:function ():void{
if (((ifThis("soldier1_ok")) && (ifThis("soldier2_ok")))){
goWin();
} else {
jfRefused();
};
}});
addActivator("do1", do1, {onClick:function ():void{
if (((ifThis("rule2_ok")) && (ifThis("cup2_ok")))){
if (ifThis("strip3_ok")){
makeAllRight();
} else {
makeAllWrong();
};
} else {
if (((ifThis("rule1_ok")) && (ifThis("cup1_ok")))){
placeRuleAndCup();
} else {
jfRefused();
};
};
}});
addActivator("soldier2", soldier2, {onClick:function ():void{
if (ifThis("strip2_ok")){
tiedSoldier2();
} else {
jfRefused();
};
}});
addActivator("do3", do3, {onClick:function ():void{
if (ifNotThis("strip1_ok")){
jfFree();
} else {
takeStrip();
};
}});
addActivator("rule", rule, {onClick:function ():void{
if (ifThis("strip1_ok")){
takeRule();
} else {
jfRefused();
};
}});
addActivator("cup", cup, {onClick:function ():void{
if (ifThis("strip1_ok")){
takeCup();
} else {
jfRefused();
};
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
}
}//package
Section 139
//Episode_02 (Episode_02)
package {
import flash.events.*;
public dynamic class Episode_02 extends Episode {
public function Episode_02(){
addFrameScript(0, frame1);
}
public function takePult():void{
action = false;
jf.walkTo(210);
motionTo(jf, 210, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("pult", pult, function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("pult_ok");
});
});
removeActivator("pult");
}
public function takeBanana():void{
action = false;
jf.walkTo(210);
motionTo(jf, 210, jf.y, 1, function (){
jf.turnOn("left");
jf.takeItem("banana", banana, function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("banana_ok");
});
});
removeActivator("banana");
}
public function takeHoney():void{
action = false;
jf.walkTo(210);
motionTo(jf, 210, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take_up", function (){
jf.wait();
honey.visible = false;
jf.playAnim("idle");
action = true;
causeEvent("honey_ok");
getItem("honey");
});
});
removeActivator("honey");
}
public function throwHoneyAtMonkey():void{
action = false;
jf.walkTo(210);
motionTo(jf, 210, jf.y, 1, function (){
jf.turnOn("right");
monkey.gotoAndStop(2);
jf.playAnim("throw_honey_bad", function (){
lose();
});
});
}
public function throwBanana():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("right");
monkey.gotoAndStop(3);
deleteItem("banana");
jf.playAnim("throw_banan", function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("monkey_ok");
});
});
}
public function throwHoneyAtPultRight():void{
action = false;
jf.walkTo(300);
motionTo(jf, 300, jf.y, 1, function (){
jf.turnOn("right");
pult2.gotoAndPlay(55);
bear.gotoAndPlay(23);
deleteItem("honey");
jf.playAnim("throw_honey_good", function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("pult2_ok");
});
});
removeActivator("do2");
}
public function throwHoneyAtPultWrong():void{
action = false;
jf.walkTo(300);
motionTo(jf, 300, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("honey");
pult2.gotoAndPlay(2);
jf.playAnim("throw_honey_good", function (){
jf.wait();
});
});
removeActivator("do2");
}
public function throwBear():void{
action = false;
jf.walkTo(210);
motionTo(jf, 210, jf.y, 1, function (){
jf.turnOn("right");
bear.gotoAndPlay(2);
jf.playAnim("take_up", function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("bear_ok");
});
});
removeActivator("bear");
}
public function removeStatue():void{
action = false;
jf.walkTo(400);
motionTo(jf, 400, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("pult");
jf.playAnim("pult", function (){
statue.gotoAndPlay(2);
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("statue_ok");
});
});
}
public function goWin():void{
action = false;
jf.walkTo(700);
motionTo(jf, 700, jf.y, 1, function (){
win();
});
removeActivator("do1");
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
function frame1(){
jf.wait();
jf.gotoAndStop("idle");
initialize = function ():void{
action = true;
pult2.gotoAndStop(1);
pult.visible = false;
bear.gotoAndStop(1);
monkey.gotoAndStop(1);
jf.wait();
jf.gotoAndStop("idle");
statue.gotoAndStop(1);
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("pult", Item_Pult);
registerItem("honey", Item_Honey);
registerItem("banana", Item_Banana);
registerEvent("honey_ok");
registerEvent("pult2_ok");
registerEvent("pult_ok");
registerEvent("banana_ok");
registerEvent("monkey_ok");
registerEvent("bear_ok");
registerEvent("statue_ok");
addActivator("do1", do1, {onClick:function ():void{
if (ifThis("statue_ok")){
goWin();
} else {
if (ifThis("pult_ok")){
removeStatue();
} else {
jfRefused();
};
};
}});
addActivator("bear", bear, {onClick:function ():void{
if (ifThis("honey_ok")){
throwBear();
} else {
jfRefused();
};
}});
addActivator("do2", do2, {onClick:function ():void{
if (((ifThis("banana_ok")) && (ifNotThis("monkey_ok")))){
throwBanana();
} else {
if (((ifThis("honey_ok")) && (ifNotThis("monkey_ok")))){
throwHoneyAtMonkey();
} else {
if (((ifThis("honey_ok")) && (ifThis("monkey_ok")))){
if (ifThis("bear_ok")){
throwHoneyAtPultRight();
} else {
throwHoneyAtPultWrong();
};
} else {
jfRefused();
};
};
};
}});
addActivator("honey", honey, {onClick:function ():void{
takeHoney();
}});
addActivator("banana", banana, {onClick:function ():void{
takeBanana();
}});
addActivator("pult", pult, {onClick:function ():void{
takePult();
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
}
}//package
Section 140
//Episode_03 (Episode_03)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Episode_03 extends Episode {
public var canTake:Boolean;
public var nowPlace:int;
public var whatsWeHave:int;
public function Episode_03(){
addFrameScript(0, frame1);
}
public function takePart1():void{
action = false;
jf.walkTo(170);
motionTo(jf, 170, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("part1", part1, function (){
jf.wait();
action = true;
canTake = false;
whatsWeHave = 1;
});
});
removeActivator("part1");
}
public function takePart2():void{
action = false;
jf.walkTo(410);
motionTo(jf, 410, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("part2", part2, function (){
jf.wait();
action = true;
canTake = false;
whatsWeHave = 2;
});
});
removeActivator("part2");
}
public function takePart3():void{
action = false;
jf.walkTo(35);
motionTo(jf, 35, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("part3", part3, function (){
jf.wait();
action = true;
canTake = false;
whatsWeHave = 3;
});
});
removeActivator("part3");
}
public function takePart4():void{
action = false;
jf.walkTo(260);
motionTo(jf, 260, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("part4", part4, function (){
jf.wait();
action = true;
canTake = false;
whatsWeHave = 4;
});
});
removeActivator("part4");
}
public function takeGer():void{
action = false;
jf.walkTo(35);
motionTo(jf, 35, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("ger", ger, function (){
jf.wait();
action = true;
causeEvent("ger_ok");
});
});
removeActivator("ger");
}
public function placePart():void{
action = false;
jf.walkTo(260);
motionTo(jf, 260, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("take_up", function (){
jf.wait();
canTake = true;
action = true;
if (whatsWeHave == 1){
deleteItem("part1");
};
if (whatsWeHave == 2){
deleteItem("part2");
};
if (whatsWeHave == 3){
deleteItem("part3");
};
if (whatsWeHave == 4){
deleteItem("part4");
};
if (whatsWeHave == 5){
deleteItem("part5");
};
if (nowPlace == 1){
epicScene.part1.gotoAndStop((whatsWeHave + 1));
} else {
if (nowPlace == 2){
epicScene.part2.gotoAndStop((whatsWeHave + 1));
} else {
if (nowPlace == 3){
epicScene.part3.gotoAndStop((whatsWeHave + 1));
} else {
if (nowPlace == 4){
epicScene.part4.gotoAndStop((whatsWeHave + 1));
removeActivator("do1");
causeEvent("piramyd_ok");
};
};
};
};
nowPlace++;
});
});
}
public function letsRock():void{
action = false;
jf.walkTo(169.25);
motionTo(jf, 169.25, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("go_up", function (){
deleteItem("ger");
jf.visible = false;
bike.gotoAndPlay(2);
});
});
removeActivator("bike");
}
public function tryAndFall():void{
action = false;
jf.walkTo(169.25);
motionTo(jf, 169.25, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("go_up", function (){
epicScene.gotoAndPlay(2);
jf.playAnim("fall_L3", function (){
});
});
});
removeActivator("bike");
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
function frame1(){
canTake = true;
nowPlace = 1;
whatsWeHave = 0;
jf.wait();
jf.playAnim("idle");
initialize = function ():void{
jf.wait();
jf.playAnim("idle");
action = true;
bike.gotoAndStop(1);
epicScene.gotoAndStop(1);
epicScene.part1.gotoAndStop(1);
epicScene.part2.gotoAndStop(1);
epicScene.part3.gotoAndStop(1);
epicScene.part4.gotoAndStop(1);
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("part1", Item_Part1);
registerItem("part2", Item_Part2);
registerItem("part3", Item_Part3);
registerItem("part4", Item_Part4);
registerItem("ger", Item_Ger);
registerEvent("ger_ok");
registerEvent("piramyd_ok");
addActivator("ger", ger, {onClick:function ():void{
takeGer();
}});
addActivator("part1", part1, {onClick:function ():void{
if (canTake){
takePart1();
} else {
jfRefused();
};
}});
addActivator("part2", part2, {onClick:function ():void{
if (canTake){
takePart2();
} else {
jfRefused();
};
}});
addActivator("part3", part3, {onClick:function ():void{
if (canTake){
takePart3();
} else {
jfRefused();
};
}});
addActivator("part4", part4, {onClick:function ():void{
if (canTake){
takePart4();
} else {
jfRefused();
};
}});
addActivator("do1", do1, {onClick:function ():void{
if (!canTake){
placePart();
} else {
jfRefused();
};
}});
addActivator("bike", bike, {onClick:function ():void{
if (((ifThis("piramyd_ok")) && (ifThis("ger_ok")))){
if ((((((((epicScene.part1.currentFrame == 2)) && ((epicScene.part2.currentFrame == 3)))) && ((epicScene.part3.currentFrame == 4)))) && ((epicScene.part4.currentFrame == 5)))){
trace("rock");
letsRock();
} else {
trace("fall");
tryAndFall();
};
} else {
jfRefused();
};
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
}
}//package
Section 141
//Episode_04 (Episode_04)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Episode_04 extends Episode {
public var sPlayer2:SoundPlayer;
public var sPlayer1:SoundPlayer;
public var sPlayer3:SoundPlayer;
public var actionTimer:Timer;
public function Episode_04(){
addFrameScript(0, frame1);
}
public function setActionTimer():void{
trace("123");
action = true;
actionTimer = new Timer(1000, 6);
actionTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onActionTimerComplete);
actionTimer.start();
}
public function onActionTimerComplete(_arg1:TimerEvent):void{
causeEvent("time_is_up");
trace("456");
action = false;
if (ifNotThis("cubic_ok")){
epicScene.gotoAndPlay("wrong1");
} else {
if (ifNotThis("doll_ok")){
epicScene.gotoAndPlay("wrong2");
} else {
if (ifNotThis("bear_ok")){
epicScene.gotoAndPlay("wrong3");
} else {
if (ifNotThis("spider_ok")){
epicScene.gotoAndPlay("wrong4");
} else {
epicScene.gotoAndPlay(2);
};
};
};
};
}
function frame1(){
sPlayer2 = new SoundPlayer();
epicScene.gotoAndStop(1);
sPlayer1 = new SoundPlayer();
sPlayer3 = new SoundPlayer();
initialize = function (){
effect1.visible = false;
effect2.visible = false;
effect3.visible = false;
effect4.visible = false;
epicScene.gotoAndStop(1);
action = true;
};
finalize = function (){
};
cleanOut = function (){
};
registerEvent("cubic_ok");
registerEvent("doll_ok");
registerEvent("bear_ok");
registerEvent("spider_ok");
registerEvent("time_is_up");
addActivator("do1", do1, {onClick:function (){
if (ifNotThis("time_is_up")){
removeActivator("do1");
sPlayer2.playSound(new takeSound());
effect1.visible = true;
effect1.gotoAndPlay(2);
epicScene.cubic.visible = false;
causeEvent("cubic_ok");
};
}});
addActivator("do2", do2, {onClick:function (){
if (ifNotThis("time_is_up")){
removeActivator("do2");
sPlayer2.playSound(new takeSound());
effect2.visible = true;
effect2.gotoAndPlay(2);
epicScene.doll.visible = false;
causeEvent("doll_ok");
};
}});
addActivator("do3", do3, {onClick:function (){
if (ifNotThis("time_is_up")){
removeActivator("do3");
sPlayer2.playSound(new takeSound());
effect3.visible = true;
effect3.gotoAndPlay(2);
epicScene.bear.visible = false;
causeEvent("bear_ok");
};
}});
addActivator("do4", do4, {onClick:function (){
if (ifNotThis("time_is_up")){
removeActivator("do4");
sPlayer2.playSound(new takeSound());
effect4.visible = true;
effect4.gotoAndPlay(2);
epicScene.spider.visible = false;
causeEvent("spider_ok");
};
}});
setActionTimer();
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
}
}//package
Section 142
//Episode_05 (Episode_05)
package {
import flash.events.*;
public dynamic class Episode_05 extends Episode {
public var jfUp:Boolean;
public function Episode_05(){
addFrameScript(0, frame1);
}
public function turnCannonRight():void{
action = false;
jf.walkTo(97);
motionTo(jf, 97, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("take", function (){
cannon.gotoAndStop(2);
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("cannon_right_ok");
});
});
removeActivator("cannon");
}
public function takeRope():void{
action = false;
jf.walkTo(97);
motionTo(jf, 97, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("rope", rope, function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("rope_ok");
gate.gotoAndPlay(2);
});
});
removeActivator("rope");
}
public function takeScrew():void{
action = false;
if (jfUp){
jf.gotoAndStop("walk");
motionTo(jf, 97, 216, 1, function (){
jf.turnOn("left");
motionTo(jf, 80, 416, 1, function (){
jfUp = false;
takeScrew2();
});
});
} else {
takeScrew2();
};
}
public function takeScrew2():void{
jf.walkTo(460);
motionTo(jf, 460, jf.y, 1, function (){
jf.turnOn("left");
jf.takeItem("screw", screw, function (){
car.gotoAndStop(2);
jf.wait();
jf.playAnim("idle");
if (((inventory.hasItem("ballViolet")) && (inventory.hasItem("screw")))){
makeItem("trap2", ["ballViolet", "screw"], 2, function ():void{
action = true;
}, "trap_made2");
} else {
action = true;
};
causeEvent("screw_ok");
});
});
removeActivator("car");
}
public function takeBallOrange():void{
action = false;
if (jfUp){
jf.gotoAndStop("walk");
motionTo(jf, 97, 216, 1, function (){
jf.turnOn("left");
motionTo(jf, 80, 416, 1, function (){
jfUp = false;
takeBallOrange2();
});
});
} else {
takeBallOrange2();
};
}
public function takeBallOrange2():void{
jf.walkTo(283);
motionTo(jf, 283, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("ballOrange", ballOrange, function (){
jf.wait();
jf.playAnim("idle");
if (((inventory.hasItem("ballOrange")) && (inventory.hasItem("rope")))){
makeItem("trap1", ["ballOrange", "rope"], 2, function ():void{
action = true;
}, "trap_made1");
} else {
action = true;
};
causeEvent("ballOrange_ok");
});
});
removeActivator("ballOrange");
}
public function takeBallViolet():void{
action = false;
if (jfUp){
jf.gotoAndStop("walk");
motionTo(jf, 97, 216, 1, function (){
jf.turnOn("left");
motionTo(jf, 80, 416, 1, function (){
jfUp = false;
takeBallViolet2();
});
});
} else {
takeBallViolet2();
};
}
public function takeBallViolet2():void{
jf.walkTo(283);
motionTo(jf, 283, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("ballViolet", ballViolet, function (){
jf.wait();
jf.playAnim("idle");
if (((inventory.hasItem("ballViolet")) && (inventory.hasItem("screw")))){
makeItem("trap2", ["ballViolet", "screw"], 2, function ():void{
action = true;
}, "trap_made2");
} else {
action = true;
};
causeEvent("ballViolet_ok");
});
});
removeActivator("ballViolet");
}
public function robotKillUs():void{
action = false;
if (!jfUp){
jf.turnOn("left");
jf.gotoAndStop("walk");
motionTo(jf, 80, 416, 1, function (){
motionTo(jf, 97, 216, 1, function (){
jfUp = true;
robotKillUs2();
});
});
} else {
robotKillUs2();
};
}
public function robotKillUs2():void{
jf.turnOn("right");
deleteItem("ballViolet");
jf.playAnim("take", function (){
cannon.gotoAndPlay(3);
jf.wait();
jf.playAnim("idle");
});
removeActivator("do1");
}
public function killRobot():void{
action = false;
if (!jfUp){
jf.turnOn("left");
jf.gotoAndStop("walk");
motionTo(jf, 80, 416, 1, function (){
jf.walkTo(97);
motionTo(jf, 97, 216, 1, function (){
jfUp = true;
killRobot2();
});
});
} else {
killRobot2();
};
}
public function killRobot2():void{
jf.turnOn("right");
deleteItem("trap2");
jf.playAnim("take", function (){
cannon.gotoAndPlay(19);
robot.gotoAndStop(2);
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("robot_ok");
});
}
public function shootBridge():void{
action = false;
if (!jfUp){
jf.turnOn("left");
jf.walkTo(100);
motionTo(jf, 100, 416, 1, function (){
jf.walkTo(97);
motionTo(jf, 97, 216, 1, function (){
jfUp = true;
shootBridge2();
});
});
} else {
shootBridge2();
};
}
public function shootBridge2():void{
jf.turnOn("right");
deleteItem("trap1");
jf.playAnim("take", function (){
cannon.gotoAndPlay(35);
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("bridge_ok");
});
}
public function goWin():void{
action = false;
jf.walkTo(158);
motionTo(jf, 158, 190, 1, function (){
jf.walkTo(490);
motionTo(jf, 490, jf.y, 1, function (){
jf.walkTo(525);
motionTo(jf, 525, 216, 1, function (){
motionTo(jf, 700, jf.y, 1, function (){
win();
});
});
});
});
removeActivator("do1");
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
function frame1(){
jf.wait();
jf.gotoAndStop("idle");
jfUp = true;
initialize = function ():void{
action = true;
cannon.gotoAndStop(1);
gate.gotoAndStop(1);
robot.gotoAndStop(1);
car.gotoAndStop(1);
jf.wait();
jf.gotoAndStop("idle");
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("screw", Item_Screw);
registerItem("rope", Item_Rope);
registerItem("ballOrange", Item_BallOrange);
registerItem("ballViolet", Item_BallViolet);
registerItem("trap1", Item_Trap1, null, Anim_Trap3);
registerItem("trap2", Item_Trap2, null, Anim_Trap3);
registerEvent("screw_ok");
registerEvent("ballOrange_ok");
registerEvent("ballViolet_ok");
registerEvent("rope_ok");
registerEvent("robot_ok");
registerEvent("cannon_right_ok");
registerEvent("cannon_ok");
registerEvent("bridge_ok");
registerEvent("trap_made1");
registerEvent("trap_made2");
addActivator("do1", do1, {onClick:function ():void{
if (ifThis("cannon_right_ok")){
if (ifThis("bridge_ok")){
goWin();
} else {
if (((ifThis("robot_ok")) && (ifThis("trap_made1")))){
shootBridge();
} else {
if (((ifThis("trap_made2")) && (ifNotThis("robot_ok")))){
killRobot();
} else {
if (((ifThis("ballViolet_ok")) && (ifNotThis("robot_ok")))){
robotKillUs();
} else {
jfRefused();
};
};
};
};
} else {
jfRefused();
};
}});
addActivator("ballViolet", ballViolet, {onClick:function ():void{
if (ifThis("rope_ok")){
takeBallViolet();
} else {
jfRefused();
};
}});
addActivator("ballOrange", ballOrange, {onClick:function ():void{
if (ifThis("rope_ok")){
takeBallOrange();
} else {
jfRefused();
};
}});
addActivator("car", car, {onClick:function ():void{
if (ifThis("rope_ok")){
takeScrew();
} else {
jfRefused();
};
}});
addActivator("rope", rope, {onClick:function ():void{
takeRope();
}});
addActivator("cannon", cannon, {onClick:function ():void{
turnCannonRight();
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
}
}//package
Section 143
//Episode_06 (Episode_06)
package {
import flash.events.*;
public dynamic class Episode_06 extends Episode {
public var jfUp:Boolean;
public function Episode_06(){
addFrameScript(0, frame1);
}
public function takeLamp():void{
action = false;
jf.walkTo(138);
motionTo(jf, 138, jf.y, 1, function (){
jf.turnOn("left");
jf.takeItem("lamp", lamp, function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("lamp_ok");
lamp2.gotoAndStop(2);
});
});
removeActivator("lamp2");
}
public function killFish():void{
action = false;
jf.walkTo(80);
motionTo(jf, 80, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("lamp");
jf.playAnim("throw_lamp", function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("fish_ok");
fish.gotoAndPlay(130);
});
});
removeActivator("fish");
}
public function takeShoes1():void{
action = false;
if (jfUp){
jf.gotoAndStop("walk");
jf.turnOn("left");
motionTo(jf, 90, 197, 1, function (){
jf.turnOn("right");
motionTo(jf, 275, 397, 1, function (){
jfUp = false;
takeShoes12();
});
});
} else {
takeShoes12();
};
}
public function takeShoes12():void{
jf.walkTo(168);
motionTo(jf, 168, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("shoes1", shoes1, function (){
jf.wait();
jf.playAnim("idle");
if (((((inventory.hasItem("shoes1")) && (inventory.hasItem("tape")))) && (inventory.hasItem("shoes2")))){
makeItem("trap3", ["shoes1", "tape", "shoes2"], 2, function ():void{
action = true;
}, "trap_made3");
} else {
action = true;
};
causeEvent("shoes1_ok");
});
});
removeActivator("shoes1");
}
public function takeShoes2():void{
action = false;
if (!jfUp){
jf.gotoAndStop("walk");
jf.turnOn("right");
motionTo(jf, 275, 397, 1, function (){
jf.turnOn("left");
motionTo(jf, 90, 197, 1, function (){
jfUp = true;
takeShoes22();
});
});
} else {
takeShoes22();
};
}
public function takeShoes22():void{
jf.walkTo(125);
motionTo(jf, 125, 184, 1, function (){
jf.turnOn("left");
jf.pickUpItem("shoes2", shoes2, function (){
jf.wait();
jf.playAnim("idle");
if (((((inventory.hasItem("shoes1")) && (inventory.hasItem("tape")))) && (inventory.hasItem("shoes2")))){
makeItem("trap3", ["shoes1", "tape", "shoes2"], 2, function ():void{
action = true;
}, "trap_made3");
} else {
action = true;
};
causeEvent("shoes2_ok");
});
});
removeActivator("shoes2");
}
public function takeTape():void{
action = false;
if (!jfUp){
jf.gotoAndStop("walk");
jf.turnOn("right");
motionTo(jf, 275, 397, 1, function (){
jf.turnOn("left");
motionTo(jf, 90, 197, 1, function (){
jfUp = true;
takeTape2();
});
});
} else {
takeTape2();
};
}
public function takeTape2():void{
jf.walkTo(125);
motionTo(jf, 125, 184, 1, function (){
jf.turnOn("right");
jf.pickUpItem("tape", tape, function (){
jf.wait();
jf.playAnim("idle");
if (((((inventory.hasItem("shoes1")) && (inventory.hasItem("tape")))) && (inventory.hasItem("shoes2")))){
makeItem("trap3", ["shoes1", "tape", "shoes2"], 2, function ():void{
action = true;
}, "trap_made3");
} else {
action = true;
};
causeEvent("tape_ok");
});
});
removeActivator("do1");
}
public function goDieFish():void{
action = false;
if (!jfUp){
jf.gotoAndStop("walk");
motionTo(jf, 275, 397, 1, function (){
jf.turnOn("left");
motionTo(jf, 90, 197, 1, function (){
jfUp = true;
goDieFish2();
});
});
} else {
goDieFish2();
};
}
public function goDieFish2():void{
jf.turnOn("right");
jf.wait();
jf.playAnim("idle");
fish.gotoAndPlay(86);
}
public function goDieOctopus():void{
action = false;
removeActivator("octopus");
if (!jfUp){
jf.gotoAndStop("walk");
motionTo(jf, 275, 397, 1, function (){
jf.turnOn("left");
motionTo(jf, 90, 197, 1, function (){
jfUp = true;
goDieOctopus2();
});
});
} else {
goDieOctopus2();
};
}
public function goDieOctopus2():void{
jf.walkTo(513);
motionTo(jf, 513, 174.1, 1, function (){
jf.visible = false;
octopus.gotoAndStop(2);
killing.gotoAndPlay(2);
});
}
public function tiedUpOctopus():void{
action = false;
if (!jfUp){
jf.gotoAndStop("walk");
motionTo(jf, 275, 397, 1, function (){
jf.turnOn("left");
motionTo(jf, 90, 197, 1, function (){
jfUp = true;
tiedUpOctopus2();
});
});
} else {
tiedUpOctopus2();
};
}
public function tiedUpOctopus2():void{
jf.walkTo(270);
motionTo(jf, 270, 197, 1, function (){
jf.turnOn("right");
deleteItem("trap3");
jf.playAnim("throw_rope+shoes", function (){
octopus.gotoAndStop(3);
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("octopus_ok");
});
});
}
public function killOctopusAndAqualanger():void{
removeActivator("octopus");
jf.walkTo(552);
motionTo(jf, 552, 197, 1, function (){
jf.turnOn("left");
jf.playAnim("take_up", function (){
octopus.gotoAndStop(4);
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("aqualanger_ok");
});
});
}
public function goWin():void{
action = false;
jf.gotoAndStop("walk");
jf.turnOn("left");
motionTo(jf, 90, 197, 1, function (){
jf.turnOn("right");
motionTo(jf, 275, 397, 1, function (){
jf.turnOn("right");
motionTo(jf, 700, jf.y, 1, function (){
win();
});
});
});
removeActivator("do2");
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
function frame1(){
jf.wait();
jf.gotoAndStop("idle");
jfUp = false;
initialize = function ():void{
action = true;
aqualanger.gotoAndStop(1);
octopus.gotoAndStop(1);
fish.gotoAndPlay(1);
lamp2.gotoAndStop(1);
killing.gotoAndStop(1);
door.gotoAndStop(1);
jf.wait();
jf.gotoAndStop("idle");
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("tape", Item_Tape);
registerItem("shoes1", Item_Shoes1);
registerItem("shoes2", Item_Shoes2);
registerItem("lamp", Item_Lamp);
registerItem("trap3", Item_Trap3, null, Anim_Trap3);
registerEvent("shoes1_ok");
registerEvent("shoes2_ok");
registerEvent("tape_ok");
registerEvent("lamp_ok");
registerEvent("fish_ok");
registerEvent("aqualanger_ok");
registerEvent("octopus_ok");
registerEvent("trap_made3");
addActivator("lamp2", lamp2, {onClick:function ():void{
takeLamp();
}});
addActivator("shoes1", shoes1, {onClick:function ():void{
takeShoes1();
}});
addActivator("fish", fish, {onClick:function ():void{
if (ifThis("lamp_ok")){
killFish();
} else {
jfRefused();
};
}});
addActivator("shoes2", shoes2, {onClick:function ():void{
if (ifThis("fish_ok")){
takeShoes2();
} else {
goDieFish();
};
}});
addActivator("do1", do1, {onClick:function ():void{
if (ifThis("fish_ok")){
takeTape();
} else {
goDieFish();
};
}});
addActivator("do2", do2, {onClick:function ():void{
if (ifThis("aqualanger_ok")){
goWin();
} else {
jfRefused();
};
}});
addActivator("octopus", octopus, {onClick:function ():void{
if (ifThis("octopus_ok")){
killOctopusAndAqualanger();
} else {
if (ifThis("trap_made3")){
tiedUpOctopus();
} else {
if (ifThis("fish_ok")){
goDieOctopus();
} else {
goDieFish();
};
};
};
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
}
}//package
Section 144
//Episode_07 (Episode_07)
package {
import flash.events.*;
public dynamic class Episode_07 extends Episode {
public function Episode_07(){
addFrameScript(0, frame1);
}
public function takeRod():void{
action = false;
jf.walkTo(41);
motionTo(jf, 41, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("rod", rod, function (){
jf.wait();
jf.playAnim("idle");
if (((((inventory.hasItem("rod")) && (inventory.hasItem("skeleton")))) && (inventory.hasItem("collar")))){
makeItem("trap5", ["rod", "skeleton", "collar"], 2, function ():void{
action = true;
}, "trap_made5");
} else {
action = true;
};
causeEvent("rod_ok");
});
});
removeActivator("do1");
}
public function takeCollar():void{
action = false;
jf.walkTo(202);
motionTo(jf, 202, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("collar", collar, function (){
jf.wait();
jf.playAnim("idle");
if (((((inventory.hasItem("rod")) && (inventory.hasItem("skeleton")))) && (inventory.hasItem("collar")))){
makeItem("trap5", ["rod", "skeleton", "collar"], 2, function ():void{
action = true;
}, "trap_made5");
} else {
action = true;
};
causeEvent("collar_ok");
});
});
removeActivator("do2");
}
public function takeSkeleton():void{
action = false;
jf.walkTo(290);
motionTo(jf, 290, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("skeleton", skeleton, function (){
jf.wait();
jf.playAnim("idle");
if (((((inventory.hasItem("rod")) && (inventory.hasItem("skeleton")))) && (inventory.hasItem("collar")))){
makeItem("trap5", ["rod", "skeleton", "collar"], 2, function ():void{
action = true;
}, "trap_made5");
} else {
action = true;
};
causeEvent("skeleton_ok");
});
});
removeActivator("do3");
}
public function goDie():void{
action = false;
jf.walkTo(390);
motionTo(jf, 390, jf.y, 1, function (){
jf.turnOn("right");
dino.gotoAndStop(2);
jf.playAnim("take", function (){
});
});
removeActivator("dino");
}
public function killDino():void{
action = false;
jf.walkTo(390);
motionTo(jf, 390, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("trap5");
jf.playAnim("take", function (){
dino.gotoAndStop(3);
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("dino_ok");
});
});
removeActivator("dino");
}
public function goWin():void{
action = false;
jf.walkTo(700);
motionTo(jf, 700, jf.y, 1, function (){
win();
});
removeActivator("do4");
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
function frame1(){
jf.wait();
jf.gotoAndStop("idle");
initialize = function ():void{
action = true;
dino.gotoAndStop(1);
jf.wait();
jf.gotoAndStop("idle");
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("skeleton", Item_Skeleton);
registerItem("collar", Item_Collar);
registerItem("rod", Item_Rod);
registerItem("trap5", Item_Trap5, null, Anim_Trap3);
registerEvent("collar_ok");
registerEvent("rod_ok");
registerEvent("dino_ok");
registerEvent("skeleton_ok");
registerEvent("trap_made5");
addActivator("do4", do4, {onClick:function ():void{
if (ifThis("dino_ok")){
goWin();
} else {
goDie();
};
}});
addActivator("dino", dino, {onClick:function ():void{
if (ifThis("trap_made5")){
killDino();
} else {
goDie();
};
}});
addActivator("do1", do1, {onClick:function ():void{
takeRod();
}});
addActivator("do2", do2, {onClick:function ():void{
takeCollar();
}});
addActivator("do3", do3, {onClick:function ():void{
takeSkeleton();
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
}
}//package
Section 145
//Episode_08 (Episode_08)
package {
import flash.events.*;
public dynamic class Episode_08 extends Episode {
public function Episode_08(){
addFrameScript(0, frame1);
}
public function takeFire():void{
action = false;
jf.walkTo(560);
motionTo(jf, 560, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("fire", fire, function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("fire_ok");
});
});
removeActivator("fire");
}
public function takeBumerang():void{
action = false;
jf.walkTo(90);
motionTo(jf, 90, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("bumerang", bumerang, function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("bumerang_ok");
});
});
removeActivator("bumerang");
}
public function goDie():void{
action = false;
jf.walkTo((jf.x + 30));
motionTo(jf, (jf.x + 30), jf.y, 1, function (){
jf.turnOn("right");
astronaut.gotoAndStop(2);
jf.wait();
jf.playAnim("idle");
});
}
public function dollFree():void{
action = false;
jf.walkTo(230);
motionTo(jf, 230, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
doll.gotoAndPlay(2);
jf.wait();
jf.playAnim("idle");
causeEvent("doll_ok");
});
});
removeActivator("doll");
}
public function freeMonster():void{
action = false;
jf.walkTo(230);
motionTo(jf, 230, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
monster.gotoAndPlay(300);
astronaut.gotoAndStop(4);
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("astronaut_ok");
});
});
removeActivator("monster");
}
public function monsterDown():void{
action = false;
jf.walkTo(210);
motionTo(jf, 210, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("bumerang");
jf.playAnim("bumerang", function (){
jf.wait();
jf.playAnim("idle");
action = true;
causeEvent("monster_ok");
});
});
}
public function goWin():void{
action = false;
jf.walkTo(295);
motionTo(jf, 295, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("fire");
jf.playAnim("pickUp", function (){
jf.walkTo(700);
motionTo(jf, 700, jf.y, 1, function (){
jf.wait();
jf.playAnim("idle");
});
spaceship.gotoAndPlay(2);
});
});
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
function frame1(){
jf.wait();
jf.gotoAndStop("idle");
initialize = function ():void{
action = true;
astronaut.gotoAndStop(1);
doll.gotoAndStop(1);
monster.gotoAndStop(1);
spaceship.gotoAndStop(1);
jf.wait();
jf.gotoAndStop("idle");
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("bumerang", Item_Bumerang);
registerItem("fire", Item_Fire);
registerEvent("doll_ok");
registerEvent("monster_ok");
registerEvent("astronaut_ok");
registerEvent("bumerang_ok");
registerEvent("fire_ok");
addActivator("spaceship", spaceship, {onClick:function ():void{
if (ifThis("fire_ok")){
goWin();
} else {
if (ifThis("astronaut_ok")){
jfRefused();
} else {
goDie();
};
};
}});
addActivator("monster", monster, {onClick:function ():void{
if (ifNotThis("monster_ok")){
if (((ifThis("bumerang_ok")) && (ifThis("doll_ok")))){
monsterDown();
} else {
if (ifThis("doll_ok")){
jfRefused();
} else {
goDie();
};
};
} else {
freeMonster();
};
}});
addActivator("bumerang", bumerang, {onClick:function ():void{
takeBumerang();
}});
addActivator("doll", doll, {onClick:function ():void{
dollFree();
}});
addActivator("fire", fire, {onClick:function ():void{
if (ifThis("astronaut_ok")){
takeFire();
} else {
goDie();
};
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
}
}//package
Section 146
//EpisodesManager (EpisodesManager)
package {
import flash.display.*;
public class EpisodesManager extends Sprite {
private var _registry:Object;
private var _sequence:Array;
private var _episode:Episode;
private var _episodeName:String;
private var _episodeIndex:int;
private static var _instance:EpisodesManager;
public function EpisodesManager(){
_instance = this;
_registry = new Object();
_sequence = new Array();
}
public function registerEpisode(_arg1:String, _arg2:uint, _arg3:Class):void{
var _local4:Object;
if (!_registry[_arg1]){
if (!_sequence[_arg2]){
if (_arg3){
_local4 = {proto:_arg3, name:_arg1, index:_arg2};
_registry[_arg1] = _local4;
_sequence[_arg2] = _local4;
} else {
throw (new Error("[EpisodesManager] : <registerEpisode> : Can't register null-episode."));
};
} else {
throw (new Error("[EpisodesManager] : <registerEpisode> : Episode with same index already registered."));
};
} else {
throw (new Error("[EpisodesManager] : <registerEpisode> : Episode with same name already registered."));
};
}
public function unregisterEpisode(_arg1:String):void{
if (_registry[_arg1]){
if (_sequence[_registry[_arg1].index] == _registry[_arg1]){
_sequence[_registry[_arg1].index] = undefined;
delete _registry[_arg1];
} else {
throw (new Error("[EpisodesManager] : <unregisterEpisode> : Index mismatch."));
};
} else {
throw (new Error("[EpisodesManager] : <unregisterEpisode> : Episode with such name isn't registered."));
};
}
public function getCurrentEpisode():Episode{
return (_episode);
}
public function getCurrentEpisodeName():String{
return (_episodeName);
}
public function getCurrentEpisodeIndex():int{
return (_episodeIndex);
}
public function getEpisodeByName(_arg1:String):Episode{
return (_registry[_arg1]);
}
public function getEpisodeByIndex(_arg1:uint):Episode{
return (_sequence[_arg1]);
}
public function loadEpisode(_arg1:String):void{
if (_registry[_arg1]){
if (_sequence[_registry[_arg1].index] == _registry[_arg1]){
if (_episode){
_episode.unload();
removeChild(_episode);
_episode = undefined;
};
_episodeName = _arg1;
_episodeIndex = _registry[_arg1].index;
_episode = new _registry[_arg1].proto();
_episode.name = _episodeName;
_episode.index = _episodeIndex;
_episode.load();
addChild(_episode);
} else {
throw (new Error("[EpisodesManager] : <loadEpisode> : Index mismatch."));
};
} else {
throw (new Error("[EpisodesManager] : <loadEpisode> : Episode with such name isn't registered."));
};
}
public function unloadEpisode():void{
if (_episode){
_episode.unload();
removeChild(_episode);
_episode = undefined;
} else {
throw (new Error("[EpisodesManager] : <unloadEpisode> : There is no episode to unload."));
};
}
public function reloadEpisode():void{
if (((_episodeName) && (_episodeIndex))){
if (_episode){
_episode.unload();
removeChild(_episode);
_episode = undefined;
};
_episode = new _registry[_episodeName].proto();
_episode.name = _episodeName;
_episode.index = _episodeIndex;
_episode.load();
addChild(_episode);
} else {
throw (new Error("[EpisodesManager] : <unloadEpisode> : There is no episode to reload."));
};
}
public function prevEpisode():void{
if (_episodeIndex > 0){
if (_sequence[(_episodeIndex - 1)]){
playEpisode(_sequence[(_episodeIndex - 1)].name);
} else {
throw (new Error("[EpisodesManager] : <prevEpisode> : There isn't prev episode."));
};
} else {
throw (new Error("[EpisodesManager] : <prevEpisode> : There isn't prev episode."));
};
}
public function nextEpisode():void{
if (_episodeIndex < (_sequence.length - 1)){
if (_sequence[(_episodeIndex + 1)]){
playEpisode(_sequence[(_episodeIndex + 1)].name);
} else {
throw (new Error("[EpisodesManager] : <nextEpisode> : There isn't next episode."));
};
} else {
throw (new Error("[EpisodesManager] : <nextEpisode> : There isn't next episode."));
};
}
public function startEpisode():void{
if (_episode){
_episode.start();
} else {
throw (new Error("[EpisodesManager] : <startEpisode> : There is no episode to start."));
};
}
public function finishEpisode():void{
if (_episode){
_episode.finish();
} else {
throw (new Error("[EpisodesManager] : <finishEpisode> : There is no episode to finish."));
};
}
public function playEpisode(_arg1:String):void{
loadEpisode(_arg1);
startEpisode();
}
public function replayEpisode():void{
reloadEpisode();
startEpisode();
}
public function winEpisode():void{
if (_episode){
_episode.win();
} else {
throw (new Error("[EpisodesManager] : <winEpisode> : There is no episode to win."));
};
}
public function loseEpisode():void{
if (_episode){
_episode.lose();
} else {
throw (new Error("[EpisodesManager] : <loseEpisode> : There is no episode to lose."));
};
}
public function enableEpisode():void{
if (_episode){
_episode.enable();
} else {
throw (new Error("[EpisodesManager] : <enableEpisode> : There is no episode to enable."));
};
}
public function disableEpisode():void{
if (_episode){
_episode.disable();
} else {
throw (new Error("[EpisodesManager] : <disableEpisode> : There is no episode to disable."));
};
}
public function isPrevEpisode():Boolean{
return ((((_episodeIndex > 0)) && (_sequence[(_episodeIndex - 1)])));
}
public function isNextEpisode():Boolean{
return ((((_episodeIndex < (_sequence.length - 1))) && (_sequence[(_episodeIndex + 1)])));
}
public static function get instance():EpisodesManager{
return (_instance);
}
}
}//package
Section 147
//FailWindow (FailWindow)
package {
import windows.*;
public dynamic class FailWindow extends Window {
}
}//package
Section 148
//FinalWindow (FinalWindow)
package {
import windows.*;
public dynamic class FinalWindow extends Window {
public function FinalWindow(){
addFrameScript(0, frame1);
}
function frame1(){
if (Game.instance){
time_tf.text = String(Console.formatTime(Game.instance.totalTime, false));
};
}
}
}//package
Section 149
//Game (Game)
package {
import flash.display.*;
import windows.*;
public class Game extends MovieClip {
public var animationLayer:MovieClip;
public var helpButton:MovieClip;
public var muteButton:MovieClip;
public var invView:InventoryView;
public var windowsManager:WindowsManager;
public var episodesManager:EpisodesManager;
public var totalScore:Number;// = 0
public var totalTime:Number;// = 0
public static const screen_w:Number = 640;
public static const screen_h:Number = 480;
private static var _instance:Game;
public static var sitelock:Boolean = false;
public static var gamemode:String = "normal";
public static var helplink:String;
public static var link1:String;
public static var link2:String;
public static var link3:String;
public static var link4:String;
public static var link5:String;
public function Game(){
addFrameScript(0, frame1);
_instance = this;
showHelloWindow();
}
function destroy():void{
_instance = undefined;
}
public function registerEpisode(_arg1:String, _arg2:uint, _arg3:Class):void{
episodesManager.registerEpisode(_arg1, _arg2, _arg3);
}
public function unregisterEpisode(_arg1:String):void{
episodesManager.unregisterEpisode(_arg1);
}
public function getCurrentEpisode():Episode{
return (episodesManager.getCurrentEpisode());
}
public function getCurrentEpisodeName():String{
return (episodesManager.getCurrentEpisodeName());
}
public function getCurrentEpisodeIndex():int{
return (episodesManager.getCurrentEpisodeIndex());
}
public function getEpisodeByName(_arg1:String):Episode{
return (episodesManager.getEpisodeByName(_arg1));
}
public function getEpisodeByIndex(_arg1:uint):Episode{
return (episodesManager.getEpisodeByIndex(_arg1));
}
public function loadEpisode(_arg1:String):void{
episodesManager.loadEpisode(_arg1);
}
public function unloadEpisode():void{
episodesManager.unloadEpisode();
}
public function reloadEpisode():void{
episodesManager.reloadEpisode();
}
public function prevEpisode():void{
episodesManager.prevEpisode();
}
public function nextEpisode():void{
episodesManager.nextEpisode();
}
public function startEpisode():void{
episodesManager.startEpisode();
}
public function finishEpisode():void{
episodesManager.finishEpisode();
}
public function playEpisode(_arg1:String):void{
episodesManager.playEpisode(_arg1);
}
public function replayEpisode():void{
episodesManager.replayEpisode();
}
public function winEpisode():void{
episodesManager.winEpisode();
}
public function loseEpisode():void{
episodesManager.loseEpisode();
}
public function enableEpisode():void{
episodesManager.enableEpisode();
}
public function disableEpisode():void{
episodesManager.disableEpisode();
}
public function isPrevEpisode():Boolean{
return (episodesManager.isPrevEpisode());
}
public function isNextEpisode():Boolean{
return (episodesManager.isNextEpisode());
}
public function showHelloWindow():void{
windowsManager.openHelloWindow();
}
public function showNextWindow():void{
windowsManager.openNextWindow();
}
public function showFinalWindow():void{
windowsManager.openFinalWindow();
}
public function showFailWindow():void{
windowsManager.openFailWindow();
}
public function hideActiveWindow():void{
if (windowsManager.activeWindow){
windowsManager.closeActiveWindow();
};
}
function frame1(){
muteButton.visible = false;
helpButton.visible = false;
invView.visible = false;
registerEpisode("first", 1, Episode_01);
registerEpisode("second", 2, Episode_02);
registerEpisode("third", 3, Episode_03);
registerEpisode("fourth", 4, Episode_04);
registerEpisode("fifth", 5, Episode_05);
registerEpisode("sixth", 6, Episode_06);
registerEpisode("seventh", 7, Episode_07);
registerEpisode("eighth", 8, Episode_08);
}
public static function get instance():Game{
return (_instance);
}
}
}//package
Section 150
//GameMusic (GameMusic)
package {
import flash.media.*;
public dynamic class GameMusic extends Sound {
}
}//package
Section 151
//HelloWindow (HelloWindow)
package {
import windows.*;
public dynamic class HelloWindow extends Window {
}
}//package
Section 152
//hero (hero)
package {
public dynamic class hero extends Character {
public function hero(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 11, frame12, 12, frame13, 13, frame14, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 20, frame21, 21, frame22, 24, frame25, 25, frame26, 27, frame28);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
function frame10(){
stop();
}
function frame12(){
stop();
}
function frame13(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame18(){
stop();
}
function frame19(){
stop();
}
function frame21(){
stop();
}
function frame22(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame28(){
stop();
}
}
}//package
Section 153
//Inventory (Inventory)
package {
import flash.display.*;
import flash.events.*;
import windows.*;
public class Inventory extends EventDispatcher {
private var _episode:Episode;
private var _items:Object;
private static var _instance:Inventory;
public function Inventory(_arg1:Episode){
_instance = this;
_episode = _arg1;
_items = new Object();
}
public function destroy():void{
var _local1:String;
InventoryView.instance.reset();
for (_local1 in _items) {
_items[_local1].destroy();
delete _items[_local1];
};
_items = undefined;
_episode = undefined;
if (_instance == this){
_instance = undefined;
};
}
public function addItem(_arg1:String, _arg2:Boolean=true):void{
if (_episode.isItem(_arg1)){
if (!_items[_arg1]){
_items[_arg1] = _episode.callItem(_arg1);
Tracer.report("[i]", (("Item '" + _arg1) + "' added."), "Inventory");
if (_arg2){
InventoryView.instance.addItem(_arg1);
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' already in inventory."), "Inventory");
throw (new Error((("[Inventory] : <addItem> : Item '" + _arg1) + "' already in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <addItem> : Item '" + _arg1) + "' isn't registered in episode.")));
};
}
public function removeItem(_arg1:String, _arg2:Boolean=true):void{
if (_episode.isItem(_arg1)){
if (_items[_arg1]){
if (_arg2){
InventoryView.instance.removeItem(_arg1);
};
delete _items[_arg1];
Tracer.report("[i]", (("Item '" + _arg1) + "' removed."), "Inventory");
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' not found in inventory."), "Inventory");
throw (new Error((("[Inventory] : <removeItem> : Item '" + _arg1) + "' not found in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <removeItem> : Item '" + _arg1) + "' isn't registered in episode.")));
};
}
public function findItem(_arg1:String):Item{
if (_episode.isItem(_arg1)){
return (_items[_arg1]);
};
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <findItem> : Item '" + _arg1) + "' isn't registered in episode.")));
}
public function takeItem(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=true):void{
if (_episode.isItem(_arg1)){
if (!_items[_arg1]){
_items[_arg1] = _episode.callItem(_arg1);
Tracer.report("[i]", (("Item '" + _arg1) + "' added."), "Inventory");
Tracer.report("[i]", "WindowItem: takeItem().", "Inventory");
if (_arg2){
showItemWindow(_arg1);
};
if (_arg3){
InventoryView.instance.addItem(_arg1);
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' already in inventory."), "Inventory");
throw (new Error((("[Inventory] : <takeItem> : Item '" + _arg1) + "' already in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <takeItem> : Item '" + _arg1) + "' isn't registered in episode.")));
};
}
public function makeItem(_arg1:String, _arg2:Array, _arg3:Boolean=true):void{
var _local4:uint;
var _local5:uint;
var _local6:String;
var _local7:Object;
if (_episode.isItem(_arg1)){
if (!_items[_arg1]){
_local5 = _arg2.length;
_local7 = new Object();
_local4 = 0;
while (_local4 < _local5) {
_local6 = _arg2[_local4];
if (!_local7[_local6]){
_local7[_local6] = true;
if (_episode.isItem(_local6)){
if (!_items[_local6]){
Tracer.report("[X]", (("Item '" + _local6) + "' not found in inventory."), "Inventory");
throw (new Error((("[Inventory] : <makeItem> : Item '" + _local6) + "' not found in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + _local6) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <makeItem> : Item '" + _local6) + "' isn't registered in episode.")));
};
} else {
Tracer.report("[X]", (("Duplicated material item '" + _local6) + "'."), "Inventory");
throw (new Error((("[Inventory] : <makeItem> : Duplicated material item '" + _local6) + "'.")));
};
_local4++;
};
_local4 = 0;
while (_local4 < _local5) {
if (_arg3){
InventoryView.instance.removeItem(_arg2[_local4]);
};
delete _items[_arg2[_local4]];
_local4++;
};
_items[_arg1] = _episode.callItem(_arg1);
Tracer.report("[i]", (("Item '" + _arg1) + "' added."), "Inventory");
Tracer.report("[i]", "WindowItem: makeItem().", "Inventory");
showItemWindow(_arg1, "make");
if (_arg3){
InventoryView.instance.addItem(_arg1);
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' already in inventory."), "Inventory");
throw (new Error((("[Inventory] : <makeItem> : Item '" + _arg1) + "' already in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <makeItem> : Item '" + _arg1) + "' isn't registered in episode.")));
};
}
public function tryMakeItem(_arg1:String, _arg2:Array, _arg3:Boolean=true):void{
var _local4:uint;
var _local5:uint;
var _local6:String;
var _local7:Object;
if (_episode.isItem(_arg1)){
if (!_items[_arg1]){
_local5 = _arg2.length;
_local7 = new Object();
_local4 = 0;
while (_local4 < _local5) {
_local6 = _arg2[_local4];
if (!_local7[_local6]){
_local7[_local6] = true;
if (_episode.isItem(_local6)){
if (!_items[_local6]){
Tracer.report("[X]", (("Item '" + _local6) + "' not found in inventory."), "Inventory");
return;
};
} else {
Tracer.report("[X]", (("Item '" + _local6) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <tryMakeItem> : Item '" + _local6) + "' isn't registered in episode.")));
};
} else {
Tracer.report("[X]", (("Duplicated material item '" + _local6) + "'."), "Inventory");
throw (new Error((("[Inventory] : <tryMakeItem> : Duplicated material item '" + _local6) + "'.")));
};
_local4++;
};
_local4 = 0;
while (_local4 < _local5) {
if (_arg3){
InventoryView.instance.removeItem(_arg2[_local4]);
};
delete _items[_arg2[_local4]];
_local4++;
};
_items[_arg1] = _episode.callItem(_arg1);
Tracer.report("[i]", (("Item '" + _arg1) + "' added."), "Inventory");
Tracer.report("[i]", "WindowItem: tryMakeItem().", "Inventory");
showItemWindow(_arg1, "make");
if (_arg3){
InventoryView.instance.addItem(_arg1);
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' already in inventory."), "Inventory");
throw (new Error((("[Inventory] : <makeItem> : Item '" + _arg1) + "' already in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <makeItem> : Item '" + _arg1) + "' isn't registered in episode.")));
};
}
public function makeItemAnimated(_arg1:String, _arg2:Array, _arg3:Function=null):void{
var _local4:uint;
var _local5:uint;
var _local6:String;
var _local7:Object;
var _local8:Array;
if (_episode.isItem(_arg1)){
if (!_items[_arg1]){
_local5 = _arg2.length;
_local7 = new Object();
_local4 = 0;
while (_local4 < _local5) {
_local6 = _arg2[_local4];
if (!_local7[_local6]){
_local7[_local6] = true;
if (_episode.isItem(_local6)){
if (!_items[_local6]){
Tracer.report("[X]", (("Item '" + _local6) + "' not found in inventory."), "Inventory");
throw (new Error((("[Inventory] : <makeItemAnimated> : Item '" + _local6) + "' not found in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + _local6) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <makeItemAnimated> : Item '" + _local6) + "' isn't registered in episode.")));
};
} else {
Tracer.report("[X]", (("Duplicated material item '" + _local6) + "'."), "Inventory");
throw (new Error((("[Inventory] : <makeItemAnimated> : Duplicated material item '" + _local6) + "'.")));
};
_local4++;
};
_local8 = new Array();
_local4 = 0;
while (_local4 < _local5) {
_local8.push(_arg2[_local4]);
_local4++;
};
InventoryAnimator.animate(_arg1, _local8, _arg3);
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' already in inventory."), "Inventory");
throw (new Error((("[Inventory] : <makeItemAnimated> : Item '" + _arg1) + "' already in inventory.")));
};
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <makeItemAnimated> : Item '" + _arg1) + "' isn't registered in episode.")));
};
}
public function hasItem(_arg1:String):Boolean{
if (_episode.isItem(_arg1)){
return (Boolean(_items[_arg1]));
};
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <hasItem> : Item '" + _arg1) + "' isn't registered in episode.")));
}
public function notHasItem(_arg1:String):Boolean{
if (_episode.isItem(_arg1)){
return (!(Boolean(_items[_arg1])));
};
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <notHasItem> : Item '" + _arg1) + "' isn't registered in episode.")));
}
public function hasAllItems(_arg1:Array):Boolean{
var _local3:String;
var _local2:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local2) {
_local3 = _arg1[_local4];
if (_episode.isItem(_local3)){
if (!_items[_local3]){
return (false);
};
} else {
Tracer.report("[X]", (("Item '" + _local3) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <hasAllItems> : Item '" + _local3) + "' isn't registered in episode.")));
};
_local4++;
};
return (true);
}
public function notHasAllItems(_arg1:Array):Boolean{
var _local3:String;
var _local2:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local2) {
_local3 = _arg1[_local4];
if (_episode.isItem(_local3)){
if (_items[_local3]){
return (false);
};
} else {
Tracer.report("[X]", (("Item '" + _local3) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <notHasAllItems> : Item '" + _local3) + "' isn't registered in episode.")));
};
_local4++;
};
return (true);
}
public function hasAnyItem(_arg1:Array):Boolean{
var _local3:String;
var _local2:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local2) {
_local3 = _arg1[_local4];
if (_episode.isItem(_local3)){
if (_items[_local3]){
return (true);
};
} else {
Tracer.report("[X]", (("Item '" + _local3) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <hasAnyItem> : Item '" + _local3) + "' isn't registered in episode.")));
};
_local4++;
};
return (false);
}
public function notHasAnyItem(_arg1:Array):Boolean{
var _local3:String;
var _local2:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local2) {
_local3 = _arg1[_local4];
if (_episode.isItem(_local3)){
if (!_items[_local3]){
return (true);
};
} else {
Tracer.report("[X]", (("Item '" + _local3) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <notHasAnyItem> : Item '" + _local3) + "' isn't registered in episode.")));
};
_local4++;
};
return (false);
}
public function hasNotLessOfItems(_arg1:uint, _arg2:Array):Boolean{
var _local3:uint;
var _local4:String;
var _local5:uint;
var _local6:uint;
if (_arg1 == 0){
return (true);
};
if (_arg1 <= _arg2.length){
_local3 = _arg2.length;
_local5 = 0;
_local6 = 0;
while (_local6 < _local3) {
_local4 = _arg2[_local6];
if (_episode.isItem(_local4)){
if (_items[_local4]){
_local5++;
};
} else {
Tracer.report("[X]", (("Item '" + _local4) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <hasNotLessOfItems> : Item '" + _local4) + "' isn't registered in episode.")));
};
_local6++;
};
return ((_local5 >= _arg1));
};
return (false);
}
public function hasNotMoreOfItems(_arg1:uint, _arg2:Array):Boolean{
var _local3:uint;
var _local4:String;
var _local5:uint;
var _local6:uint;
if (_arg1 <= _arg2.length){
_local3 = _arg2.length;
_local5 = 0;
_local6 = 0;
while (_local6 < _local3) {
_local4 = _arg2[_local6];
if (_episode.isItem(_local4)){
if (_items[_local4]){
_local5++;
};
} else {
Tracer.report("[X]", (("Item '" + _local4) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <hasNotMoreOfItems> : Item '" + _local4) + "' isn't registered in episode.")));
};
_local6++;
};
return ((_local5 <= _arg1));
};
return (true);
}
public function hasNumberOfItems(_arg1:uint, _arg2:Array):Boolean{
var _local3:uint;
var _local4:String;
var _local5:uint;
var _local6:uint;
if (_arg1 <= _arg2.length){
_local3 = _arg2.length;
_local5 = 0;
_local6 = 0;
while (_local6 < _local3) {
_local4 = _arg2[_local6];
if (_episode.isItem(_local4)){
if (_items[_local4]){
_local5++;
};
} else {
Tracer.report("[X]", (("Item '" + _local4) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <hasNumberOfItems> : Item '" + _local4) + "' isn't registered in episode.")));
};
_local6++;
};
return ((_local5 == _arg1));
};
return (false);
}
public function getAnyItem(_arg1:Array):Item{
var _local3:String;
var _local2:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local2) {
if (_episode.isItem(_local3)){
_local3 = _arg1[_local4];
if (_items[_local3]){
return (_items[_local3]);
};
} else {
Tracer.report("[X]", (("Item '" + _local3) + "' isn't registered in episode."), "Inventory");
throw (new Error((("[Inventory] : <getAny> : Item '" + _local3) + "' isn't registered in episode.")));
};
_local4++;
};
return (null);
}
private function showItemWindow(_arg1:String, _arg2:String="take"):void{
var _local5:*;
var _local6:DisplayObject;
var _local3:Item = _items[_arg1];
var _local4:ItemWindow = (WindowsManager.instance.openItemWindow() as ItemWindow);
if ((((((_arg2 == "take")) && (_local3.icon))) || ((((_arg2 == "make")) && (_local3.anim))))){
_local5 = ((_arg2)=="make") ? _local3.anim : _local3.icon;
_local6 = new (_local5);
InventoryView.scaleImage(_local6);
_local6.x = (_local4.holder.width / 2);
_local6.y = (_local4.holder.height / 2);
_local4.holder.addChild(_local6);
_local4.startLifeTimer();
} else {
Tracer.report("[!]", "WindowItem: icon for item is undefined.", "Inventory");
};
}
public function listItems():void{
var _local2:String;
trace("[S] LIST: inventory items:");
var _local1:uint;
for (_local2 in _items) {
trace((((" - " + _local2) + " = ") + _items[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public static function get instance():Inventory{
return (_instance);
}
}
}//package
Section 154
//InventoryAnimator (InventoryAnimator)
package {
import flash.display.*;
import com.greensock.*;
import windows.*;
public class InventoryAnimator {
public static const ITEM_FLYING_IN:Number = 1;
public static const ITEM_FLYING_OUT:Number = 1;
private static var _item:String;
private static var _icon:DisplayObject;
private static var _materials:Object = new Object();
private static var _highlight:Object = new Object();
private static var _matImages:Object = new Object();
private static var _toMove:Array = new Array();
private static var _callback:Function;
public static function animate(_arg1:String, _arg2:Array, _arg3:Function=null):void{
var _local4:uint;
var _local5:uint;
var _local6:String;
if (_arg1){
if (_arg2){
_item = _arg1;
_local4 = _arg2.length;
_local5 = 0;
while (_local5 < _local4) {
if (_arg2[_local5]){
_materials[_arg2[_local5]] = true;
} else {
throw (new Error("[ItemsAnimationManager] : <animate> : Wrong input."));
};
_local5++;
};
_callback = _arg3;
InventoryView.instance.freeze = true;
for (_local6 in _materials) {
_highlight[_local6] = true;
InventoryView.instance.highlightItem(_local6, onItemAnimComplete);
};
} else {
throw (new Error("[ItemsAnimationManager] : <animate> : Wrong input."));
};
} else {
throw (new Error("[ItemsAnimationManager] : <animate> : Wrong input."));
};
}
private static function onItemAnimComplete(_arg1:String):void{
var _local3:String;
var _local4:String;
var _local5:ItemWindow;
var _local6:DisplayObject;
delete _highlight[_arg1];
var _local2:Boolean;
for (_local3 in _highlight) {
_local2 = false;
break;
};
if (_local2){
for (_local4 in _materials) {
_local6 = InventoryView.instance.cutIcon(_local4);
_matImages[_local4] = _local6;
_toMove.push(_local6);
Game.instance.animationLayer.addChild(_local6);
};
_local5 = (WindowsManager.instance.openItemWindow() as ItemWindow);
queryAnim(_toMove.shift());
};
}
private static function queryAnim(_arg1:Sprite):void{
var image = _arg1;
if (_toMove.length){
TweenLite.to(image, ITEM_FLYING_IN, {x:320, y:240, onComplete:function ():void{
queryAnim(_toMove.shift());
}, onCompleteParams:[image]});
} else {
TweenLite.to(image, ITEM_FLYING_IN, {x:320, y:240, onComplete:function ():void{
makeItem();
}});
};
}
private static function makeItem():void{
var _local3:String;
var _local4:*;
var _local5:DisplayObject;
var _local1:Episode = Game.instance.getCurrentEpisode();
var _local2:ItemWindow = (WindowsManager.instance.activeWindow as ItemWindow);
for (_local3 in _matImages) {
Game.instance.animationLayer.removeChild(_matImages[_local3]);
_local1.inventory.removeItem(_local3);
};
_local4 = _local1.callItem(_item).icon;
_local5 = new (_local4);
InventoryView.scaleImage(_local5);
_local5.x = (_local2.holder.width / 2);
_local5.y = (_local2.holder.height / 2);
_local2.holder.addChild(_local5);
_local2.playGFX(placeItem);
_icon = _local5;
}
private static function placeItem():void{
var wndw:ItemWindow;
Inventory.instance.addItem(_item, false);
wndw = (WindowsManager.instance.activeWindow as ItemWindow);
InventoryView.instance.addEmptyItem(_item);
var pos:Object = InventoryView.instance.getIconPosition(_item);
wndw.holder.removeChild(_icon);
_icon.x = (_icon.x + (wndw.holder.x + wndw.x));
_icon.y = (_icon.y + (wndw.holder.y + wndw.y));
Game.instance.animationLayer.addChild(_icon);
TweenLite.to(_icon, ITEM_FLYING_OUT, {x:pos.x, y:pos.y, onComplete:function ():void{
var _local1:*;
InventoryView.instance.setIcon(_item, _icon);
wndw.close();
InventoryView.instance.freeze = false;
if (_callback != null){
_local1 = _callback;
clear();
_local1();
} else {
clear();
};
}});
}
private static function clear():void{
_item = undefined;
_icon = undefined;
_materials = new Object();
_highlight = new Object();
_matImages = new Object();
_toMove = new Array();
_callback = undefined;
}
}
}//package
Section 155
//InventoryView (InventoryView)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class InventoryView extends MovieClip {
public var iconsCont:MovieClip;
public var iconsMask:MovieClip;
private var _slots:Array;
private var _names:Object;
private var _rewind:Boolean;
private var _freeze:Boolean;
public static const LRINDENT:Number = 1;
public static const GAPWIDTH:Number = 12;
public static const SLOTSIZE:Number = 42;
public static const ICONSIZE:Number = 36;
public static const ICONSSPD:Number = 5;
public static const XSPACE:Number = 10;
public static const YSPACE:Number = 0;
private static var _instance:InventoryView;
public function InventoryView(){
_instance = this;
_slots = new Array();
_names = new Object();
if (((iconsCont) && (iconsMask))){
iconsCont.mask = iconsMask;
iconsMask.addEventListener(Event.ENTER_FRAME, iconsMaskOnEnterFrame);
};
}
public function get freeze():Boolean{
return (_freeze);
}
public function set freeze(_arg1:Boolean):void{
_freeze = _arg1;
}
public function addItem(_arg1:String):void{
var _local3:uint;
var _local4:ItemIcon;
var _local5:DisplayObject;
var _local6:Class;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <addItem> : Inventory not available."));
};
var _local2:Item = Inventory.instance.findItem(_arg1);
if (_local2){
if (!_names[_arg1]){
_local3 = _slots.length;
_local4 = new ItemIcon();
_local4.addEventListener("gfxComplete", onGFXComplete);
_local4.name = ("itemIcon_" + _local3);
_local4.source = _arg1;
_local4.title = _local2.title;
_local6 = _local2.icon;
if ((((getQualifiedSuperclassName(_local6) == "flash.display::Sprite")) || ((getQualifiedSuperclassName(_local6) == "flash.display::MovieClip")))){
_local5 = new (_local6);
} else {
if (getQualifiedSuperclassName(_local6) == "flash.display::BitmapData"){
_local5 = new Bitmap(new _local6(_local6.width, _local6.height));
(_local5 as Bitmap).smoothing = true;
};
};
if (_local5){
scaleImage(_local5);
_local5.x = (SLOTSIZE / 2);
_local5.y = (SLOTSIZE / 2);
_local4.setIcon(_local5);
} else {
throw (new Error((("[InventoryView] : <addItem> : Item's '" + _arg1) + "' image isn't exists.")));
};
_local4.x = (XSPACE + (_local3 * (SLOTSIZE + GAPWIDTH)));
_local4.y = YSPACE;
iconsCont.addChild(_local4);
_names[_arg1] = {index:_local3, icon:_local4};
_slots.push(_arg1);
_rewind = true;
} else {
throw (new Error((("[InventoryView] : <addItem> : Can't add same item ('" + _arg1) + "').")));
};
} else {
throw (new Error((("[InventoryView] : <addItem> : Item '" + _arg1) + "' not found in inventory.")));
};
}
public function removeItem(_arg1:String):void{
var _local3:ItemIcon;
var _local4:uint;
var _local5:uint;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <removeItem> : Inventory not available."));
};
var _local2:Item = Inventory.instance.findItem(_arg1);
if (_local2){
if (_names[_arg1]){
_local3 = (iconsCont.getChildByName(("itemIcon_" + _names[_arg1].index)) as ItemIcon);
_local3.removeEventListener("gfxComplete", onGFXComplete);
iconsCont.removeChild(_local3);
if (_names[_arg1].index < (_slots.length - 1)){
_local4 = _slots.length;
_local5 = (_names[_arg1].index + 1);
while (_local5 < _local4) {
_local3 = (iconsCont.getChildByName(("itemIcon_" + _local5)) as ItemIcon);
_local3.name = ("itemIcon_" + (_local5 - 1));
_names[_local3.source].index = (_local5 - 1);
_local3.x = (XSPACE + ((_local5 - 1) * (SLOTSIZE + GAPWIDTH)));
_local3.y = YSPACE;
_local5++;
};
};
_slots.splice(_names[_arg1].index, 1);
_names[_arg1] = undefined;
} else {
throw (new Error((("[InventoryView] : <removeItem> : Item '" + _arg1) + "' not found.")));
};
} else {
throw (new Error((("[InventoryView] : <removeItem> : Item '" + _arg1) + "' not found in inventory.")));
};
}
public function highlightItem(_arg1:String, _arg2:Function=null):void{
var _local4:ItemIcon;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <removeItem> : Inventory not available."));
};
var _local3:Item = Inventory.instance.findItem(_arg1);
if (_local3){
if (_names[_arg1]){
_local4 = (iconsCont.getChildByName(("itemIcon_" + _names[_arg1].index)) as ItemIcon);
_local4.onGFXComplete = _arg2;
_local4.gotoAndPlay(2);
} else {
throw (new Error((("[InventoryView] : <removeItem> : Item '" + _arg1) + "' not found.")));
};
} else {
throw (new Error((("[InventoryView] : <removeItem> : Item '" + _arg1) + "' not found in inventory.")));
};
}
public function addEmptyItem(_arg1:String):void{
var _local3:uint;
var _local4:ItemIcon;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <addEmptyItem> : Inventory not available."));
};
var _local2:Item = Inventory.instance.findItem(_arg1);
if (_local2){
if (!_names[_arg1]){
_local3 = _slots.length;
_local4 = new ItemIcon();
_local4.addEventListener("gfxComplete", onGFXComplete);
_local4.name = ("itemIcon_" + _local3);
_local4.source = _arg1;
_local4.title = _local2.title;
_local4.x = (XSPACE + (_local3 * (SLOTSIZE + GAPWIDTH)));
_local4.y = YSPACE;
iconsCont.addChild(_local4);
_names[_arg1] = {index:_local3, icon:_local4};
_slots.push(_arg1);
_rewind = true;
} else {
throw (new Error((("[InventoryView] : <addEmptyItem> : Can't add same item ('" + _arg1) + "').")));
};
} else {
throw (new Error((("[InventoryView] : <addEmptyItem> : Item '" + _arg1) + "' not found in inventory.")));
};
}
public function getIcon(_arg1:String):DisplayObject{
if (!Inventory.instance){
throw (new Error("[InventoryView] : <getIcon> : Inventory not available."));
};
if (_names[_arg1]){
return ((iconsCont.getChildByName(("itemIcon_" + _names[_arg1].index)) as ItemIcon).getIcon());
};
throw (new Error((("[InventoryView] : <getIcon> : Item '" + _arg1) + "' not found.")));
}
public function setIcon(_arg1:String, _arg2:DisplayObject):void{
var _local3:ItemIcon;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <setIcon> : Inventory not available."));
};
if (_names[_arg1]){
_local3 = (iconsCont.getChildByName(("itemIcon_" + _names[_arg1].index)) as ItemIcon);
if (_arg2){
scaleImage(_arg2);
_arg2.x = (SLOTSIZE / 2);
_arg2.y = (SLOTSIZE / 2);
_local3.setIcon(_arg2);
} else {
throw (new Error((("[InventoryView] : <setIcon> : Item's '" + _arg1) + "' image isn't exists.")));
};
} else {
throw (new Error((("[InventoryView] : <setIcon> : Item '" + _arg1) + "' not found.")));
};
}
public function cutIcon(_arg1:String):DisplayObject{
var _local3:ItemIcon;
var _local4:DisplayObject;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <cutIcon> : Inventory not available."));
};
var _local2:Item = Inventory.instance.findItem(_arg1);
if (_local2){
if (_names[_arg1]){
_local3 = (iconsCont.getChildByName(("itemIcon_" + _names[_arg1].index)) as ItemIcon);
_local4 = _local3.getIcon();
_local3.getIcon().x = (_local4.x + ((x + iconsCont.x) + _local3.x));
_local4.y = (_local4.y + ((y + iconsCont.y) + _local3.y));
_local4.name = _local3.source;
return (_local4);
};
throw (new Error((("[InventoryView] : <cutIcon> : Item '" + _arg1) + "' not found.")));
//unresolved jump
};
throw (new Error((("[InventoryView] : <cutIcon> : Item '" + _arg1) + "' not found in inventory.")));
}
public function getIconPosition(_arg1:String):Object{
var _local2:ItemIcon;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <getIconPosition> : Inventory not available."));
};
if (_names[_arg1]){
_local2 = (iconsCont.getChildByName(("itemIcon_" + _names[_arg1].index)) as ItemIcon);
return ({x:(((_local2.x + iconsCont.x) + x) + (_local2.width / 2)), y:(((_local2.y + iconsCont.y) + y) + (_local2.height / 2))});
};
throw (new Error((("[InventoryView] : <getIconPosition> : Item '" + _arg1) + "' not found.")));
}
public function reset():void{
while (_slots.length) {
removeItem(_slots[(_slots.length - 1)]);
};
}
private function iconsMaskOnEnterFrame(_arg1:Event):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
if (_freeze){
return;
};
var _local2:Number = iconsMask.mouseX;
var _local3:Number = iconsMask.mouseY;
var _local4:Boolean = (((((_local2 >= 0)) && ((_local2 <= iconsMask.width)))) && ((((_local3 >= 0)) && ((_local3 <= iconsMask.height)))));
if (_local4){
_rewind = false;
};
if (((_local4) || (_rewind))){
_local5 = (iconsCont.width / iconsMask.width);
if (_local5 > 1){
_local6 = (LRINDENT + (SLOTSIZE / 2));
_local7 = ((_local2 - _local6) / ((iconsMask.width - (2 * _local6)) / 2));
if (_local7 < 0){
_local7 = 0;
};
if (_local7 > 2){
_local7 = 2;
};
if (_rewind){
_local7 = 2;
};
if (_local7 < 1){
_local8 = ((iconsMask.x + LRINDENT) - (_local7 * (((iconsCont.width - iconsMask.width) / 2) - LRINDENT)));
_local9 = (_local8 - iconsCont.x);
_local10 = (_local9 / ICONSSPD);
_local11 = iconsCont.x;
if (iconsCont.x < (iconsMask.x + LRINDENT)){
iconsCont.x = (iconsCont.x + _local10);
};
_local12 = iconsCont.x;
if (_local12 == _local11){
_rewind = false;
};
};
if (_local7 > 1){
_local8 = ((((iconsMask.x + iconsMask.width) - LRINDENT) - iconsCont.width) + ((1 - (_local7 - 1)) * (((iconsCont.width - iconsMask.width) / 2) - LRINDENT)));
_local9 = (iconsCont.x - _local8);
_local10 = (_local9 / ICONSSPD);
_local11 = iconsCont.x;
if ((iconsCont.x + iconsCont.width) > ((iconsMask.x + iconsMask.width) - LRINDENT)){
iconsCont.x = (iconsCont.x - _local10);
};
_local12 = iconsCont.x;
if (_local12 == _local11){
_rewind = false;
};
};
} else {
iconsCont.x = (iconsMask.x + LRINDENT);
};
};
if (iconsCont.x > (iconsMask.x + LRINDENT)){
iconsCont.x = (iconsMask.x + LRINDENT);
};
if ((((iconsCont.width > iconsMask.width)) && (((iconsCont.x + iconsCont.width) < ((iconsMask.x + iconsMask.width) - LRINDENT))))){
iconsCont.x = (((iconsMask.x + iconsMask.width) - LRINDENT) - iconsCont.width);
};
}
private function onGFXComplete(_arg1:Event):void{
var _local2:ItemIcon = (_arg1.target as ItemIcon);
if (_local2){
if (_local2.onGFXComplete != null){
_local2.onGFXComplete(_local2.source);
};
} else {
throw (new Error("[InventoryViwe] : <onGFXComplete> : Internal error."));
};
}
public static function get instance():InventoryView{
return (_instance);
}
public static function scaleImage(_arg1:DisplayObject):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
if (_arg1.width >= _arg1.height){
_local2 = (ICONSIZE / _arg1.width);
_local3 = ICONSIZE;
_local4 = (_arg1.height * _local2);
} else {
_local2 = (ICONSIZE / _arg1.height);
_local4 = ICONSIZE;
_local3 = (_arg1.width * _local2);
};
_arg1.width = _local3;
_arg1.height = _local4;
}
}
}//package
Section 156
//Item (Item)
package {
public class Item {
public var name:String;
public var icon;
public var title:String;
public var anim;
public var description:String;
public function Item(_arg1:String, _arg2=null, _arg3:String=null, _arg4=null, _arg5:String=null){
this.name = _arg1;
this.icon = _arg2;
this.title = _arg3;
this.anim = _arg4;
this.description = _arg5;
}
public function destroy():void{
name = undefined;
icon = undefined;
title = undefined;
anim = undefined;
description = undefined;
}
}
}//package
Section 157
//Item_BallOrange (Item_BallOrange)
package {
import flash.display.*;
public dynamic class Item_BallOrange extends MovieClip {
}
}//package
Section 158
//Item_BallViolet (Item_BallViolet)
package {
import flash.display.*;
public dynamic class Item_BallViolet extends MovieClip {
}
}//package
Section 159
//Item_Banana (Item_Banana)
package {
import flash.display.*;
public dynamic class Item_Banana extends MovieClip {
}
}//package
Section 160
//Item_Bumerang (Item_Bumerang)
package {
import flash.display.*;
public dynamic class Item_Bumerang extends MovieClip {
}
}//package
Section 161
//Item_Collar (Item_Collar)
package {
import flash.display.*;
public dynamic class Item_Collar extends MovieClip {
}
}//package
Section 162
//Item_Cup (Item_Cup)
package {
import flash.display.*;
public dynamic class Item_Cup extends MovieClip {
}
}//package
Section 163
//Item_Fire (Item_Fire)
package {
import flash.display.*;
public dynamic class Item_Fire extends MovieClip {
}
}//package
Section 164
//Item_Ger (Item_Ger)
package {
import flash.display.*;
public dynamic class Item_Ger extends MovieClip {
}
}//package
Section 165
//Item_Honey (Item_Honey)
package {
import flash.display.*;
public dynamic class Item_Honey extends MovieClip {
public function Item_Honey(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 166
//Item_Lamp (Item_Lamp)
package {
import flash.display.*;
public dynamic class Item_Lamp extends MovieClip {
}
}//package
Section 167
//Item_Part1 (Item_Part1)
package {
import flash.display.*;
public dynamic class Item_Part1 extends MovieClip {
}
}//package
Section 168
//Item_Part2 (Item_Part2)
package {
import flash.display.*;
public dynamic class Item_Part2 extends MovieClip {
}
}//package
Section 169
//Item_Part3 (Item_Part3)
package {
import flash.display.*;
public dynamic class Item_Part3 extends MovieClip {
}
}//package
Section 170
//Item_Part4 (Item_Part4)
package {
import flash.display.*;
public dynamic class Item_Part4 extends MovieClip {
}
}//package
Section 171
//Item_Pult (Item_Pult)
package {
import flash.display.*;
public dynamic class Item_Pult extends MovieClip {
}
}//package
Section 172
//Item_Rod (Item_Rod)
package {
import flash.display.*;
public dynamic class Item_Rod extends MovieClip {
}
}//package
Section 173
//Item_Rope (Item_Rope)
package {
import flash.display.*;
public dynamic class Item_Rope extends MovieClip {
}
}//package
Section 174
//Item_Rule (Item_Rule)
package {
import flash.display.*;
public dynamic class Item_Rule extends MovieClip {
}
}//package
Section 175
//Item_Screw (Item_Screw)
package {
import flash.display.*;
public dynamic class Item_Screw extends MovieClip {
}
}//package
Section 176
//Item_Shoes1 (Item_Shoes1)
package {
import flash.display.*;
public dynamic class Item_Shoes1 extends MovieClip {
}
}//package
Section 177
//Item_Shoes2 (Item_Shoes2)
package {
import flash.display.*;
public dynamic class Item_Shoes2 extends MovieClip {
}
}//package
Section 178
//Item_Skeleton (Item_Skeleton)
package {
import flash.display.*;
public dynamic class Item_Skeleton extends MovieClip {
}
}//package
Section 179
//Item_Strip (Item_Strip)
package {
import flash.display.*;
public dynamic class Item_Strip extends MovieClip {
}
}//package
Section 180
//Item_Tape (Item_Tape)
package {
import flash.display.*;
public dynamic class Item_Tape extends MovieClip {
}
}//package
Section 181
//Item_Trap (Item_Trap)
package {
import flash.display.*;
public dynamic class Item_Trap extends MovieClip {
}
}//package
Section 182
//Item_Trap1 (Item_Trap1)
package {
import flash.display.*;
public dynamic class Item_Trap1 extends MovieClip {
}
}//package
Section 183
//Item_Trap2 (Item_Trap2)
package {
import flash.display.*;
public dynamic class Item_Trap2 extends MovieClip {
}
}//package
Section 184
//Item_Trap3 (Item_Trap3)
package {
import flash.display.*;
public dynamic class Item_Trap3 extends MovieClip {
}
}//package
Section 185
//Item_Trap31 (Item_Trap31)
package {
import flash.display.*;
public dynamic class Item_Trap31 extends MovieClip {
}
}//package
Section 186
//Item_Trap5 (Item_Trap5)
package {
import flash.display.*;
public dynamic class Item_Trap5 extends MovieClip {
}
}//package
Section 187
//ItemIcon (ItemIcon)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ItemIcon extends MovieClip {
public var image:MovieClip;
public var bounds:MovieClip;
public var source:String;
public var title:String;
public var onGFXComplete:Function;
public function ItemIcon(){
addFrameScript(0, frame1, 1, frame2, 24, frame25);
}
public function setIcon(_arg1:DisplayObject):void{
while (image.holder.numChildren) {
image.holder.removeChildAt(0);
};
image.holder.addChild(_arg1);
}
public function getIcon():DisplayObject{
return ((image.holder.numChildren) ? image.holder.getChildAt(0) : null);
}
function frame1(){
stop();
}
function frame2(){
image.holder.gotoAndStop(1);
}
function frame25(){
dispatchEvent(new Event("gfxComplete"));
image.holder.gotoAndPlay(2);
}
}
}//package
Section 188
//ItemWindow (ItemWindow)
package {
import flash.events.*;
import windows.*;
public dynamic class ItemWindow extends AutoWindow {
public var _cb:Function;
public function ItemWindow(){
addFrameScript(0, frame1);
}
public function playGFX(_arg1:Function=null):void{
_cb = _arg1;
gfx.gotoAndPlay(2);
}
public function stopGFX():void{
gfx.gotoAndStop(1);
}
public function onAnimComplete(_arg1:Event):void{
if (_cb != null){
_cb();
};
}
function frame1(){
gfx.addEventListener("animComplete", onAnimComplete);
}
}
}//package
Section 189
//LinkBox (LinkBox)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class LinkBox extends MovieClip {
public var link:String;
public function LinkBox(){
mouseChildren = false;
buttonMode = true;
useHandCursor = true;
addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(_arg1:MouseEvent):void{
var event = _arg1;
if (((link) && ((link.length > 0)))){
try {
navigateToURL(new URLRequest(link), "_blank");
} catch(error:Error) {
};
};
}
}
}//package
Section 190
//LinkBox1 (LinkBox1)
package {
public dynamic class LinkBox1 extends LinkBox {
public function LinkBox1(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link1;
}
}
}//package
Section 191
//LinkBox2 (LinkBox2)
package {
public dynamic class LinkBox2 extends LinkBox {
public function LinkBox2(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link2;
}
}
}//package
Section 192
//LinkBox3 (LinkBox3)
package {
public dynamic class LinkBox3 extends LinkBox {
public function LinkBox3(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link3;
}
}
}//package
Section 193
//LinkBox4 (LinkBox4)
package {
public dynamic class LinkBox4 extends LinkBox {
public function LinkBox4(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link4;
}
}
}//package
Section 194
//LinkBox5 (LinkBox5)
package {
public dynamic class LinkBox5 extends LinkBox {
public function LinkBox5(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link5;
}
}
}//package
Section 195
//MusicPlayer (MusicPlayer)
package {
import flash.events.*;
import flash.media.*;
public class MusicPlayer {
var musicvol:Number;// = 0.2
private var sound:Sound;
private var channel:SoundChannel;
private var mute:Boolean;// = false
private var playing:Boolean;// = false
public function MusicPlayer(){
init();
}
private function init(){
}
private function _restart(_arg1:Event):void{
if (mute){
channel = sound.play();
channel.soundTransform = new SoundTransform(0);
} else {
channel = sound.play();
channel.soundTransform = new SoundTransform(musicvol);
};
channel.addEventListener(Event.SOUND_COMPLETE, _restart);
playing = true;
}
public function musicON(){
channel.soundTransform = new SoundTransform(musicvol);
mute = false;
}
public function musicOFF(){
channel.soundTransform = new SoundTransform(0);
mute = true;
}
public function playMusic(_arg1:Sound){
if (!sound){
sound = _arg1;
};
channel = sound.play();
if (!mute){
channel.soundTransform = new SoundTransform(musicvol);
};
channel.addEventListener(Event.SOUND_COMPLETE, _restart);
playing = true;
}
public function stopMusic(){
channel.stop();
channel.removeEventListener(Event.SOUND_COMPLETE, _restart);
playing = false;
}
public function get isPlaying():Boolean{
return (playing);
}
}
}//package
Section 196
//NextWindow (NextWindow)
package {
import windows.*;
public dynamic class NextWindow extends Window {
}
}//package
Section 197
//ScrollBarH (ScrollBarH)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class ScrollBarH {
private const SPEED:Number = 8;
private var _cont:Sprite;
private var _mask:Sprite;
private var _track:Sprite;
private var _thumb:Sprite;
private var _btnL:Sprite;
private var _btnR:Sprite;
private var moveDir:String;// = "none"
public function ScrollBarH(_arg1:Sprite, _arg2:Sprite, _arg3:Sprite, _arg4:Sprite, _arg5:Sprite=null, _arg6:Sprite=null){
_cont = _arg1;
_mask = _arg2;
_track = _arg3;
_thumb = _arg4;
_btnL = _arg5;
_btnR = _arg6;
init();
}
private function init():void{
_cont.mask = _mask;
resizeThumb();
_thumb.addEventListener(MouseEvent.MOUSE_DOWN, dragThumb);
_thumb.addEventListener(MouseEvent.MOUSE_UP, dropThumb);
_thumb.addEventListener(Event.ENTER_FRAME, moveCont);
_thumb.stage.addEventListener(MouseEvent.MOUSE_UP, dropThumb);
_track.addEventListener(MouseEvent.CLICK, placeThumb);
_track.addEventListener(Event.ENTER_FRAME, shiftThumb);
if (_btnL){
_btnL.addEventListener(MouseEvent.MOUSE_DOWN, startMoveLeft);
_btnL.addEventListener(MouseEvent.MOUSE_UP, stopMoveLeft);
_btnL.addEventListener(MouseEvent.CLICK, stepLeft);
};
if (_btnR){
_btnR.addEventListener(MouseEvent.MOUSE_DOWN, startMoveRight);
_btnR.addEventListener(MouseEvent.MOUSE_UP, stopMoveRight);
_btnR.addEventListener(MouseEvent.CLICK, stepRight);
};
_track.parent.addEventListener(MouseEvent.MOUSE_WHEEL, scrollThumb);
_mask.parent.addEventListener(MouseEvent.MOUSE_WHEEL, scrollThumb);
}
private function resizeThumb():void{
var _local1:Number;
if (_cont.width > 0){
_local1 = (_cont.width / _mask.width);
if (_local1 >= 1){
_thumb.width = (_track.width / _local1);
} else {
_thumb.width = _track.width;
};
} else {
_thumb.width = _track.width;
};
}
private function moveThumb(_arg1, _arg2):void{
switch (_arg1){
case "left":
if ((_thumb.x - _arg2) >= _track.x){
_thumb.x = (_thumb.x - _arg2);
} else {
_thumb.x = _track.x;
};
break;
case "right":
if ((_thumb.x + _arg2) <= ((_track.x + _track.width) - _thumb.width)){
_thumb.x = (_thumb.x + _arg2);
} else {
_thumb.x = ((_track.x + _track.width) - _thumb.width);
};
break;
};
}
private function dragThumb(_arg1:MouseEvent):void{
_thumb.startDrag(false, new Rectangle(_track.x, _track.y, (_track.width - _thumb.width), 0));
}
private function dropThumb(_arg1:MouseEvent):void{
_thumb.stopDrag();
}
private function moveCont(_arg1:Event):void{
resizeThumb();
var _local2:Number = (_cont.width / _track.width);
var _local3:Number = ((_track.x - _thumb.x) * _local2);
_cont.x = _local3;
}
private function placeThumb(_arg1:MouseEvent):void{
var _local2:Number = _track.parent.mouseX;
_thumb.x = ((_track.x + _local2) - (_thumb.width / 2));
if (_thumb.x < _track.x){
_thumb.x = _track.x;
};
if ((_thumb.x + _thumb.width) > (_track.x + _track.width)){
_thumb.x = ((_track.x + _track.width) - _thumb.width);
};
}
private function shiftThumb(_arg1:Event):void{
moveThumb(moveDir, SPEED);
}
private function scrollThumb(_arg1:MouseEvent):void{
if (_arg1.delta > 0){
moveThumb("left", SPEED);
};
if (_arg1.delta < 0){
moveThumb("right", SPEED);
};
}
private function startMoveLeft(_arg1:MouseEvent):void{
moveDir = "left";
}
private function stopMoveLeft(_arg1:MouseEvent):void{
moveDir = "none";
}
private function stepLeft(_arg1:MouseEvent):void{
moveThumb("left", SPEED);
}
private function startMoveRight(_arg1:MouseEvent):void{
moveDir = "right";
}
private function stopMoveRight(_arg1:MouseEvent):void{
moveDir = "none";
}
private function stepRight(_arg1:MouseEvent):void{
moveThumb("right", SPEED);
}
}
}//package
Section 198
//ScrollBarV (ScrollBarV)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class ScrollBarV {
private const SPEED:Number = 8;
private var _cont:Sprite;
private var _mask:Sprite;
private var _track:Sprite;
private var _thumb:Sprite;
private var _btnU:Sprite;
private var _btnD:Sprite;
private var moveDir:String;// = "none"
public function ScrollBarV(_arg1:Sprite, _arg2:Sprite, _arg3:Sprite, _arg4:Sprite, _arg5:Sprite=null, _arg6:Sprite=null){
_cont = _arg1;
_mask = _arg2;
_track = _arg3;
_thumb = _arg4;
_btnU = _arg5;
_btnD = _arg6;
init();
}
private function init():void{
_cont.mask = _mask;
resizeThumb();
_thumb.addEventListener(MouseEvent.MOUSE_DOWN, dragThumb);
_thumb.addEventListener(MouseEvent.MOUSE_UP, dropThumb);
_thumb.addEventListener(Event.ENTER_FRAME, moveCont);
_thumb.stage.addEventListener(MouseEvent.MOUSE_UP, dropThumb);
_track.addEventListener(MouseEvent.CLICK, placeThumb);
_track.addEventListener(Event.ENTER_FRAME, shiftThumb);
if (_btnU){
_btnU.addEventListener(MouseEvent.MOUSE_DOWN, startMoveUp);
_btnU.addEventListener(MouseEvent.MOUSE_UP, stopMoveUp);
_btnU.addEventListener(MouseEvent.CLICK, stepUp);
};
if (_btnD){
_btnD.addEventListener(MouseEvent.MOUSE_DOWN, startMoveDown);
_btnD.addEventListener(MouseEvent.MOUSE_UP, stopMoveDown);
_btnD.addEventListener(MouseEvent.CLICK, stepDown);
};
_track.parent.addEventListener(MouseEvent.MOUSE_WHEEL, scrollThumb);
_mask.parent.addEventListener(MouseEvent.MOUSE_WHEEL, scrollThumb);
}
private function resizeThumb():void{
var _local1:Number;
if (_cont.height > 0){
_local1 = (_cont.height / _mask.height);
if (_local1 >= 1){
_thumb.height = (_track.height / _local1);
} else {
_thumb.height = _track.height;
};
} else {
_thumb.height = _track.height;
};
}
private function moveThumb(_arg1, _arg2):void{
switch (_arg1){
case "up":
if ((_thumb.y - _arg2) >= _track.y){
_thumb.y = (_thumb.y - _arg2);
} else {
_thumb.y = _track.y;
};
break;
case "down":
if ((_thumb.y + _arg2) <= ((_track.y + _track.height) - _thumb.height)){
_thumb.y = (_thumb.y + _arg2);
} else {
_thumb.y = ((_track.y + _track.height) - _thumb.height);
};
break;
};
}
private function dragThumb(_arg1:MouseEvent):void{
_thumb.startDrag(false, new Rectangle(_track.x, _track.y, 0, (_track.height - _thumb.height)));
}
private function dropThumb(_arg1:MouseEvent):void{
_thumb.stopDrag();
}
private function moveCont(_arg1:Event):void{
resizeThumb();
var _local2:Number = (_cont.height / _track.height);
var _local3:Number = ((_track.y - _thumb.y) * _local2);
_cont.y = _local3;
}
private function placeThumb(_arg1:MouseEvent):void{
var _local2:Number = _track.parent.mouseY;
_thumb.y = ((_track.y + _local2) - (_thumb.height / 2));
if (_thumb.y < _track.y){
_thumb.y = _track.y;
};
if ((_thumb.y + _thumb.height) > (_track.y + _track.height)){
_thumb.y = ((_track.y + _track.height) - _thumb.height);
};
}
private function shiftThumb(_arg1:Event):void{
moveThumb(moveDir, SPEED);
}
private function scrollThumb(_arg1:MouseEvent):void{
if (_arg1.delta > 0){
moveThumb("up", SPEED);
};
if (_arg1.delta < 0){
moveThumb("down", SPEED);
};
}
private function startMoveUp(_arg1:MouseEvent):void{
moveDir = "up";
}
private function stopMoveUp(_arg1:MouseEvent):void{
moveDir = "none";
}
private function stepUp(_arg1:MouseEvent):void{
moveThumb("up", SPEED);
}
private function startMoveDown(_arg1:MouseEvent):void{
moveDir = "down";
}
private function stopMoveDown(_arg1:MouseEvent):void{
moveDir = "none";
}
private function stepDown(_arg1:MouseEvent):void{
moveThumb("down", SPEED);
}
}
}//package
Section 199
//SoundPlayer (SoundPlayer)
package {
import flash.media.*;
public class SoundPlayer {
private var sound:Sound;
private var channel:SoundChannel;
private var mute:Boolean;// = false
public function SoundPlayer(){
init();
}
private function init(){
}
public function soundON(){
channel.soundTransform = new SoundTransform(1);
mute = false;
}
public function soundOFF(){
channel.soundTransform = new SoundTransform(0);
mute = true;
}
public function playSound(_arg1:Sound){
this.sound = _arg1;
if (mute){
channel = _arg1.play();
channel.soundTransform = new SoundTransform(0);
} else {
channel = _arg1.play();
};
}
public function stopSound(){
channel.stop();
}
}
}//package
Section 200
//takeSound (takeSound)
package {
import flash.media.*;
public dynamic class takeSound extends Sound {
}
}//package
Section 201
//Tracer (Tracer)
package {
public class Tracer {
private static var filters:Object = new Object();
public static var subfilters:Object = new Object();
public static var showType:Boolean = true;
public static var showName:Boolean = true;
public static var showTime:Boolean = false;
private static function resolveType(_arg1:String):String{
switch (_arg1){
case "i":
return ("[i]");
case "[i]":
return ("[i]");
case "info":
return ("[i]");
case "INFO":
return ("[i]");
case "Info":
return ("[i]");
case "X":
return ("[X]");
case "[X]":
return ("[X]");
case "error":
return ("[X]");
case "ERROR":
return ("[X]");
case "Error":
return ("[X]");
case "!":
return ("[!]");
case "[!]":
return ("[!]");
case "warning":
return ("[!]");
case "WARNING":
return ("[!]");
case "Warning":
return ("[!]");
case "*":
return ("[*]");
case "[*]":
return ("[*]");
case "notice":
return ("[*]");
case "NOTICE":
return ("[*]");
case "Notice":
return ("[*]");
case "$":
return ("[$]");
case "[$]":
return ("[$]");
case "system":
return ("[$]");
case "SYSTEM":
return ("[$]");
case "System":
return ("[$]");
};
return ("[.]");
}
private static function resolveName(_arg1:String):String{
switch (resolveType(_arg1)){
case "[i]":
return ("INFO");
case "[X]":
return ("ERROR");
case "[!]":
return ("WARNING");
case "[*]":
return ("NOTICE");
case "[$]":
return ("SYSTEM");
case "[.]":
return ("OTHER");
};
return ("OTHER");
}
public static function report(_arg1:String, _arg2:String, _arg3=null, _arg4:String=null):void{
var _local8:Date;
var _local9:*;
var _local10:*;
var _local11:*;
_arg1 = resolveType(_arg1);
var _local5:String = resolveName(_arg1);
if (Tracer.showName){
_local5 = (" " + _local5);
} else {
_local5 = "";
};
var _local6 = "";
if (Tracer.showTime){
_local8 = new Date();
_local9 = _local8.hours;
if (_local9 < 10){
_local9 = ("0" + _local9);
};
_local10 = _local8.minutes;
if (_local10 < 10){
_local10 = ("0" + _local10);
};
_local11 = _local8.seconds;
if (_local11 < 10){
_local11 = ("0" + _local11);
};
_local6 = ((((((" (" + _local9) + ":") + _local10) + ":") + _local11) + ")");
};
var _local7 = "";
if (((_arg4) && (!((_arg4 == ""))))){
_local7 = (("<" + _arg4) + "> ");
};
if (!Tracer.filters[_local5]){
if (_arg3){
if (!Tracer.subfilters[_arg3.toString()]){
trace((((((((_arg1 + _local5) + _local6) + " : [") + _arg3) + "] : ") + _local7) + _arg2));
};
} else {
trace((((((_arg1 + _local5) + _local6) + " : ") + _local7) + _arg2));
};
};
}
public static function filtrate(_arg1):void{
var _local2:String;
var _local3:uint;
var _local4:uint;
if ((_arg1 is String)){
if (!Tracer.filters){
Tracer.filters = new Object();
};
if (_arg1 == "*"){
Tracer.filters["INFO"] = true;
Tracer.filters["ERROR"] = true;
Tracer.filters["WARNING"] = true;
Tracer.filters["NOTICE"] = true;
Tracer.filters["SYSTEM"] = true;
Tracer.filters["OTHER"] = true;
} else {
_local2 = resolveName(_arg1);
Tracer.filters[_local2] = true;
};
return;
};
if ((_arg1 is Array)){
if (!Tracer.filters){
Tracer.filters = new Object();
};
_local3 = _arg1.length;
_local4 = 0;
while (_local4 < _local3) {
if ((_arg1[_local4] is String)){
_local2 = resolveName(_arg1[_local4]);
Tracer.filters[_local2] = true;
};
_local4++;
};
};
}
public static function infiltrate(_arg1):void{
var _local2:String;
var _local3:uint;
var _local4:uint;
if ((_arg1 is String)){
if (!Tracer.filters){
Tracer.filters = new Object();
};
if (_arg1 == "*"){
Tracer.filters["INFO"] = false;
Tracer.filters["ERROR"] = false;
Tracer.filters["WARNING"] = false;
Tracer.filters["NOTICE"] = false;
Tracer.filters["SYSTEM"] = false;
Tracer.filters["OTHER"] = false;
} else {
_local2 = resolveName(_arg1);
Tracer.filters[_local2] = false;
};
return;
};
if ((_arg1 is Array)){
if (!Tracer.filters){
Tracer.filters = new Object();
};
_local3 = _arg1.length;
_local4 = 0;
while (_local4 < _local3) {
if ((_arg1[_local4] is String)){
_local2 = resolveName(_arg1[_local4]);
Tracer.filters[_local2] = false;
};
_local4++;
};
};
}
}
}//package
Section 202
//Utils (Utils)
package {
import flash.display.*;
import flash.system.*;
public class Utils {
public static function getTotalMemory():Number{
return (Number(((System.totalMemory / 0x0400) / 0x0400)));
}
public static function disposeDisplayObject(_arg1:Sprite):void{
var _local5:*;
var _local2 = "";
if (_arg1["name"]){
_local2 = ((" (" + _arg1["name"]) + ")");
};
trace((("[%] PROCESSING: " + _arg1) + _local2));
var _local3:uint = _arg1.numChildren;
var _local4:uint;
while (_local4 < _local3) {
_local5 = _arg1.getChildAt(0);
if ((_local5 is Sprite)){
if ((_local5 is MovieClip)){
_local5.stop();
};
disposeDisplayObject(_local5);
};
if ((_local5 is Graphics)){
_local5.clear();
_arg1.removeChild(_local5);
};
if ((_local5 is Bitmap)){
_local5.dispose();
_arg1.removeChild(_local5);
};
if ((_local5 is Shape)){
_local5.graphics.clear();
_arg1.removeChild(_local5);
};
_local4++;
};
_arg1.parent.removeChild(_arg1);
}
}
}//package
Section 203
//Waypoint (Waypoint)
package {
import flash.display.*;
public class Waypoint extends Sprite {
private var episode:Sprite;
private var sign:Sprite;
public var funct:Function;
public var scale:Number;
public function Waypoint(_arg1:String, _arg2:Sprite, _arg3:Number, _arg4:Number, _arg5:Number=1, _arg6:Function=null){
this.name = _arg1;
this.episode = _arg2;
this.x = _arg3;
this.y = _arg4;
this.funct = _arg6;
this.scale = _arg5;
}
public function show(_arg1:Sprite=null):void{
if (_arg1){
this.sign = _arg1;
} else {
_arg1 = new Sprite();
_arg1.graphics.lineStyle(1, 0, 1);
_arg1.graphics.beginFill(0xFF00, 1);
_arg1.graphics.drawRect(0, 0, 32, 32);
_arg1.graphics.endFill();
};
if ((episode as Sprite)){
addChild(_arg1);
episode.addChild(this);
} else {
trace("[X] Parent isn't DisplayObject.");
};
}
public function hide():void{
if (((episode) && (episode.getChildByName(name)))){
removeChild(sign);
episode.removeChild(episode.getChildByName(name));
} else {
trace("[X] Waypoint not shown.");
};
}
public function kill():void{
hide();
episode = undefined;
sign = undefined;
funct = undefined;
scale = undefined;
}
}
}//package