Section 1
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var start:Number;
public var name:String;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var priority:int;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
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 {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:TweenCore;
var _local5:Number;
var _local6:TweenCore;
_local4 = _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 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 get rawTime():Number{
return (this.cachedTotalTime);
}
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;
}
}
}//package com.greensock.core
Section 3
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var cachedTime:Number;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var data;
public var timeline:SimpleTimeline;
public var cachedOrphan:Boolean;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.38;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
var _local3:SimpleTimeline;
_rawPrevTime = -1;
super();
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;
};
};
_local3 = ((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 renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean;
_local2 = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function invalidate():void{
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
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 get reversed():Boolean{
return (this.cachedReversed);
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore;
_local2 = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
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 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);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
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 pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
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);
}
}
}//package com.greensock.core
Section 4
//OverwriteManager (com.greensock.OverwriteManager)
package com.greensock {
import com.greensock.core.*;
public class OverwriteManager {
public static const ALL_ONSTART:int = 4;
public static const CONCURRENT:int = 3;
public static const ALL_IMMEDIATE:int = 1;
public static const PREEXISTING:int = 5;
public static const AUTO:int = 2;
public static const version:Number = 6.02;
public static const NONE:int = 0;
public static var enabled:Boolean;
public static var mode:int;
public static function getGlobalPaused(_arg1:TweenCore):Boolean{
while (_arg1) {
if (_arg1.cachedPaused){
return (true);
};
_arg1 = _arg1.timeline;
};
return (false);
}
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 _local8:Number;
var _local9:Array;
var _local10:Array;
var _local11:uint;
var _local12:uint;
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);
};
_local8 = (_arg1.cachedStartTime + 1E-10);
_local9 = [];
_local10 = [];
_local11 = 0;
_local12 = 0;
_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);
}
}
}//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 _endCaps:Array;
protected var _labels:Object;
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);
};
}
public function stop():void{
this.paused = true;
}
public function get useFrames():Boolean{
var _local1:SimpleTimeline;
_local1 = 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));
}
public function append(_arg1:TweenCore, _arg2:Number=0):void{
insert(_arg1, (this.duration + _arg2));
}
public function getLabelTime(_arg1:String):Number{
return (((_arg1 in _labels)) ? Number(_labels[_arg1]) : -1);
}
override public function set duration(_arg1:Number):void{
if (((!((this.duration == 0))) && (!((_arg1 == 0))))){
this.timeScale = (this.duration / _arg1);
};
}
protected function forceChildrenToBeginning(_arg1:Number, _arg2:Boolean=false):Number{
var _local3:TweenCore;
var _local4:TweenCore;
var _local5:Number;
var _local6:Boolean;
_local3 = _lastChild;
_local6 = 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);
}
override public function invalidate():void{
var _local1:TweenCore;
_local1 = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
while (_local1) {
_local1.invalidate();
_local1 = _local1.nextNode;
};
}
public function appendMultiple(_arg1:Array, _arg2:Number=0, _arg3:String="normal", _arg4:Number=0):void{
insertMultiple(_arg1, (this.duration + _arg2), _arg3, _arg4);
}
public function goto(_arg1, _arg2:Boolean=true):void{
setTotalTime(parseTimeOrLabel(_arg1), _arg2);
}
public function clear(_arg1:Array=null):void{
var _local2:int;
if (_arg1 == null){
_arg1 = getChildren(false, true, true);
};
_local2 = _arg1.length;
while (--_local2 > -1) {
TweenCore(_arg1[_local2]).setEnabled(false, 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;
_local5 = [];
_local6 = 0;
_local7 = ((_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);
}
protected function forceChildrenToEnd(_arg1:Number, _arg2:Boolean=false):Number{
var _local3:TweenCore;
var _local4:TweenCore;
var _local5:Number;
var _local6:Boolean;
_local3 = _firstChild;
_local6 = 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 get timeScale():Number{
return (this.cachedTimeScale);
}
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));
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:TweenCore;
var _local9:Boolean;
var _local10:Boolean;
var _local11:TweenCore;
var _local12:Number;
var _local13:Boolean;
if (this.gc){
this.setEnabled(true, false);
} else {
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
};
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
_local5 = this.cachedTime;
_local6 = this.cachedStartTime;
_local7 = this.cachedTimeScale;
_local13 = 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);
};
}
public function set currentProgress(_arg1:Number):void{
setTotalTime((this.duration * _arg1), false);
}
public function prepend(_arg1:TweenCore, _arg2:Boolean=false):void{
shiftChildren(((_arg1.totalDuration / _arg1.cachedTimeScale) + _arg1.delay), _arg2, 0);
insert(_arg1, 0);
}
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 gotoAndStop(_arg1, _arg2:Boolean=true):void{
setTotalTime(parseTimeOrLabel(_arg1), _arg2);
this.paused = true;
}
override public function get duration():Number{
var _local1:Number;
if (this.cacheIsDirty){
_local1 = this.totalDuration;
};
return (this.cachedDuration);
}
override public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
var _local3:TweenCore;
var _local4:TweenCore;
if (_arg1.cachedOrphan){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
_local3 = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
_local4 = ((_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 shiftChildren(_arg1:Number, _arg2:Boolean=false, _arg3:Number=0):void{
var _local4:TweenCore;
var _local5:String;
_local4 = ((_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 hasPausedChild():Boolean{
var _local1:TweenCore;
_local1 = ((_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 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 prependMultiple(_arg1:Array, _arg2:String="normal", _arg3:Number=0, _arg4:Boolean=false):void{
var _local5:TimelineLite;
_local5 = new TimelineLite({tweens:_arg1, align:_arg2, stagger:_arg3});
shiftChildren(_local5.duration, _arg4, 0);
insertMultiple(_arg1, 0, _arg2, _arg3);
_local5.kill();
}
public function get currentProgress():Number{
return ((this.cachedTime / this.duration));
}
public function gotoAndPlay(_arg1, _arg2:Boolean=true):void{
setTotalTime(parseTimeOrLabel(_arg1), _arg2);
play();
}
public function removeLabel(_arg1:String):Number{
var _local2:Number;
_local2 = _labels[_arg1];
delete _labels[_arg1];
return (_local2);
}
public function addLabel(_arg1:String, _arg2:Number):void{
_labels[_arg1] = _arg2;
}
public function getTweensOf(_arg1:Object, _arg2:Boolean=true):Array{
var _local3:Array;
var _local4:Array;
var _local5:int;
var _local6:uint;
var _local7:uint;
_local3 = getChildren(_arg2, true, false);
_local4 = [];
_local6 = _local3.length;
_local7 = 0;
_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 insertMultiple(_arg1:Array, _arg2=0, _arg3:String="normal", _arg4:Number=0):void{
var _local5:int;
var _local6:TweenCore;
var _local7:Number;
var _local8:uint;
_local7 = ((Number(_arg2)) || (0));
_local8 = _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 killTweensOf(_arg1:Object, _arg2:Boolean=true, _arg3:Object=null):Boolean{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local4 = getTweensOf(_arg1, _arg2);
_local5 = _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 set totalDuration(_arg1:Number):void{
if (((!((this.totalDuration == 0))) && (!((_arg1 == 0))))){
this.timeScale = (this.totalDuration / _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);
}
public function set timeScale(_arg1:Number):void{
var _local2:Number;
if (_arg1 == 0){
_arg1 = 0.0001;
};
_local2 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
this.cachedStartTime = (_local2 - (((_local2 - this.cachedStartTime) * this.cachedTimeScale) / _arg1));
this.cachedTimeScale = _arg1;
setDirtyCache(false);
}
override public function addChild(_arg1:TweenCore):void{
var _local2:TweenCore;
var _local3:TweenCore;
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);
_local2 = ((_firstChild)!=null) ? _firstChild : _endCaps[0];
_local3 = ((_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;
};
}
}
}//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 ratio:Number;// = 0
protected var _overwrite:uint;
protected var _notifyPluginsOfEnabled:Boolean;
protected var _hasPlugins:Boolean;
public var cachedPT1:PropTween;
protected var _overwrittenProps:Object;
public var propTweenLookup:Object;
protected var _ease:Function;
public static const version:Number = 11.36;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
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 _local4:Array;
var _local5:TweenLite;
ratio = 0;
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);
_local4 = 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);
};
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number;
var _local6:PropTween;
_local5 = 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);
};
_local6 = 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);
};
}
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;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
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 = {};
}
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 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);
}
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 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];
};
};
}
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));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
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 to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//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{
var _local3:String;
Security.allowDomain("server.cpmstar.com");
_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 easeOut(_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 easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_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 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 easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 10
//_CharactersExporter_411 (PnC_Game_fla._CharactersExporter_411)
package PnC_Game_fla {
import flash.display.*;
public dynamic class _CharactersExporter_411 extends MovieClip {
public function _CharactersExporter_411(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 11
//_EpisodesExporter_75 (PnC_Game_fla._EpisodesExporter_75)
package PnC_Game_fla {
import flash.display.*;
public dynamic class _EpisodesExporter_75 extends MovieClip {
public function _EpisodesExporter_75(){
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_431 (PnC_Game_fla.abroyLogo12_431)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class abroyLogo12_431 extends MovieClip {
public function abroyLogo12_431(){
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
//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 16
//Console_456 (PnC_Game_fla.Console_456)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Console_456 extends MovieClip {
public var sbh;
public var btnClose:MovieClip;
public var sbv;
public var scrollerH:MovieClip;
public var scrollerV:MovieClip;
public var content:MovieClip;
public var command_tf:TextField;
public function Console_456(){
addFrameScript(0, frame1);
}
public function clearAll():void{
content.cont_mc.history_tf.text = "";
command_tf.text = "";
}
public function getCommand():String{
return (command_tf.text);
}
public function addMessage(_arg1:String):void{
content.cont_mc.history_tf.text = (content.cont_mc.history_tf.text + (_arg1 + "\n"));
}
public function clearCommand():void{
command_tf.text = "";
}
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);
}
public function clearHistory():void{
content.cont_mc.history_tf.text = "";
}
public function onBtnCloseClick(_arg1:MouseEvent):void{
visible = false;
}
public function addHistory(_arg1:String):void{
content.cont_mc.history_tf.text = (content.cont_mc.history_tf.text + (("> " + _arg1) + "\n"));
}
}
}//package PnC_Game_fla
Section 17
//cont_459 (PnC_Game_fla.cont_459)
package PnC_Game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cont_459 extends MovieClip {
public var history_tf:TextField;
public function cont_459(){
addFrameScript(0, frame1);
}
function frame1(){
history_tf.autoSize = "left";
}
}
}//package PnC_Game_fla
Section 18
//content_458 (PnC_Game_fla.content_458)
package PnC_Game_fla {
import flash.display.*;
public dynamic class content_458 extends MovieClip {
public var cont_mc:MovieClip;
public var mask_mc:MovieClip;
}
}//package PnC_Game_fla
Section 19
//DustCloudGFX_49 (PnC_Game_fla.DustCloudGFX_49)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class DustCloudGFX_49 extends MovieClip {
public function DustCloudGFX_49(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
dispatchEvent(new Event("animComplete"));
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 20
//FailWindowPicture_68 (PnC_Game_fla.FailWindowPicture_68)
package PnC_Game_fla {
import flash.display.*;
public dynamic class FailWindowPicture_68 extends MovieClip {
public var head_1:MovieClip;
public var Laser_1:MovieClip;
public var wheel_1:MovieClip;
}
}//package PnC_Game_fla
Section 21
//FinalWindowPicture_64 (PnC_Game_fla.FinalWindowPicture_64)
package PnC_Game_fla {
import flash.display.*;
public dynamic class FinalWindowPicture_64 extends MovieClip {
public var Laser_1:MovieClip;
}
}//package PnC_Game_fla
Section 22
//flowe_325 (PnC_Game_fla.flowe_325)
package PnC_Game_fla {
import flash.display.*;
public dynamic class flowe_325 extends MovieClip {
public function flowe_325(){
addFrameScript(0, frame1, 42, frame43, 82, frame83, 147, frame148, 188, frame189);
}
function frame1(){
}
function frame83(){
gotoAndPlay("loop");
}
function frame189(){
gotoAndPlay("loop3");
}
function frame43(){
gotoAndPlay(1);
}
function frame148(){
gotoAndPlay("loop2");
}
}
}//package PnC_Game_fla
Section 23
//FPSMonitor_438 (PnC_Game_fla.FPSMonitor_438)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public dynamic class FPSMonitor_438 extends MovieClip {
public var _tf:TextField;
public var begTime:Number;
public function FPSMonitor_438(){
addFrameScript(0, frame1);
}
function frame1(){
begTime = 0;
addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
}
public function onEnterFrameHandler(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = (getTimer() - begTime);
_local3 = (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();
}
}
}//package PnC_Game_fla
Section 24
//HelpButton_445 (PnC_Game_fla.HelpButton_445)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class HelpButton_445 extends MovieClip {
public var hit:MovieClip;
public function HelpButton_445(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame9(){
play();
}
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 frame8(){
stop();
}
function frame2(){
play();
}
public function onClick(_arg1:MouseEvent):void{
if (((Game.helplink) && (!((Game.helplink == ""))))){
navigateToURL(new URLRequest(Game.helplink), "_blank");
} else {
Tracer.report("[!]", "Bad link URL.", "HintButton");
};
}
public function onOut(_arg1:MouseEvent):void{
gotoAndPlay("out");
}
}
}//package PnC_Game_fla
Section 25
//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 26
//ItemImage_518 (PnC_Game_fla.ItemImage_518)
package PnC_Game_fla {
import flash.display.*;
public dynamic class ItemImage_518 extends MovieClip {
public var holder:MovieClip;
}
}//package PnC_Game_fla
Section 27
//jumprock_307 (PnC_Game_fla.jumprock_307)
package PnC_Game_fla {
import flash.display.*;
public dynamic class jumprock_307 extends MovieClip {
public function jumprock_307(){
addFrameScript(23, frame24, 132, frame133);
}
function frame24(){
gotoAndPlay(1);
}
function frame133(){
stop();
}
}
}//package PnC_Game_fla
Section 28
//l00_199 (PnC_Game_fla.l00_199)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l00_199 extends MovieClip {
public function l00_199(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 29
//l01_201 (PnC_Game_fla.l01_201)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l01_201 extends MovieClip {
public function l01_201(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 30
//l02_202 (PnC_Game_fla.l02_202)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l02_202 extends MovieClip {
public function l02_202(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 31
//l03_203 (PnC_Game_fla.l03_203)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l03_203 extends MovieClip {
public function l03_203(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 32
//L1_derevo2_385 (PnC_Game_fla.L1_derevo2_385)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_derevo2_385 extends MovieClip {
public function L1_derevo2_385(){
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
stop();
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 33
//L1_firefly_all_403 (PnC_Game_fla.L1_firefly_all_403)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_firefly_all_403 extends MovieClip {
public function L1_firefly_all_403(){
addFrameScript(52, frame53, 104, frame105);
}
function frame105(){
stop();
}
function frame53(){
stop();
}
}
}//package PnC_Game_fla
Section 34
//L1_green_smouke_anim_395 (PnC_Game_fla.L1_green_smouke_anim_395)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_green_smouke_anim_395 extends MovieClip {
public function L1_green_smouke_anim_395(){
addFrameScript(69, frame70);
}
function frame70(){
}
}
}//package PnC_Game_fla
Section 35
//L1_grib1_390 (PnC_Game_fla.L1_grib1_390)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_grib1_390 extends MovieClip {
public function L1_grib1_390(){
addFrameScript(0, frame1, 86, frame87);
}
function frame87(){
stop();
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 36
//L1_grib2_402 (PnC_Game_fla.L1_grib2_402)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_grib2_402 extends MovieClip {
public function L1_grib2_402(){
addFrameScript(0, frame1, 53, frame54);
}
function frame1(){
stop();
}
function frame54(){
stop();
}
}
}//package PnC_Game_fla
Section 37
//L1_Spider_klap_392 (PnC_Game_fla.L1_Spider_klap_392)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_Spider_klap_392 extends MovieClip {
public function L1_Spider_klap_392(){
addFrameScript(149, frame150, 163, frame164, 235, frame236);
}
function frame164(){
gotoAndPlay(151);
}
function frame236(){
gotoAndPlay(187);
}
function frame150(){
gotoAndPlay(1);
}
}
}//package PnC_Game_fla
Section 38
//L1_Spider_klap2_380 (PnC_Game_fla.L1_Spider_klap2_380)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_Spider_klap2_380 extends MovieClip {
public function L1_Spider_klap2_380(){
addFrameScript(149, frame150, 167, frame168, 242, frame243);
}
function frame168(){
gotoAndPlay(151);
}
function frame243(){
gotoAndPlay(190);
}
function frame150(){
gotoAndPlay(1);
}
}
}//package PnC_Game_fla
Section 39
//L1_Spider_klap4_393 (PnC_Game_fla.L1_Spider_klap4_393)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L1_Spider_klap4_393 extends MovieClip {
public function L1_Spider_klap4_393(){
addFrameScript(129, frame130);
}
function frame130(){
gotoAndPlay(70);
}
}
}//package PnC_Game_fla
Section 40
//l10_204 (PnC_Game_fla.l10_204)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l10_204 extends MovieClip {
public function l10_204(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 41
//l11_205 (PnC_Game_fla.l11_205)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l11_205 extends MovieClip {
public function l11_205(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 42
//l12_206 (PnC_Game_fla.l12_206)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l12_206 extends MovieClip {
public function l12_206(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 43
//l13_207 (PnC_Game_fla.l13_207)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l13_207 extends MovieClip {
public function l13_207(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 44
//L2_eye_337 (PnC_Game_fla.L2_eye_337)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L2_eye_337 extends MovieClip {
public function L2_eye_337(){
addFrameScript(0, frame1, 65, frame66);
}
function frame1(){
stop();
}
function frame66(){
stop();
MovieClip(parent).jf.playAnim("upset", function (){
MovieClip(parent).lose();
});
}
}
}//package PnC_Game_fla
Section 45
//L2_firefly_all_373 (PnC_Game_fla.L2_firefly_all_373)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L2_firefly_all_373 extends MovieClip {
public function L2_firefly_all_373(){
addFrameScript(23, frame24, 113, frame114);
}
function frame24(){
stop();
}
function frame114(){
gotoAndPlay(53);
}
}
}//package PnC_Game_fla
Section 46
//L2_green_smouke_anim_366 (PnC_Game_fla.L2_green_smouke_anim_366)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L2_green_smouke_anim_366 extends MovieClip {
public function L2_green_smouke_anim_366(){
addFrameScript(69, frame70);
}
function frame70(){
}
}
}//package PnC_Game_fla
Section 47
//L2_grib2_372 (PnC_Game_fla.L2_grib2_372)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L2_grib2_372 extends MovieClip {
public function L2_grib2_372(){
addFrameScript(0, frame1, 40, frame41, 49, frame50);
}
function frame1(){
stop();
}
function frame41(){
trace("WTF???!!!");
}
function frame50(){
stop();
}
}
}//package PnC_Game_fla
Section 48
//L2_liana_343 (PnC_Game_fla.L2_liana_343)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L2_liana_343 extends MovieClip {
public function L2_liana_343(){
addFrameScript(0, frame1, 31, frame32, 75, frame76);
}
function frame76(){
stop();
}
function frame1(){
stop();
}
function frame32(){
stop();
}
}
}//package PnC_Game_fla
Section 49
//L2_spice_ape_all_350 (PnC_Game_fla.L2_spice_ape_all_350)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L2_spice_ape_all_350 extends MovieClip {
public function L2_spice_ape_all_350(){
addFrameScript(245, frame246, 384, frame385, 419, frame420, 479, frame480);
}
function frame385(){
MovieClip(parent).action = true;
}
function frame480(){
stop();
}
function frame246(){
if (MovieClip(parent).monkeyCanEat){
play();
} else {
gotoAndPlay(1);
};
}
function frame420(){
gotoAndPlay(388);
}
}
}//package PnC_Game_fla
Section 50
//L2_spice_ape_head_360 (PnC_Game_fla.L2_spice_ape_head_360)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L2_spice_ape_head_360 extends MovieClip {
public function L2_spice_ape_head_360(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package PnC_Game_fla
Section 51
//L2_Vetka_anim_347 (PnC_Game_fla.L2_Vetka_anim_347)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L2_Vetka_anim_347 extends MovieClip {
public function L2_Vetka_anim_347(){
addFrameScript(0, frame1, 22, frame23);
}
function frame1(){
stop();
}
function frame23(){
stop();
}
}
}//package PnC_Game_fla
Section 52
//l20_208 (PnC_Game_fla.l20_208)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l20_208 extends MovieClip {
public function l20_208(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 53
//l21_209 (PnC_Game_fla.l21_209)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l21_209 extends MovieClip {
public function l21_209(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 54
//l22_210 (PnC_Game_fla.l22_210)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l22_210 extends MovieClip {
public function l22_210(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 55
//l23_211 (PnC_Game_fla.l23_211)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l23_211 extends MovieClip {
public function l23_211(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 56
//l3_tree_mc_319 (PnC_Game_fla.l3_tree_mc_319)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_tree_mc_319 extends MovieClip {
public function l3_tree_mc_319(){
addFrameScript(0, frame1, 1, frame2, 101, frame102, 102, frame103);
}
function frame102(){
stop();
}
function frame1(){
stop();
}
function frame103(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 57
//l3_tree02_mc_321 (PnC_Game_fla.l3_tree02_mc_321)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_tree02_mc_321 extends MovieClip {
public function l3_tree02_mc_321(){
addFrameScript(0, frame1, 1, frame2, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 58
//l30_212 (PnC_Game_fla.l30_212)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l30_212 extends MovieClip {
public function l30_212(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 59
//l31_213 (PnC_Game_fla.l31_213)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l31_213 extends MovieClip {
public function l31_213(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 60
//l32_214 (PnC_Game_fla.l32_214)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l32_214 extends MovieClip {
public function l32_214(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 61
//l33_215 (PnC_Game_fla.l33_215)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l33_215 extends MovieClip {
public function l33_215(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 62
//L4_part_309 (PnC_Game_fla.L4_part_309)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L4_part_309 extends MovieClip {
public function L4_part_309(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package PnC_Game_fla
Section 63
//L4_Sara_part_level4_153 (PnC_Game_fla.L4_Sara_part_level4_153)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L4_Sara_part_level4_153 extends MovieClip {
public var Laser_1:MovieClip;
}
}//package PnC_Game_fla
Section 64
//L5_fire_02_169 (PnC_Game_fla.L5_fire_02_169)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_fire_02_169 extends MovieClip {
public var fire1:MovieClip;
}
}//package PnC_Game_fla
Section 65
//L5_fire_04_171 (PnC_Game_fla.L5_fire_04_171)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_fire_04_171 extends MovieClip {
public var fire3:MovieClip;
}
}//package PnC_Game_fla
Section 66
//L5_fire_all_168 (PnC_Game_fla.L5_fire_all_168)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_fire_all_168 extends MovieClip {
public var fire_down:MovieClip;
public var fire_up:MovieClip;
}
}//package PnC_Game_fla
Section 67
//L5_lest1_all_290 (PnC_Game_fla.L5_lest1_all_290)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L5_lest1_all_290 extends MovieClip {
public function L5_lest1_all_290(){
addFrameScript(0, frame1, 53, frame54, 54, frame55, 75, frame76);
}
function frame76(){
stop();
}
function frame1(){
stop();
}
function frame54(){
MovieClip(parent).leaf1d.visible = true;
}
function frame55(){
stop();
}
}
}//package PnC_Game_fla
Section 68
//L5_lest2_all_293 (PnC_Game_fla.L5_lest2_all_293)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L5_lest2_all_293 extends MovieClip {
public function L5_lest2_all_293(){
addFrameScript(0, frame1, 52, frame53, 53, frame54, 74, frame75);
}
function frame75(){
stop();
}
function frame1(){
stop();
}
function frame54(){
stop();
}
function frame53(){
MovieClip(parent).leaf2d.visible = true;
}
}
}//package PnC_Game_fla
Section 69
//L5_vetka1_284 (PnC_Game_fla.L5_vetka1_284)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_vetka1_284 extends MovieClip {
public function L5_vetka1_284(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
stop();
}
}
}//package PnC_Game_fla
Section 70
//L5_Vetka2_291 (PnC_Game_fla.L5_Vetka2_291)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_Vetka2_291 extends MovieClip {
public function L5_Vetka2_291(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package PnC_Game_fla
Section 71
//l6_muraveynik_anim_259 (PnC_Game_fla.l6_muraveynik_anim_259)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_muraveynik_anim_259 extends MovieClip {
public var muraveynik:MovieClip;
public function l6_muraveynik_anim_259(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
}
}//package PnC_Game_fla
Section 72
//l6_part_1_anim_269 (PnC_Game_fla.l6_part_1_anim_269)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_part_1_anim_269 extends MovieClip {
public function l6_part_1_anim_269(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 73
//l6_part_2_anim_271 (PnC_Game_fla.l6_part_2_anim_271)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_part_2_anim_271 extends MovieClip {
public function l6_part_2_anim_271(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 74
//l6_part_3_anim_272 (PnC_Game_fla.l6_part_3_anim_272)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_part_3_anim_272 extends MovieClip {
public function l6_part_3_anim_272(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 75
//l6_part_4_anim_273 (PnC_Game_fla.l6_part_4_anim_273)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_part_4_anim_273 extends MovieClip {
public function l6_part_4_anim_273(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 76
//l6_part_5_anim_274 (PnC_Game_fla.l6_part_5_anim_274)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_part_5_anim_274 extends MovieClip {
public function l6_part_5_anim_274(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 77
//l6_parts_all_268 (PnC_Game_fla.l6_parts_all_268)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l6_parts_all_268 extends MovieClip {
public var part2:MovieClip;
public var part4:MovieClip;
public var part3:MovieClip;
public var part5:MovieClip;
public var part1:MovieClip;
public function l6_parts_all_268(){
addFrameScript(0, frame1, 27, frame28, 81, frame82);
}
function frame82(){
stop();
MovieClip(parent).jf.playAnim("upset", function (){
MovieClip(parent).lose();
});
}
function frame1(){
stop();
}
function frame28(){
}
}
}//package PnC_Game_fla
Section 78
//l6_termit_all_261 (PnC_Game_fla.l6_termit_all_261)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_termit_all_261 extends MovieClip {
public function l6_termit_all_261(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 79
//l6_termit_Attack_265 (PnC_Game_fla.l6_termit_Attack_265)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_termit_Attack_265 extends MovieClip {
public function l6_termit_Attack_265(){
addFrameScript(71, frame72);
}
function frame72(){
stop();
}
}
}//package PnC_Game_fla
Section 80
//l6_termit_RunAway_264 (PnC_Game_fla.l6_termit_RunAway_264)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_termit_RunAway_264 extends MovieClip {
public function l6_termit_RunAway_264(){
addFrameScript(71, frame72);
}
function frame72(){
stop();
}
}
}//package PnC_Game_fla
Section 81
//l6_zond_all_253 (PnC_Game_fla.l6_zond_all_253)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_zond_all_253 extends MovieClip {
public function l6_zond_all_253(){
addFrameScript(0, frame1, 37, frame38);
}
function frame1(){
stop();
}
function frame38(){
stop();
}
}
}//package PnC_Game_fla
Section 82
//L7_lest1_228 (PnC_Game_fla.L7_lest1_228)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L7_lest1_228 extends MovieClip {
public function L7_lest1_228(){
addFrameScript(0, frame1, 52, frame53, 53, frame54, 74, frame75);
}
function frame75(){
stop();
}
function frame1(){
stop();
}
function frame54(){
stop();
}
function frame53(){
MovieClip(parent).leaf1d.visible = true;
}
}
}//package PnC_Game_fla
Section 83
//L7_lest1_fall_231 (PnC_Game_fla.L7_lest1_fall_231)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L7_lest1_fall_231 extends MovieClip {
public function L7_lest1_fall_231(){
addFrameScript(0, frame1, 53, frame54, 74, frame75);
}
function frame75(){
stop();
}
function frame1(){
stop();
}
function frame54(){
stop();
}
}
}//package PnC_Game_fla
Section 84
//L7_lest2_233 (PnC_Game_fla.L7_lest2_233)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L7_lest2_233 extends MovieClip {
public function L7_lest2_233(){
addFrameScript(0, frame1, 52, frame53, 53, frame54, 74, frame75);
}
function frame75(){
stop();
}
function frame1(){
stop();
}
function frame54(){
stop();
}
function frame53(){
MovieClip(parent).leaf2d.visible = true;
}
}
}//package PnC_Game_fla
Section 85
//L7_lest2_fall_234 (PnC_Game_fla.L7_lest2_fall_234)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L7_lest2_fall_234 extends MovieClip {
public function L7_lest2_fall_234(){
addFrameScript(0, frame1, 53, frame54, 74, frame75);
}
function frame75(){
stop();
}
function frame1(){
stop();
}
function frame54(){
stop();
}
}
}//package PnC_Game_fla
Section 86
//L7_lest3_230 (PnC_Game_fla.L7_lest3_230)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L7_lest3_230 extends MovieClip {
public function L7_lest3_230(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
stop();
}
}
}//package PnC_Game_fla
Section 87
//L7_spaider_all_235 (PnC_Game_fla.L7_spaider_all_235)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L7_spaider_all_235 extends MovieClip {
public function L7_spaider_all_235(){
addFrameScript(119, frame120, 169, frame170);
}
function frame170(){
gotoAndPlay(1);
}
function frame120(){
if (MovieClip(parent).canMake){
MovieClip(parent).canMake = false;
MovieClip(parent).makeParashute2();
play();
} else {
if (MovieClip(parent).canDie){
MovieClip(parent).canDie = false;
MovieClip(parent).jfDie2();
play();
} else {
gotoAndPlay(1);
};
};
}
}
}//package PnC_Game_fla
Section 88
//L7_Vetka1_225 (PnC_Game_fla.L7_Vetka1_225)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L7_Vetka1_225 extends MovieClip {
public function L7_Vetka1_225(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package PnC_Game_fla
Section 89
//L7_Vetka2_232 (PnC_Game_fla.L7_Vetka2_232)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L7_Vetka2_232 extends MovieClip {
public function L7_Vetka2_232(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package PnC_Game_fla
Section 90
//L8_signal_80 (PnC_Game_fla.L8_signal_80)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L8_signal_80 extends MovieClip {
public function L8_signal_80(){
addFrameScript(0, frame1, 61, frame62);
}
function frame1(){
stop();
}
function frame62(){
stop();
MovieClip(parent).win();
}
}
}//package PnC_Game_fla
Section 91
//liani_396 (PnC_Game_fla.liani_396)
package PnC_Game_fla {
import flash.display.*;
public dynamic class liani_396 extends MovieClip {
public function liani_396(){
addFrameScript(0, frame1, 161, frame162, 199, frame200);
}
function frame200(){
stop();
}
function frame162(){
stop();
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 92
//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 93
//Logo_40 (PnC_Game_fla.Logo_40)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Logo_40 extends MovieClip {
public function Logo_40(){
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 94
//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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var message:MovieClip;
public var prel:MovieClip;
public var memDisplay:MovieClip;
public var console:MovieClip;
public var allowRun:Boolean;
public var _stopped:Boolean;
public var fpsDisplay:MovieClip;
public var spfDisplay:MovieClip;
public var game:Game;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
trace("+------------------------------------------------+");
trace("| EXPORT CLASSES |");
trace("+------------------------------------------------+");
nextFrame();
}
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/sara-2-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 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;
};
}
public function showProgress(_arg1:ProgressEvent):void{
var _local2:Number;
var _local3:Number;
if (!_stopped){
stop();
_stopped = true;
};
_local2 = Math.floor(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100));
_local3 = 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");
};
}
function frame2(){
stop();
trace("present window");
}
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);
};
}
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);
};
}
}
}//package PnC_Game_fla
Section 95
//MeetotherAbroy_62 (PnC_Game_fla.MeetotherAbroy_62)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class MeetotherAbroy_62 extends MovieClip {
public var abrhit:MovieClip;
public function MeetotherAbroy_62(){
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 96
//MEMMonitor_436 (PnC_Game_fla.MEMMonitor_436)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public dynamic class MEMMonitor_436 extends MovieClip {
public var _tf:TextField;
public function MEMMonitor_436(){
addFrameScript(0, frame1);
}
function frame1(){
addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
}
public function onEnterFrameHandler(_arg1:Event):void{
var _local2:Number;
_local2 = Utils.getTotalMemory();
if (_local2 <= 16){
_tf.textColor = 0xFF00;
} else {
if (_local2 <= 24){
_tf.textColor = 0xFFFF00;
} else {
_tf.textColor = 0xFF0000;
};
};
_tf.text = _local2.toFixed(3);
}
}
}//package PnC_Game_fla
Section 97
//Menu_421 (PnC_Game_fla.Menu_421)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Menu_421 extends MovieClip {
public var playB:MovieClip;
public var moreg:MovieClip;
public var sara1:MovieClip;
public function Menu_421(){
addFrameScript(0, frame1);
}
public function onOut1(_arg1:MouseEvent):void{
moreg.gotoAndStop(1);
}
public function onOut2(_arg1:MouseEvent):void{
playB.gotoAndStop(1);
}
public function onOut3(_arg1:MouseEvent):void{
sara1.gotoAndStop(1);
}
public function onOver1(_arg1:MouseEvent):void{
moreg.gotoAndStop(2);
}
public function onOver2(_arg1:MouseEvent):void{
playB.gotoAndStop(2);
}
public function onClick2(_arg1:MouseEvent):void{
Console.enterMainGame();
}
public function onClick3(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.abroy.com/play/adventure-games/sara/"), "_blank");
}
public function onOver3(_arg1:MouseEvent):void{
sara1.gotoAndStop(2);
}
public function onClick1(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://abroy.com/"), "_blank");
}
function frame1(){
moreg.buttonMode = true;
moreg.useHandCursor = true;
moreg.addEventListener(MouseEvent.CLICK, onClick1);
moreg.addEventListener(MouseEvent.ROLL_OUT, onOut1);
moreg.addEventListener(MouseEvent.ROLL_OVER, onOver1);
playB.buttonMode = true;
playB.useHandCursor = true;
playB.addEventListener(MouseEvent.CLICK, onClick2);
playB.addEventListener(MouseEvent.ROLL_OUT, onOut2);
playB.addEventListener(MouseEvent.ROLL_OVER, onOver2);
sara1.buttonMode = true;
sara1.useHandCursor = true;
sara1.addEventListener(MouseEvent.CLICK, onClick3);
sara1.addEventListener(MouseEvent.ROLL_OUT, onOut3);
sara1.addEventListener(MouseEvent.ROLL_OVER, onOver3);
}
}
}//package PnC_Game_fla
Section 98
//Message_455 (PnC_Game_fla.Message_455)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Message_455 extends MovieClip {
public function Message_455(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
addEventListener(MouseEvent.CLICK, onClick);
}
public function onClick(_arg1:MouseEvent):void{
if (!parent["console"].visible){
parent["console"].visible = true;
} else {
parent["console"].visible = false;
};
}
}
}//package PnC_Game_fla
Section 99
//moregamesmine_425 (PnC_Game_fla.moregamesmine_425)
package PnC_Game_fla {
import flash.display.*;
public dynamic class moregamesmine_425 extends MovieClip {
public function moregamesmine_425(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 100
//muraveynik_260 (PnC_Game_fla.muraveynik_260)
package PnC_Game_fla {
import flash.display.*;
public dynamic class muraveynik_260 extends MovieClip {
public var termit:MovieClip;
}
}//package PnC_Game_fla
Section 101
//MuteButton_449 (PnC_Game_fla.MuteButton_449)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class MuteButton_449 extends MovieClip {
public var hit:MovieClip;
public function MuteButton_449(){
addFrameScript(0, frame1, 1, frame2);
}
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();
}
public function onClick(_arg1:MouseEvent):void{
if (currentFrame == 1){
setVolume(0);
nextFrame();
} else {
setVolume(1);
prevFrame();
};
}
}
}//package PnC_Game_fla
Section 102
//NextButton_36 (PnC_Game_fla.NextButton_36)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import windows.*;
public dynamic class NextButton_36 extends MovieClip {
public var hit:MovieClip;
public function NextButton_36(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame9(){
play();
}
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 frame8(){
stop();
}
function frame2(){
play();
}
public function onClick(_arg1:MouseEvent):void{
Console.nextEpisode();
if (parent){
(parent as Window).close();
};
}
public function onOut(_arg1:MouseEvent):void{
gotoAndPlay("out");
}
}
}//package PnC_Game_fla
Section 103
//NextWindowPicture_20 (PnC_Game_fla.NextWindowPicture_20)
package PnC_Game_fla {
import flash.display.*;
public dynamic class NextWindowPicture_20 extends MovieClip {
public var head_1:MovieClip;
public var Laser_1:MovieClip;
public var wheel_1:MovieClip;
}
}//package PnC_Game_fla
Section 104
//play_btn_5 (PnC_Game_fla.play_btn_5)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
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);
}
function frame10(){
stop();
}
function frame1(){
stop();
buttonMode = true;
useHandCursor = true;
addEventListener(MouseEvent.CLICK, btnClick);
}
function frame20(){
gotoAndStop("begin");
}
function frame2(){
play();
}
function frame11(){
play();
}
public function btnClick(_arg1:MouseEvent):void{
var _local2 = root;
_local2["gotoAndPlay"](2);
}
}
}//package PnC_Game_fla
Section 105
//PlayButton_51 (PnC_Game_fla.PlayButton_51)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import windows.*;
public dynamic class PlayButton_51 extends MovieClip {
public var hit:MovieClip;
public function PlayButton_51(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame9(){
play();
}
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 frame8(){
stop();
}
function frame2(){
play();
}
public function onClick(_arg1:MouseEvent):void{
Console.playEpisode("first");
if (parent){
(parent as Window).close();
};
}
public function onOut(_arg1:MouseEvent):void{
gotoAndPlay("out");
}
}
}//package PnC_Game_fla
Section 106
//PlayMine_422 (PnC_Game_fla.PlayMine_422)
package PnC_Game_fla {
import flash.display.*;
public dynamic class PlayMine_422 extends MovieClip {
public function PlayMine_422(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 107
//playSara1games_428 (PnC_Game_fla.playSara1games_428)
package PnC_Game_fla {
import flash.display.*;
public dynamic class playSara1games_428 extends MovieClip {
public function playSara1games_428(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 108
//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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
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 109
//Preloader_1 (PnC_Game_fla.Preloader_1)
package PnC_Game_fla {
import flash.display.*;
import CPMStar.*;
public dynamic class Preloader_1 extends MovieClip {
public var ad:DisplayObject;
public var prel;
public var adBox:MovieClip;
public var CPMStarSubPoolID:int;
public var CPMStarPoolID:int;
public var pr_body:MovieClip;
public var play_btn:MovieClip;
public function Preloader_1(){
addFrameScript(0, frame1, 38, frame39);
}
function frame1(){
stop();
prel = root["prel"];
CPMStarPoolID = 18840;
CPMStarSubPoolID = 491;
ad = AdLoader.LoadAd(CPMStarPoolID, CPMStarSubPoolID);
adBox.addChild(ad);
}
function frame39(){
stop();
}
}
}//package PnC_Game_fla
Section 110
//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 111
//puzzle_198 (PnC_Game_fla.puzzle_198)
package PnC_Game_fla {
import flash.display.*;
public dynamic class puzzle_198 extends MovieClip {
public var l1:MovieClip;
public var l4:MovieClip;
public var l8:MovieClip;
public var l5:MovieClip;
public var l3:MovieClip;
public var l7:MovieClip;
public var l6:MovieClip;
public var l2:MovieClip;
public var l15:MovieClip;
public var l16:MovieClip;
public var l13:MovieClip;
public var l9:MovieClip;
public var l14:MovieClip;
public var l10:MovieClip;
public var l12:MovieClip;
public var l11:MovieClip;
}
}//package PnC_Game_fla
Section 112
//RetryButton_71 (PnC_Game_fla.RetryButton_71)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import windows.*;
public dynamic class RetryButton_71 extends MovieClip {
public var hit:MovieClip;
public function RetryButton_71(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 11, frame12);
}
function frame12(){
play();
}
public function onOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
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();
}
public function onClick(_arg1:MouseEvent):void{
Console.replayEpisode();
if (parent){
(parent as Window).close();
};
}
public function onOut(_arg1:MouseEvent):void{
gotoAndPlay("out");
}
}
}//package PnC_Game_fla
Section 113
//rock_304 (PnC_Game_fla.rock_304)
package PnC_Game_fla {
import flash.display.*;
public dynamic class rock_304 extends MovieClip {
public function rock_304(){
addFrameScript(0, frame1, 85, frame86, 105, frame106);
}
function frame86(){
stop();
}
function frame106(){
stop();
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 114
//S_100 (PnC_Game_fla.S_100)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_100 extends MovieClip {
public var callback:Function;
public var head_1:MovieClip;
public var Laser_1:MovieClip;
public var wheel_1:MovieClip;
public function S_100(){
addFrameScript(38, frame39);
}
function frame39(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 115
//S_101 (PnC_Game_fla.S_101)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_101 extends MovieClip {
public var callback:Function;
public function S_101(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 116
//S_102 (PnC_Game_fla.S_102)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_102 extends MovieClip {
public var callback:Function;
public function S_102(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 117
//S_103 (PnC_Game_fla.S_103)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_103 extends MovieClip {
public var callback:Function;
public function S_103(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 118
//S_104 (PnC_Game_fla.S_104)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_104 extends MovieClip {
public var callback:Function;
public function S_104(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 119
//S_109 (PnC_Game_fla.S_109)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_109 extends MovieClip {
public var callback:Function;
public var head_1:MovieClip;
public var Laser_1:MovieClip;
public function S_109(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 120
//S_110 (PnC_Game_fla.S_110)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_110 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_110(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 121
//S_114 (PnC_Game_fla.S_114)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_114 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_114(){
addFrameScript(31, frame32);
}
function frame32(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 122
//S_116 (PnC_Game_fla.S_116)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_116 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_116(){
addFrameScript(52, frame53);
}
function frame53(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 123
//S_120 (PnC_Game_fla.S_120)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_120 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_120(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 124
//S_122 (PnC_Game_fla.S_122)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_122 extends MovieClip {
public var callback:Function;
public function S_122(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 125
//S_123 (PnC_Game_fla.S_123)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_123 extends MovieClip {
public var Laser_1:MovieClip;
public function S_123(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PnC_Game_fla
Section 126
//S_124 (PnC_Game_fla.S_124)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_124 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_124(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 127
//S_125 (PnC_Game_fla.S_125)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_125 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_125(){
addFrameScript(161, frame162);
}
function frame162(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 128
//S_128 (PnC_Game_fla.S_128)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_128 extends MovieClip {
public var callback:Function;
public function S_128(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 129
//S_129 (PnC_Game_fla.S_129)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_129 extends MovieClip {
public var callback:Function;
public function S_129(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 130
//S_130 (PnC_Game_fla.S_130)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_130 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_130(){
addFrameScript(57, frame58);
}
function frame58(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 131
//S_133 (PnC_Game_fla.S_133)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_133 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_133(){
addFrameScript(57, frame58);
}
function frame58(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 132
//S_134 (PnC_Game_fla.S_134)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_134 extends MovieClip {
public var anim:MovieClip;
public var callback:Function;
public function S_134(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 133
//S_135 (PnC_Game_fla.S_135)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_135 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_135(){
addFrameScript(32, frame33);
}
function frame33(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 134
//S_136 (PnC_Game_fla.S_136)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_136 extends MovieClip {
public var callback:Function;
public function S_136(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 135
//S_137 (PnC_Game_fla.S_137)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_137 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_137(){
addFrameScript(52, frame53);
}
function frame53(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 136
//S_138 (PnC_Game_fla.S_138)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_138 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_138(){
addFrameScript(106, frame107);
}
function frame107(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 137
//S_140 (PnC_Game_fla.S_140)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_140 extends MovieClip {
public var callback:Function;
public function S_140(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 138
//S_141 (PnC_Game_fla.S_141)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_141 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_141(){
addFrameScript(83, frame84);
}
function frame84(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 139
//S_142 (PnC_Game_fla.S_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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class S_142 extends MovieClip {
public var anim:MovieClip;
public var Laser_1:MovieClip;
public function S_142(){
addFrameScript(104, frame105);
}
function frame105(){
stop();
MovieClip(parent.parent).lose();
}
}
}//package PnC_Game_fla
Section 140
//S_143 (PnC_Game_fla.S_143)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_143 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_143(){
addFrameScript(63, frame64);
}
function frame64(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 141
//S_145 (PnC_Game_fla.S_145)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_145 extends MovieClip {
public var callback:Function;
public function S_145(){
addFrameScript(84, frame85);
}
function frame85(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 142
//S_147 (PnC_Game_fla.S_147)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_147 extends MovieClip {
public var callback:Function;
public function S_147(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 143
//S_148 (PnC_Game_fla.S_148)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_148 extends MovieClip {
public var callback:Function;
public function S_148(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 144
//S_149 (PnC_Game_fla.S_149)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_149 extends MovieClip {
public var callback:Function;
public function S_149(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 145
//S_150 (PnC_Game_fla.S_150)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_150 extends MovieClip {
public var callback:Function;
public function S_150(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 146
//S_151 (PnC_Game_fla.S_151)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_151 extends MovieClip {
public var callback:Function;
public function S_151(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 147
//S_152 (PnC_Game_fla.S_152)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_152 extends MovieClip {
public var anim:MovieClip;
public var callback:Function;
public function S_152(){
addFrameScript(148, frame149);
}
function frame149(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 148
//S_154 (PnC_Game_fla.S_154)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_154 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_154(){
addFrameScript(139, frame140);
}
function frame140(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 149
//S_155 (PnC_Game_fla.S_155)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_155 extends MovieClip {
public var callback:Function;
public function S_155(){
addFrameScript(139, frame140);
}
function frame140(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 150
//S_156 (PnC_Game_fla.S_156)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_156 extends MovieClip {
public var callback:Function;
public function S_156(){
addFrameScript(140, frame141);
}
function frame141(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 151
//S_157 (PnC_Game_fla.S_157)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_157 extends MovieClip {
public var callback:Function;
public function S_157(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 152
//S_158 (PnC_Game_fla.S_158)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_158 extends MovieClip {
public var callback:Function;
public function S_158(){
addFrameScript(246, frame247);
}
function frame247(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 153
//S_165 (PnC_Game_fla.S_165)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_165 extends MovieClip {
public var callback:Function;
public function S_165(){
addFrameScript(311, frame312);
}
function frame312(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 154
//S_177 (PnC_Game_fla.S_177)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_177 extends MovieClip {
public var callback:Function;
public function S_177(){
addFrameScript(127, frame128);
}
function frame128(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 155
//S_179 (PnC_Game_fla.S_179)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_179 extends MovieClip {
public var callback:Function;
public function S_179(){
addFrameScript(32, frame33);
}
function frame33(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 156
//S_181 (PnC_Game_fla.S_181)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_181 extends MovieClip {
public var callback:Function;
public var L6_lest2_fall:MovieClip;
public function S_181(){
addFrameScript(87, frame88);
}
function frame88(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 157
//S_185 (PnC_Game_fla.S_185)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_185 extends MovieClip {
public var callback:Function;
public function S_185(){
addFrameScript(157, frame158);
}
function frame158(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 158
//S_186 (PnC_Game_fla.S_186)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_186 extends MovieClip {
public var callback:Function;
public function S_186(){
addFrameScript(125, frame126);
}
function frame126(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 159
//S_188 (PnC_Game_fla.S_188)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_188 extends MovieClip {
public var Laser_1:MovieClip;
public function S_188(){
addFrameScript(97, frame98);
}
function frame98(){
stop();
}
}
}//package PnC_Game_fla
Section 160
//S_191 (PnC_Game_fla.S_191)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_191 extends MovieClip {
public var head_1:MovieClip;
public var Laser_1:MovieClip;
public var wheel_1:MovieClip;
public function S_191(){
addFrameScript(136, frame137);
}
function frame137(){
stop();
}
}
}//package PnC_Game_fla
Section 161
//S_193 (PnC_Game_fla.S_193)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_193 extends MovieClip {
public function S_193(){
addFrameScript(125, frame126);
}
function frame126(){
stop();
}
}
}//package PnC_Game_fla
Section 162
//S_85 (PnC_Game_fla.S_85)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_85 extends MovieClip {
public var head_1:MovieClip;
public var Laser_1:MovieClip;
public var wheel_1:MovieClip;
}
}//package PnC_Game_fla
Section 163
//S_92 (PnC_Game_fla.S_92)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_92 extends MovieClip {
public var head_1:MovieClip;
public var Laser_1:MovieClip;
}
}//package PnC_Game_fla
Section 164
//S_95 (PnC_Game_fla.S_95)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_95 extends MovieClip {
public var callback:Function;
public var head_1:MovieClip;
public var Laser_1:MovieClip;
public var wheel_1:MovieClip;
public function S_95(){
addFrameScript(53, frame54);
}
function frame54(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 165
//S_97 (PnC_Game_fla.S_97)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_97 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_97(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 166
//S_98 (PnC_Game_fla.S_98)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_98 extends MovieClip {
public var callback:Function;
public var head_1:MovieClip;
public var Laser_1:MovieClip;
public var wheel_1:MovieClip;
public function S_98(){
addFrameScript(45, frame46);
}
function frame46(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 167
//S_99 (PnC_Game_fla.S_99)
package PnC_Game_fla {
import flash.display.*;
public dynamic class S_99 extends MovieClip {
public var callback:Function;
public var Laser_1:MovieClip;
public function S_99(){
addFrameScript(32, frame33);
}
function frame33(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 168
//Sara_antenna_die_108 (PnC_Game_fla.Sara_antenna_die_108)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_antenna_die_108 extends MovieClip {
public function Sara_antenna_die_108(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package PnC_Game_fla
Section 169
//Sara_body_without_wheel_146 (PnC_Game_fla.Sara_body_without_wheel_146)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_body_without_wheel_146 extends MovieClip {
public var head_1:MovieClip;
public var Laser_1:MovieClip;
}
}//package PnC_Game_fla
Section 170
//Sara_clap_dont_wont_113 (PnC_Game_fla.Sara_clap_dont_wont_113)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_clap_dont_wont_113 extends MovieClip {
public function Sara_clap_dont_wont_113(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package PnC_Game_fla
Section 171
//Sara_clap_open_2_189 (PnC_Game_fla.Sara_clap_open_2_189)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_clap_open_2_189 extends MovieClip {
public function Sara_clap_open_2_189(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 172
//Sara_clap_open_96 (PnC_Game_fla.Sara_clap_open_96)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_clap_open_96 extends MovieClip {
public function Sara_clap_open_96(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 173
//Sara_clap_throw_132 (PnC_Game_fla.Sara_clap_throw_132)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_clap_throw_132 extends MovieClip {
public function Sara_clap_throw_132(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PnC_Game_fla
Section 174
//Sara_clap_upset_115 (PnC_Game_fla.Sara_clap_upset_115)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_clap_upset_115 extends MovieClip {
public function Sara_clap_upset_115(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PnC_Game_fla
Section 175
//Sara_eye_die_107 (PnC_Game_fla.Sara_eye_die_107)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_eye_die_107 extends MovieClip {
public function Sara_eye_die_107(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PnC_Game_fla
Section 176
//Sara_head_dont_wont_111 (PnC_Game_fla.Sara_head_dont_wont_111)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_head_dont_wont_111 extends MovieClip {
public function Sara_head_dont_wont_111(){
addFrameScript(25, frame26);
}
function frame26(){
}
}
}//package PnC_Game_fla
Section 177
//Sara_laser_dont_wont_112 (PnC_Game_fla.Sara_laser_dont_wont_112)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_laser_dont_wont_112 extends MovieClip {
public function Sara_laser_dont_wont_112(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package PnC_Game_fla
Section 178
//Sara_laser_terminator_173 (PnC_Game_fla.Sara_laser_terminator_173)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_laser_terminator_173 extends MovieClip {
public function Sara_laser_terminator_173(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package PnC_Game_fla
Section 179
//Sara_sparks_105 (PnC_Game_fla.Sara_sparks_105)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_sparks_105 extends MovieClip {
public function Sara_sparks_105(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PnC_Game_fla
Section 180
//Sara_weel_anim_slowStat_90 (PnC_Game_fla.Sara_weel_anim_slowStat_90)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Sara_weel_anim_slowStat_90 extends MovieClip {
public function Sara_weel_anim_slowStat_90(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
}
}
}//package PnC_Game_fla
Section 181
//scrollerH_466 (PnC_Game_fla.scrollerH_466)
package PnC_Game_fla {
import flash.display.*;
public dynamic class scrollerH_466 extends MovieClip {
public var track_mc:MovieClip;
public var btnRight:MovieClip;
public var btnLeft:MovieClip;
public var thumb_mc:MovieClip;
}
}//package PnC_Game_fla
Section 182
//scrollerV_461 (PnC_Game_fla.scrollerV_461)
package PnC_Game_fla {
import flash.display.*;
public dynamic class scrollerV_461 extends MovieClip {
public var btnUp:MovieClip;
public var btnDown:MovieClip;
public var track_mc:MovieClip;
public var thumb_mc:MovieClip;
}
}//package PnC_Game_fla
Section 183
//SPFMonitor_437 (PnC_Game_fla.SPFMonitor_437)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
public dynamic class SPFMonitor_437 extends MovieClip {
public var _tf:TextField;
public var begTime:Number;
public function SPFMonitor_437(){
addFrameScript(0, frame1);
}
function frame1(){
begTime = 0;
addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
}
public function onEnterFrameHandler(_arg1:Event):void{
var _local2:Number;
_local2 = (getTimer() - begTime);
if (_local2 <= 42){
_tf.textColor = 0xFF00;
} else {
if (_local2 <= 83){
_tf.textColor = 0xFFFF00;
} else {
_tf.textColor = 0xFF0000;
};
};
_tf.text = ("" + _local2);
begTime = getTimer();
}
}
}//package PnC_Game_fla
Section 184
//vetka_311 (PnC_Game_fla.vetka_311)
package PnC_Game_fla {
import flash.display.*;
public dynamic class vetka_311 extends MovieClip {
public function vetka_311(){
addFrameScript(0, frame1, 25, frame26, 46, frame47, 68, frame69);
}
function frame1(){
stop();
}
function frame26(){
stop();
}
function frame47(){
stop();
}
function frame69(){
stop();
}
}
}//package PnC_Game_fla
Section 185
//zond_all_327 (PnC_Game_fla.zond_all_327)
package PnC_Game_fla {
import flash.display.*;
public dynamic class zond_all_327 extends MovieClip {
public function zond_all_327(){
addFrameScript(0, frame1, 77, frame78);
}
function frame78(){
stop();
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 186
//AutoWindow (windows.AutoWindow)
package windows {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class AutoWindow extends Window {
private var _lifeTimer:Timer;
public var gfx:MovieClip;
public var holder:MovieClip;
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();
}
private function closeSelf(_arg1:TimerEvent):void{
_lifeTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, closeSelf);
_lifeTimer = undefined;
close();
}
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."));
};
}
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;
};
}
}
}//package windows
Section 187
//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 alignToCenter():void{
var _local1:Rectangle;
_local1 = 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);
};
}
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."));
};
};
}
}
}//package windows
Section 188
//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 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 openFinalWindow():Window{
var _local1:Window;
_local1 = new FinalWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public function get activeWindow():Window{
return (_activeWindow);
}
public function openFailWindow():Window{
var _local1:Window;
_local1 = new FailWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public function openNextWindow():Window{
var _local1:Window;
_local1 = new NextWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public function closeActiveWindow():void{
if (_activeWindow){
removeChild(_activeWindow);
_activeWindow = undefined;
} else {
throw (new Error("[WindowsManager] : <closeActiveWindow> : There is no active window."));
};
}
public function openHelloWindow():Window{
var _local1:Window;
_local1 = new HelloWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public function openItemWindow():Window{
var _local1:Window;
_local1 = new ItemWindow();
_local1.alignToCenter();
openActiveWindow(_local1);
return (_local1);
}
public static function get instance():WindowsManager{
return (_instance);
}
}
}//package windows
Section 189
//Activator (Activator)
package {
import flash.display.*;
import flash.events.*;
public class Activator {
private var sprite:Sprite;
private var name:String;
private var target:Sprite;
private var state:String;
private var mode:String;
private var onPointCondition:Function;
private var onPointEvent:String;
private var onClick:Function;
private var onPoint:Function;
private var onClickCondition:Function;
private var region:Sprite;
private var onClickEvent:String;
private var episode:Episode;
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");
};
}
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 init():void{
target.addEventListener(MouseEvent.CLICK, onClickHandler);
target.addEventListener(MouseEvent.MOUSE_OVER, onPointHandler);
target.buttonMode = true;
target.useHandCursor = true;
}
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;
}
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";
};
};
};
};
}
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";
};
};
};
};
}
}
}//package
Section 190
//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 191
//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 192
//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 193
//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 194
//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 195
//Animation (Animation)
package {
import flash.display.*;
import flash.events.*;
public class Animation {
private var prevLabel:String;
private var name:String;
private var order:Array;
private var loops:uint;
private var nextLabel:String;
private var target:MovieClip;
private var index:uint;
private var frame:uint;
private var label:String;
private var episode:Episode;
private var labels:Object;
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 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 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 kill():void{
if (target.hasEventListener("Event")){
};
label = null;
order = null;
prevLabel = null;
nextLabel = null;
name = null;
episode = null;
target = null;
labels = null;
}
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();
};
};
};
}
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--;
};
};
}
public function playOrder(_arg1:Array):void{
var _local2:int;
var _local3:uint;
var _local4:uint;
_local2 = _arg1.length;
while (_local2--) {
if (labels[_arg1[_local2]] == null){
Tracer.report("[X]", "Sequence contains wrong label(s).", "Animation");
return;
};
};
order = new Array();
_local3 = _arg1.length;
_local4 = 0;
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]);
}
public function resume():void{
if (target.anim){
target.anim.play();
} else {
Tracer.report("[X]", "No animation to resume.", "Animation");
};
}
public function pause():void{
if (target.anim){
target.anim.stop();
} else {
Tracer.report("[X]", "No animation to pause.", "Animation");
};
}
}
}//package
Section 196
//Character (Character)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Character extends MovieClip {
public var animInstrSet:Array;
public var anim:MovieClip;
public var animCallback:Function;
private var waitTimer:Timer;
public var waitTime:Number;// = 10
private var labels:Array;
public function Character(){
waitTime = 10;
super();
init();
}
public function turnBack():void{
stopWaitTimer();
scaleX = (scaleX * -1);
}
private function init():void{
var _local1:uint;
var _local2:uint;
labels = new Array();
_local1 = currentLabels.length;
_local2 = 0;
while (_local2 < _local1) {
labels[_local2] = currentLabels[_local2].name;
_local2++;
};
}
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 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 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 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");
};
}
public function halt():void{
stopWaitTimer();
if (anim){
anim.stop();
};
if (labels.indexOf("none") != -1){
gotoAndStop("idle");
};
}
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 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");
};
}
private function startWaitTimer():void{
if (waitTimer){
stopWaitTimer();
};
waitTimer = new Timer((waitTime * 1000), 1);
waitTimer.addEventListener(TimerEvent.TIMER_COMPLETE, startIdle);
waitTimer.start();
}
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 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 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");
};
}
private function stopWaitTimer():void{
if (waitTimer){
waitTimer.reset();
if (waitTimer.hasEventListener(TimerEvent.TIMER_COMPLETE)){
waitTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, startIdle);
};
waitTimer = null;
};
}
}
}//package
Section 197
//Character_02 (Character_02)
package {
public dynamic class Character_02 extends Character {
}
}//package
Section 198
//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 199
//Console (Console)
package {
public class Console {
public static var mPlayer:MusicPlayer = new MusicPlayer();
public static var sPlayer:SoundPlayer = new SoundPlayer();
public static var pac_game;
public static function enterMainGame():void{
if (pac_game){
pac_game.gotoAndStop("game");
};
}
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 winEpisode():void{
if (Game.instance){
Game.instance.winEpisode();
} else {
throw (new Error("[Console] : <winEpisode> : 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 prevEpisode():void{
if (Game.instance){
Game.instance.prevEpisode();
} else {
throw (new Error("[Console] : <prevEpisode> : 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 nextEpisode():void{
if (Game.instance){
Game.instance.nextEpisode();
} else {
throw (new Error("[Console] : <nextEpisode> : 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 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 getCurrentEpisodeName():String{
if (Game.instance){
return (Game.instance.getCurrentEpisodeName());
};
throw (new Error("[Console] : <getCurrentEpisodeName> : Game instance isn't exists."));
}
public static function formatTime(_arg1:Number, _arg2:Boolean=true):String{
var _local3:Number;
var _local4:*;
var _local5:*;
var _local6:*;
_local3 = _arg1;
if (!_arg2){
_local3 = Math.floor((_arg1 / 1000));
};
_local4 = Math.floor((_local3 / (60 * 60)));
_local5 = (Math.floor((_local3 / 60)) - (_local4 * 60));
_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));
}
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 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 finishEpisode():void{
if (Game.instance){
Game.instance.finishEpisode();
} else {
throw (new Error("[Console] : <finishEpisode> : 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 enterMainMenu():void{
if (pac_game){
if (Game.instance){
Utils.disposeDisplayObject(Game.instance);
Game.instance.destroy();
};
pac_game.gotoAndStop("menu");
};
}
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 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 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 getCurrentEpisode():Episode{
if (Game.instance){
return (Game.instance.getCurrentEpisode());
};
throw (new Error("[Console] : <getCurrentEpisode> : 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 getCurrentEpisodeIndex():int{
if (Game.instance){
return (Game.instance.getCurrentEpisodeIndex());
};
throw (new Error("[Console] : <getCurrentEpisodeIndex> : 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 getEpisodeByIndex(_arg1:uint):Episode{
if (Game.instance){
return (Game.instance.getEpisodeByIndex(_arg1));
};
throw (new Error("[Console] : <getEpisodeByIndex> : Game instance isn't exists."));
}
}
}//package
Section 200
//DefaultIcon (DefaultIcon)
package {
import flash.display.*;
public dynamic class DefaultIcon extends MovieClip {
}
}//package
Section 201
//Displacement (Displacement)
package {
import flash.display.*;
import com.greensock.*;
import fl.transitions.easing.*;
public class 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 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 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 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 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 202
//Episode (Episode)
package {
import flash.display.*;
import flash.events.*;
import com.greensock.*;
import fl.transitions.easing.*;
import flash.utils.*;
public class Episode extends MovieClip {
private var itemsRegistry:Object;
public var finalize:Function;
public var mount:MovieClip;
public var action:Boolean;
public var extCall:Function;
public var leaf1d:MovieClip;
public var puzzle:MovieClip;
public var cleanOut:Function;
public var leaf2d:MovieClip;
private var endTime:Number;
public var three2:MovieClip;
public var mushroom:MovieClip;
public var stone:MovieClip;
private var bonusTimer:Timer;
private var activatorsRegistry:Object;
public var three1:MovieClip;
private var eventsRegistry:Object;
public var countTime:Number;// = 0
public var bugs:MovieClip;
public var epicScene:MovieClip;
public var leaf2:MovieClip;
public var leaf3:MovieClip;
public var score:int;// = 0
public var leaf1:MovieClip;
public var part2:MovieClip;
public var part4:MovieClip;
public var part1:MovieClip;
public var part3:MovieClip;
public var signal:MovieClip;
public var part5:MovieClip;
public var list:MovieClip;
public var hd1:MovieClip;
public var hd3:MovieClip;
public var shuttle:MovieClip;
public var hd2:MovieClip;
public var wood:MovieClip;
public var time:Number;
public var branch1:MovieClip;
public var branch2:MovieClip;
public var index:uint;
private var animationsRegistry:Object;
public var mushroom2:MovieClip;
public var klap1:MovieClip;
public var klap3:MovieClip;
public var spider:MovieClip;
private var player:Sprite;
public var klap2:MovieClip;
public var panzer:MovieClip;
public var intCall:Function;
private var waypointsRegistry:Object;
public var waitForReady:Boolean;
public var extISet:Array;
public var do1:MovieClip;
public var do3:MovieClip;
public var do4:MovieClip;
public var do2:MovieClip;
public var dol1:MovieClip;
public var dol3:MovieClip;
public var dol4:MovieClip;
public var dol5:MovieClip;
public var dol6:MovieClip;
public var dol8:MovieClip;
public var do5:MovieClip;
public var dol2:MovieClip;
public var dol12:MovieClip;
public var dol13:MovieClip;
public var dol15:MovieClip;
public var hook:MovieClip;
public var dol14:MovieClip;
public var dol16:MovieClip;
public var dol7:MovieClip;
public var dol10:MovieClip;
public var dol11:MovieClip;
public var flower1:MovieClip;
public var dol9:MovieClip;
public var jf:hero;
public var liana:MovieClip;
public var liani:MovieClip;
public var flower2:MovieClip;
public var inventory:Inventory;
public var rock:MovieClip;
private var begTime:Number;
public var flowers:MovieClip;
public var mushroom4:MovieClip;
public var initialize:Function;
private var _state:String;
public var bonusTime:Number;// = 0
public var three:MovieClip;
public var branch:MovieClip;
public var intISet:Array;
public var monster:MovieClip;
private var camera_t:Sprite;
public var monkey:MovieClip;
private var camera_x:Number;
private var camera_y:Number;
public function Episode(){
bonusTime = 0;
countTime = 0;
score = 0;
super();
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 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 stopBonusTimer():void{
if (bonusTimer){
if (bonusTimer.running){
bonusTimer.stop();
};
} else {
throw (new Error("[Episode] : <stopBonusTimer> : Bonus timer not exists."));
};
}
public function listInventoryItems():void{
inventory.listItems();
}
public function listAnimationsRegistry():void{
var _local1:uint;
var _local2:String;
trace("[S] LIST: animationsRegistry:");
_local1 = 0;
for (_local2 in animationsRegistry) {
trace((((" - " + _local2) + " = ") + animationsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
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 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 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 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 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 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 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 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 cameraTo(_arg1:Number, _arg2:Number, _arg3:Function=null, _arg4:Number=64):void{
var _local5:Number;
var _local6:Number;
_local5 = Math.sqrt((Math.pow((_arg1 - camera_x), 2) + Math.pow((_arg2 - camera_y), 2)));
_local6 = (_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 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 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 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 getTimeBonus():Number{
return (countTime);
}
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 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 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 internalCall():void{
var _local1:Function;
if (intCall != null){
_local1 = intCall;
intCall = undefined;
_local1();
};
}
public function ifEach(_arg1:Array, _arg2:Boolean):Boolean{
var _local3:uint;
var _local4:String;
var _local5:uint;
_local3 = _arg1.length;
_local5 = 0;
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 cameraVia(_arg1:Array, _arg2:Function=null, _arg3:Number=128):void{
var _local4:TimelineLite;
var _local5:uint;
var _local6:uint;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local4 = new TimelineLite();
_local5 = _arg1.length;
_local6 = 0;
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 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 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 listChildren():void{
var _local1:uint;
var _local2:DisplayObject;
var _local3:uint;
trace("[S] LIST: children:");
_local1 = numChildren;
_local3 = 0;
while (_local3 < _local1) {
_local2 = getChildAt(_local3);
trace((((" - " + _local2.name) + " = ") + _local2));
_local3++;
};
trace((" Total number: " + _local1));
}
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 externalCall():void{
var _local1:Function;
if (extCall != null){
_local1 = extCall;
extCall = undefined;
_local1();
};
}
public function listEventsRegistry():void{
var _local1:uint;
var _local2:String;
trace("[S] LIST: eventsRegistry:");
_local1 = 0;
for (_local2 in eventsRegistry) {
trace((((" - " + _local2) + " = ") + eventsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
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 load():void{
}
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 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 applyItems(_arg1:Array, _arg2:Function=null, _arg3:String=null, _arg4:Boolean=false):void{
var _local5:uint;
var _local6:uint;
var _local7:String;
_local6 = _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 disable():void{
action = false;
}
public function isActivator(_arg1:String):Boolean{
return (Boolean(activatorsRegistry[_arg1]));
}
public function lose():void{
action = false;
finish();
Game.instance.showFailWindow();
_state = "FINISHED";
}
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 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 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 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 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 isItem(_arg1:String):Boolean{
return (Boolean(itemsRegistry[_arg1]));
}
public function ifThese(_arg1:Array):Boolean{
var _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = _arg1.length;
_local4 = 0;
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 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 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 isAnimation(_arg1:String):Boolean{
return (Boolean(animationsRegistry[_arg1]));
}
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 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 enable():void{
action = true;
}
public function listItemsRegistry():void{
var _local1:uint;
var _local2:String;
trace("[S] LIST: itemsRegistry:");
_local1 = 0;
for (_local2 in itemsRegistry) {
trace((((" - " + _local2) + " = ") + itemsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
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 ifAny(_arg1:Array):Boolean{
var _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = _arg1.length;
_local4 = 0;
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 getScore():Number{
return (score);
}
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 isEvent(_arg1:String):Boolean{
if (eventsRegistry[_arg1] != null){
return (true);
};
return (false);
}
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 listActivatorsRegistry():void{
var _local1:uint;
var _local2:String;
trace("[S] LIST: activatorsRegistry:");
_local1 = 0;
for (_local2 in activatorsRegistry) {
trace((((" - " + _local2) + " = ") + activatorsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
private function onBonusTimer(_arg1:TimerEvent):void{
countTime--;
}
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 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 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 ifOneOf(_arg1:Array, _arg2:Boolean):Boolean{
var _local3:uint;
var _local4:String;
var _local5:uint;
_local3 = _arg1.length;
_local5 = 0;
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 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 ifNotThese(_arg1:Array):Boolean{
var _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = _arg1.length;
_local4 = 0;
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 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 getPlayer():Sprite{
return (player);
}
public function win():void{
action = false;
finish();
if (Console.isNextEpisode()){
Game.instance.showNextWindow();
} else {
Game.instance.showFinalWindow();
};
_state = "FINISHED";
}
private function onEpisodeReady(_arg1:Event):void{
removeEventListener("episodeReady", onEpisodeReady);
_state = "loaded";
if (waitForReady){
waitForReady = false;
start();
};
}
public function listWaypointsRegistry():void{
var _local1:uint;
var _local2:String;
trace("[S] LIST: waypointsRegistry:");
_local1 = 0;
for (_local2 in waypointsRegistry) {
trace((((" - " + _local2) + " = ") + waypointsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function setPlayer(_arg1:Sprite):void{
player = _arg1;
}
public function ifNotAny(_arg1:Array):Boolean{
var _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = _arg1.length;
_local4 = 0;
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 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);
}
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");
}
}
}//package
Section 203
//Episode_01 (Episode_01)
package {
import flash.events.*;
public dynamic class Episode_01 extends Episode {
public function Episode_01(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
public function takeHook():void{
action = false;
jf.turnOn("left");
jf.takeItem("hook", hook, function (){
trace("callback");
jf.wait();
if (inventory.hasItem("liana")){
makeItem("trap", ["hook", "liana"], 2, function ():void{
action = true;
}, "trap_made");
} else {
action = true;
};
causeEvent("hook_ok");
});
removeActivator("do1");
}
function frame1(){
initialize = function ():void{
action = true;
klap1.gotoAndPlay(1);
klap2.gotoAndPlay(1);
three.gotoAndStop(1);
liani.gotoAndStop(1);
mushroom.gotoAndStop(1);
mushroom2.gotoAndStop(1);
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("liana", Item_Liana);
registerItem("mushroom", Item_Mushroom);
registerItem("hook", Item_Hook);
registerItem("trap", Item_Trap, null, Anim_Trap);
registerEvent("three_ok");
registerEvent("liana_ok");
registerEvent("mushroom_ok");
registerEvent("hook_ok");
registerEvent("klaps_ok");
registerEvent("jf_ok");
registerEvent("trap_made");
addActivator("do1", do1, {onClick:function ():void{
takeHook();
}});
addActivator("do2", do2, {onClick:function ():void{
takeLiana();
}});
addActivator("do3", do3, {onClick:function ():void{
if (ifThis("trap_made")){
takeMushroom();
} else {
cantTake();
};
}});
addActivator("three", three, {onClick:function ():void{
if (ifNotThis("three_ok")){
shootInThree();
};
}});
addActivator("do5", do5, {onClick:function ():void{
if (ifThis("mushroom_ok")){
if (ifThis("three_ok")){
throwMushroomOk();
} else {
throwMushroomInWater();
};
} else {
jfRefused();
};
}});
addActivator("do4", do4, {onClick:function ():void{
if (ifThis("jf_ok")){
goWin();
} else {
jfRefused();
};
}});
addActivator("jf", jf, {onClick:function ():void{
if (ifThis("three_ok")){
if (ifThis("klaps_ok")){
fallRight();
} else {
fallKillJf();
};
} else {
fallJfInWater();
};
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
public function fallKillJf():void{
action = false;
liani.gotoAndPlay(163);
jf.turnOn("right");
jf.playAnim("L1_shot_under_him", function (){
jf.playAnim("L1_fall_Landing_anim", function (){
jf.y = 413;
jf.wait();
jf.playAnim("idle");
klap1.gotoAndPlay("attack");
klap2.gotoAndPlay("attack");
jf.playAnim("die", function (){
lose();
});
});
});
removeActivator("jf");
}
public function shootInThree():void{
action = false;
jf.turnOn("left");
three.gotoAndPlay(2);
jf.playAnim("L1_shot_down", function (){
jf.wait();
action = true;
causeEvent("three_ok");
});
removeActivator("three");
}
public function fallJfInWater():void{
action = false;
jf.turnOn("right");
liani.gotoAndPlay(163);
jf.playAnim("L1_shot_under_him", function (){
jf.playAnim("L1_fall_anim", function (){
lose();
});
});
removeActivator("jf");
}
public function takeLiana():void{
action = false;
jf.turnOn("right");
jf.takeItem("liana", liana, function (){
trace("callback");
jf.wait();
if (inventory.hasItem("hook")){
makeItem("trap", ["hook", "liana"], 2, function ():void{
action = true;
}, "trap_made");
} else {
action = true;
};
causeEvent("liana_ok");
});
removeActivator("do2");
}
public function fallRight():void{
action = false;
liani.gotoAndPlay(163);
jf.turnOn("right");
jf.playAnim("L1_shot_under_him", function (){
jf.playAnim("L1_fall_Landing_anim", function (){
jf.y = 413;
jf.wait();
jf.playAnim("idle");
action = true;
});
causeEvent("jf_ok");
});
removeActivator("jf");
}
public function cantTake():void{
jf.turnOn("right");
jf.playAnim("can't_take");
}
public function throwMushroomInWater():void{
action = false;
jf.turnOn("right");
deleteItem("mushroom");
jf.playAnim("L1_throw_grib_bad", function (){
jf.playAnim("upset", function (){
lose();
});
});
removeActivator("do5");
}
public function goWin():void{
action = false;
jf.walkTo(700);
motionTo(jf, 700, jf.y, 1, function (){
win();
});
removeActivator("do4");
}
public function throwMushroomOk():void{
action = false;
jf.turnOn("right");
mushroom2.gotoAndPlay(2);
deleteItem("mushroom");
jf.playAnim("L1_throw_grib", function (){
jf.wait();
action = true;
bugs.gotoAndPlay(54);
causeEvent("klaps_ok");
klap1.gotoAndPlay("fear");
klap2.gotoAndPlay("fear");
});
removeActivator("do5");
}
public function takeMushroom():void{
action = false;
jf.turnOn("right");
mushroom.gotoAndPlay(2);
liani.gotoAndPlay(2);
deleteItem("trap");
jf.playAnim("L1_use_rope+hook", function (){
jf.wait();
getItem("mushroom");
action = true;
causeEvent("mushroom_ok");
});
removeActivator("do3");
}
}
}//package
Section 204
//Episode_02 (Episode_02)
package {
import flash.events.*;
public dynamic class Episode_02 extends Episode {
public var monkeyCanEat:Boolean;
public function Episode_02(){
addFrameScript(0, frame1);
}
public function goWin():void{
action = false;
jf.walkTo(700);
motionTo(jf, 700, jf.y, 1, function (){
win();
});
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
public function shootBranchKillMonkey():void{
action = false;
jf.walkTo(220);
motionTo(jf, 220, jf.y, 1, function (){
jf.turnOn("right");
branch.gotoAndPlay(2);
monkey.gotoAndPlay(422);
jf.playAnim("L2_shot_up", function (){
jf.wait();
action = true;
monster.visible = false;
causeEvent("monster_ok");
});
});
removeActivator("branch");
}
public function shootInShuttleWrong():void{
action = false;
jf.walkTo(0xFF);
motionTo(jf, 0xFF, jf.y, 1, function (){
jf.turnOn("right");
shuttle.gotoAndPlay(33);
monster.gotoAndPlay(2);
jf.playAnim("L2_shot_up", function (){
jf.wait();
});
});
removeActivator("shuttle");
}
function frame1(){
mushroom4.gotoAndStop(1);
initialize = function ():void{
action = true;
monkey.gotoAndPlay(1);
monster.gotoAndStop(1);
mushroom4.gotoAndStop(1);
shuttle.gotoAndStop(1);
branch.gotoAndStop(1);
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("HD", Item_HD);
registerItem("mushroom", Item_Mushroom);
registerEvent("monster_ok");
registerEvent("shuttle_ok");
registerEvent("monkey_ok");
registerEvent("HD_ok");
registerEvent("mushroom_ok");
addActivator("do1", do1, {onClick:function ():void{
takeMushroom();
}});
addActivator("do3", do3, {onClick:function ():void{
if (ifThis("mushroom_ok")){
throwMushroom();
} else {
jfRefused();
};
}});
addActivator("branch", branch, {onClick:function ():void{
if (ifThis("monkey_ok")){
shootBranchKillMonkey();
} else {
shootBranchLose();
};
}});
addActivator("shuttle", shuttle, {onClick:function ():void{
if (ifNotThis("shuttle_ok")){
if (ifThis("monster_ok")){
shootInShuttleRight();
} else {
shootInShuttleWrong();
};
} else {
takeHD();
};
}});
addActivator("do2", do2, {onClick:function ():void{
if (ifThis("HD_ok")){
goWin();
} else {
jfRefused();
};
}});
monkeyCanEat = false;
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
public function shootInShuttleRight():void{
action = false;
jf.walkTo(0xFF);
motionTo(jf, 0xFF, jf.y, 1, function (){
jf.turnOn("right");
shuttle.gotoAndPlay(2);
jf.playAnim("L2_shot_up", function (){
jf.wait();
action = true;
causeEvent("shuttle_ok");
});
});
}
public function shootBranchLose():void{
action = false;
jf.walkTo(220);
motionTo(jf, 220, jf.y, 1, function (){
jf.turnOn("right");
branch.gotoAndPlay(2);
jf.playAnim("L2_shot_up", function (){
jf.playAnim("upset", function (){
lose();
});
});
});
removeActivator("do3");
}
public function cantTake():void{
jf.playAnim("can't_take");
}
public function throwMushroom():void{
action = false;
jf.walkTo(264.7);
motionTo(jf, 264.7, jf.y, 1, function (){
jf.turnOn("right");
mushroom4.gotoAndPlay(2);
deleteItem("mushroom");
jf.playAnim("L2_throw_grib", function (){
jf.wait();
bugs.gotoAndPlay(25);
causeEvent("monkey_ok");
monkeyCanEat = true;
});
});
removeActivator("do3");
}
public function takeHD():void{
action = false;
jf.walkTo(435);
motionTo(jf, 435, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("pickUp", function (){
getItem("HD");
jf.wait();
action = true;
causeEvent("HD_ok");
});
});
removeActivator("shuttle");
}
public function takeMushroom():void{
action = false;
jf.walkTo(143);
motionTo(jf, 143, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("mushroom", mushroom, function (){
jf.wait();
action = true;
causeEvent("mushroom_ok");
});
});
removeActivator("do1");
}
}
}//package
Section 205
//Episode_03 (Episode_03)
package {
import flash.events.*;
public dynamic class Episode_03 extends Episode {
public function Episode_03(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
public function takeSnivel2():void{
action = false;
jf.turnOn("right");
jf.playAnim("pickUp", function (){
jf.wait();
getItem("snivel2");
if (inventory.hasItem("snivel1")){
makeItem("trap31", ["snivel1", "snivel2"], 2, function ():void{
action = true;
}, "trap31_made");
} else {
action = true;
};
three2.gotoAndStop(2);
causeEvent("snivel2_ok");
});
}
public function takeSnivel1():void{
action = false;
jf.turnOn("left");
jf.playAnim("pickUp", function (){
jf.wait();
getItem("snivel1");
if (inventory.hasItem("snivel2")){
makeItem("trap31", ["snivel1", "snivel2"], 2, function ():void{
action = true;
}, "trap31_made");
} else {
action = true;
};
three1.gotoAndStop(103);
causeEvent("snivel1_ok");
});
removeActivator("do4");
}
public function jumpLose():void{
action = false;
jf.turnOn("right");
flower2.gotoAndPlay(44);
flower1.gotoAndPlay(149);
jf.playAnim("L3_fallDown", function (){
});
removeActivator("shuttle");
}
public function jumpRight():void{
action = false;
jf.turnOn("right");
deleteItem("trap31");
jf.playAnim("L3_jumpDown", function (){
jf.wait();
getItem("HD");
action = true;
causeEvent("shuttle_ok");
});
removeActivator("shuttle");
}
function frame1(){
initialize = function ():void{
action = true;
flower1.gotoAndPlay(1);
flower2.gotoAndPlay(1);
three1.gotoAndStop(1);
three2.gotoAndStop(1);
shuttle.gotoAndStop(1);
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("snivel1", Item_Snivel1);
registerItem("snivel2", Item_Snivel2);
registerItem("HD", Item_HD);
registerItem("branch", Item_Branch);
registerItem("liana", Item_Liana);
registerItem("trap3", Item_Trap3, null, Anim_Trap3);
registerItem("trap31", Item_Trap31, null, Anim_Trap31);
registerEvent("liana_ok");
registerEvent("branch_ok");
registerEvent("snivel1_ok");
registerEvent("snivel2_ok");
registerEvent("shuttle_ok");
registerEvent("onTop_ok");
registerEvent("bridge_ok");
registerEvent("trap3_made");
registerEvent("trap31_made");
addActivator("do1", do1, {onClick:function ():void{
takeLiana();
}});
addActivator("do2", do2, {onClick:function ():void{
takeBranch();
}});
addActivator("do3", do3, {onClick:function ():void{
if (ifThis("trap3_made")){
jumpOnTop();
} else {
jfRefused();
};
}});
addActivator("do4", do4, {onClick:function ():void{
if (ifThis("onTop_ok")){
takeSnivel1();
} else {
jfRefused();
};
}});
addActivator("three2", three2, {onClick:function ():void{
if (ifThis("onTop_ok")){
if (ifThis("snivel2_ok")){
placeBridge();
} else {
takeSnivel2();
};
} else {
jfRefused();
};
}});
addActivator("shuttle", shuttle, {onClick:function ():void{
if (ifThis("onTop_ok")){
if (ifThis("trap31_made")){
jumpRight();
} else {
jumpLose();
};
} else {
goDie1();
};
}});
addActivator("do5", do5, {onClick:function ():void{
if (ifThis("bridge_ok")){
if (ifThis("shuttle_ok")){
goWin();
} else {
jfRefused();
};
} else {
jfRefused();
};
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
public function goDie1():void{
action = false;
jf.walkTo(119);
motionTo(jf, 119, jf.y, 1, function (){
jf.turnOn("right");
flower1.gotoAndPlay(73);
jf.playAnim("dieAcid", function (){
lose();
});
});
removeActivator("shuttle");
}
public function takeLiana():void{
action = false;
jf.walkTo(60);
motionTo(jf, 60, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("liana", liana, function (){
jf.wait();
if (inventory.hasItem("branch")){
makeItem("trap3", ["branch", "liana"], 2, function ():void{
action = true;
}, "trap3_made");
} else {
action = true;
};
causeEvent("liana_ok");
});
});
removeActivator("do1");
}
public function placeBridge():void{
action = false;
jf.turnOn("right");
jf.playAnim("shot", function (){
jf.wait();
action = true;
three2.gotoAndPlay(3);
causeEvent("bridge_ok");
});
removeActivator("three2");
}
public function jumpOnTop():void{
action = false;
jf.walkTo(60);
motionTo(jf, 60, jf.y, 1, function (){
jf.turnOn("right");
three1.gotoAndPlay(3);
deleteItem("trap3");
jf.playAnim("L3_use_rope+stick", function (){
jf.playAnim("idle");
jf.wait();
jf.x = (jf.x + 255.6);
jf.y = (jf.y - 263.7);
action = true;
causeEvent("onTop_ok");
});
});
removeActivator("do3");
}
public function takeBranch():void{
action = false;
jf.walkTo(88);
motionTo(jf, 88, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("take", function (){
jf.wait();
getItem("branch");
if (inventory.hasItem("liana")){
makeItem("trap3", ["branch", "liana"], 2, function ():void{
action = true;
}, "trap3_made");
} else {
action = true;
};
three1.gotoAndStop(2);
causeEvent("branch_ok");
});
});
removeActivator("do2");
}
public function cantTake():void{
jf.playAnim("can't_take");
}
public function goWin():void{
action = false;
jf.playAnim("L3_walkAway", function (){
win();
});
}
}
}//package
Section 206
//Episode_04 (Episode_04)
package {
import flash.events.*;
public dynamic class Episode_04 extends Episode {
public function Episode_04(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
function frame1(){
initialize = function ():void{
action = true;
stone.gotoAndStop(1);
wood.gotoAndStop(1);
rock.gotoAndStop(1);
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerEvent("wood_ok");
registerEvent("stone_ok");
registerEvent("woodClear_ok");
registerEvent("stoneClear_ok");
registerEvent("flowers_ok");
registerEvent("onTop_ok");
addActivator("wood", wood, {onClick:function ():void{
if (ifThis("onTop_ok")){
destroyWood();
} else {
if (ifNotThis("wood_ok")){
placeWood();
} else {
jfRefused();
};
};
}});
addActivator("stone", stone, {onClick:function ():void{
placeStone();
}});
addActivator("do1", do1, {onClick:function ():void{
if (((ifNotThis("onTop_ok")) && (ifThis("flowers_ok")))){
goUp();
};
}});
addActivator("rock", rock, {onClick:function ():void{
placeStone();
}});
addActivator("flowers", flowers, {onClick:function ():void{
if (ifThis("flowers_ok")){
if (((ifThis("woodClear_ok")) && (ifThis("onTop_ok")))){
goWin();
} else {
jfRefused();
};
} else {
if (((ifThis("stone_ok")) && (ifThis("wood_ok")))){
goDownPlaceFlowers();
} else {
if (ifNotThis("wood_ok")){
fallDownLose();
} else {
jfRefused();
};
};
};
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
public function placeWood():void{
action = false;
jf.walkTo(52.3);
motionTo(jf, 52.3, jf.y, 1, function (){
jf.turnOn("right");
wood.gotoAndPlay(2);
jf.playAnim("L4_shot5", function (){
jf.wait();
action = true;
causeEvent("wood_ok");
});
});
}
public function destroyStone():void{
action = false;
jf.walkTo(114.3);
motionTo(jf, 114.3, jf.y, 1, function (){
jf.turnOn("right");
stone.gotoAndPlay(27);
jf.playAnim("L4_shot5", function (){
jf.wait();
action = true;
causeEvent("stoneClear_ok");
});
});
removeActivator("stone");
}
public function shootStoneLoseDown():void{
action = false;
jf.turnOn("right");
stone.gotoAndPlay(27);
jf.playAnim("L4_shot1", function (){
jf.playAnim("upset", function (){
lose();
});
});
removeActivator("stone");
}
public function shootWoodLoseDown():void{
action = false;
jf.turnOn("right");
wood.gotoAndPlay(27);
jf.playAnim("L4_shot3", function (){
jf.playAnim("upset", function (){
lose();
});
});
removeActivator("wood");
}
public function shootWoodLoseUp():void{
action = false;
jf.turnOn("right");
wood.gotoAndPlay(48);
jf.playAnim("L4_shot1", function (){
jf.playAnim("upset", function (){
lose();
});
});
removeActivator("wood");
}
public function fallDownLose():void{
action = false;
jf.walkTo(114.3);
motionTo(jf, 114.3, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("L4_jump_bad", function (){
lose();
});
});
removeActivator("flowers");
}
public function goDownPlaceFlowers():void{
action = false;
jf.walkTo(114.3);
motionTo(jf, 114.3, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("L4_go_down", function (){
jf.turnOn("right");
jf.playAnim("idle");
jf.wait();
jf.x = (jf.x + 163.4);
jf.y = (jf.y + 213.6);
jf.walkTo(626);
motionTo(jf, 626, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("move_big_object_start", function (){
jf.playAnim("move_big_object_still");
motionTo(jf, 326, jf.y, 1);
motionTo(flowers, 221.7, flowers.y, 1, function (){
jf.playAnim("move_big_object_finish", function (){
action = true;
causeEvent("flowers_ok");
});
});
});
});
});
});
}
public function cantTake():void{
jf.playAnim("can't_take");
}
public function goUp():void{
action = false;
jf.walkTo((114.3 + 163.4));
motionTo(jf, (114.3 + 163.4), jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("L4_go_up", function (){
jf.turnOn("right");
jf.playAnim("idle");
jf.wait();
jf.x = 114.3;
jf.y = 156.7;
action = true;
causeEvent("onTop_ok");
});
});
removeActivator("do1");
}
public function shootStoneLoseUp():void{
action = false;
jf.turnOn("right");
stone.gotoAndPlay(87);
jf.playAnim("L4_shot5", function (){
jf.playAnim("upset", function (){
lose();
});
});
removeActivator("stone");
}
public function destroyWood():void{
action = false;
jf.walkTo(114.3);
motionTo(jf, 114.3, jf.y, 1, function (){
jf.turnOn("right");
wood.gotoAndPlay(27);
jf.playAnim("L4_shot5", function (){
jf.wait();
action = true;
causeEvent("woodClear_ok");
});
});
removeActivator("wood");
}
public function goWin():void{
action = false;
jf.walkTo(114.3);
motionTo(jf, 114.3, jf.y, 1, function (){
jf.turnOn("right");
flowers.gotoAndPlay(25);
jf.playAnim("L4_jump_good", function (){
win();
});
});
removeActivator("flowers");
}
public function placeStone():void{
action = false;
jf.walkTo(114.3);
motionTo(jf, 114.3, jf.y, 1, function (){
jf.turnOn("right");
stone.gotoAndPlay(2);
rock.gotoAndPlay(2);
jf.playAnim("L4_shot5", function (){
jf.wait();
action = true;
causeEvent("stone_ok");
});
});
removeActivator("stone");
removeActivator("rock");
}
}
}//package
Section 207
//Episode_05 (Episode_05)
package {
import flash.events.*;
public dynamic class Episode_05 extends Episode {
public function Episode_05(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
public function goLose():void{
action = false;
jf.walkTo(300);
motionTo(jf, 300, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("panzer");
deleteItem("list");
jf.playAnim("L5_die", function (){
jf.wait();
lose();
});
});
removeActivator("do3");
}
public function takePanzer():void{
action = false;
jf.walkTo(113);
motionTo(jf, 113, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("panzer", panzer, function (){
jf.wait();
if (((((((inventory.hasItem("leaf1")) && (inventory.hasItem("leaf2")))) && (inventory.hasItem("leaf3")))) && (inventory.hasItem("panzer")))){
makeItem("trap5", ["leaf1", "leaf2", "leaf3", "panzer"], 2, function ():void{
action = true;
}, "trap_made5");
} else {
action = true;
};
causeEvent("panzer_ok");
});
});
removeActivator("panzer");
}
function frame1(){
initialize = function ():void{
action = true;
leaf1d.visible = false;
leaf2d.visible = false;
leaf1.gotoAndStop(1);
leaf2.gotoAndStop(1);
branch1.gotoAndStop(1);
branch2.gotoAndStop(1);
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("leaf1", Item_Leaf1);
registerItem("leaf2", Item_Leaf2);
registerItem("leaf3", Item_Leaf3);
registerItem("list", Item_List);
registerItem("panzer", Item_Panzer);
registerItem("trap5", Item_Trap5, null, Anim_Trap5);
registerEvent("leaf1_place_ok");
registerEvent("leaf1_take_ok");
registerEvent("leaf2_place_ok");
registerEvent("leaf2_take_ok");
registerEvent("leaf3_ok");
registerEvent("list_ok");
registerEvent("panzer_ok");
registerEvent("trap_made5");
addActivator("do1", do1, {onClick:function ():void{
shootFirstLeaf();
}});
addActivator("do2", do2, {onClick:function ():void{
shootSecondLeaf();
}});
addActivator("leaf1", leaf1, {onClick:function ():void{
shootFirstLeaf();
}});
addActivator("leaf2", leaf2, {onClick:function ():void{
shootSecondLeaf();
}});
addActivator("leaf1d", leaf1d, {onClick:function ():void{
takeFirstLeaf();
}});
addActivator("leaf2d", leaf2d, {onClick:function ():void{
takeSecondLeaf();
}});
addActivator("list", list, {onClick:function ():void{
takeList();
}});
addActivator("leaf3", leaf3, {onClick:function ():void{
takeThirdLeaf();
}});
addActivator("panzer", panzer, {onClick:function ():void{
takePanzer();
}});
addActivator("do3", do3, {onClick:function ():void{
if (((ifThis("trap_made5")) && (ifThis("list_ok")))){
goWin();
} else {
if (((ifThis("list_ok")) && (ifThis("panzer_ok")))){
goLose();
} else {
jfRefused();
};
};
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
public function takeThirdLeaf():void{
action = false;
jf.walkTo(300);
motionTo(jf, 300, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("leaf3", leaf3, function (){
jf.wait();
if (((((((inventory.hasItem("leaf1")) && (inventory.hasItem("leaf2")))) && (inventory.hasItem("leaf3")))) && (inventory.hasItem("panzer")))){
makeItem("trap5", ["leaf1", "leaf2", "leaf3", "panzer"], 2, function ():void{
action = true;
}, "trap_made5");
} else {
action = true;
};
});
});
removeActivator("leaf3");
}
public function shootFirstLeaf():void{
action = false;
jf.walkTo(240);
motionTo(jf, 240, jf.y, 1, function (){
jf.turnOn("left");
leaf1.gotoAndPlay(2);
branch1.gotoAndPlay(2);
jf.playAnim("L5_shot_up", function (){
jf.wait();
action = true;
});
});
removeActivator("do1");
removeActivator("leaf1");
}
public function shootWrong2():void{
action = false;
jf.walkTo(270);
motionTo(jf, 270, jf.y, 1, function (){
jf.turnOn("left");
leaf2.gotoAndPlay(56);
jf.playAnim("L5_shot_up", function (){
jf.playAnim("upset", function (){
lose();
});
});
});
removeActivator("do2");
removeActivator("leaf2");
}
public function shootWrong1():void{
action = false;
jf.walkTo(240);
motionTo(jf, 240, jf.y, 1, function (){
jf.turnOn("left");
leaf1.gotoAndPlay(56);
jf.playAnim("L5_shot_up", function (){
jf.playAnim("upset", function (){
lose();
});
});
});
removeActivator("do1");
removeActivator("leaf1");
}
public function takeFirstLeaf():void{
action = false;
jf.walkTo(264);
motionTo(jf, 264, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("leaf1", leaf1d, function (){
jf.wait();
if (((((((inventory.hasItem("leaf1")) && (inventory.hasItem("leaf2")))) && (inventory.hasItem("leaf3")))) && (inventory.hasItem("panzer")))){
makeItem("trap5", ["leaf1", "leaf2", "leaf3", "panzer"], 2, function ():void{
action = true;
}, "trap_made5");
} else {
action = true;
};
});
});
removeActivator("leaf1d");
}
public function cantTake():void{
jf.playAnim("can't_take");
}
public function shootSecondLeaf():void{
action = false;
jf.walkTo(270);
motionTo(jf, 270, jf.y, 1, function (){
jf.turnOn("left");
leaf2.gotoAndPlay(2);
branch2.gotoAndPlay(2);
jf.playAnim("L5_shot_up", function (){
jf.wait();
action = true;
});
});
removeActivator("do2");
removeActivator("leaf2");
}
public function takeList():void{
action = false;
jf.walkTo(113);
motionTo(jf, 113, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("list", list, function (){
jf.wait();
action = true;
causeEvent("list_ok");
});
});
removeActivator("list");
}
public function takeSecondLeaf():void{
action = false;
jf.walkTo(264);
motionTo(jf, 264, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("leaf2", leaf2d, function (){
jf.wait();
if (((((((inventory.hasItem("leaf1")) && (inventory.hasItem("leaf2")))) && (inventory.hasItem("leaf3")))) && (inventory.hasItem("panzer")))){
makeItem("trap5", ["leaf1", "leaf2", "leaf3", "panzer"], 2, function ():void{
action = true;
}, "trap_made5");
} else {
action = true;
};
});
});
removeActivator("leaf2d");
}
public function goWin():void{
action = false;
jf.walkTo(300);
motionTo(jf, 300, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("trap5");
deleteItem("list");
jf.playAnim("L5_vin", function (){
jf.wait();
win();
});
});
removeActivator("do3");
}
}
}//package
Section 208
//Episode_06 (Episode_06)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Episode_06 extends Episode {
public var canTake:Boolean;
public var whatsWeHave:int;
public var nowPlace:int;
public function Episode_06(){
addFrameScript(0, frame1);
}
public function goWin():void{
action = false;
jf.walkTo(700);
motionTo(jf, 700, jf.y, 1, function (){
win();
});
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
public function takePart3():void{
action = false;
jf.walkTo(425);
motionTo(jf, 425, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("part3", part3, function (){
jf.wait();
action = true;
canTake = false;
whatsWeHave = 3;
});
});
removeActivator("part3");
}
public function takePart2():void{
action = false;
jf.walkTo(482);
motionTo(jf, 482, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("part2", part2, function (){
jf.wait();
action = true;
canTake = false;
whatsWeHave = 2;
});
});
removeActivator("part2");
}
public function takePart1():void{
action = false;
jf.walkTo(308);
motionTo(jf, 308, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("part1", part1, function (){
jf.wait();
action = true;
canTake = false;
whatsWeHave = 1;
});
});
removeActivator("part1");
}
public function takePart5():void{
action = false;
jf.walkTo(77);
motionTo(jf, 77, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("part5", part5, function (){
jf.wait();
action = true;
canTake = false;
whatsWeHave = 5;
});
});
removeActivator("part5");
}
public function shootAndDie():void{
action = false;
jf.walkTo(295.4);
motionTo(jf, 295.4, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("shot", function (){
mount.muraveynik.termit.gotoAndStop(2);
mount.gotoAndPlay(2);
shuttle.gotoAndPlay(2);
jf.playAnim("dieTermits", function (){
lose();
});
});
});
removeActivator("mount");
}
function frame1(){
canTake = true;
nowPlace = 1;
whatsWeHave = 0;
initialize = function ():void{
action = true;
mount.muraveynik.termit.gotoAndStop(1);
mount.gotoAndStop(1);
shuttle.gotoAndStop(1);
epicScene.gotoAndStop(1);
epicScene.part1.gotoAndStop(1);
epicScene.part2.gotoAndStop(1);
epicScene.part3.gotoAndStop(1);
epicScene.part4.gotoAndStop(1);
epicScene.part5.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("part5", Item_Part5);
registerItem("HD", Item_HD);
registerEvent("murahi_ok");
registerEvent("shuttle_ok");
registerEvent("HD_ok");
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("part5", part5, {onClick:function ():void{
if (canTake){
takePart5();
} else {
jfRefused();
};
}});
addActivator("do1", do1, {onClick:function ():void{
if (!canTake){
placePart();
} else {
jfRefused();
};
}});
addActivator("mount", mount, {onClick:function ():void{
if (ifThis("murahi_ok")){
justShoot();
} else {
shootAndDie();
};
}});
addActivator("do2", do2, {onClick:function ():void{
if (ifThis("HD_ok")){
goWin();
} else {
jfRefused();
};
}});
addActivator("shuttle", shuttle, {onClick:function ():void{
if (ifThis("shuttle_ok")){
takeHD();
} else {
jfRefused();
};
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
public function takePart4():void{
action = false;
jf.walkTo(77);
motionTo(jf, 77, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("part4", part4, function (){
jf.wait();
action = true;
canTake = false;
whatsWeHave = 4;
});
});
removeActivator("part4");
}
public function justShoot():void{
action = false;
jf.walkTo(295.4);
motionTo(jf, 295.4, jf.y, 1, function (){
jf.turnOn("right");
mount.gotoAndPlay(2);
shuttle.gotoAndPlay(2);
jf.playAnim("shot", function (){
jf.wait();
action = true;
causeEvent("shuttle_ok");
});
});
removeActivator("mount");
}
public function cantTake():void{
jf.playAnim("can't_take");
}
public function placePart():void{
action = false;
jf.walkTo(196);
motionTo(jf, 196, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("get_take", 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));
if (epicScene.part1.currentFrame != 2){
crashAndLose();
};
} else {
if (nowPlace == 2){
epicScene.part2.gotoAndStop((whatsWeHave + 1));
if (epicScene.part2.currentFrame != 3){
crashAndLose();
};
} else {
if (nowPlace == 3){
epicScene.part3.gotoAndStop((whatsWeHave + 1));
if (epicScene.part3.currentFrame != 4){
crashAndLose();
};
} else {
if (nowPlace == 4){
epicScene.part4.gotoAndStop((whatsWeHave + 1));
if (epicScene.part4.currentFrame != 5){
crashAndLose();
};
} else {
if (nowPlace == 5){
epicScene.part5.gotoAndStop((whatsWeHave + 1));
if (epicScene.part5.currentFrame != 6){
crashAndLose();
} else {
mount.muraveynik.termit.gotoAndStop(2);
causeEvent("murahi_ok");
removeActivator("do1");
};
};
};
};
};
};
nowPlace++;
});
});
}
public function takeHD():void{
action = false;
jf.walkTo(397);
motionTo(jf, 397, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("pickUp", function (){
getItem("HD");
jf.wait();
action = true;
causeEvent("HD_ok");
});
});
removeActivator("shuttle");
}
public function crashAndLose():void{
action = false;
epicScene.gotoAndPlay(2);
}
}
}//package
Section 209
//Episode_07 (Episode_07)
package {
import flash.events.*;
public dynamic class Episode_07 extends Episode {
public var canDie:Boolean;
public var canMake:Boolean;
public function Episode_07(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
public function goLose():void{
action = false;
jf.walkTo(423);
motionTo(jf, 423, jf.y, 1, function (){
jf.turnOn("right");
deleteItem("trap7");
jf.playAnim("L7_parashut_fall", function (){
lose();
});
});
removeActivator("do3");
}
function frame1(){
initialize = function ():void{
action = true;
leaf1d.visible = false;
leaf2d.visible = false;
leaf1.gotoAndStop(1);
leaf2.gotoAndStop(1);
leaf1d.gotoAndStop(1);
leaf2d.gotoAndStop(1);
leaf3.gotoAndStop(1);
branch1.gotoAndStop(1);
branch2.gotoAndStop(1);
spider.gotoAndPlay(1);
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("leaf1", Item_Leaf1);
registerItem("leaf2", Item_Leaf2);
registerItem("leaf3", Item_Leaf3);
registerItem("para", Item_Parashut);
registerItem("trap7", Item_Trap7, null, Anim_Trap7);
registerEvent("leaf1_ok");
registerEvent("leaf2_ok");
registerEvent("leaf3_ok");
registerEvent("spider_ok");
registerEvent("trap_made7");
addActivator("do1", do1, {onClick:function ():void{
shootFirstLeaf();
}});
addActivator("do2", do2, {onClick:function ():void{
shootSecondLeaf();
}});
addActivator("leaf1", leaf1, {onClick:function ():void{
shootFirstLeaf();
}});
addActivator("leaf2", leaf2, {onClick:function ():void{
shootSecondLeaf();
}});
addActivator("leaf1d", leaf1d, {onClick:function ():void{
takeFirstLeaf();
}});
addActivator("leaf2d", leaf2d, {onClick:function ():void{
takeSecondLeaf();
}});
addActivator("leaf3", leaf3, {onClick:function ():void{
takeThirdLeaf();
}});
addActivator("do4", do4, {onClick:function ():void{
if (ifThis("trap_made7")){
makeParashute();
} else {
jfDie();
};
}});
addActivator("do3", do3, {onClick:function ():void{
if (ifThis("trap_made7")){
if (ifThis("spider_ok")){
goWin();
} else {
goLose();
};
} else {
jfRefused();
};
}});
canMake = false;
canDie = false;
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
public function takeThirdLeaf():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("leaf3", leaf3, function (){
jf.wait();
if (((inventory.hasItem("leaf1")) && (inventory.hasItem("leaf2")))){
makeItem("trap7", ["leaf1", "leaf2", "leaf3"], 2, function ():void{
action = true;
}, "trap_made7");
} else {
action = true;
};
});
});
removeActivator("leaf3");
}
public function shootFirstLeaf():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("left");
leaf1.gotoAndPlay(2);
branch1.gotoAndPlay(2);
jf.playAnim("L7_shot_up", function (){
jf.wait();
action = true;
});
});
removeActivator("do1");
removeActivator("leaf1");
}
public function makeParashute():void{
action = false;
jf.walkTo(65);
motionTo(jf, 65, jf.y, 1, function (){
jf.wait();
jf.turnOn("right");
jf.playAnim("get_take");
canMake = true;
});
removeActivator("do4");
}
public function shootWrong2():void{
action = false;
jf.walkTo(300);
motionTo(jf, 300, jf.y, 1, function (){
jf.turnOn("left");
leaf2.gotoAndPlay(56);
jf.playAnim("L7_shot_up", function (){
jf.playAnim("upset", function (){
lose();
});
});
});
removeActivator("do2");
removeActivator("leaf2");
}
public function jfDie2():void{
jf.playAnim("L7_die", function (){
lose();
});
}
public function shootWrong1():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("left");
leaf1.gotoAndPlay(56);
jf.playAnim("L7_shot_up", function (){
jf.playAnim("upset", function (){
lose();
});
});
});
removeActivator("do1");
removeActivator("leaf1");
}
public function takeFirstLeaf():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("leaf1", leaf1d, function (){
jf.wait();
if (((inventory.hasItem("leaf2")) && (inventory.hasItem("leaf3")))){
makeItem("trap7", ["leaf1", "leaf2", "leaf3"], 2, function ():void{
action = true;
}, "trap_made7");
} else {
action = true;
};
});
});
removeActivator("leaf1d");
}
public function cantTake():void{
jf.playAnim("can't_take");
}
public function makeParashute2():void{
jf.playAnim("L7_parashut+spaider", function (){
deleteItem("trap7");
getItem("para", null, null, null, false);
action = true;
causeEvent("spider_ok");
});
}
public function shootSecondLeaf():void{
action = false;
jf.walkTo(300);
motionTo(jf, 300, jf.y, 1, function (){
jf.turnOn("left");
leaf2.gotoAndPlay(2);
branch2.gotoAndPlay(2);
jf.playAnim("L7_shot_up", function (){
jf.wait();
action = true;
});
});
removeActivator("do2");
removeActivator("leaf2");
}
public function jfDie():void{
action = false;
jf.walkTo(65);
motionTo(jf, 65, jf.y, 1, function (){
jf.wait();
jf.turnOn("right");
jf.playAnim("get_take");
canDie = true;
});
removeActivator("do4");
}
public function takeSecondLeaf():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("leaf2", leaf2d, function (){
jf.wait();
if (((inventory.hasItem("leaf1")) && (inventory.hasItem("leaf3")))){
makeItem("trap7", ["leaf1", "leaf2", "leaf3"], 2, function ():void{
action = true;
}, "trap_made7");
} else {
action = true;
};
});
});
removeActivator("leaf2d");
}
public function goWin():void{
action = false;
jf.walkTo(423);
motionTo(jf, 423, jf.y, 1, function (){
trace("1");
jf.turnOn("right");
deleteItem("para");
jf.playAnim("L7_parashut_vin", function (){
trace("1");
win();
});
});
removeActivator("do3");
}
}
}//package
Section 210
//Episode_08 (Episode_08)
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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Episode_08 extends Episode {
public function Episode_08(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused", function (){
jf.playAnim("idle");
});
}
public function placeHD():void{
action = false;
jf.walkTo(218);
motionTo(jf, 218, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("get_take", function (){
jf.wait();
hd1.visible = true;
deleteItem("HD");
action = true;
causeEvent("hd_ok");
});
});
removeActivator("do1");
}
public function placeHD3():void{
action = false;
jf.walkTo(218);
motionTo(jf, 218, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("get_take", function (){
jf.wait();
hd3.visible = true;
deleteItem("HD3");
action = true;
causeEvent("hd3_ok");
});
});
removeActivator("do3");
}
public function placeHD2():void{
action = false;
jf.walkTo(218);
motionTo(jf, 218, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("get_take", function (){
jf.wait();
hd2.visible = true;
deleteItem("HD2");
action = true;
causeEvent("hd2_ok");
});
});
removeActivator("do2");
}
function frame1(){
initialize = function ():void{
action = true;
puzzle.visible = false;
hd1.visible = false;
hd2.visible = false;
hd3.visible = false;
signal.gotoAndStop(1);
getItem("HD", null, null, null, false);
getItem("HD2", null, null, null, false);
getItem("HD3", null, null, null, false);
puzzle.l1.gotoAndStop(rndm());
puzzle.l2.gotoAndStop(rndm());
puzzle.l3.gotoAndStop(rndm());
puzzle.l4.gotoAndStop(rndm());
puzzle.l5.gotoAndStop(rndm());
puzzle.l6.gotoAndStop(rndm());
puzzle.l7.gotoAndStop(rndm());
puzzle.l8.gotoAndStop(rndm());
puzzle.l9.gotoAndStop(rndm());
puzzle.l10.gotoAndStop(rndm());
puzzle.l11.gotoAndStop(rndm());
puzzle.l12.gotoAndStop(rndm());
puzzle.l13.gotoAndStop(rndm());
puzzle.l14.gotoAndStop(rndm());
puzzle.l15.gotoAndStop(rndm());
puzzle.l16.gotoAndStop(rndm());
dol1.visible = false;
dol2.visible = false;
dol3.visible = false;
dol4.visible = false;
dol5.visible = false;
dol6.visible = false;
dol7.visible = false;
dol8.visible = false;
dol9.visible = false;
dol10.visible = false;
dol11.visible = false;
dol12.visible = false;
dol13.visible = false;
dol14.visible = false;
dol15.visible = false;
dol16.visible = false;
};
finalize = function ():void{
};
cleanOut = function ():void{
};
registerItem("HD", Item_HD);
registerItem("HD2", Item_HD2);
registerItem("HD3", Item_HD3);
registerEvent("hd_ok");
registerEvent("hd2_ok");
registerEvent("hd3_ok");
addActivator("do1", do1, {onClick:function ():void{
placeHD();
}});
addActivator("do2", do2, {onClick:function ():void{
placeHD2();
}});
addActivator("do3", do3, {onClick:function ():void{
placeHD3();
}});
addActivator("do4", do4, {onClick:function ():void{
if (((((ifThis("hd_ok")) && (ifThis("hd2_ok")))) && (ifThis("hd3_ok")))){
goPuzzle();
} else {
jfRefused();
};
}});
addActivator("dol1", dol1, {onClick:function ():void{
if (puzzle.l1.currentFrame == puzzle.l1.totalFrames){
puzzle.l1.gotoAndStop(1);
} else {
puzzle.l1.nextFrame();
};
test();
}});
addActivator("dol2", dol2, {onClick:function ():void{
if (puzzle.l2.currentFrame == puzzle.l2.totalFrames){
puzzle.l2.gotoAndStop(1);
} else {
puzzle.l2.nextFrame();
};
test();
}});
addActivator("dol3", dol3, {onClick:function ():void{
if (puzzle.l3.currentFrame == puzzle.l3.totalFrames){
puzzle.l3.gotoAndStop(1);
} else {
puzzle.l3.nextFrame();
};
test();
}});
addActivator("dol4", dol4, {onClick:function ():void{
if (puzzle.l4.currentFrame == puzzle.l4.totalFrames){
puzzle.l4.gotoAndStop(1);
} else {
puzzle.l4.nextFrame();
};
test();
}});
addActivator("dol5", dol5, {onClick:function ():void{
if (puzzle.l5.currentFrame == puzzle.l5.totalFrames){
puzzle.l5.gotoAndStop(1);
} else {
puzzle.l5.nextFrame();
};
test();
}});
addActivator("dol6", dol6, {onClick:function ():void{
if (puzzle.l6.currentFrame == puzzle.l6.totalFrames){
puzzle.l6.gotoAndStop(1);
} else {
puzzle.l6.nextFrame();
};
test();
}});
addActivator("dol7", dol7, {onClick:function ():void{
if (puzzle.l7.currentFrame == puzzle.l7.totalFrames){
puzzle.l7.gotoAndStop(1);
} else {
puzzle.l7.nextFrame();
};
test();
}});
addActivator("dol8", dol8, {onClick:function ():void{
if (puzzle.l8.currentFrame == puzzle.l8.totalFrames){
puzzle.l8.gotoAndStop(1);
} else {
puzzle.l8.nextFrame();
};
test();
}});
addActivator("dol9", dol9, {onClick:function ():void{
if (puzzle.l9.currentFrame == puzzle.l9.totalFrames){
puzzle.l9.gotoAndStop(1);
} else {
puzzle.l9.nextFrame();
};
test();
}});
addActivator("dol10", dol10, {onClick:function ():void{
if (puzzle.l10.currentFrame == puzzle.l10.totalFrames){
puzzle.l10.gotoAndStop(1);
} else {
puzzle.l10.nextFrame();
};
test();
}});
addActivator("dol12", dol12, {onClick:function ():void{
if (puzzle.l12.currentFrame == puzzle.l12.totalFrames){
puzzle.l12.gotoAndStop(1);
} else {
puzzle.l12.nextFrame();
};
test();
}});
addActivator("dol13", dol13, {onClick:function ():void{
if (puzzle.l13.currentFrame == puzzle.l13.totalFrames){
puzzle.l13.gotoAndStop(1);
} else {
puzzle.l13.nextFrame();
};
test();
}});
addActivator("dol14", dol14, {onClick:function ():void{
if (puzzle.l14.currentFrame == puzzle.l14.totalFrames){
puzzle.l14.gotoAndStop(1);
} else {
puzzle.l14.nextFrame();
};
test();
}});
addActivator("dol15", dol15, {onClick:function ():void{
if (puzzle.l15.currentFrame == puzzle.l15.totalFrames){
puzzle.l15.gotoAndStop(1);
} else {
puzzle.l15.nextFrame();
};
test();
}});
addActivator("dol16", dol16, {onClick:function ():void{
if (puzzle.l16.currentFrame == puzzle.l16.totalFrames){
puzzle.l16.gotoAndStop(1);
} else {
puzzle.l16.nextFrame();
};
test();
}});
addActivator("dol11", dol11, {onClick:function ():void{
if (puzzle.l11.currentFrame == puzzle.l11.totalFrames){
puzzle.l11.gotoAndStop(1);
} else {
puzzle.l11.nextFrame();
};
test();
}});
Tracer.report("[$]", "EPISODE_READY");
dispatchEvent(new Event("episodeReady"));
}
public function test():void{
if ((((((((((((((((((((((((((((((((puzzle.l1.currentFrame == 1)) && ((puzzle.l2.currentFrame == 1)))) && ((puzzle.l3.currentFrame == 1)))) && ((puzzle.l4.currentFrame == 1)))) && ((puzzle.l5.currentFrame == 1)))) && ((puzzle.l6.currentFrame == 1)))) && ((puzzle.l7.currentFrame == 1)))) && ((puzzle.l8.currentFrame == 1)))) && ((puzzle.l9.currentFrame == 1)))) && ((puzzle.l10.currentFrame == 1)))) && ((puzzle.l11.currentFrame == 1)))) && ((puzzle.l12.currentFrame == 1)))) && ((puzzle.l13.currentFrame == 1)))) && ((puzzle.l14.currentFrame == 1)))) && ((puzzle.l15.currentFrame == 1)))) && ((puzzle.l16.currentFrame == 1)))){
puzzle.visible = false;
signal.gotoAndPlay(2);
};
}
public function goPuzzle():void{
action = false;
jf.walkTo(317);
motionTo(jf, 317, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("get_take", function (){
jf.wait();
puzzle.visible = true;
dol1.visible = true;
dol2.visible = true;
dol3.visible = true;
dol4.visible = true;
dol5.visible = true;
dol6.visible = true;
dol7.visible = true;
dol8.visible = true;
dol9.visible = true;
dol10.visible = true;
dol11.visible = true;
dol12.visible = true;
dol13.visible = true;
dol14.visible = true;
dol15.visible = true;
dol16.visible = true;
action = true;
});
});
removeActivator("do4");
}
public function cantTake():void{
jf.playAnim("can't_take");
}
public function rndm():int{
var _local1:int;
if (Math.random() < 0.33){
_local1 = 2;
} else {
if (Math.random() < 0.64){
_local1 = 3;
} else {
_local1 = 4;
};
};
return (_local1);
}
}
}//package
Section 211
//EpisodesManager (EpisodesManager)
package {
import flash.display.*;
public class EpisodesManager extends Sprite {
private var _sequence:Array;
private var _episodeName:String;
private var _episodeIndex:int;
private var _registry:Object;
private var _episode:Episode;
private static var _instance:EpisodesManager;
public function EpisodesManager(){
_instance = this;
_registry = new Object();
_sequence = new Array();
}
public function getCurrentEpisodeName():String{
return (_episodeName);
}
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 isNextEpisode():Boolean{
return ((((_episodeIndex < (_sequence.length - 1))) && (_sequence[(_episodeIndex + 1)])));
}
public function replayEpisode():void{
reloadEpisode();
startEpisode();
}
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 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 disableEpisode():void{
if (_episode){
_episode.disable();
} else {
throw (new Error("[EpisodesManager] : <disableEpisode> : There is no episode to disable."));
};
}
public function loseEpisode():void{
if (_episode){
_episode.lose();
} else {
throw (new Error("[EpisodesManager] : <loseEpisode> : There is no episode to lose."));
};
}
public function playEpisode(_arg1:String):void{
loadEpisode(_arg1);
startEpisode();
}
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 getEpisodeByIndex(_arg1:uint):Episode{
return (_sequence[_arg1]);
}
public function getCurrentEpisode():Episode{
return (_episode);
}
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 startEpisode():void{
if (_episode){
_episode.start();
} else {
throw (new Error("[EpisodesManager] : <startEpisode> : There is no episode to start."));
};
}
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 winEpisode():void{
if (_episode){
_episode.win();
} else {
throw (new Error("[EpisodesManager] : <winEpisode> : There is no episode to win."));
};
}
public function getCurrentEpisodeIndex():int{
return (_episodeIndex);
}
public function isPrevEpisode():Boolean{
return ((((_episodeIndex > 0)) && (_sequence[(_episodeIndex - 1)])));
}
public function getEpisodeByName(_arg1:String):Episode{
return (_registry[_arg1]);
}
public function finishEpisode():void{
if (_episode){
_episode.finish();
} else {
throw (new Error("[EpisodesManager] : <finishEpisode> : There is no episode to finish."));
};
}
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 enableEpisode():void{
if (_episode){
_episode.enable();
} else {
throw (new Error("[EpisodesManager] : <enableEpisode> : There is no episode to enable."));
};
}
public static function get instance():EpisodesManager{
return (_instance);
}
}
}//package
Section 212
//FailWindow (FailWindow)
package {
import windows.*;
public dynamic class FailWindow extends Window {
}
}//package
Section 213
//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 214
//Game (Game)
package {
import flash.display.*;
import windows.*;
public class Game extends MovieClip {
public var animationLayer:MovieClip;
public var totalTime:Number;// = 0
public var invView:InventoryView;
public var windowsManager:WindowsManager;
public var episodesManager:EpisodesManager;
public var muteButton:MovieClip;
public var totalScore:Number;// = 0
public var helpButton:MovieClip;
public static const screen_w:Number = 640;
public static const screen_h:Number = 480;
public static var sitelock:Boolean = false;
public static var link5:String;
private static var _instance:Game;
public static var gamemode:String = "normal";
public static var link1:String;
public static var link2:String;
public static var link3:String;
public static var link4:String;
public static var helplink:String;
public function Game(){
totalScore = 0;
totalTime = 0;
super();
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 unloadEpisode():void{
episodesManager.unloadEpisode();
}
public function isNextEpisode():Boolean{
return (episodesManager.isNextEpisode());
}
public function getCurrentEpisodeName():String{
return (episodesManager.getCurrentEpisodeName());
}
public function hideActiveWindow():void{
if (windowsManager.activeWindow){
windowsManager.closeActiveWindow();
};
}
public function replayEpisode():void{
episodesManager.replayEpisode();
}
public function reloadEpisode():void{
episodesManager.reloadEpisode();
}
public function showHelloWindow():void{
windowsManager.openHelloWindow();
}
public function disableEpisode():void{
episodesManager.disableEpisode();
}
public function unregisterEpisode(_arg1:String):void{
episodesManager.unregisterEpisode(_arg1);
}
public function loadEpisode(_arg1:String):void{
episodesManager.loadEpisode(_arg1);
}
public function getCurrentEpisode():Episode{
return (episodesManager.getCurrentEpisode());
}
public function loseEpisode():void{
episodesManager.loseEpisode();
}
public function playEpisode(_arg1:String):void{
episodesManager.playEpisode(_arg1);
}
public function getEpisodeByIndex(_arg1:uint):Episode{
return (episodesManager.getEpisodeByIndex(_arg1));
}
public function prevEpisode():void{
episodesManager.prevEpisode();
}
public function startEpisode():void{
episodesManager.startEpisode();
}
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 function winEpisode():void{
episodesManager.winEpisode();
}
public function nextEpisode():void{
episodesManager.nextEpisode();
}
public function showFailWindow():void{
windowsManager.openFailWindow();
}
public function getCurrentEpisodeIndex():int{
return (episodesManager.getCurrentEpisodeIndex());
}
public function showNextWindow():void{
windowsManager.openNextWindow();
}
public function isPrevEpisode():Boolean{
return (episodesManager.isPrevEpisode());
}
public function getEpisodeByName(_arg1:String):Episode{
return (episodesManager.getEpisodeByName(_arg1));
}
public function showFinalWindow():void{
windowsManager.openFinalWindow();
}
public function finishEpisode():void{
episodesManager.finishEpisode();
}
public function enableEpisode():void{
episodesManager.enableEpisode();
}
public static function get instance():Game{
return (_instance);
}
}
}//package
Section 215
//GameMusic (GameMusic)
package {
import flash.media.*;
public dynamic class GameMusic extends Sound {
}
}//package
Section 216
//HelloWindow (HelloWindow)
package {
import windows.*;
public dynamic class HelloWindow extends Window {
}
}//package
Section 217
//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, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 30, frame31, 31, frame32, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 50, frame51, 51, frame52, 52, frame53, 54, frame55, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 72, frame73, 73, frame74, 74, frame75);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame18(){
stop();
}
function frame12(){
stop();
}
function frame17(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame21(){
stop();
}
function frame19(){
stop();
}
function frame4(){
stop();
}
function frame24(){
stop();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame29(){
stop();
}
function frame23(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame11(){
stop();
}
function frame27(){
stop();
}
function frame32(){
stop();
}
function frame35(){
stop();
}
function frame36(){
stop();
}
function frame37(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame38(){
stop();
}
function frame31(){
stop();
}
function frame34(){
stop();
}
function frame39(){
stop();
}
function frame43(){
stop();
}
function frame44(){
stop();
}
function frame45(){
stop();
}
function frame46(){
stop();
}
function frame47(){
stop();
}
function frame41(){
stop();
}
function frame48(){
stop();
}
function frame49(){
stop();
}
function frame42(){
stop();
}
function frame51(){
stop();
}
function frame52(){
stop();
}
function frame53(){
stop();
}
function frame55(){
stop();
}
function frame61(){
stop();
}
function frame62(){
stop();
}
function frame63(){
stop();
}
function frame64(){
stop();
}
function frame65(){
stop();
}
function frame73(){
stop();
}
function frame75(){
stop();
}
function frame74(){
stop();
}
}
}//package
Section 218
//Inventory (Inventory)
package {
import flash.display.*;
import flash.events.*;
import windows.*;
public class Inventory extends EventDispatcher {
private var _items:Object;
private var _episode:Episode;
private static var _instance:Inventory;
public function Inventory(_arg1:Episode){
_instance = this;
_episode = _arg1;
_items = new Object();
}
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 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 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 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 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 notHasAnyItem(_arg1:Array):Boolean{
var _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = _arg1.length;
_local4 = 0;
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 hasAllItems(_arg1:Array):Boolean{
var _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = _arg1.length;
_local4 = 0;
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 listItems():void{
var _local1:uint;
var _local2:String;
trace("[S] LIST: inventory items:");
_local1 = 0;
for (_local2 in _items) {
trace((((" - " + _local2) + " = ") + _items[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function notHasAllItems(_arg1:Array):Boolean{
var _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = _arg1.length;
_local4 = 0;
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 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.")));
};
}
private function showItemWindow(_arg1:String, _arg2:String="take"):void{
var _local3:Item;
var _local4:ItemWindow;
var _local5:*;
var _local6:DisplayObject;
_local3 = _items[_arg1];
_local4 = (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 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 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 _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = _arg1.length;
_local4 = 0;
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);
}
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 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 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 hasAnyItem(_arg1:Array):Boolean{
var _local2:uint;
var _local3:String;
var _local4:uint;
_local2 = _arg1.length;
_local4 = 0;
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 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 static function get instance():Inventory{
return (_instance);
}
}
}//package
Section 219
//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 _matImages:Object = new Object();
private static var _toMove:Array = new Array();
private static var _materials:Object = new Object();
private static var _item:String;
private static var _callback:Function;
private static var _highlight:Object = new Object();
private static var _icon:DisplayObject;
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 clear():void{
_item = undefined;
_icon = undefined;
_materials = new Object();
_highlight = new Object();
_matImages = new Object();
_toMove = new Array();
_callback = undefined;
}
private static function placeItem():void{
var wndw:ItemWindow;
var pos:Object;
Inventory.instance.addItem(_item, false);
wndw = (WindowsManager.instance.activeWindow as ItemWindow);
InventoryView.instance.addEmptyItem(_item);
pos = 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 makeItem():void{
var _local1:Episode;
var _local2:ItemWindow;
var _local3:String;
var _local4:*;
var _local5:DisplayObject;
_local1 = Game.instance.getCurrentEpisode();
_local2 = (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 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 onItemAnimComplete(_arg1:String):void{
var _local2:Boolean;
var _local3:String;
var _local4:String;
var _local5:ItemWindow;
var _local6:DisplayObject;
delete _highlight[_arg1];
_local2 = true;
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());
};
}
}
}//package
Section 220
//InventoryView (InventoryView)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class InventoryView extends MovieClip {
public var iconsMask:MovieClip;
private var _slots:Array;
private var _names:Object;
public var iconsCont:MovieClip;
private var _freeze:Boolean;
private var _rewind:Boolean;
public static const ICONSIZE:Number = 36;
public static const YSPACE:Number = 0;
public static const ICONSSPD:Number = 5;
public static const XSPACE:Number = 10;
public static const GAPWIDTH:Number = 12;
public static const LRINDENT:Number = 1;
public static const SLOTSIZE:Number = 42;
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);
};
}
private function iconsMaskOnEnterFrame(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Boolean;
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;
};
_local2 = iconsMask.mouseX;
_local3 = iconsMask.mouseY;
_local4 = (((((_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);
};
}
public function set freeze(_arg1:Boolean):void{
_freeze = _arg1;
}
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 addItem(_arg1:String):void{
var _local2:Item;
var _local3:uint;
var _local4:ItemIcon;
var _local5:DisplayObject;
var _local6:Class;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <addItem> : Inventory not available."));
};
_local2 = 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 addEmptyItem(_arg1:String):void{
var _local2:Item;
var _local3:uint;
var _local4:ItemIcon;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <addEmptyItem> : Inventory not available."));
};
_local2 = 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 reset():void{
while (_slots.length) {
removeItem(_slots[(_slots.length - 1)]);
};
}
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.")));
};
}
private function onGFXComplete(_arg1:Event):void{
var _local2:ItemIcon;
_local2 = (_arg1.target as ItemIcon);
if (_local2){
if (_local2.onGFXComplete != null){
_local2.onGFXComplete(_local2.source);
};
} else {
throw (new Error("[InventoryViwe] : <onGFXComplete> : Internal error."));
};
}
public function get freeze():Boolean{
return (_freeze);
}
public function removeItem(_arg1:String):void{
var _local2:Item;
var _local3:ItemIcon;
var _local4:uint;
var _local5:uint;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <removeItem> : Inventory not available."));
};
_local2 = 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 cutIcon(_arg1:String):DisplayObject{
var _local2:Item;
var _local3:ItemIcon;
var _local4:DisplayObject;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <cutIcon> : Inventory not available."));
};
_local2 = 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 highlightItem(_arg1:String, _arg2:Function=null):void{
var _local3:Item;
var _local4:ItemIcon;
if (!Inventory.instance){
throw (new Error("[InventoryView] : <removeItem> : Inventory not available."));
};
_local3 = 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 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 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;
}
public static function get instance():InventoryView{
return (_instance);
}
}
}//package
Section 221
//Item (Item)
package {
public class Item {
public var name:String;
public var anim;
public var title:String;
public var icon;
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 222
//Item_Branch (Item_Branch)
package {
import flash.display.*;
public dynamic class Item_Branch extends MovieClip {
}
}//package
Section 223
//Item_HD (Item_HD)
package {
import flash.display.*;
public dynamic class Item_HD extends MovieClip {
}
}//package
Section 224
//Item_HD2 (Item_HD2)
package {
import flash.display.*;
public dynamic class Item_HD2 extends MovieClip {
}
}//package
Section 225
//Item_HD3 (Item_HD3)
package {
import flash.display.*;
public dynamic class Item_HD3 extends MovieClip {
}
}//package
Section 226
//Item_Hook (Item_Hook)
package {
import flash.display.*;
public dynamic class Item_Hook extends MovieClip {
}
}//package
Section 227
//Item_Leaf1 (Item_Leaf1)
package {
import flash.display.*;
public dynamic class Item_Leaf1 extends MovieClip {
}
}//package
Section 228
//Item_Leaf2 (Item_Leaf2)
package {
import flash.display.*;
public dynamic class Item_Leaf2 extends MovieClip {
}
}//package
Section 229
//Item_Leaf3 (Item_Leaf3)
package {
import flash.display.*;
public dynamic class Item_Leaf3 extends MovieClip {
}
}//package
Section 230
//Item_Liana (Item_Liana)
package {
import flash.display.*;
public dynamic class Item_Liana extends MovieClip {
}
}//package
Section 231
//Item_List (Item_List)
package {
import flash.display.*;
public dynamic class Item_List extends MovieClip {
}
}//package
Section 232
//Item_Mushroom (Item_Mushroom)
package {
import flash.display.*;
public dynamic class Item_Mushroom extends MovieClip {
public function Item_Mushroom(){
addFrameScript(0, frame1, 86, frame87);
}
function frame87(){
stop();
}
function frame1(){
stop();
}
}
}//package
Section 233
//Item_Panzer (Item_Panzer)
package {
import flash.display.*;
public dynamic class Item_Panzer extends MovieClip {
}
}//package
Section 234
//Item_Parashut (Item_Parashut)
package {
import flash.display.*;
public dynamic class Item_Parashut extends MovieClip {
}
}//package
Section 235
//Item_Part1 (Item_Part1)
package {
import flash.display.*;
public dynamic class Item_Part1 extends MovieClip {
}
}//package
Section 236
//Item_Part2 (Item_Part2)
package {
import flash.display.*;
public dynamic class Item_Part2 extends MovieClip {
}
}//package
Section 237
//Item_Part3 (Item_Part3)
package {
import flash.display.*;
public dynamic class Item_Part3 extends MovieClip {
}
}//package
Section 238
//Item_Part4 (Item_Part4)
package {
import flash.display.*;
public dynamic class Item_Part4 extends MovieClip {
}
}//package
Section 239
//Item_Part5 (Item_Part5)
package {
import flash.display.*;
public dynamic class Item_Part5 extends MovieClip {
}
}//package
Section 240
//Item_Snivel1 (Item_Snivel1)
package {
import flash.display.*;
public dynamic class Item_Snivel1 extends MovieClip {
}
}//package
Section 241
//Item_Snivel2 (Item_Snivel2)
package {
import flash.display.*;
public dynamic class Item_Snivel2 extends MovieClip {
}
}//package
Section 242
//Item_Trap (Item_Trap)
package {
import flash.display.*;
public dynamic class Item_Trap extends MovieClip {
}
}//package
Section 243
//Item_Trap3 (Item_Trap3)
package {
import flash.display.*;
public dynamic class Item_Trap3 extends MovieClip {
}
}//package
Section 244
//Item_Trap31 (Item_Trap31)
package {
import flash.display.*;
public dynamic class Item_Trap31 extends MovieClip {
}
}//package
Section 245
//Item_Trap5 (Item_Trap5)
package {
import flash.display.*;
public dynamic class Item_Trap5 extends MovieClip {
}
}//package
Section 246
//Item_Trap7 (Item_Trap7)
package {
import flash.display.*;
public dynamic class Item_Trap7 extends MovieClip {
}
}//package
Section 247
//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 adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ItemIcon extends MovieClip {
public var source:String;
public var image:MovieClip;
public var title:String;
public var onGFXComplete:Function;
public var bounds:MovieClip;
public function ItemIcon(){
addFrameScript(0, frame1, 1, frame2, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
dispatchEvent(new Event("gfxComplete"));
image.holder.gotoAndPlay(2);
}
public function setIcon(_arg1:DisplayObject):void{
while (image.holder.numChildren) {
image.holder.removeChildAt(0);
};
image.holder.addChild(_arg1);
}
function frame2(){
image.holder.gotoAndStop(1);
}
public function getIcon():DisplayObject{
return ((image.holder.numChildren) ? image.holder.getChildAt(0) : null);
}
}
}//package
Section 248
//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 stopGFX():void{
gfx.gotoAndStop(1);
}
function frame1(){
gfx.addEventListener("animComplete", onAnimComplete);
}
public function playGFX(_arg1:Function=null):void{
_cb = _arg1;
gfx.gotoAndPlay(2);
}
public function onAnimComplete(_arg1:Event):void{
if (_cb != null){
_cb();
};
}
}
}//package
Section 249
//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 250
//LinkBox1 (LinkBox1)
package {
public dynamic class LinkBox1 extends LinkBox {
public function LinkBox1(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link1;
}
}
}//package
Section 251
//LinkBox2 (LinkBox2)
package {
public dynamic class LinkBox2 extends LinkBox {
public function LinkBox2(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link2;
}
}
}//package
Section 252
//LinkBox3 (LinkBox3)
package {
public dynamic class LinkBox3 extends LinkBox {
public function LinkBox3(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link3;
}
}
}//package
Section 253
//LinkBox4 (LinkBox4)
package {
public dynamic class LinkBox4 extends LinkBox {
public function LinkBox4(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link4;
}
}
}//package
Section 254
//LinkBox5 (LinkBox5)
package {
public dynamic class LinkBox5 extends LinkBox {
public function LinkBox5(){
addFrameScript(0, frame1);
}
function frame1(){
link = Game.link5;
}
}
}//package
Section 255
//MusicPlayer (MusicPlayer)
package {
import flash.events.*;
import flash.media.*;
public class MusicPlayer {
private var channel:SoundChannel;
private var playing:Boolean;// = false
var musicvol:Number;// = 0.2
private var sound:Sound;
private var mute:Boolean;// = false
public function MusicPlayer(){
musicvol = 0.2;
mute = false;
playing = false;
super();
init();
}
public function musicON(){
channel.soundTransform = new SoundTransform(musicvol);
mute = false;
}
public function musicOFF(){
channel.soundTransform = new SoundTransform(0);
mute = true;
}
private function init(){
}
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;
}
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 stopMusic(){
channel.stop();
channel.removeEventListener(Event.SOUND_COMPLETE, _restart);
playing = false;
}
public function get isPlaying():Boolean{
return (playing);
}
}
}//package
Section 256
//NextWindow (NextWindow)
package {
import windows.*;
public dynamic class NextWindow extends Window {
}
}//package
Section 257
//ScrollBarH (ScrollBarH)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class ScrollBarH {
private const SPEED:Number = 8;
private var _mask:Sprite;
private var _track:Sprite;
private var _cont:Sprite;
private var _btnR:Sprite;
private var _thumb:Sprite;
private var _btnL:Sprite;
private var moveDir:String;// = "none"
public function ScrollBarH(_arg1:Sprite, _arg2:Sprite, _arg3:Sprite, _arg4:Sprite, _arg5:Sprite=null, _arg6:Sprite=null){
moveDir = "none";
super();
_cont = _arg1;
_mask = _arg2;
_track = _arg3;
_thumb = _arg4;
_btnL = _arg5;
_btnR = _arg6;
init();
}
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 placeThumb(_arg1:MouseEvent):void{
var _local2:Number;
_local2 = _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 dragThumb(_arg1:MouseEvent):void{
_thumb.startDrag(false, new Rectangle(_track.x, _track.y, (_track.width - _thumb.width), 0));
}
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 stopMoveLeft(_arg1:MouseEvent):void{
moveDir = "none";
}
private function stepLeft(_arg1:MouseEvent):void{
moveThumb("left", SPEED);
}
private function scrollThumb(_arg1:MouseEvent):void{
if (_arg1.delta > 0){
moveThumb("left", SPEED);
};
if (_arg1.delta < 0){
moveThumb("right", SPEED);
};
}
private function moveCont(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
resizeThumb();
_local2 = (_cont.width / _track.width);
_local3 = ((_track.x - _thumb.x) * _local2);
_cont.x = _local3;
}
private function dropThumb(_arg1:MouseEvent):void{
_thumb.stopDrag();
}
private function stopMoveRight(_arg1:MouseEvent):void{
moveDir = "none";
}
private function startMoveRight(_arg1:MouseEvent):void{
moveDir = "right";
}
private function stepRight(_arg1:MouseEvent):void{
moveThumb("right", SPEED);
}
private function shiftThumb(_arg1:Event):void{
moveThumb(moveDir, SPEED);
}
private function startMoveLeft(_arg1:MouseEvent):void{
moveDir = "left";
}
}
}//package
Section 258
//ScrollBarV (ScrollBarV)
package {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class ScrollBarV {
private const SPEED:Number = 8;
private var _mask:Sprite;
private var _track:Sprite;
private var _cont:Sprite;
private var _btnD:Sprite;
private var _thumb:Sprite;
private var _btnU:Sprite;
private var moveDir:String;// = "none"
public function ScrollBarV(_arg1:Sprite, _arg2:Sprite, _arg3:Sprite, _arg4:Sprite, _arg5:Sprite=null, _arg6:Sprite=null){
moveDir = "none";
super();
_cont = _arg1;
_mask = _arg2;
_track = _arg3;
_thumb = _arg4;
_btnU = _arg5;
_btnD = _arg6;
init();
}
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 stopMoveDown(_arg1:MouseEvent):void{
moveDir = "none";
}
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 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 startMoveDown(_arg1:MouseEvent):void{
moveDir = "down";
}
private function placeThumb(_arg1:MouseEvent):void{
var _local2:Number;
_local2 = _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 scrollThumb(_arg1:MouseEvent):void{
if (_arg1.delta > 0){
moveThumb("up", SPEED);
};
if (_arg1.delta < 0){
moveThumb("down", SPEED);
};
}
private function moveCont(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
resizeThumb();
_local2 = (_cont.height / _track.height);
_local3 = ((_track.y - _thumb.y) * _local2);
_cont.y = _local3;
}
private function startMoveUp(_arg1:MouseEvent):void{
moveDir = "up";
}
private function stepUp(_arg1:MouseEvent):void{
moveThumb("up", SPEED);
}
private function dropThumb(_arg1:MouseEvent):void{
_thumb.stopDrag();
}
private function shiftThumb(_arg1:Event):void{
moveThumb(moveDir, SPEED);
}
private function stepDown(_arg1:MouseEvent):void{
moveThumb("down", SPEED);
}
private function stopMoveUp(_arg1:MouseEvent):void{
moveDir = "none";
}
}
}//package
Section 259
//SoundPlayer (SoundPlayer)
package {
import flash.media.*;
public class SoundPlayer {
private var channel:SoundChannel;
private var sound:Sound;
private var mute:Boolean;// = false
public function SoundPlayer(){
mute = false;
super();
init();
}
public function soundOFF(){
channel.soundTransform = new SoundTransform(0);
mute = true;
}
public function stopSound(){
channel.stop();
}
public function soundON(){
channel.soundTransform = new SoundTransform(1);
mute = false;
}
private function init(){
}
public function playSound(_arg1:Sound){
this.sound = _arg1;
if (mute){
channel = _arg1.play();
channel.soundTransform = new SoundTransform(0);
} else {
channel = _arg1.play();
};
}
}
}//package
Section 260
//Tracer (Tracer)
package {
public class Tracer {
public static var showName:Boolean = true;
public static var showTime:Boolean = false;
private static var filters:Object = new Object();
public static var showType:Boolean = true;
public static var subfilters:Object = new Object();
public static function report(_arg1:String, _arg2:String, _arg3=null, _arg4:String=null):void{
var _local5:String;
var _local6:String;
var _local7:String;
var _local8:Date;
var _local9:*;
var _local10:*;
var _local11:*;
_arg1 = resolveType(_arg1);
_local5 = resolveName(_arg1);
if (Tracer.showName){
_local5 = (" " + _local5);
} else {
_local5 = "";
};
_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) + ")");
};
_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));
};
};
}
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 ("[.]");
}
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++;
};
};
}
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 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 261
//Utils (Utils)
package {
import flash.display.*;
import flash.system.*;
public class Utils {
public static function disposeDisplayObject(_arg1:Sprite):void{
var _local2:String;
var _local3:uint;
var _local4:uint;
var _local5:*;
_local2 = "";
if (_arg1["name"]){
_local2 = ((" (" + _arg1["name"]) + ")");
};
trace((("[%] PROCESSING: " + _arg1) + _local2));
_local3 = _arg1.numChildren;
_local4 = 0;
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);
}
public static function getTotalMemory():Number{
return (Number(((System.totalMemory / 0x0400) / 0x0400)));
}
}
}//package
Section 262
//Waypoint (Waypoint)
package {
import flash.display.*;
public class Waypoint extends Sprite {
private var episode:Sprite;
public var funct:Function;
public var scale:Number;
private var sign:Sprite;
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