Section 1
//MD5 (com.adobe.crypto.MD5)
package com.adobe.crypto {
import flash.utils.*;
import com.adobe.utils.*;
public class MD5 {
public static var digest:ByteArray;
public function MD5(){
super();
}
private static function ff(a:int, b:int, c:int, d:int, x:int, s:int, t:int):int{
return (transform(f, a, b, c, d, x, s, t));
}
private static function f(x:int, y:int, z:int):int{
return (((x & y) | (~(x) & z)));
}
private static function g(x:int, y:int, z:int):int{
return (((x & z) | (y & ~(z))));
}
private static function h(x:int, y:int, z:int):int{
return (((x ^ y) ^ z));
}
private static function i(x:int, y:int, z:int):int{
return ((y ^ (x | ~(z))));
}
private static function transform(func:Function, a:int, b:int, c:int, d:int, x:int, s:int, t:int):int{
var tmp:int;
tmp = (((a + int(func(b, c, d))) + x) + t);
return ((IntUtil.rol(tmp, s) + b));
}
private static function hh(a:int, b:int, c:int, d:int, x:int, s:int, t:int):int{
return (transform(h, a, b, c, d, x, s, t));
}
public static function hash(s:String):String{
var ba:ByteArray;
ba = new ByteArray();
ba.writeUTFBytes(s);
return (hashBinary(ba));
}
private static function createBlocks(s:ByteArray):Array{
var blocks:Array;
var len:int;
var mask:int;
var i:int;
blocks = new Array();
len = (s.length * 8);
mask = 0xFF;
i = 0;
while (i < len) {
blocks[int((i >> 5))] = (blocks[int((i >> 5))] | ((s[(i / 8)] & mask) << (i % 32)));
i = (i + 8);
};
blocks[int((len >> 5))] = (blocks[int((len >> 5))] | (128 << (len % 32)));
blocks[int(((((len + 64) >>> 9) << 4) + 14))] = len;
return (blocks);
}
public static function hashBinary(s:ByteArray):String{
var a:int;
var b:int;
var c:int;
var d:int;
var aa:int;
var bb:int;
var cc:int;
var dd:int;
var x:Array;
var len:int;
var i:int;
a = 1732584193;
b = -271733879;
c = -1732584194;
d = 271733878;
x = createBlocks(s);
len = x.length;
i = 0;
while (i < len) {
aa = a;
bb = b;
cc = c;
dd = d;
a = ff(a, b, c, d, x[int((i + 0))], 7, -680876936);
d = ff(d, a, b, c, x[int((i + 1))], 12, -389564586);
c = ff(c, d, a, b, x[int((i + 2))], 17, 606105819);
b = ff(b, c, d, a, x[int((i + 3))], 22, -1044525330);
a = ff(a, b, c, d, x[int((i + 4))], 7, -176418897);
d = ff(d, a, b, c, x[int((i + 5))], 12, 1200080426);
c = ff(c, d, a, b, x[int((i + 6))], 17, -1473231341);
b = ff(b, c, d, a, x[int((i + 7))], 22, -45705983);
a = ff(a, b, c, d, x[int((i + 8))], 7, 1770035416);
d = ff(d, a, b, c, x[int((i + 9))], 12, -1958414417);
c = ff(c, d, a, b, x[int((i + 10))], 17, -42063);
b = ff(b, c, d, a, x[int((i + 11))], 22, -1990404162);
a = ff(a, b, c, d, x[int((i + 12))], 7, 1804603682);
d = ff(d, a, b, c, x[int((i + 13))], 12, -40341101);
c = ff(c, d, a, b, x[int((i + 14))], 17, -1502002290);
b = ff(b, c, d, a, x[int((i + 15))], 22, 1236535329);
a = gg(a, b, c, d, x[int((i + 1))], 5, -165796510);
d = gg(d, a, b, c, x[int((i + 6))], 9, -1069501632);
c = gg(c, d, a, b, x[int((i + 11))], 14, 643717713);
b = gg(b, c, d, a, x[int((i + 0))], 20, -373897302);
a = gg(a, b, c, d, x[int((i + 5))], 5, -701558691);
d = gg(d, a, b, c, x[int((i + 10))], 9, 38016083);
c = gg(c, d, a, b, x[int((i + 15))], 14, -660478335);
b = gg(b, c, d, a, x[int((i + 4))], 20, -405537848);
a = gg(a, b, c, d, x[int((i + 9))], 5, 568446438);
d = gg(d, a, b, c, x[int((i + 14))], 9, -1019803690);
c = gg(c, d, a, b, x[int((i + 3))], 14, -187363961);
b = gg(b, c, d, a, x[int((i + 8))], 20, 1163531501);
a = gg(a, b, c, d, x[int((i + 13))], 5, -1444681467);
d = gg(d, a, b, c, x[int((i + 2))], 9, -51403784);
c = gg(c, d, a, b, x[int((i + 7))], 14, 1735328473);
b = gg(b, c, d, a, x[int((i + 12))], 20, -1926607734);
a = hh(a, b, c, d, x[int((i + 5))], 4, -378558);
d = hh(d, a, b, c, x[int((i + 8))], 11, -2022574463);
c = hh(c, d, a, b, x[int((i + 11))], 16, 1839030562);
b = hh(b, c, d, a, x[int((i + 14))], 23, -35309556);
a = hh(a, b, c, d, x[int((i + 1))], 4, -1530992060);
d = hh(d, a, b, c, x[int((i + 4))], 11, 1272893353);
c = hh(c, d, a, b, x[int((i + 7))], 16, -155497632);
b = hh(b, c, d, a, x[int((i + 10))], 23, -1094730640);
a = hh(a, b, c, d, x[int((i + 13))], 4, 681279174);
d = hh(d, a, b, c, x[int((i + 0))], 11, -358537222);
c = hh(c, d, a, b, x[int((i + 3))], 16, -722521979);
b = hh(b, c, d, a, x[int((i + 6))], 23, 76029189);
a = hh(a, b, c, d, x[int((i + 9))], 4, -640364487);
d = hh(d, a, b, c, x[int((i + 12))], 11, -421815835);
c = hh(c, d, a, b, x[int((i + 15))], 16, 530742520);
b = hh(b, c, d, a, x[int((i + 2))], 23, -995338651);
a = ii(a, b, c, d, x[int((i + 0))], 6, -198630844);
d = ii(d, a, b, c, x[int((i + 7))], 10, 1126891415);
c = ii(c, d, a, b, x[int((i + 14))], 15, -1416354905);
b = ii(b, c, d, a, x[int((i + 5))], 21, -57434055);
a = ii(a, b, c, d, x[int((i + 12))], 6, 1700485571);
d = ii(d, a, b, c, x[int((i + 3))], 10, -1894986606);
c = ii(c, d, a, b, x[int((i + 10))], 15, -1051523);
b = ii(b, c, d, a, x[int((i + 1))], 21, -2054922799);
a = ii(a, b, c, d, x[int((i + 8))], 6, 1873313359);
d = ii(d, a, b, c, x[int((i + 15))], 10, -30611744);
c = ii(c, d, a, b, x[int((i + 6))], 15, -1560198380);
b = ii(b, c, d, a, x[int((i + 13))], 21, 1309151649);
a = ii(a, b, c, d, x[int((i + 4))], 6, -145523070);
d = ii(d, a, b, c, x[int((i + 11))], 10, -1120210379);
c = ii(c, d, a, b, x[int((i + 2))], 15, 718787259);
b = ii(b, c, d, a, x[int((i + 9))], 21, -343485551);
a = (a + aa);
b = (b + bb);
c = (c + cc);
d = (d + dd);
i = (i + 16);
};
digest = new ByteArray();
digest.writeInt(a);
digest.writeInt(b);
digest.writeInt(c);
digest.writeInt(d);
digest.position = 0;
return ((((IntUtil.toHex(a) + IntUtil.toHex(b)) + IntUtil.toHex(c)) + IntUtil.toHex(d)));
}
private static function gg(a:int, b:int, c:int, d:int, x:int, s:int, t:int):int{
return (transform(g, a, b, c, d, x, s, t));
}
private static function ii(a:int, b:int, c:int, d:int, x:int, s:int, t:int):int{
return (transform(i, a, b, c, d, x, s, t));
}
public static function hashBytes(s:ByteArray):String{
return (hashBinary(s));
}
}
}//package com.adobe.crypto
Section 2
//IntUtil (com.adobe.utils.IntUtil)
package com.adobe.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public function IntUtil(){
super();
}
public static function toHex(n:int, bigEndian:Boolean=false):String{
var s:String;
var i:int;
var x:int;
s = "";
if (bigEndian){
i = 0;
while (i < 4) {
s = (s + (hexChars.charAt(((n >> (((3 - i) * 8) + 4)) & 15)) + hexChars.charAt(((n >> ((3 - i) * 8)) & 15))));
i++;
};
} else {
x = 0;
while (x < 4) {
s = (s + (hexChars.charAt(((n >> ((x * 8) + 4)) & 15)) + hexChars.charAt(((n >> (x * 8)) & 15))));
x++;
};
};
return (s);
}
public static function ror(x:int, n:int):uint{
var nn:int;
nn = (32 - n);
return (((x << nn) | (x >>> (32 - nn))));
}
public static function rol(x:int, n:int):int{
return (((x << n) | (x >>> (32 - n))));
}
}
}//package com.adobe.utils
Section 3
//bigwigmedia_internal (gamework.core.bigwigmedia_internal)
package gamework.core {
public namespace bigwigmedia_internal = "http://www.bigwigmedia.com/gamework";
}//package gamework.core
Section 4
//IDisposable (gamework.core.IDisposable)
package gamework.core {
public interface IDisposable {
function dispose():void;
}
}//package gamework.core
Section 5
//IUpdatable (gamework.core.IUpdatable)
package gamework.core {
public interface IUpdatable {
function update():void;
}
}//package gamework.core
Section 6
//SingletonFactory (gamework.core.SingletonFactory)
package gamework.core {
public class SingletonFactory {
private static var interfaceToClassHash:Object = {};
private static var interfaceToInstanceHash:Object = {};
public function SingletonFactory(){
super();
}
public static function getClass(interfaceName:String):Class{
return (interfaceToClassHash[interfaceName]);
}
public static function registerClass(interfaceName:String, singletonClass:Class):void{
var cls:Class;
cls = interfaceToClassHash[interfaceName];
if (!cls){
interfaceToClassHash[interfaceName] = singletonClass;
};
}
public static function getInstance(interfaceName:String){
var instance:*;
var cls:Class;
var newInstance:*;
instance = interfaceToInstanceHash[interfaceName];
if (instance){
return (instance);
};
cls = interfaceToClassHash[interfaceName];
if (!cls){
throw (new Error((("No class registered for interface \"" + interfaceName) + "\".")));
};
cls.bigwigmedia_internal::singletonAccessor = true;
newInstance = new (cls);
cls.bigwigmedia_internal::singletonAccessor = true;
interfaceToInstanceHash[interfaceName] = newInstance;
return (newInstance);
}
}
}//package gamework.core
Section 7
//PreloaderEvent (gamework.events.PreloaderEvent)
package gamework.events {
import flash.events.*;
public class PreloaderEvent extends Event {
private var _url:String;
public static const ITEM_COMPLETE:String = "itemComplete";
public static const ERROR:String = "error";
public static const COMPLETE:String = "complete";
public static const PROGRESS:String = "progress";
public function PreloaderEvent(type:String, url:String=null){
super(type);
_url = url;
}
override public function toString():String{
return (formatToString("PreloaderEvent", "type", "target", "url"));
}
public function get url():String{
return (_url);
}
}
}//package gamework.events
Section 8
//IURLCaller (gamework.net.IURLCaller)
package gamework.net {
public interface IURLCaller {
function getGame():void;
function submitScore(:Number):void;
function mainLink():void;
function viewScores():void;
function playMoreGames():void;
function getURL(_arg1:String, _arg2:String="_blank"):void;
function downloadGame():void;
}
}//package gamework.net
Section 9
//AbstractPreloader (gamework.preloaders.AbstractPreloader)
package gamework.preloaders {
import flash.display.*;
public class AbstractPreloader extends Sprite {
protected var _completed:Boolean;// = false
public function AbstractPreloader(){
_completed = false;
super();
}
public function get completed():Boolean{
return (_completed);
}
public function get percentLoaded():Number{
var bytesLoaded:uint;
var bytesTotal:uint;
if (!root){
return (0);
};
bytesLoaded = root.loaderInfo.bytesLoaded;
bytesTotal = root.loaderInfo.bytesTotal;
if (bytesTotal == 0){
return (((bytesLoaded > 0)) ? 1 : 0);
};
return ((bytesLoaded / bytesTotal));
}
}
}//package gamework.preloaders
Section 10
//Preloader_2DPlayAd (gamework.preloaders.Preloader_2DPlayAd)
package gamework.preloaders {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import gamework.events.*;
import flash.net.*;
import flash.system.*;
public class Preloader_2DPlayAd extends AbstractPreloader {
private var ad:Sprite;
private var logoAnimationCompleted:Boolean;// = false
private var adLoader:Loader;
private var timer:Timer;
private var _progressBarMask:MovieClip;
private var barCompleted:Boolean;// = false
public var _progressBar_at:MovieClip;
public var _background:MovieClip;
private var _animatedLogo:MovieClip;
public var _animatedLogo_at:MovieClip;
private var _progressBar:MovieClip;
public static const STAGE_WIDTH:int = 600;
public static const STAGE_HEIGHT:int = 400;
public static const GAME_ID:int = 1731;
public function Preloader_2DPlayAd(){
logoAnimationCompleted = false;
barCompleted = false;
super();
_animatedLogo = _animatedLogo_at;
_progressBar = _progressBar_at;
_background.visible = false;
_animatedLogo.visible = false;
_progressBar.visible = false;
_animatedLogo.stop();
_animatedLogo.mouseChildren = false;
_animatedLogo.buttonMode = true;
_animatedLogo.addEventListener(MouseEvent.CLICK, onLogoClickHandler);
_progressBarMask = _progressBar.progress_bar_mask;
_progressBar.alpha = 0;
Security.allowDomain("adserver.bigwigmedia.com");
if (Security.sandboxType != Security.LOCAL_WITH_FILE){
ad = new Sprite();
ad.graphics.lineStyle();
ad.graphics.beginFill(0xFFFFFF);
ad.graphics.drawRect(0, 0, 400, 350);
ad.graphics.endFill();
ad.x = ((STAGE_WIDTH - 400) / 2);
ad.y = ((STAGE_HEIGHT - 350) / 2);
addChild(ad);
adLoader = new Loader();
ad.addChild(adLoader);
adLoader.contentLoaderInfo.sharedEvents.addEventListener("BigwigInGameAdComplete", onAdCompleteHandler);
adLoader.load(new URLRequest("http://adserver.bigwigmedia.com/ingamead3.swf"));
} else {
startLogoAnimation();
};
}
private function onLogoClickHandler(event:MouseEvent):void{
navigateToURL(new URLRequest(("http://www.2DPlay.com/index.php?gameid=" + GAME_ID)), "_blank");
}
private function onAdCompleteHandler(event:Event):void{
var event = event;
adLoader.contentLoaderInfo.sharedEvents.removeEventListener("BigwigInGameAdComplete", onAdCompleteHandler);
adLoader.unload();
//unresolved jump
var _slot1 = error;
ad.removeChild(adLoader);
adLoader = null;
removeChild(ad);
ad = null;
startLogoAnimation();
}
private function onTimerEventHandler(event:TimerEvent):void{
var percent:Number;
percent = percentLoaded;
_progressBarMask.scaleX = percent;
if (!logoAnimationCompleted){
if (_animatedLogo.currentFrame == _animatedLogo.totalFrames){
logoAnimationCompleted = true;
} else {
_animatedLogo.nextFrame();
};
} else {
if (!barCompleted){
if (percent == 1){
barCompleted = true;
} else {
_progressBar.alpha = (_progressBar.alpha + 0.1);
if (_progressBar.alpha >= 1){
barCompleted = true;
_progressBar.alpha = 1;
};
};
} else {
if (percent == 1){
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, onTimerEventHandler);
timer = null;
_animatedLogo.removeEventListener(MouseEvent.CLICK, onLogoClickHandler);
dispatchEvent(new PreloaderEvent(PreloaderEvent.COMPLETE));
_completed = true;
};
};
};
event.updateAfterEvent();
}
private function startLogoAnimation():void{
_background.visible = true;
_animatedLogo.visible = true;
_progressBar.visible = true;
timer = new Timer(33);
timer.addEventListener(TimerEvent.TIMER, onTimerEventHandler);
timer.start();
}
}
}//package gamework.preloaders
Section 11
//HSMError (gamework.statemachine.hsm.errors.HSMError)
package gamework.statemachine.hsm.errors {
public class HSMError extends Error {
public function HSMError(message:String=""){
super(message);
}
}
}//package gamework.statemachine.hsm.errors
Section 12
//HSMEvent (gamework.statemachine.hsm.events.HSMEvent)
package gamework.statemachine.hsm.events {
import flash.events.*;
public class HSMEvent extends Event {
private var _eventName:String;
private var _stateName:String;
public static const CHANGE_STATE:String = "change_state";
public static const START:String = "start";
public static const SIGNAL_EVENT:String = "signal_event";
public static const TIME_EVENT:String = "time_event";
public function HSMEvent(type:String, stateName:String=null, eventName:String=null){
super(type);
_stateName = stateName;
_eventName = eventName;
}
public function get eventName():String{
return (_eventName);
}
override public function toString():String{
return (formatToString("StateEvent", "type", "stateName", "eventName"));
}
public function get stateName():String{
return (_stateName);
}
}
}//package gamework.statemachine.hsm.events
Section 13
//StateEvent (gamework.statemachine.hsm.events.StateEvent)
package gamework.statemachine.hsm.events {
import flash.events.*;
public class StateEvent extends Event {
private var _stateMachineEvent:String;
public static const CONCURRENT_COMPLETE:String = "concurrent_complete";
public static const TIME:String = "time";
public function StateEvent(type:String, stateMachineEvent:String){
super(type);
_stateMachineEvent = stateMachineEvent;
}
public function get stateMachineEvent():String{
return (_stateMachineEvent);
}
override public function toString():String{
return (formatToString("StateEvent", "type", "stateMachineEvent"));
}
}
}//package gamework.statemachine.hsm.events
Section 14
//AbstractEvent (gamework.statemachine.hsm.AbstractEvent)
package gamework.statemachine.hsm {
import gamework.utils.*;
public class AbstractEvent {
protected var _name:String;
public function AbstractEvent(name:String=null){
super();
_name = name;
}
public function get name():String{
return (_name);
}
public function toString():String{
return (ObjectUtil.formatToString(this, "name"));
}
function setName(value:String):void{
_name = value;
}
}
}//package gamework.statemachine.hsm
Section 15
//AbstractState (gamework.statemachine.hsm.AbstractState)
package gamework.statemachine.hsm {
import flash.events.*;
import flash.utils.*;
import gamework.statemachine.hsm.events.*;
import gamework.core.*;
import gamework.utils.*;
import gamework.statemachine.hsm.errors.*;
public class AbstractState extends EventDispatcher implements IDisposable {
protected var _entryAction:Function;// = null
protected var _transitions:Array;
protected var _exitAction:Function;// = null
protected var _doAction:Function;// = null
protected var _timersHash:Object;
protected var _active:Boolean;// = false
protected var _transitionLevelsCache:Object;
protected var _parent:CompositeState;// = null
private var _name:String;
var _parentName:String;
public function AbstractState(name:String, parent:String, entryAction:Function=null, doAction:Function=null, exitAction:Function=null){
_active = false;
_entryAction = null;
_doAction = null;
_exitAction = null;
_timersHash = new Object();
_parent = null;
_transitions = new Array();
_transitionLevelsCache = new Object();
super();
_name = name;
_parentName = parent;
_entryAction = entryAction;
_doAction = doAction;
_exitAction = exitAction;
}
public function hasSubstate(state:String):Boolean{
return (false);
}
public function addSubstate(state:AbstractState):void{
throw (new HSMError((("Method addSubstate is not supported in " + NameUtil.getClassName(this)) + " class")));
}
public function hasAncestor(state:AbstractState):Boolean{
var tempParent:AbstractState;
tempParent = _parent;
while (tempParent) {
if (tempParent === state){
return (true);
};
tempParent = tempParent.parent;
};
return (false);
}
public function get active():Boolean{
return (_active);
}
public function hasTransition(transition:Transition):Boolean{
var numTransitions:int;
var i:int;
var t:Transition;
numTransitions = _transitions.length;
i = 0;
while (i < numTransitions) {
t = _transitions[i];
if ((((t.targetState == transition.targetState)) && ((t.event.name == transition.event.name)))){
return (true);
};
i++;
};
return (false);
}
public function get name():String{
return (_name);
}
public function dispose():void{
var timer:Timer;
var transition:IDisposable;
if (_timersHash){
for each (timer in _timersHash) {
timer.reset();
timer.removeEventListener(TimerEvent.TIMER, onTimerHandler);
};
_timersHash = null;
};
if (_transitions){
for each (transition in _transitions) {
transition.dispose();
};
_transitions = null;
};
_entryAction = null;
_doAction = null;
_exitAction = null;
_transitionLevelsCache = null;
}
public function invokeExitAction():void{
if (_exitAction != null){
_exitAction();
};
}
public function get parent():CompositeState{
return (_parent);
}
function setParent(parent:CompositeState):void{
_parent = parent;
}
public function invokeEntryAction():void{
if (_entryAction != null){
_entryAction();
};
}
public function hasDescendant(state:AbstractState):Boolean{
return (false);
}
public function get initialChild():AbstractState{
return (null);
}
public function invokeDoAction():void{
if (_doAction != null){
_doAction();
};
}
function get transitions():Array{
return (_transitions);
}
private function onTimerHandler(event:TimerEvent):void{
var name:String;
if (!_active){
return;
};
for (name in _timersHash) {
if (_timersHash[name] == event.target){
dispatchEvent(new StateEvent(StateEvent.TIME, name));
};
};
}
public function getTransition(eventName:String):Transition{
var numTransitions:int;
var i:int;
var event:AbstractEvent;
numTransitions = _transitions.length;
i = 0;
while (i < numTransitions) {
event = _transitions[i].event;
if (event.name == eventName){
return (_transitions[i]);
};
i++;
};
return (null);
}
function registerTransition(transition:Transition):void{
var timeEvent:TimeEvent;
var timer:Timer;
if ((transition.event is TimeEvent)){
timeEvent = (transition.event as TimeEvent);
timer = new Timer(timeEvent.delay, 1);
_timersHash[timeEvent.name] = timer;
timer.addEventListener(TimerEvent.TIMER, onTimerHandler);
} else {
if (hasTransition(transition)){
throw (new HSMError((("Transition " + transition.toString()) + " exists already")));
};
};
_transitions.push(transition);
}
public function calculateTransitionLevel(targetState:AbstractState):String{
var level:String;
level = _transitionLevelsCache[targetState];
if (level){
return (level);
};
if (this == targetState){
level = TransitionLevel.TO_SELF;
} else {
if (hasAncestor(targetState)){
level = TransitionLevel.TO_ANCESTOR;
} else {
if (hasDescendant(targetState)){
level = TransitionLevel.TO_DESCENDANT;
} else {
if ((((targetState.parent == parent)) && ((targetState.initialChild == null)))){
level = TransitionLevel.TO_SIBLING;
} else {
level = TransitionLevel.TO_IRRELATIVE;
};
};
};
};
_transitionLevelsCache[targetState] = level;
return (level);
}
override public function toString():String{
return (ObjectUtil.formatToString(this, "name", "parent", "active"));
}
function activate():void{
var timer:Timer;
for each (timer in _timersHash) {
timer.start();
};
_active = true;
}
function deactivate():void{
var timer:Timer;
_active = false;
for each (timer in _timersHash) {
timer.reset();
};
}
public function get children():Object{
return (new Object());
}
}
}//package gamework.statemachine.hsm
Section 16
//ChoicePointState (gamework.statemachine.hsm.ChoicePointState)
package gamework.statemachine.hsm {
import gamework.statemachine.hsm.errors.*;
public class ChoicePointState extends AbstractState {
public function ChoicePointState(name:String, parent:String){
super(name, parent);
}
override public function getTransition(eventName:String):Transition{
var numTransitions:int;
var i:int;
var transition:Transition;
numTransitions = _transitions.length;
i = 0;
while (i < numTransitions) {
transition = _transitions[i];
if (transition.checkGuardCondition()){
return (transition);
};
i++;
};
return (null);
}
override function registerTransition(transition:Transition):void{
if ((transition.event is TimeEvent)){
throw (new HSMError("Event must be SignalEvent"));
};
_transitions.push(transition);
}
}
}//package gamework.statemachine.hsm
Section 17
//CompositeState (gamework.statemachine.hsm.CompositeState)
package gamework.statemachine.hsm {
import gamework.core.*;
import gamework.statemachine.hsm.errors.*;
public class CompositeState extends AbstractState {
protected var _initialChild:AbstractState;// = null
protected var _children:Object;
public function CompositeState(name:String, parent:String, entryAction:Function=null, doAction:Function=null, exitAction:Function=null){
_children = new Object();
_initialChild = null;
super(name, parent, entryAction, doAction, exitAction);
}
override public function hasSubstate(state:String):Boolean{
return (!((_children[state] == null)));
}
override public function get children():Object{
return (_children);
}
override public function dispose():void{
var child:IDisposable;
super.dispose();
if (_children){
for each (child in _children) {
child.dispose();
};
_children = null;
};
if (_initialChild){
_initialChild.dispose();
_initialChild = null;
};
}
override public function addSubstate(state:AbstractState):void{
if (hasSubstate(state.name)){
throw (new HSMError((((("Substate \"" + state.name) + "\" in \"") + name) + "\" already exists")));
};
if ((state is InitialState)){
if (_initialChild){
throw (new HSMError((((("State \"" + name) + "\" already has initial substate \"") + _initialChild.name) + "\"")));
};
_initialChild = state;
};
_children[state.name] = state;
}
override public function hasDescendant(state:AbstractState):Boolean{
return (state.hasAncestor(this));
}
override public function get initialChild():AbstractState{
return (_initialChild);
}
}
}//package gamework.statemachine.hsm
Section 18
//FinalState (gamework.statemachine.hsm.FinalState)
package gamework.statemachine.hsm {
public class FinalState extends AbstractState {
public function FinalState(name:String, parent:String, entryAction:Function=null, doAction:Function=null, exitAction:Function=null){
super(name, parent, entryAction, doAction, exitAction);
}
}
}//package gamework.statemachine.hsm
Section 19
//ForkState (gamework.statemachine.hsm.ForkState)
package gamework.statemachine.hsm {
import gamework.statemachine.hsm.errors.*;
public class ForkState extends AbstractState {
private var _activeConcurrentStates:Object;
private var _concurrentStates:Object;
public function ForkState(name:String, parent:String){
_concurrentStates = new Object();
_activeConcurrentStates = new Object();
super(name, parent);
}
function deactivateConcurrentState(state:AbstractState):void{
delete _activeConcurrentStates[state.name];
}
public function hasConcurrentState(state:String):Boolean{
return (!((_concurrentStates[state] == null)));
}
override function deactivate():void{
var child:AbstractState;
for each (child in _concurrentStates) {
child.deactivate();
};
}
public function get activeConcurrentStates():Object{
return (_activeConcurrentStates);
}
public function addConcurrentState(state:AbstractState):void{
if (hasConcurrentState(state.name)){
throw (new HSMError((((("Concurrent state \"" + state.name) + "\" in \"") + name) + "\" already exists")));
};
_concurrentStates[state.name] = state;
}
override function activate():void{
var child:AbstractState;
_activeConcurrentStates = {};
for each (child in _concurrentStates) {
child.activate();
_activeConcurrentStates[child.name] = child;
};
}
}
}//package gamework.statemachine.hsm
Section 20
//HSM (gamework.statemachine.hsm.HSM)
package gamework.statemachine.hsm {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import gamework.statemachine.hsm.events.*;
import gamework.core.*;
import gamework.statemachine.hsm.errors.*;
public class HSM extends EventDispatcher implements IDisposable, IUpdatable {
private var _initialState:AbstractState;// = null
private var _transitionInProgress:Boolean;// = false
private var _activeStateList:Array;
private var _updateMode:String;
private var _started:Boolean;// = false
private var _statesHash:Object;
private var _name:String;
private var _currentState:AbstractState;// = null
private var updateTimer:Timer;
public function HSM(name:String){
_statesHash = new Object();
_initialState = null;
_currentState = null;
_activeStateList = new Array();
_started = false;
_transitionInProgress = false;
super();
_name = name;
}
public function get name():String{
return (_name);
}
private function findExitStateChain(sourceState:AbstractState, targetState:AbstractState):Array{
var chain:Array;
var level:String;
var _local5:int;
var _local6:AbstractState;
var _local7:AbstractState;
level = sourceState.calculateTransitionLevel(targetState);
switch (level){
case TransitionLevel.TO_SELF:
case TransitionLevel.TO_SIBLING:
chain = [sourceState];
break;
case TransitionLevel.TO_ANCESTOR:
_local5 = _activeStateList.indexOf(targetState);
chain = _activeStateList.slice(0, _local5);
break;
case TransitionLevel.TO_DESCENDANT:
chain = [];
break;
default:
_local6 = _activeStateList[(_activeStateList.length - 1)];
_local7 = sourceState;
chain = [_currentState];
while (((_local7.parent) && (!((_local6 == _local7))))) {
chain.push(_local7.parent);
_local7 = _local7.parent;
};
break;
};
return (chain);
}
public function hasState(stateName:String):Boolean{
return (!((_statesHash[stateName] == null)));
}
public function dispose():void{
var dState:AbstractState;
var state:IDisposable;
var _local3:Stage;
switch (_updateMode){
case HSMUpdateMode.TIMER:
updateTimer.stop();
updateTimer.removeEventListener(TimerEvent.TIMER, onUpdateTimerHandler);
updateTimer = null;
break;
case HSMUpdateMode.ENTER_FRAME:
_local3 = ApplicationGlobals.STAGE;
_local3.removeEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
break;
};
_started = false;
for each (dState in _activeStateList) {
dState.deactivate();
};
_activeStateList = null;
for each (state in _statesHash) {
state.dispose();
};
_statesHash = null;
}
public function get currentState():AbstractState{
return (_currentState);
}
public function sendSignalEvent(eventName:String):Boolean{
var exitStateChain:Array;
var entryStateChain:Array;
var numActiveStates:int;
var i:int;
var activeState:AbstractState;
var forkState:ForkState;
var concurrentStatesHash:Object;
var child:AbstractState;
var concurrentTransition:Transition;
var joinState:JoinState;
var transition:Transition;
if (!_started){
throw (new HSMError("State machine is not initialized"));
};
dispatchEvent(new HSMEvent(HSMEvent.SIGNAL_EVENT, _currentState.name, eventName));
if (((!(_currentState.parent)) && ((_currentState is FinalState)))){
return (false);
};
numActiveStates = _activeStateList.length;
i = 0;
while (i < numActiveStates) {
activeState = _activeStateList[i];
if ((activeState is ForkState)){
forkState = (activeState as ForkState);
concurrentStatesHash = forkState.activeConcurrentStates;
for each (child in concurrentStatesHash) {
concurrentTransition = child.getTransition(eventName);
if (concurrentTransition){
forkState.deactivateConcurrentState(child);
exitStateChain = findExitStateChain(child, concurrentTransition.targetState);
entryStateChain = findEntryStateChain(child, concurrentTransition.targetState);
startTransition(exitStateChain, entryStateChain, concurrentTransition, false);
joinState = (concurrentTransition.targetState as JoinState);
joinState.numActiveConcurrentStates--;
if (joinState.numActiveConcurrentStates == 0){
joinState.resetNumActiveConcurrentStates();
exitStateChain = findExitStateChain(child, concurrentTransition.targetState);
entryStateChain = findEntryStateChain(child, concurrentTransition.targetState);
startTransition([], [concurrentTransition.targetState], concurrentTransition);
};
return (true);
};
};
return (false);
} else {
transition = activeState.getTransition(eventName);
if (((transition) && (transition.checkGuardCondition()))){
exitStateChain = findExitStateChain(_currentState, transition.targetState);
entryStateChain = findEntryStateChain(_currentState, transition.targetState);
startTransition(exitStateChain, entryStateChain, transition);
return (true);
};
};
i++;
};
return (false);
}
private function findEntryStateChain(sourceState:AbstractState, targetState:AbstractState):Array{
var chain:Array;
var level:String;
var _local5:AbstractState;
var _local6:AbstractState;
var _local7:AbstractState;
var _local8:AbstractState;
level = sourceState.calculateTransitionLevel(targetState);
switch (level){
case TransitionLevel.TO_SELF:
case TransitionLevel.TO_SIBLING:
chain = [targetState];
break;
case TransitionLevel.TO_ANCESTOR:
chain = [];
_local5 = sourceState;
while (_local5 != targetState) {
chain.push(_local5);
_local5 = _local5.parent;
};
break;
case TransitionLevel.TO_DESCENDANT:
chain = [];
_local6 = targetState;
while (_local6 != sourceState) {
chain.push(_local6);
_local6 = _local6.parent;
};
break;
default:
_local7 = _activeStateList[(_activeStateList.length - 1)];
_local8 = targetState;
while (_local8.initialChild) {
_local8 = _local8.initialChild;
if ((_local8 is InitialState)){
break;
};
};
chain = [_local8];
while (((_local8.parent) && (!((_local7 == _local8))))) {
chain.push(_local8.parent);
_local8 = _local8.parent;
};
break;
};
return (chain);
}
public function update():void{
if (((_currentState) && (!(_transitionInProgress)))){
_currentState.invokeDoAction();
};
}
public function addTransition(sourceStateName:String, targetStateName:String, event:AbstractEvent=null, effect:Function=null, guardCondition:Function=null):void{
var sState:AbstractState;
var tState:AbstractState;
var transition:Transition;
var concurrentTransition:Transition;
if (!hasState(sourceStateName)){
throw (new HSMError((("State \"" + sourceStateName) + "\" doesn't exist")));
};
if (!hasState(targetStateName)){
throw (new HSMError((("State \"" + targetStateName) + "\" doesn't exist")));
};
sState = _statesHash[sourceStateName];
tState = _statesHash[targetStateName];
if (!event){
event = new SignalEvent(SignalEvent.ON_STATE_COMPLETE);
};
if ((sState is ForkState)){
ForkState(sState).addConcurrentState(tState);
return;
};
if ((tState is JoinState)){
JoinState(tState).addConcurrentState(sState);
concurrentTransition = new Transition(tState, event, effect, guardCondition);
sState.registerTransition(concurrentTransition);
return;
};
if ((event is TimeEvent)){
event.setName(((targetStateName + "@") + TimeEvent(event).delay));
if (!sState.hasEventListener(StateEvent.TIME)){
sState.addEventListener(StateEvent.TIME, onStateTimeHandler);
};
};
transition = new Transition(tState, event, effect, guardCondition);
sState.registerTransition(transition);
}
private function startTransition(exitStateChain:Array, entryStateChain:Array, transition:Transition=null, changeCurrentState:Boolean=true):void{
var dState:AbstractState;
var numExitStates:int;
var i:int;
var numEntryStates:int;
var j:int;
var tempState:AbstractState;
var aState:AbstractState;
var choiceTransition:Transition;
if (_transitionInProgress){
return;
};
_transitionInProgress = true;
for each (dState in _activeStateList) {
dState.deactivate();
};
numExitStates = exitStateChain.length;
i = 0;
while (i < numExitStates) {
AbstractState(exitStateChain[i]).invokeExitAction();
i++;
};
if (transition){
transition.invokeEffect();
};
numEntryStates = entryStateChain.length;
j = (numEntryStates - 1);
while (j >= 0) {
AbstractState(entryStateChain[j]).invokeEntryAction();
j--;
};
if (changeCurrentState){
tempState = entryStateChain[0];
_activeStateList = [tempState];
while (tempState.parent) {
_activeStateList.push(tempState.parent);
tempState = tempState.parent;
};
_currentState = _activeStateList[0];
if ((_currentState is ChoicePointState)){
choiceTransition = _currentState.getTransition(null);
if (choiceTransition){
exitStateChain = findExitStateChain(_currentState, choiceTransition.targetState);
entryStateChain = findEntryStateChain(_currentState, choiceTransition.targetState);
_transitionInProgress = false;
startTransition(exitStateChain, entryStateChain, choiceTransition);
};
};
for each (aState in _activeStateList) {
aState.activate();
};
};
_transitionInProgress = false;
dispatchEvent(new HSMEvent(HSMEvent.CHANGE_STATE, _currentState.name));
sendSignalEvent(SignalEvent.ON_STATE_COMPLETE);
}
public function start(updateMode:String="disabled", delay:int=40, initialStateName:String=null):void{
var initialState:AbstractState;
var _local5:Stage;
if (_started){
return;
};
initialState = ((initialStateName == null)) ? _initialState : _statesHash[initialStateName];
if (!initialState){
throw (new HSMError("Initial state doesn't exist"));
};
_activeStateList.push(initialState);
_updateMode = updateMode;
switch (updateMode){
case HSMUpdateMode.TIMER:
updateTimer = new Timer(delay);
updateTimer.addEventListener(TimerEvent.TIMER, onUpdateTimerHandler);
updateTimer.start();
break;
case HSMUpdateMode.ENTER_FRAME:
_local5 = ApplicationGlobals.STAGE;
_local5.addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
break;
};
_started = true;
dispatchEvent(new HSMEvent(HSMEvent.START, initialState.name));
startTransition([], [initialState]);
}
private function onStateTimeHandler(event:StateEvent):void{
dispatchEvent(new HSMEvent(HSMEvent.TIME_EVENT, _currentState.name, event.stateMachineEvent));
sendSignalEvent(event.stateMachineEvent);
}
public function getConfiguration():XML{
var config:XML;
var states:XML;
var transitions:XML;
var statesList:Array;
var s:AbstractState;
var i:int;
var state:AbstractState;
var parent:XMLList;
config = new XML((("<stateMachine name=\"" + ??esc_xattr
) + "\"/>"));
states = <states/>
;
transitions = <transitions/>
;
statesList = new Array();
for each (s in _statesHash) {
statesList.push(s);
};
while (statesList.length > 0) {
i = 0;
for (;i < statesList.length;(i = (i + 1))) {
state = statesList[i];
if (!state.parent){
states.appendChild(new XML((((("<state type=\"" + ??esc_xattr
) + "\" name=\"") + ??esc_xattr
) + "\"/>")));
addTransitionConfiguration(transitions, state);
statesList.splice(i, 1);
continue;
} else {
if (states..state.(@name == state.parent.name).length() > 0){
parent = states..state.(@name == state.parent.name);
parent.appendChild(new XML((((("<state type=\"" + ??esc_xattr
) + "\" name=\"") + ??esc_xattr
) + "\"/>")));
addTransitionConfiguration(transitions, state);
statesList.splice(i, 1);
continue;
};
};
};
};
config.appendChild(states);
config.appendChild(transitions);
return (config);
}
public function addState(state:AbstractState):void{
if (hasState(state.name)){
throw (new HSMError((("State \"" + state.name) + "\" already exists")));
};
if (state._parentName){
if (hasState(state._parentName)){
state.setParent(_statesHash[state._parentName]);
_statesHash[state.name] = state;
state.parent.addSubstate(state);
} else {
throw (new HSMError((("Parent \"" + state._parentName) + "\" doesn't exist")));
};
} else {
if ((state is InitialState)){
if (_initialState){
throw (new HSMError((("Initial state \"" + state) + "\" exists already")));
};
_initialState = state;
};
_statesHash[state.name] = state;
};
}
private function onUpdateTimerHandler(event:TimerEvent):void{
update();
}
private function onEnterFrameHandler(event:Event):void{
update();
}
private function addTransitionConfiguration(transitionXML:XML, state:AbstractState):void{
var transitionsList:Array;
var transition:Transition;
var eventName:String;
transitionsList = state.transitions;
for each (transition in transitionsList) {
if ((transition.event is TimeEvent)){
eventName = ((transition.event as TimeEvent).delay + " ms");
transitionXML.appendChild(new XML((((((("<transition source=\"" + ??esc_xattr
) + "\" target=\"") + ??esc_xattr
) + "\" timeEvent=\"") + ??esc_xattr
) + "\"/>")));
} else {
eventName = transition.event.name;
transitionXML.appendChild(new XML((((((("<transition source=\"" + ??esc_xattr
) + "\" target=\"") + ??esc_xattr
) + "\" signalEvent=\"") + ??esc_xattr
) + "\"/>")));
};
};
}
}
}//package gamework.statemachine.hsm
Section 21
//HSMUpdateMode (gamework.statemachine.hsm.HSMUpdateMode)
package gamework.statemachine.hsm {
public class HSMUpdateMode {
public static const TIMER:String = "timer";
public static const ENTER_FRAME:String = "enter_frame";
public static const DISABLED:String = "disabled";
public function HSMUpdateMode(){
super();
}
}
}//package gamework.statemachine.hsm
Section 22
//InitialState (gamework.statemachine.hsm.InitialState)
package gamework.statemachine.hsm {
public class InitialState extends AbstractState {
public function InitialState(name:String, parent:String, entryAction:Function=null, doAction:Function=null, exitAction:Function=null){
super(name, parent, entryAction, doAction, exitAction);
}
}
}//package gamework.statemachine.hsm
Section 23
//JoinState (gamework.statemachine.hsm.JoinState)
package gamework.statemachine.hsm {
import gamework.statemachine.hsm.errors.*;
public class JoinState extends AbstractState {
private var _numConcurrentStates:int;// = 0
var numActiveConcurrentStates:int;// = 0
private var _concurrentStates:Object;
public function JoinState(name:String, parent:String){
numActiveConcurrentStates = 0;
_numConcurrentStates = 0;
_concurrentStates = new Object();
super(name, parent);
}
public function hasConcurrentState(state:String):Boolean{
return (!((_concurrentStates[state] == null)));
}
public function addConcurrentState(state:AbstractState):void{
if (hasConcurrentState(state.name)){
throw (new HSMError((((("Concurrent state \"" + state.name) + "\" in \"") + name) + "\" already exists")));
};
_concurrentStates[state.name] = state;
_numConcurrentStates++;
numActiveConcurrentStates = _numConcurrentStates;
}
function resetNumActiveConcurrentStates():void{
numActiveConcurrentStates = _numConcurrentStates;
}
}
}//package gamework.statemachine.hsm
Section 24
//SignalEvent (gamework.statemachine.hsm.SignalEvent)
package gamework.statemachine.hsm {
public class SignalEvent extends AbstractEvent {
public static const ON_CONCURRENT:String = "internal::on_concurrent";
public static const ON_STATE_COMPLETE:String = "internal::on_state_complete";
public function SignalEvent(name:String){
super(name);
}
}
}//package gamework.statemachine.hsm
Section 25
//TimeEvent (gamework.statemachine.hsm.TimeEvent)
package gamework.statemachine.hsm {
public class TimeEvent extends AbstractEvent {
private var _delay:int;
public function TimeEvent(delay:Number){
super();
_delay = delay;
}
public function get delay():int{
return (_delay);
}
}
}//package gamework.statemachine.hsm
Section 26
//Transition (gamework.statemachine.hsm.Transition)
package gamework.statemachine.hsm {
import gamework.core.*;
import gamework.utils.*;
public class Transition implements IDisposable {
private var _targetState:AbstractState;
private var _effect:Function;
private var _guardCondition:Function;
private var _event:AbstractEvent;
public function Transition(targetState:AbstractState, event:AbstractEvent, effect:Function, guardCondition:Function):void{
super();
_event = event;
_targetState = targetState;
_effect = effect;
_guardCondition = guardCondition;
}
public function invokeEffect():void{
if (_effect != null){
_effect();
};
}
public function toString():String{
return (ObjectUtil.formatToString(this, "targetState", "event"));
}
public function get targetState():AbstractState{
return (_targetState);
}
public function get event():AbstractEvent{
return (_event);
}
public function checkGuardCondition():Boolean{
if (_guardCondition == null){
return (true);
};
return (_guardCondition());
}
public function dispose():void{
_event = null;
_targetState = null;
_guardCondition = null;
_effect = null;
}
}
}//package gamework.statemachine.hsm
Section 27
//TransitionLevel (gamework.statemachine.hsm.TransitionLevel)
package gamework.statemachine.hsm {
public class TransitionLevel {
public static const TO_SELF:String = "to_self";
public static const TO_DESCENDANT:String = "to_descendant";
public static const TO_ANCESTOR:String = "to_ancestor";
public static const TO_IRRELATIVE:String = "to_irrelative";
public static const TO_SIBLING:String = "to_sibling";
public function TransitionLevel(){
super();
}
}
}//package gamework.statemachine.hsm
Section 28
//NameUtil (gamework.utils.NameUtil)
package gamework.utils {
import flash.utils.*;
import flash.display.*;
public class NameUtil {
public function NameUtil(){
super();
}
public static function objectToDisplayObjectString(object:Object):String{
var result:String;
var o:DisplayObject;
var s:String;
if ((object is DisplayObject)){
o = (object as DisplayObject);
while (o != null) {
if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){
break;
};
s = o.name;
result = ((result == null)) ? s : ((s + ".") + result);
o = o.parent;
};
} else {
result = "Not a DisplayObject";
};
return (result);
}
public static function getClassName(object):String{
var name:String;
var index:int;
name = getQualifiedClassName(object);
index = name.indexOf("::");
if (index != -1){
name = name.substr((index + 2));
};
return (name);
}
}
}//package gamework.utils
Section 29
//ObjectUtil (gamework.utils.ObjectUtil)
package gamework.utils {
public class ObjectUtil {
public function ObjectUtil(){
super();
}
public static function formatToString(object, ... _args):String{
var out:String;
var numArgs:int;
var i:int;
var arg:String;
out = ("[" + NameUtil.getClassName(object));
numArgs = _args.length;
i = 0;
while (i < numArgs) {
arg = _args[i];
if (object.hasOwnProperty(arg)){
out = (out + (((" " + arg) + "=") + object[arg]));
};
i++;
};
return ((out + "]"));
}
public static function hasProperties(object:Object):Boolean{
var p:String;
for (p in object) {
return (true);
};
return (false);
}
}
}//package gamework.utils
Section 30
//appleFall_200 (Stone_fla.appleFall_200)
package Stone_fla {
import flash.display.*;
public dynamic class appleFall_200 extends MovieClip {
public function appleFall_200(){
super();
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Stone_fla
Section 31
//appleintree_269 (Stone_fla.appleintree_269)
package Stone_fla {
import flash.display.*;
public dynamic class appleintree_269 extends MovieClip {
public function appleintree_269(){
super();
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
stop();
}
}
}//package Stone_fla
Section 32
//bat_flying_436 (Stone_fla.bat_flying_436)
package Stone_fla {
import flash.display.*;
public dynamic class bat_flying_436 extends MovieClip {
public function bat_flying_436(){
super();
addFrameScript(190, frame191);
}
function frame191(){
stop();
}
}
}//package Stone_fla
Section 33
//biglava_579 (Stone_fla.biglava_579)
package Stone_fla {
import flash.display.*;
public dynamic class biglava_579 extends MovieClip {
public function biglava_579(){
super();
addFrameScript(0, frame1, 117, frame118, 300, frame301);
}
function frame1(){
stop();
}
function frame118(){
stop();
}
function frame301(){
stop();
}
}
}//package Stone_fla
Section 34
//bubblemamm_174 (Stone_fla.bubblemamm_174)
package Stone_fla {
import flash.display.*;
public dynamic class bubblemamm_174 extends MovieClip {
public function bubblemamm_174(){
super();
addFrameScript(30, frame31);
}
function frame31(){
stop();
}
}
}//package Stone_fla
Section 35
//butterfly_flyaway_129 (Stone_fla.butterfly_flyaway_129)
package Stone_fla {
import flash.display.*;
public dynamic class butterfly_flyaway_129 extends MovieClip {
public function butterfly_flyaway_129(){
super();
addFrameScript(136, frame137);
}
function frame137(){
stop();
}
}
}//package Stone_fla
Section 36
//button_mc_39 (Stone_fla.button_mc_39)
package Stone_fla {
import flash.display.*;
import flash.text.*;
public dynamic class button_mc_39 extends MovieClip {
public var txt:TextField;
public function button_mc_39(){
super();
}
}
}//package Stone_fla
Section 37
//cavemanpickuptrugfromunderelephant_246 (Stone_fla.cavemanpickuptrugfromunderelephant_246)
package Stone_fla {
import flash.display.*;
public dynamic class cavemanpickuptrugfromunderelephant_246 extends MovieClip {
public var marker:MovieClip;
public function cavemanpickuptrugfromunderelephant_246(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 38
//caveYeti_458 (Stone_fla.caveYeti_458)
package Stone_fla {
import flash.display.*;
public dynamic class caveYeti_458 extends MovieClip {
public var yeti:MovieClip;
public function caveYeti_458(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 39
//crofabgoesandpicksshitup_181 (Stone_fla.crofabgoesandpicksshitup_181)
package Stone_fla {
import flash.display.*;
public dynamic class crofabgoesandpicksshitup_181 extends MovieClip {
public function crofabgoesandpicksshitup_181(){
super();
addFrameScript(0, frame1, 201, frame202);
}
function frame202(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 40
//crofabjoinsolypics_346 (Stone_fla.crofabjoinsolypics_346)
package Stone_fla {
import flash.display.*;
public dynamic class crofabjoinsolypics_346 extends MovieClip {
public function crofabjoinsolypics_346(){
super();
addFrameScript(0, frame1, 43, frame44, 53, frame54);
}
function frame1(){
stop();
}
function frame44(){
stop();
}
function frame54(){
stop();
}
}
}//package Stone_fla
Section 41
//crowd__144 (Stone_fla.crowd__144)
package Stone_fla {
import flash.display.*;
public dynamic class crowd__144 extends MovieClip {
public function crowd__144(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 42
//darkness_537 (Stone_fla.darkness_537)
package Stone_fla {
import flash.display.*;
public dynamic class darkness_537 extends MovieClip {
public var darkness:MovieClip;
public function darkness_537(){
super();
addFrameScript(0, frame1, 59, frame60, 97, frame98);
}
function frame98(){
stop();
}
function frame1(){
stop();
}
function frame60(){
stop();
}
}
}//package Stone_fla
Section 43
//exported_movieclips_6 (Stone_fla.exported_movieclips_6)
package Stone_fla {
import flash.display.*;
public dynamic class exported_movieclips_6 extends MovieClip {
public function exported_movieclips_6(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 44
//exported_sounds_641 (Stone_fla.exported_sounds_641)
package Stone_fla {
import flash.display.*;
public dynamic class exported_sounds_641 extends MovieClip {
public function exported_sounds_641(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 45
//family_608 (Stone_fla.family_608)
package Stone_fla {
import flash.display.*;
public dynamic class family_608 extends MovieClip {
public function family_608(){
super();
addFrameScript(0, frame1, 88, frame89);
}
function frame89(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 46
//family_otherside_430 (Stone_fla.family_otherside_430)
package Stone_fla {
import flash.display.*;
public dynamic class family_otherside_430 extends MovieClip {
public function family_otherside_430(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 47
//familyMoveTogether_431 (Stone_fla.familyMoveTogether_431)
package Stone_fla {
import flash.display.*;
public dynamic class familyMoveTogether_431 extends MovieClip {
public function familyMoveTogether_431(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 48
//familywalk_6_10_432 (Stone_fla.familywalk_6_10_432)
package Stone_fla {
import flash.display.*;
public dynamic class familywalk_6_10_432 extends MovieClip {
public function familywalk_6_10_432(){
super();
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package Stone_fla
Section 49
//firebearcopy2_511 (Stone_fla.firebearcopy2_511)
package Stone_fla {
import flash.display.*;
public dynamic class firebearcopy2_511 extends MovieClip {
public function firebearcopy2_511(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 50
//firetreecopy_633 (Stone_fla.firetreecopy_633)
package Stone_fla {
import flash.display.*;
public dynamic class firetreecopy_633 extends MovieClip {
public function firetreecopy_633(){
super();
addFrameScript(30, frame31);
}
function frame31(){
gotoAndPlay(7);
}
}
}//package Stone_fla
Section 51
//firetreecopy4_634 (Stone_fla.firetreecopy4_634)
package Stone_fla {
import flash.display.*;
public dynamic class firetreecopy4_634 extends MovieClip {
public function firetreecopy4_634(){
super();
addFrameScript(30, frame31);
}
function frame31(){
gotoAndPlay(7);
}
}
}//package Stone_fla
Section 52
//flintsparks_547 (Stone_fla.flintsparks_547)
package Stone_fla {
import flash.display.*;
public dynamic class flintsparks_547 extends MovieClip {
public function flintsparks_547(){
super();
addFrameScript(0, frame1, 49, frame50);
}
function frame1(){
stop();
}
function frame50(){
stop();
}
}
}//package Stone_fla
Section 53
//girlfr_484 (Stone_fla.girlfr_484)
package Stone_fla {
import flash.display.*;
public dynamic class girlfr_484 extends MovieClip {
public function girlfr_484(){
super();
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package Stone_fla
Section 54
//girlputsclothescopy_507 (Stone_fla.girlputsclothescopy_507)
package Stone_fla {
import flash.display.*;
public dynamic class girlputsclothescopy_507 extends MovieClip {
public function girlputsclothescopy_507(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 55
//HintArrow_356 (Stone_fla.HintArrow_356)
package Stone_fla {
import flash.display.*;
public dynamic class HintArrow_356 extends MovieClip {
public function HintArrow_356(){
super();
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package Stone_fla
Section 56
//icebridge_copy_465 (Stone_fla.icebridge_copy_465)
package Stone_fla {
import flash.display.*;
public dynamic class icebridge_copy_465 extends MovieClip {
public function icebridge_copy_465(){
super();
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
stop();
}
function frame45(){
stop();
}
}
}//package Stone_fla
Section 57
//instructions_17 (Stone_fla.instructions_17)
package Stone_fla {
import flash.display.*;
public dynamic class instructions_17 extends MovieClip {
public var start_btn:SimpleButton;
public function instructions_17(){
super();
}
}
}//package Stone_fla
Section 58
//kidcopy3_508 (Stone_fla.kidcopy3_508)
package Stone_fla {
import flash.display.*;
public dynamic class kidcopy3_508 extends MovieClip {
public function kidcopy3_508(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 59
//kidcopy4_509 (Stone_fla.kidcopy4_509)
package Stone_fla {
import flash.display.*;
public dynamic class kidcopy4_509 extends MovieClip {
public function kidcopy4_509(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 60
//kidfr_481 (Stone_fla.kidfr_481)
package Stone_fla {
import flash.display.*;
public dynamic class kidfr_481 extends MovieClip {
public function kidfr_481(){
super();
addFrameScript(135, frame136);
}
function frame136(){
stop();
}
}
}//package Stone_fla
Section 61
//kidfrcopy3_490 (Stone_fla.kidfrcopy3_490)
package Stone_fla {
import flash.display.*;
public dynamic class kidfrcopy3_490 extends MovieClip {
public function kidfrcopy3_490(){
super();
addFrameScript(135, frame136);
}
function frame136(){
stop();
}
}
}//package Stone_fla
Section 62
//level_1_sam_7_6_mc_606 (Stone_fla.level_1_sam_7_6_mc_606)
package Stone_fla {
import flash.display.*;
public dynamic class level_1_sam_7_6_mc_606 extends MovieClip {
public var marker:MovieClip;
public function level_1_sam_7_6_mc_606(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 63
//level1_animals_5_0_626 (Stone_fla.level1_animals_5_0_626)
package Stone_fla {
import flash.display.*;
public dynamic class level1_animals_5_0_626 extends MovieClip {
public function level1_animals_5_0_626(){
super();
addFrameScript(0, frame1, 60, frame61);
}
function frame1(){
stop();
}
function frame61(){
stop();
}
}
}//package Stone_fla
Section 64
//level1_bear_5_0_636 (Stone_fla.level1_bear_5_0_636)
package Stone_fla {
import flash.display.*;
public dynamic class level1_bear_5_0_636 extends MovieClip {
public var marker:MovieClip;
public function level1_bear_5_0_636(){
super();
addFrameScript(0, frame1, 167, frame168);
}
function frame168(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 65
//level1_family_7_12_612 (Stone_fla.level1_family_7_12_612)
package Stone_fla {
import flash.display.*;
public dynamic class level1_family_7_12_612 extends MovieClip {
public var family:MovieClip;
public function level1_family_7_12_612(){
super();
addFrameScript(0, frame1, 77, frame78);
}
function frame78(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 66
//level1_kid_7_8_615 (Stone_fla.level1_kid_7_8_615)
package Stone_fla {
import flash.display.*;
public dynamic class level1_kid_7_8_615 extends MovieClip {
public var kid:MovieClip;
public function level1_kid_7_8_615(){
super();
addFrameScript(0, frame1, 25, frame26);
}
function frame1(){
stop();
}
function frame26(){
stop();
}
}
}//package Stone_fla
Section 67
//level1_log_631 (Stone_fla.level1_log_631)
package Stone_fla {
import flash.display.*;
public dynamic class level1_log_631 extends MovieClip {
public function level1_log_631(){
super();
addFrameScript(0, frame1, 25, frame26);
}
function frame1(){
stop();
}
function frame26(){
stop();
}
}
}//package Stone_fla
Section 68
//level1_sam_0_1_588 (Stone_fla.level1_sam_0_1_588)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_0_1_588 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_0_1_588(){
super();
addFrameScript(0, frame1, 27, frame28);
}
function frame1(){
stop();
}
function frame28(){
stop();
}
}
}//package Stone_fla
Section 69
//level1_sam_1_2_590 (Stone_fla.level1_sam_1_2_590)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_1_2_590 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_1_2_590(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 70
//level1_sam_1_3_589 (Stone_fla.level1_sam_1_3_589)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_1_3_589 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_1_3_589(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 71
//level1_sam_10_11_625 (Stone_fla.level1_sam_10_11_625)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_10_11_625 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_10_11_625(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 72
//level1_sam_2_1_592 (Stone_fla.level1_sam_2_1_592)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_2_1_592 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_2_1_592(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 73
//level1_sam_3_5_593 (Stone_fla.level1_sam_3_5_593)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_3_5_593 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_3_5_593(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 74
//level1_sam_5_6_607 (Stone_fla.level1_sam_5_6_607)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_5_6_607 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_5_6_607(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 75
//level1_sam_5_7_594 (Stone_fla.level1_sam_5_7_594)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_5_7_594 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_5_7_594(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 76
//level1_sam_6_7_613 (Stone_fla.level1_sam_6_7_613)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_6_7_613 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_6_7_613(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 77
//level1_sam_7_12_603 (Stone_fla.level1_sam_7_12_603)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_7_12_603 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_7_12_603(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 78
//level1_sam_7_8_596 (Stone_fla.level1_sam_7_8_596)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_7_8_596 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_7_8_596(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 79
//level1_sam_8_10_624 (Stone_fla.level1_sam_8_10_624)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_8_10_624 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_8_10_624(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 80
//level1_sam_8_8a_617 (Stone_fla.level1_sam_8_8a_617)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_8_8a_617 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_8_8a_617(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 81
//level1_sam_8_8b_618 (Stone_fla.level1_sam_8_8b_618)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_8_8b_618 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_8_8b_618(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 82
//level1_sam_8a_8_619 (Stone_fla.level1_sam_8a_8_619)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_8a_8_619 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_8a_8_619(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 83
//level1_sam_8a_8b_621 (Stone_fla.level1_sam_8a_8b_621)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_8a_8b_621 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_8a_8b_621(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 84
//level1_sam_8b_8_623 (Stone_fla.level1_sam_8b_8_623)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_8b_8_623 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_8b_8_623(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 85
//level1_sam_8b_8a_622 (Stone_fla.level1_sam_8b_8a_622)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_8b_8a_622 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_8b_8a_622(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 86
//level1_sam_lowers_kid_1_597 (Stone_fla.level1_sam_lowers_kid_1_597)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_lowers_kid_1_597 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_lowers_kid_1_597(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 87
//level1_sam_lowers_kid_2_600 (Stone_fla.level1_sam_lowers_kid_2_600)
package Stone_fla {
import flash.display.*;
public dynamic class level1_sam_lowers_kid_2_600 extends MovieClip {
public var marker:MovieClip;
public function level1_sam_lowers_kid_2_600(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 88
//level1_samdies_604 (Stone_fla.level1_samdies_604)
package Stone_fla {
import flash.display.*;
public dynamic class level1_samdies_604 extends MovieClip {
public var marker:MovieClip;
public function level1_samdies_604(){
super();
addFrameScript(0, frame1, 71, frame72);
}
function frame72(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 89
//level1_treeFall_586 (Stone_fla.level1_treeFall_586)
package Stone_fla {
import flash.display.*;
public dynamic class level1_treeFall_586 extends MovieClip {
public function level1_treeFall_586(){
super();
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 90
//level2_12_icedoormelts_457 (Stone_fla.level2_12_icedoormelts_457)
package Stone_fla {
import flash.display.*;
public dynamic class level2_12_icedoormelts_457 extends MovieClip {
public function level2_12_icedoormelts_457(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 91
//level2_9b_yeti_breaksice_466 (Stone_fla.level2_9b_yeti_breaksice_466)
package Stone_fla {
import flash.display.*;
public dynamic class level2_9b_yeti_breaksice_466 extends MovieClip {
public function level2_9b_yeti_breaksice_466(){
super();
addFrameScript(0, frame1, 114, frame115);
}
function frame1(){
stop();
}
function frame115(){
stop();
}
}
}//package Stone_fla
Section 92
//level2_family_0_1_480 (Stone_fla.level2_family_0_1_480)
package Stone_fla {
import flash.display.*;
public dynamic class level2_family_0_1_480 extends MovieClip {
public var lucy:MovieClip;
public function level2_family_0_1_480(){
super();
addFrameScript(0, frame1, 18, frame19, 21, frame22, 57, frame58);
}
function frame1(){
stop();
}
function frame19(){
stop();
}
function frame22(){
stop();
}
function frame58(){
stop();
}
}
}//package Stone_fla
Section 93
//level2_family_2_5_498 (Stone_fla.level2_family_2_5_498)
package Stone_fla {
import flash.display.*;
public dynamic class level2_family_2_5_498 extends MovieClip {
public function level2_family_2_5_498(){
super();
addFrameScript(0, frame1, 31, frame32);
}
function frame1(){
stop();
}
function frame32(){
stop();
}
}
}//package Stone_fla
Section 94
//level2_girlwalk_10_11_534 (Stone_fla.level2_girlwalk_10_11_534)
package Stone_fla {
import flash.display.*;
public dynamic class level2_girlwalk_10_11_534 extends MovieClip {
public function level2_girlwalk_10_11_534(){
super();
addFrameScript(0, frame1, 54, frame55);
}
function frame1(){
stop();
}
function frame55(){
stop();
}
}
}//package Stone_fla
Section 95
//level2_lucy_10_11_535 (Stone_fla.level2_lucy_10_11_535)
package Stone_fla {
import flash.display.*;
public dynamic class level2_lucy_10_11_535 extends MovieClip {
public function level2_lucy_10_11_535(){
super();
addFrameScript(0, frame1, 81, frame82);
}
function frame82(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 96
//level2_lucy_5_7_499 (Stone_fla.level2_lucy_5_7_499)
package Stone_fla {
import flash.display.*;
public dynamic class level2_lucy_5_7_499 extends MovieClip {
public function level2_lucy_5_7_499(){
super();
addFrameScript(0, frame1, 128, frame129);
}
function frame1(){
stop();
}
function frame129(){
stop();
}
}
}//package Stone_fla
Section 97
//level2_lucy_8_tailor_500 (Stone_fla.level2_lucy_8_tailor_500)
package Stone_fla {
import flash.display.*;
public dynamic class level2_lucy_8_tailor_500 extends MovieClip {
public var marker:MovieClip;
public function level2_lucy_8_tailor_500(){
super();
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 98
//level2_sam_1_2_515 (Stone_fla.level2_sam_1_2_515)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_1_2_515 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_1_2_515(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 99
//level2_sam_12_13b_526 (Stone_fla.level2_sam_12_13b_526)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_12_13b_526 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_12_13b_526(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 100
//level2_sam_13b_14_527 (Stone_fla.level2_sam_13b_14_527)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_13b_14_527 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_13b_14_527(){
super();
addFrameScript(0, frame1, 83, frame84);
}
function frame84(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 101
//level2_sam_13b_16b_532 (Stone_fla.level2_sam_13b_16b_532)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_13b_16b_532 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_13b_16b_532(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 102
//level2_sam_14_16b_528 (Stone_fla.level2_sam_14_16b_528)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_14_16b_528 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_14_16b_528(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 103
//level2_sam_16b_peesBridge_533 (Stone_fla.level2_sam_16b_peesBridge_533)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_16b_peesBridge_533 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_16b_peesBridge_533(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 104
//level2_sam_2_3_539 (Stone_fla.level2_sam_2_3_539)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_2_3_539 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_2_3_539(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 105
//level2_sam_4_5_517 (Stone_fla.level2_sam_4_5_517)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_4_5_517 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_4_5_517(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 106
//level2_sam_5_6_518 (Stone_fla.level2_sam_5_6_518)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_5_6_518 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_5_6_518(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 107
//level2_sam_5_7_519 (Stone_fla.level2_sam_5_7_519)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_5_7_519 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_5_7_519(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 108
//level2_sam_6_7_521 (Stone_fla.level2_sam_6_7_521)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_6_7_521 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_6_7_521(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 109
//level2_sam_9_12_525 (Stone_fla.level2_sam_9_12_525)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_9_12_525 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_9_12_525(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 110
//level2_sam_9_9a_522 (Stone_fla.level2_sam_9_9a_522)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_9_9a_522 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_9_9a_522(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 111
//level2_sam_9_9b_523 (Stone_fla.level2_sam_9_9b_523)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_9_9b_523 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_9_9b_523(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 112
//level2_sam_9_9c_524 (Stone_fla.level2_sam_9_9c_524)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_9_9c_524 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_9_9c_524(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 113
//level2_sam_kids_8_531 (Stone_fla.level2_sam_kids_8_531)
package Stone_fla {
import flash.display.*;
public dynamic class level2_sam_kids_8_531 extends MovieClip {
public var marker:MovieClip;
public function level2_sam_kids_8_531(){
super();
addFrameScript(0, frame1, 42, frame43);
}
function frame1(){
stop();
}
function frame43(){
stop();
}
}
}//package Stone_fla
Section 114
//level2_samNfamily_12_13a_501 (Stone_fla.level2_samNfamily_12_13a_501)
package Stone_fla {
import flash.display.*;
public dynamic class level2_samNfamily_12_13a_501 extends MovieClip {
public function level2_samNfamily_12_13a_501(){
super();
addFrameScript(0, frame1, 47, frame48);
}
function frame1(){
stop();
}
function frame48(){
stop();
}
}
}//package Stone_fla
Section 115
//level2_samNfamily_13a_16b_510 (Stone_fla.level2_samNfamily_13a_16b_510)
package Stone_fla {
import flash.display.*;
public dynamic class level2_samNfamily_13a_16b_510 extends MovieClip {
public function level2_samNfamily_13a_16b_510(){
super();
addFrameScript(0, frame1, 77, frame78);
}
function frame78(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 116
//level2_samNfamily_16b_17_529 (Stone_fla.level2_samNfamily_16b_17_529)
package Stone_fla {
import flash.display.*;
public dynamic class level2_samNfamily_16b_17_529 extends MovieClip {
public var marker:MovieClip;
public function level2_samNfamily_16b_17_529(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 117
//level2_samNfamily_8_9_530 (Stone_fla.level2_samNfamily_8_9_530)
package Stone_fla {
import flash.display.*;
public dynamic class level2_samNfamily_8_9_530 extends MovieClip {
public var marker:MovieClip;
public function level2_samNfamily_8_9_530(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 118
//level2_stalactites_467 (Stone_fla.level2_stalactites_467)
package Stone_fla {
import flash.display.*;
public dynamic class level2_stalactites_467 extends MovieClip {
public function level2_stalactites_467(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 119
//level2_twins_10_11_536 (Stone_fla.level2_twins_10_11_536)
package Stone_fla {
import flash.display.*;
public dynamic class level2_twins_10_11_536 extends MovieClip {
public function level2_twins_10_11_536(){
super();
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 120
//level2_yeti_13_16a_479 (Stone_fla.level2_yeti_13_16a_479)
package Stone_fla {
import flash.display.*;
public dynamic class level2_yeti_13_16a_479 extends MovieClip {
public function level2_yeti_13_16a_479(){
super();
addFrameScript(0, frame1, 328, frame329, 351, frame352, 352, frame353);
}
function frame329(){
stop();
}
function frame1(){
stop();
}
function frame352(){
stop();
}
function frame353(){
stop();
}
}
}//package Stone_fla
Section 121
//level2_yeti_9a_13b_476 (Stone_fla.level2_yeti_9a_13b_476)
package Stone_fla {
import flash.display.*;
public dynamic class level2_yeti_9a_13b_476 extends MovieClip {
public function level2_yeti_9a_13b_476(){
super();
addFrameScript(0, frame1, 310, frame311, 346, frame347, 398, frame399);
}
function frame311(){
stop();
}
function frame399(){
stop();
}
function frame347(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 122
//level2_yeti_9a_9copy_462 (Stone_fla.level2_yeti_9a_9copy_462)
package Stone_fla {
import flash.display.*;
public dynamic class level2_yeti_9a_9copy_462 extends MovieClip {
public function level2_yeti_9a_9copy_462(){
super();
addFrameScript(42, frame43, 69, frame70);
}
function frame70(){
stop();
}
function frame43(){
stop();
}
}
}//package Stone_fla
Section 123
//level2_yeti_9b_9copy_460 (Stone_fla.level2_yeti_9b_9copy_460)
package Stone_fla {
import flash.display.*;
public dynamic class level2_yeti_9b_9copy_460 extends MovieClip {
public function level2_yeti_9b_9copy_460(){
super();
addFrameScript(42, frame43, 69, frame70);
}
function frame70(){
stop();
}
function frame43(){
stop();
}
}
}//package Stone_fla
Section 124
//level2_yeti_9b_9copy2_463 (Stone_fla.level2_yeti_9b_9copy2_463)
package Stone_fla {
import flash.display.*;
public dynamic class level2_yeti_9b_9copy2_463 extends MovieClip {
public function level2_yeti_9b_9copy2_463(){
super();
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
}
}//package Stone_fla
Section 125
//level2_yeti_9c_9_461 (Stone_fla.level2_yeti_9c_9_461)
package Stone_fla {
import flash.display.*;
public dynamic class level2_yeti_9c_9_461 extends MovieClip {
public function level2_yeti_9c_9_461(){
super();
addFrameScript(43, frame44, 70, frame71);
}
function frame71(){
stop();
}
function frame44(){
stop();
}
}
}//package Stone_fla
Section 126
//level2_yeti_throwssam_464 (Stone_fla.level2_yeti_throwssam_464)
package Stone_fla {
import flash.display.*;
public dynamic class level2_yeti_throwssam_464 extends MovieClip {
public function level2_yeti_throwssam_464(){
super();
addFrameScript(0, frame1, 69, frame70);
}
function frame70(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 127
//level2samthrowstone_478 (Stone_fla.level2samthrowstone_478)
package Stone_fla {
import flash.display.*;
public dynamic class level2samthrowstone_478 extends MovieClip {
public var marker:MovieClip;
public function level2samthrowstone_478(){
super();
addFrameScript(0, frame1, 27, frame28);
}
function frame1(){
stop();
}
function frame28(){
stop();
}
}
}//package Stone_fla
Section 128
//level3_familiy_boardsSled_417 (Stone_fla.level3_familiy_boardsSled_417)
package Stone_fla {
import flash.display.*;
public dynamic class level3_familiy_boardsSled_417 extends MovieClip {
public function level3_familiy_boardsSled_417(){
super();
addFrameScript(0, frame1, 267, frame268);
}
function frame1(){
stop();
}
function frame268(){
stop();
}
}
}//package Stone_fla
Section 129
//level3_familiysled_10a_16_423 (Stone_fla.level3_familiysled_10a_16_423)
package Stone_fla {
import flash.display.*;
public dynamic class level3_familiysled_10a_16_423 extends MovieClip {
public function level3_familiysled_10a_16_423(){
super();
addFrameScript(0, frame1, 233, frame234);
}
function frame1(){
stop();
}
function frame234(){
stop();
}
}
}//package Stone_fla
Section 130
//level3_family_10_makeSled_414 (Stone_fla.level3_family_10_makeSled_414)
package Stone_fla {
import flash.display.*;
public dynamic class level3_family_10_makeSled_414 extends MovieClip {
public var marker:MovieClip;
public function level3_family_10_makeSled_414(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 131
//level3_family_6_10_402 (Stone_fla.level3_family_6_10_402)
package Stone_fla {
import flash.display.*;
public dynamic class level3_family_6_10_402 extends MovieClip {
public function level3_family_6_10_402(){
super();
addFrameScript(0, frame1, 45, frame46);
}
function frame1(){
stop();
}
function frame46(){
stop();
}
}
}//package Stone_fla
Section 132
//level3_family_sam_5_6_380 (Stone_fla.level3_family_sam_5_6_380)
package Stone_fla {
import flash.display.*;
public dynamic class level3_family_sam_5_6_380 extends MovieClip {
public var marker:MovieClip;
public function level3_family_sam_5_6_380(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 133
//level3_sam_0_1_372 (Stone_fla.level3_sam_0_1_372)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_0_1_372 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_0_1_372(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 134
//level3_sam_1_2_376 (Stone_fla.level3_sam_1_2_376)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_1_2_376 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_1_2_376(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 135
//level3_sam_1_374 (Stone_fla.level3_sam_1_374)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_1_374 extends MovieClip {
public function level3_sam_1_374(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 136
//level3_sam_10_6_403 (Stone_fla.level3_sam_10_6_403)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_10_6_403 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_10_6_403(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 137
//level3_sam_10_7_404 (Stone_fla.level3_sam_10_7_404)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_10_7_404 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_10_7_404(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 138
//level3_sam_10_8_405 (Stone_fla.level3_sam_10_8_405)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_10_8_405 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_10_8_405(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 139
//level3_sam_10_9_406 (Stone_fla.level3_sam_10_9_406)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_10_9_406 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_10_9_406(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 140
//level3_sam_11a_13_422 (Stone_fla.level3_sam_11a_13_422)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_11a_13_422 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_11a_13_422(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 141
//level3_sam_11a_6_421 (Stone_fla.level3_sam_11a_6_421)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_11a_6_421 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_11a_6_421(){
super();
addFrameScript(0, frame1, 74, frame75);
}
function frame75(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 142
//level3_sam_2_0_375 (Stone_fla.level3_sam_2_0_375)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_2_0_375 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_2_0_375(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 143
//level3_sam_6_10_389 (Stone_fla.level3_sam_6_10_389)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_6_10_389 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_6_10_389(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 144
//level3_sam_6_7_386 (Stone_fla.level3_sam_6_7_386)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_6_7_386 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_6_7_386(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 145
//level3_sam_6_8_387 (Stone_fla.level3_sam_6_8_387)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_6_8_387 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_6_8_387(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 146
//level3_sam_6_9_388 (Stone_fla.level3_sam_6_9_388)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_6_9_388 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_6_9_388(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 147
//level3_sam_7_10_393 (Stone_fla.level3_sam_7_10_393)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_7_10_393 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_7_10_393(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 148
//level3_sam_7_10_tusks_409 (Stone_fla.level3_sam_7_10_tusks_409)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_7_10_tusks_409 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_7_10_tusks_409(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 149
//level3_sam_7_6_390 (Stone_fla.level3_sam_7_6_390)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_7_6_390 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_7_6_390(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 150
//level3_sam_7_8_391 (Stone_fla.level3_sam_7_8_391)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_7_8_391 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_7_8_391(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 151
//level3_sam_7_9_392 (Stone_fla.level3_sam_7_9_392)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_7_9_392 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_7_9_392(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 152
//level3_sam_8_10_397 (Stone_fla.level3_sam_8_10_397)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_8_10_397 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_8_10_397(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 153
//level3_sam_8_10_ribs_412 (Stone_fla.level3_sam_8_10_ribs_412)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_8_10_ribs_412 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_8_10_ribs_412(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 154
//level3_sam_8_6_394 (Stone_fla.level3_sam_8_6_394)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_8_6_394 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_8_6_394(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 155
//level3_sam_8_7_395 (Stone_fla.level3_sam_8_7_395)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_8_7_395 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_8_7_395(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 156
//level3_sam_8_9_396 (Stone_fla.level3_sam_8_9_396)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_8_9_396 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_8_9_396(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 157
//level3_sam_9_10_401 (Stone_fla.level3_sam_9_10_401)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_9_10_401 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_9_10_401(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 158
//level3_sam_9_10_Hide_407 (Stone_fla.level3_sam_9_10_Hide_407)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_9_10_Hide_407 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_9_10_Hide_407(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 159
//level3_sam_9_6_398 (Stone_fla.level3_sam_9_6_398)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_9_6_398 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_9_6_398(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 160
//level3_sam_9_7_399 (Stone_fla.level3_sam_9_7_399)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_9_7_399 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_9_7_399(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 161
//level3_sam_9_8_400 (Stone_fla.level3_sam_9_8_400)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam_9_8_400 extends MovieClip {
public var marker:MovieClip;
public function level3_sam_9_8_400(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 162
//level3_sam15_sbLand_425 (Stone_fla.level3_sam15_sbLand_425)
package Stone_fla {
import flash.display.*;
public dynamic class level3_sam15_sbLand_425 extends MovieClip {
public var marker:MovieClip;
public function level3_sam15_sbLand_425(){
super();
addFrameScript(0, frame1, 67, frame68);
}
function frame1(){
stop();
}
function frame68(){
stop();
}
}
}//package Stone_fla
Section 163
//level3_samboard_13_6_424 (Stone_fla.level3_samboard_13_6_424)
package Stone_fla {
import flash.display.*;
public dynamic class level3_samboard_13_6_424 extends MovieClip {
public var marker:MovieClip;
public function level3_samboard_13_6_424(){
super();
addFrameScript(0, frame1, 98, frame99);
}
function frame1(){
stop();
}
function frame99(){
stop();
}
}
}//package Stone_fla
Section 164
//level3_samboard_6_15_428 (Stone_fla.level3_samboard_6_15_428)
package Stone_fla {
import flash.display.*;
public dynamic class level3_samboard_6_15_428 extends MovieClip {
public function level3_samboard_6_15_428(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 165
//level3_samfamily_0_433 (Stone_fla.level3_samfamily_0_433)
package Stone_fla {
import flash.display.*;
public dynamic class level3_samfamily_0_433 extends MovieClip {
public function level3_samfamily_0_433(){
super();
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package Stone_fla
Section 166
//level3_samSled_10_11a_415 (Stone_fla.level3_samSled_10_11a_415)
package Stone_fla {
import flash.display.*;
public dynamic class level3_samSled_10_11a_415 extends MovieClip {
public var marker:MovieClip;
public function level3_samSled_10_11a_415(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 167
//level3_samSled_10_11b_416 (Stone_fla.level3_samSled_10_11b_416)
package Stone_fla {
import flash.display.*;
public dynamic class level3_samSled_10_11b_416 extends MovieClip {
public var marker:MovieClip;
public function level3_samSled_10_11b_416(){
super();
addFrameScript(0, frame1, 103, frame104);
}
function frame1(){
stop();
}
function frame104(){
stop();
}
}
}//package Stone_fla
Section 168
//level3_yeti_12_11a_418 (Stone_fla.level3_yeti_12_11a_418)
package Stone_fla {
import flash.display.*;
public dynamic class level3_yeti_12_11a_418 extends MovieClip {
public function level3_yeti_12_11a_418(){
super();
addFrameScript(0, frame1, 267, frame268);
}
function frame1(){
stop();
}
function frame268(){
stop();
}
}
}//package Stone_fla
Section 169
//LEVEL3SAM_4_5_377 (Stone_fla.LEVEL3SAM_4_5_377)
package Stone_fla {
import flash.display.*;
public dynamic class LEVEL3SAM_4_5_377 extends MovieClip {
public var marker:MovieClip;
public function LEVEL3SAM_4_5_377(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 170
//level3yetikill1_426 (Stone_fla.level3yetikill1_426)
package Stone_fla {
import flash.display.*;
public dynamic class level3yetikill1_426 extends MovieClip {
public var marker:MovieClip;
public function level3yetikill1_426(){
super();
addFrameScript(0, frame1, 41, frame42);
}
function frame1(){
stop();
}
function frame42(){
stop();
}
}
}//package Stone_fla
Section 171
//level3yetikill2_427 (Stone_fla.level3yetikill2_427)
package Stone_fla {
import flash.display.*;
public dynamic class level3yetikill2_427 extends MovieClip {
public var marker:MovieClip;
public function level3yetikill2_427(){
super();
addFrameScript(0, frame1, 41, frame42);
}
function frame1(){
stop();
}
function frame42(){
stop();
}
}
}//package Stone_fla
Section 172
//level4_3guards_0_1_284 (Stone_fla.level4_3guards_0_1_284)
package Stone_fla {
import flash.display.*;
public dynamic class level4_3guards_0_1_284 extends MovieClip {
public var marker:MovieClip;
public function level4_3guards_0_1_284(){
super();
addFrameScript(114, frame115);
}
function frame115(){
stop();
}
}
}//package Stone_fla
Section 173
//level4_croFabio_1_2_289 (Stone_fla.level4_croFabio_1_2_289)
package Stone_fla {
import flash.display.*;
public dynamic class level4_croFabio_1_2_289 extends MovieClip {
public function level4_croFabio_1_2_289(){
super();
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package Stone_fla
Section 174
//level4_croFabio_15_angry_348 (Stone_fla.level4_croFabio_15_angry_348)
package Stone_fla {
import flash.display.*;
public dynamic class level4_croFabio_15_angry_348 extends MovieClip {
public function level4_croFabio_15_angry_348(){
super();
addFrameScript(13, frame14);
}
function frame14(){
gotoAndPlay(5);
}
}
}//package Stone_fla
Section 175
//level4_croFabio_2_points_293 (Stone_fla.level4_croFabio_2_points_293)
package Stone_fla {
import flash.display.*;
public dynamic class level4_croFabio_2_points_293 extends MovieClip {
public function level4_croFabio_2_points_293(){
super();
addFrameScript(0, frame1, 48, frame49);
}
function frame1(){
stop();
}
function frame49(){
stop();
}
}
}//package Stone_fla
Section 176
//level4_croFabio_stand_291 (Stone_fla.level4_croFabio_stand_291)
package Stone_fla {
import flash.display.*;
public dynamic class level4_croFabio_stand_291 extends MovieClip {
public function level4_croFabio_stand_291(){
super();
addFrameScript(37, frame38);
}
function frame38(){
stop();
}
}
}//package Stone_fla
Section 177
//level4_discus_11_13v_345 (Stone_fla.level4_discus_11_13v_345)
package Stone_fla {
import flash.display.*;
public dynamic class level4_discus_11_13v_345 extends MovieClip {
public function level4_discus_11_13v_345(){
super();
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Stone_fla
Section 178
//level4_discus_11_13x_344 (Stone_fla.level4_discus_11_13x_344)
package Stone_fla {
import flash.display.*;
public dynamic class level4_discus_11_13x_344 extends MovieClip {
public function level4_discus_11_13x_344(){
super();
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package Stone_fla
Section 179
//level4_discus_11_14_343 (Stone_fla.level4_discus_11_14_343)
package Stone_fla {
import flash.display.*;
public dynamic class level4_discus_11_14_343 extends MovieClip {
public function level4_discus_11_14_343(){
super();
addFrameScript(0, frame1, 69, frame70);
}
function frame70(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 180
//level4_lucyGirl_1_286 (Stone_fla.level4_lucyGirl_1_286)
package Stone_fla {
import flash.display.*;
public dynamic class level4_lucyGirl_1_286 extends MovieClip {
public function level4_lucyGirl_1_286(){
super();
addFrameScript(58, frame59);
}
function frame59(){
stop();
}
}
}//package Stone_fla
Section 181
//level4_mammothRight_6_eatRedMarula_295 (Stone_fla.level4_mammothRight_6_eatRedMarula_295)
package Stone_fla {
import flash.display.*;
public dynamic class level4_mammothRight_6_eatRedMarula_295 extends MovieClip {
public var marker:MovieClip;
public function level4_mammothRight_6_eatRedMarula_295(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 182
//level4_rock_11_13u_350 (Stone_fla.level4_rock_11_13u_350)
package Stone_fla {
import flash.display.*;
public dynamic class level4_rock_11_13u_350 extends MovieClip {
public function level4_rock_11_13u_350(){
super();
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package Stone_fla
Section 183
//level4_rock_11_13v_351 (Stone_fla.level4_rock_11_13v_351)
package Stone_fla {
import flash.display.*;
public dynamic class level4_rock_11_13v_351 extends MovieClip {
public function level4_rock_11_13v_351(){
super();
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package Stone_fla
Section 184
//level4_sam_10a_11_337 (Stone_fla.level4_sam_10a_11_337)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_10a_11_337 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_10a_11_337(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 185
//level4_sam_10b_11_339 (Stone_fla.level4_sam_10b_11_339)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_10b_11_339 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_10b_11_339(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 186
//level4_sam_10c_11_340 (Stone_fla.level4_sam_10c_11_340)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_10c_11_340 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_10c_11_340(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 187
//level4_sam_11_15_341 (Stone_fla.level4_sam_11_15_341)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_11_15_341 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_11_15_341(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 188
//level4_sam_11_throwsRock_276 (Stone_fla.level4_sam_11_throwsRock_276)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_11_throwsRock_276 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_11_throwsRock_276(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 189
//level4_sam_11_throwsSpear_277 (Stone_fla.level4_sam_11_throwsSpear_277)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_11_throwsSpear_277 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_11_throwsSpear_277(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 190
//level4_sam_15_10a_352 (Stone_fla.level4_sam_15_10a_352)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_15_10a_352 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_15_10a_352(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 191
//level4_sam_15_10b_326 (Stone_fla.level4_sam_15_10b_326)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_15_10b_326 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_15_10b_326(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 192
//level4_sam_15_10c_353 (Stone_fla.level4_sam_15_10c_353)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_15_10c_353 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_15_10c_353(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 193
//level4_sam_2_takesBroom_301 (Stone_fla.level4_sam_2_takesBroom_301)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_2_takesBroom_301 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_2_takesBroom_301(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 194
//level4_sam_3a_6_308 (Stone_fla.level4_sam_3a_6_308)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_3a_6_308 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_3a_6_308(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 195
//level4_sam_4_316 (Stone_fla.level4_sam_4_316)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_4_316 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_4_316(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 196
//level4_sam_4_5_311 (Stone_fla.level4_sam_4_5_311)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_4_5_311 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_4_5_311(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 197
//level4_sam_4_6_312 (Stone_fla.level4_sam_4_6_312)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_4_6_312 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_4_6_312(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 198
//level4_sam_4_7_325 (Stone_fla.level4_sam_4_7_325)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_4_7_325 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_4_7_325(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 199
//level4_sam_4_skelHead_315 (Stone_fla.level4_sam_4_skelHead_315)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_4_skelHead_315 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_4_skelHead_315(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 200
//level4_sam_5_6_318 (Stone_fla.level4_sam_5_6_318)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_5_6_318 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_5_6_318(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 201
//level4_sam_5_pickupRedMarula_317 (Stone_fla.level4_sam_5_pickupRedMarula_317)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_5_pickupRedMarula_317 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_5_pickupRedMarula_317(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 202
//level4_sam_5a_310 (Stone_fla.level4_sam_5a_310)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_5a_310 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_5a_310(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 203
//level4_sam_6_4_313 (Stone_fla.level4_sam_6_4_313)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_6_4_313 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_6_4_313(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 204
//level4_sam_6_5_314 (Stone_fla.level4_sam_6_5_314)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_6_5_314 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_6_5_314(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 205
//level4_sam_6_7_319 (Stone_fla.level4_sam_6_7_319)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_6_7_319 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_6_7_319(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 206
//level4_sam_7_4_324 (Stone_fla.level4_sam_7_4_324)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_7_4_324 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_7_4_324(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 207
//level4_sam_7b_8a_327 (Stone_fla.level4_sam_7b_8a_327)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_7b_8a_327 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_7b_8a_327(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 208
//level4_sam_7b_8b_328 (Stone_fla.level4_sam_7b_8b_328)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_7b_8b_328 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_7b_8b_328(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 209
//level4_sam_7b_8c_329 (Stone_fla.level4_sam_7b_8c_329)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_7b_8c_329 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_7b_8c_329(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 210
//level4_sam_8a_8b_330 (Stone_fla.level4_sam_8a_8b_330)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_8a_8b_330 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_8a_8b_330(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 211
//level4_sam_8b_10a_332 (Stone_fla.level4_sam_8b_10a_332)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_8b_10a_332 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_8b_10a_332(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 212
//level4_sam_8b_10c_333 (Stone_fla.level4_sam_8b_10c_333)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_8b_10c_333 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_8b_10c_333(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 213
//level4_sam_8b_9_331 (Stone_fla.level4_sam_8b_9_331)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_8b_9_331 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_8b_9_331(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 214
//level4_sam_8c_8a_334 (Stone_fla.level4_sam_8c_8a_334)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_8c_8a_334 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_8c_8a_334(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 215
//level4_sam_8c_8b_335 (Stone_fla.level4_sam_8c_8b_335)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_8c_8b_335 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_8c_8b_335(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 216
//level4_sam_8c_8d_336 (Stone_fla.level4_sam_8c_8d_336)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam_8c_8d_336 extends MovieClip {
public var marker:MovieClip;
public function level4_sam_8c_8d_336(){
super();
addFrameScript(0, frame1, 62, frame63);
}
function frame1(){
stop();
}
function frame63(){
stop();
}
}
}//package Stone_fla
Section 217
//level4_sam11_throwDiscus_274 (Stone_fla.level4_sam11_throwDiscus_274)
package Stone_fla {
import flash.display.*;
public dynamic class level4_sam11_throwDiscus_274 extends MovieClip {
public var marker:MovieClip;
public function level4_sam11_throwDiscus_274(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 218
//level4_spear_11_13_w_281 (Stone_fla.level4_spear_11_13_w_281)
package Stone_fla {
import flash.display.*;
public dynamic class level4_spear_11_13_w_281 extends MovieClip {
public function level4_spear_11_13_w_281(){
super();
addFrameScript(36, frame37);
}
function frame37(){
stop();
}
}
}//package Stone_fla
Section 219
//level4_spear_11_13_x_278 (Stone_fla.level4_spear_11_13_x_278)
package Stone_fla {
import flash.display.*;
public dynamic class level4_spear_11_13_x_278 extends MovieClip {
public function level4_spear_11_13_x_278(){
super();
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Stone_fla
Section 220
//level4_spear_11_13_y_279 (Stone_fla.level4_spear_11_13_y_279)
package Stone_fla {
import flash.display.*;
public dynamic class level4_spear_11_13_y_279 extends MovieClip {
public function level4_spear_11_13_y_279(){
super();
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package Stone_fla
Section 221
//level4_spear_11_13_z_280 (Stone_fla.level4_spear_11_13_z_280)
package Stone_fla {
import flash.display.*;
public dynamic class level4_spear_11_13_z_280 extends MovieClip {
public function level4_spear_11_13_z_280(){
super();
addFrameScript(33, frame34);
}
function frame34(){
stop();
}
}
}//package Stone_fla
Section 222
//level4_twins_1_290 (Stone_fla.level4_twins_1_290)
package Stone_fla {
import flash.display.*;
public dynamic class level4_twins_1_290 extends MovieClip {
public function level4_twins_1_290(){
super();
addFrameScript(94, frame95);
}
function frame95(){
stop();
}
}
}//package Stone_fla
Section 223
//level4mammoth_mc_296 (Stone_fla.level4mammoth_mc_296)
package Stone_fla {
import flash.display.*;
public dynamic class level4mammoth_mc_296 extends MovieClip {
public function level4mammoth_mc_296(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 224
//level4sdam_7_7b_320 (Stone_fla.level4sdam_7_7b_320)
package Stone_fla {
import flash.display.*;
public dynamic class level4sdam_7_7b_320 extends MovieClip {
public var marker:MovieClip;
public function level4sdam_7_7b_320(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 225
//level4sdam_8c_7b_322 (Stone_fla.level4sdam_8c_7b_322)
package Stone_fla {
import flash.display.*;
public dynamic class level4sdam_8c_7b_322 extends MovieClip {
public var marker:MovieClip;
public function level4sdam_8c_7b_322(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 226
//level5_14_spearsmammothButt_240 (Stone_fla.level5_14_spearsmammothButt_240)
package Stone_fla {
import flash.display.*;
public dynamic class level5_14_spearsmammothButt_240 extends MovieClip {
public var marker:MovieClip;
public function level5_14_spearsmammothButt_240(){
super();
addFrameScript(0, frame1, 122, frame123);
}
function frame1(){
stop();
}
function frame123(){
stop();
}
}
}//package Stone_fla
Section 227
//level5_g1_22_hairExplodecopy_177 (Stone_fla.level5_g1_22_hairExplodecopy_177)
package Stone_fla {
import flash.display.*;
public dynamic class level5_g1_22_hairExplodecopy_177 extends MovieClip {
public function level5_g1_22_hairExplodecopy_177(){
super();
addFrameScript(0, frame1, 33, frame34);
}
function frame1(){
stop();
}
function frame34(){
stop();
}
}
}//package Stone_fla
Section 228
//Level5_mammoth_223 (Stone_fla.Level5_mammoth_223)
package Stone_fla {
import flash.display.*;
public dynamic class Level5_mammoth_223 extends MovieClip {
public function Level5_mammoth_223(){
super();
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
stop();
}
function frame45(){
stop();
}
}
}//package Stone_fla
Section 229
//level5_mammoth_6_17c_213 (Stone_fla.level5_mammoth_6_17c_213)
package Stone_fla {
import flash.display.*;
public dynamic class level5_mammoth_6_17c_213 extends MovieClip {
public function level5_mammoth_6_17c_213(){
super();
addFrameScript(0, frame1, 187, frame188);
}
function frame1(){
stop();
}
function frame188(){
stop();
}
}
}//package Stone_fla
Section 230
//level5_mammoth_6_7_255 (Stone_fla.level5_mammoth_6_7_255)
package Stone_fla {
import flash.display.*;
public dynamic class level5_mammoth_6_7_255 extends MovieClip {
public function level5_mammoth_6_7_255(){
super();
addFrameScript(0, frame1, 92, frame93);
}
function frame93(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 231
//level5_mammoth_7_8_218 (Stone_fla.level5_mammoth_7_8_218)
package Stone_fla {
import flash.display.*;
public dynamic class level5_mammoth_7_8_218 extends MovieClip {
public function level5_mammoth_7_8_218(){
super();
addFrameScript(0, frame1, 209, frame210);
}
function frame210(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 232
//level5_mammoth_fallsdownDrunk_224 (Stone_fla.level5_mammoth_fallsdownDrunk_224)
package Stone_fla {
import flash.display.*;
public dynamic class level5_mammoth_fallsdownDrunk_224 extends MovieClip {
public function level5_mammoth_fallsdownDrunk_224(){
super();
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package Stone_fla
Section 233
//level5_mammoth_getsUp_222 (Stone_fla.level5_mammoth_getsUp_222)
package Stone_fla {
import flash.display.*;
public dynamic class level5_mammoth_getsUp_222 extends MovieClip {
public function level5_mammoth_getsUp_222(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 234
//level5_sam_0_1_168 (Stone_fla.level5_sam_0_1_168)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_0_1_168 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_0_1_168(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 235
//level5_sam_1_1_169 (Stone_fla.level5_sam_1_1_169)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_1_1_169 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_1_1_169(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 236
//level5_sam_1_17b_243 (Stone_fla.level5_sam_1_17b_243)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_1_17b_243 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_1_17b_243(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 237
//level5_sam_1_4_198 (Stone_fla.level5_sam_1_4_198)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_1_4_198 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_1_4_198(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 238
//level5_sam_1_5_195 (Stone_fla.level5_sam_1_5_195)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_1_5_195 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_1_5_195(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 239
//level5_sam_1_6_197 (Stone_fla.level5_sam_1_6_197)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_1_6_197 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_1_6_197(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 240
//level5_sam_10_13_235 (Stone_fla.level5_sam_10_13_235)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_10_13_235 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_10_13_235(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 241
//level5_sam_11_8_232 (Stone_fla.level5_sam_11_8_232)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_11_8_232 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_11_8_232(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 242
//level5_sam_11_9_257 (Stone_fla.level5_sam_11_9_257)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_11_9_257 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_11_9_257(){
super();
addFrameScript(0, frame1, 282, frame283);
}
function frame283(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 243
//level5_sam_12b_9_256 (Stone_fla.level5_sam_12b_9_256)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_12b_9_256 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_12b_9_256(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 244
//level5_sam_13_12b_236 (Stone_fla.level5_sam_13_12b_236)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_13_12b_236 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_13_12b_236(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 245
//level5_sam_15_14_239 (Stone_fla.level5_sam_15_14_239)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_15_14_239 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_15_14_239(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 246
//level5_sam_17a_17c_244 (Stone_fla.level5_sam_17a_17c_244)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_17a_17c_244 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_17a_17c_244(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 247
//level5_sam_17b_22_250 (Stone_fla.level5_sam_17b_22_250)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_17b_22_250 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_17b_22_250(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 248
//level5_sam_17c_21_245 (Stone_fla.level5_sam_17c_21_245)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_17c_21_245 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_17c_21_245(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 249
//level5_sam_17d_17a_247 (Stone_fla.level5_sam_17d_17a_247)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_17d_17a_247 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_17d_17a_247(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 250
//level5_sam_18_11_253 (Stone_fla.level5_sam_18_11_253)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_18_11_253 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_18_11_253(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 251
//level5_sam_19_9_254 (Stone_fla.level5_sam_19_9_254)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_19_9_254 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_19_9_254(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 252
//level5_sam_21_18_248 (Stone_fla.level5_sam_21_18_248)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_21_18_248 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_21_18_248(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 253
//level5_sam_22_17d_251 (Stone_fla.level5_sam_22_17d_251)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_22_17d_251 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_22_17d_251(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 254
//level5_sam_22_pullsNeedle_252 (Stone_fla.level5_sam_22_pullsNeedle_252)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_22_pullsNeedle_252 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_22_pullsNeedle_252(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 255
//level5_sam_4_4a_199 (Stone_fla.level5_sam_4_4a_199)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_4_4a_199 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_4_4a_199(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 256
//level5_sam_4_5_212 (Stone_fla.level5_sam_4_5_212)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_4_5_212 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_4_5_212(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 257
//level5_sam_4_6_206 (Stone_fla.level5_sam_4_6_206)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_4_6_206 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_4_6_206(){
super();
addFrameScript(0, frame1, 45, frame46);
}
function frame1(){
stop();
}
function frame46(){
stop();
}
}
}//package Stone_fla
Section 258
//level5_sam_4a_6_204 (Stone_fla.level5_sam_4a_6_204)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_4a_6_204 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_4a_6_204(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 259
//level5_sam_4a_7_214 (Stone_fla.level5_sam_4a_7_214)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_4a_7_214 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_4a_7_214(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 260
//level5_sam_5_4_210 (Stone_fla.level5_sam_5_4_210)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_5_4_210 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_5_4_210(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 261
//level5_sam_5_5a_201 (Stone_fla.level5_sam_5_5a_201)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_5_5a_201 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_5_5a_201(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 262
//level5_sam_5_6_205 (Stone_fla.level5_sam_5_6_205)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_5_6_205 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_5_6_205(){
super();
addFrameScript(0, frame1, 67, frame68);
}
function frame1(){
stop();
}
function frame68(){
stop();
}
}
}//package Stone_fla
Section 263
//level5_sam_5_7_211 (Stone_fla.level5_sam_5_7_211)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_5_7_211 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_5_7_211(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 264
//level5_sam_5_shakeTree_196 (Stone_fla.level5_sam_5_shakeTree_196)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_5_shakeTree_196 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_5_shakeTree_196(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 265
//level5_sam_5a_6_202 (Stone_fla.level5_sam_5a_6_202)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_5a_6_202 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_5a_6_202(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 266
//level5_sam_5a_7_203 (Stone_fla.level5_sam_5a_7_203)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_5a_7_203 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_5a_7_203(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 267
//level5_sam_6_4_209 (Stone_fla.level5_sam_6_4_209)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_6_4_209 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_6_4_209(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 268
//level5_sam_6_5_208 (Stone_fla.level5_sam_6_5_208)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_6_5_208 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_6_5_208(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 269
//level5_sam_7_4a_216 (Stone_fla.level5_sam_7_4a_216)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_7_4a_216 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_7_4a_216(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 270
//level5_sam_7_5_215 (Stone_fla.level5_sam_7_5_215)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_7_5_215 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_7_5_215(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 271
//level5_sam_7_5a_217 (Stone_fla.level5_sam_7_5a_217)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_7_5a_217 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_7_5a_217(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 272
//level5_sam_7_8_220 (Stone_fla.level5_sam_7_8_220)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_7_8_220 extends MovieClip {
public var obelisk:MovieClip;
public var marker:MovieClip;
public function level5_sam_7_8_220(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 273
//level5_sam_8_10_234 (Stone_fla.level5_sam_8_10_234)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_8_10_234 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_8_10_234(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 274
//level5_sam_8_11_231 (Stone_fla.level5_sam_8_11_231)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_8_11_231 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_8_11_231(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 275
//level5_sam_9_15_237 (Stone_fla.level5_sam_9_15_237)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_9_15_237 extends MovieClip {
public var marker:MovieClip;
public var spearGuy:MovieClip;
public function level5_sam_9_15_237(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 276
//level5_sam_kicksMammoth_221 (Stone_fla.level5_sam_kicksMammoth_221)
package Stone_fla {
import flash.display.*;
public dynamic class level5_sam_kicksMammoth_221 extends MovieClip {
public var marker:MovieClip;
public function level5_sam_kicksMammoth_221(){
super();
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package Stone_fla
Section 277
//level5_twins_20_clue_170 (Stone_fla.level5_twins_20_clue_170)
package Stone_fla {
import flash.display.*;
public dynamic class level5_twins_20_clue_170 extends MovieClip {
public function level5_twins_20_clue_170(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 278
//level6_croFabio_2_13_49 (Stone_fla.level6_croFabio_2_13_49)
package Stone_fla {
import flash.display.*;
public dynamic class level6_croFabio_2_13_49 extends MovieClip {
public function level6_croFabio_2_13_49(){
super();
addFrameScript(132, frame133);
}
function frame133(){
stop();
}
}
}//package Stone_fla
Section 279
//level6_crowd_13b_cheers_113 (Stone_fla.level6_crowd_13b_cheers_113)
package Stone_fla {
import flash.display.*;
public dynamic class level6_crowd_13b_cheers_113 extends MovieClip {
public function level6_crowd_13b_cheers_113(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 280
//level6_harem_go_round_36 (Stone_fla.level6_harem_go_round_36)
package Stone_fla {
import flash.display.*;
public dynamic class level6_harem_go_round_36 extends MovieClip {
public var yeti:MovieClip;
public function level6_harem_go_round_36(){
super();
}
}
}//package Stone_fla
Section 281
//level6_harem_start_29 (Stone_fla.level6_harem_start_29)
package Stone_fla {
import flash.display.*;
public dynamic class level6_harem_start_29 extends MovieClip {
public var clip:MovieClip;
public function level6_harem_start_29(){
super();
addFrameScript(280, frame281, 379, frame380, 479, frame480);
}
function frame281(){
stop();
}
function frame480(){
stop();
}
function frame380(){
stop();
}
}
}//package Stone_fla
Section 282
//level6_sam_13_14_57 (Stone_fla.level6_sam_13_14_57)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_13_14_57 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_13_14_57(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 283
//level6_sam_14_12PicksupDung_58 (Stone_fla.level6_sam_14_12PicksupDung_58)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_14_12PicksupDung_58 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_14_12PicksupDung_58(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 284
//level6_sam_14_12ThrowsDung_59 (Stone_fla.level6_sam_14_12ThrowsDung_59)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_14_12ThrowsDung_59 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_14_12ThrowsDung_59(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 285
//level6_sam_14_16_68 (Stone_fla.level6_sam_14_16_68)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_14_16_68 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_14_16_68(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 286
//level6_sam_14_17_69 (Stone_fla.level6_sam_14_17_69)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_14_17_69 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_14_17_69(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 287
//level6_sam_16_17_70 (Stone_fla.level6_sam_16_17_70)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_16_17_70 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_16_17_70(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 288
//level6_sam_16_18_72 (Stone_fla.level6_sam_16_18_72)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_16_18_72 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_16_18_72(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 289
//level6_sam_16_19_81 (Stone_fla.level6_sam_16_19_81)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_16_19_81 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_16_19_81(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 290
//level6_sam_16_throws_17_106 (Stone_fla.level6_sam_16_throws_17_106)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_16_throws_17_106 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_16_throws_17_106(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 291
//level6_sam_16_throws_18_107 (Stone_fla.level6_sam_16_throws_18_107)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_16_throws_18_107 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_16_throws_18_107(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 292
//level6_sam_17_16_71 (Stone_fla.level6_sam_17_16_71)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_17_16_71 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_17_16_71(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 293
//level6_sam_17_18_73 (Stone_fla.level6_sam_17_18_73)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_17_18_73 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_17_18_73(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 294
//level6_sam_17_19_80 (Stone_fla.level6_sam_17_19_80)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_17_19_80 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_17_19_80(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 295
//level6_sam_17_throws_16_104 (Stone_fla.level6_sam_17_throws_16_104)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_17_throws_16_104 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_17_throws_16_104(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 296
//level6_sam_17_throws_18_105 (Stone_fla.level6_sam_17_throws_18_105)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_17_throws_18_105 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_17_throws_18_105(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 297
//level6_sam_18_16_75 (Stone_fla.level6_sam_18_16_75)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_18_16_75 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_18_16_75(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 298
//level6_sam_18_17_74 (Stone_fla.level6_sam_18_17_74)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_18_17_74 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_18_17_74(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 299
//level6_sam_18_19_76 (Stone_fla.level6_sam_18_19_76)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_18_19_76 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_18_19_76(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 300
//level6_sam_18_20_79 (Stone_fla.level6_sam_18_20_79)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_18_20_79 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_18_20_79(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 301
//level6_sam_18_throws_16_108 (Stone_fla.level6_sam_18_throws_16_108)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_18_throws_16_108 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_18_throws_16_108(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 302
//level6_sam_18_throws_17_109 (Stone_fla.level6_sam_18_throws_17_109)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_18_throws_17_109 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_18_throws_17_109(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 303
//level6_sam_19_17_78 (Stone_fla.level6_sam_19_17_78)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_19_17_78 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_19_17_78(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 304
//level6_sam_19_18_77 (Stone_fla.level6_sam_19_18_77)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_19_18_77 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_19_18_77(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 305
//level6_sam_19_18_hitsYeti_21_124 (Stone_fla.level6_sam_19_18_hitsYeti_21_124)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_19_18_hitsYeti_21_124 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_19_18_hitsYeti_21_124(){
super();
addFrameScript(0, frame1, 371, frame372);
}
function frame1(){
stop();
}
function frame372(){
stop();
}
}
}//package Stone_fla
Section 306
//level6_sam_19_18Swings_82 (Stone_fla.level6_sam_19_18Swings_82)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_19_18Swings_82 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_19_18Swings_82(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 307
//level6_sam_19_18SwingsYeti_123 (Stone_fla.level6_sam_19_18SwingsYeti_123)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_19_18SwingsYeti_123 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_19_18SwingsYeti_123(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 308
//level6_sam_2_3_45 (Stone_fla.level6_sam_2_3_45)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_2_3_45 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_2_3_45(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 309
//level6_sam_3_4_47 (Stone_fla.level6_sam_3_4_47)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_3_4_47 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_3_4_47(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 310
//level6_sam_3_6_46 (Stone_fla.level6_sam_3_6_46)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_3_6_46 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_3_6_46(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 311
//level6_sam_6_7_54 (Stone_fla.level6_sam_6_7_54)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_6_7_54 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_6_7_54(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 312
//level6_sam_7_13_55 (Stone_fla.level6_sam_7_13_55)
package Stone_fla {
import flash.display.*;
public dynamic class level6_sam_7_13_55 extends MovieClip {
public var marker:MovieClip;
public function level6_sam_7_13_55(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 313
//level6_shaman_3a_19_48 (Stone_fla.level6_shaman_3a_19_48)
package Stone_fla {
import flash.display.*;
public dynamic class level6_shaman_3a_19_48 extends MovieClip {
public function level6_shaman_3a_19_48(){
super();
addFrameScript(184, frame185);
}
function frame185(){
stop();
}
}
}//package Stone_fla
Section 314
//level6_yetFruitHits_16_112 (Stone_fla.level6_yetFruitHits_16_112)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetFruitHits_16_112 extends MovieClip {
public function level6_yetFruitHits_16_112(){
super();
addFrameScript(0, frame1, 53, frame54);
}
function frame1(){
stop();
}
function frame54(){
stop();
}
}
}//package Stone_fla
Section 315
//level6_yetFruitHits_17_111 (Stone_fla.level6_yetFruitHits_17_111)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetFruitHits_17_111 extends MovieClip {
public function level6_yetFruitHits_17_111(){
super();
addFrameScript(0, frame1, 53, frame54);
}
function frame1(){
stop();
}
function frame54(){
stop();
}
}
}//package Stone_fla
Section 316
//level6_yetFruitHits_18_110 (Stone_fla.level6_yetFruitHits_18_110)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetFruitHits_18_110 extends MovieClip {
public function level6_yetFruitHits_18_110(){
super();
addFrameScript(0, frame1, 53, frame54);
}
function frame1(){
stop();
}
function frame54(){
stop();
}
}
}//package Stone_fla
Section 317
//level6_yeti_0_1_38 (Stone_fla.level6_yeti_0_1_38)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yeti_0_1_38 extends MovieClip {
public var marker:MovieClip;
public var sam:MovieClip;
public function level6_yeti_0_1_38(){
super();
addFrameScript(595, frame596, 655, frame656, 656, frame657, 716, frame717, 717, frame718);
}
function frame717(){
play();
}
function frame718(){
stop();
}
function frame596(){
stop();
}
function frame656(){
play();
}
function frame657(){
stop();
}
}
}//package Stone_fla
Section 318
//level6_yeti_9_blinded_60 (Stone_fla.level6_yeti_9_blinded_60)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yeti_9_blinded_60 extends MovieClip {
public function level6_yeti_9_blinded_60(){
super();
addFrameScript(0, frame1, 168, frame169, 319, frame320);
}
function frame320(){
stop();
}
function frame169(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 319
//level6_yetiDrunk_16_17_89 (Stone_fla.level6_yetiDrunk_16_17_89)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiDrunk_16_17_89 extends MovieClip {
public function level6_yetiDrunk_16_17_89(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 320
//level6_yetiDrunk_16_18_95 (Stone_fla.level6_yetiDrunk_16_18_95)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiDrunk_16_18_95 extends MovieClip {
public function level6_yetiDrunk_16_18_95(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 321
//level6_yetiDrunk_17_16_91 (Stone_fla.level6_yetiDrunk_17_16_91)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiDrunk_17_16_91 extends MovieClip {
public function level6_yetiDrunk_17_16_91(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 322
//level6_yetiDrunk_17_18_92 (Stone_fla.level6_yetiDrunk_17_18_92)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiDrunk_17_18_92 extends MovieClip {
public function level6_yetiDrunk_17_18_92(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 323
//level6_yetiDrunk_18_16_94 (Stone_fla.level6_yetiDrunk_18_16_94)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiDrunk_18_16_94 extends MovieClip {
public function level6_yetiDrunk_18_16_94(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 324
//level6_yetiDrunk_18_17_93 (Stone_fla.level6_yetiDrunk_18_17_93)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiDrunk_18_17_93 extends MovieClip {
public function level6_yetiDrunk_18_17_93(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 325
//level6_yetiSober_16_17_83 (Stone_fla.level6_yetiSober_16_17_83)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiSober_16_17_83 extends MovieClip {
public function level6_yetiSober_16_17_83(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 326
//level6_yetiSober_16_18_85 (Stone_fla.level6_yetiSober_16_18_85)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiSober_16_18_85 extends MovieClip {
public function level6_yetiSober_16_18_85(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 327
//level6_yetiSober_17_16_84 (Stone_fla.level6_yetiSober_17_16_84)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiSober_17_16_84 extends MovieClip {
public function level6_yetiSober_17_16_84(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 328
//level6_yetiSober_17_18_86 (Stone_fla.level6_yetiSober_17_18_86)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiSober_17_18_86 extends MovieClip {
public function level6_yetiSober_17_18_86(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 329
//level6_yetiSober_18_16_88 (Stone_fla.level6_yetiSober_18_16_88)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiSober_18_16_88 extends MovieClip {
public function level6_yetiSober_18_16_88(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 330
//level6_yetiSober_18_17_87 (Stone_fla.level6_yetiSober_18_17_87)
package Stone_fla {
import flash.display.*;
public dynamic class level6_yetiSober_18_17_87 extends MovieClip {
public function level6_yetiSober_18_17_87(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 331
//level6ssampickupfruit_103 (Stone_fla.level6ssampickupfruit_103)
package Stone_fla {
import flash.display.*;
public dynamic class level6ssampickupfruit_103 extends MovieClip {
public var marker:MovieClip;
public function level6ssampickupfruit_103(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 332
//lucyfr_487 (Stone_fla.lucyfr_487)
package Stone_fla {
import flash.display.*;
public dynamic class lucyfr_487 extends MovieClip {
public function lucyfr_487(){
super();
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package Stone_fla
Section 333
//lvel4SamWin_338 (Stone_fla.lvel4SamWin_338)
package Stone_fla {
import flash.display.*;
public dynamic class lvel4SamWin_338 extends MovieClip {
public var marker:MovieClip;
public function lvel4SamWin_338(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 334
//MainTimeline (Stone_fla.MainTimeline)
package Stone_fla {
import flash.events.*;
import flash.ui.*;
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import gamework.events.*;
import gamework.core.*;
import gamework.preloaders.*;
import flash.text.*;
import flash.geom.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var _preloader:Preloader_2DPlayAd;
public var container:Container;
public var BigWigGameData:Object;
public function MainTimeline(){
super();
addFrameScript(0, frame1, 2, frame3);
}
public function getBigWigWrappedGameData():Object{
return (BigWigGameData);
}
public function preloadingCompleteHandler(event:PreloaderEvent):void{
var preloader:AbstractPreloader;
preloader = (event.target as AbstractPreloader);
preloader.removeEventListener(PreloaderEvent.COMPLETE, preloadingCompleteHandler);
gotoAndStop(3);
}
function frame3(){
container = new Container();
addChild(container);
stop();
}
function frame1(){
stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
SingletonFactory.registerClass("gamework.net::IURLCaller", URLCaller_SAS2);
this.contextMenu = ContextMenu_2DPlay.getMenu();
BigWigGameData = {};
BigWigGameData.url = this.loaderInfo.url;
BigWigGameData.gameid = 1731;
BigWigGameData.affid = this.loaderInfo.parameters.affid;
_preloader.addEventListener(PreloaderEvent.COMPLETE, preloadingCompleteHandler);
}
}
}//package Stone_fla
Section 335
//mammothpoopscopy_299 (Stone_fla.mammothpoopscopy_299)
package Stone_fla {
import flash.display.*;
public dynamic class mammothpoopscopy_299 extends MovieClip {
public function mammothpoopscopy_299(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 336
//meteor_550 (Stone_fla.meteor_550)
package Stone_fla {
import flash.display.*;
public dynamic class meteor_550 extends MovieClip {
public function meteor_550(){
super();
addFrameScript(0, frame1, 20, frame21, 95, frame96, 96, frame97);
}
function frame97(){
stop();
}
function frame1(){
stop();
}
function frame96(){
stop();
}
function frame21(){
stop();
}
}
}//package Stone_fla
Section 337
//notifypics_559 (Stone_fla.notifypics_559)
package Stone_fla {
import flash.display.*;
public dynamic class notifypics_559 extends MovieClip {
public var tusks:MovieClip;
public var bladder:MovieClip;
public var axeHead:MovieClip;
public var mammothLeg:MovieClip;
public var vines2:MovieClip;
public var skull:MovieClip;
public var apple:MovieClip;
public var hide:MovieClip;
public var rock:MovieClip;
public var sinew:MovieClip;
public var ribs:MovieClip;
public var axeHandle:MovieClip;
public function notifypics_559(){
super();
}
}
}//package Stone_fla
Section 338
//obelisckliftedbykitecopy_136 (Stone_fla.obelisckliftedbykitecopy_136)
package Stone_fla {
import flash.display.*;
public dynamic class obelisckliftedbykitecopy_136 extends MovieClip {
public var tie:MovieClip;
public function obelisckliftedbykitecopy_136(){
super();
}
}
}//package Stone_fla
Section 339
//poop2b_298 (Stone_fla.poop2b_298)
package Stone_fla {
import flash.display.*;
public dynamic class poop2b_298 extends MovieClip {
public function poop2b_298(){
super();
addFrameScript(23, frame24);
}
function frame24(){
stop();
}
}
}//package Stone_fla
Section 340
//preloader_progress_bar_4 (Stone_fla.preloader_progress_bar_4)
package Stone_fla {
import flash.display.*;
public dynamic class preloader_progress_bar_4 extends MovieClip {
public var progress_bar_mask:MovieClip;
public function preloader_progress_bar_4(){
super();
}
}
}//package Stone_fla
Section 341
//rope_583 (Stone_fla.rope_583)
package Stone_fla {
import flash.display.*;
public dynamic class rope_583 extends MovieClip {
public var swing;
public function rope_583(){
super();
addFrameScript(0, frame1, 14, frame15, 28, frame29);
}
function frame15(){
swing = true;
}
function frame1(){
swing = false;
}
function frame29(){
swing = false;
}
}
}//package Stone_fla
Section 342
//sam_2_hit_44 (Stone_fla.sam_2_hit_44)
package Stone_fla {
import flash.display.*;
public dynamic class sam_2_hit_44 extends MovieClip {
public var marker:MovieClip;
public function sam_2_hit_44(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 343
//sam_snow_379 (Stone_fla.sam_snow_379)
package Stone_fla {
import flash.display.*;
public dynamic class sam_snow_379 extends MovieClip {
public var marker:MovieClip;
public function sam_snow_379(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 344
//samgetsfamilyacross_429 (Stone_fla.samgetsfamilyacross_429)
package Stone_fla {
import flash.display.*;
public dynamic class samgetsfamilyacross_429 extends MovieClip {
public var marker:MovieClip;
public function samgetsfamilyacross_429(){
super();
addFrameScript(0, frame1, 94, frame95);
}
function frame95(){
stop();
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 345
//samwalktocromag_285 (Stone_fla.samwalktocromag_285)
package Stone_fla {
import flash.display.*;
public dynamic class samwalktocromag_285 extends MovieClip {
public var marker:MovieClip;
public function samwalktocromag_285(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 346
//skeletonn_273 (Stone_fla.skeletonn_273)
package Stone_fla {
import flash.display.*;
public dynamic class skeletonn_273 extends MovieClip {
public function skeletonn_273(){
super();
addFrameScript(0, frame1, 35, frame36);
}
function frame1(){
stop();
}
function frame36(){
stop();
}
}
}//package Stone_fla
Section 347
//snow_mc_364 (Stone_fla.snow_mc_364)
package Stone_fla {
import flash.display.*;
public dynamic class snow_mc_364 extends MovieClip {
public function snow_mc_364(){
super();
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package Stone_fla
Section 348
//snow_move_556 (Stone_fla.snow_move_556)
package Stone_fla {
import flash.display.*;
public dynamic class snow_move_556 extends MovieClip {
public function snow_move_556(){
super();
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package Stone_fla
Section 349
//snowlog_370 (Stone_fla.snowlog_370)
package Stone_fla {
import flash.display.*;
public dynamic class snowlog_370 extends MovieClip {
public function snowlog_370(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 350
//spearGuy_238 (Stone_fla.spearGuy_238)
package Stone_fla {
import flash.display.*;
public dynamic class spearGuy_238 extends MovieClip {
public function spearGuy_238(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 351
//stoneAgeSame_40 (Stone_fla.stoneAgeSame_40)
package Stone_fla {
import flash.display.*;
public dynamic class stoneAgeSame_40 extends MovieClip {
public function stoneAgeSame_40(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 352
//tree_rope_584 (Stone_fla.tree_rope_584)
package Stone_fla {
import flash.display.*;
public dynamic class tree_rope_584 extends MovieClip {
public function tree_rope_584(){
super();
addFrameScript(0, frame1, 103, frame104);
}
function frame1(){
stop();
}
function frame104(){
stop();
}
}
}//package Stone_fla
Section 353
//yellowSnow_366 (Stone_fla.yellowSnow_366)
package Stone_fla {
import flash.display.*;
public dynamic class yellowSnow_366 extends MovieClip {
public function yellowSnow_366(){
super();
addFrameScript(0, frame1, 51, frame52);
}
function frame1(){
stop();
}
function frame52(){
stop();
}
}
}//package Stone_fla
Section 354
//yetikillsam14_61 (Stone_fla.yetikillsam14_61)
package Stone_fla {
import flash.display.*;
public dynamic class yetikillsam14_61 extends MovieClip {
public var marker:MovieClip;
public function yetikillsam14_61(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 355
//yetikillsam16_65 (Stone_fla.yetikillsam16_65)
package Stone_fla {
import flash.display.*;
public dynamic class yetikillsam16_65 extends MovieClip {
public var marker:MovieClip;
public function yetikillsam16_65(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 356
//yetikillsam17_66 (Stone_fla.yetikillsam17_66)
package Stone_fla {
import flash.display.*;
public dynamic class yetikillsam17_66 extends MovieClip {
public var marker:MovieClip;
public function yetikillsam17_66(){
super();
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package Stone_fla
Section 357
//yetikillsam18_67 (Stone_fla.yetikillsam18_67)
package Stone_fla {
import flash.display.*;
public dynamic class yetikillsam18_67 extends MovieClip {
public var marker:MovieClip;
public function yetikillsam18_67(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Stone_fla
Section 358
//ApplicationGlobals (ApplicationGlobals)
package {
import flash.display.*;
public class ApplicationGlobals {
static var _id:String;
static var _stage:Stage;
public function ApplicationGlobals(){
super();
}
public static function get STAGE():Stage{
return (_stage);
}
public static function get ID():String{
return ("1731");
}
}
}//package
Section 359
//Bat (Bat)
package {
import flash.events.*;
import flash.display.*;
public class Bat extends MovieClip {
var bonus:uint;// = 5
var mc:Object;
public function Bat(){
bonus = 5;
super();
addFrameScript(0, frame1);
mc = parent;
addEventListener(MouseEvent.MOUSE_OVER, doAction);
}
private function dispose(){
var secretPoints:SecretPoints;
secretPoints = new SecretPoints(x, y, bonus);
mc.addChild(secretPoints);
removeEventListener(MouseEvent.CLICK, doAction);
}
function frame1(){
stop();
}
private function doAction(e:MouseEvent):void{
mc.secretScore = (mc.secretScore + bonus);
this.gotoAndStop(2);
dispose();
}
}
}//package
Section 360
//Butterfly (Butterfly)
package {
import flash.events.*;
import flash.display.*;
public class Butterfly extends MovieClip {
var bonus:uint;// = 5
var mc:Object;
public function Butterfly(){
bonus = 5;
super();
addFrameScript(0, frame1);
mc = parent;
addEventListener(MouseEvent.MOUSE_OVER, doAction);
}
private function dispose(){
var secretPoints:SecretPoints;
secretPoints = new SecretPoints(x, y, bonus);
mc.addChild(secretPoints);
removeEventListener(MouseEvent.MOUSE_OVER, doAction);
}
function frame1(){
stop();
}
private function doAction(e:MouseEvent):void{
mc.secretScore = (mc.secretScore + bonus);
this.gotoAndStop(2);
dispose();
}
}
}//package
Section 361
//ComicPanels (ComicPanels)
package {
import flash.events.*;
import flash.display.*;
public class ComicPanels extends MovieClip {
var cont:MovieClip;
public var btn:SimpleButton;
var level:uint;
public function ComicPanels(_cont:MovieClip, _level:uint){
super();
addFrameScript(0, frame1, 2, frame3, 4, frame5, 6, frame7, 8, frame9);
cont = _cont;
level = _level;
gotoAndStop(("level" + level));
btn.addEventListener(MouseEvent.CLICK, btnClick);
}
private function dispose(){
btn.removeEventListener(MouseEvent.CLICK, btnClick);
cont.removeChild(this);
}
function frame3(){
stop();
}
function frame7(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame1(){
stop();
}
private function checkLevel():Boolean{
if ((((((((((currentFrame == 2)) || ((currentFrame == 4)))) || ((currentFrame == 6)))) || ((currentFrame == 8)))) || ((currentFrame == 10)))){
return (true);
};
return (false);
}
private function btnClick(e:MouseEvent):void{
if (checkLevel()){
dispose();
cont.loadLevel();
} else {
nextFrame();
};
}
}
}//package
Section 362
//Container (Container)
package {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import gamework.net.*;
import gamework.core.*;
import flash.system.*;
public class Container extends MovieClip {
var hud:Hud;
var comicPanels:ComicPanels;
var playerWin:PlayerWin;
public var sounds:Sounds;
var dead:Dead;
var startLevel:uint;// = 1
var splash:Splash;
var level:MovieClip;
var score:uint;// = 0
var changeTime:uint;// = 0
var currentLevel:uint;// = 1
var paws:Boolean;// = true
public var timeInterval:int;
var time:int;// = 300
var loadInterval:int;
var levelComplete:LevelComplete;
public static const SHOW_TABS:Boolean = false;
private static var _urlCaller:IURLCaller;
public function Container(){
sounds = new Sounds();
time = 300;
paws = true;
score = 0;
currentLevel = 1;
startLevel = 1;
changeTime = 0;
super();
_urlCaller = SingletonFactory.getInstance("gamework.net::IURLCaller");
sounds.playMusic();
addEventListener(MouseEvent.CLICK, onMouseClickGlobalHandler);
this.addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
loadSplash();
}
public function checkTime():void{
if (!paws){
changeTime++;
if (changeTime == 30){
changeTime = 0;
if (((!(paws)) && ((time > 0)))){
time--;
};
hud.time_txt.text = ("" + time);
};
};
}
function setUpLevel(lvl:uint):void{
var _local2:Level1;
var _local3:Level2;
var _local4:Level3;
var _local5:Level4;
var _local6:Level5;
var _local7:Level6;
clearInterval(loadInterval);
switch (lvl){
case 1:
_local2 = new Level1(this);
addChild(_local2);
level = _local2;
break;
case 2:
_local3 = new Level2(this);
addChild(_local3);
level = _local3;
break;
case 3:
_local4 = new Level3(this);
addChild(_local4);
level = _local4;
break;
case 4:
_local5 = new Level4(this);
addChild(_local5);
level = _local5;
break;
case 5:
_local6 = new Level5(this);
addChild(_local6);
level = _local6;
break;
case 6:
_local7 = new Level6(this);
addChild(_local7);
level = _local7;
break;
};
sounds.stopMusic();
paws = false;
this.setChildIndex(hud, (this.numChildren - 1));
}
private function createMask(color:uint=0):void{
var appMaskSprite:Sprite;
var graphics:Graphics;
var appWidth:int;
var appHeight:int;
var dw:int;
var dh:int;
appMaskSprite = new Sprite();
graphics = appMaskSprite.graphics;
graphics.lineStyle();
graphics.beginFill(color, 1);
appWidth = 600;
appHeight = 400;
graphics.moveTo(0, 0);
graphics.lineTo(appWidth, 0);
graphics.lineTo(appWidth, appHeight);
graphics.lineTo(0, appHeight);
graphics.lineTo(0, 0);
dw = ((Capabilities.screenResolutionX - appWidth) / 2);
dh = ((Capabilities.screenResolutionY - appHeight) / 2);
graphics.moveTo(-(dw), -(dh));
graphics.lineTo((appWidth + dw), -(dh));
graphics.lineTo((appWidth + dw), (appHeight + dh));
graphics.lineTo(-(dw), (appHeight + dh));
graphics.lineTo(-(dw), -(dh));
graphics.endFill();
parent.addChild(appMaskSprite);
}
private function onMouseClickGlobalHandler(event:MouseEvent):void{
var targetName:String;
targetName = event.target.name;
switch (targetName){
case "hud_2dplay_btn":
_urlCaller.mainLink();
break;
case "splash_high_scores_btn":
_urlCaller.viewScores();
break;
case "splash_2dplay_logo_btn":
case "splash_2dplay_link_button":
_urlCaller.mainLink();
break;
};
}
public function loadLevel(){
loadInterval = setInterval(setUpLevel, 100, currentLevel);
}
private function nextLevel(e:MouseEvent):void{
currentLevel++;
time = 300;
hud.time_txt.text = ("" + time);
levelComplete.next_btn.removeEventListener(MouseEvent.CLICK, nextLevel);
removeChild(levelComplete);
reset();
}
public function reset(event:MouseEvent=null):void{
level.dispose();
this.removeChild(level);
level = null;
if (currentLevel == 1){
loadLevel();
} else {
if (currentLevel != 7){
comicPanels = new ComicPanels(this, currentLevel);
addChild(comicPanels);
} else {
if (currentLevel == 7){
playerWin = new PlayerWin(this, score);
addChild(playerWin);
};
};
};
}
public function addNotify(txt:String="", pic:String="vine", sound1:Sound=null, sound2:Sound=null, isTimer:Boolean=false):void{
var itemNotify:ItemNotify;
if (isTimer){
clearInterval(timeInterval);
};
itemNotify = new ItemNotify(sound1, sound2, txt, pic);
addChild(itemNotify);
}
public function getDistance(x:int, xx:int, y:int, yy:int){
var distance:Number;
distance = Math.sqrt((((x - xx) * (x - xx)) + ((y - yy) * (y - yy))));
return (distance);
}
public function retry():void{
level.dispose();
this.removeChild(level);
level = null;
loadLevel();
}
private function onAddedToStage(event:Event):void{
this.removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
createMask();
}
public function checkCompleteLevel(){
switch (currentLevel){
case 1:
if (level.stateMachine.currentState.name == Level1States.POS_12){
completeLevel();
};
break;
case 2:
if (level.stateMachine.currentState.name == Level2States.POS_17){
completeLevel();
};
break;
case 3:
if (level.stateMachine.currentState.name == Level3States.POS_15){
completeLevel();
};
break;
};
}
public function debugTrace(txt):void{
trace(txt);
}
private function calculateScore(mc:MovieClip):void{
var bonusTime:*;
var levelScore:*;
var secretScore:*;
bonusTime = (time * 10);
levelScore = (currentLevel * 100);
secretScore = level.secretScore;
score = (score + ((bonusTime + levelScore) + secretScore));
mc.bonus_txt.text = ("" + bonusTime);
mc.secret_txt.text = ("" + secretScore);
mc.level_txt.text = ("" + levelScore);
mc.score_txt.text = ("" + score);
}
public function completeLevel():void{
changeTime = 0;
sounds.playMusic();
paws = true;
levelComplete = new LevelComplete();
levelComplete.next_btn.addEventListener(MouseEvent.CLICK, nextLevel);
addChild(levelComplete);
calculateScore(levelComplete);
}
public function playerDead():void{
sounds.playMusic();
paws = true;
dead = new Dead(this, score);
addChild(dead);
}
public function loadSplash():void{
if (level){
level.dispose();
//unresolved jump
var _slot1 = e;
this.removeChild(level);
//unresolved jump
var _slot1 = e;
level = null;
};
hud = new Hud();
addChild(hud);
splash = new Splash(this);
addChild(splash);
}
public function startNewGame():void{
changeTime = 0;
score = 0;
currentLevel = startLevel;
loadLevel();
}
public static function get urlCaller():IURLCaller{
return (_urlCaller);
}
}
}//package
Section 363
//ContextMenu_2DPlay (ContextMenu_2DPlay)
package {
import flash.events.*;
import flash.ui.*;
import gamework.net.*;
import gamework.core.*;
public class ContextMenu_2DPlay {
private static var moreGamesItem:ContextMenuItem = new ContextMenuItem("Play more games");
private static var getGameItem:ContextMenuItem = new ContextMenuItem("Get game for your site");
private static var scoresItem:ContextMenuItem = new ContextMenuItem("High scores");
private static var urlCaller = SingletonFactory.getInstance("gamework.net::IURLCaller");
private static var downloadItem:ContextMenuItem = new ContextMenuItem("Download this game");
private static var menu:ContextMenu;
public function ContextMenu_2DPlay(){
super();
}
private static function onMenuItemSelect(event:ContextMenuEvent):void{
var urlCaller:IURLCaller;
urlCaller = SingletonFactory.getInstance("gamework.net::IURLCaller");
switch (event.target){
case scoresItem:
urlCaller.viewScores();
break;
case moreGamesItem:
urlCaller.playMoreGames();
break;
case getGameItem:
urlCaller.getGame();
break;
case downloadItem:
urlCaller.downloadGame();
break;
};
}
public static function getEmptyMenu():ContextMenu{
var emptyMenu:ContextMenu;
emptyMenu = new ContextMenu();
emptyMenu.hideBuiltInItems();
return (emptyMenu);
}
public static function getMenu():ContextMenu{
if (!menu){
menu = getEmptyMenu();
scoresItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onMenuItemSelect);
moreGamesItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onMenuItemSelect);
getGameItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onMenuItemSelect);
downloadItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onMenuItemSelect);
menu.customItems.push(scoresItem);
menu.customItems.push(moreGamesItem);
menu.customItems.push(getGameItem);
menu.customItems.push(downloadItem);
};
return (menu);
}
}
}//package
Section 364
//Dead (Dead)
package {
import flash.events.*;
import flash.display.*;
import gamework.net.*;
import gamework.core.*;
import flash.text.*;
public class Dead extends MovieClip {
public var replay_btn:SimpleButton;
public var next_btn:SimpleButton;
var cont:MovieClip;
public var level_txt:TextField;
public var score_txt:TextField;
public var bonus_txt:TextField;
var score:uint;
public var submit_btn:SimpleButton;
public var main_btn:SimpleButton;
public function Dead(_cont:MovieClip, _score:uint){
super();
addFrameScript(0, frame1);
cont = _cont;
score = _score;
replay_btn.addEventListener(MouseEvent.CLICK, replayLevel);
submit_btn.addEventListener(MouseEvent.CLICK, SubmitScore);
main_btn.addEventListener(MouseEvent.CLICK, mainMenu);
score_txt.text = ("" + score);
}
private function dispose():void{
replay_btn.removeEventListener(MouseEvent.CLICK, replayLevel);
submit_btn.removeEventListener(MouseEvent.CLICK, SubmitScore);
main_btn.removeEventListener(MouseEvent.CLICK, mainMenu);
cont.removeChild(this);
}
function frame1(){
stop();
}
private function SubmitScore(e:MouseEvent):void{
var _urlCaller:IURLCaller;
submit_btn.visible = false;
_urlCaller = SingletonFactory.getInstance("gamework.net::IURLCaller");
_urlCaller.submitScore(score);
}
private function mainMenu(e:MouseEvent):void{
cont.loadSplash();
dispose();
}
private function replayLevel(e:MouseEvent):void{
cont.retry();
dispose();
}
}
}//package
Section 365
//DeerFloat (DeerFloat)
package {
import flash.events.*;
import flash.display.*;
public class DeerFloat extends MovieClip {
var bonus:uint;// = 20
var mc:Object;
public function DeerFloat(){
bonus = 20;
super();
addFrameScript(0, frame1, 132, frame133);
mc = parent;
addEventListener(MouseEvent.MOUSE_OVER, doAction);
alpha = 0;
}
private function dispose(){
var secretPoints:SecretPoints;
secretPoints = new SecretPoints(x, y, bonus);
mc.addChild(secretPoints);
removeEventListener(MouseEvent.MOUSE_OVER, doAction);
}
function frame1(){
stop();
}
private function doAction(e:MouseEvent):void{
mc.secretScore = (mc.secretScore + bonus);
alpha = 1;
this.play();
dispose();
}
function frame133(){
stop();
}
}
}//package
Section 366
//HintsInfo (HintsInfo)
package {
public class HintsInfo {
public static const DISABLED:String = "disabled";
public static const PENDING:String = "pending";
public static const REQUESTED:String = "requested";
private static var _showHint_1_1:String = "pending";
private static var _showHint_2_1:String = "pending";
private static var _showHint_4_1:String = "pending";
public function HintsInfo(){
super();
}
public static function requestHint_4_1():void{
if (_showHint_4_1 == PENDING){
_showHint_4_1 = "requested_1st";
} else {
if (_showHint_4_1 == "requested_1st"){
_showHint_4_1 = REQUESTED;
};
};
}
public static function disableHint_2_1():void{
_showHint_2_1 = DISABLED;
}
public static function get isRequestedHint_1_1():Boolean{
return ((_showHint_1_1 == REQUESTED));
}
public static function get isRequestedHint_4_1():Boolean{
return ((_showHint_4_1 == REQUESTED));
}
public static function disableHint_1_1():void{
_showHint_1_1 = DISABLED;
}
public static function disableHint_4_1():void{
_showHint_4_1 = DISABLED;
}
public static function requestHint_1_1():void{
if (_showHint_1_1 == PENDING){
_showHint_1_1 = REQUESTED;
};
}
public static function requestHint_2_1():void{
if (_showHint_2_1 == PENDING){
_showHint_2_1 = REQUESTED;
};
}
public static function get isRequestedHint_2_1():Boolean{
return ((_showHint_2_1 == REQUESTED));
}
}
}//package
Section 367
//Hole (Hole)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class Hole extends MovieClip {
public var holemc:MovieClip;
var mc:Object;
public function Hole(){
super();
addFrameScript(0, frame1, 31, frame32);
mc = parent;
addEventListener(MouseEvent.CLICK, walkTo);
buttonMode = true;
holemc.alpha = 0;
}
private function walkTo(e:MouseEvent):void{
var dist:*;
dist = mc.cont.getDistance(mc.sam.x, x, mc.sam.y, y);
trace(("distace between sam and hole = " + dist));
if ((((((((((((dist < 200)) && (!(mc.walking)))) && ((mc.stateMachine.currentState.name == "pos_0")))) && (!(mc.madeIt)))) && (mc.familyFirst))) && ((mc.currentSam == mc.sam)))){
mc.currentHole = this;
mc.sam.gotoAndStop(2);
mc.walking = true;
mc.walkTo = new Point(x, y);
dispose();
buttonMode = false;
if (this.name == "win"){
mc.madeIt = true;
};
};
}
private function dispose(){
removeEventListener(MouseEvent.CLICK, walkTo);
}
function frame1(){
stop();
}
function frame32(){
stop();
}
}
}//package
Section 368
//Hud (Hud)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Hud extends MovieClip {
public var time_txt:TextField;
public var hud_2dplay_btn:SimpleButton;
public function Hud(){
super();
}
}
}//package
Section 369
//ItemNotify (ItemNotify)
package {
import flash.utils.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
public class ItemNotify extends MovieClip {
var cont:MovieClip;
public var txt:TextField;
public var pic:MovieClip;
var timeInterval:int;
public function ItemNotify(_playSound1:Sound=null, _playSound2:Sound=null, txt:String="", _pic:String="vine", time:uint=1000){
super();
addFrameScript(0, frame1);
this.txt.text = txt;
timeInterval = setInterval(dispose, time);
pic.gotoAndStop(_pic);
if (_playSound1 != null){
_playSound1.play();
};
if (_playSound2 != null){
_playSound2.play();
};
}
private function dispose():void{
clearInterval(timeInterval);
parent.removeChild(this);
}
function frame1(){
stop();
}
}
}//package
Section 370
//Level1 (Level1)
package {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import gamework.statemachine.hsm.*;
public class Level1 extends LevelBase {
public var sam_6_7:MovieClip;
public var samLower1:MovieClip;
public var samLower2:MovieClip;
public var axeHead:MovieClip;
public var treefall:MovieClip;
private var haveKid:Boolean;// = false
public var sam_5_6:MovieClip;
public var sndClip:MovieClip;
public var sam_11_12:MovieClip;
public var sam_5_7:MovieClip;
public var stateMachine:HSM;
public var animalsFlee:MovieClip;
public var hint_1:MovieClip;
public var bigTree:MovieClip;
private var timeInterval:int;
public var sam_8b_8:MovieClip;
public var kid:MovieClip;
public var sam_3_5:MovieClip;
public var axeHandle:MovieClip;
public var lava:MovieClip;
public var btn_11:MovieClip;
public var btn_12:MovieClip;
public var btn_10:MovieClip;
public var sam_8_8b:MovieClip;
public var sam_8_8a:MovieClip;
public var sam_2_1:MovieClip;
public var familyEscape:MovieClip;
public var sam_8a_8:MovieClip;
public var btn_1:MovieClip;
public var btn_3:MovieClip;
public var btn_4:MovieClip;
public var btn_6:MovieClip;
public var btn_7:MovieClip;
public var btn_8:MovieClip;
public var btn_2:MovieClip;
private var cameraTrack:Boolean;// = false
public var ropeSwing:MovieClip;
public var background:MovieClip;
private var cont:MovieClip;
public var btn_9:MovieClip;
private var treeFell:Boolean;// = false
public var kid_7_8:MovieClip;
private var haveVine1:Boolean;// = false
public var log:MovieClip;
public var sam_1_3:MovieClip;
public var vines1:MovieClip;
public var vines2:MovieClip;
private var haveVine2:Boolean;// = true
public var sam_1_2:MovieClip;
private var buttonsArray:Array;
public var family:MovieClip;
private var screenY:int;// = 0
private var screenX:int;// = 0
public var sam_0_1:MovieClip;
private var haveAxeHead:Boolean;// = false
public var killSam:MovieClip;
private var currentSam:MovieClip;
public var sam_8a_8b:MovieClip;
public var bear:MovieClip;
public var secretScore:uint;// = 0
public var sam_7_6:MovieClip;
public var sam_7_8:MovieClip;
public var sam_10_11:MovieClip;
public var sam_8_10:MovieClip;
public var btn_8a:MovieClip;
public var btn_8b:MovieClip;
public var sam:MovieClip;
public var sam_8b_8a:MovieClip;
public function Level1(_cont:MovieClip){
screenX = 0;
screenY = 0;
cameraTrack = false;
haveKid = false;
haveVine1 = false;
haveVine2 = true;
haveAxeHead = false;
treeFell = false;
secretScore = 0;
super();
this.cont = _cont;
stateMachine = new HSM("Level1_HSM");
stateMachine.addState(new InitialState(Level1States.INITIALIZATION, null));
stateMachine.addState(new CompositeState(Level1States.POS_0, null));
stateMachine.addState(new CompositeState(Level1States.POS_1, null));
stateMachine.addState(new CompositeState(Level1States.POS_2, null));
stateMachine.addState(new CompositeState(Level1States.POS_3, null));
stateMachine.addState(new CompositeState(Level1States.POS_5, null));
stateMachine.addState(new CompositeState(Level1States.POS_6, null));
stateMachine.addState(new CompositeState(Level1States.POS_7, null));
stateMachine.addState(new CompositeState(Level1States.POS_8, null));
stateMachine.addState(new CompositeState(Level1States.POS_8A, null));
stateMachine.addState(new CompositeState(Level1States.POS_8B, null));
stateMachine.addState(new CompositeState(Level1States.POS_10, null));
stateMachine.addState(new CompositeState(Level1States.POS_11, null));
stateMachine.addState(new CompositeState(Level1States.POS_12, null));
stateMachine.addTransition(Level1States.INITIALIZATION, Level1States.POS_0, new SignalEvent("INIT"));
stateMachine.addTransition(Level1States.POS_0, Level1States.POS_1, new SignalEvent(Level1Events.M_0_1));
stateMachine.addTransition(Level1States.POS_1, Level1States.POS_3, new SignalEvent(Level1Events.M_1_3));
stateMachine.addTransition(Level1States.POS_1, Level1States.POS_2, new SignalEvent(Level1Events.M_1_2));
stateMachine.addTransition(Level1States.POS_2, Level1States.POS_1, new SignalEvent(Level1Events.M_2_1));
stateMachine.addTransition(Level1States.POS_3, Level1States.POS_5, new SignalEvent(Level1Events.M_3_5));
stateMachine.addTransition(Level1States.POS_5, Level1States.POS_6, new SignalEvent(Level1Events.M_5_6));
stateMachine.addTransition(Level1States.POS_5, Level1States.POS_7, new SignalEvent(Level1Events.M_5_7));
stateMachine.addTransition(Level1States.POS_6, Level1States.POS_7, new SignalEvent(Level1Events.M_6_7));
stateMachine.addTransition(Level1States.POS_7, Level1States.POS_6, new SignalEvent(Level1Events.M_7_6));
stateMachine.addTransition(Level1States.POS_7, Level1States.POS_8, new SignalEvent(Level1Events.M_7_8));
stateMachine.addTransition(Level1States.POS_8, Level1States.POS_8A, new SignalEvent(Level1Events.M_8_8A));
stateMachine.addTransition(Level1States.POS_8B, Level1States.POS_8A, new SignalEvent(Level1Events.M_8B_8A));
stateMachine.addTransition(Level1States.POS_8B, Level1States.POS_8, new SignalEvent(Level1Events.M_8B_8));
stateMachine.addTransition(Level1States.POS_8, Level1States.POS_8B, new SignalEvent(Level1Events.M_8_8B));
stateMachine.addTransition(Level1States.POS_8A, Level1States.POS_8B, new SignalEvent(Level1Events.M_8A_8B));
stateMachine.addTransition(Level1States.POS_8A, Level1States.POS_8, new SignalEvent(Level1Events.M_8A_8));
stateMachine.addTransition(Level1States.POS_8, Level1States.POS_10, new SignalEvent(Level1Events.M_8_10));
stateMachine.addTransition(Level1States.POS_10, Level1States.POS_11, new SignalEvent(Level1Events.M_10_11));
stateMachine.addTransition(Level1States.POS_11, Level1States.POS_12, new SignalEvent(Level1Events.M_11_12));
stateMachine.start();
buttonsArray = [btn_1, btn_2, btn_3, btn_4, btn_6, btn_7, btn_8, btn_8a, btn_9, btn_10, btn_11, btn_12];
setUpButtons();
hideHints(hint_1);
btn_8b.visible = false;
signalEvent("INIT");
currentSam = sam;
addEventListener(Event.ENTER_FRAME, frameCheck);
}
private function setUpButtons():void{
var strArray:Array;
var nameString:String;
var i:uint;
var btn:MovieClip;
var j:uint;
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.addEventListener(MouseEvent.CLICK, buttonCheck);
btn.buttonMode = true;
btn.mouseChildren = false;
btn.tabEnabled = Container.SHOW_TABS;
strArray = btn.name.split("");
j = 0;
while (j < 4) {
strArray.splice(0, 1);
j++;
};
nameString = strArray.join("");
btn.alpha = 0;
btn.visible = false;
i++;
};
showButtons(new Array(btn_1));
}
public function dispose(){
var i:uint;
var btn:MovieClip;
sndClip.stop();
removeEventListener(Event.ENTER_FRAME, frameCheck);
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.removeEventListener(MouseEvent.CLICK, buttonCheck);
i++;
};
stateMachine.dispose();
}
private function setStaticSam(){
cont.debugTrace(("found the end frame for -> " + currentSam.name));
sam.x = currentSam.marker.x;
sam.y = currentSam.marker.y;
currentSam.visible = false;
sam.visible = true;
currentSam = sam;
cameraTrack = true;
cont.checkCompleteLevel();
}
private function currentState(){
cont.debugTrace(stateMachine.currentState);
}
private function signalEvent(_string:String):Boolean{
return (stateMachine.sendSignalEvent(_string));
}
private function buttonCheck(event:MouseEvent):void{
if ((((currentSam == sam)) && (!(cont.paws)))){
switch (event.target.name){
case "btn_1":
if (signalEvent(Level1Events.M_0_1)){
showButtons(new Array(btn_2));
setCurrentSam(sam_0_1);
animalsFlee.play();
bear.play();
if (HintsInfo.isRequestedHint_1_1){
showHint(hint_1);
HintsInfo.disableHint_1_1();
};
} else {
if (signalEvent(Level1Events.M_2_1)){
showButtons(new Array(btn_3));
setCurrentSam(sam_2_1);
};
};
break;
case "btn_2":
if (signalEvent(Level1Events.M_1_2)){
showButtons(new Array(btn_1));
setCurrentSam(sam_1_2);
};
break;
case "btn_3":
if (signalEvent(Level1Events.M_1_3)){
setCurrentSam(sam_1_3);
showButtons(new Array(btn_4));
};
break;
case "btn_4":
if (ropeSwing.swing){
ropeSwing.visible = false;
if (signalEvent(Level1Events.M_3_5)){
showButtons(new Array(btn_6, btn_7));
setCurrentSam(sam_3_5);
};
};
break;
case "btn_6":
if (signalEvent(Level1Events.M_5_6)){
showButtons(new Array(btn_7));
setCurrentSam(sam_5_6);
haveKid = true;
} else {
if (!haveKid){
if (signalEvent(Level1Events.M_7_6)){
showButtons(new Array(btn_7));
setCurrentSam(sam_7_6);
haveKid = true;
};
};
};
break;
case "btn_7":
if (signalEvent(Level1Events.M_5_7)){
showButtons(new Array(btn_6));
setCurrentSam(sam_5_7);
} else {
if (signalEvent(Level1Events.M_6_7)){
showButtons(new Array(btn_8));
setCurrentSam(sam_6_7);
lava.play();
};
};
break;
case "btn_8":
if (haveKid){
if (signalEvent(Level1Events.M_7_8)){
showButtons(new Array(btn_8a));
setCurrentSam(sam_7_8);
} else {
if (signalEvent(Level1Events.M_8A_8)){
if (haveVine2){
showButtons(new Array(btn_9));
} else {
showButtons(new Array(btn_9));
};
setCurrentSam(sam_8a_8);
} else {
if (signalEvent(Level1Events.M_8B_8)){
if (haveVine1){
showButtons(new Array(btn_9));
} else {
showButtons(new Array(btn_9, btn_8a));
};
setCurrentSam(sam_8b_8);
};
};
};
};
break;
case "btn_8a":
if (!haveVine1){
if (signalEvent(Level1Events.M_8_8A)){
setCurrentSam(sam_8_8a);
haveVine1 = true;
btn_8a.visible = false;
btn_8.visible = true;
} else {
if (signalEvent(Level1Events.M_8B_8A)){
setCurrentSam(sam_8b_8a);
haveVine1 = true;
btn_8a.visible = false;
btn_8.visible = true;
};
};
};
break;
case "btn_9":
if (stateMachine.currentState.name == Level1States.POS_8){
if (((haveVine1) || (haveVine2))){
sam.alpha = 0;
kid_7_8.alpha = 0;
};
if (((haveVine1) && (haveVine2))){
showButtons(new Array(btn_10));
currentSam = samLower2;
lava.play();
} else {
if (((haveVine1) || (haveVine2))){
currentSam = samLower1;
};
};
if (((haveVine1) || (haveVine2))){
currentSam.alpha = 1;
currentSam.play();
};
};
break;
case "btn_10":
if (((((haveVine1) && (haveVine2))) && (haveAxeHead))){
if (signalEvent(Level1Events.M_8_10)){
setCurrentSam(sam_8_10);
family.play();
showButtons(new Array(btn_11));
};
};
break;
case "btn_11":
if (signalEvent(Level1Events.M_10_11)){
setCurrentSam(sam_10_11);
showButtons(new Array(btn_12));
};
break;
case "btn_12":
if (signalEvent(Level1Events.M_11_12)){
setCurrentSam(sam_11_12);
};
break;
};
};
}
private function checkBear():void{
if ((((((bear.currentLabel == "bearAttack")) && ((currentSam == sam)))) && ((stateMachine.currentState.name == Level1States.POS_1)))){
bear.visible = false;
setCurrentSam(killSam);
HintsInfo.requestHint_1_1();
};
if ((((((stateMachine.currentState.name == Level1States.POS_3)) && (!((currentSam === sam))))) && ((bear.marker.x < currentSam.marker.x)))){
cont.debugTrace("GROWL! bEAR KILL YOU when u think yer cleverz");
currentSam.stop();
setStaticSam();
setScreen(sam.x);
cont.playerDead();
};
if (bear.currentLabel == "logFall"){
log.play();
};
}
private function checkPickups(){
if (stateMachine.currentState.name == Level1States.POS_8A){
cont.addNotify("Picked up Vines", "vine", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level1States.POS_8B){
cont.addNotify("Picked up Vines", "vine", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if ((((stateMachine.currentState.name == Level1States.POS_8)) && (haveAxeHead))){
cont.addNotify("Picked up a Flint", "flint", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level1States.POS_10){
cont.addNotify("Picks up a stick", "stick", cont.sounds.s_Pickup, cont.sounds.s_Happy);
cont.timeInterval = setInterval(cont.addNotify, 2000, "Made an Axe", "axe", cont.sounds.s_Triumph, null, true);
};
}
private function setScreen(x:int):void{
x = ((x * -1) + 50);
if (x > 0){
x = 0;
};
if (x < ((this.background.width * -1) + 600)){
x = ((this.background.width * -1) + 600);
};
screenX = x;
}
private function frameCheck(e:Event):void{
cont.checkTime();
if (lava.currentLabel == "treeBurn"){
bigTree.play();
};
if (currentSam.currentLabel == "pickup"){
checkPickups();
};
if (currentSam.currentLabel == "end"){
checkPickups();
setStaticSam();
};
if (currentSam.currentLabel == "pickupVine1"){
vines1.visible = false;
};
if (currentSam.currentLabel == "pickupVine2"){
vines2.visible = false;
};
if (currentSam.currentLabel == "pickupKid"){
kid.visible = false;
};
if (currentSam.currentLabel == "dropKid"){
kid_7_8.alpha = 1;
};
if (currentSam.currentLabel == "summonKid"){
kid_7_8.play();
};
if (currentSam.currentLabel == "pickupAxeHead"){
axeHead.visible = false;
};
if (currentSam.currentLabel == "pickupAxeHandle"){
axeHandle.visible = false;
};
if ((((currentSam.currentLabel == "treeShake")) || ((currentSam.currentLabel == "treeShake2")))){
treefall.gotoAndPlay("shake");
};
if (currentSam.currentLabel == "treeFall"){
treefall.play();
};
if (treefall.currentLabel == "run"){
family.alpha = 0;
kid_7_8.alpha = 0;
familyEscape.alpha = 1;
familyEscape.play();
};
if (currentSam.currentLabel == "lowerFinish"){
currentSam.alpha = 0;
currentSam = sam;
sam.alpha = 1;
kid_7_8.alpha = 1;
if (((haveVine1) && (haveVine2))){
haveAxeHead = true;
};
checkPickups();
};
if (currentSam.currentLabel == "rope"){
ropeSwing.visible = true;
};
checkBear();
if (((!((currentSam == sam))) && (cameraTrack))){
setScreen(currentSam.marker.x);
};
if (currentSam.currentLabel == "dead"){
cont.playerDead();
};
checkScreen();
}
private function setCurrentSam(mc:MovieClip):void{
sam.visible = false;
mc.marker.visible = false;
mc.visible = true;
mc.alpha = 1;
currentSam = mc;
mc.play();
}
private function checkScreen():void{
this.x = int((this.x + ((screenX - this.x) / 40)));
this.y = int((this.y + ((screenY - this.y) / 40)));
}
public function showButtons(ar:Array){
var j:uint;
var i:uint;
var btn1:MovieClip;
var btn:MovieClip;
j = 0;
while (j < buttonsArray.length) {
btn1 = buttonsArray[j];
btn1.visible = false;
j++;
};
i = 0;
while (i < ar.length) {
btn = ar[i];
btn.visible = true;
i++;
};
}
}
}//package
Section 371
//Level1Events (Level1Events)
package {
public class Level1Events {
public static const M_8_10:String = "m_8_10";
public static const M_6_7:String = "m_6_7";
public static const M_8A_8:String = "m_8a_8";
public static const M_8A_8B:String = "m_8a_8b";
public static const INIT:String = "init";
public static const M_10_11:String = "m_10_11";
public static const M_8_8B:String = "m_8_8b";
public static const M_8_8A:String = "m_8_8a";
public static const M_8B_8A:String = "m_8b_8a";
public static const END_LEVEL:String = "end_level";
public static const M_0_1:String = "m_0_1";
public static const M_2_1:String = "m_2_1";
public static const M_1_3:String = "m_1_3";
public static const M_8B_8:String = "m_8b_8";
public static const M_3_5:String = "m_3_5";
public static const M_1_2:String = "m_1_2";
public static const M_5_6:String = "m_5_6";
public static const M_5_7:String = "m_5_7";
public static const M_7_6:String = "m_7_6";
public static const M_11_12:String = "m_11_12";
public static const M_7_8:String = "m_7_8";
public function Level1Events(){
super();
}
}
}//package
Section 372
//Level1States (Level1States)
package {
public class Level1States {
public static const POS_11:String = "pos_11";
public static const POS_10:String = "pos_10";
public static const POS_12:String = "pos_12";
public static const INITIALIZATION:String = "initialization";
public static const POS_0:String = "pos_0";
public static const POS_1:String = "pos_1";
public static const POS_2:String = "pos_2";
public static const POS_3:String = "pos_3";
public static const POS_5:String = "pos_5";
public static const POS_6:String = "pos_6";
public static const POS_7:String = "pos_7";
public static const POS_8:String = "pos_8";
public static const GAME_END:String = "game_end";
public static const POS_8A:String = "pos_8a";
public static const POS_8B:String = "pos_8b";
public function Level1States(){
super();
}
}
}//package
Section 373
//Level2 (Level2)
package {
import flash.events.*;
import flash.display.*;
import gamework.statemachine.hsm.*;
public class Level2 extends LevelBase {
public var btn_9a:MovieClip;
public var btn_9c:MovieClip;
public var sam_6_7:MovieClip;
public var btn_9b:MovieClip;
public var btn_13b:MovieClip;
private var meltTime:uint;// = 0
public var lucy_5_7:MovieClip;
public var fire:MovieClip;
public var yetiRun_13:MovieClip;
public var sam_13b_16b:MovieClip;
public var fam_4_5:MovieClip;
public var boys_10_11:MovieClip;
public var sam_5_6:MovieClip;
public var sam_9_12:MovieClip;
public var samThrow:MovieClip;
public var stateMachine:HSM;
public var hint_1:MovieClip;
public var sam_5_7:MovieClip;
public var throwYeti:MovieClip;
public var sam_4_5:MovieClip;
public var yeti:MovieClip;
public var sam_piss:MovieClip;
private var yetiAttackTime:uint;// = 0
public var btn_16b:MovieClip;
public var sam_13b_14:MovieClip;
public var lucy_tailor:MovieClip;
private var staticSam:String;// = "stand"
private var timeInterval:int;
public var darkness:MovieClip;
public var iceDoor:MovieClip;
public var girl_10_11:MovieClip;
public var btn_12:MovieClip;
public var btn_14:MovieClip;
public var btn_15:MovieClip;
public var btn_16:MovieClip;
public var btn_17:MovieClip;
private var cameraPos:uint;// = 1
public var fam_13a_16b:MovieClip;
private var thrownStone:Boolean;// = false
public var bladder:MovieClip;
public var sam_2_3:MovieClip;
public var btn_3:MovieClip;
public var btn_4:MovieClip;
public var fam:MovieClip;
public var btn_6:MovieClip;
public var btn_7:MovieClip;
public var btn_8:MovieClip;
public var btn_2:MovieClip;
private var cameraTrack:Boolean;// = false
public var btn_5:MovieClip;
public var background:MovieClip;
public var sam_16b_17:MovieClip;
public var sam_14_16b:MovieClip;
private var cont:MovieClip;
public var fam_12_13a:MovieClip;
public var sparks:MovieClip;
public var btn_9:MovieClip;
public var furs:MovieClip;
public var sam_1_2:MovieClip;
private var familyMove:uint;// = 0
public var skull:MovieClip;
private var buttonsArray:Array;
public var rock:MovieClip;
private var screenY:int;// = 0
public var hides:MovieClip;
private var screenX:int;// = 0
public var bridge:MovieClip;
public var sam_8_9:MovieClip;
private var havePiss:Boolean;// = false
private var currentSam:MovieClip;
public var sam_9a:MovieClip;
public var sam_9b:MovieClip;
public var yetichase_16a:MovieClip;
public var meteor:MovieClip;
public var sam_9c:MovieClip;
public var rocks:MovieClip;
public var sparks2:MovieClip;
public var caveYeti:MovieClip;
public var lucy_10_11:MovieClip;
public var sam_12_13b:MovieClip;
public var secretScore:uint;// = 0
public var sam_7_8:MovieClip;
public var sam:MovieClip;
public var stalectites:MovieClip;
public function Level2(_cont:MovieClip){
staticSam = "stand";
screenX = 0;
screenY = 0;
cameraTrack = false;
cameraPos = 1;
familyMove = 0;
secretScore = 0;
yetiAttackTime = 0;
meltTime = 0;
havePiss = false;
thrownStone = false;
super();
this.cont = _cont;
stateMachine = new HSM("Level2_HSM");
stateMachine.addState(new InitialState(Level2States.INITIALIZATION, null));
stateMachine.addState(new CompositeState(Level2States.POS_0, null));
stateMachine.addState(new CompositeState(Level2States.POS_1, null));
stateMachine.addState(new CompositeState(Level2States.POS_2, null));
stateMachine.addState(new CompositeState(Level2States.POS_3, null));
stateMachine.addState(new CompositeState(Level2States.POS_4, null));
stateMachine.addState(new CompositeState(Level2States.POS_5, null));
stateMachine.addState(new CompositeState(Level2States.POS_6, null));
stateMachine.addState(new CompositeState(Level2States.POS_7, null));
stateMachine.addState(new CompositeState(Level2States.POS_8, null));
stateMachine.addState(new CompositeState(Level2States.POS_9, null));
stateMachine.addState(new CompositeState(Level2States.POS_12, null));
stateMachine.addState(new CompositeState(Level2States.POS_13B, null));
stateMachine.addState(new CompositeState(Level2States.POS_14, null));
stateMachine.addState(new CompositeState(Level2States.POS_16B, null));
stateMachine.addState(new CompositeState(Level2States.POS_17, null));
stateMachine.addTransition(Level2States.INITIALIZATION, Level2States.POS_0, new SignalEvent("INIT"));
stateMachine.addTransition(Level2States.POS_0, Level2States.POS_1, new SignalEvent(Level2Events.M_0_1));
stateMachine.addTransition(Level2States.POS_1, Level2States.POS_2, new SignalEvent(Level2Events.M_1_2));
stateMachine.addTransition(Level2States.POS_2, Level2States.POS_3, new SignalEvent(Level2Events.M_2_3));
stateMachine.addTransition(Level2States.POS_3, Level2States.POS_4, new SignalEvent(Level2Events.M_3_4));
stateMachine.addTransition(Level2States.POS_4, Level2States.POS_5, new SignalEvent(Level2Events.M_4_5));
stateMachine.addTransition(Level2States.POS_5, Level2States.POS_6, new SignalEvent(Level2Events.M_5_6));
stateMachine.addTransition(Level2States.POS_5, Level2States.POS_7, new SignalEvent(Level2Events.M_5_7));
stateMachine.addTransition(Level2States.POS_6, Level2States.POS_5, new SignalEvent(Level2Events.M_6_5));
stateMachine.addTransition(Level2States.POS_6, Level2States.POS_7, new SignalEvent(Level2Events.M_6_7));
stateMachine.addTransition(Level2States.POS_7, Level2States.POS_6, new SignalEvent(Level2Events.M_7_6));
stateMachine.addTransition(Level2States.POS_7, Level2States.POS_8, new SignalEvent(Level2Events.M_7_8));
stateMachine.addTransition(Level2States.POS_8, Level2States.POS_9, new SignalEvent(Level2Events.M_8_9));
stateMachine.addTransition(Level2States.POS_9, Level2States.POS_12, new SignalEvent(Level2Events.M_9_12));
stateMachine.addTransition(Level2States.POS_12, Level2States.POS_13B, new SignalEvent(Level2Events.M_12_13B));
stateMachine.addTransition(Level2States.POS_13B, Level2States.POS_14, new SignalEvent(Level2Events.M_13B_14));
stateMachine.addTransition(Level2States.POS_13B, Level2States.POS_16B, new SignalEvent(Level2Events.M_13B_16B));
stateMachine.addTransition(Level2States.POS_14, Level2States.POS_16B, new SignalEvent(Level2Events.M_14_16B));
stateMachine.addTransition(Level2States.POS_16B, Level2States.POS_17, new SignalEvent(Level2Events.M_16B_17));
stateMachine.start();
buttonsArray = [btn_2, btn_3, btn_4, btn_5, btn_6, btn_7, btn_8, btn_9, btn_9a, btn_9b, btn_9c, btn_12, btn_13b, btn_14, btn_15, btn_16, btn_16b, btn_17];
setUpButtons();
hideHints(hint_1);
signalEvent("INIT");
currentSam = sam;
setScreen(sam.x, sam.y);
addEventListener(Event.ENTER_FRAME, frameCheck);
caveYeti.gotoAndStop(5);
fire.alpha = 0;
}
private function yetiStartAttack():void{
var rnd:uint;
yetiAttackTime = 0;
rnd = ((Math.random() * 3) + 2);
trace("ATTACK");
caveYeti.gotoAndStop(rnd);
}
public function dispose(){
var i:uint;
var btn:MovieClip;
removeEventListener(Event.ENTER_FRAME, frameCheck);
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.removeEventListener(MouseEvent.CLICK, buttonCheck);
i++;
};
stateMachine.dispose();
}
private function setUpButtons():void{
var strArray:Array;
var nameString:String;
var i:uint;
var btn:MovieClip;
var j:uint;
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.addEventListener(MouseEvent.CLICK, buttonCheck);
btn.buttonMode = true;
btn.mouseChildren = false;
btn.tabEnabled = Container.SHOW_TABS;
strArray = btn.name.split("");
j = 0;
while (j < 4) {
strArray.splice(0, 1);
j++;
};
nameString = strArray.join("");
btn.alpha = 0;
i++;
};
showButtons(new Array(btn_2));
}
private function checkMelt():void{
meltTime++;
if (meltTime == 8){
meltTime = 0;
if ((((stateMachine.currentState.name == Level2States.POS_9)) && ((girl_10_11.currentLabel == "melty")))){
iceDoor.nextFrame();
if (iceDoor.currentFrame == 30){
boys_10_11.play();
};
if (iceDoor.currentFrame == 60){
lucy_10_11.play();
};
};
};
}
private function setStaticSam():void{
cont.debugTrace(("found the end frame for -> " + currentSam.name));
sam.x = currentSam.marker.x;
sam.y = currentSam.marker.y;
currentSam.visible = false;
sam.gotoAndStop(staticSam);
sam.visible = true;
currentSam = sam;
cameraTrack = true;
cont.checkCompleteLevel();
}
private function currentState(){
cont.debugTrace(stateMachine.currentState);
}
private function signalEvent(_string:String):Boolean{
return (stateMachine.sendSignalEvent(_string));
}
private function buttonCheck(event:MouseEvent):void{
var framesAdd:uint;
var gotoFrameNum:uint;
if ((((currentSam == sam)) && (!(cont.paws)))){
switch (event.target.name){
case "btn_2":
if (signalEvent(Level2Events.M_1_2)){
showButtons(new Array(btn_3));
fam.play();
setCurrentSam(sam_1_2);
btn_2.visible = false;
meteor.play();
};
break;
case "btn_3":
if (signalEvent(Level2Events.M_2_3)){
showButtons(new Array(btn_4));
fam.play();
setCurrentSam(sam_2_3);
btn_3.visible = false;
};
break;
case "btn_4":
if (signalEvent(Level2Events.M_3_4)){
meteor.play();
showButtons(new Array(btn_5));
cont.addNotify("Picked up a Flint", "flint", cont.sounds.s_Pickup, cont.sounds.s_Happy);
sparks.alpha = 1;
sparks.play();
signalEvent(Level2Events.M_3_4);
};
break;
case "btn_5":
if (signalEvent(Level2Events.M_4_5)){
sparks.alpha = 0;
setCurrentSam(sam_4_5);
showButtons(new Array(btn_6));
};
break;
case "btn_6":
if (signalEvent(Level2Events.M_5_6)){
rocks.visible = false;
setCurrentSam(sam_5_6);
btn_6.visible = false;
showButtons(new Array(btn_7));
} else {
if (signalEvent(Level2Events.M_7_6)){
};
};
break;
case "btn_7":
if (signalEvent(Level2Events.M_6_7)){
setCurrentSam(sam_6_7);
showButtons(new Array(btn_8));
};
break;
case "btn_8":
if (signalEvent(Level2Events.M_7_8)){
showButtons(new Array(btn_9));
btn_8.visible = false;
setCurrentSam(sam_7_8);
fam_4_5.visible = false;
fam_4_5.nextFrame();
lucy_5_7.alpha = 1;
lucy_5_7.play();
};
break;
case "btn_9":
trace(("state = " + stateMachine.currentState.name));
if (signalEvent(Level2Events.M_8_9)){
showButtons(new Array(btn_9a, btn_12));
trace(("state = " + stateMachine.currentState.name));
cameraPos = 3;
btn_9.visible = false;
setCurrentSam(sam_8_9);
};
break;
case "btn_9a":
if (yeti.currentLabel == "free"){
yeti.gotoAndStop("zz");
yeti.visible = false;
caveYeti.alpha = 1;
caveYeti.yeti.gotoAndPlay("retreat2");
moveFamilyPastYeti();
setCurrentSam(sam_9b);
} else {
if (caveYeti.yeti.currentLabel == "walking"){
framesAdd = ((caveYeti.yeti.currentFrame - 7) * 0.6);
gotoFrameNum = (68 - framesAdd);
caveYeti.yeti.gotoAndPlay(gotoFrameNum);
moveFamilyPastYeti();
if (caveYeti.currentFrame == 2){
setCurrentSam(sam_9b);
};
if (caveYeti.currentFrame == 4){
setCurrentSam(sam_9a);
};
if (caveYeti.currentFrame == 3){
setCurrentSam(sam_9c);
};
};
};
break;
case "btn_12":
if (lucy_10_11.currentLabel == "end"){
if (signalEvent(Level2Events.M_9_12)){
showButtons(new Array(btn_13b));
setCurrentSam(sam_9_12);
cameraPos = 4;
btn_12.visible = false;
};
};
break;
case "btn_13b":
if (signalEvent(Level2Events.M_12_13B)){
showButtons(new Array(btn_15));
btn_13b.visible = false;
lucy_10_11.visible = false;
girl_10_11.visible = false;
boys_10_11.visible = false;
fam_12_13a.alpha = 1;
fam_12_13a.play();
if (HintsInfo.isRequestedHint_2_1){
showHint(hint_1);
HintsInfo.disableHint_2_1();
};
setCurrentSam(sam_12_13b);
};
break;
case "btn_14":
if (thrownStone){
if (signalEvent(Level2Events.M_13B_14)){
showButtons(new Array(btn_16b));
btn_14.visible = false;
havePiss = true;
setCurrentSam(sam_13b_14);
};
};
break;
case "btn_15":
if ((((currentSam == sam)) && ((stateMachine.currentState.name == Level2States.POS_13B)))){
btn_15.visible = false;
if (yetiRun_13.currentFrame < 220){
thrownStone = true;
setCurrentSam(samThrow);
showButtons(new Array(btn_14));
};
};
break;
case "btn_16":
if ((((((((currentSam == sam)) && ((stateMachine.currentState.name == Level2States.POS_16B)))) && (havePiss))) && ((bridge.currentFrame == 1)))){
setCurrentSam(sam_piss);
btn_16.visible = false;
};
break;
case "btn_16b":
if (thrownStone){
if (signalEvent(Level2Events.M_13B_16B)){
showButtons(new Array(btn_16));
setCurrentSam(sam_13b_16b);
fam_12_13a.visible = false;
fam_13a_16b.alpha = 1;
fam_13a_16b.play();
yetiRun_13.gotoAndPlay("break");
btn_16b.visible = false;
} else {
if (signalEvent(Level2Events.M_14_16B)){
showButtons(new Array(btn_16));
setCurrentSam(sam_14_16b);
fam_12_13a.visible = false;
fam_13a_16b.alpha = 1;
fam_13a_16b.play();
yetiRun_13.gotoAndPlay("break");
btn_16b.visible = false;
};
};
};
break;
case "btn_17":
if (signalEvent(Level2Events.M_16B_17)){
setCurrentSam(sam_16b_17);
fam_13a_16b.visible = false;
};
break;
};
};
}
private function checkPickups(){
if (stateMachine.currentState.name == Level2States.POS_2){
cont.addNotify("Picked up Skull", "Askull", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level2States.POS_6){
cont.addNotify("Picked up Sharp Rocks", "rock", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level2States.POS_13B){
cont.addNotify("Picked up a Rock", "rock", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level2States.POS_14){
cont.addNotify("Drank from Pouch", "pouch", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
}
private function moveFamilyPastYeti():void{
familyMove++;
switch (familyMove){
case 1:
girl_10_11.play();
break;
};
}
private function setScreen(x:int, y:int):void{
if (cameraPos == 1){
x = ((x * -1) + 50);
};
if (cameraPos == 2){
x = ((x * -1) + 550);
};
if (cameraPos == 3){
x = ((x * -1) + 300);
};
if (cameraPos == 4){
x = ((x * -1) + 550);
};
if (x > 0){
x = 0;
};
if (x < ((this.background.width * -1) + 600)){
x = ((this.background.width * -1) + 600);
};
screenX = x;
if (cameraPos == 1){
y = ((y * -1) + 250);
};
if (cameraPos == 2){
y = ((y * -1) + 350);
};
if (cameraPos == 3){
y = ((y * -1) + 350);
};
if (cameraPos == 4){
y = ((y * -1) + 350);
};
if (y > 0){
y = 0;
};
if (y < ((this.background.height * -1) + 370)){
y = ((this.background.height * -1) + 370);
};
screenY = y;
}
private function frameCheck(e:Event):void{
cont.checkTime();
if (fire.alpha == 1){
fire.play();
};
checkMelt();
if (currentSam.currentLabel == "sparks2"){
sparks2.alpha = 1;
};
if (currentSam.currentLabel == "pickup"){
checkPickups();
};
if (currentSam.currentLabel == "end"){
setStaticSam();
};
if (currentSam.currentLabel == "hideFam"){
fam.visible = false;
};
if (currentSam.currentLabel == "showHides"){
hides.alpha = 1;
};
if (currentSam.currentLabel == "hideHides"){
hides.visible = false;
};
if (currentSam.currentLabel == "pickUpSkull"){
skull.visible = false;
};
if (currentSam.currentLabel == "lightFire"){
fire.alpha = 1;
sparks2.alpha = 0;
cont.addNotify("Fire!", "fire", cont.sounds.s_Triumph);
fam_4_5.play();
};
if (lucy_5_7.currentLabel == "lucySit"){
hides.visible = false;
sam_7_8.visible = false;
lucy_5_7.visible = false;
lucy_tailor.alpha = 1;
lucy_tailor.play();
cameraPos = 2;
};
if (lucy_tailor.currentLabel == "clothesOn"){
cont.addNotify("Got Coat", "coat", cont.sounds.s_Triumph);
staticSam = "coatFire";
setStaticSam();
};
if (stateMachine.currentState.name == Level2States.POS_9){
lucy_tailor.visible = false;
};
if (samThrow.currentLabel == "end"){
sam.visible = true;
samThrow.visible = false;
stalectites.play();
yetiRun_13.gotoAndPlay("run");
};
if ((((stateMachine.currentState.name == Level2States.POS_9)) && ((((((currentSam == sam_9a)) || ((currentSam == sam_9b)))) || ((currentSam == sam_9c)))))){
if (currentSam.currentLabel == "end"){
currentSam.alpha = 0;
currentSam = sam;
currentSam.visible = true;
};
};
if ((((stateMachine.currentState.name == Level2States.POS_9)) && ((currentSam == sam)))){
lucy_10_11.alpha = 1;
girl_10_11.alpha = 1;
boys_10_11.alpha = 1;
};
if ((((stateMachine.currentState.name == Level2States.POS_4)) && ((currentSam.currentLabel == "hideFam")))){
fam.visible = false;
};
if ((((stateMachine.currentState.name == Level2States.POS_0)) && ((fam.currentFrame == 1)))){
if (fam.lucy.currentLabel == "end"){
fam.play();
};
};
if ((((((currentSam == sam)) && ((stateMachine.currentState.name == Level2States.POS_0)))) && ((fam.currentLabel == "fam")))){
signalEvent(Level2Events.M_0_1);
sam.visible = false;
meteor.play();
};
if ((((((currentSam == sam)) && ((stateMachine.currentState.name == Level2States.POS_4)))) && ((darkness.currentFrame == 1)))){
darkness.play();
};
if ((((((currentSam == sam)) && ((stateMachine.currentState.name == Level2States.POS_5)))) && ((darkness.currentLabel == "halfLight")))){
darkness.play();
};
if (((!((currentSam == sam))) && (cameraTrack))){
setScreen(currentSam.marker.x, currentSam.marker.y);
};
if (caveYeti.yeti.currentLabel == "inHole"){
caveYeti.gotoAndStop(1);
};
if (stateMachine.currentState.name == Level2States.POS_16B){
if (currentSam.currentLabel == "piss"){
showButtons(new Array(btn_17));
bridge.play();
};
};
checkScreen();
checkYeti();
}
private function setCurrentSam(mc:MovieClip):void{
sam.visible = false;
mc.marker.visible = false;
mc.visible = true;
mc.alpha = 1;
currentSam = mc;
mc.play();
}
private function checkYeti():void{
if (throwYeti.currentLabel == "pickup"){
sam.visible = false;
};
if ((((currentSam == sam)) && ((stateMachine.currentState.name == Level2States.POS_9)))){
if (yeti.currentFrame == 1){
yeti.play();
} else {
if ((((caveYeti.currentFrame == 1)) && ((yeti.currentLabel == "zz")))){
yetiAttackTime++;
if (yetiAttackTime > 60){
yetiStartAttack();
};
} else {
if (yeti.currentLabel == "attack"){
yeti.visible = false;
throwYeti.alpha = 100;
throwYeti.play();
trace("Tthro u");
} else {
if (caveYeti.yeti.currentLabel == "attack"){
caveYeti.visible = false;
throwYeti.alpha = 100;
throwYeti.play();
trace("THROW YAAAAA");
};
};
};
if (throwYeti.currentLabel == "attack"){
cont.playerDead();
};
};
};
if (currentSam.currentLabel == "hideBladder"){
bladder.visible = false;
};
if (currentSam.currentLabel == "yetiRun"){
rock.visible = false;
yetiRun_13.alpha = 1;
yetiRun_13.play();
};
if (yetiRun_13.currentLabel == "gg"){
stalectites.visible = false;
};
if (yetiRun_13.currentLabel == "yetichase"){
yetiRun_13.visible = false;
yetichase_16a.alpha = 1;
yetichase_16a.play();
};
if (yetichase_16a.currentLabel == "aboutToKill"){
btn_16.visible = false;
};
if (yetichase_16a.currentLabel == "onBridge"){
if (bridge.currentLabel == "gone"){
yetichase_16a.gotoAndPlay("fall");
};
};
if (yetiRun_13.currentLabel == "pickup"){
sam.visible = false;
};
if (yetiRun_13.currentLabel == "killed"){
cont.playerDead();
};
if ((((yetiRun_13.currentLabel == "checkHit")) && (!(thrownStone)))){
yetiRun_13.gotoAndPlay("kill");
HintsInfo.requestHint_2_1();
};
if (yetichase_16a.currentLabel == "pickup"){
sam.visible = false;
};
if (yetichase_16a.currentLabel == "killed"){
cont.playerDead();
};
}
private function checkScreen():void{
this.x = int((this.x + ((screenX - this.x) / 40)));
this.y = int((this.y + ((screenY - this.y) / 40)));
}
public function showButtons(ar:Array){
var j:uint;
var i:uint;
var btn1:MovieClip;
var btn:MovieClip;
j = 0;
while (j < buttonsArray.length) {
btn1 = buttonsArray[j];
btn1.visible = false;
j++;
};
i = 0;
while (i < ar.length) {
btn = ar[i];
btn.visible = true;
i++;
};
}
}
}//package
Section 374
//Level2Events (Level2Events)
package {
public class Level2Events {
public static const M_8_9:String = "m_8_9";
public static const M_5_6:String = "m_5_6";
public static const END_LEVEL:String = "end_level";
public static const M_7_6:String = "m_7_6";
public static const M_4_5:String = "m_4_5";
public static const M_6_7:String = "m_6_7";
public static const M_2_3:String = "m_2_3";
public static const INIT:String = "init";
public static const M_14_16B:String = "m_14_16b";
public static const M_13B_14:String = "m_13b_14";
public static const M_9_12:String = "m_9_12";
public static const M_16B_17:String = "m_16b_17";
public static const M_12_13B:String = "m_12_13b";
public static const M_0_1:String = "m_0_1";
public static const M_1_2:String = "m_1_2";
public static const M_13B_16B:String = "m_13b_16b";
public static const M_3_4:String = "m_3_4";
public static const M_6_5:String = "m_6_5";
public static const M_5_7:String = "m_5_7";
public static const M_7_8:String = "m_7_8";
public function Level2Events(){
super();
}
}
}//package
Section 375
//Level2States (Level2States)
package {
public class Level2States {
public static const POS_17:String = "pos_17";
public static const POS_12:String = "pos_12";
public static const POS_13B:String = "pos_13b";
public static const POS_14:String = "pos_14";
public static const INITIALIZATION:String = "initialization";
public static const POS_0:String = "pos_0";
public static const POS_1:String = "pos_1";
public static const POS_2:String = "pos_2";
public static const POS_3:String = "pos_3";
public static const POS_4:String = "pos_4";
public static const POS_5:String = "pos_5";
public static const POS_6:String = "pos_6";
public static const POS_7:String = "pos_7";
public static const POS_8:String = "pos_8";
public static const POS_9:String = "pos_9";
public static const POS_16B:String = "pos_16b";
public static const GAME_END:String = "game_end";
public function Level2States(){
super();
}
}
}//package
Section 376
//Level3 (Level3)
package {
import flash.events.*;
import flash.display.*;
import gamework.statemachine.hsm.*;
import flash.geom.*;
public class Level3 extends MovieClip {
public var sam_6_7:MovieClip;
public var sam_6_8:MovieClip;
public var sam_6_9:MovieClip;
public var yellowSnow:MovieClip;
public var family_0:MovieClip;
private var haveTusk:Boolean;// = false
public var walkTo:Point;
public var sam_9_10:MovieClip;
private var meltTime:uint;// = 0
public var logRolled:MovieClip;
public var sndClip:MovieClip;
public var sam_5_6:MovieClip;
public var ribs2:MovieClip;
private var haveSled:Boolean;// = false
public var sam_10_6:MovieClip;
public var sam_10_7:MovieClip;
public var sam_10_8:MovieClip;
private var haveRib:Boolean;// = false
public var sam_10_11a:MovieClip;
public var sam_10_11b:MovieClip;
private var yetiAttackTime:uint;// = 0
private var haveBoard:Boolean;// = false
public var sam_4_5:MovieClip;
public var sam_10_9:MovieClip;
public var stateMachine:HSM;
public var tusks2:MovieClip;
public var sam_15:MovieClip;
public var familyWalk_6_10:MovieClip;
public var sled2:MovieClip;
public var sled:MovieClip;
public var yetikill1:MovieClip;
public var yetikill2:MovieClip;
private var staticSam:String;// = "coat"
private var haveBone:Boolean;// = false
public var snowLog:MovieClip;
public var ribs:MovieClip;
public var familyGetOn:MovieClip;
private var haveHide:Boolean;// = false
public var sam_kicklog:MovieClip;
public var btn_13:MovieClip;
public var btn_15:MovieClip;
public var btn_10:MovieClip;
private var timeInterval:int;
private var cameraPos:uint;// = 1
public var tusks:MovieClip;
public var boardmc:MovieClip;
public var btn_0:MovieClip;
public var btn_3:MovieClip;
public var fam:MovieClip;
public var btn_6:MovieClip;
public var btn_7:MovieClip;
public var btn_8:MovieClip;
public var btn_5:MovieClip;
public var btn_4:MovieClip;
public var btn_9:MovieClip;
public var mammothLeg:MovieClip;
public var background:MovieClip;
public var sam_6_10:MovieClip;
public var btn_1:MovieClip;
public var btn_2:MovieClip;
private var cameraTrack:Boolean;// = false
public var cont:MovieClip;
public var sam_6_15:MovieClip;
public var familyOnCliff:MovieClip;
public var hide:MovieClip;
public var sam_1_2:MovieClip;
public var sam_11a_13:MovieClip;
public var sam_2_0:MovieClip;
public var familyWalk:MovieClip;
public var sam_9_6:MovieClip;
public var sam_9_8:MovieClip;
public var familyAcross:Boolean;// = false
public var sam_9_7:MovieClip;
public var sam_11a_6:MovieClip;
private var screenY:int;// = 0
public var hole1:Hole;
private var screenX:int;// = 0
private var familyMove:uint;// = 0
public var getFamilyAcross:MovieClip;
public var snow:MovieClip;
private var buttonsArray:Array;
public var sam_7_10:MovieClip;
public var sam_0_1:MovieClip;
public var sam_8_6:MovieClip;
public var sam_8_7:MovieClip;
public var walking:Boolean;// = false
public var sam_8_9:MovieClip;
public var madeIt:Boolean;// = false
public var currentSam:MovieClip;
public var family_10_11:MovieClip;
public var familyFirst:Boolean;// = false
public var sam_13_6:MovieClip;
public var yeti_12_11:MovieClip;
public var secretScore:uint;// = 0
public var family_escape:MovieClip;
public var makeSled:MovieClip;
public var sam_7_6:MovieClip;
public var sam_7_8:MovieClip;
public var sam_7_9:MovieClip;
public var currentHole:MovieClip;
public var btn_11a:MovieClip;
public var sam:MovieClip;
public var win:Hole;
public var btn_11b:MovieClip;
public var sam_8_10:MovieClip;
public var sam_snow:MovieClip;
public function Level3(_cont:MovieClip){
walkTo = new Point();
walking = false;
familyFirst = false;
familyAcross = false;
madeIt = false;
staticSam = "coat";
screenX = 0;
screenY = 0;
cameraTrack = false;
cameraPos = 1;
familyMove = 0;
secretScore = 0;
yetiAttackTime = 0;
meltTime = 0;
haveBone = false;
haveTusk = false;
haveRib = false;
haveHide = false;
haveSled = false;
haveBoard = false;
super();
this.cont = _cont;
currentHole = hole1;
stateMachine = new HSM("Level3_HSM");
stateMachine.addState(new InitialState(Level3States.INITIALIZATION, null));
stateMachine.addState(new CompositeState(Level3States.POS_0, null));
stateMachine.addState(new CompositeState(Level3States.POS_1, null));
stateMachine.addState(new CompositeState(Level3States.POS_2, null));
stateMachine.addState(new CompositeState(Level3States.POS_3, null));
stateMachine.addState(new CompositeState(Level3States.POS_3B, null));
stateMachine.addState(new CompositeState(Level3States.POS_4, null));
stateMachine.addState(new CompositeState(Level3States.POS_5, null));
stateMachine.addState(new CompositeState(Level3States.POS_6, null));
stateMachine.addState(new CompositeState(Level3States.POS_7, null));
stateMachine.addState(new CompositeState(Level3States.POS_8, null));
stateMachine.addState(new CompositeState(Level3States.POS_9, null));
stateMachine.addState(new CompositeState(Level3States.POS_10, null));
stateMachine.addState(new CompositeState(Level3States.POS_11A, null));
stateMachine.addState(new CompositeState(Level3States.POS_11B, null));
stateMachine.addState(new CompositeState(Level3States.POS_12, null));
stateMachine.addState(new CompositeState(Level3States.POS_13, null));
stateMachine.addState(new CompositeState(Level3States.POS_14, null));
stateMachine.addState(new CompositeState(Level3States.POS_15, null));
stateMachine.addState(new CompositeState(Level3States.POS_16, null));
stateMachine.addTransition(Level3States.INITIALIZATION, Level3States.POS_0, new SignalEvent("INIT"));
stateMachine.addTransition(Level3States.POS_0, Level3States.POS_1, new SignalEvent(Level3Events.M_0_1));
stateMachine.addTransition(Level3States.POS_0, Level3States.POS_3, new SignalEvent(Level3Events.M_0_3));
stateMachine.addTransition(Level3States.POS_1, Level3States.POS_2, new SignalEvent(Level3Events.M_1_2));
stateMachine.addTransition(Level3States.POS_2, Level3States.POS_0, new SignalEvent(Level3Events.M_2_0));
stateMachine.addTransition(Level3States.POS_3, Level3States.POS_3B, new SignalEvent(Level3Events.M_3_3B));
stateMachine.addTransition(Level3States.POS_3B, Level3States.POS_4, new SignalEvent(Level3Events.M_3B_4));
stateMachine.addTransition(Level3States.POS_4, Level3States.POS_5, new SignalEvent(Level3Events.M_4_5));
stateMachine.addTransition(Level3States.POS_5, Level3States.POS_6, new SignalEvent(Level3Events.M_5_6));
stateMachine.addTransition(Level3States.POS_6, Level3States.POS_7, new SignalEvent(Level3Events.M_6_7));
stateMachine.addTransition(Level3States.POS_6, Level3States.POS_8, new SignalEvent(Level3Events.M_6_8));
stateMachine.addTransition(Level3States.POS_6, Level3States.POS_9, new SignalEvent(Level3Events.M_6_9));
stateMachine.addTransition(Level3States.POS_6, Level3States.POS_10, new SignalEvent(Level3Events.M_6_10));
stateMachine.addTransition(Level3States.POS_6, Level3States.POS_15, new SignalEvent(Level3Events.M_6_15));
stateMachine.addTransition(Level3States.POS_7, Level3States.POS_6, new SignalEvent(Level3Events.M_7_6));
stateMachine.addTransition(Level3States.POS_7, Level3States.POS_8, new SignalEvent(Level3Events.M_7_8));
stateMachine.addTransition(Level3States.POS_7, Level3States.POS_9, new SignalEvent(Level3Events.M_7_9));
stateMachine.addTransition(Level3States.POS_7, Level3States.POS_10, new SignalEvent(Level3Events.M_7_10));
stateMachine.addTransition(Level3States.POS_8, Level3States.POS_7, new SignalEvent(Level3Events.M_8_7));
stateMachine.addTransition(Level3States.POS_8, Level3States.POS_6, new SignalEvent(Level3Events.M_8_6));
stateMachine.addTransition(Level3States.POS_8, Level3States.POS_9, new SignalEvent(Level3Events.M_8_9));
stateMachine.addTransition(Level3States.POS_8, Level3States.POS_10, new SignalEvent(Level3Events.M_8_10));
stateMachine.addTransition(Level3States.POS_9, Level3States.POS_6, new SignalEvent(Level3Events.M_9_6));
stateMachine.addTransition(Level3States.POS_9, Level3States.POS_7, new SignalEvent(Level3Events.M_9_7));
stateMachine.addTransition(Level3States.POS_9, Level3States.POS_8, new SignalEvent(Level3Events.M_9_8));
stateMachine.addTransition(Level3States.POS_9, Level3States.POS_10, new SignalEvent(Level3Events.M_9_10));
stateMachine.addTransition(Level3States.POS_10, Level3States.POS_6, new SignalEvent(Level3Events.M_10_6));
stateMachine.addTransition(Level3States.POS_10, Level3States.POS_7, new SignalEvent(Level3Events.M_10_7));
stateMachine.addTransition(Level3States.POS_10, Level3States.POS_8, new SignalEvent(Level3Events.M_10_8));
stateMachine.addTransition(Level3States.POS_10, Level3States.POS_9, new SignalEvent(Level3Events.M_10_9));
stateMachine.addTransition(Level3States.POS_10, Level3States.POS_11A, new SignalEvent(Level3Events.M_10_11A));
stateMachine.addTransition(Level3States.POS_10, Level3States.POS_11B, new SignalEvent(Level3Events.M_10_11B));
stateMachine.addTransition(Level3States.POS_11A, Level3States.POS_6, new SignalEvent(Level3Events.M_11A_6));
stateMachine.addTransition(Level3States.POS_11A, Level3States.POS_13, new SignalEvent(Level3Events.M_11A_13));
stateMachine.addTransition(Level3States.POS_13, Level3States.POS_6, new SignalEvent(Level3Events.M_13_6));
stateMachine.addTransition(Level3States.POS_15, Level3States.POS_16, new SignalEvent(Level3Events.M_15_16));
stateMachine.start();
buttonsArray = [btn_0, btn_1, btn_2, btn_3, btn_4, btn_5, btn_6, btn_7, btn_8, btn_9, btn_10, btn_11a, btn_11b, btn_13, btn_15, fam];
setUpButtons();
signalEvent("INIT");
sam.gotoAndStop(staticSam);
currentSam = sam;
setScreen(sam.x, sam.y);
addEventListener(Event.ENTER_FRAME, frameCheck);
}
public function dispose(){
var i:uint;
var btn:MovieClip;
sndClip.stop();
removeEventListener(Event.ENTER_FRAME, frameCheck);
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.removeEventListener(MouseEvent.CLICK, buttonCheck);
i++;
};
stateMachine.dispose();
}
private function setUpButtons():void{
var strArray:Array;
var nameString:String;
var i:uint;
var btn:MovieClip;
var j:uint;
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.addEventListener(MouseEvent.CLICK, buttonCheck);
btn.buttonMode = true;
btn.mouseChildren = false;
btn.tabEnabled = Container.SHOW_TABS;
strArray = btn.name.split("");
j = 0;
while (j < 4) {
strArray.splice(0, 1);
j++;
};
nameString = strArray.join("");
btn.alpha = 0;
i++;
};
showButtons(new Array(btn_1));
}
private function setStaticSam():void{
cont.debugTrace(("found the end frame for -> " + currentSam.name));
sam.x = currentSam.marker.x;
sam.y = currentSam.marker.y;
currentSam.visible = false;
sam.gotoAndStop(staticSam);
sam.visible = true;
currentSam = sam;
cont.checkCompleteLevel();
}
private function currentState(){
cont.debugTrace(stateMachine.currentState);
}
private function signalEvent(_string:String):Boolean{
return (stateMachine.sendSignalEvent(_string));
}
private function buttonCheck(event:MouseEvent):void{
if ((((((((currentSam == sam)) && (!(cont.paws)))) && (!(walking)))) && (familyFirst))){
switch (event.target.name){
case "fam":
if (stateMachine.currentState.name == Level3States.POS_4){
setCurrentSam(getFamilyAcross);
familyWalk.visible = false;
fam.visible = false;
};
break;
case "btn_0":
if (signalEvent(Level3Events.M_2_0)){
setCurrentSam(sam_2_0);
showButtons(new Array(btn_4));
};
break;
case "btn_1":
if (!haveBone){
showButtons(new Array(btn_2));
if (signalEvent(Level3Events.M_0_1)){
setCurrentSam(sam_0_1);
};
};
break;
case "btn_2":
if (signalEvent(Level3Events.M_1_2)){
setCurrentSam(sam_1_2);
showButtons(new Array(btn_0));
};
break;
case "btn_4":
if (madeIt){
showButtons(new Array(btn_5, fam));
btn_4.visible = false;
sam.gotoAndStop(2);
walking = true;
walkTo = new Point(btn_4.x, btn_4.y);
cameraTrack = true;
signalEvent(Level3Events.M_0_3);
signalEvent(Level3Events.M_3_3B);
signalEvent(Level3Events.M_3B_4);
};
break;
case "btn_5":
if (familyAcross){
if (signalEvent(Level3Events.M_4_5)){
showButtons(new Array(btn_6));
setCurrentSam(sam_4_5);
};
} else {
if (snow.alpha == 1){
snow.alpha = 0;
setCurrentSam(sam_snow);
};
};
break;
case "btn_6":
cameraPos = 2;
showButtons(new Array(btn_10, btn_9, btn_8, btn_7));
if ((((familyOnCliff.alpha == 1)) && ((stateMachine.currentState.name == Level3States.POS_5)))){
familyOnCliff.visible = false;
};
if (signalEvent(Level3Events.M_10_6)){
setCurrentSam(sam_10_6);
};
if (haveBoard){
if (signalEvent(Level3Events.M_13_6)){
setCurrentSam(sam_13_6);
};
} else {
if (stateMachine.currentState.name == Level3States.POS_11A){
setCurrentSam(sam_11a_6);
};
};
if (signalEvent(Level3Events.M_5_6)){
setCurrentSam(sam_5_6);
};
if (signalEvent(Level3Events.M_8_6)){
setCurrentSam(sam_8_6);
};
if (signalEvent(Level3Events.M_9_6)){
setCurrentSam(sam_9_6);
};
if (signalEvent(Level3Events.M_7_6)){
setCurrentSam(sam_7_6);
};
break;
case "btn_7":
if (!haveTusk){
if (signalEvent(Level3Events.M_10_7)){
setCurrentSam(sam_10_7);
haveTusk = true;
};
if (signalEvent(Level3Events.M_6_7)){
setCurrentSam(sam_6_7);
haveTusk = true;
};
if (signalEvent(Level3Events.M_8_7)){
setCurrentSam(sam_8_7);
haveTusk = true;
};
if (signalEvent(Level3Events.M_9_7)){
haveTusk = true;
setCurrentSam(sam_9_7);
};
if (haveTusk){
btn_7.visible = false;
};
};
break;
case "btn_8":
if (!haveRib){
if (signalEvent(Level3Events.M_10_8)){
setCurrentSam(sam_10_8);
haveRib = true;
};
if (signalEvent(Level3Events.M_6_8)){
setCurrentSam(sam_6_8);
haveRib = true;
};
if (signalEvent(Level3Events.M_7_8)){
setCurrentSam(sam_7_8);
haveRib = true;
};
if (signalEvent(Level3Events.M_9_8)){
setCurrentSam(sam_9_8);
haveRib = true;
};
if (haveRib){
btn_8.visible = false;
};
};
break;
case "btn_9":
if (!haveHide){
if (signalEvent(Level3Events.M_10_9)){
setCurrentSam(sam_10_9);
haveHide = true;
};
if (signalEvent(Level3Events.M_6_9)){
setCurrentSam(sam_6_9);
haveHide = true;
};
if (signalEvent(Level3Events.M_7_9)){
setCurrentSam(sam_7_9);
haveHide = true;
};
if (signalEvent(Level3Events.M_8_9)){
setCurrentSam(sam_8_9);
haveHide = true;
};
if (haveHide){
btn_9.visible = false;
};
};
break;
case "btn_10":
if (signalEvent(Level3Events.M_6_10)){
setCurrentSam(sam_6_10);
};
if (signalEvent(Level3Events.M_7_10)){
setCurrentSam(sam_7_10);
};
if (signalEvent(Level3Events.M_8_10)){
setCurrentSam(sam_8_10);
};
if (signalEvent(Level3Events.M_9_10)){
setCurrentSam(sam_9_10);
};
break;
case "btn_11a":
if (haveSled){
if (signalEvent(Level3Events.M_10_11A)){
cameraPos = 4;
sled.visible = false;
setCurrentSam(sam_10_11a);
} else {
if (familyGetOn.alpha == 1){
showButtons(new Array(btn_13, btn_6));
familyGetOn.alpha = 0;
family_escape.alpha = 1;
family_escape.play();
};
};
};
break;
case "btn_11b":
if (haveSled){
if (signalEvent(Level3Events.M_10_11B)){
sled.visible = false;
setCurrentSam(sam_10_11b);
};
};
break;
case "btn_13":
if (family_escape.currentFrame != 1){
if (signalEvent(Level3Events.M_11A_13)){
setCurrentSam(sam_11a_13);
haveBoard = true;
showButtons(new Array(btn_6));
};
};
break;
case "btn_15":
if (signalEvent(Level3Events.M_6_15)){
setCurrentSam(sam_6_15);
};
break;
};
trace(("currentstate = " + stateMachine.currentState.name));
};
}
private function checkPickups(){
if (stateMachine.currentState.name == Level3States.POS_2){
cont.addNotify("Picked up Bone", "bone", cont.sounds.s_Pickup, cont.sounds.s_Happy);
haveBone = true;
};
if (stateMachine.currentState.name == Level3States.POS_13){
cont.addNotify("Picked up a Board", "board", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level3States.POS_7){
cont.addNotify("Picked up Tusks", "tusks", cont.sounds.s_Pickup, cont.sounds.s_Happy);
tusks.visible = false;
};
if (stateMachine.currentState.name == Level3States.POS_8){
cont.addNotify("Picked up Ribs", "ribs", cont.sounds.s_Pickup, cont.sounds.s_Happy);
ribs.visible = false;
};
if (stateMachine.currentState.name == Level3States.POS_9){
cont.addNotify("Picked up Hide", "hide", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (((((((((haveRib) && (haveHide))) && (haveTusk))) && (!(haveSled)))) && ((stateMachine.currentState.name == Level3States.POS_10)))){
tusks2.visible = false;
ribs2.visible = false;
hide.visible = false;
currentSam.visible = false;
setCurrentSam(makeSled);
familyWalk_6_10.visible = false;
haveSled = true;
};
if (stateMachine.currentState.name == Level3States.POS_10){
if (haveTusk){
tusks2.alpha = 1;
};
if (haveRib){
ribs2.alpha = 1;
};
if (haveHide){
hide.alpha = 1;
};
};
}
private function setScreen(x:int, y:int):void{
if (cameraPos == 1){
x = ((x * -1) + 50);
};
if (cameraPos == 2){
x = ((x * -1) + 50);
};
if (cameraPos == 3){
x = ((x * -1) + 300);
};
if (cameraPos == 4){
x = ((x * -1) + 300);
};
if (x > 0){
x = 0;
};
if (x < ((this.background.width * -1) + 570)){
x = ((this.background.width * -1) + 570);
};
screenX = x;
if (cameraPos == 1){
y = ((y * -1) + 300);
};
if (cameraPos == 2){
y = ((y * -1) + 250);
};
if (cameraPos == 3){
y = ((y * -1) + 350);
};
if (cameraPos == 4){
y = ((y * -1) + 350);
};
if (y > 0){
y = 0;
};
if (y < ((this.background.height * -1) + 400)){
y = ((this.background.height * -1) + 400);
};
screenY = y;
}
private function setCurrentSam(mc:MovieClip):void{
sam.visible = false;
mc.marker.visible = false;
mc.visible = true;
mc.alpha = 1;
currentSam = mc;
mc.play();
}
private function frameCheck(e:Event):void{
var dist:int;
cont.checkTime();
if ((((yeti_12_11.currentLabel == "yetiKill")) && ((currentSam == sam)))){
yeti_12_11.gotoAndStop(1);
if (stateMachine.currentState.name == Level3States.POS_13){
setCurrentSam(yetikill2);
};
if (stateMachine.currentState.name == Level3States.POS_11A){
setCurrentSam(yetikill1);
};
};
if (family_0.currentLabel == "familyFirst"){
sam.alpha = 1;
family_0.visible = false;
familyWalk.alpha = 1;
familyFirst = true;
};
if (walking){
if (sam.x < walkTo.x){
sam.x++;
};
if (sam.x > walkTo.x){
sam.x--;
};
if (sam.y < walkTo.y){
sam.y++;
};
if (sam.y > walkTo.y){
sam.y--;
};
sam.x = int(sam.x);
sam.y = int(sam.y);
familyWalk.x = sam.x;
familyWalk.y = sam.y;
familyWalk.play();
dist = cont.getDistance(sam.x, walkTo.x, sam.y, walkTo.y);
if (dist == 0){
if (stateMachine.currentState.name == Level3States.POS_4){
sam.gotoAndStop(staticSam);
} else {
sam.gotoAndStop("testGround");
};
walking = false;
if (!haveBone){
sam.visible = false;
currentHole.play();
};
};
} else {
familyWalk.gotoAndStop(1);
};
if (currentHole.currentLabel == "dead"){
cont.playerDead();
};
if (currentSam.currentLabel == "family10"){
familyWalk_6_10.alpha = 1;
familyWalk_6_10.play();
};
if (family_10_11.currentLabel == "getOn"){
sled2.visible = false;
family_10_11.visible = false;
familyGetOn.alpha = 1;
familyGetOn.play();
yeti_12_11.alpha = 1;
yeti_12_11.play();
yellowSnow.play();
};
if (currentSam.currentLabel == "notifySled"){
familyWalk_6_10.visible = true;
sled.alpha = 1;
cont.addNotify("Made a Sled!", "sled", cont.sounds.s_Triumph);
showButtons(new Array(btn_11a));
};
if (currentSam.currentLabel == "dropSled"){
sled2.alpha = 1;
familyWalk_6_10.visible = false;
family_10_11.alpha = 1;
family_10_11.play();
};
if ((((currentSam.currentLabel == "familySwap")) || ((currentSam.currentLabel == "familySwap2")))){
if (familyOnCliff.alpha == 1){
familyOnCliff.alpha = 0;
} else {
familyOnCliff.gotoAndStop(2);
familyOnCliff.alpha = 1;
};
};
if (currentSam.currentLabel == "familyAcross"){
familyAcross = true;
familyOnCliff.alpha = 1;
};
if (currentSam.currentLabel == "pickup"){
checkPickups();
};
if (currentSam.currentLabel == "snowDrift"){
snow.play();
};
if (currentSam.currentLabel == "end"){
if (currentSam == sam_13_6){
setCurrentSam(sam_15);
} else {
setStaticSam();
};
};
if (currentSam.currentLabel == "logHide"){
snowLog.visible = false;
};
if (currentSam.currentLabel == "logRolled"){
logRolled.alpha = 1;
};
if (currentSam.currentLabel == "bonePickup"){
mammothLeg.visible = false;
};
if (currentSam.currentLabel == "pickUpBoard"){
boardmc.visible = false;
};
if (currentSam != sam){
setScreen(currentSam.marker.x, currentSam.marker.y);
};
if (cameraTrack){
checkScreen();
};
if (currentSam.currentLabel == "win"){
cont.completeLevel();
};
if (currentSam.currentLabel == "dead"){
cont.playerDead();
};
}
private function checkScreen():void{
this.x = int((this.x + ((screenX - this.x) / 40)));
this.y = int((this.y + ((screenY - this.y) / 40)));
}
public function showButtons(ar:Array){
var j:uint;
var i:uint;
var btn1:MovieClip;
var btn:MovieClip;
j = 0;
while (j < buttonsArray.length) {
btn1 = buttonsArray[j];
btn1.visible = false;
j++;
};
i = 0;
while (i < ar.length) {
btn = ar[i];
btn.visible = true;
i++;
};
}
}
}//package
Section 377
//Level3Events (Level3Events)
package {
public class Level3Events {
public static const M_8_9:String = "m_8_9";
public static const M_6_10:String = "m_6_10";
public static const M_6_8:String = "m_6_8";
public static const INIT:String = "init";
public static const M_1A_1:String = "m_1a_1";
public static const M_3B_4:String = "M_3B_4";
public static const M_9_10:String = "m_9_10";
public static const M_4_5:String = "M_4_5";
public static const M_6_7:String = "m_6_7";
public static const M_13_6:String = "m_13_6";
public static const M_11A_6:String = "m_11a_6";
public static const M_6_9:String = "m_6_9";
public static const M_3_3B:String = "M_3_3b";
public static const M_1_2:String = "M_1_2";
public static const M_10_11A:String = "m_10_11a";
public static const M_10_11B:String = "m_10_11b";
public static const M_8_10:String = "m_8_10";
public static const M_5_6:String = "m_5_6";
public static const M_7_6:String = "m_7_6";
public static const M_15_16:String = "m_15_16";
public static const M_7_8:String = "m_7_8";
public static const M_7_9:String = "m_7_9";
public static const M_9_8:String = "m_9_8";
public static const M_11A_13:String = "m_11a_13";
public static const M_9_6:String = "m_9_6";
public static const M_9_7:String = "m_9_7";
public static const M_10_6:String = "m_10_6";
public static const M_10_7:String = "m_10_7";
public static const M_10_8:String = "m_10_8";
public static const M_10_9:String = "m_10_9";
public static const m_11b_10:String = "m_11b_10";
public static const M_0_1A:String = "m_0_1a";
public static const M_7_10:String = "m_7_10";
public static const M_2_0:String = "M_2_0";
public static const M_0_3:String = "M_0_3";
public static const M_0_1:String = "m_0_1";
public static const M_2_1:String = "M_2_1";
public static const M_8_6:String = "m_8_6";
public static const M_8_7:String = "m_8_7";
public static const M_6_15:String = "m_6_15";
public function Level3Events(){
super();
}
}
}//package
Section 378
//Level3States (Level3States)
package {
public class Level3States {
public static const GAME_END:String = "game_end";
public static const POS_13:String = "pos_13";
public static const POS_15:String = "pos_15";
public static const POS_10:String = "pos_10";
public static const POS_12:String = "pos_12";
public static const POS_14:String = "pos_14";
public static const POS_11B:String = "pos_11b";
public static const POS_1A:String = "pos_1a";
public static const POS_11A:String = "pos_11a";
public static const INITIALIZATION:String = "initialization";
public static const POS_3B:String = "pos_3b";
public static const POS_0:String = "pos_0";
public static const POS_1:String = "pos_1";
public static const POS_2:String = "pos_2";
public static const POS_3:String = "pos_3";
public static const POS_4:String = "pos_4";
public static const POS_5:String = "pos_5";
public static const POS_6:String = "pos_6";
public static const POS_7:String = "pos_7";
public static const POS_8:String = "pos_8";
public static const POS_9:String = "pos_9";
public static const POS_16:String = "pos_16";
public function Level3States(){
super();
}
}
}//package
Section 379
//Level4 (Level4)
package {
import flash.events.*;
import flash.display.*;
import gamework.statemachine.hsm.*;
import flash.geom.*;
public class Level4 extends LevelBase {
public var sam_6_4:MovieClip;
public var sam_6_5:MovieClip;
public var sam_6_7:MovieClip;
public var pooMammoth:MovieClip;
public var sam_2_3a:MovieClip;
public var skullInTree:MovieClip;
public var pickUpSkull:MovieClip;
public var sam_10b_11:MovieClip;
private var meltTime:uint;// = 0
public var walkTo:Point;
public var sam_8c_7b:MovieClip;
public var sam_11_15:MovieClip;
public var sam_5_6:MovieClip;
public var sam_8c_8a:MovieClip;
public var sam_8c_8d:MovieClip;
public var sam_8c_8b:MovieClip;
public var discus14:MovieClip;
public var mammoth:MovieClip;
public var sam_7_7b:MovieClip;
public var stateMachine:HSM;
public var sam_10c_11:MovieClip;
public var sam_7b_8b:MovieClip;
public var sam_7b_8c:MovieClip;
public var hint_1:MovieClip;
public var sam_7b_8a:MovieClip;
public var sam_4_5:MovieClip;
public var sam_4_7:MovieClip;
private var staticSam:String;// = "stand"
public var guardsStart:MovieClip;
public var trees:MovieClip;
private var samJoinedCompetition:Boolean;// = false
public var twins:MovieClip;
private var yetiAttackTime:uint;// = 0
private var fruitFallen:Boolean;// = false
public var skeleton:MovieClip;
public var sam_4_6:MovieClip;
public var competitors:MovieClip;
public var crowd:MovieClip;
public var sam_8b_9:MovieClip;
public var cro_1_2:MovieClip;
private var timeInterval:int;
private var thrownBroom:Boolean;// = false
private var haveBearSkin:Boolean;// = false
public var btn_11:MovieClip;
public var btn_13:MovieClip;
public var btn_15:MovieClip;
private var haveSkull:Boolean;// = false
private var cameraPos:uint;// = 1
private var currentWeapon:String;// = "null"
public var throwBroom:MovieClip;
public var pickupFruit:MovieClip;
public var btn_4:MovieClip;
public var btn_5:MovieClip;
public var btn_6:MovieClip;
public var btn_7:MovieClip;
public var walkToCro:MovieClip;
private var cameraTrack:Boolean;// = true
public var mammothEats:MovieClip;
public var sam_3a_6:MovieClip;
public var background:MovieClip;
public var cont:MovieClip;
private var fedMammoth:Boolean;// = false
public var samSpear:MovieClip;
public var madeIt:Boolean;// = false
public var btn_9:MovieClip;
public var btn_2:MovieClip;
public var familyAcross:Boolean;// = false
public var croMag:MovieClip;
private var familyMove:uint;// = 0
public var girls:MovieClip;
public var btn_3a:MovieClip;
public var bearSkin:MovieClip;
private var screenY:int;// = 0
private var buttonsArray:Array;
public var apple:MovieClip;
private var screenX:int;// = 0
public var walking:Boolean;// = false
public var samWin:MovieClip;
public var croPoint:MovieClip;
public var sam_0_1:MovieClip;
private var haveFruit:Boolean;// = false
public var guards3:MovieClip;
public var btn_5a:MovieClip;
public var sam_8a_8b:MovieClip;
public var currentSam:MovieClip;
public var tree:MovieClip;
public var rocku:MovieClip;
public var rockv:MovieClip;
public var samDiscus:MovieClip;
public var familyFirst:Boolean;// = false
private var competitorsWaiting:Boolean;// = true
public var sam_10a_11:MovieClip;
public var btn_10b:MovieClip;
public var spearz:MovieClip;
public var secretScore:uint;// = 0
public var spearw:MovieClip;
public var sam_7_4:MovieClip;
public var btn_7b:MovieClip;
public var speary:MovieClip;
public var btn_10c:MovieClip;
public var btn_7a:MovieClip;
public var croStand:MovieClip;
public var btn_10a:MovieClip;
public var sam_4:MovieClip;
public var discusv:MovieClip;
public var samRock:MovieClip;
public var discusx:MovieClip;
public var sam:MovieClip;
public var sam_15_10b:MovieClip;
public var sam_15_10c:MovieClip;
public var btn_8b:MovieClip;
public var btn_8c:MovieClip;
public var sam_8b_10c:MovieClip;
public var btn_8a:MovieClip;
public var sam_8b_10a:MovieClip;
public var spearx:MovieClip;
public var croFlex:MovieClip;
public var btn_8d:MovieClip;
public var sam_15_10a:MovieClip;
public function Level4(_cont:MovieClip){
walkTo = new Point();
walking = false;
familyFirst = false;
familyAcross = false;
madeIt = false;
staticSam = "stand";
screenX = 0;
screenY = 0;
cameraTrack = true;
cameraPos = 1;
familyMove = 0;
secretScore = 0;
yetiAttackTime = 0;
meltTime = 0;
haveBearSkin = false;
haveFruit = false;
fruitFallen = false;
thrownBroom = false;
haveSkull = false;
fedMammoth = false;
currentWeapon = "null";
samJoinedCompetition = false;
competitorsWaiting = true;
super();
this.cont = _cont;
stateMachine = new HSM("Level4_HSM");
stateMachine.addState(new InitialState(Level4States.INITIALIZATION, null));
stateMachine.addState(new CompositeState(Level4States.POS_0, null));
stateMachine.addState(new CompositeState(Level4States.POS_1, null));
stateMachine.addState(new CompositeState(Level4States.POS_2, null));
stateMachine.addState(new CompositeState(Level4States.POS_3A, null));
stateMachine.addState(new CompositeState(Level4States.POS_4, null));
stateMachine.addState(new CompositeState(Level4States.POS_5, null));
stateMachine.addState(new CompositeState(Level4States.POS_6, null));
stateMachine.addState(new CompositeState(Level4States.POS_7, null));
stateMachine.addState(new CompositeState(Level4States.POS_7B, null));
stateMachine.addState(new CompositeState(Level4States.POS_8A, null));
stateMachine.addState(new CompositeState(Level4States.POS_8B, null));
stateMachine.addState(new CompositeState(Level4States.POS_8C, null));
stateMachine.addState(new CompositeState(Level4States.POS_8D, null));
stateMachine.addState(new CompositeState(Level4States.POS_10A, null));
stateMachine.addState(new CompositeState(Level4States.POS_10B, null));
stateMachine.addState(new CompositeState(Level4States.POS_10C, null));
stateMachine.addState(new CompositeState(Level4States.POS_11, null));
stateMachine.addState(new CompositeState(Level4States.POS_15, null));
stateMachine.addTransition(Level4States.INITIALIZATION, Level4States.POS_0, new SignalEvent("INIT"));
stateMachine.addTransition(Level4States.POS_0, Level4States.POS_1, new SignalEvent(Level4Events.M_0_1));
stateMachine.addTransition(Level4States.POS_1, Level4States.POS_2, new SignalEvent(Level4Events.M_1_2));
stateMachine.addTransition(Level4States.POS_2, Level4States.POS_3A, new SignalEvent(Level4Events.M_2_3A));
stateMachine.addTransition(Level4States.POS_3A, Level4States.POS_4, new SignalEvent(Level4Events.M_3A_4));
stateMachine.addTransition(Level4States.POS_3A, Level4States.POS_5, new SignalEvent(Level4Events.M_3A_5));
stateMachine.addTransition(Level4States.POS_3A, Level4States.POS_6, new SignalEvent(Level4Events.M_3A_6));
stateMachine.addTransition(Level4States.POS_4, Level4States.POS_5, new SignalEvent(Level4Events.M_4_5));
stateMachine.addTransition(Level4States.POS_4, Level4States.POS_6, new SignalEvent(Level4Events.M_4_6));
stateMachine.addTransition(Level4States.POS_4, Level4States.POS_7, new SignalEvent(Level4Events.M_4_7));
stateMachine.addTransition(Level4States.POS_5, Level4States.POS_6, new SignalEvent(Level4Events.M_5_6));
stateMachine.addTransition(Level4States.POS_6, Level4States.POS_4, new SignalEvent(Level4Events.M_6_4));
stateMachine.addTransition(Level4States.POS_6, Level4States.POS_5, new SignalEvent(Level4Events.M_6_5));
stateMachine.addTransition(Level4States.POS_6, Level4States.POS_7, new SignalEvent(Level4Events.M_6_7));
stateMachine.addTransition(Level4States.POS_7, Level4States.POS_4, new SignalEvent(Level4Events.M_7_4));
stateMachine.addTransition(Level4States.POS_7, Level4States.POS_7B, new SignalEvent(Level4Events.M_7_7B));
stateMachine.addTransition(Level4States.POS_7B, Level4States.POS_8C, new SignalEvent(Level4Events.M_7B_8C));
stateMachine.addTransition(Level4States.POS_7B, Level4States.POS_8A, new SignalEvent(Level4Events.M_7B_8A));
stateMachine.addTransition(Level4States.POS_7B, Level4States.POS_8B, new SignalEvent(Level4Events.M_7B_8B));
stateMachine.addTransition(Level4States.POS_8A, Level4States.POS_8B, new SignalEvent(Level4Events.M_8A_8B));
stateMachine.addTransition(Level4States.POS_8B, Level4States.POS_10A, new SignalEvent(Level4Events.M_8B_10A));
stateMachine.addTransition(Level4States.POS_8B, Level4States.POS_10B, new SignalEvent(Level4Events.M_8B_10B));
stateMachine.addTransition(Level4States.POS_8B, Level4States.POS_10C, new SignalEvent(Level4Events.M_8B_10C));
stateMachine.addTransition(Level4States.POS_8C, Level4States.POS_7B, new SignalEvent(Level4Events.M_8C_7B));
stateMachine.addTransition(Level4States.POS_8C, Level4States.POS_8A, new SignalEvent(Level4Events.M_8C_8A));
stateMachine.addTransition(Level4States.POS_8C, Level4States.POS_8B, new SignalEvent(Level4Events.M_8C_8B));
stateMachine.addTransition(Level4States.POS_8C, Level4States.POS_8D, new SignalEvent(Level4Events.M_8C_8D));
stateMachine.addTransition(Level4States.POS_10A, Level4States.POS_11, new SignalEvent(Level4Events.M_10A_11));
stateMachine.addTransition(Level4States.POS_10B, Level4States.POS_11, new SignalEvent(Level4Events.M_10B_11));
stateMachine.addTransition(Level4States.POS_10C, Level4States.POS_11, new SignalEvent(Level4Events.M_10C_11));
stateMachine.addTransition(Level4States.POS_11, Level4States.POS_15, new SignalEvent(Level4Events.M_11_15));
stateMachine.addTransition(Level4States.POS_15, Level4States.POS_10A, new SignalEvent(Level4Events.M_15_10A));
stateMachine.addTransition(Level4States.POS_15, Level4States.POS_10B, new SignalEvent(Level4Events.M_15_10B));
stateMachine.addTransition(Level4States.POS_15, Level4States.POS_10C, new SignalEvent(Level4Events.M_15_10C));
stateMachine.start();
buttonsArray = [btn_2, btn_3a, btn_4, btn_5, btn_5a, btn_6, btn_7, btn_7a, btn_7b, btn_8a, btn_8b, btn_8c, btn_8d, btn_9, btn_10a, btn_10b, btn_10c, btn_11, btn_13, btn_15];
setUpButtons();
hideHints(hint_1);
signalEvent("INIT");
currentSam = sam;
setScreen(sam.x, sam.y);
addEventListener(Event.ENTER_FRAME, frameCheck);
setCurrentSam(sam_0_1);
signalEvent(Level4Events.M_0_1);
}
public function dispose(){
var i:uint;
var btn:MovieClip;
removeEventListener(Event.ENTER_FRAME, frameCheck);
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.removeEventListener(MouseEvent.CLICK, buttonCheck);
i++;
};
stateMachine.dispose();
}
private function frameCheck(e:Event):void{
cont.checkTime();
if (currentSam.currentLabel == "croStand"){
guardsStart.alpha = 1;
setCurrentSam(walkToCro);
croStand.play();
};
if (croStand.currentLabel == "flex"){
croStand.visible = false;
croFlex.alpha = 1;
croFlex.gotoAndPlay(2);
};
if (croFlex.currentLabel == "jump"){
croFlex.visible = false;
croFlex.gotoAndStop("sto");
cro_1_2.alpha = 1;
cro_1_2.play();
};
if ((((cro_1_2.currentLabel == "point")) && ((stateMachine.currentState.name == Level4States.POS_1)))){
cro_1_2.visible = false;
cro_1_2.gotoAndStop(prevFrame);
croPoint.alpha = 1;
croPoint.play();
};
if (currentSam.currentLabel == "fin"){
mammoth.alpha = 1;
};
if ((((currentSam.currentLabel == "pokeSkull")) && ((skeleton.currentFrame == 1)))){
skeleton.gotoAndPlay(2);
};
if (currentSam.currentLabel == "firstPoke"){
currentSam.alpha = 0;
setCurrentSam(sam_4);
};
if (currentSam.currentLabel == "fruitFall"){
apple.play();
};
if (currentSam.currentLabel == "showSkullInTree"){
skullInTree.alpha = 1;
};
if (samSpear.currentLabel == "throw"){
trees.stop();
trace(trees.currentLabel);
switch (trees.currentLabel){
case "norm":
spearw.alpha = 1;
spearw.gotoAndPlay(1);
break;
case "mild":
spearx.alpha = 1;
spearx.gotoAndPlay(1);
break;
case "strong":
speary.alpha = 1;
speary.gotoAndPlay(1);
break;
};
if (HintsInfo.isRequestedHint_4_1){
showHint(hint_1);
HintsInfo.disableHint_4_1();
};
};
if (samRock.currentLabel == "throw"){
trees.stop();
trace(trees.currentLabel);
switch (trees.currentLabel){
case "norm":
rocku.alpha = 1;
rocku.gotoAndPlay(1);
break;
case "mild":
rocku.alpha = 1;
rocku.gotoAndPlay(1);
break;
case "strong":
rockv.alpha = 1;
rockv.gotoAndPlay(1);
break;
};
if (HintsInfo.isRequestedHint_4_1){
showHint(hint_1);
HintsInfo.disableHint_4_1();
};
};
if (samDiscus.currentLabel == "throw"){
trees.stop();
trace(trees.currentLabel);
switch (trees.currentLabel){
case "norm":
discusv.alpha = 1;
discusv.gotoAndPlay(1);
break;
case "mild":
discusx.alpha = 1;
discusx.gotoAndPlay(1);
break;
case "strong":
discus14.alpha = 1;
discus14.gotoAndPlay(1);
cameraPos = 5;
setScreen(sam.x, sam.y);
cameraTrack = true;
break;
};
};
if (discus14.currentLabel == "fin"){
croMag.gotoAndStop("red");
crowd.gotoAndStop("cheer");
cameraPos = 6;
setScreen(sam.x, sam.y);
setCurrentSam(samWin);
};
if ((((currentSam.currentLabel == "win")) && (!(cont.paws)))){
cont.paws = true;
cont.completeLevel();
currentSam.stop();
};
if (competitors.currentLabel == "throwSpear"){
spearw.alpha = 1;
spearw.gotoAndPlay(1);
crowd.gotoAndStop("idle");
};
if (competitors.currentLabel == "throwRock"){
rockv.alpha = 1;
rockv.gotoAndPlay(1);
crowd.gotoAndStop("idle");
};
if ((((((competitors.currentLabel == "waiting")) || ((competitors.currentLabel == "waiting2")))) || ((competitors.currentLabel == "waiting3")))){
competitorsWaiting = true;
} else {
competitorsWaiting = false;
};
if (((((competitorsWaiting) && (samJoinedCompetition))) && ((currentSam == sam)))){
competitors.gotoAndStop(1);
};
if (croMag.currentLabel == "gotoFlex"){
croMag.gotoAndStop("flex");
};
if (croMag.currentLabel == "throw"){
crowd.gotoAndStop("cheer");
spearz.alpha = 1;
spearz.gotoAndPlay(1);
};
if (currentSam.currentLabel == "end"){
setStaticSam();
};
if (currentSam.currentLabel == "pickup"){
checkPickups();
};
if (currentSam.currentLabel == "dead"){
cont.playerDead();
};
if (sam_2_3a.currentLabel == "guardSwitch"){
guards3.alpha = 1;
};
if (currentSam != sam){
setScreen(currentSam.marker.x, currentSam.marker.y);
};
if (cameraTrack){
checkScreen();
};
}
private function setUpButtons():void{
var strArray:Array;
var nameString:String;
var i:uint;
var btn:MovieClip;
var j:uint;
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.addEventListener(MouseEvent.CLICK, buttonCheck);
btn.buttonMode = true;
btn.mouseChildren = false;
btn.tabEnabled = Container.SHOW_TABS;
strArray = btn.name.split("");
j = 0;
while (j < 4) {
strArray.splice(0, 1);
j++;
};
nameString = strArray.join("");
btn.alpha = 0;
i++;
};
showButtons(new Array(btn_2));
}
private function setStaticSam():void{
tree.visible = true;
cont.debugTrace(("found the end frame for -> " + currentSam.name));
sam.x = currentSam.marker.x;
sam.y = currentSam.marker.y;
currentSam.visible = false;
sam.gotoAndStop(staticSam);
sam.visible = true;
currentSam = sam;
cont.checkCompleteLevel();
}
private function currentState(){
cont.debugTrace(stateMachine.currentState);
}
private function signalEvent(_string:String):Boolean{
return (stateMachine.sendSignalEvent(_string));
}
private function buttonCheck(event:MouseEvent):void{
trace(event.target.name);
if ((((currentSam == sam)) && (!(cont.paws)))){
switch (event.target.name){
case "btn_2":
if (signalEvent(Level4Events.M_1_2)){
if (signalEvent(Level4Events.M_2_3A)){
croPoint.gotoAndStop("noBroom");
setCurrentSam(sam_2_3a);
showButtons(new Array(btn_6));
};
};
break;
case "btn_3a":
if (signalEvent(Level4Events.M_2_3A)){
setCurrentSam(sam_2_3a);
};
break;
case "btn_4":
if (signalEvent(Level4Events.M_6_4)){
setCurrentSam(sam_6_4);
};
if (signalEvent(Level4Events.M_7_4)){
setCurrentSam(sam_7_4);
};
if ((((stateMachine.currentState.name == Level4States.POS_4)) && ((currentSam == sam)))){
pooMammoth.play();
if (!haveSkull){
skeleton.gotoAndStop("noSkull");
btn_4.visible = false;
setCurrentSam(pickUpSkull);
showButtons([btn_5, btn_6, btn_5a, btn_7]);
};
};
break;
case "btn_5a":
if ((((stateMachine.currentState.name == Level4States.POS_5)) && (!(fruitFallen)))){
fruitFallen = true;
btn_5a.visible = false;
setCurrentSam(throwBroom);
};
break;
case "btn_5":
if (((fruitFallen) && ((stateMachine.currentState.name == Level4States.POS_5)))){
setCurrentSam(pickupFruit);
btn_5.visible = false;
};
if (((!(fedMammoth)) && (!(haveFruit)))){
if (signalEvent(Level4Events.M_4_5)){
setCurrentSam(sam_4_5);
};
if (signalEvent(Level4Events.M_6_5)){
setCurrentSam(sam_6_5);
};
};
break;
case "btn_6":
if (signalEvent(Level4Events.M_4_6)){
setCurrentSam(sam_4_6);
};
if (signalEvent(Level4Events.M_5_6)){
setCurrentSam(sam_5_6);
};
if (signalEvent(Level4Events.M_3A_6)){
pooMammoth.play();
if (!haveSkull){
showButtons([btn_4]);
} else {
showButtons([btn_6, btn_5, btn_5a, btn_7]);
};
setCurrentSam(sam_3a_6);
cameraPos = 2;
croMag.play();
croPoint.visible = false;
croMag.alpha = 1;
cro_1_2.visible = false;
croStand.visible = false;
croFlex.visible = false;
};
break;
case "btn_7":
if (((fedMammoth) && (haveSkull))){
if (signalEvent(Level4Events.M_4_7)){
pooMammoth.play();
showButtons(new Array(btn_7a));
if (!haveSkull){
btn_4.visible = true;
};
setCurrentSam(sam_4_7);
};
if (signalEvent(Level4Events.M_6_7)){
pooMammoth.play();
showButtons(new Array(btn_7a));
if (!haveSkull){
btn_4.visible = true;
};
setCurrentSam(sam_6_7);
};
} else {
if (((((haveFruit) && (!(fedMammoth)))) && ((stateMachine.currentState.name == Level4States.POS_6)))){
pooMammoth.play();
fedMammoth = true;
setCurrentSam(mammothEats);
mammoth.alpha = 0;
} else {
mammoth.play();
};
};
break;
case "btn_7a":
if (haveSkull){
if (signalEvent(Level4Events.M_7_7B)){
pooMammoth.play();
setCurrentSam(sam_7_7b);
showButtons(new Array(btn_8c, btn_8a));
};
};
break;
case "btn_7b":
if (signalEvent(Level4Events.M_8C_7B)){
tree.visible = false;
setCurrentSam(sam_8c_7b);
showButtons(new Array(btn_8c, btn_8a, btn_8b));
};
break;
case "btn_8a":
if (signalEvent(Level4Events.M_7B_8A)){
showButtons(new Array(btn_8b));
setCurrentSam(sam_7b_8a);
};
if (signalEvent(Level4Events.M_8C_8A)){
showButtons(new Array(btn_8b));
tree.visible = false;
setCurrentSam(sam_8c_8a);
};
break;
case "btn_8b":
if (signalEvent(Level4Events.M_7B_8B)){
setCurrentSam(sam_7b_8b);
cameraPos = 3;
showButtons(new Array(btn_9));
};
if (signalEvent(Level4Events.M_8A_8B)){
setCurrentSam(sam_8a_8b);
cameraPos = 3;
showButtons(new Array(btn_9));
};
if (signalEvent(Level4Events.M_8C_8B)){
setCurrentSam(sam_8c_8b);
cameraPos = 3;
showButtons(new Array(btn_9));
};
break;
case "btn_8c":
if (signalEvent(Level4Events.M_7B_8C)){
tree.visible = false;
setCurrentSam(sam_7b_8c);
showButtons(new Array(btn_8d, btn_7b));
};
break;
case "btn_8d":
if (signalEvent(Level4Events.M_8C_8D)){
setCurrentSam(sam_8c_8d);
};
break;
case "btn_9":
if ((((stateMachine.currentState.name == Level4States.POS_8B)) && (!(haveBearSkin)))){
staticSam = "bearSuit";
pooMammoth.play();
haveBearSkin = true;
setCurrentSam(sam_8b_9);
showButtons(new Array(btn_10a));
bearSkin.visible = false;
};
break;
case "btn_10a":
if (((haveBearSkin) && (competitorsWaiting))){
showButtons(new Array(btn_11));
currentWeapon = "spear";
if (signalEvent(Level4Events.M_8B_10A)){
setCurrentSam(sam_8b_10a);
};
if (signalEvent(Level4Events.M_15_10A)){
setCurrentSam(sam_15_10a);
};
samJoinedCompetition = true;
};
break;
case "btn_10b":
if (((haveBearSkin) && (competitorsWaiting))){
showButtons(new Array(btn_11));
currentWeapon = "rock";
competitors.stop();
if (signalEvent(Level4Events.M_15_10B)){
setCurrentSam(sam_15_10b);
};
};
break;
case "btn_10c":
if (((haveBearSkin) && (competitorsWaiting))){
pooMammoth.play();
showButtons(new Array(btn_11));
currentWeapon = "shit";
competitors.stop();
if (signalEvent(Level4Events.M_15_10C)){
setCurrentSam(sam_15_10c);
};
};
break;
case "btn_11":
if (signalEvent(Level4Events.M_10A_11)){
showButtons(new Array(btn_13));
crowd.gotoAndStop("jeer");
cameraPos = 4;
setCurrentSam(sam_10a_11);
};
if (signalEvent(Level4Events.M_10B_11)){
showButtons(new Array(btn_13));
crowd.gotoAndStop("jeer");
cameraPos = 4;
setCurrentSam(sam_10b_11);
};
if (signalEvent(Level4Events.M_10C_11)){
showButtons(new Array(btn_13));
crowd.gotoAndStop("jeer");
cameraPos = 4;
setCurrentSam(sam_10c_11);
};
break;
case "btn_13":
if ((((((stateMachine.currentState.name == Level4States.POS_11)) && (!((currentWeapon == "null"))))) && ((croMag.currentLabel == "flex")))){
showButtons(new Array(btn_15));
trace(("tree strength = " + trees.currentLabel));
if (currentWeapon == "spear"){
setCurrentSam(samSpear);
};
if (currentWeapon == "rock"){
setCurrentSam(samRock);
};
if (currentWeapon == "shit"){
setCurrentSam(samDiscus);
};
if ((((currentWeapon == "spear")) || ((currentWeapon == "rock")))){
HintsInfo.requestHint_4_1();
trace(HintsInfo.isRequestedHint_4_1);
};
currentWeapon = "null";
};
break;
case "btn_15":
if (signalEvent(Level4Events.M_11_15)){
showButtons(new Array(btn_10a, btn_10b, btn_10c));
croMag.gotoAndPlay("pickup");
crowd.gotoAndStop("idle");
trees.play();
cameraTrack = false;
setCurrentSam(sam_11_15);
};
break;
};
trace(("currentstate = " + stateMachine.currentState.name));
};
}
private function checkPickups(){
if (stateMachine.currentState.name == Level4States.POS_5){
haveFruit = true;
apple.visible = false;
cont.addNotify("Picked up Fruit", "fruit", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level4States.POS_4){
if (!haveSkull){
haveSkull = true;
cont.addNotify("Picked up a Skull", "skull", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
};
}
private function setScreen(x:int, y:int):void{
if (cameraPos == 1){
x = ((x * -1) + 350);
};
if (cameraPos == 2){
x = ((x * -1) + 300);
};
if (cameraPos == 3){
x = ((x * -1) + 150);
};
if (cameraPos == 4){
x = ((x * -1) + 20);
};
if (cameraPos == 5){
x = ((x * -1) - 200);
};
if (cameraPos == 6){
x = ((x * -1) + 100);
};
if (x > 0){
x = 0;
};
if (x < ((this.background.width * -1) + 600)){
x = ((this.background.width * -1) + 600);
};
screenX = x;
if (cameraPos == 1){
y = ((y * -1) + 250);
};
if (cameraPos == 2){
y = ((y * -1) - 200);
};
if (cameraPos == 3){
y = ((y * -1) + 250);
};
if (cameraPos == 4){
y = ((y * -1) + 250);
};
if (cameraPos == 5){
y = ((y * -1) + 250);
};
if (cameraPos == 6){
y = ((y * -1) + 250);
};
if (y > 0){
y = 0;
};
if (y < ((this.background.height * -1) + 370)){
y = ((this.background.height * -1) + 370);
};
screenY = y;
}
private function setCurrentSam(mc:MovieClip):void{
sam.visible = false;
mc.marker.visible = false;
mc.visible = true;
mc.alpha = 1;
currentSam = mc;
mc.play();
}
private function checkScreen():void{
this.x = int((this.x + ((screenX - this.x) / 40)));
this.y = int((this.y + ((screenY - this.y) / 40)));
}
public function showButtons(ar:Array){
var j:uint;
var i:uint;
var btn1:MovieClip;
var btn:MovieClip;
j = 0;
while (j < buttonsArray.length) {
btn1 = buttonsArray[j];
btn1.visible = false;
j++;
};
i = 0;
while (i < ar.length) {
btn = ar[i];
btn.visible = true;
i++;
};
}
}
}//package
Section 380
//Level4Events (Level4Events)
package {
public class Level4Events {
public static const M_8B_10B:String = "m_8b_10b";
public static const M_8B_10C:String = "m_8b_10c";
public static const M_10C_11:String = "m_10c_11";
public static const M_6_4:String = "m_6_4";
public static const M_4_7:String = "m_4_7";
public static const M_8A_8B:String = "m_8a_8b";
public static const INIT:String = "init";
public static const M_10B_11:String = "m_10b_11";
public static const M_15_10A:String = "m_15_10a";
public static const M_15_10C:String = "m_15_10c";
public static const M_15_10B:String = "m_15_10b";
public static const M_7_7B:String = "m_7_7b";
public static const M_8C_7B:String = "m_8c_7b";
public static const M_10A_11:String = "m_10a_11";
public static const M_1_2:String = "m_1_2";
public static const M_11_15:String = "m_11_15";
public static const M_5_6:String = "m_5_6";
public static const M_7_4:String = "m_7_4";
public static const M_8C_8A:String = "m_8c_8a";
public static const M_8C_8B:String = "m_8c_8b";
public static const M_2_3A:String = "m_2_3a";
public static const M_8C_8D:String = "m_8c_8d";
public static const M_3A_4:String = "m_3a_4";
public static const M_3A_5:String = "m_3a_5:";
public static const M_3A_6:String = "m_3a_6";
public static const M_7B_8A:String = "m_7b_8a";
public static const M_7B_8B:String = "m_7b_8b";
public static const M_7B_8C:String = "m_7b_8c";
public static const M_0_1:String = "m_0_1";
public static const M_4_5:String = "m_4_5";
public static const M_4_6:String = "m_4_6";
public static const M_6_5:String = "m_6_5";
public static const M_6_7:String = "m_6_7";
public static const M_8B_10A:String = "m_8b_10a";
public function Level4Events(){
super();
}
}
}//package
Section 381
//Level4States (Level4States)
package {
public class Level4States {
public static const GAME_END:String = "game_end";
public static const POS_11:String = "pos_11";
public static const POS_15:String = "pos_15";
public static const POS_7B:String = "pos_7b";
public static const POS_3A:String = "pos_3a";
public static const INITIALIZATION:String = "initialization";
public static const POS_0:String = "pos_0";
public static const POS_1:String = "pos_1";
public static const POS_2:String = "pos_2";
public static const POS_4:String = "pos_4";
public static const POS_5:String = "pos_5";
public static const POS_6:String = "pos_6";
public static const POS_7:String = "pos_7";
public static const POS_8A:String = "pos_8a";
public static const POS_8B:String = "pos_8b";
public static const POS_8C:String = "pos_8c";
public static const POS_8D:String = "pos_8d";
public static const POS_10B:String = "pos_10b";
public static const POS_10C:String = "pos_10c";
public static const POS_10A:String = "pos_10a";
public function Level4States(){
super();
}
}
}//package
Section 382
//Level5 (Level5)
package {
import flash.events.*;
import flash.display.*;
import gamework.statemachine.hsm.*;
import flash.geom.*;
public class Level5 extends MovieClip {
public var sam_6_4:MovieClip;
public var sam_6_5:MovieClip;
private var redFruit:Boolean;// = false
public var sam_7_4a:MovieClip;
private var meltTime:uint;// = 0
public var walkTo:Point;
public var sam_7_5a:MovieClip;
public var sam_19_9:MovieClip;
public var sam_9_15:MovieClip;
public var sam_11_9:MovieClip;
public var sam_5_4:MovieClip;
public var sam_11_8:MovieClip;
public var samKicks:MovieClip;
public var mammoth_7_8:MovieClip;
public var sam_5_5:MovieClip;
public var kids:MovieClip;
public var sam_5_6:MovieClip;
public var sndClip:MovieClip;
public var mammoth:MovieClip;
public var hide17c:MovieClip;
public var hide17d:MovieClip;
public var hide17a:MovieClip;
public var obelisk:MovieClip;
public var sam_4_5:MovieClip;
public var drunkMonkey:MovieClip;
public var btn_17a:MovieClip;
public var btn_17b:MovieClip;
public var btn_17c:MovieClip;
public var btn_17d:MovieClip;
private var yetiAttackTime:uint;// = 0
public var sam_5_7:MovieClip;
public var girlHair:MovieClip;
public var hide17b:MovieClip;
public var crowd:MovieClip;
public var stateMachine:HSM;
public var sam_4_6:MovieClip;
public var spearGuy:MovieClip;
public var rockDangle:MovieClip;
public var sam_17b_22:MovieClip;
public var mammoth_6_7:MovieClip;
private var path:String;// = "null"
private var haveBone:Boolean;// = false
private var timeInterval:int;
private var haveHidea:Boolean;// = false
private var haveHidec:Boolean;// = false
public var sam_22_17d:MovieClip;
public var btn_11:MovieClip;
public var btn_13:MovieClip;
public var btn_14:MovieClip;
public var btn_10:MovieClip;
public var btn_18:MovieClip;
public var btn_15:MovieClip;
private var cameraPos:uint;// = 1
public var mehir:MovieClip;
public var sam_4_4a:MovieClip;
public var btn_21:MovieClip;
public var btn_22:MovieClip;
public var sam_18_11:MovieClip;
public var pickup17c:MovieClip;
private var haveSinew:Boolean;// = false
public var btn_5:MovieClip;
public var btn_6:MovieClip;
public var btn_7:MovieClip;
public var btn_8:MovieClip;
private var elephantKneel:Boolean;// = true
public var smallRock:MovieClip;
public var btn_4:MovieClip;
public var btn_9:MovieClip;
public var btn_1:MovieClip;
private var fedMammoth:Boolean;// = false
public var sam_13_12b:MovieClip;
public var background:MovieClip;
public var madeIt:Boolean;// = false
public var sam_17c_21:MovieClip;
public var cont:MovieClip;
private var haveHided:Boolean;// = false
private var cameraTrack:Boolean;// = true
private var fruitDrop:Boolean;// = false
public var sam_1_5:MovieClip;
public var sam_1_6:MovieClip;
public var samSpear:MovieClip;
public var sam_1_4:MovieClip;
public var samNeedle:MovieClip;
public var sam_1_1:MovieClip;
public var croMag:MovieClip;
public var mammothGetUp:MovieClip;
public var familyAcross:Boolean;// = false
private var screenY:int;// = 0
public var btn_4a:MovieClip;
public var sam_17a_17c:MovieClip;
private var screenX:int;// = 0
public var sam_5_5a:MovieClip;
private var familyMove:uint;// = 0
private var haveVine:Boolean;// = false
public var walking:Boolean;// = false
private var buttonsArray:Array;
public var sam_12b_9:MovieClip;
private var haveHideb:Boolean;// = false
public var sam_0_1:MovieClip;
public var sam_4a_6:MovieClip;
public var sam_4a_7:MovieClip;
public var sinew:MovieClip;
public var sam_1_17b:MovieClip;
public var btn_5a:MovieClip;
public var mammoth_6_17c:MovieClip;
public var currentSam:MovieClip;
public var familyFirst:Boolean;// = false
public var tree:MovieClip;
private var dumpedHides:Boolean;// = false
public var secretScore:uint;// = 0
public var sam_21_18:MovieClip;
public var sam_7_8:MovieClip;
public var sam_15_14:MovieClip;
private var haveKite:Boolean;// = false
public var sam_17d_17a:MovieClip;
public var sam_10_13:MovieClip;
public var sam_5a_6:MovieClip;
public var sam_5a_7:MovieClip;
public var sam_7_5:MovieClip;
public var sam:MovieClip;
public var sam_8_11:MovieClip;
private var appleHave:String;// = "null"
public var sam_8_10:MovieClip;
public var appleFall:MovieClip;
public var btn_12b:MovieClip;
public function Level5(_cont:MovieClip){
walkTo = new Point();
walking = false;
familyFirst = false;
familyAcross = false;
madeIt = false;
screenX = 0;
screenY = 0;
cameraTrack = true;
cameraPos = 1;
familyMove = 0;
secretScore = 0;
yetiAttackTime = 0;
meltTime = 0;
path = "null";
appleHave = "null";
elephantKneel = true;
haveHidea = false;
haveHideb = false;
haveHidec = false;
haveHided = false;
haveSinew = false;
haveBone = false;
dumpedHides = false;
haveVine = false;
haveKite = false;
redFruit = false;
fedMammoth = false;
fruitDrop = false;
super();
this.cont = _cont;
stateMachine = new HSM("Level4_HSM");
stateMachine.addState(new InitialState(Level5States.INITIALIZATION, null));
stateMachine.addState(new CompositeState(Level5States.POS_0, null));
stateMachine.addState(new CompositeState(Level5States.POS_1, null));
stateMachine.addState(new CompositeState(Level5States.POS_4, null));
stateMachine.addState(new CompositeState(Level5States.POS_4A, null));
stateMachine.addState(new CompositeState(Level5States.POS_5, null));
stateMachine.addState(new CompositeState(Level5States.POS_5A, null));
stateMachine.addState(new CompositeState(Level5States.POS_6, null));
stateMachine.addState(new CompositeState(Level5States.POS_7, null));
stateMachine.addState(new CompositeState(Level5States.POS_8, null));
stateMachine.addState(new CompositeState(Level5States.POS_9, null));
stateMachine.addState(new CompositeState(Level5States.POS_10, null));
stateMachine.addState(new CompositeState(Level5States.POS_11, null));
stateMachine.addState(new CompositeState(Level5States.POS_12B, null));
stateMachine.addState(new CompositeState(Level5States.POS_13, null));
stateMachine.addState(new CompositeState(Level5States.POS_14, null));
stateMachine.addState(new CompositeState(Level5States.POS_15, null));
stateMachine.addState(new CompositeState(Level5States.POS_17A, null));
stateMachine.addState(new CompositeState(Level5States.POS_17B, null));
stateMachine.addState(new CompositeState(Level5States.POS_17C, null));
stateMachine.addState(new CompositeState(Level5States.POS_17D, null));
stateMachine.addState(new CompositeState(Level5States.POS_18, null));
stateMachine.addState(new CompositeState(Level5States.POS_19, null));
stateMachine.addState(new CompositeState(Level5States.POS_21, null));
stateMachine.addState(new CompositeState(Level5States.POS_22, null));
stateMachine.addTransition(Level5States.INITIALIZATION, Level5States.POS_0, new SignalEvent("INIT"));
stateMachine.addTransition(Level5States.POS_0, Level5States.POS_1, new SignalEvent(Level5Events.M_0_1));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_1, new SignalEvent(Level5Events.M_1_1));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_4, new SignalEvent(Level5Events.M_1_4));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_5, new SignalEvent(Level5Events.M_1_5));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_6, new SignalEvent(Level5Events.M_1_6));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_17A, new SignalEvent(Level5Events.M_1_17A));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_17B, new SignalEvent(Level5Events.M_1_17B));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_17C, new SignalEvent(Level5Events.M_1_17C));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_17D, new SignalEvent(Level5Events.M_1_17D));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_21, new SignalEvent(Level5Events.M_1_21));
stateMachine.addTransition(Level5States.POS_1, Level5States.POS_22, new SignalEvent(Level5Events.M_1_22));
stateMachine.addTransition(Level5States.POS_4, Level5States.POS_4A, new SignalEvent(Level5Events.M_4_4A));
stateMachine.addTransition(Level5States.POS_4, Level5States.POS_5, new SignalEvent(Level5Events.M_4_5));
stateMachine.addTransition(Level5States.POS_4, Level5States.POS_6, new SignalEvent(Level5Events.M_4_6));
stateMachine.addTransition(Level5States.POS_4A, Level5States.POS_6, new SignalEvent(Level5Events.M_4A_6));
stateMachine.addTransition(Level5States.POS_4A, Level5States.POS_7, new SignalEvent(Level5Events.M_4A_7));
stateMachine.addTransition(Level5States.POS_5, Level5States.POS_17C, new SignalEvent(Level5Events.M_5_17C));
stateMachine.addTransition(Level5States.POS_5, Level5States.POS_4, new SignalEvent(Level5Events.M_5_4));
stateMachine.addTransition(Level5States.POS_5, Level5States.POS_5, new SignalEvent(Level5Events.M_5_5));
stateMachine.addTransition(Level5States.POS_5, Level5States.POS_5A, new SignalEvent(Level5Events.M_5_5A));
stateMachine.addTransition(Level5States.POS_5, Level5States.POS_6, new SignalEvent(Level5Events.M_5_6));
stateMachine.addTransition(Level5States.POS_5A, Level5States.POS_6, new SignalEvent(Level5Events.M_5A_6));
stateMachine.addTransition(Level5States.POS_6, Level5States.POS_7, new SignalEvent(Level5Events.M_6_7));
stateMachine.addTransition(Level5States.POS_6, Level5States.POS_4, new SignalEvent(Level5Events.M_6_4));
stateMachine.addTransition(Level5States.POS_6, Level5States.POS_5, new SignalEvent(Level5Events.M_6_5));
stateMachine.addTransition(Level5States.POS_7, Level5States.POS_4A, new SignalEvent(Level5Events.M_7_4A));
stateMachine.addTransition(Level5States.POS_7, Level5States.POS_5, new SignalEvent(Level5Events.M_7_5));
stateMachine.addTransition(Level5States.POS_7, Level5States.POS_5A, new SignalEvent(Level5Events.M_7_5A));
stateMachine.addTransition(Level5States.POS_7, Level5States.POS_8, new SignalEvent(Level5Events.M_7_8));
stateMachine.addTransition(Level5States.POS_8, Level5States.POS_10, new SignalEvent(Level5Events.M_8_10));
stateMachine.addTransition(Level5States.POS_8, Level5States.POS_11, new SignalEvent(Level5Events.M_8_11));
stateMachine.addTransition(Level5States.POS_9, Level5States.POS_15, new SignalEvent(Level5Events.M_9_15));
stateMachine.addTransition(Level5States.POS_10, Level5States.POS_13, new SignalEvent(Level5Events.M_10_13));
stateMachine.addTransition(Level5States.POS_11, Level5States.POS_18, new SignalEvent(Level5Events.M_11_18));
stateMachine.addTransition(Level5States.POS_11, Level5States.POS_9, new SignalEvent(Level5Events.M_11_9));
stateMachine.addTransition(Level5States.POS_11, Level5States.POS_8, new SignalEvent(Level5Events.M_11_8));
stateMachine.addTransition(Level5States.POS_12B, Level5States.POS_9, new SignalEvent(Level5Events.M_12B_9));
stateMachine.addTransition(Level5States.POS_13, Level5States.POS_12B, new SignalEvent(Level5Events.M_13_12));
stateMachine.addTransition(Level5States.POS_15, Level5States.POS_14, new SignalEvent(Level5Events.M_15_14));
stateMachine.addTransition(Level5States.POS_17A, Level5States.POS_17B, new SignalEvent(Level5Events.M_17A_17B));
stateMachine.addTransition(Level5States.POS_17A, Level5States.POS_17C, new SignalEvent(Level5Events.M_17A_17C));
stateMachine.addTransition(Level5States.POS_17A, Level5States.POS_17D, new SignalEvent(Level5Events.M_17A_17D));
stateMachine.addTransition(Level5States.POS_17A, Level5States.POS_18, new SignalEvent(Level5Events.M_17A_18));
stateMachine.addTransition(Level5States.POS_17A, Level5States.POS_21, new SignalEvent(Level5Events.M_17A_21));
stateMachine.addTransition(Level5States.POS_17A, Level5States.POS_22, new SignalEvent(Level5Events.M_17A_22));
stateMachine.addTransition(Level5States.POS_17B, Level5States.POS_17A, new SignalEvent(Level5Events.M_17B_17A));
stateMachine.addTransition(Level5States.POS_17B, Level5States.POS_17C, new SignalEvent(Level5Events.M_17B_17C));
stateMachine.addTransition(Level5States.POS_17B, Level5States.POS_17D, new SignalEvent(Level5Events.M_17B_17D));
stateMachine.addTransition(Level5States.POS_17B, Level5States.POS_18, new SignalEvent(Level5Events.M_17B_18));
stateMachine.addTransition(Level5States.POS_17B, Level5States.POS_21, new SignalEvent(Level5Events.M_17B_21));
stateMachine.addTransition(Level5States.POS_17B, Level5States.POS_22, new SignalEvent(Level5Events.M_17B_22));
stateMachine.addTransition(Level5States.POS_17C, Level5States.POS_17A, new SignalEvent(Level5Events.M_17C_17A));
stateMachine.addTransition(Level5States.POS_17C, Level5States.POS_17B, new SignalEvent(Level5Events.M_17C_17B));
stateMachine.addTransition(Level5States.POS_17C, Level5States.POS_17C, new SignalEvent(Level5Events.M_17C_17D));
stateMachine.addTransition(Level5States.POS_17C, Level5States.POS_18, new SignalEvent(Level5Events.M_17C_18));
stateMachine.addTransition(Level5States.POS_17C, Level5States.POS_21, new SignalEvent(Level5Events.M_17C_21));
stateMachine.addTransition(Level5States.POS_17C, Level5States.POS_22, new SignalEvent(Level5Events.M_17C_22));
stateMachine.addTransition(Level5States.POS_17D, Level5States.POS_17A, new SignalEvent(Level5Events.M_17D_17A));
stateMachine.addTransition(Level5States.POS_17D, Level5States.POS_17B, new SignalEvent(Level5Events.M_17D_17B));
stateMachine.addTransition(Level5States.POS_17D, Level5States.POS_17C, new SignalEvent(Level5Events.M_17D_17C));
stateMachine.addTransition(Level5States.POS_17D, Level5States.POS_18, new SignalEvent(Level5Events.M_17D_18));
stateMachine.addTransition(Level5States.POS_17D, Level5States.POS_21, new SignalEvent(Level5Events.M_17D_21));
stateMachine.addTransition(Level5States.POS_17D, Level5States.POS_22, new SignalEvent(Level5Events.M_17D_22));
stateMachine.addTransition(Level5States.POS_18, Level5States.POS_11, new SignalEvent(Level5Events.M_18_11));
stateMachine.addTransition(Level5States.POS_19, Level5States.POS_19, new SignalEvent(Level5Events.M_19_9));
stateMachine.addTransition(Level5States.POS_21, Level5States.POS_17A, new SignalEvent(Level5Events.M_21_17A));
stateMachine.addTransition(Level5States.POS_21, Level5States.POS_17B, new SignalEvent(Level5Events.M_21_17B));
stateMachine.addTransition(Level5States.POS_21, Level5States.POS_17C, new SignalEvent(Level5Events.M_21_17C));
stateMachine.addTransition(Level5States.POS_21, Level5States.POS_17D, new SignalEvent(Level5Events.M_21_17D));
stateMachine.addTransition(Level5States.POS_21, Level5States.POS_18, new SignalEvent(Level5Events.M_21_18));
stateMachine.addTransition(Level5States.POS_21, Level5States.POS_22, new SignalEvent(Level5Events.M_21_22));
stateMachine.addTransition(Level5States.POS_22, Level5States.POS_17A, new SignalEvent(Level5Events.M_22_17A));
stateMachine.addTransition(Level5States.POS_22, Level5States.POS_17B, new SignalEvent(Level5Events.M_22_17B));
stateMachine.addTransition(Level5States.POS_22, Level5States.POS_17C, new SignalEvent(Level5Events.M_22_17C));
stateMachine.addTransition(Level5States.POS_22, Level5States.POS_17D, new SignalEvent(Level5Events.M_22_17D));
stateMachine.addTransition(Level5States.POS_22, Level5States.POS_18, new SignalEvent(Level5Events.M_22_18));
stateMachine.addTransition(Level5States.POS_22, Level5States.POS_21, new SignalEvent(Level5Events.M_22_21));
stateMachine.start();
buttonsArray = [btn_1, btn_4, btn_4a, btn_5, btn_5a, btn_6, btn_7, btn_8, btn_9, btn_10, btn_11, btn_12b, btn_13, btn_14, btn_15, btn_17a, btn_17b, btn_17c, btn_17d, btn_18, btn_21, btn_22];
setUpButtons();
signalEvent("INIT");
currentSam = sam;
setScreen(sam.x, sam.y);
addEventListener(Event.ENTER_FRAME, frameCheck);
}
private function checkMammothSetting():void{
if ((((stateMachine.currentState.name == Level5States.POS_8)) && (haveVine))){
mammoth_7_8.gotoAndStop("pos8");
};
if ((((stateMachine.currentState.name == Level5States.POS_10)) && (haveVine))){
mammoth_7_8.gotoAndStop("pos10");
};
if ((((stateMachine.currentState.name == Level5States.POS_13)) && (haveVine))){
mammoth_7_8.gotoAndStop("pos13");
};
if ((((stateMachine.currentState.name == Level5States.POS_12B)) && (haveVine))){
mammoth_7_8.gotoAndStop("pos12b");
};
if ((((stateMachine.currentState.name == Level5States.POS_9)) && (haveVine))){
mammoth_7_8.gotoAndStop("pos");
};
}
public function dispose(){
var i:uint;
var btn:MovieClip;
sndClip.stop();
removeEventListener(Event.ENTER_FRAME, frameCheck);
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.removeEventListener(MouseEvent.CLICK, buttonCheck);
i++;
};
stateMachine.dispose();
}
public function showButtons(ar:Array){
var j:uint;
var i:uint;
var btn1:MovieClip;
var btn:MovieClip;
j = 0;
while (j < buttonsArray.length) {
btn1 = buttonsArray[j];
btn1.visible = false;
j++;
};
i = 0;
while (i < ar.length) {
btn = ar[i];
btn.visible = true;
i++;
};
}
private function setUpButtons():void{
var strArray:Array;
var nameString:String;
var i:uint;
var btn:MovieClip;
var j:uint;
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.addEventListener(MouseEvent.CLICK, buttonCheck);
btn.buttonMode = true;
btn.mouseChildren = false;
btn.tabEnabled = Container.SHOW_TABS;
strArray = btn.name.split("");
j = 0;
while (j < 4) {
strArray.splice(0, 1);
j++;
};
nameString = strArray.join("");
btn.alpha = 0;
i++;
};
showButtons(new Array(btn_1));
}
private function setStaticSam():void{
cont.debugTrace(("found the end frame for -> " + currentSam.name));
sam.x = currentSam.marker.x;
sam.y = currentSam.marker.y;
currentSam.visible = false;
sam.visible = true;
currentSam = sam;
cont.checkCompleteLevel();
if (path == "mammoth"){
checkMammothSetting();
};
}
private function currentState(){
cont.debugTrace(stateMachine.currentState);
}
private function signalEvent(_string:String):Boolean{
return (stateMachine.sendSignalEvent(_string));
}
private function checkPickups(){
if ((((stateMachine.currentState.name == Level5States.POS_17A)) && (!(haveHidea)))){
cont.addNotify("Picked up Hide", "hide", cont.sounds.s_Pickup, cont.sounds.s_Happy);
hide17a.visible = false;
haveHidea = true;
};
if ((((stateMachine.currentState.name == Level5States.POS_17B)) && (!(haveHideb)))){
cont.addNotify("Picked up Hide", "hide", cont.sounds.s_Pickup, cont.sounds.s_Happy);
hide17b.visible = false;
haveHideb = true;
};
if ((((((stateMachine.currentState.name == Level5States.POS_17C)) && (!(elephantKneel)))) && (!(haveHidec)))){
cont.addNotify("Picked up Hide", "hide", cont.sounds.s_Pickup, cont.sounds.s_Happy);
hide17c.visible = false;
haveHidec = true;
};
if ((((stateMachine.currentState.name == Level5States.POS_17D)) && (!(haveHided)))){
cont.addNotify("Picked up Hide", "hide", cont.sounds.s_Pickup, cont.sounds.s_Happy);
hide17d.visible = false;
haveHided = true;
};
if ((((stateMachine.currentState.name == Level5States.POS_21)) && (!(haveSinew)))){
cont.addNotify("Picked up Sinew", "sinew", cont.sounds.s_Pickup, cont.sounds.s_Happy);
sinew.visible = false;
haveSinew = true;
};
if (stateMachine.currentState.name == Level5States.POS_22){
cont.addNotify("Picked up Bone Needle", "needle", cont.sounds.s_Pickup, cont.sounds.s_Happy);
haveBone = true;
};
if ((((stateMachine.currentState.name == Level5States.POS_18)) && (!(dumpedHides)))){
dumpedHides = true;
};
if ((((((stateMachine.currentState.name == Level5States.POS_18)) && (haveVine))) && (!(haveKite)))){
cont.addNotify("Made a Kite!", "kite", cont.sounds.s_Triumph);
haveKite = true;
};
if ((((stateMachine.currentState.name == Level5States.POS_11)) && (!(haveVine)))){
cont.addNotify("Picked up Vine", "vine", cont.sounds.s_Pickup, cont.sounds.s_Happy);
haveVine = true;
};
if (stateMachine.currentState.name == Level5States.POS_18){
cont.addNotify("Made a Kite!", "kite", cont.sounds.s_Triumph);
};
if (stateMachine.currentState.name == Level5States.POS_5A){
cont.addNotify("Picked up Red Fruit", "fruit", cont.sounds.s_Pickup, cont.sounds.s_Happy);
appleFall.alpha = 0;
appleHave = "red";
redFruit = false;
};
if (stateMachine.currentState.name == Level5States.POS_4A){
cont.addNotify("Picked up Green Fruit", "Gfruit", cont.sounds.s_Pickup, cont.sounds.s_Happy);
appleHave = "green";
};
if (stateMachine.currentState.name == Level5States.POS_15){
spearGuy.gotoAndStop(2);
spearGuy.visible = true;
cont.addNotify("Got a Spear", "spear", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level5States.POS_10){
cont.addNotify("Picked up a Rock", "rock", cont.sounds.s_Pickup, cont.sounds.s_Happy);
smallRock.visible = false;
};
}
private function moveMammoth():void{
if (mammoth_6_17c.currentFrame == 1){
mammoth_6_17c.alpha = 1;
mammoth_6_17c.play();
mammoth.visible = false;
};
}
private function setScreen(x:int, y:int):void{
if (cameraPos == 1){
x = ((x * -1) + 300);
};
if (cameraPos == 2){
x = ((x * -1) + 400);
};
if (cameraPos == 3){
x = ((x * -1) + 500);
};
if (cameraPos == 4){
x = ((x * -1) - 500);
};
if (cameraPos == 5){
x = ((x * -1) + 300);
};
if (x > 0){
x = 0;
};
if (x < ((this.background.width * -1) + 600)){
x = ((this.background.width * -1) + 600);
};
screenX = x;
if (cameraPos == 1){
y = ((y * -1) + 300);
};
if (cameraPos == 2){
y = ((y * -1) - 200);
};
if (cameraPos == 3){
y = ((y * -1) - 200);
};
if (cameraPos == 4){
y = ((y * -1) + 200);
};
if (cameraPos == 5){
y = ((y * -1) + 400);
};
if (y > 0){
y = 0;
};
if (y < ((this.background.height * -1) + 370)){
y = ((this.background.height * -1) + 370);
};
screenY = y;
}
private function frameCheck(e:Event):void{
cont.checkTime();
if (croMag.currentLabel == "croFeet"){
showButtons(new Array(btn_17b, btn_5));
};
if (currentSam.currentLabel == "hideTree"){
tree.visible = false;
};
if (currentSam.currentLabel == "showTree"){
tree.visible = true;
};
if (currentSam.currentLabel == "fruitFall"){
appleFall.gotoAndPlay(1);
appleFall.alpha = 1;
};
if (currentSam.currentLabel == "hidefruit"){
checkPickups();
appleFall.alpha = 0;
};
if (currentSam.currentLabel == "samCheer"){
crowd.gotoAndStop("cheer");
};
if (currentSam.currentLabel == "hideDangle"){
rockDangle.visible = false;
};
if (currentSam.currentLabel == "showDangle"){
rockDangle.alpha = 1;
};
if (currentSam.currentLabel == "setHair"){
currentSam.visible = false;
setCurrentSam(samNeedle);
};
if (currentSam.currentLabel == "hairExplode"){
haveBone = true;
girlHair.play();
};
if (currentSam.currentLabel == "end"){
setStaticSam();
};
if (currentSam.currentLabel == "pickup"){
checkPickups();
};
if (currentSam.currentLabel == "elephantUp"){
elephantKneel = false;
mammoth_6_17c.alpha = 1;
};
if (currentSam.currentLabel == "croMagStart"){
btn_1.visible = false;
croMag.play();
};
if (croMag.currentLabel == "hideBigRock"){
crowd.gotoAndStop("cheer");
mehir.visible = false;
};
if (currentSam.currentLabel == "hideObelisk"){
obelisk.visible = false;
};
if (currentSam.currentLabel == "panUp"){
cameraPos = 5;
};
if (currentSam.currentLabel == "win"){
drunkMonkey.gotoAndStop(1);
cont.completeLevel();
};
if (currentSam.currentLabel == "whack"){
currentSam.visible = false;
mammoth.gotoAndPlay("whack");
};
if (currentSam.currentLabel == "hideMammoth"){
mammoth.visible = false;
};
if (currentSam.currentLabel == "showMammoth"){
mammoth.gotoAndStop("stand");
if (appleHave == "green"){
mammoth.gotoAndStop("drunk");
};
if (appleHave == "red"){
fedMammoth = true;
mammoth.gotoAndStop("stand");
showButtons(new Array(btn_7));
};
mammoth.visible = true;
};
if (currentSam.currentLabel == "spear"){
sam_15_14.visible = false;
mammoth_7_8.visible = false;
obelisk.visible = false;
setCurrentSam(samSpear);
};
if (currentSam.currentLabel == "fruitDrop"){
mammoth.visible = false;
mammoth_6_7.alpha = 1;
mammoth_6_7.play();
fruitDrop = true;
cameraPos = 3;
};
if (currentSam.currentLabel == "showTie"){
obelisk.tie.alpha = 1;
};
if (mammoth.currentLabel == "end"){
cont.playerDead();
};
if (currentSam != sam){
setScreen(currentSam.marker.x, currentSam.marker.y);
};
if (cameraTrack){
checkScreen();
};
}
private function buttonCheck(event:MouseEvent):void{
if ((((currentSam == sam)) && (!(cont.paws)))){
switch (event.target.name){
case "btn_1":
if (signalEvent(Level5Events.M_0_1)){
setCurrentSam(sam_0_1);
};
break;
case "btn_5":
if (signalEvent(Level5Events.M_5_5)){
showButtons(new Array(btn_5a, btn_6));
setCurrentSam(sam_5_5);
redFruit = true;
};
if (signalEvent(Level5Events.M_1_5)){
showButtons(new Array(btn_5, btn_5a, btn_6));
setCurrentSam(sam_1_5);
path = "mammoth";
remove17();
cameraPos = 4;
};
if (signalEvent(Level5Events.M_7_5)){
showButtons(new Array(btn_5));
setCurrentSam(sam_7_5);
};
if (path == "mammoth"){
if (signalEvent(Level5Events.M_4_5)){
showButtons(new Array(btn_5));
setCurrentSam(sam_4_5);
};
if (signalEvent(Level5Events.M_6_5)){
showButtons(new Array(btn_5));
setCurrentSam(sam_6_5);
};
};
break;
case "btn_5a":
if (redFruit){
crowd.gotoAndStop("idle");
if (signalEvent(Level5Events.M_5_5A)){
showButtons(new Array(btn_6));
setCurrentSam(sam_5_5a);
};
if (signalEvent(Level5Events.M_7_5A)){
showButtons(new Array(btn_6));
setCurrentSam(sam_7_5a);
};
};
break;
case "btn_6":
if (path == "mammoth"){
if (signalEvent(Level5Events.M_5A_6)){
setCurrentSam(sam_5a_6);
};
};
break;
case "btn_7":
if (signalEvent(Level5Events.M_6_7)){
showButtons(new Array(btn_8));
setCurrentSam(sam_5a_7);
};
break;
case "btn_8":
if ((((path == "mammoth")) && ((mammoth_6_7.currentLabel == "waitForMaster")))){
if (signalEvent(Level5Events.M_7_8)){
showButtons(new Array(btn_11));
setCurrentSam(sam_7_8);
mammoth_6_7.visible = false;
mammoth_7_8.alpha = 1;
mammoth_7_8.play();
cameraPos = 5;
};
if (signalEvent(Level5Events.M_11_8)){
showButtons(new Array(btn_10));
setCurrentSam(sam_11_8);
};
};
break;
case "btn_9":
if (path == "kite"){
if (signalEvent(Level5Events.M_11_9)){
setCurrentSam(sam_11_9);
};
if (signalEvent(Level5Events.M_19_9)){
showButtons(new Array(btn_11));
setCurrentSam(sam_19_9);
};
};
if (signalEvent(Level5Events.M_12B_9)){
showButtons(new Array(btn_15));
setCurrentSam(sam_12b_9);
};
break;
case "btn_10":
if (haveVine){
if (signalEvent(Level5Events.M_8_10)){
showButtons(new Array(btn_13));
setCurrentSam(sam_8_10);
};
};
break;
case "btn_11":
if (signalEvent(Level5Events.M_8_11)){
showButtons(new Array(btn_8));
setCurrentSam(sam_8_11);
};
if (signalEvent(Level5Events.M_18_11)){
showButtons(new Array(btn_9));
setCurrentSam(sam_18_11);
};
break;
case "btn_12b":
if (signalEvent(Level5Events.M_13_12)){
showButtons(new Array(btn_9));
setCurrentSam(sam_13_12b);
};
break;
case "btn_13":
if (signalEvent(Level5Events.M_10_13)){
showButtons(new Array(btn_12b));
setCurrentSam(sam_10_13);
};
break;
case "btn_14":
if (signalEvent(Level5Events.M_15_14)){
setCurrentSam(sam_15_14);
};
break;
case "btn_15":
if (signalEvent(Level5Events.M_9_15)){
showButtons(new Array(btn_14));
setCurrentSam(sam_9_15);
spearGuy.visible = false;
};
break;
case "btn_17a":
if (path == "kite"){
crowd.gotoAndStop("idle");
cameraPos = 2;
showButtons(new Array(btn_17c));
if (signalEvent(Level5Events.M_17D_17A)){
setCurrentSam(sam_17d_17a);
};
};
break;
case "btn_17b":
if (signalEvent(Level5Events.M_1_17B)){
setCurrentSam(sam_1_17b);
path = "kite";
moveMammoth();
showButtons(new Array(btn_22));
};
break;
case "btn_17c":
if (haveHidea){
if (path == "kite"){
cameraPos = 3;
if (signalEvent(Level5Events.M_17A_17C)){
setCurrentSam(sam_17a_17c);
};
};
showButtons(new Array(btn_17c));
if ((((stateMachine.currentState.name == Level5States.POS_17C)) && ((currentSam == sam)))){
if (elephantKneel){
setCurrentSam(samKicks);
mammoth_6_17c.alpha = 0;
mammoth_6_17c.gotoAndStop("up");
} else {
showButtons(new Array(btn_21));
setCurrentSam(pickup17c);
};
};
};
break;
case "btn_17d":
if (haveBone){
if (signalEvent(Level5Events.M_22_17D)){
showButtons(new Array(btn_17a));
setCurrentSam(sam_22_17d);
cameraPos = 4;
};
};
break;
case "btn_18":
if ((((((path == "kite")) && (haveHidec))) && (haveSinew))){
showButtons(new Array(btn_11));
if (signalEvent(Level5Events.M_21_18)){
setCurrentSam(sam_21_18);
};
};
break;
case "btn_21":
if (path == "kite"){
showButtons(new Array(btn_18));
if (signalEvent(Level5Events.M_17C_21)){
setCurrentSam(sam_17c_21);
};
};
break;
case "btn_22":
if (path == "kite"){
showButtons(new Array(btn_17d));
if (signalEvent(Level5Events.M_17B_22)){
setCurrentSam(sam_17b_22);
};
};
break;
};
trace(((("currentstate = " + stateMachine.currentState.name) + " button clicked = ") + event.target.name));
};
}
private function setCurrentSam(mc:MovieClip):void{
var ne:String;
ne = stateMachine.currentState.name;
if (((((!((mammoth_7_8.currentLabel == "normal"))) && (!((ne == Level5States.POS_15))))) && (!((ne == Level5States.POS_14))))){
mammoth_7_8.gotoAndStop("none");
};
sam.visible = false;
mc.marker.visible = false;
mc.visible = true;
mc.alpha = 1;
currentSam = mc;
mc.gotoAndPlay(2);
}
private function remove17():void{
btn_17a.visible = false;
btn_17b.visible = false;
btn_17c.visible = false;
btn_17d.visible = false;
}
private function checkScreen():void{
this.x = int((this.x + ((screenX - this.x) / 40)));
this.y = int((this.y + ((screenY - this.y) / 40)));
}
}
}//package
Section 383
//Level5Events (Level5Events)
package {
public class Level5Events {
public static const M_4_6:String = "m_4_6";
public static const M_17B_17A:String = "m_17b_17a";
public static const M_17B_17C:String = "m_17b_17c";
public static const M_17B_17D:String = "m_17b_17d";
public static const M_17D_17C:String = "m_17d_17c";
public static const M_21_17A:String = "m_21_17a";
public static const M_17D_17A:String = "m_17d_17a";
public static const INIT:String = "init";
public static const M_5A_6:String = "m_5A_6";
public static const M_5A_7:String = "m_5a_7";
public static const M_17C_21:String = "m_17c_21";
public static const M_17C_22:String = "m_17c_22";
public static const M_21_17C:String = "m_21_17c";
public static const M_17D_17B:String = "m_17d_17b";
public static const M_21_17B:String = "m_21_17b";
public static const M_4_4A:String = "m_4_4a";
public static const M_22_21:String = "m_22_21";
public static const M_11_18:String = "m_11_18";
public static const M_8_10:String = "m_8_10";
public static const M_8_11:String = "m_8_11";
public static const M_7_5:String = "m_7_5";
public static const M_17A_18:String = "m_17a_18";
public static const M_7_8:String = "m_7_8";
public static const M_22_18:String = "m_22_18";
public static const M_7_4A:String = "m_7_4a";
public static const M_12B_9:String = "m_12b_9";
public static const M_17A_21:String = "m_17a_21";
public static const M_17A_22:String = "m_17a_22";
public static const M_1_17A:String = "m_1_17a";
public static const M_1_17B:String = "m_1_17b";
public static const M_1_17C:String = "m_1_17c";
public static const M_1_17D:String = "m_1_17d";
public static const M_5_17C:String = "m_5_17c";
public static const M_21_17D:String = "m_21_17d";
public static const M_7_5A:String = "m_7_5a";
public static const M_17D_18:String = "m_17d_18";
public static const M_6_4:String = "m_6_4";
public static const M_17D_22:String = "m_17d_22";
public static const M_6_7:String = "M_6_7";
public static const M_17A_17B:String = "m_17a_17b";
public static const M_17A_17C:String = "m_17a_17c";
public static const M_17A_17D:String = "m_17a_17d";
public static const M_6_5:String = "m_6_5";
public static const M_11_8:String = "m_11_8";
public static const M_11_9:String = "m_11_9";
public static const M_17C_17B:String = "m_17c_17b";
public static const M_22_17C:String = "m_22_17c";
public static const M_17C_17D:String = "m_17c_17d";
public static const M_17D_21:String = "m_17d_21";
public static const M_22_17A:String = "m_22_17a";
public static const M_17C_17A:String = "m_17c_17a";
public static const M_22_17D:String = "m_22_17d";
public static const M_19_9:String = "m_19_9";
public static const M_9_15:String = "m_9_15";
public static const M_22_17B:String = "m_22_17b";
public static const M_17B_18:String = "m_17b_18";
public static const M_5_5A:String = "m_5_5a";
public static const M_15_14:String = "m_15_14";
public static const M_1_1:String = "m_1_1";
public static const M_1_4:String = "m_1_4";
public static const M_1_5:String = "m_1_5";
public static const M_4A_6:String = "m_4a_6";
public static const M_4A_7:String = "m_4a_7";
public static const M_5_4:String = "m_5_4";
public static const M_5_5:String = "m_5_5";
public static const M_5_6:String = "m_5_6";
public static const M_5_7:String = "m_5_7";
public static const M_1_6:String = "m_1_6";
public static const M_1_22:String = "m_1_22";
public static const M_17B_21:String = "m_17b_21";
public static const M_17B_22:String = "m_17b_22";
public static const M_1_21:String = "m_1_21";
public static const M_18_11:String = "m_18_11";
public static const M_21_22:String = "m_21_22";
public static const M_10_13:String = "m_10_13";
public static const M_21_18:String = "m_21_18";
public static const M_17C_5:String = "m_17c_5";
public static const M_18_21:String = "m_18_21";
public static const M_13_12:String = "m_13_12";
public static const M_18_22:String = "m_18_22";
public static const M_0_1:String = "m_0_1";
public static const M_17C_18:String = "m_17c_18";
public static const M_4_5:String = "m_4_5";
public function Level5Events(){
super();
}
}
}//package
Section 384
//Level5States (Level5States)
package {
public class Level5States {
public static const POS_10:String = "pos_10";
public static const POS_11:String = "pos_11";
public static const POS_13:String = "pos_13";
public static const POS_14:String = "pos_14";
public static const POS_15:String = "pos_15";
public static const POS_18:String = "pos_18";
public static const POS_19:String = "pos_19";
public static const POS_5A:String = "pos_5a";
public static const INITIALIZATION:String = "initialization";
public static const POS_21:String = "pos_21";
public static const POS_22:String = "pos_22";
public static const POS_12B:String = "pos_12b";
public static const POS_17A:String = "pos_17a";
public static const POS_17B:String = "pos_17b";
public static const POS_17D:String = "pos_17d";
public static const POS_17C:String = "pos_17c";
public static const POS_0:String = "pos_0";
public static const POS_1:String = "pos_1";
public static const POS_4:String = "pos_4";
public static const POS_5:String = "pos_5";
public static const POS_6:String = "pos_6";
public static const POS_7:String = "pos_7";
public static const POS_8:String = "pos_8";
public static const POS_9:String = "pos_9";
public static const GAME_END:String = "game_end";
public static const POS_4A:String = "pos_4a";
public function Level5States(){
super();
}
}
}//package
Section 385
//Level6 (Level6)
package {
import flash.events.*;
import flash.display.*;
import gamework.statemachine.hsm.*;
import flash.geom.*;
public class Level6 extends MovieClip {
public var yeti_18_17:MovieClip;
public var yetiKill18:MovieClip;
private var meltTime:uint;// = 0
public var sam_6_7:MovieClip;
private var yetiPos:uint;// = 14
private var yetiGroggy:Boolean;// = false
public var sam_16_17:MovieClip;
public var sam_16_18:MovieClip;
public var sam_16_19:MovieClip;
public var walkTo:Point;
public var throw_17_16:MovieClip;
public var throw_17_18:MovieClip;
public var sam_dung:MovieClip;
public var turd:MovieClip;
public var stateMachine:HSM;
public var sam_17_16:MovieClip;
public var throwTurd:MovieClip;
public var sam_17_18:MovieClip;
public var yeti:MovieClip;
private var yetiAttackTime:uint;// = 0
private var staticSam:String;// = "stand"
public var sam_17_19:MovieClip;
public var throw_18_16:MovieClip;
public var throw_18_17:MovieClip;
public var crowd:MovieClip;
private var timeInterval:int;
public var sam_3_6:MovieClip;
private var yetiAlive:Boolean;// = false
public var sam_3_4:MovieClip;
public var pickUpFruit:MovieClip;
public var sam_18_16:MovieClip;
public var sam_18_17:MovieClip;
public var sam_18_19:MovieClip;
public var sam_19_18_:MovieClip;
public var btn_12:MovieClip;
public var btn_13:MovieClip;
public var btn_14:MovieClip;
public var btn_16:MovieClip;
public var btn_17:MovieClip;
public var btn_18:MovieClip;
public var yetiG_16_17:MovieClip;
public var yetiG_16_18:MovieClip;
public var yetiBlinded:MovieClip;
public var sam_18_20:MovieClip;
public var harem:MovieClip;
public var sam_2_3:MovieClip;
public var btn_19:MovieClip;
public var btn_3:MovieClip;
public var btn_5:MovieClip;
public var btn_6:MovieClip;
public var btn_7:MovieClip;
private var cameraPos:uint;// = 1
public var btn_4:MovieClip;
public var sam_13_14:MovieClip;
public var btn_9:MovieClip;
private var cameraTrack:Boolean;// = true
public var yetiD_16_17:MovieClip;
public var yetiD_16_18:MovieClip;
public var background:MovieClip;
public var madeIt:Boolean;// = false
public var familyAcross:Boolean;// = false
public var cont:MovieClip;
public var croMagHide:MovieClip;
private var fruitThrow:Boolean;// = false
public var sam_19_17:MovieClip;
public var sam_19_18:MovieClip;
public var yeti_16_17:MovieClip;
public var yeti_16_18:MovieClip;
public var fruitHit16:MovieClip;
public var fruitHit17:MovieClip;
public var fruitHit18:MovieClip;
private var yetiHit:Boolean;// = false
private var familyMove:uint;// = 0
private var buttonsArray:Array;
public var samhit6:MovieClip;
public var samhit2:MovieClip;
public var sam_14_17:MovieClip;
private var screenY:int;// = 0
public var sam_14_16:MovieClip;
private var screenX:int;// = 0
public var walking:Boolean;// = false
public var yetiD_17_16:MovieClip;
public var yetiD_17_18:MovieClip;
public var sam_7_13:MovieClip;
private var haveDung:Boolean;// = false
private var currentYeti:MovieClip;
public var yeti_17_16:MovieClip;
public var yeti_17_18:MovieClip;
public var yetiG_18_16:MovieClip;
public var currentSam:MovieClip;
public var yetiG_18_17:MovieClip;
public var familyFirst:Boolean;// = false
private var haveFruit:Boolean;// = false
public var sam_19_18_y:MovieClip;
public var yetiD_18_16:MovieClip;
public var yetiKill14:MovieClip;
public var yetiKill16:MovieClip;
public var yetiKill17:MovieClip;
public var sam:MovieClip;
public var throw_16_17:MovieClip;
public var throw_16_18:MovieClip;
public var yetiD_18_17:MovieClip;
public var secretScore:uint;// = 0
public var yeti_18_16:MovieClip;
public function Level6(_cont:MovieClip){
walkTo = new Point();
walking = false;
familyFirst = false;
familyAcross = false;
madeIt = false;
staticSam = "stand";
screenX = 0;
screenY = 0;
cameraTrack = true;
cameraPos = 1;
familyMove = 0;
secretScore = 0;
yetiAttackTime = 0;
meltTime = 0;
haveDung = false;
yetiPos = 14;
yetiAlive = false;
haveFruit = false;
fruitThrow = false;
yetiGroggy = false;
yetiHit = false;
super();
this.cont = _cont;
currentYeti = yetiBlinded;
stateMachine = new HSM("Level6_HSM");
stateMachine.addState(new InitialState(Level6States.INITIALIZATION, null));
stateMachine.addState(new CompositeState(Level6States.POS_2, null));
stateMachine.addState(new CompositeState(Level6States.POS_3, null));
stateMachine.addState(new CompositeState(Level6States.POS_4, null));
stateMachine.addState(new CompositeState(Level6States.POS_5, null));
stateMachine.addState(new CompositeState(Level6States.POS_6, null));
stateMachine.addState(new CompositeState(Level6States.POS_7, null));
stateMachine.addState(new CompositeState(Level6States.POS_13, null));
stateMachine.addState(new CompositeState(Level6States.POS_14, null));
stateMachine.addState(new CompositeState(Level6States.POS_16, null));
stateMachine.addState(new CompositeState(Level6States.POS_17, null));
stateMachine.addState(new CompositeState(Level6States.POS_18, null));
stateMachine.addState(new CompositeState(Level6States.POS_19, null));
stateMachine.addState(new CompositeState(Level6States.POS_20, null));
stateMachine.addTransition(Level6States.INITIALIZATION, Level6States.POS_2, new SignalEvent("INIT"));
stateMachine.addTransition(Level6States.POS_2, Level6States.POS_3, new SignalEvent(Level6Events.M_2_3));
stateMachine.addTransition(Level6States.POS_4, Level6States.POS_3, new SignalEvent(Level6Events.M_4_3));
stateMachine.addTransition(Level6States.POS_2, Level6States.POS_4, new SignalEvent(Level6Events.M_2_4));
stateMachine.addTransition(Level6States.POS_3, Level6States.POS_4, new SignalEvent(Level6Events.M_3_4));
stateMachine.addTransition(Level6States.POS_3, Level6States.POS_5, new SignalEvent(Level6Events.M_3_5));
stateMachine.addTransition(Level6States.POS_4, Level6States.POS_5, new SignalEvent(Level6Events.M_4_5));
stateMachine.addTransition(Level6States.POS_3, Level6States.POS_6, new SignalEvent(Level6Events.M_3_6));
stateMachine.addTransition(Level6States.POS_5, Level6States.POS_6, new SignalEvent(Level6Events.M_5_6));
stateMachine.addTransition(Level6States.POS_6, Level6States.POS_7, new SignalEvent(Level6Events.M_6_7));
stateMachine.addTransition(Level6States.POS_7, Level6States.POS_13, new SignalEvent(Level6Events.M_7_13));
stateMachine.addTransition(Level6States.POS_13, Level6States.POS_14, new SignalEvent(Level6Events.M_13_14));
stateMachine.addTransition(Level6States.POS_14, Level6States.POS_16, new SignalEvent(Level6Events.M_14_16));
stateMachine.addTransition(Level6States.POS_17, Level6States.POS_16, new SignalEvent(Level6Events.M_17_16));
stateMachine.addTransition(Level6States.POS_18, Level6States.POS_16, new SignalEvent(Level6Events.M_18_16));
stateMachine.addTransition(Level6States.POS_14, Level6States.POS_17, new SignalEvent(Level6Events.M_14_17));
stateMachine.addTransition(Level6States.POS_16, Level6States.POS_17, new SignalEvent(Level6Events.M_16_17));
stateMachine.addTransition(Level6States.POS_18, Level6States.POS_17, new SignalEvent(Level6Events.M_18_17));
stateMachine.addTransition(Level6States.POS_19, Level6States.POS_17, new SignalEvent(Level6Events.M_19_17));
stateMachine.addTransition(Level6States.POS_16, Level6States.POS_18, new SignalEvent(Level6Events.M_16_18));
stateMachine.addTransition(Level6States.POS_17, Level6States.POS_18, new SignalEvent(Level6Events.M_17_18));
stateMachine.addTransition(Level6States.POS_19, Level6States.POS_18, new SignalEvent(Level6Events.M_19_18));
stateMachine.addTransition(Level6States.POS_16, Level6States.POS_19, new SignalEvent(Level6Events.M_16_19));
stateMachine.addTransition(Level6States.POS_17, Level6States.POS_19, new SignalEvent(Level6Events.M_17_19));
stateMachine.addTransition(Level6States.POS_18, Level6States.POS_19, new SignalEvent(Level6Events.M_18_19));
stateMachine.addTransition(Level6States.POS_18, Level6States.POS_20, new SignalEvent(Level6Events.M_18_20));
stateMachine.start();
buttonsArray = [btn_3, btn_6, btn_7, btn_13, btn_9, btn_12, btn_14, btn_16, btn_17, btn_18, btn_19];
setUpButtons();
signalEvent("INIT");
currentSam = sam;
setScreen(sam.x, sam.y);
addEventListener(Event.ENTER_FRAME, frameCheck);
}
private function setYeti(d:uint):void{
currentYeti.alpha = 0;
if (!yetiGroggy){
currentYeti = this[((("yeti_" + yetiPos) + "_") + d)];
} else {
currentYeti = this[((("yetiD_" + yetiPos) + "_") + d)];
};
trace(currentYeti);
currentYeti.alpha = 1;
currentYeti.gotoAndPlay(2);
yetiPos = d;
}
private function getStateNumber():uint{
var stateName:String;
var strArray:Array;
var nameString:String;
var j:uint;
var nameNumber:uint;
stateName = stateMachine.currentState.name;
strArray = stateName.split("");
j = 0;
while (j < 4) {
strArray.splice(0, 1);
j++;
};
nameString = strArray.join("");
nameNumber = uint(nameString);
return (nameNumber);
}
private function fruitHitYeti():void{
var pos:String;
pos = stateMachine.currentState.name;
fruitThrow = false;
yetiAlive = false;
currentYeti.alpha = 0;
if (yetiPos == 16){
currentYeti = fruitHit16;
};
if (yetiPos == 18){
currentYeti = fruitHit18;
};
if (yetiPos == 17){
currentYeti = fruitHit17;
};
if (!yetiGroggy){
yetiGroggy = true;
btn_19.visible = true;
};
currentYeti.alpha = 1;
currentYeti.gotoAndPlay(2);
}
private function checkYetiKillSam(){
var nameNumber:uint;
nameNumber = getStateNumber();
if ((((yetiPos == nameNumber)) && ((currentSam == sam)))){
killSam();
};
}
public function dispose(){
var i:uint;
var btn:MovieClip;
removeEventListener(Event.ENTER_FRAME, frameCheck);
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.removeEventListener(MouseEvent.CLICK, buttonCheck);
i++;
};
stateMachine.dispose();
}
private function setUpButtons():void{
var strArray:Array;
var nameString:String;
var i:uint;
var btn:MovieClip;
var j:uint;
i = 0;
while (i < buttonsArray.length) {
btn = buttonsArray[i];
btn.addEventListener(MouseEvent.CLICK, buttonCheck);
btn.buttonMode = true;
btn.mouseChildren = false;
btn.tabEnabled = Container.SHOW_TABS;
strArray = btn.name.split("");
j = 0;
while (j < 4) {
strArray.splice(0, 1);
j++;
};
nameString = strArray.join("");
btn.visible = false;
btn.alpha = 0;
i++;
};
showButtons(new Array(btn_3));
}
private function setStaticSam():void{
cont.debugTrace(("found the end frame for -> " + currentSam.name));
sam.x = currentSam.marker.x;
sam.y = currentSam.marker.y;
currentSam.visible = false;
sam.visible = true;
currentSam = sam;
cont.checkCompleteLevel();
}
private function currentState(){
cont.debugTrace(stateMachine.currentState);
}
private function signalEvent(_string:String):Boolean{
return (stateMachine.sendSignalEvent(_string));
}
private function yetiBrain(){
var nameNumber:uint;
yetiAlive = false;
nameNumber = getStateNumber();
if (nameNumber == 19){
nameNumber = 18;
};
if (((!((yetiPos === nameNumber))) && (!(fruitThrow)))){
setYeti(nameNumber);
} else {
currentYeti.gotoAndStop("end");
};
}
private function buttonCheck(event:MouseEvent):void{
if ((((currentSam == sam)) && (!(cont.paws)))){
switch (event.target.name){
case "btn_3":
if (signalEvent(Level6Events.M_2_3)){
showButtons(new Array(btn_6));
setCurrentSam(sam_2_3);
};
break;
case "btn_4":
break;
case "btn_5":
break;
case "btn_6":
if (signalEvent(Level6Events.M_3_6)){
showButtons(new Array(btn_7));
setCurrentSam(sam_3_6);
};
break;
case "btn_7":
if (signalEvent(Level6Events.M_6_7)){
showButtons(new Array(btn_13));
setCurrentSam(sam_6_7);
};
break;
case "btn_9":
if (((((haveDung) && ((stateMachine.currentState.name == Level6States.POS_14)))) && ((harem.clip.yeti.currentLabel == "kickMe")))){
haveDung = false;
setCurrentSam(throwTurd);
showButtons(new Array(btn_16, btn_17));
};
break;
case "btn_12":
if (((!(haveDung)) && ((stateMachine.currentState.name == Level6States.POS_14)))){
showButtons(new Array(btn_9));
setCurrentSam(sam_dung);
haveDung = true;
};
break;
case "btn_13":
if (signalEvent(Level6Events.M_7_13)){
staticSam = "holey";
showButtons(new Array(btn_14));
setCurrentSam(sam_7_13);
croMagHide.visible = false;
};
break;
case "btn_14":
if (signalEvent(Level6Events.M_13_14)){
staticSam = "stand";
showButtons(new Array(btn_12));
cameraPos = 2;
croMagHide.visible = false;
setCurrentSam(sam_13_14);
};
break;
case "btn_16":
if (((!(haveFruit)) || (!((yetiPos == 16))))){
if (signalEvent(Level6Events.M_14_16)){
showButtons(new Array(btn_17, btn_18));
setCurrentSam(sam_14_16);
cameraPos = 2;
};
if (signalEvent(Level6Events.M_17_16)){
showButtons(new Array(btn_17, btn_18));
setCurrentSam(sam_17_16);
};
if (signalEvent(Level6Events.M_18_16)){
showButtons(new Array(btn_17, btn_18));
setCurrentSam(sam_18_16);
};
} else {
if (stateMachine.currentState.name == Level6States.POS_18){
showButtons(new Array(btn_17, btn_18));
setCurrentSam(throw_18_16);
haveFruit = false;
fruitThrow = true;
};
if (stateMachine.currentState.name == Level6States.POS_17){
showButtons(new Array(btn_17, btn_18));
setCurrentSam(throw_17_16);
haveFruit = false;
fruitThrow = true;
};
};
break;
case "btn_17":
if (((!(haveFruit)) || (!((yetiPos == 17))))){
if (signalEvent(Level6Events.M_14_17)){
showButtons(new Array(btn_17, btn_16, btn_18));
setCurrentSam(sam_14_17);
} else {
if (signalEvent(Level6Events.M_16_17)){
showButtons(new Array(btn_17, btn_16, btn_18));
setCurrentSam(sam_16_17);
} else {
if (signalEvent(Level6Events.M_18_17)){
showButtons(new Array(btn_17, btn_16, btn_18));
setCurrentSam(sam_18_17);
} else {
if (signalEvent(Level6Events.M_19_17)){
showButtons(new Array(btn_17, btn_16, btn_18));
setCurrentSam(sam_19_17);
} else {
if (stateMachine.currentState.name == Level6States.POS_17){
showButtons(new Array(btn_17, btn_16, btn_18));
setCurrentSam(pickUpFruit);
};
};
};
};
};
} else {
if (stateMachine.currentState.name == Level6States.POS_16){
showButtons(new Array(btn_17, btn_16, btn_18));
setCurrentSam(throw_16_17);
haveFruit = false;
fruitThrow = true;
};
if (stateMachine.currentState.name == Level6States.POS_18){
showButtons(new Array(btn_17, btn_16, btn_18));
setCurrentSam(throw_18_17);
haveFruit = false;
fruitThrow = true;
};
};
break;
case "btn_18":
if (yetiPos == 18){
if (signalEvent(Level6Events.M_19_18)){
setCurrentSam(sam_19_18_y);
currentYeti.alpha = 0;
yetiAlive = false;
currentYeti = sam;
break;
};
};
if (((!(haveFruit)) || (!((yetiPos == 18))))){
if (signalEvent(Level6Events.M_16_18)){
showButtons(new Array(btn_16, btn_17));
setCurrentSam(sam_16_18);
};
if (signalEvent(Level6Events.M_17_18)){
showButtons(new Array(btn_16, btn_17));
setCurrentSam(sam_17_18);
};
} else {
if (stateMachine.currentState.name == Level6States.POS_17){
showButtons(new Array(btn_16, btn_17));
setCurrentSam(throw_17_18);
haveFruit = false;
fruitThrow = true;
};
if (stateMachine.currentState.name == Level6States.POS_16){
showButtons(new Array(btn_16, btn_17));
setCurrentSam(throw_16_18);
haveFruit = false;
fruitThrow = true;
};
};
break;
case "btn_19":
if (yetiGroggy){
if (signalEvent(Level6Events.M_16_19)){
showButtons(new Array(btn_18));
setCurrentSam(sam_16_19);
cameraPos = 5;
};
if (signalEvent(Level6Events.M_17_19)){
showButtons(new Array(btn_18));
setCurrentSam(sam_17_19);
};
if (signalEvent(Level6Events.M_18_19)){
showButtons(new Array(btn_18));
setCurrentSam(sam_18_19);
};
};
break;
case "btn_20":
break;
};
trace(((("currentstate = " + stateMachine.currentState.name) + " & button pressed = ") + event.target.name));
};
}
private function checkPickups(){
if (stateMachine.currentState.name == Level6States.POS_5){
cont.addNotify("Picked up a Rock", "rock", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level6States.POS_14){
cont.addNotify("Picked up Dung", "dung", cont.sounds.s_Pickup, cont.sounds.s_Happy);
};
if (stateMachine.currentState.name == Level6States.POS_17){
cont.addNotify("Picked up some Fruit", "gFruit", cont.sounds.s_Pickup, cont.sounds.s_Happy);
haveFruit = true;
};
}
private function setScreen(x:int, y:int):void{
if (cameraPos == 1){
x = ((x * -1) + 250);
};
if (cameraPos == 2){
x = ((x * -1) + 50);
};
if (cameraPos == 3){
x = ((x * -1) + 350);
};
if (cameraPos == 4){
x = ((x * -1) + 350);
};
if (cameraPos == 5){
x = ((x * -1) + 350);
};
if (x > 0){
x = 0;
};
if (x < ((this.background.width * -1) + 600)){
x = ((this.background.width * -1) + 600);
};
screenX = x;
if (cameraPos == 1){
y = ((y * -1) + 200);
};
if (cameraPos == 2){
y = ((y * -1) + 200);
};
if (cameraPos == 3){
y = ((y * -1) - 100);
};
if (cameraPos == 4){
y = ((y * -1) - 200);
};
if (cameraPos == 5){
y = ((y * -1) - 400);
};
if (y > 0){
y = 0;
};
if (y < ((this.background.height * -1) + 370)){
y = ((this.background.height * -1) + 370);
};
screenY = y;
}
private function killSam():void{
var tempSam:MovieClip;
currentYeti.alpha = 0;
tempSam = this[("yetiKill" + yetiPos)];
setCurrentSam(tempSam);
}
private function setCurrentSam(mc:MovieClip):void{
sam.gotoAndStop(staticSam);
sam.visible = false;
mc.marker.visible = false;
mc.visible = true;
mc.alpha = 1;
currentSam = mc;
mc.play();
}
private function frameCheck(e:Event):void{
cont.checkTime();
if (yetiGroggy){
btn_19.visible = true;
};
if ((((currentSam.currentLabel == "end")) && (!(cont.paws)))){
setStaticSam();
};
if (currentSam.currentLabel == "showCro"){
croMagHide.visible = true;
};
if (currentSam.currentLabel == "pickup"){
checkPickups();
};
if (yeti.currentLabel == "hitB6"){
harem.gotoAndPlay("7_8");
};
if (currentSam == sam){
if ((((yeti.currentLabel == "checkSamHit2")) && ((stateMachine.currentState.name == Level6States.POS_2)))){
setCurrentSam(samhit2);
};
if ((((yeti.currentLabel == "checkSamHit3")) && ((stateMachine.currentState.name == Level6States.POS_3)))){
yeti.gotoAndStop("killSam3");
setCurrentSam(yeti);
};
if ((((yeti.currentLabel == "checkSamHit6")) && ((stateMachine.currentState.name == Level6States.POS_6)))){
setCurrentSam(samhit6);
};
if ((((yeti.currentLabel == "checkSamHit7")) && ((stateMachine.currentState.name == Level6States.POS_7)))){
yeti.gotoAndStop("killSam7");
setCurrentSam(yeti);
};
};
if (yeti.currentLabel == "frameTrace"){
if (harem.clip.currentFrame == 79){
yeti.gotoAndStop("coicle");
harem.clip.yeti.alpha = 1;
trace(("harem frame = " + harem.clip.currentFrame));
};
};
if (currentSam.currentLabel == "hitYeti"){
yetiHit = true;
harem.clip.yeti.alpha = 0;
harem.clip.yeti.stop();
yetiBlinded.alpha = 1;
yetiBlinded.play();
};
if (yetiHit){
if (harem.clip.currentLabel == "checkIntoHut"){
harem.gotoAndPlay("intoHut");
yetiHit = false;
};
};
if (yetiBlinded.currentLabel == "changePos"){
cameraPos = 3;
};
if (yetiBlinded.currentLabel == "changePos2"){
cameraPos = 4;
};
if ((((((yetiBlinded.currentLabel == "checkHit")) && ((stateMachine.currentState.name == Level6States.POS_14)))) && ((currentSam == sam)))){
yetiBlinded.alpha = 0;
yetiBlinded.stop();
setCurrentSam(yetiKill14);
} else {
if (yetiBlinded.currentLabel == "checkHit"){
yetiBlinded.gotoAndPlay("guardAttack");
};
};
if ((((((yetiBlinded.currentLabel == "checkEat")) && ((stateMachine.currentState.name == Level6States.POS_16)))) && ((currentSam == sam)))){
yetiBlinded.alpha = 0;
setCurrentSam(yetiKill16);
} else {
if (yetiBlinded.currentLabel == "checkEat"){
yetiAlive = true;
yetiPos = 16;
};
};
if (currentYeti.currentLabel == "end"){
yetiAlive = true;
};
if (((fruitThrow) && ((currentSam.currentLabel == "hit")))){
fruitHitYeti();
};
if (yetiAlive){
yetiBrain();
};
if ((((currentYeti.currentLabel == "yell")) || ((currentYeti.currentLabel == "end")))){
checkYetiKillSam();
};
if (((!((currentSam.currentLabel == null))) && ((currentSam.currentLabel.toLowerCase() == "dead")))){
yeti.stop();
cont.playerDead();
};
if (currentSam.currentLabel == "winYeti"){
cont.completeLevel();
};
if (currentSam != sam){
setScreen(currentSam.marker.x, currentSam.marker.y);
};
if (currentSam == sam){
setScreen(sam.x, sam.y);
};
if (cameraTrack){
checkScreen();
};
if (currentSam.currentLabel == "turdHide"){
turd.visible = false;
};
if (currentSam.currentLabel == "goCrowd"){
crowd.alpha = 1;
crowd.play();
};
}
private function checkScreen():void{
this.x = int((this.x + ((screenX - this.x) / 40)));
this.y = int((this.y + ((screenY - this.y) / 40)));
}
public function showButtons(ar:Array){
var j:uint;
var i:uint;
var btn1:MovieClip;
var btn:MovieClip;
j = 0;
while (j < buttonsArray.length) {
btn1 = buttonsArray[j];
btn1.visible = false;
j++;
};
i = 0;
while (i < ar.length) {
btn = ar[i];
btn.visible = true;
i++;
};
}
}
}//package
Section 386
//Level6Events (Level6Events)
package {
public class Level6Events {
public static const M_2_4:String = "m_2_4";
public static const M_16_17:String = "m_16_17";
public static const M_16_18:String = "m_16_18";
public static const INIT:String = "init";
public static const M_16_19:String = "m_16_19";
public static const M_19_17:String = "m_19_17";
public static const M_19_18:String = "m_19_18";
public static const M_3_4:String = "m_3_4";
public static const M_3_5:String = "m_3_5";
public static const M_5_6:String = "m_5_6";
public static const M_3_6:String = "m_3_6";
public static const M_18_16:String = "m_18_16";
public static const M_18_17:String = "m_18_17";
public static const M_18_19:String = "m_18_19";
public static const M_14_16:String = "m_14_16";
public static const M_14_17:String = "m_14_17";
public static const M_7_13:String = "m_7_13";
public static const M_18_20:String = "m_18_20";
public static const M_17_16:String = "m_17_16";
public static const M_17_18:String = "m_17_18";
public static const M_17_19:String = "m_17_19";
public static const M_2_3:String = "m_2_3";
public static const M_13_14:String = "m_13_14";
public static const M_4_3:String = "m_4_3";
public static const M_6_7:String = "m_6_7";
public static const M_4_5:String = "m_4_5";
public function Level6Events(){
super();
}
}
}//package
Section 387
//Level6States (Level6States)
package {
public class Level6States {
public static const POS_13:String = "pos_13";
public static const POS_17:String = "pos_17";
public static const POS_18:String = "pos_18";
public static const POS_19:String = "pos_19";
public static const POS_14:String = "pos_14";
public static const POS_16:String = "pos_16";
public static const INITIALIZATION:String = "initialization";
public static const POS_2:String = "pos_2";
public static const POS_3:String = "pos_3";
public static const POS_5:String = "pos_5";
public static const POS_6:String = "pos_6";
public static const POS_7:String = "pos_7";
public static const GAME_END:String = "game_end";
public static const POS_4:String = "pos_4";
public static const POS_20:String = "pos_20";
public function Level6States(){
super();
}
}
}//package
Section 388
//LevelBase (LevelBase)
package {
import flash.display.*;
public class LevelBase extends MovieClip {
public function LevelBase(){
super();
}
public function showHint(hint:MovieClip):void{
hint.visible = true;
hint.gotoAndPlay(2);
}
public function hideHints(... _args):void{
var hint:MovieClip;
for each (hint in _args) {
hint.visible = false;
hint.gotoAndStop(1);
};
}
}
}//package
Section 389
//LevelComplete (LevelComplete)
package {
import flash.display.*;
import flash.text.*;
public dynamic class LevelComplete extends MovieClip {
public var next_btn:SimpleButton;
public var level_txt:TextField;
public var score_txt:TextField;
public var bonus_txt:TextField;
public var secret_txt:TextField;
public function LevelComplete(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 390
//Music (Music)
package {
import flash.media.*;
public dynamic class Music extends Sound {
public function Music(){
super();
}
}
}//package
Section 391
//PlayerWin (PlayerWin)
package {
import flash.events.*;
import flash.display.*;
import gamework.net.*;
import gamework.core.*;
import flash.text.*;
public class PlayerWin extends MovieClip {
var cont:MovieClip;
public var score_txt:TextField;
var score:uint;
public var submit_btn:SimpleButton;
public var main_btn:SimpleButton;
public function PlayerWin(_cont:MovieClip, _score:uint){
super();
cont = _cont;
score = _score;
score_txt.text = (score + "");
submit_btn.addEventListener(MouseEvent.CLICK, SubmitScore);
main_btn.addEventListener(MouseEvent.CLICK, mainMenu);
}
private function dispose(){
submit_btn.removeEventListener(MouseEvent.CLICK, SubmitScore);
main_btn.removeEventListener(MouseEvent.CLICK, mainMenu);
cont.removeChild(this);
}
private function SubmitScore(e:MouseEvent):void{
var _urlCaller:IURLCaller;
submit_btn.visible = false;
_urlCaller = SingletonFactory.getInstance("gamework.net::IURLCaller");
_urlCaller.submitScore(score);
}
private function mainMenu(e:MouseEvent):void{
cont.loadSplash();
dispose();
}
}
}//package
Section 392
//ResetButton (ResetButton)
package {
import flash.display.*;
public dynamic class ResetButton extends MovieClip {
public function ResetButton(){
super();
}
}
}//package
Section 393
//S_Happy (S_Happy)
package {
import flash.media.*;
public dynamic class S_Happy extends Sound {
public function S_Happy(){
super();
}
}
}//package
Section 394
//S_Pickup (S_Pickup)
package {
import flash.media.*;
public dynamic class S_Pickup extends Sound {
public function S_Pickup(){
super();
}
}
}//package
Section 395
//S_Triumph (S_Triumph)
package {
import flash.media.*;
public dynamic class S_Triumph extends Sound {
public function S_Triumph(){
super();
}
}
}//package
Section 396
//SecretPoints (SecretPoints)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class SecretPoints extends MovieClip {
var startY:uint;
public var txt:TextField;
var endY:uint;// = 20
public function SecretPoints(x:uint, y:uint, points:uint){
endY = 20;
super();
this.mouseEnabled = false;
this.x = x;
this.y = (startY = y);
this.txt.text = ("+" + points);
addEventListener(Event.ENTER_FRAME, fade);
}
private function dispose(){
removeEventListener(Event.ENTER_FRAME, fade);
parent.removeChild(this);
}
private function fade(e:Event):void{
if (this.y > (startY - endY)){
this.y--;
} else {
this.y--;
this.alpha = (this.alpha - 0.02);
if (this.alpha < 0){
dispose();
};
};
}
}
}//package
Section 397
//Sounds (Sounds)
package {
import flash.display.*;
import flash.media.*;
public class Sounds extends MovieClip {
public var s_Pickup:S_Pickup;
public var music:Music;
public var soundChannel:SoundChannel;
public var s_Happy:S_Happy;
public var s_Triumph:S_Triumph;
public function Sounds(){
s_Happy = new S_Happy();
s_Triumph = new S_Triumph();
s_Pickup = new S_Pickup();
music = new Music();
super();
}
public function stopMusic(){
soundChannel.stop();
}
public function playMusic(){
soundChannel = music.play(0, 100);
}
}
}//package
Section 398
//Splash (Splash)
package {
import flash.events.*;
import flash.display.*;
public class Splash extends MovieClip {
public var splash_high_scores_btn:SimpleButton;
var cont:MovieClip;
public var splash_2dplay_logo_btn:SimpleButton;
public var instructions:MovieClip;
public var btn_start:SimpleButton;
public var splash_2dplay_link_button:SimpleButton;
public function Splash(_cont:MovieClip){
super();
addFrameScript(0, frame1);
cont = _cont;
btn_start.addEventListener(MouseEvent.CLICK, showInstructions);
instructions.start_btn.addEventListener(MouseEvent.CLICK, startGame);
instructions.visible = false;
}
private function dispose(){
btn_start.removeEventListener(MouseEvent.CLICK, showInstructions);
instructions.start_btn.removeEventListener(MouseEvent.CLICK, startGame);
cont.removeChild(this);
}
private function showInstructions(e:MouseEvent):void{
instructions.visible = true;
}
function frame1(){
stop();
}
private function startGame(e:MouseEvent):void{
cont.startNewGame();
dispose();
}
}
}//package
Section 399
//URLCaller_SAS2 (URLCaller_SAS2)
package {
import gamework.net.*;
import gamework.core.*;
import com.adobe.crypto.*;
import flash.net.*;
public class URLCaller_SAS2 implements IURLCaller {
bigwigmedia_internal static var singletonAccessor:Boolean = false;
public function URLCaller_SAS2(){
super();
}
public function viewScores():void{
getURL(("http://www.2Dplay.com/showscores.php?gameid=" + ApplicationGlobals.ID));
}
public function getGame():void{
getURL("http://www.2DPlay.com/freecontent.htm");
}
public function downloadGame():void{
getURL(("http://www.2DPlay.com/downloadgame.php?gameid=" + ApplicationGlobals.ID));
}
public function getURL(url:String, window:String="_blank"):void{
navigateToURL(new URLRequest(url), window);
}
public function mainLink():void{
getURL(("http://www.2DPlay.com/index.php?gameid=" + ApplicationGlobals.ID));
}
public function submitScore(score:Number):void{
var hashKey:String;
hashKey = MD5.hash((((("gameid=" + ApplicationGlobals.ID) + "&hiscore=") + score) + "2DPlay.com/"));
getURL(((((("http://www.2DPlay.com/highscores.php?gameid=" + ApplicationGlobals.ID) + "&hiscore=") + score) + "&hash=") + hashKey));
}
public function playMoreGames():void{
getURL(("http://www.2DPlay.com/index.php?gameid=" + ApplicationGlobals.ID));
}
}
}//package