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
//_ExportSoundsMC_15 (PnC_Game_fla._ExportSoundsMC_15)
package PnC_Game_fla {
import flash.display.*;
public dynamic class _ExportSoundsMC_15 extends MovieClip {
public function _ExportSoundsMC_15(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
}
function frame2(){
}
}
}//package PnC_Game_fla
Section 11
//_ExportWindowsMC_16 (PnC_Game_fla._ExportWindowsMC_16)
package PnC_Game_fla {
import flash.display.*;
public dynamic class _ExportWindowsMC_16 extends MovieClip {
public var windowInstr:WindowInstructions;
public var windowItem:WindowItem;
public var windowFinal:WindowFinal;
public var windowYouAH:WindowYouAreHistory;
public var windowNextL:WindowNextLevel;
public function _ExportWindowsMC_16(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 12
//_nextBtn_376 (PnC_Game_fla._nextBtn_376)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class _nextBtn_376 extends MovieClip {
public var hitMc:MovieClip;
public function _nextBtn_376(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onMouseOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
this.hitArea = hitMc;
addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
addEventListener(MouseEvent.CLICK, onClick);
}
public function onMouseOut(_arg1:MouseEvent):void{
gotoAndPlay("up");
}
function frame9(){
play();
}
function frame8(){
stop();
}
function frame2(){
play();
}
public function onClick(_arg1:MouseEvent):void{
if (Console.currentEpisode){
Console.currentEpisode.start();
Console.hidePrologue();
};
}
}
}//package PnC_Game_fla
Section 13
//Banner_382 (PnC_Game_fla.Banner_382)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Banner_382 extends MovieClip {
public var link:String;
public function Banner_382(){
addFrameScript(0, frame1);
}
public function onMouseClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(link), "_blank");
}
function frame1(){
link = "http://mediapartner.bigpoint.net/scripts/click.php?anid=930034&anbid=39450778";
buttonMode = true;
useHandCursor = true;
addEventListener(MouseEvent.CLICK, onMouseClick);
}
}
}//package PnC_Game_fla
Section 14
//body_91 (PnC_Game_fla.body_91)
package PnC_Game_fla {
import flash.display.*;
public dynamic class body_91 extends MovieClip {
public function body_91(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 15
//button_10 (PnC_Game_fla.button_10)
package PnC_Game_fla {
import flash.display.*;
public dynamic class button_10 extends MovieClip {
public function button_10(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 16
//buttonMoreGames_357 (PnC_Game_fla.buttonMoreGames_357)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class buttonMoreGames_357 extends MovieClip {
public function buttonMoreGames_357(){
addFrameScript(0, frame1);
}
function frame1(){
buttonMode = true;
useHandCursor = true;
addEventListener(MouseEvent.CLICK, onClick);
}
public function onClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.abroy.com"), "_blank");
}
}
}//package PnC_Game_fla
Section 17
//buttonPlay_356 (PnC_Game_fla.buttonPlay_356)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class buttonPlay_356 extends MovieClip {
public function buttonPlay_356(){
addFrameScript(0, frame1);
}
function frame1(){
buttonMode = true;
useHandCursor = true;
addEventListener(MouseEvent.CLICK, onClick);
}
public function onClick(_arg1:MouseEvent):void{
Console.enterMainGame();
}
}
}//package PnC_Game_fla
Section 18
//chariot_mc_249 (PnC_Game_fla.chariot_mc_249)
package PnC_Game_fla {
import flash.display.*;
public dynamic class chariot_mc_249 extends MovieClip {
public function chariot_mc_249(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 19
//combine_mc_404 (PnC_Game_fla.combine_mc_404)
package PnC_Game_fla {
import flash.display.*;
public dynamic class combine_mc_404 extends MovieClip {
public function combine_mc_404(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package PnC_Game_fla
Section 20
//combine_mc_416 (PnC_Game_fla.combine_mc_416)
package PnC_Game_fla {
import flash.display.*;
public dynamic class combine_mc_416 extends MovieClip {
public function combine_mc_416(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package PnC_Game_fla
Section 21
//combine_mc_423 (PnC_Game_fla.combine_mc_423)
package PnC_Game_fla {
import flash.display.*;
public dynamic class combine_mc_423 extends MovieClip {
public function combine_mc_423(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package PnC_Game_fla
Section 22
//Console_385 (PnC_Game_fla.Console_385)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Console_385 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_385(){
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 23
//cont_388 (PnC_Game_fla.cont_388)
package PnC_Game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cont_388 extends MovieClip {
public var history_tf:TextField;
public function cont_388(){
addFrameScript(0, frame1);
}
function frame1(){
history_tf.autoSize = "left";
}
}
}//package PnC_Game_fla
Section 24
//content_387 (PnC_Game_fla.content_387)
package PnC_Game_fla {
import flash.display.*;
public dynamic class content_387 extends MovieClip {
public var cont_mc:MovieClip;
public var mask_mc:MovieClip;
}
}//package PnC_Game_fla
Section 25
//enemy_all_271 (PnC_Game_fla.enemy_all_271)
package PnC_Game_fla {
import flash.display.*;
public dynamic class enemy_all_271 extends MovieClip {
public var orc:MovieClip;
public function enemy_all_271(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 26
//enemy_angry_285 (PnC_Game_fla.enemy_angry_285)
package PnC_Game_fla {
import flash.display.*;
public dynamic class enemy_angry_285 extends MovieClip {
public function enemy_angry_285(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 27
//enemy_die_282 (PnC_Game_fla.enemy_die_282)
package PnC_Game_fla {
import flash.display.*;
public dynamic class enemy_die_282 extends MovieClip {
public function enemy_die_282(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package PnC_Game_fla
Section 28
//enemy_go_286 (PnC_Game_fla.enemy_go_286)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy_go_286 extends MovieClip {
public var orc:MovieClip;
public function enemy_go_286(){
addFrameScript(23, frame24, 48, frame49);
}
function frame24(){
MovieClip(parent.parent).board.gotoAndPlay(35);
}
function frame49(){
stop();
MovieClip(parent.parent).win();
}
}
}//package PnC_Game_fla
Section 29
//enemy_go_287 (PnC_Game_fla.enemy_go_287)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemy_go_287 extends MovieClip {
public var orc:MovieClip;
public function enemy_go_287(){
addFrameScript(87, frame88, 100, frame101);
}
function frame88(){
MovieClip(parent.parent).jf.playAnim("die1", function (){
MovieClip(parent.parent).lose();
});
}
function frame101(){
stop();
}
}
}//package PnC_Game_fla
Section 30
//enemy_kill_284 (PnC_Game_fla.enemy_kill_284)
package PnC_Game_fla {
import flash.display.*;
public dynamic class enemy_kill_284 extends MovieClip {
public function enemy_kill_284(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package PnC_Game_fla
Section 31
//Epilogue_364 (PnC_Game_fla.Epilogue_364)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Epilogue_364 extends MovieClip {
public function Epilogue_364(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 32
//Exportingepisodes_46 (PnC_Game_fla.Exportingepisodes_46)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Exportingepisodes_46 extends MovieClip {
public function Exportingepisodes_46(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 33
//FPSDisplay_360 (PnC_Game_fla.FPSDisplay_360)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public dynamic class FPSDisplay_360 extends MovieClip {
public var _tf:TextField;
public var begTime:Number;
public function FPSDisplay_360(){
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 34
//hatPart1_94 (PnC_Game_fla.hatPart1_94)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hatPart1_94 extends MovieClip {
public function hatPart1_94(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 35
//hatPart2_92 (PnC_Game_fla.hatPart2_92)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hatPart2_92 extends MovieClip {
public function hatPart2_92(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 36
//head_die_230 (PnC_Game_fla.head_die_230)
package PnC_Game_fla {
import flash.display.*;
public dynamic class head_die_230 extends MovieClip {
public function head_die_230(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 37
//head_die_99 (PnC_Game_fla.head_die_99)
package PnC_Game_fla {
import flash.display.*;
public dynamic class head_die_99 extends MovieClip {
public function head_die_99(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 38
//hero_218 (PnC_Game_fla.hero_218)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_218 extends MovieClip {
public var anim:MovieClip;
public function hero_218(){
addFrameScript(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);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame13(){
stop();
}
function frame17(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame16(){
stop();
}
function frame15(){
stop();
}
function frame11(){
stop();
}
}
}//package PnC_Game_fla
Section 39
//hero_board_up_118 (PnC_Game_fla.hero_board_up_118)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_board_up_118 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_board_up_118(){
addFrameScript(52, frame53);
}
function frame53(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 40
//hero_board_up_247 (PnC_Game_fla.hero_board_up_247)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_board_up_247 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_board_up_247(){
addFrameScript(52, frame53);
}
function frame53(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 41
//hero_die_l2_131 (PnC_Game_fla.hero_die_l2_131)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_die_l2_131 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_die_l2_131(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 42
//hero_die1_229 (PnC_Game_fla.hero_die1_229)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_die1_229 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_die1_229(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 43
//hero_die1_98 (PnC_Game_fla.hero_die1_98)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_die1_98 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_die1_98(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
hatPart1.gotoAndStop(MovieClip(parent.parent).hat);
hatPart2.gotoAndStop(MovieClip(parent.parent).hat);
body.gotoAndStop(MovieClip(parent.parent).body);
}
function frame35(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 44
//hero_idle_219 (PnC_Game_fla.hero_idle_219)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_idle_219 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
}
}//package PnC_Game_fla
Section 45
//hero_idle_88 (PnC_Game_fla.hero_idle_88)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_idle_88 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_idle_88(){
addFrameScript(0, frame1);
}
function frame1(){
hatPart1.gotoAndStop(MovieClip(parent.parent).hat);
hatPart2.gotoAndStop(MovieClip(parent.parent).hat);
body.gotoAndStop(MovieClip(parent.parent).body);
}
}
}//package PnC_Game_fla
Section 46
//hero_idle_l4_248 (PnC_Game_fla.hero_idle_l4_248)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_idle_l4_248 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
}
}//package PnC_Game_fla
Section 47
//hero_jump_114 (PnC_Game_fla.hero_jump_114)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_jump_114 extends MovieClip {
public var callback:Function;
public function hero_jump_114(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 48
//hero_jump_243 (PnC_Game_fla.hero_jump_243)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_jump_243 extends MovieClip {
public var callback:Function;
public function hero_jump_243(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 49
//hero_jump_anim_115 (PnC_Game_fla.hero_jump_anim_115)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_jump_anim_115 extends MovieClip {
public var anim:MovieClip;
public var callback:Function;
public function hero_jump_anim_115(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 50
//hero_jump_anim_244 (PnC_Game_fla.hero_jump_anim_244)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_jump_anim_244 extends MovieClip {
public var anim:MovieClip;
public function hero_jump_anim_244(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package PnC_Game_fla
Section 51
//hero_pickUp_228 (PnC_Game_fla.hero_pickUp_228)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_pickUp_228 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_pickUp_228(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 52
//hero_pickUp_97 (PnC_Game_fla.hero_pickUp_97)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_pickUp_97 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_pickUp_97(){
addFrameScript(0, frame1, 25, frame26);
}
function frame1(){
hatPart1.gotoAndStop(MovieClip(parent.parent).hat);
hatPart2.gotoAndStop(MovieClip(parent.parent).hat);
body.gotoAndStop(MovieClip(parent.parent).body);
}
function frame26(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 53
//hero_pour_109 (PnC_Game_fla.hero_pour_109)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_pour_109 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_pour_109(){
addFrameScript(0, frame1, 46, frame47);
}
function frame1(){
hatPart1.gotoAndStop(MovieClip(parent.parent).hat);
hatPart2.gotoAndStop(MovieClip(parent.parent).hat);
body.gotoAndStop(MovieClip(parent.parent).body);
}
function frame47(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 54
//hero_pour_239 (PnC_Game_fla.hero_pour_239)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_pour_239 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_pour_239(){
addFrameScript(46, frame47);
}
function frame47(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 55
//hero_refused_104 (PnC_Game_fla.hero_refused_104)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_refused_104 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_refused_104(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
hatPart1.gotoAndStop(MovieClip(parent.parent).hat);
hatPart2.gotoAndStop(MovieClip(parent.parent).hat);
body.gotoAndStop(MovieClip(parent.parent).body);
}
}
}//package PnC_Game_fla
Section 56
//hero_refused_235 (PnC_Game_fla.hero_refused_235)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_refused_235 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_refused_235(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package PnC_Game_fla
Section 57
//hero_take_227 (PnC_Game_fla.hero_take_227)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_take_227 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_take_227(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 58
//hero_take_96 (PnC_Game_fla.hero_take_96)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_take_96 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_take_96(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
function frame1(){
hatPart1.gotoAndStop(MovieClip(parent.parent).hat);
hatPart2.gotoAndStop(MovieClip(parent.parent).hat);
body.gotoAndStop(MovieClip(parent.parent).body);
}
}
}//package PnC_Game_fla
Section 59
//hero_throw_apple_106 (PnC_Game_fla.hero_throw_apple_106)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_throw_apple_106 extends MovieClip {
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_throw_apple_106(){
addFrameScript(0, frame1, 33, frame34);
}
function frame1(){
hatPart1.gotoAndStop(MovieClip(parent.parent).hat);
hatPart2.gotoAndStop(MovieClip(parent.parent).hat);
body.gotoAndStop(MovieClip(parent.parent).body);
}
function frame34(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 60
//hero_throw_apple_237 (PnC_Game_fla.hero_throw_apple_237)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_throw_apple_237 extends MovieClip {
public var callback:Function;
public function hero_throw_apple_237(){
addFrameScript(33, frame34);
}
function frame34(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 61
//hero_throw_gladius_l6_123 (PnC_Game_fla.hero_throw_gladius_l6_123)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_throw_gladius_l6_123 extends MovieClip {
public var callback:Function;
public function hero_throw_gladius_l6_123(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 62
//hero_throw_plate_112 (PnC_Game_fla.hero_throw_plate_112)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_throw_plate_112 extends MovieClip {
public var callback:Function;
public function hero_throw_plate_112(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 63
//hero_throw_plate_241 (PnC_Game_fla.hero_throw_plate_241)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_throw_plate_241 extends MovieClip {
public var callback:Function;
public function hero_throw_plate_241(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 64
//hero_throw_rock_116 (PnC_Game_fla.hero_throw_rock_116)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_throw_rock_116 extends MovieClip {
public var callback:Function;
public function hero_throw_rock_116(){
addFrameScript(62, frame63);
}
function frame63(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 65
//hero_throw_rock_245 (PnC_Game_fla.hero_throw_rock_245)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_throw_rock_245 extends MovieClip {
public var callback:Function;
public function hero_throw_rock_245(){
addFrameScript(62, frame63);
}
function frame63(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 66
//hero_throw_rope_120 (PnC_Game_fla.hero_throw_rope_120)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_throw_rope_120 extends MovieClip {
public var anim:MovieClip;
public var callback:Function;
public var sword:MovieClip;
public function hero_throw_rope_120(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 67
//hero_throwRope_105 (PnC_Game_fla.hero_throwRope_105)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_throwRope_105 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_throwRope_105(){
addFrameScript(0, frame1, 46, frame47, 57, frame58);
}
function frame1(){
hatPart1.gotoAndStop(MovieClip(parent.parent).hat);
hatPart2.gotoAndStop(MovieClip(parent.parent).hat);
body.gotoAndStop(MovieClip(parent.parent).body);
}
function frame47(){
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
function frame58(){
stop();
}
}
}//package PnC_Game_fla
Section 68
//hero_throwRope_236 (PnC_Game_fla.hero_throwRope_236)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_throwRope_236 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_throwRope_236(){
addFrameScript(57, frame58);
}
function frame58(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 69
//hero_trow_rope_L6_126 (PnC_Game_fla.hero_trow_rope_L6_126)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_trow_rope_L6_126 extends MovieClip {
public var callback:Function;
public function hero_trow_rope_L6_126(){
addFrameScript(24, frame25, 40, frame41);
}
function frame25(){
}
function frame41(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 70
//hero_walk_226 (PnC_Game_fla.hero_walk_226)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_walk_226 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_walk_226(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(6);
}
}
}//package PnC_Game_fla
Section 71
//hero_walk_345 (PnC_Game_fla.hero_walk_345)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_walk_345 extends MovieClip {
public var anim:MovieClip;
public function hero_walk_345(){
addFrameScript(74, frame75, 90, frame91);
}
function frame75(){
MovieClip(parent.parent).jf.playAnim("die1", function (){
MovieClip(parent.parent).lose();
});
}
function frame91(){
stop();
}
}
}//package PnC_Game_fla
Section 72
//hero_walk_346 (PnC_Game_fla.hero_walk_346)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_walk_346 extends MovieClip {
public var anim:MovieClip;
public function hero_walk_346(){
addFrameScript(44, frame45, 119, frame120);
}
function frame120(){
stop();
MovieClip(parent.parent).action = true;
}
function frame45(){
MovieClip(parent.parent).jf.turnOn("left");
MovieClip(parent.parent).jf.playAnim("take", function (){
MovieClip(parent.parent).amfora.gotoAndPlay(3);
MovieClip(parent.parent).jf.turnOn("right");
MovieClip(parent.parent).jf.wait();
});
}
}
}//package PnC_Game_fla
Section 73
//hero_walk_95 (PnC_Game_fla.hero_walk_95)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hero_walk_95 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_walk_95(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
hatPart1.gotoAndStop(MovieClip(parent.parent).hat);
hatPart2.gotoAndStop(MovieClip(parent.parent).hat);
body.gotoAndStop(MovieClip(parent.parent).body);
}
function frame25(){
gotoAndPlay(6);
}
}
}//package PnC_Game_fla
Section 74
//hero_walk_L2_128 (PnC_Game_fla.hero_walk_L2_128)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_walk_L2_128 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hatPart1:MovieClip;
public var hatPart2:MovieClip;
public function hero_walk_L2_128(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(6);
}
}
}//package PnC_Game_fla
Section 75
//hero_whip_l6_125 (PnC_Game_fla.hero_whip_l6_125)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_whip_l6_125 extends MovieClip {
public var callback:Function;
public function hero_whip_l6_125(){
addFrameScript(29, frame30, 51, frame52);
}
function frame30(){
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
function frame52(){
stop();
}
}
}//package PnC_Game_fla
Section 76
//HintButton_363 (PnC_Game_fla.HintButton_363)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class HintButton_363 extends MovieClip {
public function HintButton_363(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
addEventListener(MouseEvent.CLICK, onClick);
}
public function onClick(_arg1:MouseEvent):void{
if (((Game.helplink) && (!((Game.helplink == ""))))){
navigateToURL(new URLRequest(Game.helplink), "_blank");
} else {
Tracer.report("[!]", "Bad link URL.", "HintButton");
};
}
}
}//package PnC_Game_fla
Section 77
//hl_9 (PnC_Game_fla.hl_9)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hl_9 extends MovieClip {
public function hl_9(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package PnC_Game_fla
Section 78
//horse_all_206 (PnC_Game_fla.horse_all_206)
package PnC_Game_fla {
import flash.display.*;
public dynamic class horse_all_206 extends MovieClip {
public function horse_all_206(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 79
//horse_body_210 (PnC_Game_fla.horse_body_210)
package PnC_Game_fla {
import flash.display.*;
public dynamic class horse_body_210 extends MovieClip {
public function horse_body_210(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 80
//horse_eyeDie_217 (PnC_Game_fla.horse_eyeDie_217)
package PnC_Game_fla {
import flash.display.*;
public dynamic class horse_eyeDie_217 extends MovieClip {
public function horse_eyeDie_217(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package PnC_Game_fla
Section 81
//horse_fall_215 (PnC_Game_fla.horse_fall_215)
package PnC_Game_fla {
import flash.display.*;
public dynamic class horse_fall_215 extends MovieClip {
public var body:MovieClip;
public var head:MovieClip;
public function horse_fall_215(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package PnC_Game_fla
Section 82
//horse_head_212 (PnC_Game_fla.horse_head_212)
package PnC_Game_fla {
import flash.display.*;
public dynamic class horse_head_212 extends MovieClip {
public function horse_head_212(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 83
//horse_head_die_216 (PnC_Game_fla.horse_head_die_216)
package PnC_Game_fla {
import flash.display.*;
public dynamic class horse_head_die_216 extends MovieClip {
public function horse_head_die_216(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package PnC_Game_fla
Section 84
//horse_run_207 (PnC_Game_fla.horse_run_207)
package PnC_Game_fla {
import flash.display.*;
public dynamic class horse_run_207 extends MovieClip {
public var body:MovieClip;
public var head:MovieClip;
public function horse_run_207(){
addFrameScript(13, frame14);
}
function frame14(){
gotoAndPlay("loop");
}
}
}//package PnC_Game_fla
Section 85
//horse_stoped_214 (PnC_Game_fla.horse_stoped_214)
package PnC_Game_fla {
import flash.display.*;
public dynamic class horse_stoped_214 extends MovieClip {
public var body:MovieClip;
public var head:MovieClip;
public function horse_stoped_214(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 86
//icon1_40 (PnC_Game_fla.icon1_40)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class icon1_40 extends MovieClip {
public function icon1_40(){
addFrameScript(0, frame1);
}
public function a11(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.abroy.com/play/adventure-games/hugo-the-hobo-2/"), "_blank");
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, a11);
}
}
}//package PnC_Game_fla
Section 87
//icon2_41 (PnC_Game_fla.icon2_41)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class icon2_41 extends MovieClip {
public function icon2_41(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, a12);
}
public function a12(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.abroy.com/play/adventure-games/waldo-the-wizard/"), "_blank");
}
}
}//package PnC_Game_fla
Section 88
//icon3_42 (PnC_Game_fla.icon3_42)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class icon3_42 extends MovieClip {
public function icon3_42(){
addFrameScript(0, frame1);
}
public function a13(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.abroy.com/play/adventure-games/peter-the-penguin/"), "_blank");
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, a13);
}
}
}//package PnC_Game_fla
Section 89
//icon4_43 (PnC_Game_fla.icon4_43)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class icon4_43 extends MovieClip {
public function icon4_43(){
addFrameScript(0, frame1);
}
public function a13(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.abroy.com/play/adventure-games/johnny-finder-3/"), "_blank");
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, a13);
}
}
}//package PnC_Game_fla
Section 90
//joe_45 (PnC_Game_fla.joe_45)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class joe_45 extends MovieClip {
public function joe_45(){
addFrameScript(0, frame1);
}
public function a11(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.abroy.com/play/adventure-games/dor-the-dwarf/"), "_blank");
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, a11);
}
}
}//package PnC_Game_fla
Section 91
//killer_all_335 (PnC_Game_fla.killer_all_335)
package PnC_Game_fla {
import flash.display.*;
public dynamic class killer_all_335 extends MovieClip {
public var anim:MovieClip;
public function killer_all_335(){
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 92
//killer_idle_336 (PnC_Game_fla.killer_idle_336)
package PnC_Game_fla {
import flash.display.*;
public dynamic class killer_idle_336 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
}
}//package PnC_Game_fla
Section 93
//killer_jump_344 (PnC_Game_fla.killer_jump_344)
package PnC_Game_fla {
import flash.display.*;
public dynamic class killer_jump_344 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
}
}//package PnC_Game_fla
Section 94
//killer_kick_343 (PnC_Game_fla.killer_kick_343)
package PnC_Game_fla {
import flash.display.*;
public dynamic class killer_kick_343 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public function killer_kick_343(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package PnC_Game_fla
Section 95
//killer_up_347 (PnC_Game_fla.killer_up_347)
package PnC_Game_fla {
import flash.display.*;
public dynamic class killer_up_347 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public function killer_up_347(){
addFrameScript(60, frame61);
}
function frame61(){
stop();
}
}
}//package PnC_Game_fla
Section 96
//killer_walk_342 (PnC_Game_fla.killer_walk_342)
package PnC_Game_fla {
import flash.display.*;
public dynamic class killer_walk_342 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public function killer_walk_342(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(6);
}
}
}//package PnC_Game_fla
Section 97
//l1_amfora_348 (PnC_Game_fla.l1_amfora_348)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l1_amfora_348 extends MovieClip {
public function l1_amfora_348(){
addFrameScript(0, frame1, 1, frame2, 17, frame18);
}
function frame18(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 98
//l1_wine_pour_110 (PnC_Game_fla.l1_wine_pour_110)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l1_wine_pour_110 extends MovieClip {
public function l1_wine_pour_110(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package PnC_Game_fla
Section 99
//l2_gate_anim_299 (PnC_Game_fla.l2_gate_anim_299)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l2_gate_anim_299 extends MovieClip {
public function l2_gate_anim_299(){
addFrameScript(0, frame1, 47, frame48);
}
function frame1(){
stop();
}
function frame48(){
stop();
}
}
}//package PnC_Game_fla
Section 100
//l2_gladiator_all_309 (PnC_Game_fla.l2_gladiator_all_309)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l2_gladiator_all_309 extends MovieClip {
public function l2_gladiator_all_309(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 101
//l2_gladiator_body_312 (PnC_Game_fla.l2_gladiator_body_312)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l2_gladiator_body_312 extends MovieClip {
public var gladiator_sword:MovieClip;
}
}//package PnC_Game_fla
Section 102
//l2_gladiator_invitation_317 (PnC_Game_fla.l2_gladiator_invitation_317)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l2_gladiator_invitation_317 extends MovieClip {
public function l2_gladiator_invitation_317(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
}
}
}//package PnC_Game_fla
Section 103
//l2_gladiator_kick_318 (PnC_Game_fla.l2_gladiator_kick_318)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l2_gladiator_kick_318 extends MovieClip {
public function l2_gladiator_kick_318(){
addFrameScript(13, frame14, 28, frame29);
}
function frame14(){
MovieClip(parent.parent).jf.playAnim("die1", function (){
MovieClip(parent.parent).lose();
});
}
function frame29(){
stop();
}
}
}//package PnC_Game_fla
Section 104
//l3_board_268 (PnC_Game_fla.l3_board_268)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_board_268 extends MovieClip {
public function l3_board_268(){
addFrameScript(0, frame1, 33, frame34, 37, frame38);
}
function frame1(){
stop();
}
function frame34(){
stop();
}
function frame38(){
stop();
}
}
}//package PnC_Game_fla
Section 105
//l4_main_196 (PnC_Game_fla.l4_main_196)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l4_main_196 extends MovieClip {
public var hero:MovieClip;
public var wheelbarrow:MovieClip;
public var brick:MovieClip;
public var barrel:MovieClip;
public var horse:MovieClip;
public var rope:MovieClip;
public var chariot:MovieClip;
public function l4_main_196(){
addFrameScript(0, frame1, 1, frame2, 8, frame9, 48, frame49, 49, frame50, 67, frame68, 107, frame108, 108, frame109, 148, frame149, 184, frame185, 185, frame186, 0x0100, frame257);
}
function frame186(){
horse.gotoAndStop("move");
chariot.gotoAndStop("move");
}
function frame1(){
stop();
}
function frame109(){
horse.gotoAndStop("move");
chariot.gotoAndStop("move");
}
function frame185(){
MovieClip(parent).lose();
stop();
}
function frame9(){
horse.gotoAndStop("stand");
chariot.gotoAndStop("stand");
MovieClip(parent).sPlayer1.stopSound();
}
function frame108(){
MovieClip(parent).lose();
stop();
}
function frame2(){
horse.gotoAndStop("move");
chariot.gotoAndStop("move");
}
function frame49(){
MovieClip(parent).lose();
stop();
}
function frame257(){
MovieClip(parent).win();
MovieClip(parent).sPlayer1.stopSound();
stop();
}
function frame50(){
horse.gotoAndStop("move");
chariot.gotoAndStop("move");
}
function frame149(){
horse.gotoAndStop("fall");
chariot.gotoAndStop("stand");
MovieClip(parent).sPlayer1.stopSound();
}
function frame68(){
horse.gotoAndStop("stand");
chariot.gotoAndStop("stand");
wheelbarrow.play();
MovieClip(parent).sPlayer1.stopSound();
}
}
}//package PnC_Game_fla
Section 106
//l4_smoke_256 (PnC_Game_fla.l4_smoke_256)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l4_smoke_256 extends MovieClip {
public function l4_smoke_256(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package PnC_Game_fla
Section 107
//l4_wheelbarrow_200 (PnC_Game_fla.l4_wheelbarrow_200)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l4_wheelbarrow_200 extends MovieClip {
public function l4_wheelbarrow_200(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package PnC_Game_fla
Section 108
//l5_gate_141 (PnC_Game_fla.l5_gate_141)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_gate_141 extends MovieClip {
public function l5_gate_141(){
addFrameScript(0, frame1, 47, frame48);
}
function frame1(){
stop();
}
function frame48(){
stop();
}
}
}//package PnC_Game_fla
Section 109
//L5_gladiator_2_all_166 (PnC_Game_fla.L5_gladiator_2_all_166)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_2_all_166 extends MovieClip {
public var panic:MovieClip;
public function L5_gladiator_2_all_166(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame5(){
stop();
}
}
}//package PnC_Game_fla
Section 110
//L5_gladiator_2_head_set_177 (PnC_Game_fla.L5_gladiator_2_head_set_177)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_2_head_set_177 extends MovieClip {
public function L5_gladiator_2_head_set_177(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 111
//L5_gladiator_2_kick_170 (PnC_Game_fla.L5_gladiator_2_kick_170)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L5_gladiator_2_kick_170 extends MovieClip {
public function L5_gladiator_2_kick_170(){
addFrameScript(8, frame9, 23, frame24);
}
function frame24(){
stop();
}
function frame9(){
MovieClip(parent.parent).jf.playAnim("die1", function (){
MovieClip(parent.parent).lose();
});
}
}
}//package PnC_Game_fla
Section 112
//L5_gladiator_2_panic_176 (PnC_Game_fla.L5_gladiator_2_panic_176)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L5_gladiator_2_panic_176 extends MovieClip {
public function L5_gladiator_2_panic_176(){
addFrameScript(65, frame66);
}
function frame66(){
MovieClip(parent.parent).glad3.visible = false;
MovieClip(parent).gotoAndStop(8);
}
}
}//package PnC_Game_fla
Section 113
//L5_gladiator_2_panic_anim_178 (PnC_Game_fla.L5_gladiator_2_panic_anim_178)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_2_panic_anim_178 extends MovieClip {
public function L5_gladiator_2_panic_anim_178(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package PnC_Game_fla
Section 114
//L5_gladiator_2_plate_171 (PnC_Game_fla.L5_gladiator_2_plate_171)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L5_gladiator_2_plate_171 extends MovieClip {
public var gladiator_sword:MovieClip;
public function L5_gladiator_2_plate_171(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
MovieClip(parent.parent).glad2.gotoAndStop(5);
}
}
}//package PnC_Game_fla
Section 115
//L5_gladiator_3_all_185 (PnC_Game_fla.L5_gladiator_3_all_185)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_3_all_185 extends MovieClip {
public var panic:MovieClip;
public function L5_gladiator_3_all_185(){
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 116
//L5_gladiator_3_head_set_184 (PnC_Game_fla.L5_gladiator_3_head_set_184)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_3_head_set_184 extends MovieClip {
public function L5_gladiator_3_head_set_184(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package PnC_Game_fla
Section 117
//L5_gladiator_3_kick_188 (PnC_Game_fla.L5_gladiator_3_kick_188)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_3_kick_188 extends MovieClip {
public function L5_gladiator_3_kick_188(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package PnC_Game_fla
Section 118
//L5_gladiator_3_panic_189 (PnC_Game_fla.L5_gladiator_3_panic_189)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_3_panic_189 extends MovieClip {
public function L5_gladiator_3_panic_189(){
addFrameScript(65, frame66);
}
function frame66(){
gotoAndPlay(61);
}
}
}//package PnC_Game_fla
Section 119
//L5_gladiator_all_150 (PnC_Game_fla.L5_gladiator_all_150)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_all_150 extends MovieClip {
public function L5_gladiator_all_150(){
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 120
//L5_gladiator_body_153 (PnC_Game_fla.L5_gladiator_body_153)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_body_153 extends MovieClip {
public var gladiator_sword:MovieClip;
}
}//package PnC_Game_fla
Section 121
//L5_gladiator_head_panick_165 (PnC_Game_fla.L5_gladiator_head_panick_165)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_head_panick_165 extends MovieClip {
public function L5_gladiator_head_panick_165(){
addFrameScript(10, frame11);
}
function frame11(){
gotoAndPlay(5);
}
}
}//package PnC_Game_fla
Section 122
//L5_gladiator_helmet_1_164 (PnC_Game_fla.L5_gladiator_helmet_1_164)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_helmet_1_164 extends MovieClip {
public function L5_gladiator_helmet_1_164(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PnC_Game_fla
Section 123
//L5_gladiator_kick_159 (PnC_Game_fla.L5_gladiator_kick_159)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L5_gladiator_kick_159 extends MovieClip {
public function L5_gladiator_kick_159(){
addFrameScript(8, frame9, 23, frame24);
}
function frame24(){
stop();
}
function frame9(){
MovieClip(parent.parent).jf.playAnim("die1", function (){
MovieClip(parent.parent).lose();
});
}
}
}//package PnC_Game_fla
Section 124
//L5_gladiator_take_helmet_161 (PnC_Game_fla.L5_gladiator_take_helmet_161)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_take_helmet_161 extends MovieClip {
public function L5_gladiator_take_helmet_161(){
addFrameScript(78, frame79);
}
function frame79(){
gotoAndPlay(60);
}
}
}//package PnC_Game_fla
Section 125
//L5_gladiator_take_helmet_anim_160 (PnC_Game_fla.L5_gladiator_take_helmet_anim_160)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L5_gladiator_take_helmet_anim_160 extends MovieClip {
public function L5_gladiator_take_helmet_anim_160(){
addFrameScript(170, frame171);
}
function frame171(){
stop();
}
}
}//package PnC_Game_fla
Section 126
//l6_flag_86 (PnC_Game_fla.l6_flag_86)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_flag_86 extends MovieClip {
public function l6_flag_86(){
addFrameScript(0, frame1, 72, frame73, 80, frame81);
}
function frame73(){
gotoAndPlay(57);
}
function frame81(){
stop();
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 127
//L6_gladiator_all_58 (PnC_Game_fla.L6_gladiator_all_58)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L6_gladiator_all_58 extends MovieClip {
public function L6_gladiator_all_58(){
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 128
//L6_gladiator_body_61 (PnC_Game_fla.L6_gladiator_body_61)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L6_gladiator_body_61 extends MovieClip {
public var gladiator_sword:MovieClip;
}
}//package PnC_Game_fla
Section 129
//L6_gladiator_down_69 (PnC_Game_fla.L6_gladiator_down_69)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L6_gladiator_down_69 extends MovieClip {
public function L6_gladiator_down_69(){
addFrameScript(50, frame51);
}
function frame51(){
stop();
}
}
}//package PnC_Game_fla
Section 130
//L6_gladiator_kick_68 (PnC_Game_fla.L6_gladiator_kick_68)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L6_gladiator_kick_68 extends MovieClip {
public function L6_gladiator_kick_68(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package PnC_Game_fla
Section 131
//L6_lion_70 (PnC_Game_fla.L6_lion_70)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L6_lion_70 extends MovieClip {
public function L6_lion_70(){
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 132
//l6_lion_71 (PnC_Game_fla.l6_lion_71)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_lion_71 extends MovieClip {
public function l6_lion_71(){
addFrameScript(287, frame288);
}
function frame288(){
gotoAndPlay(1);
}
}
}//package PnC_Game_fla
Section 133
//l6_lion_run_84 (PnC_Game_fla.l6_lion_run_84)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l6_lion_run_84 extends MovieClip {
public function l6_lion_run_84(){
addFrameScript(23, frame24, 54, frame55);
}
function frame24(){
if (MovieClip(parent.parent).ifThis("flag_ok")){
MovieClip(parent.parent).flag.gotoAndPlay(74);
};
}
function frame55(){
stop();
if (MovieClip(parent.parent).ifThis("flag_ok")){
MovieClip(parent.parent).win();
};
}
}
}//package PnC_Game_fla
Section 134
//l6_lion_run_without_rope_85 (PnC_Game_fla.l6_lion_run_without_rope_85)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class l6_lion_run_without_rope_85 extends MovieClip {
public function l6_lion_run_without_rope_85(){
addFrameScript(23, frame24, 54, frame55);
}
function frame24(){
if (MovieClip(parent.parent).ifThis("flag_ok")){
MovieClip(parent.parent).flag.gotoAndPlay(74);
};
MovieClip(parent.parent).glad.gotoAndStop(2);
}
function frame55(){
stop();
}
}
}//package PnC_Game_fla
Section 135
//L6_walk_anim_66 (PnC_Game_fla.L6_walk_anim_66)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class L6_walk_anim_66 extends MovieClip {
public function L6_walk_anim_66(){
addFrameScript(93, frame94, 109, frame110);
}
function frame94(){
MovieClip(parent.parent).jf.playAnim("die1", function (){
MovieClip(parent.parent).lose();
});
}
function frame110(){
stop();
}
}
}//package PnC_Game_fla
Section 136
//levelEndPicture_32 (PnC_Game_fla.levelEndPicture_32)
package PnC_Game_fla {
import flash.display.*;
public dynamic class levelEndPicture_32 extends MovieClip {
public function levelEndPicture_32(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 137
//logo_23 (PnC_Game_fla.logo_23)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class logo_23 extends MovieClip {
public function logo_23(){
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 138
//logo_4 (PnC_Game_fla.logo_4)
package PnC_Game_fla {
import flash.display.*;
public dynamic class logo_4 extends MovieClip {
public function logo_4(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package PnC_Game_fla
Section 139
//Logotype_383 (PnC_Game_fla.Logotype_383)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Logotype_383 extends MovieClip {
public function Logotype_383(){
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 140
//mainMenuBtn_28 (PnC_Game_fla.mainMenuBtn_28)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class mainMenuBtn_28 extends MovieClip {
public var hitMc:MovieClip;
public function mainMenuBtn_28(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onMouseOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
this.hitArea = hitMc;
addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
addEventListener(MouseEvent.CLICK, onClick);
}
public function onMouseOut(_arg1:MouseEvent):void{
gotoAndPlay("up");
}
function frame9(){
play();
}
function frame8(){
stop();
}
function frame2(){
play();
}
public function onClick(_arg1:MouseEvent):void{
Console.enterMainMenu();
}
}
}//package PnC_Game_fla
Section 141
//MainTimeline (PnC_Game_fla.MainTimeline)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var message:MovieClip;
public var prel:MovieClip;
public var memDisplay:MovieClip;
public var console:MovieClip;
public var hat2;
public var allowRun: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);
}
function frame3(){
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;
};
hat2 = true;
}
function frame1(){
trace("+------------------------------------------------+");
trace("| PRELOADER |");
trace("+------------------------------------------------+");
stop();
allowRun = true;
Game.sitelock = false;
Game.gamemode = "normal";
Game.helplink = "http://www.abroy.com/play/adventure-games/gabriel-the-gladiator-walkthrough/";
if (Game.sitelock){
if (loaderInfo.url.indexOf("http://www.abroy.com") == -1){
allowRun = false;
};
};
if (allowRun){
loaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
} else {
prel.pr_body.gotoAndStop(1);
visible = false;
};
}
function frame4(){
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 showProgress(_arg1:ProgressEvent):void{
var _local2:Number;
var _local3:Number;
_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(){
trace("+------------------------------------------------+");
trace("| EXPORT CLASSES |");
trace("+------------------------------------------------+");
nextFrame();
}
public function onGameKeyDown(_arg1:KeyboardEvent):void{
if (Game.inst){
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 142
//MemoryDisplay_358 (PnC_Game_fla.MemoryDisplay_358)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public dynamic class MemoryDisplay_358 extends MovieClip {
public var _tf:TextField;
public function MemoryDisplay_358(){
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 143
//menuMain_355 (PnC_Game_fla.menuMain_355)
package PnC_Game_fla {
import flash.display.*;
public dynamic class menuMain_355 extends MovieClip {
public var buttonMoreGames:MovieClip;
public var buttonPlay:MovieClip;
}
}//package PnC_Game_fla
Section 144
//Message_384 (PnC_Game_fla.Message_384)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Message_384 extends MovieClip {
public function Message_384(){
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 145
//moreGamesBtn_30 (PnC_Game_fla.moreGamesBtn_30)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class moreGamesBtn_30 extends MovieClip {
public var hitMc:MovieClip;
public function moreGamesBtn_30(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onMouseOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
this.hitArea = hitMc;
addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
addEventListener(MouseEvent.CLICK, onClick);
}
public function onMouseOut(_arg1:MouseEvent):void{
gotoAndPlay("up");
}
function frame9(){
play();
}
function frame8(){
stop();
}
function frame2(){
play();
}
public function onClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.abroy.com"), "_blank");
}
}
}//package PnC_Game_fla
Section 146
//MuteButton_380 (PnC_Game_fla.MuteButton_380)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class MuteButton_380 extends MovieClip {
public var hit_mc:MovieClip;
public function MuteButton_380(){
addFrameScript(0, frame1, 1, frame2);
}
public function setVolume(_arg1:Number):void{
SoundMixer.soundTransform = new SoundTransform(_arg1);
}
function frame1(){
stop();
this.hitArea = hit_mc;
hit_mc.visible = false;
mouseChildren = false;
buttonMode = true;
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 147
//nextBtn_33 (PnC_Game_fla.nextBtn_33)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class nextBtn_33 extends MovieClip {
public var hitMc:MovieClip;
public function nextBtn_33(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onMouseOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
this.hitArea = hitMc;
addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
addEventListener(MouseEvent.CLICK, onClick);
}
public function onMouseOut(_arg1:MouseEvent):void{
gotoAndPlay("up");
}
function frame9(){
play();
}
function frame8(){
stop();
}
function frame2(){
play();
}
public function onClick(_arg1:MouseEvent):void{
Console.nextEpisode();
}
}
}//package PnC_Game_fla
Section 148
//play_btn_11 (PnC_Game_fla.play_btn_11)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class play_btn_11 extends MovieClip {
public var hit_mc:MovieClip;
public function play_btn_11(){
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 149
//playBtn_377 (PnC_Game_fla.playBtn_377)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class playBtn_377 extends MovieClip {
public var hitMc:MovieClip;
public function playBtn_377(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 11, frame12);
}
public function onMouseOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame12(){
play();
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
this.hitArea = hitMc;
addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
addEventListener(MouseEvent.CLICK, onClick);
}
public function onMouseOut(_arg1:MouseEvent):void{
gotoAndPlay("up");
}
function frame2(){
play();
}
function frame11(){
stop();
}
public function onClick(_arg1:MouseEvent):void{
if (Console.currentEpisode){
Console.currentEpisode.start();
Console.hidePrologue();
};
}
}
}//package PnC_Game_fla
Section 150
//playBtn_38 (PnC_Game_fla.playBtn_38)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class playBtn_38 extends MovieClip {
public var hitMc:MovieClip;
public function playBtn_38(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 11, frame12);
}
public function onMouseOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame12(){
play();
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
this.hitArea = hitMc;
addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
addEventListener(MouseEvent.CLICK, onClick);
}
public function onMouseOut(_arg1:MouseEvent):void{
gotoAndPlay("up");
}
function frame2(){
play();
}
function frame11(){
stop();
}
public function onClick(_arg1:MouseEvent):void{
Console.playEpisode("first");
}
}
}//package PnC_Game_fla
Section 151
//preloadBar_2 (PnC_Game_fla.preloadBar_2)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
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 152
//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, 53, frame54, 102, frame103, 110, frame111, 124, frame125);
}
function frame1(){
stop();
prel = root["prel"];
CPMStarPoolID = 18840;
CPMStarSubPoolID = 91;
ad = AdLoader.LoadAd(CPMStarPoolID, CPMStarSubPoolID);
adBox.addChild(ad);
}
function frame103(){
}
function frame111(){
}
function frame125(){
stop();
}
function frame54(){
}
}
}//package PnC_Game_fla
Section 153
//Prolog_01_366 (PnC_Game_fla.Prolog_01_366)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Prolog_01_366 extends MovieClip {
public var playBtn:MovieClip;
public var ready:Boolean;
public function Prolog_01_366(){
addFrameScript(0, frame1, 279, frame280);
}
function frame280(){
stop();
}
function frame1(){
stop();
ready = true;
}
}
}//package PnC_Game_fla
Section 154
//Prologue_365 (PnC_Game_fla.Prologue_365)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Prologue_365 extends MovieClip {
public var images:MovieClip;
public function Prologue_365(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 155
//retryBtn_20 (PnC_Game_fla.retryBtn_20)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class retryBtn_20 extends MovieClip {
public var hitMc:MovieClip;
public function retryBtn_20(){
addFrameScript(0, frame1, 1, frame2, 10, frame11, 11, frame12);
}
public function onMouseOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame12(){
play();
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
this.hitArea = hitMc;
addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
addEventListener(MouseEvent.CLICK, onClick);
}
public function onMouseOut(_arg1:MouseEvent):void{
gotoAndPlay("up");
}
function frame2(){
play();
}
function frame11(){
stop();
}
public function onClick(_arg1:MouseEvent):void{
Console.replayEpisode();
}
}
}//package PnC_Game_fla
Section 156
//rock_anim_198 (PnC_Game_fla.rock_anim_198)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class rock_anim_198 extends MovieClip {
public function rock_anim_198(){
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
MovieClip(parent.parent).playEff3();
}
}
}//package PnC_Game_fla
Section 157
//sc03_ringsAll_257 (PnC_Game_fla.sc03_ringsAll_257)
package PnC_Game_fla {
import flash.display.*;
public dynamic class sc03_ringsAll_257 extends MovieClip {
public function sc03_ringsAll_257(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package PnC_Game_fla
Section 158
//scrollerH_395 (PnC_Game_fla.scrollerH_395)
package PnC_Game_fla {
import flash.display.*;
public dynamic class scrollerH_395 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 159
//scrollerV_390 (PnC_Game_fla.scrollerV_390)
package PnC_Game_fla {
import flash.display.*;
public dynamic class scrollerV_390 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 160
//skipBtn_370 (PnC_Game_fla.skipBtn_370)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class skipBtn_370 extends MovieClip {
public var hitMc:MovieClip;
public function skipBtn_370(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 8, frame9);
}
public function onMouseOver(_arg1:MouseEvent):void{
gotoAndPlay("over");
}
function frame1(){
stop();
mouseChildren = false;
buttonMode = true;
this.hitArea = hitMc;
addEventListener(MouseEvent.ROLL_OVER, onMouseOver);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
addEventListener(MouseEvent.CLICK, onClick);
}
public function onMouseOut(_arg1:MouseEvent):void{
gotoAndPlay("up");
}
function frame9(){
play();
}
function frame8(){
stop();
}
function frame2(){
play();
}
public function onClick(_arg1:MouseEvent):void{
if (Console.currentEpisode){
Console.currentEpisode.start();
Console.hidePrologue();
};
}
}
}//package PnC_Game_fla
Section 161
//sonya_44 (PnC_Game_fla.sonya_44)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class sonya_44 extends MovieClip {
public function sonya_44(){
addFrameScript(0, frame1);
}
public function a11(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.abroy.com/play/adventure-games/albert-the-alien/"), "_blank");
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, a11);
}
}
}//package PnC_Game_fla
Section 162
//SPFDisplay_359 (PnC_Game_fla.SPFDisplay_359)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public dynamic class SPFDisplay_359 extends MovieClip {
public var _tf:TextField;
public var begTime:Number;
public function SPFDisplay_359(){
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 163
//sprite_108 (PnC_Game_fla.sprite_108)
package PnC_Game_fla {
import flash.display.*;
public dynamic class sprite_108 extends MovieClip {
public function sprite_108(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package PnC_Game_fla
Section 164
//sprite_238 (PnC_Game_fla.sprite_238)
package PnC_Game_fla {
import flash.display.*;
public dynamic class sprite_238 extends MovieClip {
public function sprite_238(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package PnC_Game_fla
Section 165
//Story_362 (PnC_Game_fla.Story_362)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Story_362 extends MovieClip {
public function Story_362(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 166
//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 167
//Anim_Trap2 (Anim_Trap2)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public dynamic class Anim_Trap2 extends MovieClip {
public var timer:Timer;
public function Anim_Trap2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
timer = new Timer(1500, 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
timer.start();
}
function frame2(){
stop();
Console.currentEpisode.externalCall();
}
public function onTimerComplete(_arg1:TimerEvent):void{
nextFrame();
}
}
}//package
Section 168
//Anim_Trap3 (Anim_Trap3)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public dynamic class Anim_Trap3 extends MovieClip {
public var timer:Timer;
public function Anim_Trap3(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
timer = new Timer(1500, 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
timer.start();
}
function frame2(){
stop();
Console.currentEpisode.externalCall();
}
public function onTimerComplete(_arg1:TimerEvent):void{
nextFrame();
}
}
}//package
Section 169
//Anim_Trap4 (Anim_Trap4)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public dynamic class Anim_Trap4 extends MovieClip {
public var timer:Timer;
public function Anim_Trap4(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
timer = new Timer(1500, 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
timer.start();
}
function frame2(){
stop();
Console.currentEpisode.externalCall();
}
public function onTimerComplete(_arg1:TimerEvent):void{
nextFrame();
}
}
}//package
Section 170
//Anim_Trap5 (Anim_Trap5)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public dynamic class Anim_Trap5 extends MovieClip {
public var timer:Timer;
public function Anim_Trap5(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
timer = new Timer(1500, 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
timer.start();
}
function frame2(){
stop();
Console.currentEpisode.externalCall();
}
public function onTimerComplete(_arg1:TimerEvent):void{
nextFrame();
}
}
}//package
Section 171
//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 172
//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 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.currentEpisode.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.currentEpisode.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.currentEpisode.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.currentEpisode.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 173
//CommandProcessor (CommandProcessor)
package {
public class CommandProcessor {
public static function process(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:String;
var _local5:*;
var _local6:Array;
var _local7:Number;
var _local8:Number;
_local2 = _arg1.split(" ", 2);
_local3 = _local2[0];
_local4 = _local2[1];
if (Game.inst){
_local5 = Game.inst.root["getChildByName"]("console");
};
if (_local5){
switch (_local3){
case "mainMenu":
Console.enterMainMenu();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "setHintFillTime":
Console.setHintFillTime(Number(_local4));
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "setHintIdleTime":
Console.setHintIdleTime(Number(_local4));
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "redefineHintTimer":
_local6 = _local4.split(",");
_local7 = Number(_local6[0]);
_local8 = Number(_local6[1]);
Console.redefineHintTimer(_local7, _local8);
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "playEpisode":
Console.playEpisode(_local4);
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "replayEpisode":
Console.replayEpisode(_local4);
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "nextEpisode":
Console.nextEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "prevEpisode":
Console.prevEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "pause":
Console.currentEpisode.action = false;
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "resume":
Console.currentEpisode.action = true;
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "loseEpisode":
Console.loseEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "winEpisode":
Console.winEpisode();
_local5.addHistory(((_local3 + " : ") + _local4));
break;
case "help":
_local5.addHistory(((_local3 + " : ") + _local4));
_local5.addMessage("Commands list:");
_local5.addMessage(" mainMenu ()");
_local5.addMessage(" setHintFillTime (arg1)");
_local5.addMessage(" arg1 - число секунд заполнения");
_local5.addMessage(" setHintIdleTime (arg1)");
_local5.addMessage(" arg1 - число секунд бездействия");
_local5.addMessage(" redefineHintTimer (arg1, arg2)");
_local5.addMessage(" arg1 - число секунд заполнения;");
_local5.addMessage(" arg2 - число секунд бездействия");
_local5.addMessage(" playEpisode (arg1)");
_local5.addMessage(" arg1 - имя эпизода или ничего");
_local5.addMessage(" replayEpisode (arg1)");
_local5.addMessage(" arg1 - имя эпизода или ничего");
_local5.addMessage(" nextEpisode ()");
_local5.addMessage(" prevEpisode ()");
_local5.addMessage(" loseEpisode ()");
_local5.addMessage(" winEpisode ()");
_local5.addMessage(" pausee ()");
_local5.addMessage(" resume ()");
_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 174
//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 registerEpilogue(_arg1:String, _arg2):void{
if (Game.inst){
Game.inst.registerEpilogue(_arg1, _arg2);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "registerEpilogue");
};
}
public static function get currentEpisode():Episode{
if (Game.inst){
return (Game.inst.getCurrentEpisode());
};
Tracer.report("[X]", "Game wasn't initialized.", "Console", "currentEpisode");
return (null);
}
public static function enterMainGame():void{
if (pac_game){
pac_game.gotoAndStop("game");
};
}
public static function isNextEpisode():Boolean{
if (Game.inst){
return (Game.inst.isNextEpisode());
};
Tracer.report("[X]", "Game wasn't initialized.", "Console", "isNextEpisode");
return (false);
}
public static function winEpisode():void{
if (Game.inst){
if (currentEpisode){
Game.inst.hidePrologue();
Game.inst.hideEpilogue();
Game.inst.story.visible = true;
currentEpisode.win();
} else {
Tracer.report("[X]", "No current episode.", "Console", "winEpisode");
};
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "winEpisode");
};
}
public static function prevEpisode():void{
if (Game.inst){
Game.inst.prevEpisode();
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "prevEpisode");
};
}
public static function registerPrologue(_arg1:String, _arg2):void{
if (Game.inst){
Game.inst.registerPrologue(_arg1, _arg2);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "registerPrologue");
};
}
public static function isPrevEpisode():Boolean{
if (Game.inst){
return (Game.inst.isPrevEpisode());
};
Tracer.report("[X]", "Game wasn't initialized.", "Console", "isPrevEpisode");
return (false);
}
public static function nextEpisode():void{
if (Game.inst){
Game.inst.nextEpisode();
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "nextEpisode");
};
}
public static function redefineHintTimer(_arg1:Number, _arg2:Number):void{
if ((((_arg1 > 0)) || ((_arg2 > 0)))){
if (currentEpisode){
currentEpisode.redefineHintTimer(_arg1, _arg2);
};
};
}
public static function showEpilogue(_arg1:String):void{
if (Game.inst){
Game.inst.showEpilogue(_arg1);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "showEpilogue");
};
}
public static function getEpisodeIndex(_arg1:String=null):uint{
if (Game.inst){
return (Game.inst.getEpisodeIndex(_arg1));
};
Tracer.report("[X]", "Game wasn't initialized.", "Console", "getEpisodeIndex");
return (NaN);
}
public static function registerEpisode(_arg1:String, _arg2:uint):void{
if (Game.inst){
Game.inst.registerEpisode(_arg1, _arg2);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "registerEpisode");
};
}
public static function enableAction():void{
if (Game.inst){
Game.inst.enableAction();
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "enableAction");
};
}
public static function replayEpisode(_arg1:String=null):void{
if (Game.inst){
Game.inst.replayEpisode(_arg1);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "replayEpisode");
};
}
public static function unregisterEpisode(_arg1:String):void{
if (Game.inst){
Game.inst.unregisterEpisode(_arg1);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "unregisterEpisode");
};
}
public static function setHintFillTime(_arg1:Number):void{
if (_arg1 > 0){
if (currentEpisode){
currentEpisode.redefineHintTimer(_arg1);
};
};
}
public static function unregisterEpilogue(_arg1:String):void{
if (Game.inst){
Game.inst.unregisterEpilogue(_arg1);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "unregisterEpilogue");
};
}
public static function unregisterPrologue(_arg1:String):void{
if (Game.inst){
Game.inst.unregisterPrologue(_arg1);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "unregisterPrologue");
};
}
public static function showPrologue(_arg1:String):void{
if (Game.inst){
Game.inst.showPrologue(_arg1);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "showPrologue");
};
}
public static function loseEpisode():void{
if (Game.inst){
if (currentEpisode){
Game.inst.hidePrologue();
Game.inst.hideEpilogue();
Game.inst.story.visible = true;
currentEpisode.lose();
} else {
Tracer.report("[X]", "No current episode.", "Console", "loseEpisode");
};
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "loseEpisode");
};
}
public static function playEpisode(_arg1:String=null):void{
if (Game.inst){
Game.inst.playEpisode(_arg1);
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "playEpisode");
};
}
public static function hidePrologue():void{
if (Game.inst){
Game.inst.hidePrologue();
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "hidePrologue");
};
}
public static function setHintIdleTime(_arg1:Number):void{
if (_arg1 > 0){
if (currentEpisode){
currentEpisode.redefineHintTimer(-1, _arg1);
};
};
}
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 enterMainMenu():void{
if (pac_game){
if (currentEpisode){
Game.inst.closeEpisode();
};
Utils.disposeDisplayObject(Game.inst);
pac_game.gotoAndStop("menu");
};
}
public static function getEpisodeName(_arg1:uint=0):String{
if (Game.inst){
return (Game.inst.getEpisodeName(_arg1));
};
Tracer.report("[X]", "Game wasn't initialized.", "Console", "getEpisodeName");
return ("");
}
public static function getCurrentEpisode():Episode{
if (Game.inst){
return (Game.inst.getCurrentEpisode());
};
Tracer.report("[X]", "Game wasn't initialized.", "Console", "getCurrentEpisode");
return (null);
}
public static function startEpisode():void{
if (Game.inst){
Game.inst.startEpisode();
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "startEpisode");
};
}
public static function hideEpilogue():void{
if (Game.inst){
Game.inst.hideEpilogue();
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "hideEpilogue");
};
}
public static function disableAction():void{
if (Game.inst){
Game.inst.disableAction();
} else {
Tracer.report("[X]", "Game wasn't initialized.", "Console", "disableAction");
};
}
}
}//package
Section 175
//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 176
//Episode (Episode)
package {
import flash.display.*;
import flash.events.*;
import com.greensock.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
public class Episode extends MovieClip {
public var wine:MovieClip;
private var itemsRegistry:Object;
public var finalize:Function;// = null
public var lion:MovieClip;
public var extCall:Function;// = null
public var action:Boolean;
public var cleanOut:Function;// = null
private var endTime:Number;
private var activatorsRegistry:Object;
public var stone:MovieClip;
private var bonusTimer:Timer;
public var hintIdleTime:Number;// = 30
public var helmet:MovieClip;
private var eventsRegistry:Object;
public var countTime:Number;// = 0
public var epicScene:MovieClip;
public var state:String;// = "NONE"
public var hintFillTime:Number;// = 60
public var score:int;// = 0
public var knife:MovieClip;
public var effect2:MovieClip;
public var effect3:MovieClip;
public var effect1:MovieClip;
public var gate:MovieClip;
public var time:Number;
public var armor2:MovieClip;
private var animationsRegistry:Object;
private var hintFillTimer:Timer;
private var player:Sprite;
public var amfora:MovieClip;
public var board:MovieClip;
public var intCall:Function;// = null
private var waypointsRegistry:Object;
public var waitForReady:Boolean;
public var rope:MovieClip;
public var extISet:Array;
public var do1:MovieClip;
public var do3:MovieClip;
public var do4:MovieClip;
public var do2:MovieClip;
public var axe:MovieClip;
private var hintIdleTimer:Timer;
public var hook:MovieClip;
public var plate:MovieClip;
public var showHint:Function;// = null
private var begHintFillTime:Number;
public var jf:hero;
public var armor:MovieClip;
public var mavr:MovieClip;
public var wine_pour:MovieClip;
public var apple:MovieClip;
public var helmet2:MovieClip;
public var glad1:MovieClip;
public var glad2:MovieClip;
public var glad3:MovieClip;
private var begTime:Number;
public var flag:MovieClip;
public var shield:MovieClip;
public var man:MovieClip;
public var inventory:Inventory;
private var hintReady:Boolean;// = false
public var initialize:Function;// = null
public var bonusTime:Number;// = 0
public var door:MovieClip;
public var niger:MovieClip;
public var glad:MovieClip;
public var whip:MovieClip;
public var oil:MovieClip;
public var intISet:Array;
public var spear:MovieClip;
private var camera_t:Sprite;
private var camera_x:Number;
private var camera_y:Number;
public var sword:MovieClip;
public function Episode(){
bonusTime = 0;
countTime = 0;
hintFillTime = 60;
hintIdleTime = 30;
showHint = null;
hintReady = false;
initialize = null;
finalize = null;
cleanOut = null;
intCall = null;
extCall = null;
score = 0;
state = "NONE";
super();
state = "CREATED";
init();
Tracer.report("[$]", "EPISODE_CREATED");
}
private function startHintIdleTimer():void{
hintIdleTimer.start();
}
public function addAnimation(_arg1:String, _arg2:MovieClip, _arg3:Object):Boolean{
if (!animationsRegistry[_arg1]){
animationsRegistry[_arg1] = new Animation(_arg1, this, _arg2, _arg3);
return (true);
};
Tracer.report("[X]", "Animation already registered.", "Episode");
return (false);
}
public function stopBonusTimer():void{
if (bonusTimer){
if (bonusTimer.running){
bonusTimer.stop();
};
};
}
private function resetHintIdleTimer():void{
hintIdleTimer.reset();
}
public function listInventoryItems():void{
inventory.listItems();
}
public function getHintFill():Number{
var _local1:Number;
if (hintFillTime > 0){
if (hintFillTimer){
if (hintFillTimer.running){
_local1 = ((getTimer() - begHintFillTime) / (1000 * hintFillTime));
if (_local1 > 1){
_local1 = 1;
};
return (_local1);
} else {
if (hintReady){
return (1);
};
return (0);
};
} else {
return (0);
};
//unresolved jump
};
return (1);
}
public function listAnimationsRegistry():void{
var _local1:uint;
var _local2:*;
trace("[S] LIST: animationsRegistry:");
_local1 = 0;
for (_local2 in animationsRegistry) {
trace((((" - " + _local2) + " = ") + animationsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function setupEvent(_arg1:String, _arg2:Boolean):Boolean{
if (eventsRegistry[_arg1] != null){
eventsRegistry[_arg1] = _arg2;
return (true);
};
Tracer.report("[X]", "Event isn't registered.", "Episode");
return (false);
}
private function stopHintIdleTimer():void{
hintIdleTimer.stop();
}
public function listItemsRegistry():void{
var _local1:uint;
var _local2:*;
trace("[S] LIST: itemsRegistry:");
_local1 = 0;
for (_local2 in itemsRegistry) {
trace((((" - " + _local2) + " = ") + itemsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function makeItem(_arg1:String, _arg2:Array, _arg3:Number=0, _arg4:Function=null, _arg5:String=null):Boolean{
var i:uint;
var iLim:uint;
var timer:Timer;
var makeIt:Function;
var name = _arg1;
var materials = _arg2;
var time = _arg3;
var funct = _arg4;
var eventName = _arg5;
iLim = materials.length;
i = 0;
while (i < iLim) {
if (!inventory.hasItem(materials[i])){
return (false);
};
i = (i + 1);
};
if (time > 0){
makeIt = function (_arg1:TimerEvent):void{
_arg1.target.removeEventListener(TimerEvent.TIMER_COMPLETE, makeIt);
inventory.makeItem(name, materials);
if (funct != null){
funct();
};
if (eventName){
causeEvent(eventName);
};
};
timer = new Timer((time * 1000), 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, makeIt);
timer.start();
} else {
inventory.makeItem(name, materials);
if (funct != null){
funct();
};
if (eventName){
causeEvent(eventName);
};
};
return (true);
}
public function ifNotThis(_arg1:String):Boolean{
if (eventsRegistry[_arg1] == false){
return (true);
};
return (false);
}
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:String=null):Boolean{
if (!itemsRegistry[_arg1]){
itemsRegistry[_arg1] = new Item(_arg1, _arg2, _arg3, _arg4);
return (true);
};
Tracer.report("[X]", "Item already registered.", "Episode");
return (false);
}
public function start():void{
Tracer.report("[$]", "EPISODE_ATTEMPT_TO_START");
if (state == "READY"){
if (hintFillTime > 0){
hintFillTimer = new Timer(1000, 0);
hintFillTimer.addEventListener(TimerEvent.TIMER, onHintFillTimer);
startHintFillTimer();
} else {
if (hintFillTime == 0){
hintIdleTimer = new Timer((1000 * hintIdleTime), 0);
hintIdleTimer.addEventListener(TimerEvent.TIMER, onHintIdleTimer);
hintReady = true;
startHintIdleTimer();
};
};
Game.inst.hintButton.gotoAndStop(2);
if (initialize != null){
initialize();
};
Game.inst.story.visible = true;
Game.inst.hintButton.visible = true;
action = true;
state = "STARTED";
Tracer.report("[$]", "EPISODE_STARTED");
begTime = getTimer();
} else {
Tracer.report("[!]", "Episode isn't ready yet. Waiting...", "Episode");
waitForReady = true;
Tracer.report("[$]", "EPISODE_WAIT_FOR_READY");
};
}
public function startBonusTimer(_arg1:Number):void{
bonusTime = _arg1;
countTime = bonusTime;
bonusTimer = new Timer(1000, bonusTime);
bonusTimer.addEventListener(TimerEvent.TIMER, onBonusTimer);
bonusTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onBonusTimerComplete);
bonusTimer.start();
}
public function vCurveTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1, _arg6:Number=0, _arg7:Function=null, _arg8:Number=64):void{
if (_arg1){
Displacement.vCurveTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function hCurveTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1, _arg6:Number=0, _arg7:Function=null, _arg8:Number=64):void{
if (_arg1){
Displacement.hCurveTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function 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 isn't registered.", "Episode");
return (null);
}
public function moveToWaypoint(_arg1:Sprite, _arg2:String, _arg3:Function=null, _arg4:Number=64):void{
var wp:*;
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 (){
funct();
if ((wp.funct is Function)){
wp.funct();
};
}, speed);
} else {
Tracer.report("[X]", "Waypoint isn't exists.", "Episode");
};
}
public function finish():void{
if (!time){
endTime = getTimer();
time = (endTime - begTime);
Game.inst.totalTime = (Game.inst.totalTime + time);
};
if (((hintIdleTimer) && (hintIdleTimer.running))){
hintIdleTimer.reset();
};
if (((hintFillTimer) && (hintFillTimer.running))){
hintFillTimer.reset();
};
if (((bonusTimer) && (bonusTimer.running))){
bonusTimer.reset();
};
if (finalize != null){
finalize();
};
}
public function getTimeBonus():Number{
return (countTime);
}
public function erase():void{
var _local1:String;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:String;
if (((hintIdleTimer) && (hintIdleTimer.running))){
hintIdleTimer.reset();
};
if (((hintFillTimer) && (hintFillTimer.running))){
hintFillTimer.reset();
};
if (((bonusTimer) && (bonusTimer.running))){
bonusTimer.reset();
};
if (cleanOut != null){
cleanOut();
};
for (_local1 in activatorsRegistry) {
removeActivator(_local1);
};
activatorsRegistry = 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;
inventory.kill();
inventory = undefined;
bonusTime = undefined;
countTime = undefined;
bonusTimer = undefined;
camera_x = undefined;
camera_y = undefined;
camera_t = undefined;
begTime = undefined;
endTime = undefined;
hintFillTimer = undefined;
hintIdleTimer = undefined;
hintFillTime = undefined;
hintIdleTime = undefined;
showHint = undefined;
hintReady = undefined;
begHintFillTime = undefined;
initialize = undefined;
finalize = undefined;
cleanOut = undefined;
intCall = undefined;
extCall = undefined;
intISet = undefined;
extISet = undefined;
player = undefined;
score = undefined;
time = undefined;
action = undefined;
state = undefined;
waitForReady = undefined;
if (Game.banner){
Game.hideBanner();
};
}
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 cameraVia(_arg1:Array, _arg2:Function=null, _arg3:Number=128):void{
var _local4:TimelineLite;
var _local5:uint;
var _local6:uint;
var _local7:*;
var _local8:*;
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 removeWaypoint(_arg1:String):void{
if (waypointsRegistry[_arg1]){
waypointsRegistry[_arg1].kill();
waypointsRegistry[_arg1] = null;
delete waypointsRegistry[_arg1];
} else {
Tracer.report("[X]", "Waypoint isn't exists.", "Episode");
};
}
public function motionVia(_arg1:Sprite, _arg2:Array, _arg3:Function=null, _arg4:Number=128):void{
if (_arg1){
Displacement.motionVia(_arg1, _arg2, _arg3, _arg4);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function callItem(_arg1:String):Item{
if (itemsRegistry[_arg1]){
return (itemsRegistry[_arg1]);
};
Tracer.report("[X]", "Item isn't registered.", "Episode");
return (null);
}
public function forceEvent(_arg1:String):Boolean{
if (eventsRegistry[_arg1] != null){
dispatchEvent(new Event(_arg1));
return (true);
};
Tracer.report("[X]", "Event isn't registered.", "Episode");
return (false);
}
public function ifEach(_arg1:Array, _arg2:Boolean):Boolean{
var _local3:uint;
var _local4:uint;
_local3 = _arg1.length;
_local4 = 0;
while (_local4 < _local3) {
if (eventsRegistry[_arg1[_local4]] != _arg2){
return (false);
};
_local4++;
};
return (true);
}
public function listChildren():void{
var _local1:uint;
var _local2:uint;
trace("[S] LIST: children:");
_local1 = numChildren;
_local2 = 0;
while (_local2 < _local1) {
trace((((" - " + getChildAt(_local2).name) + " = ") + getChildAt(_local2)));
_local2++;
};
trace((" Total number: " + _local1));
}
public function callAnimation(_arg1:String):Animation{
if (animationsRegistry[_arg1]){
return (animationsRegistry[_arg1]);
};
Tracer.report("[X]", "Animation isn't registered.", "Episode");
return (null);
}
public function externalCall():void{
var _local1:Function;
if (extCall != null){
_local1 = extCall;
extCall = null;
_local1();
};
}
public function startHintTimer():void{
startHintFillTimer();
}
public function motionTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number=1, _arg5:Function=null, _arg6:Number=64):void{
if (_arg1){
Displacement.motionTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function internalCall():void{
var _local1:Function;
if (intCall != null){
_local1 = intCall;
intCall = null;
_local1();
};
}
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 removeActivator(_arg1:String):Boolean{
if (activatorsRegistry[_arg1]){
activatorsRegistry[_arg1].kill();
activatorsRegistry[_arg1] = null;
delete activatorsRegistry[_arg1];
return (true);
};
Tracer.report("[X]", "Activator isn't registered.", "Episode");
return (false);
}
public function redefineHintTimer(_arg1:Number=-1, _arg2:Number=-1):void{
if (hintFillTimer){
hintFillTimer.reset();
};
if (hintIdleTimer){
hintIdleTimer.reset();
};
hintReady = false;
if (_arg1 > 0){
hintFillTime = _arg1;
};
if (_arg2 > 0){
hintIdleTime = _arg2;
};
hintIdleTimer.delay = (1000 * hintIdleTime);
if (hintFillTime > 0){
startHintFillTimer();
} else {
if (hintFillTime == 0){
hintReady = true;
startHintIdleTimer();
};
};
Tracer.report("[i]", "Hint timer redefined.", "Episode");
}
private function restartHintFillTimer():void{
if (hintFillTime > 0){
hintFillTimer.reset();
hintReady = false;
begHintFillTime = getTimer();
hintFillTimer.start();
} else {
startHintIdleTimer();
};
}
public function isActivator(_arg1:String):Boolean{
if (activatorsRegistry[_arg1]){
return (true);
};
return (false);
}
private function init():void{
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 = "INITED";
}
public function applyItems(_arg1:Array, _arg2:Function=null, _arg3:String=null, _arg4:Boolean=false):Boolean{
var _local5:String;
var _local6:uint;
var _local7:uint;
_local6 = _arg1.length;
_local7 = 0;
while (_local7 < _local6) {
_local5 = _arg1[_local7];
if (itemsRegistry[_local5]){
if (inventory.hasItem(_local5)){
};
} else {
Tracer.report("[X]", "Item isn't registered.", "Episode");
return (false);
};
_local7++;
};
if (_arg4){
_local7 = 0;
while (_local7 < _local6) {
_local5 = _arg1[_local7];
inventory.removeItem(_local5);
_local7++;
};
};
if (_arg2 != null){
_arg2();
};
if (_arg3){
causeEvent(_arg3);
};
return (true);
}
public function listEventsRegistry():void{
var _local1:uint;
var _local2:*;
trace("[S] LIST: eventsRegistry:");
_local1 = 0;
for (_local2 in eventsRegistry) {
trace((((" - " + _local2) + " = ") + eventsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
private function onHintFillTimer(_arg1:TimerEvent):void{
if (hintFillTimer.currentCount >= hintFillTime){
hintFillTimer.stop();
hintReady = true;
Tracer.report("[i]", "HintTimer: filled and ready.", "Episode");
restartHintIdleTimer();
};
}
public function lose():void{
action = false;
finish();
Game.showYouAreHistoryWindow();
state = "FINISHED";
}
public function putItem(_arg1:String, _arg2=null, _arg3:Number=0, _arg4:Number=0, _arg5:Function=null, _arg6:String=null):Boolean{
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);
};
return (true);
};
} else {
Tracer.report("[X]", "Item isn't registered.", "Episode");
};
return (false);
}
public function useItem(_arg1:String, _arg2:Function=null, _arg3:String=null, _arg4:Boolean=false):Boolean{
if (itemsRegistry[_arg1]){
if (inventory.hasItem(_arg1)){
if (_arg4){
inventory.removeItem(_arg1);
};
if (_arg2 != null){
_arg2();
};
if (_arg3){
causeEvent(_arg3);
};
return (true);
};
} else {
Tracer.report("[X]", "Item isn't registered.", "Episode");
};
return (false);
}
public function disableAction():void{
action = false;
}
private function restartHintIdleTimer():void{
hintIdleTimer.reset();
hintIdleTimer.start();
}
public function ifAll():Boolean{
var _local1:String;
for (_local1 in eventsRegistry) {
if (_local1 == false){
return (false);
};
};
return (true);
}
public function stopHintTimer():void{
stopHintFillTimer();
startHintIdleTimer();
}
public function getScore():Number{
return (score);
}
public function ifThis(_arg1:String):Boolean{
if (eventsRegistry[_arg1] == true){
return (true);
};
return (false);
}
public function isItem(_arg1:String):Boolean{
if (itemsRegistry[_arg1]){
return (true);
};
return (false);
}
public function ifThese(_arg1:Array):Boolean{
var _local2:uint;
var _local3:uint;
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
if (eventsRegistry[_arg1[_local3]] == false){
return (false);
};
_local3++;
};
return (true);
}
public function unregisterItem(_arg1:String):Boolean{
if (itemsRegistry[_arg1]){
itemsRegistry[_arg1].kill();
itemsRegistry[_arg1] = null;
delete itemsRegistry[_arg1];
return (true);
};
Tracer.report("[X]", "Item isn't registered.", "Episode");
return (false);
}
private function startHintFillTimer():void{
if (hintFillTime > 0){
hintReady = false;
begHintFillTime = getTimer();
hintFillTimer.start();
} else {
startHintIdleTimer();
};
}
private function onHintIdleTimer(_arg1:TimerEvent):void{
var _local2:GlowFilter;
if (hintReady){
if (Game.inst.hintButton){
_local2 = new GlowFilter(0xFF, 1, 5, 5, 5, 1, false, false);
Game.inst.hintButton.filters = [_local2];
Tracer.report("[i]", "HintTimer: feel free to use hint.", "Episode");
resetHintIdleTimer();
};
};
}
public function addActivator(_arg1:String, _arg2:Sprite, _arg3:Object):Boolean{
if (!activatorsRegistry[_arg1]){
activatorsRegistry[_arg1] = new Activator(_arg1, this, _arg2, _arg3);
return (true);
};
Tracer.report("[X]", "Activator already registered.", "Episode");
return (false);
}
public function isHintReady():Boolean{
return (hintReady);
}
public function isAnimation(_arg1:String):Boolean{
if (animationsRegistry[_arg1]){
return (true);
};
return (false);
}
public function ifAny(_arg1:Array):Boolean{
var _local2:Boolean;
var _local3:uint;
var _local4:uint;
_local2 = false;
_local3 = _arg1.length;
_local4 = 0;
while (_local4 < _local3) {
if (eventsRegistry[_arg1[_local4]] == true){
_local2 = true;
};
_local4++;
};
return (_local2);
}
public function enableAction():void{
action = true;
}
public function listActivatorsRegistry():void{
var _local1:uint;
var _local2:*;
trace("[S] LIST: activatorsRegistry:");
_local1 = 0;
for (_local2 in activatorsRegistry) {
trace((((" - " + _local2) + " = ") + activatorsRegistry[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function getItem(_arg1:String, _arg2:Sprite=null, _arg3:Function=null, _arg4:String=null):Boolean{
if (itemsRegistry[_arg1]){
inventory.takeItem(_arg1);
if (_arg2){
_arg2.visible = false;
removeChild(_arg2);
};
if (_arg3 != null){
_arg3();
};
if (_arg4){
causeEvent(_arg4);
};
return (true);
} else {
Tracer.report("[X]", (("Item '" + _arg1) + "' isn't registered."), "Episode");
};
return (false);
}
public function isEvent(_arg1:String):Boolean{
if (eventsRegistry[_arg1] != null){
return (true);
};
Tracer.report("[X]", "Event isn't registered.", "Episode");
return (false);
}
private function onBonusTimer(_arg1:TimerEvent):void{
countTime--;
}
public function ifNotThese(_arg1:Array):Boolean{
var _local2:uint;
var _local3:uint;
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
if (eventsRegistry[_arg1[_local3]] == true){
return (false);
};
_local3++;
};
return (true);
}
public function restartHintTimer():void{
restartHintFillTimer();
}
public function causeEvent(_arg1:String):Boolean{
if (eventsRegistry[_arg1] != null){
dispatchEvent(new Event(_arg1));
eventsRegistry[_arg1] = true;
return (true);
};
Tracer.report("[X]", "Event isn't registered.", "Episode");
return (false);
}
private function resetHintFillTimer():void{
if (hintFillTime > 0){
hintFillTimer.reset();
hintReady = false;
} else {
stopHintIdleTimer();
};
}
public function registerEvent(_arg1:String, _arg2:Boolean=false):Boolean{
if (eventsRegistry[_arg1] == null){
eventsRegistry[_arg1] = _arg2;
return (true);
};
Tracer.report("[X]", "Event already registered.", "Episode");
return (false);
}
public function ifOneOf(_arg1:Array, _arg2:Boolean):Boolean{
var _local3:Boolean;
var _local4:uint;
var _local5:uint;
_local3 = false;
_local4 = _arg1.length;
_local5 = 0;
while (_local5 < _local4) {
if (eventsRegistry[_arg1[_local5]] == _arg2){
_local3 = true;
};
_local5++;
};
return (_local3);
}
public function internalISet():void{
var _local1:Function;
if (intISet){
if (intISet.length > 0){
if ((intISet[0] is Function)){
_local1 = intISet.shift();
_local1();
if (((intISet) && ((intISet.length < 1)))){
intISet = null;
};
};
} else {
intISet = null;
};
};
}
public function unregisterEvent(_arg1:String):Boolean{
if (eventsRegistry[_arg1] != null){
eventsRegistry[_arg1] = null;
delete eventsRegistry[_arg1];
return (true);
};
Tracer.report("[X]", "Event isn't registered.", "Episode");
return (false);
}
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 already exists.", "Episode");
};
}
public function externalISet():void{
var _local1:Function;
if (extISet){
if (extISet.length > 0){
if ((extISet[0] is Function)){
_local1 = extISet.shift();
_local1();
if (((extISet) && ((extISet.length < 1)))){
extISet = null;
};
};
} else {
extISet = null;
};
};
}
public function removeAnimation(_arg1:String):Boolean{
if (animationsRegistry[_arg1]){
animationsRegistry[_arg1].kill();
animationsRegistry[_arg1] = null;
delete animationsRegistry[_arg1];
return (true);
};
Tracer.report("[X]", "Animation isn't registered.", "Episode");
return (false);
}
private function stopHintFillTimer():void{
if (hintFillTime > 0){
hintFillTimer.stop();
hintReady = false;
} else {
stopHintIdleTimer();
};
}
public function win():void{
action = false;
finish();
if (Console.isNextEpisode()){
Game.showNextLevelWindow();
} else {
Game.showFinalWindow();
if (Game.banner){
Game.showBanner();
};
};
state = "FINISHED";
}
public function getPlayer():Sprite{
return (player);
}
public function listWaypointsRegistry():void{
var _local1:uint;
var _local2:*;
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:Boolean;
var _local3:uint;
var _local4:uint;
_local2 = false;
_local3 = _arg1.length;
_local4 = 0;
while (_local4 < _local3) {
if (eventsRegistry[_arg1[_local4]] == false){
_local2 = true;
};
_local4++;
};
return (_local2);
}
public function ifNone():Boolean{
var _local1:String;
for (_local1 in eventsRegistry) {
if (_local1 == true){
return (false);
};
};
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 177
//Episode_01 (Episode_01)
package {
import flash.filters.*;
public dynamic class Episode_01 extends Episode {
public var jfSpeed:Number;
public var hat;
public var glowFilter:GlowFilter;
public var body;
public function Episode_01(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function jfgoWin():void{
action = false;
jf.walkTo(730);
motionTo(jf, 730, jf.y, 1, function (){
win();
});
removeActivator("do2");
}
public function takeRope():void{
action = false;
jf.walkTo(195);
motionTo(jf, 195, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("rope", rope, function (){
jf.wait();
action = true;
causeEvent("rope_take_ok");
});
});
removeActivator("rope");
}
public function jfPourWine():void{
action = false;
jf.walkTo(107.4);
motionTo(jf, 107.4, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("pour", function (){
jf.turnOn("right");
jf.wait();
action = true;
wine_pour.visible = true;
causeEvent("wine_place_ok");
});
});
removeActivator("do1");
}
function frame1(){
hat = 3;
body = 3;
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.playAnim("idle");
amfora.gotoAndStop(1);
mavr.gotoAndStop(1);
wine_pour.visible = false;
action = false;
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("apple", Item_Apple);
registerItem("rope", Item_Rope);
registerItem("wine", Item_Wine);
registerEvent("wine_take_ok");
registerEvent("wine_place_ok");
registerEvent("rope_take_ok");
registerEvent("rope_place_ok");
registerEvent("apple_ok");
registerEvent("mavr_ok");
addActivator("apple", apple, {onClick:function (){
takeApple();
}});
addActivator("wine", wine, {onClick:function (){
takeWine();
}});
addActivator("rope", rope, {onClick:function (){
takeRope();
}});
addActivator("amfora", amfora, {onClick:function (){
if (ifThis("rope_take_ok")){
placeRope();
} else {
jfRefused();
};
}});
addActivator("mavr", mavr, {onClick:function (){
if (((ifThis("apple_ok")) && (ifThis("rope_place_ok")))){
if (ifThis("wine_place_ok")){
killMavr();
} else {
jfDie();
};
} else {
jfRefused();
};
}});
addActivator("do1", do1, {onClick:function (){
if (ifThis("wine_take_ok")){
jfPourWine();
} else {
jfRefused();
};
}});
addActivator("do2", do2, {onClick:function (){
if (ifThis("mavr_ok")){
jfgoWin();
} else {
jfRefused();
};
}});
jfSpeed = 128;
showHint = function (){
glowFilter = new GlowFilter(0xFF, 1, 5, 5, 5, 1, false, false);
};
state = "READY";
Tracer.report("[$]", "EPISODE_READY");
if (waitForReady){
this.start();
};
}
public function placeRope():void{
action = false;
jf.walkTo(107.4);
motionTo(jf, 107.4, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("throwRope", function (){
jf.wait();
action = true;
amfora.gotoAndStop(2);
causeEvent("rope_place_ok");
});
});
removeActivator("amfora");
}
public function takeApple():void{
action = false;
jf.walkTo(195);
motionTo(jf, 195, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("apple", apple, function (){
jf.wait();
action = true;
causeEvent("apple_ok");
});
});
removeActivator("apple");
}
public function takeWine():void{
action = false;
jf.walkTo(300);
motionTo(jf, 300, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("wine", wine, function (){
jf.wait();
action = true;
causeEvent("wine_take_ok");
});
});
removeActivator("wine");
}
public function jfDie():void{
action = false;
jf.walkTo(107.4);
motionTo(jf, 107.4, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("throw_apple", function (){
jf.turnOn("right");
jf.wait();
mavr.gotoAndStop(5);
causeEvent("mavr_ok");
});
});
removeActivator("mavr");
}
public function killMavr():void{
action = false;
jf.walkTo(107.4);
motionTo(jf, 107.4, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("throw_apple", function (){
jf.turnOn("right");
jf.wait();
mavr.gotoAndStop(6);
causeEvent("mavr_ok");
});
});
removeActivator("mavr");
}
}
}//package
Section 178
//Episode_02 (Episode_02)
package {
import flash.filters.*;
public dynamic class Episode_02 extends Episode {
public var jfSpeed:Number;
public var hat;
public var glowFilter:GlowFilter;
public var body;
public function Episode_02(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function takeArmor2():void{
action = false;
jf.walkTo(292);
motionTo(jf, 292, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("pickUp", function (){
armor2.visible = false;
body = 2;
jf.wait();
action = true;
});
});
removeActivator("armor");
removeActivator("armor2");
}
function frame1(){
hat = 3;
body = 3;
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.playAnim("idle");
door.gotoAndStop(1);
man.gotoAndStop(1);
action = false;
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("axe", Item_Axe);
registerItem("sword", Item_Sword);
registerItem("shield", Item_Shield);
registerItem("knife", Item_Knife);
registerEvent("shield_ok");
registerEvent("sword_ok");
registerEvent("knife_ok");
registerEvent("axe_ok");
registerEvent("weapon_ok");
registerEvent("helmet_ok");
registerEvent("armor_ok");
addActivator("shield", shield, {onClick:function (){
takeShield();
}});
addActivator("axe", axe, {onClick:function (){
takeAxe();
}});
addActivator("sword", sword, {onClick:function (){
takeSword();
}});
addActivator("knife", knife, {onClick:function (){
takeKnife();
}});
addActivator("armor", armor, {onClick:function (){
takeArmor();
}});
addActivator("armor2", armor2, {onClick:function (){
takeArmor2();
}});
addActivator("helmet", helmet, {onClick:function (){
takeHelmet();
}});
addActivator("helmet2", helmet2, {onClick:function (){
takeHelmet2();
}});
addActivator("do1", do1, {onClick:function (){
if (((ifThis("weapon_ok")) && (ifThis("shield_ok")))){
if (((((ifThis("helmet_ok")) && (ifThis("armor_ok")))) && (ifThis("knife_ok")))){
goWin();
} else {
goDie();
};
} else {
jfRefused();
};
}});
jfSpeed = 128;
showHint = function (){
glowFilter = new GlowFilter(0xFF, 1, 5, 5, 5, 1, false, false);
};
state = "READY";
Tracer.report("[$]", "EPISODE_READY");
if (waitForReady){
this.start();
};
}
public function goDie():void{
action = false;
jf.walkTo(355);
motionTo(jf, 340, jf.y, 1, function (){
man.gotoAndStop(3);
motionTo(jf, 355, jf.y, 1, function (){
jf.turnOn("right");
jf.wait();
});
});
removeActivator("do1");
}
public function takeShield():void{
action = false;
jf.walkTo(41);
motionTo(jf, 41, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("shield", shield, function (){
jf.wait();
action = true;
causeEvent("shield_ok");
});
});
removeActivator("shield");
}
public function takeHelmet2():void{
action = false;
jf.walkTo(305);
motionTo(jf, 305, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("pickUp", function (){
helmet2.visible = false;
hat = 2;
jf.wait();
action = true;
});
});
removeActivator("helmet");
removeActivator("helmet2");
}
public function takeArmor():void{
action = false;
jf.walkTo(163);
motionTo(jf, 163, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("pickUp", function (){
armor.visible = false;
body = 1;
jf.wait();
action = true;
causeEvent("armor_ok");
});
});
removeActivator("armor");
removeActivator("armor2");
}
public function takeKnife():void{
action = false;
jf.walkTo(163);
motionTo(jf, 163, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("knife", knife, function (){
jf.wait();
action = true;
causeEvent("weapon_ok");
causeEvent("knife_ok");
});
});
removeActivator("axe");
removeActivator("knife");
removeActivator("sword");
}
public function takeAxe():void{
action = false;
jf.walkTo(98);
motionTo(jf, 98, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("axe", axe, function (){
jf.wait();
action = true;
causeEvent("weapon_ok");
});
});
removeActivator("axe");
removeActivator("knife");
removeActivator("sword");
}
public function takeSword():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("left");
jf.takeItem("sword", sword, function (){
jf.wait();
action = true;
causeEvent("weapon_ok");
});
});
removeActivator("axe");
removeActivator("knife");
removeActivator("sword");
}
public function takeHelmet():void{
action = false;
jf.walkTo(305);
motionTo(jf, 305, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("pickUp", function (){
helmet.visible = false;
hat = 1;
jf.wait();
action = true;
causeEvent("helmet_ok");
});
});
removeActivator("helmet");
removeActivator("helmet2");
}
public function goWin():void{
action = false;
man.gotoAndStop(2);
door.gotoAndPlay(3);
jf.playAnim("walk2");
motionTo(jf, 730, jf.y, 1, function (){
jf.turnOn("right");
jf.turnOn("right");
jf.wait();
win();
});
removeActivator("do1");
}
}
}//package
Section 179
//Episode_03 (Episode_03)
package {
import flash.filters.*;
public dynamic class Episode_03 extends Episode {
public var jfSpeed:Number;
public var hat;
public var glowFilter:GlowFilter;
public var body;
public function Episode_03(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function takeStone():void{
action = false;
jf.walkTo(100);
motionTo(jf, 100, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("stone", stone, function (){
jf.wait();
if (inventory.hasAll(["stone", "rope"])){
makeItem("trap3", ["stone", "rope"], 1, function (){
action = true;
}, "trap_made3");
};
action = true;
causeEvent("stone_ok");
});
});
removeActivator("stone");
}
public function boardUp():void{
action = false;
jf.walkTo(332.6);
motionTo(jf, 332.6, 387.5, 1, function (){
jf.turnOn("right");
board.gotoAndPlay(2);
jf.playAnim("board_up", function (){
jf.turnOn("right");
jf.wait();
action = true;
causeEvent("board_ok");
});
});
removeActivator("do2");
}
public function takeRope():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("rope", rope, function (){
jf.wait();
if (inventory.hasAll(["stone", "rope"])){
makeItem("trap3", ["stone", "rope"], 1, function (){
action = true;
}, "trap_made3");
};
action = true;
causeEvent("rope_ok");
});
});
removeActivator("rope");
}
public function jumpOnRing():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("jump_anim", function (){
jf.x = (jf.x + 76.4);
jf.y = (jf.y - 32.9);
jf.wait();
action = true;
causeEvent("up_ok");
});
});
removeActivator("do1");
}
function frame1(){
hat = 1;
body = 1;
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.playAnim("idle");
niger.gotoAndStop(1);
board.gotoAndStop(1);
action = false;
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("stone", Item_Stone);
registerItem("spear", Item_Spear);
registerItem("rope", Item_Rope);
registerItem("trap3", Anim_Trap3);
registerEvent("trap_made3");
registerEvent("stone_ok");
registerEvent("rope_ok");
registerEvent("spear_ok");
registerEvent("up_ok");
registerEvent("board_ok");
addActivator("stone", stone, {onClick:function (){
takeStone();
}});
addActivator("spear", spear, {onClick:function (){
takeSpear();
}});
addActivator("rope", rope, {onClick:function (){
takeRope();
}});
addActivator("do1", do1, {onClick:function (){
if (((((ifThis("rope_ok")) && (ifThis("spear_ok")))) && (ifThis("stone_ok")))){
jumpOnRing();
} else {
jfRefused();
};
}});
addActivator("do2", do2, {onClick:function (){
if (ifThis("up_ok")){
boardUp();
} else {
jfRefused();
};
}});
addActivator("niger", niger, {onClick:function (){
if (ifThis("up_ok")){
if (ifThis("board_ok")){
jfThrowStoneAndWin();
} else {
jfThrowStoneAndDie();
};
} else {
jfRefused();
};
}});
jfSpeed = 128;
showHint = function (){
glowFilter = new GlowFilter(0xFF, 1, 5, 5, 5, 1, false, false);
};
state = "READY";
Tracer.report("[$]", "EPISODE_READY");
if (waitForReady){
this.start();
};
}
public function jfThrowStoneAndDie():void{
action = false;
jf.walkTo(332.6);
motionTo(jf, 332.6, 387.5, 1, function (){
jf.turnOn("right");
jf.playAnim("throw_rock", function (){
jf.turnOn("right");
jf.wait();
niger.gotoAndStop(7);
});
});
removeActivator("niger");
}
public function takeSpear():void{
action = false;
jf.walkTo(150);
motionTo(jf, 150, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("spear", spear, function (){
jf.wait();
action = true;
causeEvent("spear_ok");
});
});
removeActivator("spear");
}
public function jfThrowStoneAndWin():void{
action = false;
jf.walkTo(332.6);
motionTo(jf, 332.6, 387.5, 1, function (){
jf.turnOn("right");
jf.playAnim("throw_rock", function (){
jf.turnOn("right");
jf.wait();
niger.gotoAndStop(6);
});
});
removeActivator("niger");
}
}
}//package
Section 180
//Episode_04 (Episode_04)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Episode_04 extends Episode {
public var actionTimer:Timer;
public var sPlayer1:SoundPlayer;
public var sPlayer2:SoundPlayer;
public var glowFilter:GlowFilter;
public function Episode_04(){
addFrameScript(0, frame1);
}
function frame1(){
sPlayer2 = new SoundPlayer();
sPlayer1 = new SoundPlayer();
epicScene.gotoAndStop(1);
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
sPlayer1.playSound(new hSoundFull());
effect1.visible = false;
effect2.visible = false;
effect3.visible = false;
epicScene.gotoAndStop(1);
epicScene.barrel.gotoAndStop(1);
epicScene.wheelbarrow.gotoAndStop(1);
epicScene.brick.gotoAndStop(1);
};
finalize = function (){
};
cleanOut = function (){
};
registerEvent("barrel_ok");
registerEvent("wheelbarrow_ok");
registerEvent("brick_ok");
registerEvent("time_is_up");
addActivator("do1", do1, {onClick:function (){
if (ifNotThis("time_is_up")){
removeActivator("do1");
epicScene.barrel.visible = false;
sPlayer2.playSound(new takeSound());
effect1.visible = true;
effect1.gotoAndPlay(2);
causeEvent("barrel_ok");
};
}});
addActivator("do2", do2, {onClick:function (){
if (ifNotThis("time_is_up")){
removeActivator("do2");
epicScene.wheelbarrow.visible = false;
sPlayer2.playSound(new takeSound());
effect2.visible = true;
effect2.gotoAndPlay(2);
causeEvent("wheelbarrow_ok");
};
}});
addActivator("do3", do3, {onClick:function (){
if (ifNotThis("time_is_up")){
removeActivator("do3");
epicScene.brick.gotoAndPlay(2);
causeEvent("brick_ok");
};
}});
setActionTimer();
showHint = function (){
glowFilter = new GlowFilter(0xFF, 1, 5, 5, 5, 1, false, false);
};
state = "READY";
Tracer.report("[$]", "EPISODE_READY");
if (waitForReady){
this.start();
};
}
public function playEff3():void{
sPlayer2.playSound(new takeSound());
effect3.visible = true;
effect3.gotoAndPlay(2);
}
public function onActionTimerComplete(_arg1:TimerEvent):void{
causeEvent("time_is_up");
trace("456");
action = false;
if (ifNotThis("barrel_ok")){
epicScene.gotoAndPlay(2);
} else {
if (ifNotThis("wheelbarrow_ok")){
epicScene.gotoAndPlay(50);
} else {
if (ifNotThis("brick_ok")){
epicScene.gotoAndPlay(109);
} else {
epicScene.gotoAndPlay(186);
};
};
};
}
public function setActionTimer():void{
trace("123");
actionTimer = new Timer(1000, 6);
actionTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onActionTimerComplete);
actionTimer.start();
}
}
}//package
Section 181
//Episode_05 (Episode_05)
package {
import flash.filters.*;
public dynamic class Episode_05 extends Episode {
public var jfSpeed:Number;
public var hat;
public var glowFilter:GlowFilter;
public var body;
public function Episode_05(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function glad1Killjf():void{
action = false;
jf.walkTo(200);
motionTo(jf, 190, jf.y, 1, function (){
glad1.gotoAndStop(3);
motionTo(jf, 200, jf.y, 1, function (){
jf.turnOn("right");
jf.wait();
});
});
removeActivator("glad1");
}
public function stoleSword():void{
action = false;
jf.walkTo(155);
motionTo(jf, 155, jf.y, 1, function (){
jf.turnOn("right");
sword.visible = false;
jf.playAnim("throw_rope+hook", function (){
jf.justAddItem("sword", sword, function (){
jf.wait();
action = true;
causeEvent("sword_take_ok");
});
});
});
removeActivator("glad3");
}
public function takeRope():void{
action = false;
jf.walkTo(120);
motionTo(jf, 120, jf.y, 1, function (){
jf.turnOn("left");
jf.takeItem("rope", rope, function (){
jf.wait();
if (inventory.hasAll(["hook", "rope"])){
makeItem("trap4", ["hook", "rope"], 1, function (){
action = true;
}, "trap_made4");
};
action = true;
causeEvent("rope_ok");
});
});
removeActivator("do3");
}
public function takeHook():void{
action = false;
jf.walkTo(120);
motionTo(jf, 120, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("hook", hook, function (){
jf.wait();
if (inventory.hasAll(["hook", "rope"])){
makeItem("trap4", ["hook", "rope"], 1, function (){
action = true;
}, "trap_made4");
};
action = true;
causeEvent("hook_ok");
});
});
removeActivator("do1");
}
function frame1(){
hat = 1;
body = 1;
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.playAnim("idle");
glad1.gotoAndStop(1);
glad2.gotoAndStop(1);
glad3.gotoAndStop(1);
gate.gotoAndStop(1);
action = false;
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("hook", Item_Hook);
registerItem("sword", Item_Sword2);
registerItem("plate", Item_Plate);
registerItem("helmet", Item_Helmet);
registerItem("rope", Item_Rope);
registerItem("oil", Item_Oil);
registerItem("trap4", Anim_Trap4);
registerItem("trap5", Anim_Trap5);
registerEvent("trap_made4");
registerEvent("trap_made5");
registerEvent("hook_ok");
registerEvent("rope_ok");
registerEvent("oil_ok");
registerEvent("helmet_ok");
registerEvent("glad1_ok");
registerEvent("glad2_ok");
registerEvent("sword_take_ok");
registerEvent("sword_place_ok");
registerEvent("plate_take_ok");
registerEvent("plate_throw_ok");
addActivator("do1", do1, {onClick:function (){
takeHook();
}});
addActivator("do2", do2, {onClick:function (){
takePlate();
}});
addActivator("oil", oil, {onClick:function (){
takeOil();
}});
addActivator("do3", do3, {onClick:function (){
takeRope();
}});
addActivator("helmet", helmet, {onClick:function (){
takeHelmet();
}});
addActivator("glad1", glad1, {onClick:function (){
if (ifThis("trap_made5")){
giveHelmet();
} else {
glad1Killjf();
};
}});
addActivator("glad2", glad2, {onClick:function (){
if (ifThis("glad1_ok")){
if (ifThis("plate_take_ok")){
if (ifThis("plate_throw_ok")){
if (ifThis("sword_take_ok")){
placeSword();
} else {
jfRefused();
};
} else {
throwPlate();
};
} else {
glad2Killjf();
};
} else {
glad1Killjf();
};
}});
addActivator("glad3", glad3, {onClick:function (){
if (ifThis("glad1_ok")){
if (ifThis("trap_made4")){
stoleSword();
} else {
jfRefused();
};
} else {
glad1Killjf();
};
}});
addActivator("do4", do4, {onClick:function (){
if (ifThis("glad1_ok")){
if (ifThis("glad2_ok")){
goWin();
} else {
glad2Killjf();
};
} else {
glad1Killjf();
};
}});
jfSpeed = 128;
showHint = function (){
glowFilter = new GlowFilter(0xFF, 1, 5, 5, 5, 1, false, false);
};
state = "READY";
Tracer.report("[$]", "EPISODE_READY");
if (waitForReady){
this.start();
};
}
public function takePlate():void{
action = false;
jf.walkTo(120);
motionTo(jf, 120, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("plate", plate, function (){
jf.wait();
action = true;
causeEvent("plate_take_ok");
});
});
removeActivator("do2");
}
public function giveHelmet():void{
action = false;
jf.walkTo(155);
motionTo(jf, 155, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
jf.wait();
action = true;
glad1.gotoAndStop(4);
causeEvent("glad1_ok");
});
});
removeActivator("glad1");
}
public function glad2Killjf():void{
action = false;
jf.walkTo(290);
motionTo(jf, 280, jf.y, 1, function (){
glad2.gotoAndStop(3);
motionTo(jf, 290, jf.y, 1, function (){
jf.turnOn("right");
jf.wait();
});
});
removeActivator("glad2");
}
public function placeSword():void{
action = false;
jf.walkTo(290);
motionTo(jf, 290, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
glad2.gotoAndStop("panic");
glad3.gotoAndStop("panic");
jf.wait();
action = true;
causeEvent("glad2_ok");
gate.gotoAndPlay(2);
});
});
removeActivator("glad2");
}
public function takeHelmet():void{
action = false;
jf.walkTo(120);
motionTo(jf, 120, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("helmet", helmet, function (){
jf.wait();
if (inventory.hasAll(["helmet", "oil"])){
makeItem("trap5", ["helmet", "oil"], 1, function (){
action = true;
}, "trap_made5");
};
action = true;
causeEvent("helmet_ok");
});
});
removeActivator("helmet");
}
public function goWin():void{
action = false;
jf.walkTo(730);
motionTo(jf, 730, jf.y, 1, function (){
win();
});
}
public function throwPlate():void{
action = false;
jf.walkTo(155);
motionTo(jf, 155, jf.y, 1, function (){
jf.turnOn("right");
glad2.gotoAndStop(4);
jf.playAnim("throw_plate", function (){
jf.turnOn("right");
jf.wait();
causeEvent("plate_throw_ok");
action = true;
});
});
}
public function takeOil():void{
action = false;
jf.walkTo(120);
motionTo(jf, 120, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("oil", oil, function (){
jf.wait();
if (inventory.hasAll(["helmet", "oil"])){
makeItem("trap5", ["helmet", "oil"], 1, function (){
action = true;
}, "trap_made5");
};
action = true;
causeEvent("oil_ok");
});
});
removeActivator("oil");
}
}
}//package
Section 182
//Episode_06 (Episode_06)
package {
import flash.filters.*;
public dynamic class Episode_06 extends Episode {
public var jfSpeed:Number;
public var hat;
public var glowFilter:GlowFilter;
public var body;
public function Episode_06(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function takeRope():void{
action = false;
jf.walkTo(102);
motionTo(jf, 102, jf.y, 1, function (){
jf.turnOn("left");
jf.takeItem("rope", rope, function (){
jf.wait();
action = true;
causeEvent("rope_ok");
});
});
removeActivator("do1");
}
public function makeTrap():void{
action = false;
jf.walkTo(112);
motionTo(jf, 112, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("trow_rope_L6", function (){
lion.gotoAndStop(2);
jf.turnOn("right");
jf.wait();
action = true;
causeEvent("trap_ok");
});
});
}
public function jfLose():void{
action = false;
jf.walkTo(112);
motionTo(jf, 112, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("whip", function (){
lion.gotoAndStop(3);
glad.gotoAndStop(2);
jf.turnOn("right");
jf.wait();
});
});
removeActivator("lion");
}
function frame1(){
hat = 1;
body = 1;
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.playAnim("idle");
lion.gotoAndStop(1);
glad.gotoAndStop(1);
flag.gotoAndStop(1);
action = false;
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("whip", Item_Whip);
registerItem("knife", Item_Knife);
registerItem("shield", Item_Shield);
registerItem("rope", Item_Rope);
registerEvent("whip_ok");
registerEvent("knife_ok");
registerEvent("shield_ok");
registerEvent("rope_ok");
registerEvent("flag_ok");
registerEvent("trap_ok");
addActivator("shield", shield, {onClick:function (){
takeShield();
}});
addActivator("do1", do1, {onClick:function (){
takeRope();
}});
addActivator("knife", knife, {onClick:function (){
takeKnife();
}});
addActivator("whip", whip, {onClick:function (){
takeWhip();
}});
addActivator("flag", flag, {onClick:function (){
if (ifThis("knife_ok")){
throwKnife();
} else {
jfRefused();
};
}});
addActivator("lion", lion, {onClick:function (){
if (((ifThis("rope_ok")) && (ifThis("shield_ok")))){
if (((ifThis("whip_ok")) && (ifThis("trap_ok")))){
if (ifThis("flag_ok")){
jfWin();
} else {
jfLose();
};
} else {
makeTrap();
};
} else {
if (ifThis("whip_ok")){
jfLose2();
} else {
jfRefused();
};
};
}});
jfSpeed = 128;
showHint = function (){
glowFilter = new GlowFilter(0xFF, 1, 5, 5, 5, 1, false, false);
};
state = "READY";
Tracer.report("[$]", "EPISODE_READY");
if (waitForReady){
this.start();
};
}
public function takeShield():void{
action = false;
jf.walkTo(102);
motionTo(jf, 102, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("shield", shield, function (){
jf.wait();
action = true;
causeEvent("shield_ok");
});
});
removeActivator("shield");
}
public function jfWin():void{
action = false;
jf.walkTo(112);
motionTo(jf, 112, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("whip", function (){
jf.turnOn("right");
lion.gotoAndStop(3);
glad.gotoAndStop(4);
jf.turnOn("right");
jf.wait();
});
});
removeActivator("lion");
}
public function takeKnife():void{
action = false;
jf.walkTo(102);
motionTo(jf, 102, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("knife", knife, function (){
jf.wait();
action = true;
causeEvent("knife_ok");
});
});
removeActivator("knife");
}
public function takeWhip():void{
action = false;
jf.walkTo(102);
motionTo(jf, 102, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("whip", whip, function (){
jf.wait();
action = true;
causeEvent("whip_ok");
});
});
removeActivator("whip");
}
public function throwKnife():void{
action = false;
jf.walkTo(102);
motionTo(jf, 102, jf.y, 1, function (){
jf.turnOn("right");
flag.gotoAndPlay(2);
jf.playAnim("throw_knife", function (){
jf.wait();
action = true;
causeEvent("flag_ok");
});
});
removeActivator("flag");
}
public function jfLose2():void{
action = false;
jf.walkTo(112);
motionTo(jf, 112, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("whip", function (){
lion.gotoAndStop(4);
jf.turnOn("right");
jf.wait();
});
});
removeActivator("lion");
}
}
}//package
Section 183
//Game (Game)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Game extends MovieClip {
public var story:MovieClip;
private var epiloguesRegistry:Object;
public var prologues:MovieClip;
public var totalTime:Number;// = 0
private var episodesRegistry:Object;
private var prologuesRegistry:Object;
private var currentEpisode:Episode;
public var hintButton:MovieClip;
public var banner1:MovieClip;
private var episodesData:Object;
private var currentEpisodeIndex:uint;
public var totalScore:Number;// = 0
private var episodesOrder:Array;
public var logo:MovieClip;
public var epilogues:MovieClip;
public var muteButton:MovieClip;
private var currentEpisodeName:String;
public static const screen_w:Number = 640;
public static const screen_h:Number = 480;
public static var inst:MovieClip;
public static var banner:Boolean = false;
public static var sitelock:Boolean = false;
public static var gamemode:String = "normal";
public static var helplink:String;
public static var activeWindow = null;
public function Game(){
totalScore = 0;
totalTime = 0;
super();
addFrameScript(0, frame1);
Game.inst = this;
init();
if (prologues){
prologues.visible = false;
};
if (epilogues){
epilogues.visible = false;
};
Game.showInstructionsWindow();
}
public function registerEpisode(_arg1:String, _arg2:uint, _arg3, _arg4:Object=null):Boolean{
if (!episodesRegistry[_arg1]){
if (!episodesOrder[_arg2]){
episodesRegistry[_arg1] = _arg2;
episodesOrder[_arg2] = _arg1;
episodesData[_arg1] = new Object();
episodesData[_arg1].eClass = _arg3;
if (_arg4){
episodesData[_arg1].prologue = ((_arg4.prologue is String)) ? _arg4.prologue : "";
episodesData[_arg1].epilogue = ((_arg4.epilogue is String)) ? _arg4.epilogue : "";
} else {
episodesData[_arg1].prologue = "";
episodesData[_arg1].epilogue = "";
};
return (true);
} else {
Tracer.report("[X]", "Wrong order index.", "Game");
};
} else {
Tracer.report("[X]", "Episode already exists.", "Game");
};
return (false);
}
public function getEpisodeIndex(_arg1:String=null):uint{
if (((_arg1) && (!((_arg1 == ""))))){
if (episodesRegistry[_arg1]){
return (episodesRegistry[_arg1]);
};
} else {
if (((currentEpisode) && (currentEpisodeIndex))){
return (currentEpisodeIndex);
};
};
Tracer.report("[X]", "Wrong episode's name.", "Game");
return (NaN);
}
private function init():void{
episodesOrder = new Array();
episodesRegistry = new Object();
episodesData = new Object();
currentEpisodeIndex = 1;
prologuesRegistry = new Object();
epiloguesRegistry = new Object();
totalScore = 0;
}
public function closeEpisode():void{
terminateEpisode();
}
public function hideEpilogue():void{
epilogues.visible = false;
if (epilogues.images){
epilogues.images.gotoAndStop(1);
};
}
public function replayEpisode(_arg1:String=null):void{
var _local2:*;
var _local3:*;
if (_arg1){
if (episodesRegistry[_arg1]){
closeActiveWindow();
_local3 = currentEpisodeIndex;
currentEpisodeIndex = episodesRegistry[_arg1];
if (_local3 != currentEpisodeIndex){
terminateEpisode();
createEpisode();
startCurrentEpisode();
} else {
if (story.numChildren > 0){
currentEpisode = (story.getChildAt(0) as Episode);
if (currentEpisode.state != "READY"){
recreateEpisode();
};
} else {
createEpisode();
};
startCurrentEpisode();
};
} else {
Tracer.report("[X]", "Wrong episode's name.", "Game");
};
} else {
if (currentEpisode){
closeActiveWindow();
if (currentEpisode.state != "READY"){
recreateEpisode();
};
startCurrentEpisode();
} else {
Tracer.report("[X]", "Current episode isn't defined.", "Game");
};
};
}
public function isNextEpisode():Boolean{
if ((currentEpisodeIndex + 1) >= episodesOrder.length){
return (false);
};
if (episodesOrder[(currentEpisodeIndex + 1)]){
return (true);
};
return (false);
}
public function registerPrologue(_arg1:String, _arg2):Boolean{
if (!prologuesRegistry[_arg1]){
if ((((_arg2 is String)) || ((_arg2 is uint)))){
prologuesRegistry[_arg1] = _arg2;
return (true);
};
Tracer.report("[X]", "Frame must be 'String' or 'uint'.", "Game");
} else {
Tracer.report("[X]", "Prologue already exists.", "Game");
};
return (false);
}
public function unregisterEpisode(_arg1:String):Boolean{
if (!episodesRegistry[_arg1]){
episodesOrder[episodesRegistry[_arg1]] = null;
episodesRegistry[_arg1] = null;
delete episodesRegistry[_arg1];
return (true);
};
Tracer.report("[X]", "Episode isn't registered.", "Game");
return (false);
}
public function playEpisode(_arg1:String=null):void{
var _local2:String;
var _local3:*;
if (_arg1){
if (episodesRegistry[_arg1]){
closeActiveWindow();
_local3 = currentEpisodeIndex;
currentEpisodeIndex = episodesRegistry[_arg1];
if (_local3 != currentEpisodeIndex){
terminateEpisode();
createEpisode();
establishEpisode(_arg1);
} else {
if (story.numChildren > 0){
currentEpisode = (story.getChildAt(0) as Episode);
if (currentEpisode.state != "READY"){
recreateEpisode();
};
} else {
createEpisode();
};
establishEpisode(_arg1);
};
} else {
Tracer.report("[X]", "Wrong episode's name.", "Game");
};
} else {
if (currentEpisode){
closeActiveWindow();
if (currentEpisode.state != "READY"){
recreateEpisode();
};
startCurrentEpisode();
} else {
Tracer.report("[X]", "Current episode isn't defined.", "Game");
};
};
}
public function getCurrentEpisode():Episode{
if (currentEpisode){
return (currentEpisode);
};
if (story.numChildren > 0){
currentEpisode = (story.getChildAt(0) as Episode);
return (currentEpisode);
};
return (null);
}
public function disableAction():void{
if (currentEpisode){
currentEpisode.disableAction();
} else {
Tracer.report("[X]", "Current episode isn't defined.", "Game");
};
}
private function recreateEpisode():void{
var _local1:*;
if (story.numChildren){
if (!currentEpisode){
currentEpisode = (story.getChildAt(0) as Episode);
};
_local1 = Class(getDefinitionByName(getQualifiedClassName(currentEpisode)));
terminateEpisode();
currentEpisode = new (_local1);
story.addChild(currentEpisode);
};
}
public function prevEpisode():void{
var _local1:*;
if (currentEpisode){
if (episodesOrder[(currentEpisodeIndex - 1)]){
closeActiveWindow();
_local1 = episodesOrder[(currentEpisodeIndex - 1)];
currentEpisodeIndex = episodesRegistry[_local1];
terminateEpisode();
createEpisode();
establishEpisode(_local1);
} else {
Tracer.report("[X]", "There isn't prev episode.", "Game");
};
} else {
Tracer.report("[X]", "Current episode isn't defined.", "Game");
};
}
public function startEpisode():void{
startCurrentEpisode();
}
private function createEpisode():void{
var _local1:*;
_local1 = episodesData[episodesOrder[currentEpisodeIndex]].eClass;
currentEpisode = new (_local1);
story.addChild(currentEpisode);
}
private function startCurrentEpisode():void{
if (((currentEpisode) && ((currentEpisode.state == "READY")))){
currentEpisode.start();
} else {
addEventListener(Event.ENTER_FRAME, startCurrentEpisodeIfExist);
};
}
public function showPrologue(_arg1:String):void{
if (prologuesRegistry[_arg1]){
if (prologues.currentFrame != prologuesRegistry[_arg1]){
prologues.images.ready = false;
prologues.gotoAndStop(prologuesRegistry[_arg1]);
playPrologue();
} else {
prologues.images.gotoAndPlay(1);
};
prologues.visible = true;
} else {
Tracer.report("[X]", "Prologue isn't defined.", "Game");
};
}
private function terminateEpisode():void{
if (story.numChildren){
if (!currentEpisode){
currentEpisode = (story.getChildAt(0) as Episode);
};
currentEpisode.finish();
currentEpisode.erase();
currentEpisode.state = "STOPPED";
story.removeChild(currentEpisode);
currentEpisode = null;
};
}
public function registerEpilogue(_arg1:String, _arg2):Boolean{
if (!epiloguesRegistry[_arg1]){
if ((((_arg2 is String)) || ((_arg2 is uint)))){
epiloguesRegistry[_arg1] = _arg2;
return (true);
};
Tracer.report("[X]", "Frame must be 'String' or 'uint'.", "Game");
} else {
Tracer.report("[X]", "Epilogue already exists.", "Game");
};
return (false);
}
private function establishEpisode(_arg1:String):void{
var _local2:*;
hideEpilogue();
hidePrologue();
_local2 = episodesData[_arg1].prologue;
if (prologuesRegistry[_local2] != null){
showPrologue(_local2);
} else {
startCurrentEpisode();
};
}
public function nextEpisode():void{
var _local1:*;
if (currentEpisode){
if (episodesOrder[(currentEpisodeIndex + 1)]){
closeActiveWindow();
_local1 = episodesOrder[(currentEpisodeIndex + 1)];
currentEpisodeIndex = episodesRegistry[_local1];
terminateEpisode();
createEpisode();
establishEpisode(_local1);
} else {
Tracer.report("[X]", "There isn't next episode.", "Game");
};
} else {
Tracer.report("[X]", "Current episode isn't defined.", "Game");
};
}
public function showEpilogue(_arg1:String):void{
if (epiloguesRegistry[_arg1]){
if (epilogues.currentFrame != epiloguesRegistry[_arg1]){
epilogues.images.ready = false;
epilogues.gotoAndStop(epiloguesRegistry[_arg1]);
playEpilogue();
} else {
epilogues.images.gotoAndPlay(1);
};
epilogues.visible = true;
} else {
Tracer.report("[X]", "Epilogue isn't defined.", "Game");
};
}
public function enableAction():void{
if (currentEpisode){
currentEpisode.enableAction();
} else {
Tracer.report("[X]", "Current episode isn't defined.", "Game");
};
}
private function playPrologue():void{
if (((prologues.images) && (prologues.images.ready))){
prologues.images.gotoAndPlay(2);
} else {
addEventListener(Event.ENTER_FRAME, playPrologueIfExist);
};
}
private function playEpilogueIfExist(_arg1:Event):void{
if (((epilogues.images) && (epilogues.images.ready))){
_arg1.target.removeEventListener(Event.ENTER_FRAME, playEpilogueIfExist);
epilogues.images.gotoAndPlay(2);
};
}
public function unregisterPrologue(_arg1:String):Boolean{
if (prologuesRegistry[_arg1] != null){
prologuesRegistry[_arg1] = null;
delete prologuesRegistry[_arg1];
return (true);
};
Tracer.report("[X]", "Prologue isn't registered.", "Game");
return (false);
}
public function isPrevEpisode():Boolean{
if ((currentEpisodeIndex - 1) < 0){
return (false);
};
if (episodesOrder[(currentEpisodeIndex - 1)]){
return (true);
};
return (false);
}
public function hidePrologue():void{
prologues.visible = false;
if (prologues.images){
prologues.images.gotoAndStop(1);
};
}
private function playEpilogue():void{
if (((epilogues.images) && (epilogues.images.ready))){
epilogues.images.gotoAndPlay(2);
} else {
addEventListener(Event.ENTER_FRAME, playEpilogueIfExist);
};
}
private function playPrologueIfExist(_arg1:Event):void{
if (((prologues.images) && (prologues.images.ready))){
_arg1.target.removeEventListener(Event.ENTER_FRAME, playPrologueIfExist);
prologues.images.gotoAndPlay(2);
};
}
function frame1(){
story.visible = false;
hintButton.visible = false;
banner1.visible = false;
trace(registerEpisode);
registerEpisode("first", 1, Episode_01, {prologue:"firstStory"});
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);
registerPrologue("firstStory", 1);
}
public function unregisterEpilogue(_arg1:String):Boolean{
if (epiloguesRegistry[_arg1] != null){
epiloguesRegistry[_arg1] = null;
delete epiloguesRegistry[_arg1];
return (true);
};
Tracer.report("[X]", "Epilogue isn't registered.", "Game");
return (false);
}
private function startCurrentEpisodeIfExist(_arg1:Event):void{
var _local2:Episode;
if (story.numChildren > 0){
_local2 = (story.getChildAt(0) as Episode);
if (((_local2) && ((_local2.state == "READY")))){
_arg1.target.removeEventListener(Event.ENTER_FRAME, startCurrentEpisodeIfExist);
currentEpisode = _local2;
currentEpisode.start();
};
};
}
public function getEpisodeName(_arg1:uint=0):String{
if (_arg1 > 0){
if (episodesOrder[_arg1]){
return (episodesOrder[_arg1]);
};
} else {
if (((currentEpisode) && (currentEpisodeIndex))){
return (episodesOrder[currentEpisodeIndex]);
};
};
Tracer.report("[X]", "Wrong episode's index.", "Game");
return ("");
}
public static function showYouAreHistoryWindow():void{
var _local1:*;
closeActiveWindow();
_local1 = new WindowYouAreHistory();
_local1.x = ((Game.inst.stage.stageWidth - _local1.width) / 2);
_local1.y = 100;
Game.inst.addChild(_local1);
Game.activeWindow = _local1;
}
public static function showNextLevelWindow():void{
var _local1:*;
closeActiveWindow();
_local1 = new WindowNextLevel();
_local1.x = ((Game.inst.stage.stageWidth - _local1.width) / 2);
_local1.y = 100;
Game.inst.addChild(_local1);
Game.activeWindow = _local1;
}
public static function showFinalWindow():void{
var _local1:*;
closeActiveWindow();
_local1 = new WindowFinal();
_local1.x = ((Game.inst.stage.stageWidth - _local1.width) / 2);
_local1.y = 80;
Game.inst.addChild(_local1);
Game.activeWindow = _local1;
}
public static function showBanner():void{
var _local1:*;
if (Game.inst){
_local1 = Game.inst.getChildByName("banner");
if (_local1){
_local1.visible = true;
} else {
Tracer.report("[X]", "Banner doesn't exists.", "Game");
};
} else {
Tracer.report("[X]", "Game instance doesn't exists.", "Game");
};
}
public static function closeActiveWindow():void{
if (Game.activeWindow){
Game.activeWindow.close();
};
}
public static function hideBanner():void{
var _local1:*;
if (Game.inst){
_local1 = Game.inst.getChildByName("banner");
if (_local1){
_local1.visible = false;
} else {
Tracer.report("[X]", "Banner doesn't exists.", "Game");
};
} else {
Tracer.report("[X]", "Game instance doesn't exists.", "Game");
};
}
public static function showInstructionsWindow():void{
var _local1:*;
closeActiveWindow();
_local1 = new WindowInstructions();
_local1.x = ((Game.inst.stage.stageWidth - _local1.width) / 2);
_local1.y = ((Game.inst.stage.stageHeight - _local1.height) / 2);
Game.inst.addChild(_local1);
Game.activeWindow = _local1;
}
}
}//package
Section 184
//GameMusic (GameMusic)
package {
import flash.media.*;
public dynamic class GameMusic extends Sound {
}
}//package
Section 185
//hero (hero)
package {
public dynamic class hero extends Character {
public function hero(){
addFrameScript(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, 21, frame22);
}
function frame21(){
stop();
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame18(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame8(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame22(){
stop();
}
function frame4(){
stop();
}
function frame20(){
stop();
}
function frame9(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame11(){
stop();
}
function frame19(){
stop();
}
}
}//package
Section 186
//hSoundFull (hSoundFull)
package {
import flash.media.*;
public dynamic class hSoundFull extends Sound {
}
}//package
Section 187
//Inventory (Inventory)
package {
import flash.events.*;
public class Inventory extends EventDispatcher {
private var items:Object;
private var episode:Episode;
public function Inventory(_arg1:Episode){
this.episode = _arg1;
items = new Object();
}
public function listItems():void{
var _local1:uint;
var _local2:*;
trace("[S] LIST: inventory items:");
_local1 = 0;
for (_local2 in items) {
trace((((" - " + _local2) + " = ") + items[_local2]));
_local1++;
};
trace((" Total number: " + _local1));
}
public function hasNotMoreOf(_arg1:uint, _arg2:Array):Boolean{
var _local3:uint;
var _local4:uint;
var _local5:uint;
if (_arg1 == 0){
return (true);
};
if (_arg1 <= _arg2.length){
_local3 = _arg2.length;
_local4 = 0;
_local5 = 0;
while (_local5 < _local3) {
if (items[_arg2[_local5]]){
_local4++;
};
_local5++;
};
if (_local4 <= _arg1){
return (true);
};
return (false);
//unresolved jump
};
return (true);
}
public function takeItem(_arg1:String):Boolean{
if (addItem(_arg1)){
showItemWindow(_arg1);
Tracer.report("[i]", "WindowItem: takeItem().", "Inventory");
return (true);
};
return (false);
}
public function hasNotLessOf(_arg1:uint, _arg2:Array):Boolean{
var _local3:uint;
var _local4:uint;
var _local5:uint;
if (_arg1 == 0){
return (true);
};
if (_arg1 <= _arg2.length){
_local3 = _arg2.length;
_local4 = 0;
_local5 = 0;
while (_local5 < _local3) {
if (items[_arg2[_local5]]){
_local4++;
};
_local5++;
};
if (_local4 >= _arg1){
return (true);
};
return (false);
//unresolved jump
};
return (false);
}
public function notHasItem(_arg1:String):Boolean{
if (items[_arg1]){
return (false);
};
return (true);
}
public function addItem(_arg1:String):Boolean{
if (episode.isItem(_arg1)){
if (!items[_arg1]){
items[_arg1] = episode.callItem(_arg1);
Tracer.report("[i]", (("Item '" + _arg1) + "' added."), "Inventory");
return (true);
};
Tracer.report("[X]", "Item already added.", "Inventory");
} else {
Tracer.report("[X]", "Item isn't registered.", "Inventory");
};
return (false);
}
public function notHasAll(_arg1:Array):Boolean{
var _local2:uint;
var _local3:uint;
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
if (items[_arg1[_local3]]){
return (false);
};
_local3++;
};
return (true);
}
public function hasNumberOf(_arg1:uint, _arg2:Array):Boolean{
var _local3:uint;
var _local4:uint;
var _local5:uint;
if (_arg1 <= _arg2.length){
_local3 = _arg2.length;
_local4 = 0;
_local5 = 0;
while (_local5 < _local3) {
if (items[_arg2[_local5]]){
_local4++;
};
_local5++;
};
if (_local4 == _arg1){
return (true);
};
return (false);
//unresolved jump
};
return (false);
}
public function kill():void{
var _local1:*;
for (_local1 in items) {
items[_local1].kill();
items[_local1] = undefined;
delete items[_local1];
};
items = undefined;
episode = undefined;
}
public function makeItem(_arg1:String, _arg2:Array):Boolean{
var _local3:uint;
var _local4:uint;
_local4 = _arg2.length;
_local3 = 0;
while (_local3 < _local4) {
if (!items[_arg2[_local3]]){
return (false);
};
_local3++;
};
if (addItem(_arg1)){
_local3 = 0;
while (_local3 < _local4) {
removeItem(_arg2[_local3]);
_local3++;
};
showItemWindow(_arg1, "You made ");
Tracer.report("[i]", "WindowItem: makeItem().", "Inventory");
return (true);
};
return (false);
}
public function getAny(_arg1:Array):Item{
var _local2:uint;
var _local3:uint;
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
if (items[_arg1[_local3]]){
return (items[_arg1[_local3]]);
};
_local3++;
};
return (null);
}
public function hasItem(_arg1:String):Boolean{
if (items[_arg1]){
return (true);
};
return (false);
}
public function hasAll(_arg1:Array):Boolean{
var _local2:uint;
var _local3:uint;
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
if (!items[_arg1[_local3]]){
return (false);
};
_local3++;
};
return (true);
}
public function findItem(_arg1:String):Item{
if (items[_arg1]){
return (items[_arg1]);
};
return (null);
}
private function showItemWindow(_arg1:String, _arg2:String=null):void{
var _local3:Item;
var _local4:*;
var _local5:String;
var _local6:*;
var _local7:*;
var _local8:Number;
_local3 = items[_arg1];
if (Game.activeWindow){
Game.activeWindow.close();
};
_local4 = new WindowItem();
_local5 = _local3.title;
if (_arg2){
};
if (_local3.icon){
_local6 = _local3.icon;
_local7 = new (_local6);
if ((((_local7.width > _local4.itemIcon_mc.width)) || ((_local7.height > _local4.itemIcon_mc.height)))){
if (_local7.width >= _local7.height){
_local8 = (_local7.width / _local4.itemIcon_mc.width);
} else {
_local8 = (_local7.height / _local4.itemIcon_mc.height);
};
_local7.width = (_local7.width / _local8);
_local7.height = (_local7.height / _local8);
};
_local7.x = ((_local4.itemIcon_mc.width - _local7.width) / 2);
_local7.y = ((_local4.itemIcon_mc.height - _local7.height) / 2);
_local4.itemIcon_mc.addChild(_local7);
} else {
Tracer.report("[!]", "WindowItem: icon for item is undefined.", "Inventory");
};
_local4.x = ((Game.inst.stage.stageWidth - _local4.width) / 2);
_local4.y = ((Game.inst.stage.stageHeight - _local4.height) / 2);
Game.inst.addChild(_local4);
Game.activeWindow = _local4;
}
public function hasAny(_arg1:Array):Boolean{
var _local2:uint;
var _local3:uint;
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
if (items[_arg1[_local3]]){
return (true);
};
_local3++;
};
return (false);
}
public function removeItem(_arg1:String):Boolean{
if (items[_arg1]){
items[_arg1] = null;
delete items[_arg1];
Tracer.report("[i]", (("Item '" + _arg1) + "' removed."), "Inventory");
return (true);
};
Tracer.report("[X]", "There is no such item.", "Inventory");
return (false);
}
public function notHasAny(_arg1:Array):Boolean{
var _local2:uint;
var _local3:uint;
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
if (!items[_arg1[_local3]]){
return (true);
};
_local3++;
};
return (false);
}
}
}//package
Section 188
//Item (Item)
package {
public class Item {
public var name:String;
public var title:String;
public var icon;
public var description:String;
public function Item(_arg1:String, _arg2=null, _arg3:String=null, _arg4:String=null){
this.name = _arg1;
this.icon = _arg2;
this.title = _arg3;
this.description = _arg4;
}
public function kill():void{
name = undefined;
icon = undefined;
title = undefined;
description = undefined;
}
}
}//package
Section 189
//Item_Apple (Item_Apple)
package {
import flash.display.*;
public dynamic class Item_Apple extends MovieClip {
}
}//package
Section 190
//Item_Axe (Item_Axe)
package {
import flash.display.*;
public dynamic class Item_Axe extends MovieClip {
}
}//package
Section 191
//Item_Helmet (Item_Helmet)
package {
import flash.display.*;
public dynamic class Item_Helmet extends MovieClip {
}
}//package
Section 192
//Item_Hook (Item_Hook)
package {
import flash.display.*;
public dynamic class Item_Hook extends MovieClip {
}
}//package
Section 193
//Item_Knife (Item_Knife)
package {
import flash.display.*;
public dynamic class Item_Knife extends MovieClip {
}
}//package
Section 194
//Item_Oil (Item_Oil)
package {
import flash.display.*;
public dynamic class Item_Oil extends MovieClip {
}
}//package
Section 195
//Item_Plate (Item_Plate)
package {
import flash.display.*;
public dynamic class Item_Plate extends MovieClip {
}
}//package
Section 196
//Item_Rope (Item_Rope)
package {
import flash.display.*;
public dynamic class Item_Rope extends MovieClip {
}
}//package
Section 197
//Item_Shield (Item_Shield)
package {
import flash.display.*;
public dynamic class Item_Shield extends MovieClip {
}
}//package
Section 198
//Item_Spear (Item_Spear)
package {
import flash.display.*;
public dynamic class Item_Spear extends MovieClip {
}
}//package
Section 199
//Item_Stone (Item_Stone)
package {
import flash.display.*;
public dynamic class Item_Stone extends MovieClip {
}
}//package
Section 200
//Item_Sword (Item_Sword)
package {
import flash.display.*;
public dynamic class Item_Sword extends MovieClip {
}
}//package
Section 201
//Item_Sword2 (Item_Sword2)
package {
import flash.display.*;
public dynamic class Item_Sword2 extends MovieClip {
}
}//package
Section 202
//Item_Whip (Item_Whip)
package {
import flash.display.*;
public dynamic class Item_Whip extends MovieClip {
}
}//package
Section 203
//Item_Wine (Item_Wine)
package {
import flash.display.*;
public dynamic class Item_Wine extends MovieClip {
}
}//package
Section 204
//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 205
//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 206
//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 207
//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 208
//takeSound (takeSound)
package {
import flash.media.*;
public dynamic class takeSound extends Sound {
}
}//package
Section 209
//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 210
//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 211
//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
Section 212
//Window (Window)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public class Window extends MovieClip {
public var a6:MovieClip;
public var a4:MovieClip;
public var time_tf:TextField;
public var a5:MovieClip;
public var pict:MovieClip;
public var mgBtn:MovieClip;
public var nextBtn:MovieClip;
public var preloader:MovieClip;
public var itemIcon_mc:MovieClip;
public var playBtn:MovieClip;
private var lifeTimer:Timer;
public var retryBtn:MovieClip;
public var mmBtn:MovieClip;
public var a2:MovieClip;
public var a3:MovieClip;
public var a1:MovieClip;
public function Window(){
lifeTimer = new Timer(3000, 1);
lifeTimer.addEventListener(TimerEvent.TIMER_COMPLETE, closeSelf);
}
public function close():void{
if (parent != null){
Game.activeWindow = null;
if (lifeTimer.running){
lifeTimer.stop();
};
var _local1 = parent;
_local1["removeChild"](this);
};
}
private function closeSelf(_arg1:TimerEvent):void{
close();
}
public function startLifeTimer():void{
lifeTimer.start();
}
public function stopLifeTimer():void{
lifeTimer.stop();
}
}
}//package
Section 213
//WindowFinal (WindowFinal)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import flash.text.*;
import flash.filters.*;
import flash.geom.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class WindowFinal extends Window {
public function WindowFinal(){
addFrameScript(0, frame1);
}
function frame1(){
if (Game.inst){
time_tf.text = ("Time: " + Console.formatTime(Game.inst.totalTime, false));
};
}
}
}//package
Section 214
//WindowInstructions (WindowInstructions)
package {
public dynamic class WindowInstructions extends Window {
public function WindowInstructions(){
addFrameScript(0, frame1);
}
function frame1(){
playBtn.gotoAndStop(1);
}
}
}//package
Section 215
//WindowItem (WindowItem)
package {
public dynamic class WindowItem extends Window {
public function WindowItem(){
addFrameScript(0, frame1);
}
function frame1(){
startLifeTimer();
}
}
}//package
Section 216
//WindowNextLevel (WindowNextLevel)
package {
public dynamic class WindowNextLevel extends Window {
public function WindowNextLevel(){
addFrameScript(0, frame1);
}
function frame1(){
nextBtn.gotoAndStop(1);
mmBtn.gotoAndStop(1);
mgBtn.gotoAndStop(1);
pict.gotoAndStop(Console.getEpisodeIndex());
}
}
}//package
Section 217
//WindowYouAreHistory (WindowYouAreHistory)
package {
public dynamic class WindowYouAreHistory extends Window {
public function WindowYouAreHistory(){
addFrameScript(0, frame1);
}
function frame1(){
retryBtn.gotoAndStop(1);
mmBtn.gotoAndStop(1);
mgBtn.gotoAndStop(1);
}
}
}//package