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_336 (PnC_Game_fla._nextBtn_336)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class _nextBtn_336 extends MovieClip {
public var hitMc:MovieClip;
public function _nextBtn_336(){
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_342 (PnC_Game_fla.Banner_342)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Banner_342 extends MovieClip {
public var link:String;
public function Banner_342(){
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
//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 15
//buttonMoreGames_317 (PnC_Game_fla.buttonMoreGames_317)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class buttonMoreGames_317 extends MovieClip {
public function buttonMoreGames_317(){
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 16
//buttonPlay_316 (PnC_Game_fla.buttonPlay_316)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class buttonPlay_316 extends MovieClip {
public function buttonPlay_316(){
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 17
//combine_mc_364 (PnC_Game_fla.combine_mc_364)
package PnC_Game_fla {
import flash.display.*;
public dynamic class combine_mc_364 extends MovieClip {
public function combine_mc_364(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package PnC_Game_fla
Section 18
//combine_mc_371 (PnC_Game_fla.combine_mc_371)
package PnC_Game_fla {
import flash.display.*;
public dynamic class combine_mc_371 extends MovieClip {
public function combine_mc_371(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package PnC_Game_fla
Section 19
//combine_mc_380 (PnC_Game_fla.combine_mc_380)
package PnC_Game_fla {
import flash.display.*;
public dynamic class combine_mc_380 extends MovieClip {
public function combine_mc_380(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package PnC_Game_fla
Section 20
//combine_mc_392 (PnC_Game_fla.combine_mc_392)
package PnC_Game_fla {
import flash.display.*;
public dynamic class combine_mc_392 extends MovieClip {
public function combine_mc_392(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
}
}
}//package PnC_Game_fla
Section 21
//Console_345 (PnC_Game_fla.Console_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 Console_345 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_345(){
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 22
//cont_348 (PnC_Game_fla.cont_348)
package PnC_Game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class cont_348 extends MovieClip {
public var history_tf:TextField;
public function cont_348(){
addFrameScript(0, frame1);
}
function frame1(){
history_tf.autoSize = "left";
}
}
}//package PnC_Game_fla
Section 23
//content_347 (PnC_Game_fla.content_347)
package PnC_Game_fla {
import flash.display.*;
public dynamic class content_347 extends MovieClip {
public var cont_mc:MovieClip;
public var mask_mc:MovieClip;
}
}//package PnC_Game_fla
Section 24
//Epilogue_324 (PnC_Game_fla.Epilogue_324)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Epilogue_324 extends MovieClip {
public function Epilogue_324(){
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 25
//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 26
//F_hero_free_138 (PnC_Game_fla.F_hero_free_138)
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 F_hero_free_138 extends MovieClip {
public function F_hero_free_138(){
addFrameScript(56, frame57, 58, frame59);
}
function frame57(){
trace("rwetwet");
MovieClip(parent.parent.parent.parent.parent).win();
}
function frame59(){
stop();
}
}
}//package PnC_Game_fla
Section 27
//FPSDisplay_320 (PnC_Game_fla.FPSDisplay_320)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public dynamic class FPSDisplay_320 extends MovieClip {
public var _tf:TextField;
public var begTime:Number;
public function FPSDisplay_320(){
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 28
//hero_attack_69 (PnC_Game_fla.hero_attack_69)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_attack_69 extends MovieClip {
public var callback:Function;
public function hero_attack_69(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 29
//hero_bite_71 (PnC_Game_fla.hero_bite_71)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_bite_71 extends MovieClip {
public var callback:Function;
public function hero_bite_71(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 30
//hero_die_2_l5_98 (PnC_Game_fla.hero_die_2_l5_98)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_die_2_l5_98 extends MovieClip {
public var callback:Function;
public function hero_die_2_l5_98(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 31
//hero_die_l2_73 (PnC_Game_fla.hero_die_l2_73)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_die_l2_73 extends MovieClip {
public var callback:Function;
public function hero_die_l2_73(){
addFrameScript(21, frame22);
}
function frame22(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 32
//hero_die_l5_84 (PnC_Game_fla.hero_die_l5_84)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_die_l5_84 extends MovieClip {
public var callback:Function;
public function hero_die_l5_84(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 33
//hero_fishing_74 (PnC_Game_fla.hero_fishing_74)
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_fishing_74 extends MovieClip {
public var callback:Function;
public function hero_fishing_74(){
addFrameScript(13, frame14, 73, frame74);
}
function frame74(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
function frame14(){
MovieClip(parent.parent).skull2.visible = false;
}
}
}//package PnC_Game_fla
Section 34
//hero_flight_l3_all_87 (PnC_Game_fla.hero_flight_l3_all_87)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_flight_l3_all_87 extends MovieClip {
public var callback:Function;
public function hero_flight_l3_all_87(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 35
//hero_pick_up_68 (PnC_Game_fla.hero_pick_up_68)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_pick_up_68 extends MovieClip {
public var callback:Function;
public function hero_pick_up_68(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 36
//hero_refused_95 (PnC_Game_fla.hero_refused_95)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_refused_95 extends MovieClip {
public var callback:Function;
public function hero_refused_95(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 37
//hero_rope_up_l6_86 (PnC_Game_fla.hero_rope_up_l6_86)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_rope_up_l6_86 extends MovieClip {
public var callback:Function;
public function hero_rope_up_l6_86(){
addFrameScript(23, frame24);
}
function frame24(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 38
//hero_saw_77 (PnC_Game_fla.hero_saw_77)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_saw_77 extends MovieClip {
public var callback:Function;
public function hero_saw_77(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 39
//hero_shot_cal_l4_78 (PnC_Game_fla.hero_shot_cal_l4_78)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_shot_cal_l4_78 extends MovieClip {
public var callback:Function;
public function hero_shot_cal_l4_78(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 40
//hero_take_67 (PnC_Game_fla.hero_take_67)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_take_67 extends MovieClip {
public var callback:Function;
public function hero_take_67(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 41
//hero_take_up_rock_l5_85 (PnC_Game_fla.hero_take_up_rock_l5_85)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_take_up_rock_l5_85 extends MovieClip {
public var callback:Function;
public function hero_take_up_rock_l5_85(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 42
//hero_throw_l5_96 (PnC_Game_fla.hero_throw_l5_96)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_throw_l5_96 extends MovieClip {
public var callback:Function;
public function hero_throw_l5_96(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 43
//hero_walk_66 (PnC_Game_fla.hero_walk_66)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_walk_66 extends MovieClip {
public function hero_walk_66(){
addFrameScript(34, frame35);
}
function frame35(){
gotoAndPlay(6);
}
}
}//package PnC_Game_fla
Section 44
//hero_win_l4_83 (PnC_Game_fla.hero_win_l4_83)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_win_l4_83 extends MovieClip {
public function hero_win_l4_83(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(20);
}
}
}//package PnC_Game_fla
Section 45
//hero_win_l4_anim_82 (PnC_Game_fla.hero_win_l4_anim_82)
package PnC_Game_fla {
import flash.display.*;
public dynamic class hero_win_l4_anim_82 extends MovieClip {
public var callback:Function;
public function hero_win_l4_anim_82(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 46
//HintButton_323 (PnC_Game_fla.HintButton_323)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class HintButton_323 extends MovieClip {
public function HintButton_323(){
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 47
//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 48
//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 49
//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 50
//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/andy-the-athlete"), "_blank");
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, a13);
}
}
}//package PnC_Game_fla
Section 51
//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/georg-the-ghost"), "_blank");
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, a13);
}
}
}//package PnC_Game_fla
Section 52
//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 53
//l1_bark_anim_294 (PnC_Game_fla.l1_bark_anim_294)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l1_bark_anim_294 extends MovieClip {
public function l1_bark_anim_294(){
addFrameScript(0, frame1, 36, frame37);
}
function frame1(){
stop();
}
function frame37(){
stop();
}
}
}//package PnC_Game_fla
Section 54
//l1_bushItem_299 (PnC_Game_fla.l1_bushItem_299)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l1_bushItem_299 extends MovieClip {
public function l1_bushItem_299(){
addFrameScript(0, frame1, 35, frame36);
}
function frame1(){
stop();
}
function frame36(){
stop();
}
}
}//package PnC_Game_fla
Section 55
//l1_hero_walk_310 (PnC_Game_fla.l1_hero_walk_310)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l1_hero_walk_310 extends MovieClip {
public function l1_hero_walk_310(){
addFrameScript(34, frame35);
}
function frame35(){
gotoAndPlay(6);
}
}
}//package PnC_Game_fla
Section 56
//l1_main_290 (PnC_Game_fla.l1_main_290)
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 l1_main_290 extends MovieClip {
public var stemNet:MovieClip;
public var bark:MovieClip;
public var bush:MovieClip;
public function l1_main_290(){
addFrameScript(70, frame71, 176, frame177, 293, frame294, 649, frame650);
}
function frame71(){
stop();
MovieClip(parent).lose();
}
function frame177(){
stop();
MovieClip(parent).lose();
}
function frame294(){
stop();
MovieClip(parent).lose();
}
function frame650(){
stop();
MovieClip(parent).win();
}
}
}//package PnC_Game_fla
Section 57
//l1_stem_with_netAnim_292 (PnC_Game_fla.l1_stem_with_netAnim_292)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l1_stem_with_netAnim_292 extends MovieClip {
public function l1_stem_with_netAnim_292(){
addFrameScript(0, frame1, 23, frame24);
}
function frame1(){
stop();
}
function frame24(){
stop();
}
}
}//package PnC_Game_fla
Section 58
//l2_cocoss_272 (PnC_Game_fla.l2_cocoss_272)
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_cocoss_272 extends MovieClip {
public function l2_cocoss_272(){
addFrameScript(0, frame1, 48, frame49, 49, frame50);
}
function frame1(){
stop();
}
function frame49(){
MovieClip(parent).cocoss.visible = true;
}
function frame50(){
stop();
}
}
}//package PnC_Game_fla
Section 59
//l2_die_graboid_72 (PnC_Game_fla.l2_die_graboid_72)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l2_die_graboid_72 extends MovieClip {
public var anim:MovieClip;
public var callback:Function;
public function l2_die_graboid_72(){
addFrameScript(42, frame43);
}
function frame43(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 60
//L2_graboid_286 (PnC_Game_fla.L2_graboid_286)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L2_graboid_286 extends MovieClip {
public function L2_graboid_286(){
addFrameScript(111, frame112);
}
function frame112(){
stop();
}
}
}//package PnC_Game_fla
Section 61
//l2_litle_dino_anim_276 (PnC_Game_fla.l2_litle_dino_anim_276)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l2_litle_dino_anim_276 extends MovieClip {
public function l2_litle_dino_anim_276(){
addFrameScript(93, frame94);
}
function frame94(){
stop();
}
}
}//package PnC_Game_fla
Section 62
//l2_litledino_277 (PnC_Game_fla.l2_litledino_277)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l2_litledino_277 extends MovieClip {
public function l2_litledino_277(){
addFrameScript(66, frame67);
}
function frame67(){
stop();
}
}
}//package PnC_Game_fla
Section 63
//l2_palma_256 (PnC_Game_fla.l2_palma_256)
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_palma_256 extends MovieClip {
public function l2_palma_256(){
addFrameScript(0, frame1, 6, frame7, 7, frame8, 36, frame37, 37, frame38, 140, frame141, 176, frame177);
}
function frame177(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame8(){
stop();
}
function frame37(){
stop();
MovieClip(parent).lose();
}
function frame38(){
stop();
}
function frame141(){
stop();
MovieClip(parent).action = true;
}
}
}//package PnC_Game_fla
Section 64
//l2_palma_anim_part3_anim_269 (PnC_Game_fla.l2_palma_anim_part3_anim_269)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l2_palma_anim_part3_anim_269 extends MovieClip {
public function l2_palma_anim_part3_anim_269(){
addFrameScript(33, frame34);
}
function frame34(){
stop();
}
}
}//package PnC_Game_fla
Section 65
//l2_palpa_kokos_246 (PnC_Game_fla.l2_palpa_kokos_246)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l2_palpa_kokos_246 extends MovieClip {
public function l2_palpa_kokos_246(){
addFrameScript(0, frame1, 41, frame42);
}
function frame1(){
stop();
}
function frame42(){
stop();
}
}
}//package PnC_Game_fla
Section 66
//l3_egg_anim1_235 (PnC_Game_fla.l3_egg_anim1_235)
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 l3_egg_anim1_235 extends MovieClip {
public function l3_egg_anim1_235(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
MovieClip(parent.parent).lose();
}
}
}//package PnC_Game_fla
Section 67
//l3_egg_anim2_237 (PnC_Game_fla.l3_egg_anim2_237)
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 l3_egg_anim2_237 extends MovieClip {
public function l3_egg_anim2_237(){
addFrameScript(71, frame72);
}
function frame72(){
stop();
MovieClip(parent.parent).jf.playAnim("flight_l3_all", function (){
MovieClip(parent.parent).win();
});
MovieClip(parent.parent).bird.gotoAndStop(2);
}
}
}//package PnC_Game_fla
Section 68
//l3_egg_animAll_234 (PnC_Game_fla.l3_egg_animAll_234)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_egg_animAll_234 extends MovieClip {
public function l3_egg_animAll_234(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 69
//l3_pterodaktel_All_220 (PnC_Game_fla.l3_pterodaktel_All_220)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_pterodaktel_All_220 extends MovieClip {
public function l3_pterodaktel_All_220(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 70
//l3_pterodaktel_all_222 (PnC_Game_fla.l3_pterodaktel_all_222)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_pterodaktel_all_222 extends MovieClip {
public function l3_pterodaktel_all_222(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
}
}
}//package PnC_Game_fla
Section 71
//l3_vylkan_229 (PnC_Game_fla.l3_vylkan_229)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l3_vylkan_229 extends MovieClip {
public function l3_vylkan_229(){
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 72
//l4_diplodok_all_200 (PnC_Game_fla.l4_diplodok_all_200)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l4_diplodok_all_200 extends MovieClip {
public function l4_diplodok_all_200(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 73
//l4_diplodok_dont_wont_208 (PnC_Game_fla.l4_diplodok_dont_wont_208)
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_diplodok_dont_wont_208 extends MovieClip {
public function l4_diplodok_dont_wont_208(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
MovieClip(parent.parent).lose();
}
}
}//package PnC_Game_fla
Section 74
//l4_diplodok_turned_209 (PnC_Game_fla.l4_diplodok_turned_209)
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_diplodok_turned_209 extends MovieClip {
public function l4_diplodok_turned_209(){
addFrameScript(106, frame107);
}
function frame107(){
MovieClip(parent.parent).action = true;
gotoAndPlay(58);
}
}
}//package PnC_Game_fla
Section 75
//l4_stemwithleaves_190 (PnC_Game_fla.l4_stemwithleaves_190)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l4_stemwithleaves_190 extends MovieClip {
public function l4_stemwithleaves_190(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 76
//l5_big_stone_157 (PnC_Game_fla.l5_big_stone_157)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_big_stone_157 extends MovieClip {
public function l5_big_stone_157(){
addFrameScript(0, frame1, 13, frame14, 14, frame15, 15, frame16, 16, frame17);
}
function frame14(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame17(){
stop();
}
}
}//package PnC_Game_fla
Section 77
//l5_triceratops_172 (PnC_Game_fla.l5_triceratops_172)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_triceratops_172 extends MovieClip {
public function l5_triceratops_172(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package PnC_Game_fla
Section 78
//l5_triceratops_all_160 (PnC_Game_fla.l5_triceratops_all_160)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_triceratops_all_160 extends MovieClip {
public function l5_triceratops_all_160(){
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 79
//l5_triceratops_attack_173 (PnC_Game_fla.l5_triceratops_attack_173)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_triceratops_attack_173 extends MovieClip {
public function l5_triceratops_attack_173(){
addFrameScript(16, frame17);
}
function frame17(){
gotoAndPlay(6);
}
}
}//package PnC_Game_fla
Section 80
//l5_triceratops_attack_anim_171 (PnC_Game_fla.l5_triceratops_attack_anim_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_triceratops_attack_anim_171 extends MovieClip {
public function l5_triceratops_attack_anim_171(){
addFrameScript(49, frame50, 85, frame86);
}
function frame86(){
stop();
}
function frame50(){
MovieClip(parent.parent).jf.playAnim("die_2_l5", function (){
MovieClip(parent.parent).lose();
});
}
}
}//package PnC_Game_fla
Section 81
//l5_triceratops_attack_anim_2_176 (PnC_Game_fla.l5_triceratops_attack_anim_2_176)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l5_triceratops_attack_anim_2_176 extends MovieClip {
public function l5_triceratops_attack_anim_2_176(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package PnC_Game_fla
Section 82
//l5_triceratops_attack_hero_stop_174 (PnC_Game_fla.l5_triceratops_attack_hero_stop_174)
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_triceratops_attack_hero_stop_174 extends MovieClip {
public function l5_triceratops_attack_hero_stop_174(){
addFrameScript(43, frame44, 59, frame60);
}
function frame44(){
MovieClip(parent.parent).jf.playAnim("die_2_l5", function (){
MovieClip(parent.parent).lose();
});
}
function frame60(){
stop();
}
}
}//package PnC_Game_fla
Section 83
//l6_bitg_stone_2_102 (PnC_Game_fla.l6_bitg_stone_2_102)
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_bitg_stone_2_102 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
public function l6_bitg_stone_2_102(){
addFrameScript(0, frame1, 30, frame31, 31, frame32, 75, frame76);
}
function frame76(){
stop();
}
function frame1(){
stop();
}
function frame31(){
stop();
}
function frame32(){
MovieClip(parent).parents.parents.man1.visible = false;
}
}
}//package PnC_Game_fla
Section 84
//l6_bitg_stone_99 (PnC_Game_fla.l6_bitg_stone_99)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_bitg_stone_99 extends MovieClip {
public function l6_bitg_stone_99(){
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
stop();
}
function frame45(){
stop();
}
}
}//package PnC_Game_fla
Section 85
//L6_perent_118 (PnC_Game_fla.L6_perent_118)
package PnC_Game_fla {
import flash.display.*;
public dynamic class L6_perent_118 extends MovieClip {
public function L6_perent_118(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 86
//l6_piope_all_116 (PnC_Game_fla.l6_piope_all_116)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_piope_all_116 extends MovieClip {
public var parents:MovieClip;
public function l6_piope_all_116(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package PnC_Game_fla
Section 87
//l6_piople_117 (PnC_Game_fla.l6_piople_117)
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_piople_117 extends MovieClip {
public var parents:MovieClip;
public var man1:MovieClip;
public var man2:MovieClip;
public function l6_piople_117(){
addFrameScript(284, frame285);
}
function frame285(){
stop();
MovieClip(parent.parent).lose();
}
}
}//package PnC_Game_fla
Section 88
//l6_piople_142 (PnC_Game_fla.l6_piople_142)
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_piople_142 extends MovieClip {
public var parents:MovieClip;
public var man1:MovieClip;
public var man2:MovieClip;
public function l6_piople_142(){
addFrameScript(3, frame4, 242, frame243, 252, frame253);
}
function frame4(){
}
function frame243(){
}
function frame253(){
stop();
MovieClip(parent.parent).causeEvent("caravanStop_ok");
}
}
}//package PnC_Game_fla
Section 89
//l6_setka_139 (PnC_Game_fla.l6_setka_139)
package PnC_Game_fla {
import flash.display.*;
public dynamic class l6_setka_139 extends MovieClip {
public function l6_setka_139(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package PnC_Game_fla
Section 90
//l6_uly_109 (PnC_Game_fla.l6_uly_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 l6_uly_109 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
public function l6_uly_109(){
addFrameScript(0, frame1, 15, frame16, 96, frame97);
}
function frame97(){
stop();
}
function frame16(){
MovieClip(parent).parents.parents.man2.visible = false;
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 91
//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 92
//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 93
//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 94
//Logotype_343 (PnC_Game_fla.Logotype_343)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Logotype_343 extends MovieClip {
public function Logotype_343(){
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 95
//M_hero_free_137 (PnC_Game_fla.M_hero_free_137)
package PnC_Game_fla {
import flash.display.*;
public dynamic class M_hero_free_137 extends MovieClip {
public function M_hero_free_137(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package PnC_Game_fla
Section 96
//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 97
//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/donald-the-dino-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 98
//MemoryDisplay_318 (PnC_Game_fla.MemoryDisplay_318)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public dynamic class MemoryDisplay_318 extends MovieClip {
public var _tf:TextField;
public function MemoryDisplay_318(){
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 99
//menuMain_315 (PnC_Game_fla.menuMain_315)
package PnC_Game_fla {
import flash.display.*;
public dynamic class menuMain_315 extends MovieClip {
public var buttonMoreGames:MovieClip;
public var buttonPlay:MovieClip;
}
}//package PnC_Game_fla
Section 100
//Message_344 (PnC_Game_fla.Message_344)
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_344 extends MovieClip {
public function Message_344(){
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 101
//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 102
//MuteButton_340 (PnC_Game_fla.MuteButton_340)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class MuteButton_340 extends MovieClip {
public var hit_mc:MovieClip;
public function MuteButton_340(){
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 103
//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 104
//people_1_head_die_108 (PnC_Game_fla.people_1_head_die_108)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_1_head_die_108 extends MovieClip {
public function people_1_head_die_108(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package PnC_Game_fla
Section 105
//people_1_push_finish_144 (PnC_Game_fla.people_1_push_finish_144)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_1_push_finish_144 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
public function people_1_push_finish_144(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 106
//people_1_push_still_141 (PnC_Game_fla.people_1_push_still_141)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_1_push_still_141 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
}
}//package PnC_Game_fla
Section 107
//people_1_try_146 (PnC_Game_fla.people_1_try_146)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_1_try_146 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
public function people_1_try_146(){
addFrameScript(103, frame104);
}
function frame104(){
gotoAndPlay(20);
}
}
}//package PnC_Game_fla
Section 108
//people_2_all_148 (PnC_Game_fla.people_2_all_148)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_2_all_148 extends MovieClip {
public var anim:MovieClip;
public function people_2_all_148(){
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 109
//people_2_idle_145 (PnC_Game_fla.people_2_idle_145)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_2_idle_145 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand3:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
}
}//package PnC_Game_fla
Section 110
//people_2_push_finish_143 (PnC_Game_fla.people_2_push_finish_143)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_2_push_finish_143 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
public function people_2_push_finish_143(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 111
//people_2_push_start_149 (PnC_Game_fla.people_2_push_start_149)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_2_push_start_149 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var callback:Function;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
public function people_2_push_start_149(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
if (parent["animCallback"] != null){
callback = parent["animCallback"];
parent["animCallback"] = null;
callback();
};
}
}
}//package PnC_Game_fla
Section 112
//people_2_push_still_140 (PnC_Game_fla.people_2_push_still_140)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_2_push_still_140 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
}
}//package PnC_Game_fla
Section 113
//people_2_run_150 (PnC_Game_fla.people_2_run_150)
package PnC_Game_fla {
import flash.display.*;
public dynamic class people_2_run_150 extends MovieClip {
public var leg1:MovieClip;
public var leg2:MovieClip;
public var body:MovieClip;
public var hand1:MovieClip;
public var hand2:MovieClip;
public var head:MovieClip;
public function people_2_run_150(){
addFrameScript(88, frame89);
}
function frame89(){
stop();
}
}
}//package PnC_Game_fla
Section 114
//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 115
//playBtn_337 (PnC_Game_fla.playBtn_337)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class playBtn_337 extends MovieClip {
public var hitMc:MovieClip;
public function playBtn_337(){
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 116
//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 117
//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 118
//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 = 499;
ad = AdLoader.LoadAd(CPMStarPoolID, CPMStarSubPoolID);
adBox.addChild(ad);
}
function frame103(){
}
function frame111(){
}
function frame125(){
stop();
}
function frame54(){
}
}
}//package PnC_Game_fla
Section 119
//Prolog_01_326 (PnC_Game_fla.Prolog_01_326)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Prolog_01_326 extends MovieClip {
public var playBtn:MovieClip;
public var ready:Boolean;
public function Prolog_01_326(){
addFrameScript(0, frame1, 279, frame280);
}
function frame280(){
stop();
}
function frame1(){
stop();
ready = true;
}
}
}//package PnC_Game_fla
Section 120
//Prologue_325 (PnC_Game_fla.Prologue_325)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Prologue_325 extends MovieClip {
public var images:MovieClip;
public function Prologue_325(){
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 121
//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 122
//scrollerH_355 (PnC_Game_fla.scrollerH_355)
package PnC_Game_fla {
import flash.display.*;
public dynamic class scrollerH_355 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 123
//scrollerV_350 (PnC_Game_fla.scrollerV_350)
package PnC_Game_fla {
import flash.display.*;
public dynamic class scrollerV_350 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 124
//skipBtn_330 (PnC_Game_fla.skipBtn_330)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
public dynamic class skipBtn_330 extends MovieClip {
public var hitMc:MovieClip;
public function skipBtn_330(){
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 125
//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/gabriel-the-gladiator/"), "_blank");
}
function frame1(){
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, a11);
}
}
}//package PnC_Game_fla
Section 126
//sparks_l4_81 (PnC_Game_fla.sparks_l4_81)
package PnC_Game_fla {
import flash.display.*;
public dynamic class sparks_l4_81 extends MovieClip {
public function sparks_l4_81(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package PnC_Game_fla
Section 127
//SPFDisplay_319 (PnC_Game_fla.SPFDisplay_319)
package PnC_Game_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
public dynamic class SPFDisplay_319 extends MovieClip {
public var _tf:TextField;
public var begTime:Number;
public function SPFDisplay_319(){
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 128
//Story_322 (PnC_Game_fla.Story_322)
package PnC_Game_fla {
import flash.display.*;
public dynamic class Story_322 extends MovieClip {
public function Story_322(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PnC_Game_fla
Section 129
//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 130
//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 131
//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 132
//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 133
//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 134
//Anim_Trap6 (Anim_Trap6)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public dynamic class Anim_Trap6 extends MovieClip {
public var timer:Timer;
public function Anim_Trap6(){
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 135
//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 136
//Character (Character)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Character extends MovieClip {
public var animInstrSet:Array;
public var anim:MovieClip;
public var animCallback:Function;
private var waitTimer:Timer;
public var waitTime:Number;// = 10
private var labels:Array;
public function Character(){
waitTime = 10;
super();
init();
}
public function turnBack():void{
stopWaitTimer();
scaleX = (scaleX * -1);
}
private function init():void{
var _local1:uint;
var _local2:uint;
labels = new Array();
_local1 = currentLabels.length;
_local2 = 0;
while (_local2 < _local1) {
labels[_local2] = currentLabels[_local2].name;
_local2++;
};
}
public function turnTo(_arg1:Number):void{
stopWaitTimer();
if (_arg1 <= x){
if (scaleX > 0){
scaleX = (scaleX * -1);
};
} else {
if (scaleX < 0){
scaleX = (scaleX * -1);
};
};
}
public function walkTo(_arg1:Number):void{
if (labels.indexOf("walk") != -1){
stopWaitTimer();
if (anim){
anim.stop();
};
turnTo(_arg1);
if (currentLabel != "walk"){
gotoAndStop("walk");
} else {
anim.gotoAndPlay(1);
};
} else {
Tracer.report("[X]", "Animation 'walk' isn't exists.", "Character");
};
}
public function turnOn(_arg1:String):void{
stopWaitTimer();
switch (_arg1){
case "left":
if (scaleX > 0){
scaleX = (scaleX * -1);
};
break;
case "right":
if (scaleX < 0){
scaleX = (scaleX * -1);
};
break;
};
}
public function pickUpItemShield(_arg1:String, _arg2:Sprite=null, _arg3:Function=null):void{
var itemName = _arg1;
var itemImage = _arg2;
var itemFunct = _arg3;
if (labels.indexOf("pickUp+shield") != -1){
playAnim("pickUp+shield", function (){
Console.currentEpisode.getItem(itemName, itemImage, itemFunct);
});
} else {
Tracer.report("[X]", "Animation 'pickUp+shield' isn't exists.", "Character");
};
}
public function halt():void{
stopWaitTimer();
if (anim){
anim.stop();
};
if (labels.indexOf("none") != -1){
gotoAndStop("idle");
};
}
private function startIdle(_arg1:TimerEvent):void{
if (anim){
anim.stop();
};
gotoAndStop("idle");
}
public function wait():void{
if (labels.indexOf("idle") != -1){
if (anim){
anim.stop();
};
if (labels.indexOf("none") != -1){
gotoAndStop("idle");
};
startWaitTimer();
} else {
Tracer.report("[X]", "Animation 'idle' isn't exists.", "Character");
};
}
public function walkToPnv(_arg1:Number):void{
if (labels.indexOf("walkPnv") != -1){
stopWaitTimer();
if (anim){
anim.stop();
};
turnTo(_arg1);
if (currentLabel != "walkPnv"){
gotoAndStop("walkPnv");
} else {
anim.gotoAndPlay(1);
};
} else {
Tracer.report("[X]", "Animation 'walk' isn't exists.", "Character");
};
}
public function playAnim(_arg1:String, _arg2:Function=null, _arg3:Array=null):void{
if (labels.indexOf(_arg1) != -1){
stopWaitTimer();
if (anim){
anim.stop();
};
animCallback = _arg2;
animInstrSet = _arg3;
if (currentLabel != _arg1){
gotoAndStop(_arg1);
} else {
anim.gotoAndPlay(1);
};
} else {
Tracer.report("[X]", (("Animation '" + _arg1) + "' isn't exists."), "Character");
};
}
private function startWaitTimer():void{
if (waitTimer){
stopWaitTimer();
};
waitTimer = new Timer((waitTime * 1000), 1);
waitTimer.addEventListener(TimerEvent.TIMER_COMPLETE, startIdle);
waitTimer.start();
}
public function takeItemJump(_arg1:String, _arg2:Sprite=null, _arg3:Function=null):void{
var itemName = _arg1;
var itemImage = _arg2;
var itemFunct = _arg3;
if (labels.indexOf("jamp_take") != -1){
playAnim("jamp_take", function (){
Console.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 137
//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 138
//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 139
//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 140
//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 egg:MovieClip;
public var stemLeaves2:MovieClip;
private var itemsRegistry:Object;
public var finalize:Function;// = null
public var tomato:MovieClip;
public var extCall:Function;// = null
public var orange:MovieClip;
public var cocoss:MovieClip;
public var cleanOut:Function;// = null
private var endTime:Number;
public var action:Boolean;
private var activatorsRegistry:Object;
private var bonusTimer:Timer;
public var hintIdleTime:Number;// = 30
public var stone2:MovieClip;
public var fly:MovieClip;
public var stone:MovieClip;
public var skull2:MovieClip;
private var eventsRegistry:Object;
public var stone1:MovieClip;
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 leave:MovieClip;
public var bird:MovieClip;
private var hintFillTimer:Timer;
public var uly:MovieClip;
public var stemLeaves:MovieClip;
public var stem:MovieClip;
public var egg2:MovieClip;
private var animationsRegistry:Object;
public var time:Number;
private var player:Sprite;
public var intCall:Function;// = null
private var waypointsRegistry:Object;
public var rope:MovieClip;
public var waitForReady:Boolean;
public var cocoss2:MovieClip;
public var do1:MovieClip;
public var do3:MovieClip;
public var parents:MovieClip;
public var dino:MovieClip;
public var do2:MovieClip;
public var do4:MovieClip;
public var extISet:Array;
public var do5:MovieClip;
public var chalk:MovieClip;
private var hintIdleTimer:Timer;
public var hook:MovieClip;
public var showHint:Function;// = null
public var diplodok:MovieClip;
private var begHintFillTime:Number;
public var jf:hero;
public var palm1:MovieClip;
public var palm2:MovieClip;
public var skull:MovieClip;
public var inventory:Inventory;
public var rock:MovieClip;
private var hintReady:Boolean;// = false
private var begTime:Number;
public var rope1:MovieClip;
public var rope3:MovieClip;
public var rope2:MovieClip;
public var initialize:Function;// = null
public var bonusTime:Number;// = 0
public var intISet:Array;
private var camera_t:Sprite;
private var camera_x:Number;
private var camera_y:Number;
public var do10:MovieClip;
public var volcano:MovieClip;
public var triceratops:MovieClip;
public var graboid: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");
}
public function ifNone():Boolean{
var _local1:String;
for (_local1 in eventsRegistry) {
if (_local1 == true){
return (false);
};
};
return (true);
}
public function stopBonusTimer():void{
if (bonusTimer){
if (bonusTimer.running){
bonusTimer.stop();
};
};
}
public function listInventoryItems():void{
inventory.listItems();
}
public function setPlayer(_arg1:Sprite):void{
player = _arg1;
}
private function onBonusTimerComplete(_arg1:TimerEvent):void{
if (countTime > 0){
countTime = 0;
};
bonusTimer.removeEventListener(TimerEvent.TIMER, onBonusTimer);
bonusTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, onBonusTimerComplete);
Tracer.report("[i]", "BonusTimer: completed.", "Episode");
}
public function 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);
}
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);
}
private function stopHintIdleTimer():void{
hintIdleTimer.stop();
}
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 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);
}
private function resetHintIdleTimer():void{
hintIdleTimer.reset();
}
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 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 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 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 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 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 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 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 callActivator(_arg1:String):Activator{
if (activatorsRegistry[_arg1]){
return (activatorsRegistry[_arg1]);
};
Tracer.report("[X]", "Activator isn't registered.", "Episode");
return (null);
}
public function getTimeBonus():Number{
return (countTime);
}
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 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 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 startHintTimer():void{
startHintFillTimer();
}
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 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));
}
public function internalCall():void{
var _local1:Function;
if (intCall != null){
_local1 = intCall;
intCall = null;
_local1();
};
}
public function motionTo(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Number=1, _arg5:Function=null, _arg6:Number=80):void{
if (_arg1){
Displacement.motionTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
} else {
Tracer.report("[X]", "Object isn't exists.", "Episode");
};
}
public function externalCall():void{
var _local1:Function;
if (extCall != null){
_local1 = extCall;
extCall = 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);
}
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);
}
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";
}
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 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 lose():void{
action = false;
finish();
Game.showYouAreHistoryWindow();
state = "FINISHED";
}
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 isHintReady():Boolean{
return (hintReady);
}
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);
}
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 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 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 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 isAnimation(_arg1:String):Boolean{
if (animationsRegistry[_arg1]){
return (true);
};
return (false);
}
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 isEvent(_arg1:String):Boolean{
if (eventsRegistry[_arg1] != null){
return (true);
};
Tracer.report("[X]", "Event isn't registered.", "Episode");
return (false);
}
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 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;
};
};
}
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 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 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");
};
}
private function startHintIdleTimer():void{
hintIdleTimer.start();
}
public function getPlayer():Sprite{
return (player);
}
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 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));
}
}
}//package
Section 141
//Episode_01 (Episode_01)
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_01 extends Episode {
public var jfSpeed:Number;
public var glowFilter:GlowFilter;
public function Episode_01(){
addFrameScript(0, frame1);
}
public function placeBark():void{
action = false;
epicScene.bark.gotoAndPlay(2);
action = true;
causeEvent("bark_ok");
removeActivator("do2");
}
function frame1(){
epicScene.gotoAndStop(1);
epicScene.bark.gotoAndStop(1);
epicScene.stemNet.gotoAndStop(1);
epicScene.bush.gotoAndStop(1);
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
epicScene.gotoAndStop(1);
epicScene.bark.gotoAndStop(1);
epicScene.stemNet.gotoAndStop(1);
action = false;
epicScene.bush.gotoAndStop(1);
};
finalize = function (){
};
cleanOut = function (){
};
registerEvent("bush_ok");
registerEvent("stemNet_ok");
registerEvent("bark_ok");
addActivator("do1", do1, {onClick:function (){
placeNet();
}});
addActivator("do2", do2, {onClick:function (){
placeBark();
}});
addActivator("do3", do3, {onClick:function (){
placeBush();
}});
addActivator("do4", do4, {onClick:function (){
letsGo();
}});
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 letsGo():void{
action = false;
if (ifThis("stemNet_ok")){
if (ifThis("bark_ok")){
if (ifThis("bush_ok")){
epicScene.gotoAndPlay("bush_ok");
} else {
epicScene.gotoAndPlay("bark_ok");
};
} else {
epicScene.gotoAndPlay("net_ok");
};
} else {
epicScene.gotoAndPlay(2);
};
removeActivator("do4");
}
public function placeNet():void{
action = false;
epicScene.stemNet.gotoAndPlay(2);
action = true;
causeEvent("stemNet_ok");
removeActivator("do1");
}
public function placeBush():void{
action = false;
epicScene.bush.gotoAndPlay(2);
action = true;
causeEvent("bush_ok");
removeActivator("do3");
}
}
}//package
Section 142
//Episode_02 (Episode_02)
package {
import flash.filters.*;
public dynamic class Episode_02 extends Episode {
public var jfSpeed:Number;
public var glowFilter:GlowFilter;
public var hand1;
public var body;
public var hand2;
public var head;
public function Episode_02(){
addFrameScript(0, frame1);
}
public function pushRightCocoss():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
palm2.gotoAndPlay(39);
jf.playAnim("attack", function (){
jf.wait();
causeEvent("cocoss_place2_ok");
});
});
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function takeFly():void{
action = false;
jf.walkTo(70);
motionTo(jf, 70, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("fly", fly, function (){
jf.wait();
if (inventory.hasAll(["fly", "cocoss"])){
makeItem("trap3", ["fly", "cocoss"], 1, function (){
action = true;
}, "trap_made3");
};
action = true;
causeEvent("fly_ok");
});
});
removeActivator("do1");
}
function frame1(){
head = 1;
hand1 = 1;
hand2 = 1;
body = 1;
jf.playAnim("idle");
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.wait();
jf.playAnim("idle");
palm1.gotoAndStop(1);
palm2.gotoAndStop(1);
cocoss2.gotoAndStop(1);
cocoss.visible = false;
action = false;
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("cocoss", Item_Cocoss);
registerItem("fly", Item_Fly);
registerItem("trap3", Anim_Trap3);
registerEvent("cocoss_take_ok");
registerEvent("cocoss_place_ok");
registerEvent("fly_ok");
registerEvent("trap_made3");
registerEvent("cocoss_place2_ok");
registerEvent("palm1_ok");
registerEvent("palm2_ok");
registerEvent("graboid_ok");
addActivator("palm1", palm1, {onClick:function (){
kickPalm1();
}});
addActivator("cocoss", cocoss, {onClick:function (){
takeCocoss();
}});
addActivator("do1", do1, {onClick:function (){
takeFly();
}});
addActivator("palm2", palm2, {onClick:function (){
if (ifThis("palm2_ok")){
if (ifThis("cocoss_place_ok")){
if (ifThis("cocoss_place2_ok")){
catchGraboid();
} else {
if (ifThis("trap_made3")){
pushRightCocoss();
} else {
pushWrongCocoss();
};
};
} else {
if (ifThis("trap_made3")){
placeRightCocoss();
} else {
if (ifThis("cocoss_take_ok")){
placeWrongCocoss();
} else {
jfRefused();
};
};
};
} else {
movePalm2();
};
}});
addActivator("do2", do2, {onClick:function (){
if (ifThis("graboid_ok")){
goWin();
} else {
goDie();
};
}});
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 kickPalm1():void{
action = false;
jf.walkTo(70);
motionTo(jf, 70, jf.y, 1, function (){
jf.turnOn("left");
palm1.gotoAndPlay(2);
cocoss2.gotoAndPlay(2);
jf.playAnim("attack", function (){
jf.wait();
action = true;
causeEvent("palm1_ok");
});
});
removeActivator("palm1");
}
public function pushWrongCocoss():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
palm2.gotoAndPlay(9);
jf.playAnim("attack", function (){
jf.wait();
});
});
}
public function goDie():void{
action = false;
jf.walkTo(333);
motionTo(jf, 333, jf.y, 1, function (){
jf.turnOn("right");
graboid.gotoAndPlay(52);
jf.playAnim("die_l2", function (){
lose();
});
});
removeActivator("do2");
}
public function catchGraboid():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("bite", function (){
palm2.gotoAndPlay(142);
jf.wait();
action = true;
causeEvent("graboid_ok");
});
});
removeActivator("palm2");
}
public function placeWrongCocoss():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("pickUp", function (){
palm2.gotoAndStop(8);
jf.wait();
action = true;
causeEvent("cocoss_place_ok");
});
});
}
public function takeCocoss():void{
action = false;
jf.walkTo(70);
motionTo(jf, 70, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("cocoss", cocoss, function (){
jf.wait();
if (inventory.hasAll(["fly", "cocoss"])){
makeItem("trap3", ["fly", "cocoss"], 1, function (){
action = true;
}, "trap_made3");
};
action = true;
causeEvent("cocoss_take_ok");
});
});
removeActivator("cocoss");
}
public function goWin():void{
action = false;
jf.walkTo(740);
motionTo(jf, 740, jf.y, 1, function (){
jf.wait();
win();
});
removeActivator("do2");
}
public function placeRightCocoss():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("pickUp", function (){
palm2.gotoAndStop(38);
jf.wait();
action = true;
causeEvent("cocoss_place_ok");
});
});
}
public function movePalm2():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
palm2.gotoAndPlay(2);
jf.wait();
action = true;
causeEvent("palm2_ok");
});
});
}
}
}//package
Section 143
//Episode_03 (Episode_03)
package {
import flash.filters.*;
public dynamic class Episode_03 extends Episode {
public var jfSpeed:Number;
public var glowFilter:GlowFilter;
public function Episode_03(){
addFrameScript(0, frame1);
}
public function takeEgg():void{
action = false;
jf.walkTo(350);
motionTo(jf, 350, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("egg", egg, function (){
jf.wait();
if (inventory.hasAll(["egg", "rope", "leave"])){
makeItem("trap4", ["egg", "rope", "leave"], 1, function (){
action = true;
}, "trap_made4");
};
action = true;
causeEvent("egg_ok");
});
});
removeActivator("egg");
}
public function takeStone():void{
action = false;
jf.walkTo(90);
motionTo(jf, 90, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("stone", stone, function (){
jf.wait();
action = true;
causeEvent("stone_take_ok");
removeActivator("stone");
});
});
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function takeRope():void{
action = false;
jf.walkTo(170);
motionTo(jf, 170, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("rope", rope, function (){
jf.wait();
if (inventory.hasAll(["egg", "rope", "leave"])){
makeItem("trap4", ["egg", "rope", "leave"], 1, function (){
action = true;
}, "trap_made4");
};
action = true;
causeEvent("rope_ok");
});
});
removeActivator("do1");
}
public function takeLeave():void{
action = false;
jf.walkTo(437);
motionTo(jf, 437, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("leave", leave, function (){
jf.wait();
if (inventory.hasAll(["egg", "rope", "leave"])){
makeItem("trap4", ["egg", "rope", "leave"], 1, function (){
action = true;
}, "trap_made4");
};
action = true;
causeEvent("leave_ok");
});
});
removeActivator("leave");
}
function frame1(){
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.wait();
jf.playAnim("idle");
egg2.gotoAndStop(1);
bird.gotoAndStop(1);
volcano.gotoAndStop(1);
action = false;
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("leave", Item_Leave);
registerItem("rope", Item_Rope);
registerItem("egg", Item_Egg);
registerItem("stone", Item_Stone);
registerItem("skull", Item_Skull);
registerItem("trap4", Anim_Trap4);
registerEvent("egg_ok");
registerEvent("skull_take_ok");
registerEvent("skull_place_ok");
registerEvent("stone_take_ok");
registerEvent("stone_place_ok");
registerEvent("rope_ok");
registerEvent("trap_made4");
registerEvent("leave_ok");
addActivator("egg", egg, {onClick:function (){
takeEgg();
}});
addActivator("do1", do1, {onClick:function (){
takeRope();
}});
addActivator("leave", leave, {onClick:function (){
takeLeave();
}});
addActivator("skull", skull, {onClick:function (){
takeSkull();
}});
addActivator("stone", stone, {onClick:function (){
takeStone();
}});
addActivator("volcano", volcano, {onClick:function (){
if (((ifThis("skull_take_ok")) && (ifNotThis("skull_place_ok")))){
placeSkull();
} else {
if (((ifThis("stone_take_ok")) && (ifNotThis("stone_place_ok")))){
placeStone();
} else {
if (((ifThis("stone_place_ok")) && (ifThis("skull_place_ok")))){
if (ifThis("trap_made4")){
placeRightEgg();
} else {
if (ifThis("egg_ok")){
placeWrongEgg();
} else {
jfRefused();
};
};
} 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 placeSkull():void{
action = false;
jf.walkTo(400);
motionTo(jf, 400, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("take", function (){
if (ifThis("stone_place_ok")){
volcano.gotoAndStop(4);
} else {
volcano.gotoAndStop(2);
};
jf.wait();
action = true;
causeEvent("skull_place_ok");
});
});
}
public function placeRightEgg():void{
action = false;
jf.walkTo(260);
motionTo(jf, 260, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
egg2.gotoAndStop(3);
jf.walkTo(167.1);
motionTo(jf, 167.1, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("idle");
});
});
});
removeActivator("volcano");
}
public function takeSkull():void{
action = false;
jf.walkTo(485);
motionTo(jf, 485, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("skull", skull, function (){
jf.wait();
action = true;
causeEvent("skull_take_ok");
removeActivator("skull");
});
});
}
public function placeWrongEgg():void{
action = false;
jf.walkTo(260);
motionTo(jf, 260, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
egg2.gotoAndStop(2);
jf.wait();
});
});
removeActivator("volcano");
}
public function placeStone():void{
action = false;
jf.walkTo(205);
motionTo(jf, 205, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
if (ifThis("skull_place_ok")){
volcano.gotoAndStop(4);
} else {
volcano.gotoAndStop(3);
};
jf.wait();
action = true;
causeEvent("stone_place_ok");
});
});
}
}
}//package
Section 144
//Episode_04 (Episode_04)
package {
import flash.filters.*;
public dynamic class Episode_04 extends Episode {
public var jfSpeed:Number;
public var liana:int;
public var glowFilter:GlowFilter;
public function Episode_04(){
addFrameScript(0, frame1);
}
public function pushRightCocoss():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
palm2.gotoAndPlay(39);
jf.playAnim("attack", function (){
jf.wait();
causeEvent("cocoss_place2_ok");
});
});
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function takeHook():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("left");
jf.takeItem("hook", hook, function (){
jf.wait();
if (inventory.hasAll(["rope1", "hook"])){
makeItem("trap5", ["rope1", "hook"], 1, function (){
action = true;
}, "trap_made5");
};
action = true;
causeEvent("hook_ok");
});
});
removeActivator("hook");
}
function frame1(){
liana = 0;
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.wait();
jf.playAnim("idle");
diplodok.gotoAndStop(1);
stemLeaves.gotoAndStop(1);
stemLeaves2.visible = false;
action = false;
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("hook", Item_Hook);
registerItem("orange", Item_Orange);
registerItem("rope1", Item_Rope1);
registerItem("rope2", Item_Rope2);
registerItem("rope3", Item_Rope3);
registerItem("skull2", Item_Skull2);
registerItem("stem", Item_Stem);
registerItem("stemLeaves", Item_StemLeaves);
registerItem("trap5", Anim_Trap5);
registerItem("trap6", Anim_Trap6);
registerEvent("rope1_ok");
registerEvent("rope2_ok");
registerEvent("rope3_ok");
registerEvent("stem_ok");
registerEvent("stemLeaves_saw_ok");
registerEvent("stemLeaves_take_ok");
registerEvent("stemLeaves_place_ok");
registerEvent("trap_made5");
registerEvent("trap_made6");
registerEvent("orange_ok");
registerEvent("skull_ok");
registerEvent("hook_ok");
registerEvent("diplodok_ok");
addActivator("do1", do1, {onClick:function (){
takeRope1();
}});
addActivator("do2", do2, {onClick:function (){
takeRope2();
}});
addActivator("do3", do3, {onClick:function (){
takeRope3();
}});
addActivator("hook", hook, {onClick:function (){
takeHook();
}});
addActivator("do4", do4, {onClick:function (){
takeStem();
}});
addActivator("orange", orange, {onClick:function (){
takeOrange();
}});
addActivator("skull2", skull2, {onClick:function (){
if (ifThis("trap_made5")){
takeSkull();
} else {
jfRefused();
};
}});
addActivator("do5", do5, {onClick:function (){
if (((ifThis("stemLeaves_take_ok")) && (ifThis("rope3_ok")))){
placeStemLeaves();
} else {
jfRefused();
};
}});
addActivator("stemLeaves", stemLeaves, {onClick:function (){
if (ifThis("stemLeaves_saw_ok")){
takeStemLeaves();
} else {
if (ifThis("skull_ok")){
sawStemLeaves();
} else {
jfRefused();
};
};
}});
addActivator("diplodok", diplodok, {onClick:function (){
if (ifThis("trap_made6")){
callDiplodok();
} else {
jfRefused();
};
}});
addActivator("do10", do10, {onClick:function (){
if (ifThis("diplodok_ok")){
gogogo();
} 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 takeStemLeaves():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("stemLeaves", stemLeaves, function (){
jf.wait();
action = true;
causeEvent("stemLeaves_take_ok");
});
});
removeActivator("stemLeaves");
}
public function goDie():void{
action = false;
jf.walkTo(333);
motionTo(jf, 333, jf.y, 1, function (){
jf.turnOn("right");
graboid.gotoAndPlay(52);
jf.playAnim("die_l2", function (){
lose();
});
});
removeActivator("do2");
}
public function gogogo():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("win_l4", function (){
win();
});
});
removeActivator("do10");
}
public function pushWrongCocoss():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
palm2.gotoAndPlay(9);
jf.playAnim("attack", function (){
jf.wait();
});
});
}
public function catchGraboid():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("bite", function (){
palm2.gotoAndPlay(142);
jf.wait();
action = true;
causeEvent("graboid_ok");
});
});
removeActivator("palm2");
}
public function placeWrongCocoss():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("pickUp", function (){
palm2.gotoAndStop(8);
jf.wait();
action = true;
causeEvent("cocoss_place_ok");
});
});
}
public function placeStemLeaves():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("left");
jf.playAnim("pickUp", function (){
stemLeaves2.visible = true;
jf.wait();
action = true;
causeEvent("stemLeaves_place_ok");
});
});
removeActivator("do5");
}
public function takeRope1():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("rope1", rope1, function (){
jf.wait();
if (inventory.hasAll(["rope1", "hook"])){
makeItem("trap5", ["rope1", "hook"], 1, function (){
action = true;
}, "trap_made5");
};
action = true;
causeEvent("rope1_ok");
});
});
removeActivator("do1");
}
public function takeRope2():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("rope2", rope2, function (){
jf.wait();
if (inventory.hasAll(["rope2", "stem", "orange"])){
makeItem("trap6", ["rope2", "stem", "orange"], 1, function (){
action = true;
}, "trap_made6");
};
action = true;
causeEvent("rope2_ok");
});
});
removeActivator("do2");
}
public function takeSkull():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("fishing", function (){
jf.justAddItem("skull2", skull2);
jf.wait();
action = true;
causeEvent("skull_ok");
});
});
removeActivator("skull");
}
public function takeRope3():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("rope3", rope3, function (){
jf.wait();
action = true;
causeEvent("rope3_ok");
});
});
removeActivator("do3");
}
public function sawStemLeaves():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("saw", function (){
stemLeaves.gotoAndPlay(2);
jf.wait();
action = true;
causeEvent("stemLeaves_saw_ok");
});
});
}
public function takeOrange():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("left");
jf.takeItem("orange", orange, function (){
jf.wait();
if (inventory.hasAll(["rope2", "stem", "orange"])){
makeItem("trap6", ["rope2", "stem", "orange"], 1, function (){
action = true;
}, "trap_made6");
};
action = true;
causeEvent("orange_ok");
});
});
removeActivator("orange");
}
public function callDiplodok():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("shot_call_l4", function (){
if (ifThis("stemLeaves_place_ok")){
diplodok.gotoAndStop(3);
} else {
diplodok.gotoAndStop(2);
};
jf.wait();
causeEvent("diplodok_ok");
});
});
removeActivator("diplodok");
}
public function goWin():void{
action = false;
jf.walkTo(740);
motionTo(jf, 740, jf.y, 1, function (){
jf.wait();
win();
});
removeActivator("do2");
}
public function placeRightCocoss():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("pickUp", function (){
palm2.gotoAndStop(38);
jf.wait();
action = true;
causeEvent("cocoss_place_ok");
});
});
}
public function movePalm2():void{
action = false;
jf.walkTo(116);
motionTo(jf, 116, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
palm2.gotoAndPlay(2);
jf.wait();
action = true;
causeEvent("palm2_ok");
});
});
}
public function takeStem():void{
action = false;
jf.walkTo(137.8);
motionTo(jf, 137.8, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("stem", stem, function (){
jf.wait();
if (inventory.hasAll(["rope2", "stem", "orange"])){
makeItem("trap6", ["rope2", "stem", "orange"], 1, function (){
action = true;
}, "trap_made6");
};
action = true;
causeEvent("stem_ok");
});
});
removeActivator("do4");
}
}
}//package
Section 145
//Episode_05 (Episode_05)
package {
import flash.filters.*;
public dynamic class Episode_05 extends Episode {
public var jfSpeed:Number;
public var glowFilter:GlowFilter;
public function Episode_05(){
addFrameScript(0, frame1);
}
public function goWin():void{
action = false;
jf.walkTo(740);
motionTo(jf, 740, jf.y, 1, function (){
jf.turnOn("right");
win();
});
removeActivator("do1");
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function useTomato():void{
action = false;
jf.walkTo(240);
motionTo(jf, 240, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
if (ifThis("chalk_use_ok")){
stone.gotoAndStop(17);
removeActivator("stone");
} else {
stone.gotoAndStop(15);
};
jf.wait();
action = true;
causeEvent("tomato_use_ok");
});
});
}
function frame1(){
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.wait();
jf.playAnim("idle");
stone.gotoAndStop(1);
triceratops.gotoAndStop(1);
action = false;
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("chalk", Item_Chalk);
registerItem("rock", Item_Rock);
registerItem("tomato", Item_Tomato);
registerEvent("tomato_ok");
registerEvent("tomato_use_ok");
registerEvent("chalk_ok");
registerEvent("chalk_use_ok");
registerEvent("stone_ok");
registerEvent("rock_ok");
registerEvent("triceratops_ok");
addActivator("tomato", tomato, {onClick:function (){
takeTomato();
}});
addActivator("chalk", chalk, {onClick:function (){
takeChalk();
}});
addActivator("rock", rock, {onClick:function (){
takeRock();
}});
addActivator("stone", stone, {onClick:function (){
if (ifThis("stone_ok")){
if (((ifThis("chalk_ok")) && (ifNotThis("chalk_use_ok")))){
useChalk();
} else {
if (((ifThis("tomato_ok")) && (ifNotThis("tomato_use_ok")))){
useTomato();
} else {
jfRefused();
};
};
} else {
stoneUp();
};
}});
addActivator("triceratops", triceratops, {onClick:function (){
if (ifThis("rock_ok")){
if (((ifThis("tomato_use_ok")) && (ifThis("chalk_use_ok")))){
killTriceratops();
} else {
letsDie();
};
} else {
jfRefused();
};
}});
addActivator("do1", do1, {onClick:function (){
if (ifThis("triceratops_ok")){
goWin();
} else {
goDie();
};
}});
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 takeRock():void{
action = false;
jf.walkTo(128);
motionTo(jf, 128, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("rock", rock, function (){
jf.wait();
action = true;
causeEvent("rock_ok");
});
});
removeActivator("rock");
}
public function goDie():void{
action = false;
jf.walkTo(320);
motionTo(jf, 320, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
triceratops.gotoAndStop(3);
});
});
removeActivator("triceratops");
}
public function takeChalk():void{
action = false;
jf.walkTo(93);
motionTo(jf, 93, jf.y, 1, function (){
jf.turnOn("left");
jf.pickUpItem("chalk", chalk, function (){
jf.wait();
action = true;
causeEvent("chalk_ok");
});
});
removeActivator("chalk");
}
public function takeTomato():void{
action = false;
jf.walkTo(93);
motionTo(jf, 93, jf.y, 1, function (){
jf.turnOn("right");
jf.takeItem("tomato", tomato, function (){
jf.wait();
action = true;
causeEvent("tomato_ok");
});
});
removeActivator("tomato");
}
public function letsDie():void{
action = false;
jf.walkTo(128);
motionTo(jf, 128, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("throw_l5", function (){
triceratops.gotoAndStop(2);
});
});
removeActivator("triceratops");
}
public function killTriceratops():void{
action = false;
jf.walkTo(128);
motionTo(jf, 128, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("throw_l5", function (){
triceratops.gotoAndStop(4);
jf.wait();
action = true;
causeEvent("triceratops_ok");
});
});
removeActivator("triceratops");
}
public function useChalk():void{
action = false;
jf.walkTo(240);
motionTo(jf, 240, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
if (ifThis("tomato_use_ok")){
stone.gotoAndStop(17);
removeActivator("stone");
} else {
stone.gotoAndStop(16);
};
jf.wait();
action = true;
causeEvent("chalk_use_ok");
});
});
}
public function stoneUp():void{
action = false;
jf.walkTo(128);
motionTo(jf, 128, jf.y, 1, function (){
jf.turnOn("right");
stone.gotoAndPlay(2);
jf.playAnim("take_up_rock_l5", function (){
jf.wait();
action = true;
causeEvent("stone_ok");
});
});
}
}
}//package
Section 146
//Episode_06 (Episode_06)
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_06 extends Episode {
public var jfSpeed:Number;
public var actionTimer:Timer;
public var glowFilter:GlowFilter;
public function Episode_06(){
addFrameScript(0, frame1);
}
public function jfRefused():void{
jf.playAnim("refused");
}
public function takeRope():void{
action = false;
jf.walkTo(483);
motionTo(jf, 483, jf.y, 1, function (){
jf.turnOn("right");
jf.pickUpItem("rope", rope, function (){
jf.wait();
action = true;
causeEvent("rope_ok");
});
});
removeActivator("do1");
}
public function makeTrap():void{
causeEvent("stone1_ok");
action = false;
jf.walkTo(86);
motionTo(jf, 86, jf.y, 1, function (){
jf.turnOn("left");
stone1.gotoAndPlay(2);
jf.playAnim("attack", function (){
jf.walkTo(242);
motionTo(jf, 242, jf.y, 1, function (){
jf.turnOn("left");
stone2.gotoAndPlay(2);
jf.playAnim("rope_up_l6", function (){
jf.wait();
action = true;
causeEvent("stone2_ok");
});
});
});
});
removeActivator("stone1");
removeActivator("stone2");
do2.visible = true;
}
function frame1(){
parents.parents.gotoAndStop(1);
hintFillTime = -1;
hintIdleTime = -1;
initialize = function (){
jf.wait();
jf.playAnim("idle");
stone1.gotoAndStop(1);
stone2.gotoAndStop(1);
uly.gotoAndStop(1);
do2.visible = false;
action = false;
parents.gotoAndStop(1);
parents.parents.gotoAndStop(1);
};
finalize = function (){
};
cleanOut = function (){
};
registerItem("rope", Item_Rope1);
registerEvent("time_is_up");
registerEvent("stone1_ok");
registerEvent("stone2_ok");
registerEvent("rope_ok");
registerEvent("man1_ok");
registerEvent("man2_ok");
registerEvent("caravanStop_ok");
addActivator("do1", do1, {onClick:function (){
takeRope();
}});
addActivator("do2", do2, {onClick:function (){
if (ifThis("caravanStop_ok")){
killMan1();
} else {
jfRefused();
};
}});
addActivator("stone1", stone1, {onClick:function (){
if (((ifNotThis("time_is_up")) && (ifThis("rope_ok")))){
makeTrap();
} else {
jfRefused();
};
}});
addActivator("stone2", stone2, {onClick:function (){
if (((ifNotThis("time_is_up")) && (ifThis("rope_ok")))){
makeTrap();
} else {
jfRefused();
};
}});
addActivator("uly", uly, {onClick:function (){
if (ifThis("caravanStop_ok")){
killMan2();
} else {
jfRefused();
};
}});
addActivator("parents", parents, {onClick:function (){
if (((ifThis("man1_ok")) && (ifThis("man2_ok")))){
freeParents();
} else {
jfRefused();
};
}});
jfSpeed = 128;
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 killMan2():void{
action = false;
jf.walkTo(424);
motionTo(jf, 424, jf.y, 1, function (){
jf.turnOn("right");
jf.playAnim("take", function (){
uly.gotoAndPlay(2);
jf.wait();
action = true;
causeEvent("man2_ok");
});
});
removeActivator("uly");
}
public function killMan1():void{
action = false;
jf.walkTo(220);
motionTo(jf, 220, jf.y, 1, function (){
jf.turnOn("right");
stone2.gotoAndPlay(32);
jf.playAnim("attack", function (){
jf.wait();
action = true;
causeEvent("man1_ok");
});
});
removeActivator("do2");
}
public function onActionTimerComplete(_arg1:TimerEvent):void{
causeEvent("time_is_up");
trace("456");
if (ifThis("stone1_ok")){
parents.gotoAndStop(3);
} else {
parents.gotoAndStop(2);
};
}
public function freeParents():void{
action = false;
jf.walkTo(-120);
motionTo(jf, -120, jf.y, 1, function (){
jf.turnOn("right");
jf.y = 408.4;
jf.walkTo(0x0100);
motionTo(jf, 0x0100, jf.y, 1, function (){
jf.playAnim("bite", function (){
parents.parents.parents.gotoAndStop(2);
});
});
});
removeActivator("parents");
}
public function setActionTimer():void{
trace("123");
actionTimer = new Timer(1000, 20);
actionTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onActionTimerComplete);
actionTimer.start();
}
}
}//package
Section 147
//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 148
//GameMusic (GameMusic)
package {
import flash.media.*;
public dynamic class GameMusic extends Sound {
}
}//package
Section 149
//hero (hero)
package {
public dynamic class hero extends Character {
public function hero(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame18(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame5(){
stop();
}
function frame4(){
stop();
}
function frame8(){
stop();
}
function frame9(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame16(){
stop();
}
function frame17(){
stop();
}
function frame11(){
stop();
}
}
}//package
Section 150
//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 151
//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 152
//Item_Chalk (Item_Chalk)
package {
import flash.display.*;
public dynamic class Item_Chalk extends MovieClip {
}
}//package
Section 153
//Item_Cocoss (Item_Cocoss)
package {
import flash.display.*;
public dynamic class Item_Cocoss extends MovieClip {
public function Item_Cocoss(){
addFrameScript(0, frame1, 46, frame47);
}
function frame1(){
stop();
}
function frame47(){
stop();
}
}
}//package
Section 154
//Item_Egg (Item_Egg)
package {
import flash.display.*;
public dynamic class Item_Egg extends MovieClip {
}
}//package
Section 155
//Item_Fly (Item_Fly)
package {
import flash.display.*;
public dynamic class Item_Fly extends MovieClip {
}
}//package
Section 156
//Item_Hook (Item_Hook)
package {
import flash.display.*;
public dynamic class Item_Hook extends MovieClip {
}
}//package
Section 157
//Item_Leave (Item_Leave)
package {
import flash.display.*;
public dynamic class Item_Leave extends MovieClip {
}
}//package
Section 158
//Item_Orange (Item_Orange)
package {
import flash.display.*;
public dynamic class Item_Orange extends MovieClip {
}
}//package
Section 159
//Item_Rock (Item_Rock)
package {
import flash.display.*;
public dynamic class Item_Rock extends MovieClip {
}
}//package
Section 160
//Item_Rope (Item_Rope)
package {
import flash.display.*;
public dynamic class Item_Rope extends MovieClip {
}
}//package
Section 161
//Item_Rope1 (Item_Rope1)
package {
import flash.display.*;
public dynamic class Item_Rope1 extends MovieClip {
}
}//package
Section 162
//Item_Rope2 (Item_Rope2)
package {
import flash.display.*;
public dynamic class Item_Rope2 extends MovieClip {
}
}//package
Section 163
//Item_Rope3 (Item_Rope3)
package {
import flash.display.*;
public dynamic class Item_Rope3 extends MovieClip {
}
}//package
Section 164
//Item_Skull (Item_Skull)
package {
import flash.display.*;
public dynamic class Item_Skull extends MovieClip {
}
}//package
Section 165
//Item_Skull2 (Item_Skull2)
package {
import flash.display.*;
public dynamic class Item_Skull2 extends MovieClip {
}
}//package
Section 166
//Item_Stem (Item_Stem)
package {
import flash.display.*;
public dynamic class Item_Stem extends MovieClip {
}
}//package
Section 167
//Item_StemLeaves (Item_StemLeaves)
package {
import flash.display.*;
public dynamic class Item_StemLeaves extends MovieClip {
}
}//package
Section 168
//Item_Stone (Item_Stone)
package {
import flash.display.*;
public dynamic class Item_Stone extends MovieClip {
}
}//package
Section 169
//Item_Tomato (Item_Tomato)
package {
import flash.display.*;
public dynamic class Item_Tomato extends MovieClip {
}
}//package
Section 170
//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 171
//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 172
//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 173
//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 174
//streamsound29 (streamsound29)
package {
import flash.media.*;
public dynamic class streamsound29 extends Sound {
}
}//package
Section 175
//takeSound (takeSound)
package {
import flash.media.*;
public dynamic class takeSound extends Sound {
}
}//package
Section 176
//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 177
//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 178
//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 179
//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 180
//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 181
//WindowInstructions (WindowInstructions)
package {
public dynamic class WindowInstructions extends Window {
public function WindowInstructions(){
addFrameScript(0, frame1);
}
function frame1(){
playBtn.gotoAndStop(1);
}
}
}//package
Section 182
//WindowItem (WindowItem)
package {
public dynamic class WindowItem extends Window {
public function WindowItem(){
addFrameScript(0, frame1);
}
function frame1(){
startLifeTimer();
}
}
}//package
Section 183
//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 184
//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