Frame 1
function goFullScreen() {
Stage.displayState = "fullScreen";
fs = true;
}
function exitFullScreen() {
Stage.displayState = "normal";
fs = false;
}
function ifgoFullScreen() {
if (fs == true) {
Stage.displayState = "fullScreen";
}
}
function ifexitFullScreen() {
Stage.displayState = "normal";
}
function menuHandler(obj, menuObj) {
if (Stage.displayState == "normal") {
menuObj.customItems[0].enabled = true;
menuObj.customItems[1].enabled = false;
} else {
menuObj.customItems[0].enabled = false;
menuObj.customItems[1].enabled = true;
}
}
_global.$createTweenController = function () {
var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_local3.$_tweenPropList = new Array();
_local3.$_tTime = getTimer();
_local3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function () {
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) {
if (timeSeconds == undefined) {
timeSeconds = 0;
}
if ((animType == undefined) || (animType == "")) {
animType = "easeOutExpo";
}
if (delay == undefined) {
delay = 0;
}
if (typeof(prop) == "string") {
var _local7 = [prop];
var _local11 = [mtarget[prop]];
var _local9 = [propDest];
} else {
var _local7 = [];
var _local11 = [];
var _local9 = [];
for (var _local32 in prop) {
_local11.push(mtarget[prop[_local32]]);
}
for (var _local32 in prop) {
_local7.push(prop[_local32]);
}
for (var _local32 in propDest) {
_local9.push(propDest[_local32]);
}
}
var _local12 = false;
if (_root.__tweenController__ == undefined) {
_global.$createTweenController();
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local8 = _root.__tweenController__.$_tTime;
for (var _local32 in _local11) {
if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) {
if (mtarget.$_tweenCount > 0) {
var _local3 = 0;
while (_local3 < _local4.length) {
if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) {
if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) {
_local4.splice(_local3, 1);
_local3--;
mtarget.$_tweenCount--;
}
}
_local3++;
}
}
_local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))});
mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1);
_local12 = true;
}
}
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function () {
var _local8 = (this.$_tTime = getTimer());
var _local6 = 0;
while (_local6 < this.$_tweenPropList.length) {
var _local3 = this.$_tweenPropList[_local6];
if (_local3._targ.toString() == undefined) {
this.$_tweenPropList.splice(_local6, 1);
_local6--;
} else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) {
if (_local3._propStart == undefined) {
if (_local3._prop.substr(0, 10) == "__special_") {
if (_local3._prop == "__special_mc_frame__") {
_local3._propStart = _local3._targ._currentframe;
} else if (_local3._prop == "__special_mc_ra__") {
_local3._propStart = new Color(_local3._targ).getTransform().ra;
} else if (_local3._prop == "__special_mc_rb__") {
_local3._propStart = new Color(_local3._targ).getTransform().rb;
} else if (_local3._prop == "__special_mc_ga__") {
_local3._propStart = new Color(_local3._targ).getTransform().ga;
} else if (_local3._prop == "__special_mc_gb__") {
_local3._propStart = new Color(_local3._targ).getTransform().gb;
} else if (_local3._prop == "__special_mc_ba__") {
_local3._propStart = new Color(_local3._targ).getTransform().ba;
} else if (_local3._prop == "__special_mc_bb__") {
_local3._propStart = new Color(_local3._targ).getTransform().bb;
} else if (_local3._prop == "__special_mc_aa__") {
_local3._propStart = new Color(_local3._targ).getTransform().aa;
} else if (_local3._prop == "__special_mc_ab__") {
_local3._propStart = new Color(_local3._targ).getTransform().ab;
} else if (_local3._prop == "__special_text_r__") {
_local3._propStart = _local3._targ.textColor >> 16;
} else if (_local3._prop == "__special_text_g__") {
_local3._propStart = (_local3._targ.textColor & 65280) >> 8;
} else if (_local3._prop == "__special_text_b__") {
_local3._propStart = _local3._targ.textColor & 255;
} else if (_local3._prop == "__special_sound_volume__") {
_local3._propStart = _local3._targ.getVolume();
} else if (_local3._prop == "__special_sound_pan__") {
_local3._propStart = _local3._targ.getPan();
} else if (_local3._prop == "__special_bst_t__") {
_local3._propStart = 0;
_local3._extras.__special_bst_ix__ = _local3._targ._x;
_local3._extras.__special_bst_iy__ = _local3._targ._y;
} else if (_local3._prop == "__special_blur_x__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_blur_y__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_color__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].color;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_glow_alpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].alpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_glow_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_glow_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_distance__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].distance;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_angle__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].angle;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 45;
}
} else if (_local3._prop == "__special_bevel_highlightColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 16777215 /* 0xFFFFFF */;
}
} else if (_local3._prop == "__special_bevel_highlightAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].highlightAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_shadowColor__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowColor;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_shadowAlpha__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].shadowAlpha;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else if (_local3._prop == "__special_bevel_blurX__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurX;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_blurY__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].blurY;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 0;
}
} else if (_local3._prop == "__special_bevel_strength__") {
var _local5 = 0;
while (_local5 < _local3._targ.filters.length) {
if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) {
_local3._propStart = _local3._targ.filters[_local5].strength;
}
_local5++;
}
if (_local3._propStart == undefined) {
_local3._propStart = 1;
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
} else {
_local3._propStart = _local3._targ[_local3._prop];
}
}
var _local10 = _local3._timeDest + (_local3._delay * 1000);
if (_local10 <= _local8) {
var _local4 = _local3._propDest;
} else {
var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2);
}
_local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4));
if (_local3._prop == "__special_mc_frame__") {
_local3._targ.gotoAndStop(Math.round(_local4));
} else if (_local3._prop == "__special_mc_ra__") {
new Color(_local3._targ).setTransform({ra:_local4});
} else if (_local3._prop == "__special_mc_rb__") {
new Color(_local3._targ).setTransform({rb:_local4});
} else if (_local3._prop == "__special_mc_ga__") {
new Color(_local3._targ).setTransform({ga:_local4});
} else if (_local3._prop == "__special_mc_gb__") {
new Color(_local3._targ).setTransform({gb:_local4});
} else if (_local3._prop == "__special_mc_ba__") {
new Color(_local3._targ).setTransform({ba:_local4});
} else if (_local3._prop == "__special_mc_bb__") {
new Color(_local3._targ).setTransform({bb:_local4});
} else if (_local3._prop == "__special_mc_aa__") {
new Color(_local3._targ).setTransform({aa:_local4});
} else if (_local3._prop == "__special_mc_ab__") {
new Color(_local3._targ).setTransform({ab:_local4});
}
if (_local3._prop == "__special_bst_t__") {
var _local7 = _local3._extras;
var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4);
if (_local3._extras.mustRound) {
_local3._targ._x = Math.round(_local9.x);
_local3._targ._y = Math.round(_local9.y);
} else {
_local3._targ._x = _local9.x;
_local3._targ._y = _local9.y;
}
}
if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) {
_local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__;
}
if (_local3._prop == "__special_sound_volume__") {
_local3._targ.setVolume(_local4);
}
if (_local3._prop == "__special_sound_pan__") {
_local3._targ.setPan(_local4);
}
if (_local3._prop == "__special_blur_x__") {
_global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_blur_y__") {
_global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_color__") {
_global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_glow_alpha__") {
_global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurX__") {
_global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_blurY__") {
_global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_glow_strength__") {
_global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_distance__") {
_global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_angle__") {
_global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_highlightAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowColor__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras);
}
if (_local3._prop == "__special_bevel_shadowAlpha__") {
_global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurX__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_blurY__") {
_global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras);
}
if (_local3._prop == "__special_bevel_strength__") {
_global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras);
}
if (_local3._targ.onTweenUpdate != undefined) {
_local3._targ.onTweenUpdate(_local3._prop);
}
if (_local10 <= _local8) {
if (_local3._targ.onTweenComplete != undefined) {
_local3._targ.onTweenComplete(_local3._prop);
}
_global.$stopTween(_local3._targ, [_local3._prop], false);
_local6--;
if (_local3._callback != undefined) {
if (_global.backwardCallbackTweening) {
var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344);
_local3._callback.apply(_local11, null);
_local11.removeMovieClip();
} else {
_local3._callback.apply(_local3._targ, null);
}
}
}
}
_local6++;
}
if (this.$_tweenPropList.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture) {
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local7;
for (var _local9 in _local4) {
_local7 = _local4[_local9]._prop;
var _local5 = 0;
while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) {
if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) {
switch (_local7) {
case "__special_mc_frame__" :
case "__special_mc_ra__" :
case "__special_mc_rb__" :
case "__special_mc_ga__" :
case "__special_mc_gb__" :
case "__special_mc_ba__" :
case "__special_mc_bb__" :
case "__special_mc_aa__" :
case "__special_mc_ab__" :
case "__special_sound_volume__" :
case "__special_bst_t__" :
delete mtarget[_local7];
break;
case "__special_text_b__" :
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
}
_local4.splice(_local9, 1);
}
_local5++;
}
}
if (props == undefined) {
delete mtarget.$_tweenCount;
} else {
mtarget.$_tweenCount = 0;
for (var _local9 in _local4) {
if (_local4[_local9]._targ == mtarget) {
mtarget.$_tweenCount++;
}
}
if (mtarget.$_tweenCount == 0) {
delete mtarget.$_tweenCount;
}
}
if (_local4.length == 0) {
_global.$removeTweenController();
}
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras) {
var _local1;
var _local7 = false;
var _local3 = [];
_local1 = 0;
while (_local1 < mtarget.filters.length) {
_local3.push(mtarget.filters[_local1]);
_local1++;
}
if (propName.substr(0, 5) == "blur_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BlurFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_blur_quality__ != undefined) {
_local3[_local1].quality = extras.__special_blur_quality__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local9;
var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__));
if (propName == "blur_blurX") {
_local9 = new flash.filters.BlurFilter(propValue, 0, _local8);
}
if (propName == "blur_blurY") {
_local9 = new flash.filters.BlurFilter(0, propValue, _local8);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 5) == "glow_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.GlowFilter) {
_local3[_local1][propName.substr(5)] = propValue;
if (extras.__special_glow_quality__ != undefined) {
_local3[_local1].quality = extras.__special_glow_quality__;
}
if (extras.__special_glow_inner__ != undefined) {
_local3[_local1].inner = extras.__special_glow_inner__;
}
if (extras.__special_glow_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_glow_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__));
var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__));
var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__));
if (propName == "glow_color") {
var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_alpha") {
var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurX") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10);
}
if (propName == "glow_blurY") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10);
}
if (propName == "glow_strength") {
var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10);
}
_local3.push(_local9);
}
} else if (propName.substr(0, 6) == "bevel_") {
_local1 = 0;
while (_local1 < mtarget.filters.length) {
if (_local3[_local1] instanceof flash.filters.BevelFilter) {
_local3[_local1][propName.substr(6)] = propValue;
if (extras.__special_bevel_quality__ != undefined) {
_local3[_local1].quality = extras.__special_bevel_quality__;
}
if (extras.__special_bevel_type__ != undefined) {
_local3[_local1].inner = extras.__special_bevel_type__;
}
if (extras.__special_bevel_knockout__ != undefined) {
_local3[_local1].knockout = extras.__special_bevel_knockout__;
}
_local7 = true;
break;
}
_local1++;
}
if (!_local7) {
var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__));
var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__));
var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__));
if (propName == "bevel_distance") {
var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_angle") {
var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_highlightAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowColor") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_shadowAlpha") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurX") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10);
}
if (propName == "bevel_blurY") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10);
}
if (propName == "bevel_strength") {
var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10);
}
_local3.push(_local9);
}
} else {
return(undefined);
}
mtarget.filters = _local3;
};
MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
}));
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
}));
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) {
if (typeof(props) == "string") {
props = [props];
}
if (props != undefined) {
var _local4 = 1;
while (_local4 < arguments.length) {
props.push(arguments[_local4]);
_local4++;
}
}
_global.$stopTween(this, props, true);
}));
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local6 = 1;
while (_local6 < Arguments.length) {
props.push(Arguments[_local6]);
_local6++;
}
}
var _local4 = _root.__tweenController__.$_tweenPropList;
var _local5;
for (var _local7 in _local4) {
if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local6 in props) {
if (props[_local6] == _local4[_local7]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local4[_local7]._isPaused = true;
_local4[_local7]._timePaused = _root.__tweenController__.$_tTime;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) {
if (props != undefined) {
if (typeof(props) == "string") {
props = [props];
}
var _local7 = 1;
while (_local7 < Arguments.length) {
props.push(Arguments[_local7]);
_local7++;
}
}
var _local3 = _root.__tweenController__.$_tweenPropList;
var _local5;
var _local6;
for (var _local8 in _local3) {
if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) {
if (props != undefined) {
_local5 = false;
for (var _local7 in props) {
if (props[_local7] == _local3[_local8]._prop) {
_local5 = true;
break;
}
}
}
if ((props == undefined) || (_local5)) {
_local3[_local8]._isPaused = false;
_local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused;
_local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6;
_local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6;
_local3[_local8]._timePaused = 0;
}
}
}
}));
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () {
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
}));
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () {
delete this.$_isTweenLocked;
}));
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () {
return(this.$_tweenCount);
}));
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () {
return(((this.$_tweenCount > 0) ? true : false));
}));
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0);
ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0);
MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
});
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true});
});
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = new Object();
_local3.__special_bst_ix__ = undefined;
_local3.__special_bst_iy__ = undefined;
_local3.__special_bst_cx__ = cpoint_x;
_local3.__special_bst_cy__ = cpoint_y;
_local3.__special_bst_dx__ = propDest_x;
_local3.__special_bst_dy__ = propDest_y;
_local3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3);
});
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
if (propDest_color == null) {
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} else {
var _local3 = propDest_color >> 16;
var _local5 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) {
var _local3 = propDest_color >> 16;
var _local6 = (propDest_color & 65280) >> 8;
var _local4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
} else {
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
}
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality});
} else {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]});
}
});
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality});
});
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]});
}
});
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout});
} else {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]});
}
});
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) {
_global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout});
});
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) {
return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime) {
var _local8 = objProp._propStart >> 16;
var _local4 = objProp._propDest >> 16;
var _local5 = (objProp._propStart >> 8) & 255;
var _local6 = (objProp._propDest >> 8) & 255;
var _local9 = objProp._propStart & 255;
var _local7 = objProp._propDest & 255;
var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
return(((_local12 << 16) + (_local10 << 8)) + _local3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) {
var _local1 = _timeNow - _timeStart;
var _local4 = _propStart;
var _local2 = _propDest - _propStart;
var _local3 = _timeDest - _timeStart;
var _local6 = _extra1;
var _local7 = _extra2;
var _local5 = _extra1;
switch (_animType.toLowerCase()) {
case "linear" :
return(((_local2 * _local1) / _local3) + _local4);
case "easeinquad" :
_local1 = _local1 / _local3;
return(((_local2 * _local1) * _local1) + _local4);
case "easeoutquad" :
_local1 = _local1 / _local3;
return((((-_local2) * _local1) * (_local1 - 2)) + _local4);
case "easeinoutquad" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((_local2 / 2) * _local1) * _local1) + _local4);
}
_local1--;
return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4);
case "easeoutinquad" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeincubic" :
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * _local1) + _local4);
case "easeoutcubic" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4);
case "easeinoutcubic" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4);
case "easeoutincubic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquart" :
_local1 = _local1 / _local3;
return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquart" :
_local1 = (_local1 / _local3) - 1;
return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4);
case "easeinoutquart" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4);
case "easeoutinquart" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinquint" :
_local1 = _local1 / _local3;
return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
case "easeoutquint" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4);
case "easeinoutquint" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4);
case "easeoutinquint" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinsine" :
return((((-_local2) * Math.cos((_local1 / _local3) * (Math.PI/2))) + _local2) + _local4);
case "easeoutsine" :
return((_local2 * Math.sin((_local1 / _local3) * (Math.PI/2))) + _local4);
case "easeinoutsine" :
return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4);
case "easeoutinsine" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinexpo" :
return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4)));
case "easeoutexpo" :
return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4)));
case "easeinoutexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4);
}
_local1--;
return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4);
case "easeoutinexpo" :
if (_local1 == 0) {
return(_local4);
}
if (_local1 == _local3) {
return(_local4 + _local2);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4);
}
return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4);
case "easeincirc" :
_local1 = _local1 / _local3;
return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
case "easeoutcirc" :
_local1 = (_local1 / _local3) - 1;
return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4);
case "easeinoutcirc" :
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4);
}
_local1 = _local1 - 2;
return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4);
case "easeoutincirc" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
_local1 = _local1 - 1;
return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
case "easeoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / _local3;
if (_local1 == 1) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.3;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4);
case "easeinoutelastic" :
if (_local1 == 0) {
return(_local4);
}
_local1 = _local1 / (_local3 / 2);
if (_local1 == 2) {
return(_local4 + _local2);
}
if (!_local7) {
_local7 = _local3 * 0.45;
}
if ((!_local6) || (_local6 < Math.abs(_local2))) {
_local6 = _local2;
_local5 = _local7 / 4;
} else {
_local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6);
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4);
}
_local1 = _local1 - 1;
return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4);
case "easeoutinelastic" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / _local3;
return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4);
case "easeoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = (_local1 / _local3) - 1;
return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4);
case "easeinoutback" :
if (_local5 == undefined) {
_local5 = 1.70158;
}
_local1 = _local1 / (_local3 / 2);
if (_local1 < 1) {
_local5 = _local5 * 1.525;
return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4);
}
_local1 = _local1 - 2;
_local5 = _local5 * 1.525;
return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4);
case "easeoutinback" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeinbounce" :
return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4);
case "easeoutbounce" :
_local1 = _local1 / _local3;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local4);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4);
case "easeinoutbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4);
case "easeoutinbounce" :
if (_local1 < (_local3 / 2)) {
return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4);
}
return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4);
}
trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type.");
return(0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
tweenBackground = function (toWhere) {
allowStageMove = false;
Tweener.addTween(_root.ref, {_x:-vectorClip.contactPage._x, _y:-vectorClip.contactPage._y, _bezier:[{_x:500, _y:100}], time:6, transition:"linear"});
};
var fs;
var fullscreenCM = new ContextMenu(menuHandler);
fullscreenCM.hideBuiltInItems();
var fs = new ContextMenuItem("Go Full Screen", goFullScreen);
fullscreenCM.customItems.push(fs);
var xfs = new ContextMenuItem("Exit Full Screen", exitFullScreen);
fullscreenCM.customItems.push(xfs);
_root.menu = fullscreenCM;
bbv2So = SharedObject.getLocal("bbv2So");
controllClip = "none";
attachVectorClip = function () {
trace("do attach");
_root.attachMovie("vectorClip", "vectorClip", 800);
vectorClip._x = -20000 - (Stage.width / 2);
vectorClip._y = -12500 - (Stage.height / 2);
vectorClip.createEmptyMovieClip("homeHolder", vectorClip.getNextHighestDepth());
vectorClip.homeHolder._x = 20000 - (Stage.width / 2);
vectorClip.homeHolder._y = 12500 - (Stage.height / 2);
vectorClip.createEmptyMovieClip("awardHolder", vectorClip.getNextHighestDepth());
vectorClip.awardHolder._x = 31022;
vectorClip.awardHolder._y = 16856;
vectorClip.mdBack._x = 22000;
vectorClip.mdBack._y = 12500;
vectorClip.attachMovie("shirtAd", "shirtAd", vectorClip.getNextHighestDepth());
vectorClip.shirtAd._x = 21210;
vectorClip.shirtAd._y = 9668;
vectorClip.attachMovie("pijl", "pijl", vectorClip.getNextHighestDepth());
vectorClip.pijl._x = 19800;
vectorClip.pijl._y = 15580;
vectorClip.pijl._xscale = 1598;
vectorClip.pijl._yscale = 1598;
vectorClip.pijl._rotation = 0;
vectorClip.homeHolder.attachMovie("homePage", "homePage", vectorClip.homeHolder.getNextHighestDepth());
vectorClip.homeHolder.homePage._x = 30;
vectorClip.homeHolder.homePage._y = 30;
vectorClip.awardHolder.attachMovie("awardPage", "awardPage", vectorClip.awardHolder.getNextHighestDepth());
vectorClip.awardHolder.awardPage._x = 30;
vectorClip.awardHolder.awardPage._y = 30;
vectorClip.attachMovie("biographyPage", "biographyPage", vectorClip.getNextHighestDepth());
vectorClip.biographyPage._x = 35338;
vectorClip.biographyPage._y = 2472;
vectorClip.attachMovie("contactPage", "contactPage", vectorClip.getNextHighestDepth());
vectorClip.contactPage._x = 2390;
vectorClip.contactPage._y = 2960;
vectorClip.attachMovie("geelpop", "geelpop", vectorClip.getNextHighestDepth());
vectorClip.geelpop._x = 13700;
vectorClip.geelpop._y = 17500;
vectorClip.geelpop._xscale = (vectorClip.geelpop._yscale = 200);
vectorClip.attachMovie("geelpop2", "geelpop2", vectorClip.getNextHighestDepth());
vectorClip.geelpop2._x = 13100;
vectorClip.geelpop2._y = 17850;
vectorClip.geelpop2._xscale = (vectorClip.geelpop2._yscale = 150);
vectorClip.attachMovie("modeman_blauwpop", "modeman_blauwpop", vectorClip.getNextHighestDepth());
vectorClip.modeman_blauwpop._x = 5492;
vectorClip.modeman_blauwpop._y = 14038;
vectorClip.modeman_blauwpop._rotation = -16;
vectorClip.attachMovie("opposites", "opposites", vectorClip.getNextHighestDepth());
vectorClip.opposites._x = 25879;
vectorClip.opposites._y = 20351;
vectorClip.opposites._rotation = 0;
vectorClip.attachMovie("raccoon", "raccoon", vectorClip.getNextHighestDepth());
vectorClip.raccoon._x = 31950;
vectorClip.raccoon._y = 4210;
vectorClip.attachMovie("platenSpelerClip", "platenSpelerClip", vectorClip.getNextHighestDepth());
vectorClip.platenSpelerClip._x = 26390;
vectorClip.platenSpelerClip._y = 16052;
vectorClip.attachMovie("chicky", "chicky", vectorClip.getNextHighestDepth());
vectorClip.chicky._x = 26950;
vectorClip.chicky._y = 16100;
vectorClip.attachMovie("kat", "kat", vectorClip.getNextHighestDepth());
vectorClip.kat._x = 22332;
vectorClip.kat._y = 6862;
vectorClip.attachMovie("battery", "battery", vectorClip.getNextHighestDepth());
vectorClip.battery._x = 12656;
vectorClip.battery._y = 3676;
vectorClip.battery.allowDrag = true;
vectorClip.battery._rotation = 20;
vectorClip.battery._xscale = 200;
vectorClip.battery._yscale = 200;
vectorClip.attachMovie("valPop", "valPop", vectorClip.getNextHighestDepth());
vectorClip.valPop._x = 24178;
vectorClip.valPop._y = 5760;
vectorClip.attachMovie("toelloe", "toelloe", vectorClip.getNextHighestDepth());
vectorClip.toelloe._x = 35500;
vectorClip.toelloe._y = 22100;
vectorClip.attachMovie("metalDetector", "metalDetector", vectorClip.getNextHighestDepth());
vectorClip.metalDetector._x = 8665;
vectorClip.metalDetector._y = 11483;
vectorClip.attachMovie("draak", "draak", vectorClip.getNextHighestDepth());
vectorClip.draak._x = 3000;
vectorClip.draak._y = 15000;
vectorClip.attachMovie("ufoAni", "ufoAni", vectorClip.getNextHighestDepth());
vectorClip.ufoAni._x = 10000;
vectorClip.ufoAni._y = 10000;
vectorClip.attachMovie("ufoAni2", "ufoAni2", vectorClip.getNextHighestDepth());
vectorClip.ufoAni2._x = 10000;
vectorClip.ufoAni2._y = 10000;
setBrowserSize();
};
setBrowserSize();
startVCSounds = function () {
playSound(_root.vectorClip.raccoon, _root.racoonauw, true, [[_root.vectorClip.raccoon.ani.hoofd, _root.vectorClip.raccoon.ani], 0, "none"]);
playSound(_root.vectorClip.opposites, _root.nuhuhjuhu, true, [_root.vectorClip.opposites, 0, "none"]);
playSound(_root.vectorClip.geelpop.radio, _root.dbsample, true);
playSound(_root.vectorClip.ufoAni2, _root.ufoSound2, true);
playSound(_root.vectorClip.kat, _root.miauw, true, [_root.vectorClip.kat, 0, "none"]);
playSound(_root.vectorClip.valPop, _root.waaa, true);
};
Stage.align = "TL";
Stage.scaleMode = "noScale";
_focusrect = false;
showMdKnop = false;
doDonation = function () {
getURL ("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=467925", "_blank");
};
createMfm = function () {
_root.attachMovie("mfm", "mfm", _root.getNextHighestDepth());
mfm._visible = false;
scaleNum = getSNum();
if (scaleNum < 1) {
mfm._y = Stage.height + (230 * scaleNum);
} else {
scaleNum = 1;
mfm._y = Stage.height + 230;
}
mfm._xscale = scaleNum * 100;
if (mfm._xscale > 100) {
mfm._xscale = 100;
}
mfm._yscale = mfm._xscale;
if (mfm.locktoSide == "right") {
mfm._x = Stage.width - 200;
}
atmegaFoonAni = 3;
cursorOnTop();
};
introduceToolbox = function () {
createControlls();
showControlls();
};
checkDrag = function () {
trace("dragging?");
};
getRotation = function (x1, x2, y1, y2) {
opposite = x1 - x2;
ajacent = y1 - y2;
rotationInRadians = Math.atan2(opposite, ajacent);
rotationInDegrees = rotationInRadians / (Math.PI/180);
return(rotationInDegrees);
};
getRot = function (x1, x2, y1, y2) {
opposite = x1 - x2;
ajacent = y1 - y2;
rotationInRadians = Math.atan2(opposite, ajacent);
rotationInDegrees = rotationInRadians / (Math.PI/180);
return(rotationInDegrees);
};
xDiff = (yDiff = 0);
createKind = function () {
if (_root.kindPop == undefined) {
_root.createEmptyMovieClip("kindPop", _root.getNextHighestDepth());
var _local2 = new Object();
_root.kindPop._x = 300;
_local2.onLoadInit = function (target_mc) {
_root.kindPop.cBoy._y = Stage.height + 450;
};
var _local3 = new MovieClipLoader();
_local3.addListener(_local2);
_local3.loadClip("contactboy.swf", kindPop);
}
};
sendMail = function (email, mes) {
emailVars = new LoadVars();
emailgetlVars = new LoadVars();
emailVars.email = email;
emailVars.mes = mes;
emailVars.sendAndLoad("php/sendmail_v2.php", emailgetlVars, "POST");
};
iWantShirt = function () {
if (_root.buyShirt == undefined) {
_root.attachMovie("buyShirt", "buyShirt", _root.getNextHighestDepth());
buyShirt._xscale = (buyShirt._yscale = 0);
buyShirt.scaleTo(100, 0.6, "easeOutElastic");
buyShirt._x = Stage.width / 2;
buyShirt._y = Stage.height / 2;
_root.cursorOnTop();
}
};
sendShirtEmail = function (email) {
shirtVars = new LoadVars();
shirtLoadVars = new LoadVars();
shirtVars.email = email;
shirtVars.sendAndLoad("wantshirt.php", shirtLoadVars, "POST");
};
var dl = com.deconstruct.browser.DeeplinkManager.create();
dl.init(new com.deconstruct.browser.DeeplinkRouter());
com.deconstruct.ui.MouseWheel.addListener(this);
stageListener = new Object();
keyListener = new Object();
mouseListener = new Object();
Mouse.addListener(mouseListener);
_root.lockTo = "home";
setBrowserSize = function () {
calcTilesProp();
updateTiles();
vectorClip.homeHolder.backColor._width = Stage.width + 180;
vectorClip.homeHolder.backColor._height = Stage.height + 180;
vectorClip.homeHolder._height = Stage.height - (Stage.height / 10);
vectorClip.homeHolder._xscale = vectorClip.homeHolder._yscale;
eey = vectorClip.contactPage.emailerror._y;
trace(vectorClip.contactPage.dropStatus);
if ((vectorClip.contactPage.dropStatus != "letFall") and (vectorClip.contactPage.dropStatus != undefined)) {
emy = vectorClip.contactPage.email.field._y;
vectorClip.contactPage.email.field._y = 100;
}
vectorClip.contactPage.emailerror._y = 500;
vectorClip.contactPage._height = (Stage.height - 30) - (Stage.height / 10);
vectorClip.contactPage._xscale = vectorClip.contactPage._yscale;
if ((vectorClip.contactPage.dropStatus != "letFall") and (vectorClip.contactPage.dropStatus != undefined)) {
vectorClip.contactPage.email.field._y = emy;
}
vectorClip.contactPage.emailerror._y = eey;
vectorClip.biographyPage.trex._y = 178;
vectorClip.biographyPage._height = Stage.height;
if (vectorClip.biographyPage._yscale > 100) {
vectorClip.biographyPage._yscale = 100;
}
vectorClip.biographyPage._xscale = vectorClip.biographyPage._yscale;
vectorClip.biographyPage.trex._y = 58;
vectorClip.awardHolder._height = Stage.height - (Stage.height / 10);
if (vectorClip.awardHolder._yscale > 100) {
vectorClip.awardHolder._yscale = 100;
}
vectorClip.awardHolder._xscale = vectorClip.awardHolder._yscale;
vectorClip.homeHolder._x = 20000 - (Stage.width / 2);
vectorClip.homeHolder._y = 12500 - (Stage.height / 2);
scaleNum = getSNum();
if (scaleNum < 1) {
mfm._y = Stage.height + (230 * scaleNum);
} else {
scaleNum = 1;
mfm._y = Stage.height + 230;
}
mfm._xscale = scaleNum * 100;
if (mfm._xscale > 100) {
mfm._xscale = 100;
}
mfm._yscale = mfm._xscale;
if (mfm.locktoSide == "right") {
mfm._x = Stage.width - 200;
mfm._xscale = -mfm._xscale;
}
ObjectiveBanenAchter._xscale = scaleNum * 100;
ObjectiveBanenAchter._yscale = ObjectiveBanenAchter._xscale;
ObjectiveBanenAchter._x = Stage.width;
ObjectiveBanenAchter._y = Stage.height;
if (vectorClip.homeHolder._xscale > 100) {
vectorClip.homeHolder._xscale = (vectorClip.homeHolder._yscale = 100);
}
if (vectorClip.contactPage._xscale > 100) {
vectorClip.contactPage._xscale = (vectorClip.contactPage._yscale = 100);
}
obj_findTools._x = (Stage.width - obj_findTools.back._width) - 60;
obj_dragNav._x = (Stage.width - obj_dragNav.back._width) - 60;
obj_findTools._x = (Stage.width - obj_findTools.back._width) - 60;
obj_fixContact._x = (Stage.width - obj_fixContact.back._width) - 60;
buyShirt._x = Stage.width / 2;
buyShirt._y = Stage.height / 2;
obj_dragNav._y = (obj_findTools._y = (obj_fixContact._y = Stage.height - 50));
drawGrid();
preloaderClip.fsc._x = Stage.width / 2;
preloaderClip.fsc._y = Stage.height / 2;
preloaderClip.oho._x = Stage.width - 20;
if (_root.lockTo == "home") {
ref._x = -vectorClip.homeHolder._x;
ref._y = -vectorClip.homeHolder._y;
refToX = ref._x;
refToY = ref._y;
} else if (lockTo == "raccoon") {
ref._x = (-vectorClip.raccoon._x) + (Stage.width / 2);
ref._y = (-vectorClip.raccoon._y) + (Stage.height / 2);
refToX = ref._x;
refToY = ref._y;
} else if (lockTo == "md") {
ref._x = (-vectorClip.metalDetector._x) + (Stage.width / 2);
ref._y = ((-vectorClip.metalDetector._y) + (Stage.height / 2)) - 100;
refToX = ref._x;
refToY = ref._y;
} else if (lockTo == "ps") {
ref._x = (-vectorClip.platenSpelerClip._x) + (Stage.width / 3);
ref._y = ((-vectorClip.platenSpelerClip._y) + (Stage.height / 2)) + 100;
refToX = ref._x;
refToY = ref._y;
}
};
stageListener.onResize = setBrowserSize;
getDistance = function (x1, x2, y1, y2) {
delta_x = x1 - x2;
delta_y = y1 - y2;
distance = Math.sqrt((delta_x * delta_x) + (delta_y * delta_y));
return(distance);
};
getObjDistance = function (who2, who) {
objPos = getStagePos(who);
objPos2 = getStagePos(who2);
return(_root.getDistance(objPos2[0], objPos[0], objPos2[1], objPos[1]));
};
getStagePos = function (object) {
var _local1 = {x:0, y:0};
object.localToGlobal(_local1);
return([_local1.x, _local1.y]);
};
getObjPos = function (object1, object2) {
var _local1 = {x:object2._x, y:object2._x};
object.localToGlobal(_local1);
return([_local1.x, _local1.y]);
};
mouseListener.onMouseWheel = function (delta) {
if (delta > 0) {
_root.scrollZoom(-1);
} else {
_root.scrollZoom(1);
}
};
Stage.addListener(stageListener);
Key.addListener(keyListener);
Mouse.addListener(mouseListener);
createControlls = function () {
_root.attachMovie("controlls", "controlls", 1000);
controlls._alpha = 0;
};
hideControlls = function () {
if (controlls.playingAni == false) {
controlls.zib.enabled = false;
controlls.zob.enabled = false;
controlls.homeB.enabled = false;
controlls.onTweenComplete = function () {
this._visible = false;
};
controlls.alphaTo(0, _root.brtt, _root.brtm);
}
};
showControlls = function () {
controlls.zib.enabled = true;
controlls.zob.enabled = true;
controlls.homeB.enabled = true;
controlls._visible = true;
controlls.onTweenComplete = null;
controlls.alphaTo(100, _root.brtt, _root.brtm);
};
startStampMusic = function () {
_root.playSound(_root.vectorClip.chicky, _root.stampSound, true, false);
_root.setStageMove(true);
_root.vectorClip.chicky.gotoAndStop(3);
_root.lockTo = "none";
};
startChickyMusic = function () {
_root.zoomToTarget(1, _root.vectorClip.platenSpelerClip, [(Stage.width / 3) - 200, (Stage.height / 2) + 100]);
_root.vectorClip.platenSpelerClip.gotoAndStop(2);
_root.vectorClip.chicky.gotoAndStop(2);
playSound(_root.vectorClip.chicky, _root.stampIntro, false, [_root.vectorClip.chicky.chickPil, 0, startStampMusic]);
};
addVergrootglas = function (oriG) {
vg = _root.attachMovie("vergrootglas", "vergrootglas", _root.getNextHighestDepth());
orip = getStagePos(oriG);
vg._x = orip[0];
vg._y = orip[1];
vg._xscale = (vg._yscale = vectorClip._xscale);
vg.scaleTo(10, 1, "easeInQuad");
vg.slideTo(400, 30, 1, "easeInQuad");
vg.onTweenComplete = function () {
removeMovieClip(this);
};
};
controllAni = function (aniId) {
controlls.aniStatus = aniId;
if (controlls.allowClose == true) {
controlls.tb.openTB();
controlls.allowClose = false;
} else {
controlls.tb.checkAni();
}
};
controllsThanks = function () {
controlls.aniStatus = controllAni("thanks");
if (controlls.allowClose == true) {
controlls.tb.openTB();
controlls.allowClose = false;
} else {
controlls.tb.checkAni();
}
};
TellToUseMD = function () {
if (tellInt == undefined) {
_root.tellInt = setInterval(doTellToUseMD, 60000);
}
};
doTellToUseMD = function () {
controllAni("useMD");
showMdKnop = true;
getURL ("javascript:pageTracker._trackPageview('/toolBox/toldToUseMD');");
clearInterval(_root.tellInt);
};
clearTellInt = function () {
clearInterval(_root.tellInt);
};
createGrabHand = function (who) {
cc = _root.attachMovie("cursor", "cursor2", _root.getNextHighestDepth());
cc.gotoAndStop(5);
cc._y = Stage.height + 100;
cc.myT = who;
cc._rotation = 60;
cc.tweenSpeed = 2;
cc.onEnterFrame = function () {
if (this.myT == _root.vectorClip.battery) {
this.toP = _root.getStagePos(_root.vectorClip.battery);
this.toP[0] = this.toP[0] + 120;
this.toP[1] = this.toP[1] + 30;
} else if (this.myT == "cursor") {
this.toP = [_root.cursor._x - 200, _root.cursor._y];
this._rotation = this._rotation - (this._rotation / 4);
} else if (this.myT == "waitForInput") {
this.toP = [Stage.width / 4, Stage.height / 1.5];
} else if (this.myT == "putIn") {
this._rotation = this._rotation + ((180 - this._rotation) / 4);
this.toP = _root.getStagePos(_root.vectorClip.platenSpelerClip.psi.mond);
this.toP[0] = this.toP[0] - 190;
this.toP[1] = this.toP[1] + 24;
} else if (this.myT == "putIn2") {
this._rotation = this._rotation + ((28 - this._rotation) / 4);
this.toP = _root.getStagePos(_root.vectorClip.platenSpelerClip.psi.mond);
this.toP[0] = this.toP[0] - 310;
this.toP[1] = this.toP[1] + 60;
} else if (this.myT == "putIn3") {
this._rotation = this._rotation + ((20 - this._rotation) / 2);
this.toP = _root.getStagePos(_root.vectorClip.platenSpelerClip.psi.mond);
this.toP[0] = this.toP[0] - 160;
this.toP[1] = this.toP[1] + 40;
} else if (this.myT == "moveAway") {
this._rotation = this._rotation + ((-this._rotation) / 2);
this.toP = [-200, Stage.height];
this.tweenSpeed = 6;
}
sp = [this._x, this._y];
this._x = this._x + ((this.toP[0] - this._x) / this.tweenSpeed);
this._y = this._y + ((this.toP[1] - this._y) / this.tweenSpeed);
if (this.myT == "putIn3") {
vectorClip.platenSpelerClip.psi.bat._x = vectorClip.platenSpelerClip.psi.bat._x - (sp[0] - this._x);
vectorClip.platenSpelerClip.psi.bat._y = vectorClip.platenSpelerClip.psi.bat._y - (sp[1] - this._y);
}
if (this.myT == _root.vectorClip.battery) {
if (((((this._x - this.toP[0]) < 3) and ((this._x - this.toP[0]) > -3)) and ((this._y - this.toP[1]) < 3)) and ((this._y - this.toP[1]) > -3)) {
this.myT._visible = false;
this.gotoAndStop(6);
this.myT = "cursor";
this.tweenSpeed = 4;
_root.allowStageMove = true;
_root.allowZoom = true;
}
} else if (this.myT == "cursor") {
this.toP = _root.getStagePos(_root.vectorClip.platenSpelerClip.psi.mond);
if (((((zoomLevel <= 4) and ((this._x - this.toP[0]) < 300)) and ((this._x - this.toP[0]) > -300)) and ((this._y - this.toP[1]) < 300)) and ((this._y - this.toP[1]) > -300)) {
_root.zoomToTarget(1, _root.vectorClip.platenSpelerClip, [Stage.width / 3, (Stage.height / 2) + 100]);
setStageMove(false);
_root.lockTo = "ps";
playSound(_root.vectorClip.platenSpelerClip.psi.mond, _root.mrsradio, false, [_root.vectorClip.platenSpelerClip.psi.mond, 0, startChickyMusic]);
this.myT = "waitForInput";
this.mic = 0;
}
} else if (this.myT == "waitForInput") {
this.mic++;
if (this.mic == 180) {
this.myT = "putIn";
this.tweenSpeed = 2;
}
} else if (this.myT == "putIn") {
if (((((this._x - this.toP[0]) < 3) and ((this._x - this.toP[0]) > -3)) and ((this._y - this.toP[1]) < 3)) and ((this._y - this.toP[1]) > -3)) {
vectorClip.platenSpelerClip.psi.bat._visible = true;
this.gotoAndStop(5);
this.tweenSpeed = 6;
this.myT = "putIn2";
}
} else if (this.myT == "putIn2") {
if (((((this._x - this.toP[0]) < 3) and ((this._x - this.toP[0]) > -3)) and ((this._y - this.toP[1]) < 3)) and ((this._y - this.toP[1]) > -3)) {
this.gotoAndStop(7);
this.myT = "putIn3";
}
} else if (this.myT == "putIn3") {
if (((((this._x - this.toP[0]) < 3) and ((this._x - this.toP[0]) > -3)) and ((this._y - this.toP[1]) < 3)) and ((this._y - this.toP[1]) > -3)) {
this.gotoAndStop(5);
this.myT = "moveAway";
}
} else if (this.myT == "moveAway") {
if (((((this._x - this.toP[0]) < 3) and ((this._x - this.toP[0]) > -3)) and ((this._y - this.toP[1]) < 3)) and ((this._y - this.toP[1]) > -3)) {
removeMovieClip(_root.vectorClip.battery);
removeMovieClip(this);
}
}
};
};
cursorOnTop = function () {
_root.cursor.swapDepths(_root.getNextHighestDepth());
};
getSNum = function () {
return(Stage.height / 1024);
};
showObjective = function (text, id) {
if (_root.ObjectiveBanenAchter == undefined) {
_root.attachMovie("ObjectiveBanenAchter", "ObjectiveBanenAchter", _root.getNextHighestDepth());
scaleNum = getSNum();
ObjectiveBanenAchter._xscale = scaleNum * 100;
ObjectiveBanenAchter._yscale = ObjectiveBanenAchter._xscale;
ObjectiveBanenAchter._x = Stage.width;
ObjectiveBanenAchter._y = Stage.height;
} else {
ObjectiveBanenAchter.onEnterFrame = null;
ObjectiveBanenAchter.play();
}
if (_root["obj_" + id] == undefined) {
cow = attachMovie("objectiveWolk", "obj_" + id, _root.getNextHighestDepth());
cow.tbox.autoSize = true;
cow.tbox.text = text;
if ((cow.tbox._width + 100) < 350) {
cow.back._width = 350;
} else {
cow.back._width = cow.tbox._width + 100;
}
cow._x = (Stage.width - cow.back._width) - 60;
cow._y = Stage.height + 200;
cow.ySlideTo(Stage.height - 50, 0.5, "easeOutBack");
}
mfm.swapDepths(_root.getNextHighestDepth());
_root.cursorOnTop();
};
removeOBA = function () {
ObjectiveBanenAchter.cacheAsBitmap = false;
ObjectiveBanenAchter.onEnterFrame = function () {
this.prevFrame();
if (this._currentframe == 1) {
removeMovieClip(this);
}
};
};
_root.attachMovie("cursor", "cursor", 2000);
Mouse.hide();
_root.cursor.gotoAndStop(1);
loadArray = new Array();
loadingNow = false;
var tileLoader = new MovieClipLoader();
tileListener = new Object();
tileLoader.addListener(tileListener);
maxSimuLoads = 3;
loadNextTile = function () {
if ((loadingNow == false) and (loadArray.length > 0)) {
loadingNow = loadArray[0];
tileLoader.loadClip(loadArray[0][1], loadArray[0][0]);
}
};
addToLoad = function (target, imgUrl, zoomLevel) {
loadArray.push([target, imgUrl, zoomLevel]);
loadNextTile();
};
resetLoadQue = function () {
_root["loadArray" + _root.zoomLevel] = _root.loadArray;
_root.loadArray = new Array();
_root.loadingNow = false;
tileLoader.unloadClip(loadingNow);
};
removeTileLoad = function (tile) {
if (loadingNow[0] == tile) {
return(true);
}
return(false);
};
removeMeFromLoad = function (loader) {
l = 0;
while (l < loadArray.length) {
if (loadArray[l][0] == loader) {
nl = removeTileLoad(loadArray[l][0]);
loadArray.splice(l, 1);
if (nl == true) {
tileLoader.unloadClip(loadingNow);
loadingNow = false;
loadNextTile();
}
break;
}
l++;
}
};
tileListener.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
};
tileListener.onLoadStart = function (target_mc) {
};
tileListener.onLoadComplete = function (mc) {
mc.tileLoaded = true;
mc.alphaTo(100, 0.2, "easeOutQuad");
loadingNow = false;
removeMeFromLoad(mc);
loadNextTile();
};
zoomLevel = 1;
loadLevel = zoomLevel;
refToX = (refToY = 0);
maxTileLevel = 5;
maxZoom = 2;
allowZoom = false;
setMaxZoom = function (to) {
maxZoom = to;
};
zoomToLevel = function (zoomLevel, sXpos, sYpos) {
if (allowZoom == true) {
if (Math.round(_root.zoomLevel) != zoomLevel) {
initGrid = true;
refLine._visible = false;
scaleSpeed = 5;
if ((sXpos == undefined) or ((sYpos == undefined) and (followUser == false))) {
atWP = ((-(ref._x - (Stage.width / 2))) / ref._width) * 100;
atHP = ((-(ref._y - (Stage.height / 2))) / ref._height) * 100;
} else {
atWP = ((-(ref._x - sXpos)) / ref._width) * 100;
atHP = ((-(ref._y - sYpos)) / ref._height) * 100;
}
resetLoadQue();
_root.zoomLevel = zoomLevel;
if (zoomLevel <= maxTileLevel) {
loadLevel = Math.ceil(_root.zoomLevel);
createTileLayer(loadLevel);
} else {
k = 0;
while (k < _root.layerArray.length) {
removeTileLayer(layerArray[k][1]);
k++;
}
}
calcImageProps();
calcTilesProp();
if (((sXpos == undefined) or (sYpos == undefined)) or (followUser == true)) {
refToX = (-((_root.imageWidth / 100) * atWP)) + (Stage.width / 2);
refToY = (-((_root.imageHeight / 100) * atHP)) + (Stage.height / 2);
} else {
refToX = (-((_root.imageWidth / 100) * atWP)) + sXpos;
refToY = (-((_root.imageHeight / 100) * atHP)) + sYpos;
}
if (_root["loadArray" + _root.zoomLevel].length > 0) {
_root.loadArray = _root["loadArray" + _root.zoomLevel];
}
if (drag == false) {
allowAniPos = true;
}
resetTileInfo = true;
}
}
};
zoomToTarget = function (zoomLevel, target, offSet) {
test = getStagePos(target);
trace(test);
zoomToLevel(zoomLevel);
scaleSpeed = 200;
resetLoadQue();
createTileLayer(zoomLevel);
_root.xSpeed = 0;
_root.ySpeed = 0;
vx = 0;
vy = 0;
calcImageProps();
calcTilesProp();
if (offSet != undefined) {
refToX = (-target._x) + offSet[0];
refToY = (-target._y) + offSet[1];
} else {
refToX = -target._x;
refToY = -target._y;
}
if (_root["loadArray" + _root.zoomLevel].length > 0) {
_root.loadArray = _root["loadArray" + _root.zoomLevel];
}
if (drag == false) {
allowAniPos = true;
}
resetTileInfo = true;
};
getZoomScale = function (zoom) {
finalScale = 200 / Math.pow(2, zoom);
return(finalScale);
};
scrollZoom = function (scrollPower) {
if ((zoomLevel + scrollPower) > maxZoom) {
zoomToLevel(maxZoom, _xmouse, _ymouse);
} else if ((zoomLevel + scrollPower) < 1) {
zoomToLevel(1, _xmouse, _ymouse);
} else {
zoomToLevel(Math.round(zoomLevel + scrollPower), _xmouse, _ymouse);
}
};
butZoom = function (scrollPower) {
if ((zoomLevel + scrollPower) > maxZoom) {
zoomToLevel(maxZoom);
} else if ((zoomLevel + scrollPower) < 1) {
zoomToLevel(1);
} else {
zoomToLevel(Math.round(zoomLevel + scrollPower));
}
};
imagePath = "bg/";
sourceWidth = 40000;
sourceHeight = 25000;
tileSize = 250;
refLoaded = false;
showTileInfo = false;
resetTileInfo = false;
xPos = 0;
yPos = 0;
_root.aantalTiles = 0;
gridAlpha = 30;
ref = _root.createEmptyMovieClip("ref", 200);
refLine = _root.createEmptyMovieClip("lh", 205);
refLine.cacheAsBitmap = true;
refLine._alpha = 50;
refClip = ref.createEmptyMovieClip("refClip ", 1);
var refLoader = new MovieClipLoader();
var listener = new Object();
ref._visible = false;
refLoader.addListener(listener);
refLoader.loadClip("ref.jpg", refClip);
_root.attachMovie("preloader", "preloader", 1100);
attachMovie("preloaderGraphic", "preloaderGraphic", _root.getNextHighestDepth());
attachMovie("preloaderClip", "preloaderClip", _root.getNextHighestDepth());
ds = new flash.filters.DropShadowFilter(0, 0, 16185064, 100, 5, 5, 10, 1, true, false, false);
preloaderGraphic.filters = [ds];
preloaderGraphic.setMask(preloader);
pre = 0;
cursor.swapDepths(_root.getNextHighestDepth());
preloaderClip.oho._x = Stage.width - 20;
preloaderClip.fsc._x = Stage.width / 2;
preloaderClip.fsc._y = Stage.height / 2;
preloaderClip.fsc._alpha = 0;
preloaderClip.fsc.fsb.enabled = false;
preloaderClip.fsc.esb.enabled = false;
plbPointAt = "balk";
preloader.doneLoading = false;
preloader.onEnterFrame = function () {
preloaderGraphic._width = Stage.width;
var _local3 = refLoader.getProgress(refClip);
moveStage();
pre = (_root.getBytesLoaded() + _local3.bytesLoaded) / (_root.getBytesTotal() + _local3.bytesTotal);
preloader._width = preloader._width + (((Stage.width * pre) - preloader._width) / 3);
if (((pre == 1) and (ref._width > 10)) and (this.doneLoading == false)) {
preloader.ySlideTo(-200, 1, "easeOutQuad");
preloaderClip.zho.ySlideTo(-200, 1, "easeOutQuad");
preloaderClip.oho.ySlideTo(-200, 1, "easeOutQuad");
preloaderClip.fsc.alphaTo(100, 0.2, "easeOutQuad", 1);
preloaderClip.fsc.fsb.enabled = true;
preloaderClip.fsc.esb.enabled = true;
plbPointAt = "knop";
this.doneLoading = true;
}
};
_root.removePreloader = function () {
preloaderClip.fsc.stopTween();
preloaderClip.fsc.onTweenComplete = function () {
preloaderClip.gotoAndStop(2);
preloaderClip.fsc._y = Stage.height / 2;
preloaderClip.fsc._x = Stage.width / 2;
preloaderClip.fsc._alpha = 0;
preloaderClip.fsc.onTweenComplete = function () {
preloaderClip.fsc.onTweenComplete = function () {
_root.createSite();
};
preloaderClip.fsc.alphaTo(0, 0.2, "easeOutQuad", 3);
};
preloaderClip.fsc.alphaTo(100, 0.2, "easeOutQuad", 0.2);
};
preloaderClip.fsc.alphaTo(0, 0.2, "easeOutQuad", 0.2);
preloaderClip.v1.flyAway();
preloaderClip.v2.flyAway();
};
createSite = function () {
gotoAndStop (3);
init();
startSite();
createMfm();
ref._visible = true;
attachVectorClip();
preloaderGraphic.removeMovieClip();
preloader.removeMovieClip();
setDepths();
attachMovie("grijsVlak", "grijsVlak", _root.getNextHighestDepth());
grijsVlak.onTweenComplete = function () {
preloaderClip.removeMovieClip();
grijsVlak.removeMovieClip();
};
grijsVlak.onPress = function () {
};
grijsVlak._width = Stage.width;
grijsVlak._height = Stage.height;
grijsVlak.slideTo(Stage.width, 0, 0.4, "easeInQuad", 0.5);
preloaderClip.swapDepths(_root.getNextHighestDepth());
cursorOnTop();
};
layerArray = new Array();
showHelpBox = function (xp, yp, clip) {
if (_root[clip] == undefined) {
cClip = _root.attachMovie(clip, clip, _root.getNextHighestDepth());
cClip._y = yp;
cClip._x = xp;
cursorOnTop();
}
};
pixSize = 0;
moveGrid = function () {
atPixX = Math.floor(ref._x / pixSizeZoomLevel) + 1;
atPixY = Math.floor(ref._y / pixSizeZoomLevel) + 1;
refLine._x = ref._x - (atPixX * pixSizeZoomLevel);
refLine._y = ref._y - (atPixY * pixSizeZoomLevel);
};
doGridDraw = false;
pixSize = Stage.width;
oriRefWidth = 1;
drawGrid = function () {
if ((zoomLevel != 5) and (doGridDraw == true)) {
refLine._visible = true;
gridAlpha = 100 - ((_root.zoomLevel * 2) * 10);
refLine._alpha = gridAlpha;
refLine.clear();
refLine.lineStyle(0, 3355443, 100);
pixSize = ref._width / oriRefWidth;
pixSizeZoomLevel = pixSize;
atPixX = 1;
atPixY = 1;
q = 0;
while (q < (Stage.width / pixSizeZoomLevel)) {
refLine.moveTo(q * pixSizeZoomLevel, 0);
refLine.lineTo(q * pixSizeZoomLevel, Stage.height + pixSizeZoomLevel);
q++;
}
q = 0;
while (q < (Stage.height / pixSizeZoomLevel)) {
refLine.moveTo(0, q * pixSizeZoomLevel);
refLine.lineTo(Stage.width + pixSizeZoomLevel, q * pixSizeZoomLevel);
q++;
}
}
};
startSite = function () {
_root.preloader.removeMovieClip();
oriRefWidth = refClip._width;
pixSize = Math.floor(sourceWidth / refClip._width);
refClip._width = sourceWidth;
refClip._yscale = refClip._xscale;
ref._xscale = getZoomScale(zoomLevel);
ref._yscale = ref._xscale;
ref._x = ((-ref._width) / 2) + (Stage.width / 2);
ref._y = ((-ref._height) / 2) + (Stage.height / 2);
refToX = ref._x;
refToY = ref._y;
loadingtext._visible = false;
refLoaded = true;
setRefSize();
fillBack();
};
getStagePos = function (object) {
var _local1 = {x:0, y:0};
object.localToGlobal(_local1);
return([_local1.x, _local1.y]);
};
calcImageProps = function () {
imageWidth = (sourceWidth / 100) * getZoomScale(zoomLevel);
imageHeight = (sourceHeight / 100) * getZoomScale(zoomLevel);
};
calcTilesProp = function () {
tilesW = Math.ceil(imageWidth / tileSize);
tilesH = Math.ceil(imageHeight / tileSize);
numTilesW = Math.ceil(Stage.width / tileSize);
numTilesH = Math.ceil(Stage.height / tileSize);
};
calcTileArea = function () {
firstTileX = Math.floor((-refToX) / tileSize);
firstTileY = Math.floor((-refToY) / tileSize);
if (firstTileX < 0) {
firstTileX = 0;
} else if (firstTileX > tilesW) {
firstTileX = tilesW;
}
if (firstTileY < 0) {
firstTileY = 0;
} else if (firstTileY > tilesH) {
firstTileY = tilesH;
}
lastTileX = (firstTileX + numTilesW) + 1;
lastTileY = (firstTileY + numTilesH) + 1;
};
calcTilesProp = function () {
tilesW = Math.ceil(imageWidth / tileSize);
tilesH = Math.ceil(imageHeight / tileSize);
numTilesW = Math.ceil(Stage.width / tileSize);
numTilesH = Math.ceil(Stage.height / tileSize);
};
getTileName = function (xPos, yPos) {
if (loadLevel > 1) {
tileId = "" + ((xPos + (yPos * tilesW)) + 1);
if (tileId.length < 2) {
tileId = "0" + tileId;
}
return((loadLevel + "_") + tileId);
}
if (xPos < (tilesW / 2)) {
tileId = "" + ((xPos + (yPos * (tilesW / 2))) + 1);
} else {
tileId = "" + ((((tilesW / 2) * tilesH) + ((xPos + (yPos * (tilesW / 2))) + 1)) - 80);
}
if (tileId.length < 2) {
tileId = "0" + tileId;
}
return((loadLevel + "_") + tileId);
};
fillBack = function () {
calcTilesProp();
calcTileArea();
q = firstTileX;
while (q < lastTileX) {
w = firstTileY;
while (w < lastTileY) {
filename = getTileName(q, w);
addTile(q, w, filename);
w++;
}
q++;
}
};
tileLayerDepth = 400;
checkLayerDepth = function () {
if (tileLayerDepth > 410) {
tileLayerDepth = 400;
t = 0;
while (t < layerArray.length) {
layerArray[t][0].swapDepths(layerArray[t][0].getDepth() - 10);
t++;
}
}
};
createTileLayer = function (zoomLevel) {
trace("CTEATE TL " + zoomLevel);
if (_root["tileLayer" + zoomLevel] == undefined) {
cLayer = _root.createEmptyMovieClip("tileLayer" + zoomLevel, tileLayerDepth);
cLayer._x = ref._x;
cLayer._y = ref._y;
cLayer.myZoomLevel = zoomLevel;
layerArray.push([_root["tileLayer" + zoomLevel], zoomLevel]);
setLayerSize(cLayer, zoomLevel);
tileLayerDepth++;
} else {
_root["tileLayer" + zoomLevel].swapDepths(tileLayerDepth);
tileLayerDepth++;
}
};
removeTileLayer = function (zoomLevelTR) {
trace("REMOVE TL " + zoomLevel);
_root["loadArray" + zoomLevelTR] = new Array();
k = 0;
while (k < _root.layerArray.length) {
if (_root.layerArray[k][0] == _root["tileLayer" + zoomLevelTR]) {
for (i in layerArray[k][0]) {
removeTile(layerArray[k][0][i]._name, zoomLevelTR);
}
layerArray[k][0].removeMovieClip();
_root["loadArray" + zoomLevelTR] = new Array();
_root.layerArray.splice(k, 1);
}
k++;
}
};
addTile = function (xPos, yPos, tname) {
cLayer = _root["tileLayer" + _root.loadLevel];
if (((xPos < tilesW) and (yPos < tilesH)) and (cLayer[tname] == undefined)) {
cTile = cLayer.createEmptyMovieClip(tname, cLayer.getNextHighestDepth());
cTile._x = xPos * tileSize;
cTile._y = yPos * tileSize;
cTile.myXPos = xPos;
cTile.myYPos = yPos;
if (showTileInfo == true) {
cifo = cLayer.attachMovie("tileInfo", "tileInfo" + tname, cLayer.getNextHighestDepth(), {_x:cTile._x, _y:cTile._y});
cifo.myI = (imagePath + tname) + ".jpg";
cifo.ti = true;
cifo.myXPos = xPos;
cifo.myYPos = yPos;
}
cTile.createEmptyMovieClip("tileHolder", cTile.getNextHighestDepth());
cTile.tileHolder._alpha = 0;
cTile.tileLoaded = false;
addToLoad(cLayer[tname].tileHolder, (imagePath + tname) + ".jpg", _root.zoomLevel);
}
};
removeTile = function (tname, zoomLayer) {
cLayer = _root["tileLayer" + _root.zoomLevel];
removeMeFromLoad(cLayer[tname].tileHolder);
if (zoomLayer == undefined) {
cLayer[tname].removeMovieClip();
} else {
cLayer[tname].removeMovieClip();
}
};
removeAllTiles = function () {
q = firstTileX;
while (q < lastTileX) {
w = firstTileY;
while (w < lastTileY) {
filename = getTileName(q, w);
removeTile(filename);
w++;
}
q++;
}
};
updateTiles = function () {
preFirstTileX = firstTileX;
preFirstTileY = firstTileY;
preLastTileX = lastTileX;
preLastTileY = lastTileY;
calcTileArea();
if ((((preFirstTileX != firstTileX) or (preFirstTileY != firstTileY)) or (preLastTileX != lastTileX)) or (preLastTileY != lastTileY)) {
_root.debugText = ((firstTileX + ", ") + firstTileY) + "<br>";
totalTiles = 0;
if (zoomLevel <= maxTileLevel) {
fillBack();
}
cLayer = _root["tileLayer" + loadLevel];
for (i in cLayer) {
if ((((cLayer[i].myXPos < firstTileX) or (cLayer[i].myXPos > (firstTileX + numTilesW))) or (cLayer[i].myYPos < firstTileY)) or (cLayer[i].myYPos > (firstTileY + numTilesH))) {
if ((showTileInfo == true) and (cLayer[i].ti == true)) {
removeMovieClip(cLayer[i]);
} else {
filename = getTileName(cLayer[i].myXPos, cLayer[i].myYPos);
removeTile(filename);
}
}
}
}
};
setDepths = function () {
aatalTilesNum.swapDepths(_root.getNextHighestDepth());
frameRate.swapDepths(_root.getNextHighestDepth());
mfm.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
};
init = function () {
calcImageProps();
createRefImage();
if (zoomLevel <= maxTileLevel) {
createTileLayer(zoomLevel);
}
};
drag = false;
autoMove = false;
allowStageMove = false;
ufoLock = false;
followUser = false;
allowCursorMove = true;
allowDragFromPage = false;
pxm = 0;
pym = 0;
decay = 0.45;
spring = 0.2;
autoMoveSpeed = 10;
vx = (vy = 0);
xSpeed = 0;
ySpeed = 0;
slowDown = 0.9;
navMode = "drag";
draggedNum = 0;
checkRefPos = function () {
if (ref._x > 0) {
ref._x = 0;
}
if (ref._y > 0) {
ref._y = 0;
}
if (ref._x < (-(ref._width - Stage.width))) {
ref._x = -(ref._width - Stage.width);
}
if (ref._y < (-(ref._height - Stage.height))) {
ref._y = -(ref._height - Stage.height);
}
if (ref._height < Stage.height) {
ref._y = (Stage.height / 2) - (ref._width / 2);
}
if (ref._width < Stage.width) {
ref._x = (Stage.width / 2) - (ref._height / 2);
}
};
setOnPress = function () {
if (Key.isDown(16)) {
trace([ref._xmouse, ref._ymouse]);
}
if (allowStageMove == true) {
drag = true;
followUser = false;
startScale = ref._xscale;
cursor.gotoAndStop(2);
vx = xSpeed;
vy = ySpeed;
sdp = [ref._x, ref._y];
startDragX = ((-(ref._x - _root._xmouse)) / ref._width) * 100;
startDragY = ((-(ref._y - _root._ymouse)) / ref._height) * 100;
allowAniPos = false;
}
};
setOnRelease = function () {
if (drag == true) {
cursor.gotoAndStop(1);
atWP = ((-(ref._x - (Stage.width / 2))) / ref._width) * 100;
atHP = ((-(ref._y - (Stage.height / 2))) / ref._height) * 100;
allowAniPos = true;
drag = false;
xSpeed = vx;
ySpeed = vy;
}
};
setStageMove = function (to) {
_root.allowStageMove = to;
_root.allowZoom = to;
if (to == false) {
_root.hideControlls();
} else {
_root.showControlls();
}
vx = 0;
vy = 0;
};
_root.ref.onPress = _root.setOnPress;
_root.ref.onRelease = (_root.ref.onReleaseOutside = _root.setOnRelease);
moveTo = function (xPos, yPos) {
autoMove = true;
atoMoveTo = [xPos, yPos];
};
sleepSound = function () {
difx = prerx - ref._x;
dify = prery - ref._y;
if (difx < 0) {
difx = -difx;
}
if (dify < 0) {
dify = -dify;
}
sleepVol = Math.round(difx + dify);
if (sleepVol > 300) {
sleepVol = 300;
}
_root.sleepsound.setVolume((sleepVol / 100) * soundVol);
};
moveStage = function () {
if (allowStageMove == true) {
if (_root.cursor._currentframe == 8) {
_root.cursor.gotoAndStop(1);
}
if (followUser == true) {
drag = false;
allowAniPos = false;
target = vectorClip.dukkie;
ref._x = ref._x + ((((((-target._x) / 100) * ref._xscale) + (Stage.width / 2)) - ref._x) / scaleSpeed);
ref._y = ref._y + ((((((-target._y) / 100) * ref._xscale) + (Stage.height / 2)) - ref._y) / scaleSpeed);
refToX = (((-target._x) / 100) * ref._xscale) + (Stage.width / 2);
refToY = (((-target._y) / 100) * ref._xscale) + (Stage.height / 2);
if (ref._height < Stage.height) {
ref._y = (Stage.height / 2) - (ref._width / 2);
}
if (ref._width < Stage.width) {
ref._x = (Stage.width / 2) - (ref._height / 2);
}
checkRefPos();
} else if (drag == true) {
_root.showControlls();
_root.cursor._rotation = _root.cursor._rotation - (_root.cursor._rotation / 1.5);
nowDragX = ((-(ref._x - _root._xmouse)) / ref._width) * 100;
nowDragY = ((-(ref._y - _root._ymouse)) / ref._height) * 100;
dx = (nowDragX - startDragX) * (ref._width / 100);
dy = (nowDragY - startDragY) * (ref._height / 100);
vx = (dx * spring) + (vx * decay);
vy = (dy * spring) + (vy * decay);
if ((ref._x + vx) > 0) {
vx = -ref._x;
}
if ((ref._y + vy) > 0) {
vy = -ref._y;
}
if ((ref._x + vx) < (-(ref._width - Stage.width))) {
ref._x = -(ref._width - Stage.width);
vx = 0;
}
if ((ref._y + vy) < (-(ref._height - Stage.height))) {
ref._y = -(ref._height - Stage.height);
vy = 0;
}
if (ref._height < Stage.height) {
ref._y = (Stage.height / 2) - (ref._width / 2);
}
if (ref._width < Stage.width) {
ref._x = (Stage.width / 2) - (ref._height / 2);
}
ref._x = ref._x + vx;
ref._y = ref._y + vy;
cursor._x = cursor._x + vx;
cursor._y = cursor._y + vy;
preX = ref._x;
preY = ref._y;
refToX = ref._x;
refToY = ref._y;
if ((((((sdp[0] - ref._x) > 60) or ((sdp[0] - ref._x) < -60)) or ((sdp[1] - ref._y) > 60)) or ((sdp[1] - ref._y) > 60)) and (mfm.playingAni == false)) {
if (atmegaFoonAni == 3) {
mfm.doAni(mfm_yeslikethat, atmegaFoonAni);
} else if (atmegaFoonAni == 4) {
mfm.doAni(mfm_uhhuh, atmegaFoonAni);
} else if (atmegaFoonAni == 5) {
mfm.doAni(mfm_jepwelldone, atmegaFoonAni);
} else if (atmegaFoonAni == 6) {
mfm.doAni(mfm_liketheway, atmegaFoonAni);
obj_dragNav.objComplete();
allowDragFromPage = true;
}
atmegaFoonAni++;
}
} else {
if ((((Math.round(xSpeed) >= 1) or (Math.round(xSpeed) <= -1)) or (Math.round(ySpeed) <= -1)) or (Math.round(ySpeed) >= 1)) {
if ((ref._x + xSpeed) > 0) {
xSpeed = -ref._x;
}
if ((ref._y + ySpeed) > 0) {
ySpeed = -ref._y;
}
if ((ref._x + xSpeed) < (-(ref._width - Stage.width))) {
xSpeed = 0;
}
if ((ref._y + ySpeed) < (-(ref._height - Stage.height))) {
ySpeed = 0;
}
refToX = refToX + xSpeed;
refToY = refToY + ySpeed;
ref._x = ref._x + xSpeed;
ref._y = ref._y + ySpeed;
}
if (navMode == "point") {
moving = false;
if (_xmouse > (Stage.width - 100)) {
xSpeed = xSpeed - ((_xmouse - (Stage.width - 100)) / 20);
moving = true;
}
if (_xmouse < 100) {
xSpeed = xSpeed - ((_xmouse - 100) / 20);
moving = true;
}
if (_ymouse < 100) {
ySpeed = ySpeed - ((_ymouse - 100) / 20);
xSpeed = xSpeed - ((_xmouse - (Stage.width / 2)) / 200);
moving = true;
}
if (_ymouse > (Stage.height - 100)) {
ySpeed = ySpeed - ((_ymouse - (Stage.height - 100)) / 20);
moving = true;
}
if (moving == true) {
cursor.gotoAndStop(3);
} else {
cursor.gotoAndStop(1);
}
}
xSpeed = xSpeed * slowDown;
ySpeed = ySpeed * slowDown;
xDiff = 0;
yDiff = 0;
}
} else if (_root.cursor._currentframe == 1) {
_root.cursor.gotoAndStop(8);
}
if (ref._height < Stage.height) {
ref._y = (Stage.height / 2) - (ref._width / 2);
}
if (ref._width < Stage.width) {
ref._x = (Stage.width / 2) - (ref._height / 2);
}
if ((drag == false) and (allowCursorMove == true)) {
setCursorPos();
}
precx = _xmouse;
precy = _ymouse;
sleepSound();
prerx = ref._x;
prery = ref._y;
};
precx = _xmouse;
precy = _ymouse;
playSleepSound = false;
cursorRotAdd = 0;
setCursorPos = function () {
_root.cursor._x = _xmouse;
_root.cursor._y = _ymouse;
if (navMode == "drag") {
_root.cursor._rotation = _root.cursor._rotation - (((precx - _xmouse) + (_ymouse - precy)) / 5);
rotTo = -0.9 * ((_root.cursor._y / Stage.height) * 100);
rotTo = rotTo + (0.9 * ((_root.cursor._x / Stage.width) * 100));
rotTo = rotTo + cursorRotAdd;
_root.cursor._rotation = _root.cursor._rotation + ((rotTo - _root.cursor._rotation) / 3);
} else {
rt = getRot(_xmouse, Stage.width / 2, _ymouse, Stage.height / 2) - 135;
_root.cursor._rotation = rt;
}
};
allowAniPos = true;
scaleSpeed = 1;
hOffset = (wOffset = (startScale = 0));
initGrid = true;
aniScale = function () {
finalRefScale = getZoomScale(zoomLevel);
preW = ref._width;
preH = ref._height;
preX = ref._xscale;
scaleSpeed = scaleSpeed + ((1 - scaleSpeed) / 10);
if ((ref._xscale != finalRefScale) or (vectorClip._xscale != finalRefScale)) {
ref._xscale = ref._xscale + ((finalRefScale - ref._xscale) / scaleSpeed);
ref._yscale = (vectorClip._xscale = (vectorClip._yscale = ref._xscale));
} else if (initGrid == true) {
drawGrid();
initGrid = false;
}
if (drag == true) {
wOffset = ((preW - ref._width) / 100) * nowDragX;
hOffset = ((preH - ref._height) / 100) * nowDragY;
if ((((Math.round(wOffset) >= 1) or (Math.round(wOffset) <= -1)) or (Math.round(hOffset) <= -1)) or (Math.round(hOffset) >= 1)) {
ref._x = ref._x + wOffset;
ref._y = ref._y + hOffset;
checkRefPos();
}
}
scaleNum = (ref._xscale / finalRefScale) * 100;
q = 0;
while (q < layerArray.length) {
finalScale = getZoomScale(_root.zoomLevel - (layerArray[q][1] - 1));
if (layerArray[q][0]._xscale != ((finalScale / 100) * scaleNum)) {
layerArray[q][0]._xscale = (finalScale / 100) * scaleNum;
layerArray[q][0]._yscale = layerArray[q][0]._xscale;
}
if (((zoomLevel > maxTileLevel) or ((layerArray[q][0]._xscale > 201) and (finalScale > 201))) or ((layerArray[q][0]._xscale < 49) and (finalScale < 49))) {
removeTileLayer(layerArray[q][1]);
}
q++;
}
};
setLayerSize = function (layer, zoom) {
finalScale = 200 / Math.pow(2, _root.zoomLevel - zoom);
finalRefScale = getZoomScale(_root.zoomLevel);
scaleNum = (ref._xscale / finalRefScale) * 100;
layer._xscale = (finalScale / 100) * scaleNum;
layer._yscale = layer._xscale;
};
aniPos = function () {
if (allowAniPos == true) {
ref._x = ref._x + ((refToX - ref._x) / scaleSpeed);
ref._y = ref._y + ((refToY - ref._y) / scaleSpeed);
checkRefPos();
}
if (ref._height < Stage.height) {
ref._y = (Stage.height - ref._height) / 2;
}
if (ref._width < Stage.width) {
ref._x = (Stage.width - ref._width) / 2;
}
q = 0;
while (q < layerArray.length) {
layerArray[q][0]._x = ref._x;
layerArray[q][0]._y = ref._y;
q++;
}
vectorClip._x = ref._x;
vectorClip._y = ref._y;
};
prerp = [0, 0];
onEnterFrame = function () {
if (refLoaded == true) {
animateUsers();
sNow = [ref._width, ref._height];
aniScale();
fDif = [ref._width - sNow[0], ref._height - sNow[1]];
moveStage();
updateTiles();
aniPos();
_root.vectorClip.metalDetector.myOnEnterFrame();
moveGrid();
soundEngine();
if (controllClip != "none") {
if (Key.isDown(16)) {
power = 60;
} else {
power = 2;
}
if (Key.isDown(37)) {
controllClip._x = controllClip._x - power;
trace([controllClip._x, controllClip._y]);
}
if (Key.isDown(39)) {
controllClip._x = controllClip._x + power;
trace([controllClip._x, controllClip._y]);
}
if (Key.isDown(38)) {
controllClip._y = controllClip._y - power;
trace([controllClip._x, controllClip._y]);
}
if (Key.isDown(40)) {
controllClip._y = controllClip._y + power;
trace([controllClip._x, controllClip._y]);
}
if (Key.isDown(33)) {
controllClip._yscale = controllClip._yscale + power;
controllClip._xscale = controllClip._xscale + power;
trace("scale = " + controllClip._yscale);
}
if (Key.isDown(34)) {
controllClip._yscale = controllClip._yscale - power;
controllClip._xscale = controllClip._xscale - power;
trace("scale = " + controllClip._yscale);
}
if (Key.isDown(35)) {
controllClip._rotation = controllClip._rotation - power;
trace("rot = " + controllClip._rotation);
}
if (Key.isDown(46)) {
controllClip._rotation = controllClip._rotation + power;
trace("rot = " + controllClip._rotation);
}
}
startDraw = getTimer();
}
};
brtt = 0.8;
brtm = "easeOutExpo";
stop();
Frame 3
function playSound(who, soundName, loop, syncClip, sPower, soundAjust) {
if (loop == true) {
soundName.setVolume(0);
soundName.start(0, 999999);
} else {
soundName.setVolume(0);
soundName.start();
soundName.onSoundComplete = function () {
syncClip[2]();
stopSound(who, soundName);
};
}
soundArray.push([who, soundName, loop, syncClip, sPower, soundAjust]);
}
function soundEngine() {
q = 0;
while (q < soundArray.length) {
if (soundArray[q][5] == false) {
curVol = 100;
channelPre = 0;
} else {
objPos = getStagePos(soundArray[q][0]);
dis = getDistance(Stage.width / 2, objPos[0], Stage.height / 2, objPos[1]) * zoomLevel;
if ((soundArray[q][4] != undefined) and (soundArray[q][4] != false)) {
curVol = 100 - ((dis / 40) * soundArray[q][4]);
curVol = (curVol / ((100 * zoomLevel) * soundArray[q][4])) * ref._xscale;
} else {
curVol = 100 - (dis / 40);
curVol = (curVol / (100 * zoomLevel)) * ref._xscale;
}
if (curVol < 0) {
curVol = 0;
} else if (curVol > 100) {
curVol = 100;
}
channelPre = ((objPos[0] - (Stage.width / 2)) / Stage.width) * 100;
if (channelPre > 100) {
channelPre = 100;
} else if (channelPre < -100) {
channelPre = -100;
}
}
if (soundArray[q][0] != _root.cursor) {
soundArray[q][1].setVolume((curVol / 100) * soundVol);
} else {
soundArray[q][1].setVolume(100);
}
soundArray[q][1].setPan(Math.round(channelPre));
if (((soundArray[q][3] != undefined) and (soundArray[q][3] != false)) and (soundArray[q][3][0] != false)) {
soundPre = (soundArray[q][1].position / soundArray[q][1].duration) * 100;
if (soundArray[q][3][0].length > 1) {
a = 0;
while (a < soundArray[q][3][0].length) {
if (soundPre == 100) {
} else {
frameTo = Math.round(((soundArray[q][3][0][a]._totalframes - soundArray[q][3][1]) / 100) * soundPre);
soundArray[q][3][0][a].gotoAndStop(frameTo + soundArray[q][3][1]);
}
a++;
}
} else if (soundPre == 100) {
} else {
frameTo = Math.round(((soundArray[q][3][0]._totalframes - soundArray[q][3][1]) / 100) * soundPre);
soundArray[q][3][0].gotoAndStop(frameTo + soundArray[q][3][1]);
}
}
q++;
}
}
soundVol = 100;
this.createEmptyMovieClip("soundHolder", this.getNextHighestDepth());
newSound = function (soundName, fadeEffect) {
this.soundHolder.createEmptyMovieClip(soundName, this.soundHolder.getNextHighestDepth());
this[soundName] = new Sound(this.soundHolder[soundName]);
this[soundName].attachSound(soundName);
};
soundArray = new Array();
newSound("dbsample");
newSound("modem");
newSound("explore");
newSound("contact");
newSound("biography");
newSound("awards");
newSound("zoomSound");
newSound("sleepsound");
newSound("nuhuhjuhu");
newSound("stampSound");
newSound("ufoSound2");
newSound("draakOef");
newSound("fire");
newSound("miauw");
newSound("mrsradio");
newSound("stampIntro");
newSound("waaa");
newSound("drink1");
newSound("bierpsst");
newSound("back");
newSound("lazy");
newSound("racoonauw");
newSound("pops");
newSound("md_snore");
newSound("md_beep1");
newSound("md_beep2");
newSound("md_beep3");
newSound("md_beep4");
newSound("shutUpYou");
newSound("md_whodares");
newSound("jobforme");
newSound("toolsAreGone");
newSound("usemetalDetector");
newSound("mfm_hello");
newSound("mfm_yeslikethat");
newSound("mfm_uhhuh");
newSound("mfm_jepwelldone");
newSound("mfm_liketheway");
newSound("mfm_opentoolbox");
newSound("mfm_boohoo");
newSound("mfm_hiTooly");
newSound("mfm_ohmy");
newSound("mfm_youbrokeit");
newSound("dragMe_help");
newSound("auw1");
newSound("auw2");
newSound("auw3");
newSound("laser1");
newSound("laser2");
newSound("laser3");
newSound("laserHit1");
newSound("laserHit2");
newSound("laserHit3");
newSound("toelloe1");
newSound("toelloe2");
newSound("toelloe3");
newSound("blearg1");
newSound("blearg2");
newSound("blearg3");
newSound("blearg4");
blearg1.setVolume(soundVol);
blearg2.setVolume(soundVol);
blearg3.setVolume(soundVol);
blearg4.setVolume(soundVol);
newSound("toolBoxHello");
newSound("toolBoxThanks");
newSound("toolBoxWhereMonicle");
newSound("thatsbullshit");
newSound("dontMakeMeHatjoe");
newSound("hatjoeoh");
newSound("tb_yes");
newSound("raccoon_noIdea");
newSound("raccoon_idontknow2");
newSound("toolBoxMagni");
newSound("raccoon_takeIt");
newSound("raccoon_blah");
newSound("noIdea");
newSound("noIdea2");
q = 1;
while (q <= 10) {
newSound("s" + q);
q++;
}
sleepsound.start(0, 9999999999);
sleepsound.setVolume(0);
startVCSounds();
stopSound = function (who, soundName) {
q = 0;
while (q < soundArray.length) {
if ((soundArray[q][0] == who) and (soundArray[q][1] == soundName)) {
soundName.stop();
soundArray.splice(q, 1);
}
q++;
}
};
getDistance = function (x1, x2, y1, y2) {
delta_x = x1 - x2;
delta_y = y1 - y2;
distance = Math.sqrt((delta_x * delta_x) + (delta_y * delta_y));
return(distance);
};
getStagePos = function (object) {
var _local1 = {x:0, y:0};
object.localToGlobal(_local1);
return([_local1.x, _local1.y]);
};
getRot = function (x1, x2, y1, y2) {
opposite = y1 - y2;
ajacent = x1 - x2;
rotationInRadians = Math.atan2(opposite, ajacent);
rotationInDegrees = rotationInRadians / (Math.PI/180);
return(rotationInDegrees);
};
popSound = function (who) {
playSound(who, _root.pops, false);
};
sleepsound.start(0, 9999);
sleepsound.setVolume(0);
Symbol 17 MovieClip Frame 5
stop();
Symbol 28 MovieClip Frame 9
stop();
Symbol 31 MovieClip Frame 1
stop();
this._rotation = 40;
this.rotateTo(0, 1, "easeOutElastic");
Instance of Symbol 40 MovieClip "a2" in Symbol 44 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (7);
}
Instance of Symbol 40 MovieClip "a1" in Symbol 44 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (5);
}
Symbol 45 MovieClip Frame 1
onEnterFrame = function () {
grap.cen._rotation = grap.cen._rotation + 5;
};
showMe = function () {
_visible = true;
grap.onTweenComplete = null;
grap.a1.rotateTo(0, 0.5, "easeOutQuad");
grap.a2.rotateTo(180, 0.5, "easeOutQuad");
grap.scaleTo(100, 0.5, "easeOutQuad");
};
if (showOnLoad == true) {
showMe();
}
hideMe = function () {
grap.onTweenComplete = function () {
_visible = false;
};
grap.a1.rotateTo(90, 0.2, "easeOutQuad");
grap.a2.rotateTo(90, 0.2, "easeOutQuad");
grap.scaleTo(0, 0.2, "easeOutQuad");
};
Symbol 47 MovieClip [battery] Frame 1
if (allowDrag == true) {
onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
onPress = function () {
dragMe.hideMe();
getURL ("javascript:pageTracker._trackPageview('/battery/pickedup');");
_root.zoomToTarget(2, this, [(this._x / 2) + (Stage.width / 2), (this._y / 2) + (Stage.height / 2)]);
_root.allowStageMove = false;
_root.allowZoom = false;
_root.cursor.gotoAndStop(1);
_root.createGrabHand(this);
};
} else {
dragMe._visible = false;
}
Symbol 55 MovieClip Frame 7
stop();
Symbol 59 MovieClip [vectorClip] Frame 1
Instance of Symbol 64 MovieClip [vlamAni] in Symbol 65 MovieClip [vlam] Frame 1
onClipEvent (load) {
gotoAndPlay(random(_totalframes) + 1);
}
Symbol 97 MovieClip Frame 1
_visible = false;
Symbol 131 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 20);
};
Symbol 132 MovieClip Frame 1
onEnterFrame = function () {
_yscale = (100 + random(10));
_xscale = (100 + random(10));
};
Symbol 136 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 20);
};
Symbol 137 MovieClip Frame 1
onEnterFrame = function () {
_yscale = (100 + random(10));
_xscale = (100 + random(10));
};
Symbol 178 MovieClip [preLoaderBoy] Frame 1
wingArray = new Array(-10, -5, -5, 20, 20, 30, 20, 20, 10, 5, -5, -10);
av = 0;
setRandomPos = function () {
tweenTime = (Math.random() * 1) + 0.7;
prex = tox;
prey = toy;
tox = random(Stage.width);
toy = random(Stage.height);
bezierSlideTo(prex, toy, tox, toy, tweenTime, "easeInOutQuad");
};
this.onTweenComplete = function () {
setRandomPos();
};
prex = _x;
prey = _y;
tox = _x;
toy = _y;
setRandomPos();
spring = 0.1;
decay = 0.98;
vr = (dr = 0);
limbArray = new Array([ani.ani.b1, 0, 1], [ani.ani.b2, 0, 1], [ani.ani.arm, 0, 1], [ani.ani.arm2, 0, 1]);
q = 0;
while (q <= 13) {
limbArray.push([ani.ani["h" + q], 0, -((Math.random() / 2) + 0.3)]);
q++;
}
q = 0;
while (q < limbArray.length) {
limbArray[q].push([0, 0, 0]);
q++;
}
aniHang = function () {
q = 0;
while (q < limbArray.length) {
limbArray[q][3][0] = (-limbArray[q][3][2]) + limbArray[q][1];
limbArray[q][3][0] = limbArray[q][3][0] + ((_x - prex) / limbArray[q][2]);
limbArray[q][3][0] = limbArray[q][3][0] + (limbArray[q][0]._parent._rotation / 10);
limbArray[q][3][1] = (limbArray[q][3][0] * spring) + (limbArray[q][3][1] * decay);
limbArray[q][3][2] = limbArray[q][3][2] + limbArray[q][3][1];
limbArray[q][0]._rotation = limbArray[q][3][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][3][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][3][2] = -90;
}
q++;
}
};
flyAway = function () {
this.onTweenComplete = function () {
onEnterFrame = null;
};
if (this._name == "v1") {
stopTween();
bezierSlideTo(_x, -400, -400, -400, 1, "easeInOutQuad");
} else {
stopTween();
bezierSlideTo(_x, -400, Stage.width + 400, -400, 1, "easeInOutQuad");
}
};
_parent.veerNum = 0;
createVeer = function () {
vn = random(2);
cv = _parent.attachMovie("veer", "veer" + av, _parent.getNextHighestDepth());
_parent.veerNum++;
if (vn == 0) {
vp = _root.getStagePos(ani.ani.v1.wp);
} else {
vp = _root.getStagePos(ani.ani.v2.wp);
}
cv._x = vp[0];
cv._y = vp[1];
cv.yspeed = (wingArray[ani.ani.v1._currentframe - 1] + (Math.random() * 5)) + (yspeed / 2);
cv.xspeed = (10 - random(20)) + (xspeed / 2);
cv.onEnterFrame = function () {
this._rotation = this._rotation + (this.xspeed - this.yspeed);
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
this.yspeed = this.yspeed + 1;
this.yspeed = this.yspeed * 0.96;
this.xspeed = this.xspeed * 0.96;
this._xscale = (this._yscale = this._yscale - 2);
if (this._xscale < 0) {
this._parent.veerNum--;
removeMovieClip(this);
}
};
av++;
};
onEnterFrame = function () {
xspeed = _x - prex;
yspeed = _y - prey;
_rotation = (_rotation + ((xspeed - _rotation) / 3));
doVeer = random(3);
createVeer();
aniHang();
aPos = _root.getStagePos(ani.ani.arm);
if (_root.plbPointAt == "balk") {
armRot = (-_root.getRot(aPos[0], _root.preloader._width, aPos[1], 10)) - _rotation;
} else {
aimTo = _root.getStagePos(_parent.fsc.fsb);
armRot = (-_root.getRot(aPos[0], aimTo[0], aPos[1], aimTo[1])) - _rotation;
}
ani.ani.arm.graphic._rotation = armRot;
prex = _x;
prey = _y;
};
Symbol 181 MovieClip Frame 1
onRollOver = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((140 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(3);
};
onRollOut = (onDragOut = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((100 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(1);
});
Symbol 183 MovieClip Frame 1
onRollOver = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((140 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(3);
};
onRollOut = (onDragOut = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((100 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(1);
});
Symbol 184 MovieClip Frame 1
fsb.onRelease = function () {
getURL ("javascript:pageTracker._trackPageview('/fullScreen/true');");
_root.goFullScreen();
_root.removePreloader();
fsb.enabled = false;
_root.cursor.gotoAndStop(1);
_root.fs = true;
};
esb.onRelease = function () {
getURL ("javascript:pageTracker._trackPageview('/fullScreen/false');");
esb.enabled = false;
_root.cursor.gotoAndStop(1);
_root.fs = false;
_root.removePreloader();
};
Symbol 191 MovieClip [preloaderClip] Frame 1
stop();
Symbol 1616 MovieClip [__Packages.com.deconstruct.ui.MouseWheel] Frame 0
class com.deconstruct.ui.MouseWheel
{
static var isMac, macBroadcaster;
function MouseWheel () {
}
static function main() {
isMac = System.capabilities.os.toLowerCase().indexOf("mac") != -1;
if (isMac) {
macBroadcaster = new com.deconstruct.event.EventBroadcaster();
flash.external.ExternalInterface.addCallback("externalMouseEvent", com.deconstruct.ui.MouseWheel, externalMouseEvent);
}
}
static function addListener(obj) {
if (!isMac) {
main();
}
if (isMac) {
macBroadcaster.addListener(obj);
} else {
Mouse.addListener(obj);
}
}
static function externalMouseEvent(delta) {
macBroadcaster.broadcastMessage("onMouseWheel", delta);
}
}
Symbol 1617 MovieClip [__Packages.com.deconstruct.event.EventBroadcaster] Frame 0
class com.deconstruct.event.EventBroadcaster
{
var _listeners;
function EventBroadcaster () {
_listeners = [];
}
function addListener(obj) {
if (com.deconstruct.utils.ArrayX.indexOf(_listeners, obj) == -1) {
_listeners.push(obj);
return(true);
}
return(false);
}
function removeListener(obj) {
var _local2 = false;
while (com.deconstruct.utils.ArrayX.indexOf(_listeners, obj) != -1) {
_listeners.splice(com.deconstruct.utils.ArrayX.indexOf(_listeners, obj), 1);
_local2 = true;
}
return(_local2);
}
function broadcastMessage(method) {
var _local3;
var _local4;
var _local6 = arguments.slice(1, arguments.length);
_local3 = 0;
while (_local3 < _listeners.length) {
_local4 = _listeners[_local3];
if (typeof(_local4[method]) == "function") {
_local4[method].apply(_local4, _local6);
}
if (_local4 == undefined) {
_listeners.splice(_local3, 1);
_local3--;
}
_local3++;
}
}
}
Symbol 1618 MovieClip [__Packages.com.deconstruct.utils.ArrayX] Frame 0
class com.deconstruct.utils.ArrayX
{
function ArrayX () {
}
static function average(arr) {
var _local2 = 0;
var _local1 = 0;
while (_local1 < arr.length) {
_local2 = _local2 + arr[_local1];
_local1++;
}
return(_local2 / arr.length);
}
static function chooseRandom(arr) {
return(arr[Math.floor(Math.random() * arr.length)]);
}
static function sum(arr) {
var _local2 = 0;
var _local1 = 0;
while (_local1 < arr.length) {
_local2 = _local2 + arr[_local1];
_local1++;
}
return(_local2);
}
static function compare(arr, arr2) {
var _local8 = new Array();
var _local9 = new Array();
var _local7 = "###";
var _local5 = 0;
while (_local5 < arr.length) {
var _local2 = arr[_local5];
var _local1 = 0;
while (_local1 < arr2.length) {
if (arr[_local5] == arr2[_local1]) {
_local2 = _local7;
break;
}
_local1++;
}
_local8.push(_local2);
_local5++;
}
_local5 = 0;
while (_local5 < arr2.length) {
var _local2 = arr2[_local5];
var _local1 = 0;
while (_local1 < arr.length) {
if (arr2[_local5] == arr[_local1]) {
_local2 = _local7;
break;
}
_local1++;
}
_local8.push(_local2);
_local5++;
}
var _local6 = 0;
while (_local6 < _local8.length) {
if (_local8[_local6] != _local7) {
_local9.push(_local8[_local6]);
}
_local6++;
}
return(_local9);
}
static function makeCopy(arr) {
var _local2 = [];
for (var _local3 in arr) {
_local2[_local3] = arr[_local3];
}
return(_local2);
}
static function indexOf(arr, str) {
var _local3 = -1;
var _local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1] == str) {
_local3 = _local1;
break;
}
_local1++;
}
return(_local3);
}
static function lastIndexOf(arr, str) {
var _local3 = -1;
var _local1 = arr.length - 1;
while (_local1 >= 0) {
if (arr[_local1] == str) {
_local3 = _local1;
break;
}
_local1--;
}
return(_local3);
}
static function shuffle(arr) {
var _local5 = arr.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local3 = Math.floor(Math.random() * _local5);
var _local4 = arr[_local1];
arr[_local1] = arr[_local3];
arr[_local3] = _local4;
_local1++;
}
}
static function visualise(arr, nameStr) {
var _local2 = "";
var _local1 = 0;
while (_local1 < arr.length) {
if (typeof(arr[_local1]) == "object") {
_local2 = _local2 + (((nameStr + "[") + _local1) + "] = new Array();\n");
_local2 = _local2 + visualise(arr[_local1], ((nameStr + "[") + _local1) + "]");
} else {
_local2 = _local2 + (((((nameStr + "[") + _local1) + "] = \"") + arr[_local1].toString()) + "\";\n");
}
_local1++;
}
return(_local2);
}
static function removeDuplicates(arr) {
var _local3;
var _local1;
_local3 = 0;
while (_local3 < arr.length) {
_local1 = 0;
while (_local1 < arr.length) {
if ((arr[_local3] == arr[_local1]) && (_local3 != _local1)) {
arr.splice(_local1, 1);
_local1--;
}
_local1++;
}
_local3++;
}
}
}
Symbol 1619 MovieClip [__Packages.com.deconstruct.browser.DeeplinkRouter] Frame 0
class com.deconstruct.browser.DeeplinkRouter
{
var linkRefs;
function DeeplinkRouter () {
linkRefs = {};
}
function push(folder, exe, title) {
linkRefs[folder] = {exe:exe, title:title};
}
function go(folder) {
var _local2 = linkRefs[folder];
com.deconstruct.browser.DeeplinkManager.instance.setTitle(_local2.title);
_local2.exe();
}
}
Symbol 1620 MovieClip [__Packages.com.deconstruct.browser.DeeplinkManager] Frame 0
class com.deconstruct.browser.DeeplinkManager
{
static var instance;
var linkRoute;
function DeeplinkManager () {
}
static function create() {
if (!instance) {
instance = new com.deconstruct.browser.DeeplinkManager();
}
return(instance);
}
function init(router) {
var _local2 = String(getAnchor());
if (_local2.charAt(0) == "/") {
_local2 = _local2.substring(1, _local2.length);
}
linkRoute = _local2.split("/");
go(router);
}
function go(router) {
if (linkRoute.length) {
router.go(linkRoute.shift());
}
}
function setAnchor(path) {
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.call("_swfAnchor.setAnchor", path);
}
}
function getAnchor() {
if (flash.external.ExternalInterface.available) {
return(flash.external.ExternalInterface.call("_swfAnchor.getAnchor"));
}
return(false);
}
function setTitle(title) {
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.call("setTitle", title);
}
}
}
Symbol 195 MovieClip Frame 1
startScale = _xscale;
onPress = function () {
_root.iWantShirt();
};
onRollOver = function () {
this.scaleTo(startScale * 1.3, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(3);
};
onRollOut = (onDragOut = function () {
this.scaleTo(startScale, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(1);
});
Instance of Symbol 195 MovieClip in Symbol 198 MovieClip [shirtAd] Frame 1
/* no clip actions */
Instance of Symbol 195 MovieClip in Symbol 198 MovieClip [shirtAd] Frame 1
/* no clip actions */
Instance of Symbol 195 MovieClip in Symbol 198 MovieClip [shirtAd] Frame 1
/* no clip actions */
Instance of Symbol 195 MovieClip in Symbol 198 MovieClip [shirtAd] Frame 1
/* no clip actions */
Instance of Symbol 195 MovieClip in Symbol 198 MovieClip [shirtAd] Frame 1
/* no clip actions */
Instance of Symbol 195 MovieClip in Symbol 198 MovieClip [shirtAd] Frame 1
/* no clip actions */
Symbol 203 MovieClip Frame 1
onRollOver = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((140 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(3);
};
onRollOut = (onDragOut = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((100 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(1);
});
Symbol 205 MovieClip Frame 1
onRollOver = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((140 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(3);
};
onRollOut = (onDragOut = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((100 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(1);
});
Symbol 208 MovieClip Frame 1
onRollOver = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((140 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(3);
};
onRollOut = (onDragOut = function () {
this.onEnterFrame = function () {
this._xscale = this._xscale + ((100 - this._xscale) / 4);
this._yscale = this._xscale;
};
_root.cursor.gotoAndStop(1);
});
Symbol 216 MovieClip [buyShirt] Frame 1
stop();
want.onPress = function () {
_root.ifexitFullScreen();
_yscale = 0;
_xscale = 0;
scaleTo(100, 0.6, "easeOutElastic");
gotoAndStop (2);
_root.cursor.gotoAndStop(1);
getURL ("javascript:pageTracker._trackPageview('/shirt/iWant');");
};
noWant.onPress = function () {
removeMovieClip(this._parent);
_root.cursor.gotoAndStop(1);
getURL ("javascript:pageTracker._trackPageview('/shirt/noThanks');");
};
pb.onRelease = function () {
};
Symbol 216 MovieClip [buyShirt] Frame 2
me = this;
gotit._visible = false;
sbut.onPress = function () {
if (emailBox.text != "") {
gotit._visible = true;
gotit._rotation = -90;
gotit.scaleTo(100, 1, "EaseOutElastic");
gotit._xscale = (gotit._yscale = 0);
gotit.rotateTo(0, 1, "EaseOutElastic");
gotit.scaleTo(0, 0.1, "EaseOutQuad", 4);
onTweenComplete = function () {
removeMovieClip(me);
};
scaleTo(0, 0.2, "easeOutQuad", 4);
this.enabled = false;
_root.sendShirtEmail(emailBox.text);
_root.cursor.gotoAndStop(1);
if (_root.fs == true) {
_root.ifgoFullScreen();
}
}
};
emailBox.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
emailBox.onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
Symbol 227 MovieClip [homePage] Frame 1
butAr = new Array(awards, contact, biography, explore);
q = 0;
while (q < butAr.length) {
butAr[q].onRollOver = function () {
_root.playSound(this, _root[this._name], false);
this.swapDepths(this._parent.getNextHighestDepth());
this.scaleTo(140, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(3);
};
butAr[q].onRollOut = (butAr[q].onDragOut = function () {
_root.stopSound(this, _root[this._name]);
this.scaleTo(100, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(1);
});
q++;
}
sendEXPLORE = true;
explore.onPress = function () {
if (sendEXPLORE == true) {
sendEXPLORE = false;
getURL ("javascript:pageTracker._trackPageview('/homePage/explore');");
}
_root.zoomSound.start();
_root.allowZoom = true;
_root.allowStageMove = true;
_root.zoomToLevel(2);
_root.doGridDraw = true;
if ((_root.mfm.saidHello == false) and (_root.mfm.shuttedUp == false)) {
if (_root.mfm.playingAni == false) {
_root.mfm.doAni(_root.mfm_hello, 2);
}
} else if (_root.atmegaFoonAni <= 6) {
_root.mfm.showMe();
_root.showObjective("navigate the site by dragging it around", "dragNav");
} else {
_root.showToolBox();
}
_root.lockTo = "none";
};
sendAWARDS = true;
awards.onPress = function () {
if (sendAWARDS == true) {
sendAWARDS = false;
getURL ("javascript:pageTracker._trackPageview('/homePage/awards');");
}
if (_root.allowDragFromPage == false) {
_root.allowStageMove = false;
_root.mfm.stopCurrentAni();
}
_root.obj_dragNav.hideMe();
_root.zoomToTarget(1, _root.vectorClip.awardHolder);
_root.hideControlls();
_root.lockTo = "awards";
};
sendBIO = true;
biography.onPress = function () {
if (sendBIO == true) {
sendBIO = false;
getURL ("javascript:pageTracker._trackPageview('/homePage/biography');");
}
if (_root.allowDragFromPage == false) {
_root.allowStageMove = false;
_root.mfm.stopCurrentAni();
}
setStageMove(false);
_root.zoomToTarget(1, _root.vectorClip.biographyPage, [30, 30]);
_root.hideControlls();
_root.obj_dragNav.hideMe();
_root.lockTo = "biography";
};
sendCONTACT = true;
contact.onPress = function () {
if (sendCONTACT == true) {
sendCONTACT = false;
getURL ("javascript:pageTracker._trackPageview('/homePage/contact');");
}
if ((_root.vectorClip.contactPage.dropStatus != "noDrop") and (_root.vectorClip.contactPage.dropStatus != "letFall")) {
_root.showObjective("pick up the textfield and place it back", "fixContact");
}
if (_root.allowDragFromPage == false) {
_root.allowStageMove = false;
_root.mfm.stopCurrentAni();
}
_root.obj_dragNav.hideMe();
setStageMove(false);
_root.zoomToTarget(1, _root.vectorClip.contactPage);
_root.hideControlls();
_root.lockTo = "contact";
};
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 26
stop();
Symbol 257 MovieClip [contactPage] Frame 1
setContact = function () {
if (Stage.height < 900) {
_y = (Stage.height - 900);
}
};
ashb.onPress = function () {
if (_root.fs == true) {
_root.ifgoFullScreen();
}
if (_root.obj_fixContact != undefined) {
_root.obj_fixContact.hideMe();
_root.removeOBA();
}
_root.zoomToTarget(1, _root.vectorClip.homeHolder);
_root.hideControlls();
};
gotit._visible = false;
downbutDown = false;
upbutDown = false;
ub.onPress = function () {
upbutDown = true;
sCounter = 4;
};
db.onPress = function () {
downbutDown = true;
sCounter = 4;
};
ub.onRelease = (ub.onReleaseOutside = function () {
upbutDown = false;
});
db.onRelease = (db.onReleaseOutside = function () {
downbutDown = false;
});
sCounter = 0;
onEnterFrame = function () {
if (tfield.maxscroll > 2) {
db._visible = true;
ub._visible = true;
} else {
db._visible = false;
ub._visible = false;
}
if (upbutDown == true) {
sCounter++;
if (sCounter == 5) {
tfield.scroll--;
sCounter = 0;
}
}
if (downbutDown == true) {
sCounter++;
if (sCounter == 5) {
tfield.scroll++;
sCounter = 0;
}
}
};
dropStatus = "letFall";
email.onRollOver = function () {
if (dropStatus != "dragging") {
_root.cursor.gotoAndStop(3);
}
};
email.onRollOut = (email.onDragOut = function () {
if (dropStatus != "dragging") {
_root.cursor.gotoAndStop(1);
}
});
spring = 0.25;
decay = 0.5;
vr = (dr = 0);
limbArray = new Array([email.field, 0, 5]);
q = 0;
while (q < limbArray.length) {
limbArray[q].push([0, 0, 0]);
q++;
}
prey = _y;
aniHang = function () {
q = 0;
while (q < limbArray.length) {
limbArray[q][3][0] = (-limbArray[q][3][2]) + limbArray[q][1];
limbArray[q][3][0] = limbArray[q][3][0] + ((limbArray[q][0]._x - prey) / limbArray[q][2]);
limbArray[q][3][0] = limbArray[q][3][0] + (limbArray[q][0]._parent._rotation / 10);
limbArray[q][3][1] = (limbArray[q][3][0] * spring) + (limbArray[q][3][1] * decay);
limbArray[q][3][2] = limbArray[q][3][2] + limbArray[q][3][1];
limbArray[q][0]._rotation = limbArray[q][3][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][3][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][3][2] = -90;
}
prey = limbArray[q][0]._x;
q++;
}
};
email.onPress = function () {
hideErrors();
if (dropStatus == "letFall") {
_root.mfm.doAni(_root.mfm_youbrokeit, 11);
getURL ("javascript:pageTracker._trackPageview('/contactPage/droppedEmailField');");
this.play();
dropStatus = "pickUp";
} else if (dropStatus == "pickUp") {
_root.helpBox3.removeMovieClip();
this.play();
_root.cursor.gotoAndStop(4);
dropStatus = "dragging";
this.field.onEnterFrame = function () {
this._rotation = this._rotation - (this._rotation / 2);
this._yscale = this._yscale + ((-100 - this._yscale) / 2);
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
aniHang();
};
this.onPress = function () {
_root.obj_fixContact.objComplete();
this.field.onEnterFrame = null;
_root.cursor.gotoAndStop(2);
dropStatus = "noDrop";
getURL ("javascript:pageTracker._trackPageview('/contactPage/placedEmailFieldBack');");
this.onRelease = function () {
_root.cursor.gotoAndStop(1);
email.onPress = null;
_root.ifexitFullScreen();
Selection.setFocus(email.field.tfield);
email.field.letters.alphaTo(20, 0.3, "easeOutQuad");
};
};
}
};
email.field.tfield.onKillFocus = function () {
if (email.field.tfield.text == "") {
email.field.letters.alphaTo(100, 0.3, "easeOutQuad");
}
};
tfield.onSetFocus = function () {
_root.ifexitFullScreen();
hideErrors();
letters2.alphaTo(20, 0.3, "easeOutQuad");
};
tfield.onKillFocus = function () {
if (tfield.text.length < 1) {
letters2.alphaTo(100, 0.3, "easeOutQuad");
}
};
hideErrors = function () {
tboxerror.scaleTo(0, 0.2, "EaseOutQuad");
emailerror.scaleTo(0, 0.2, "EaseOutQuad");
};
emailerror._visible = false;
tboxerror._visible = false;
gotit._visible = false;
me = this;
sendBut.onRelease = function () {
doSend = true;
if (tfield.text == "") {
doSend = false;
tboxerror._visible = true;
tboxerror._xscale = (tboxerror._yscale = 0);
tboxerror._rotation = -90;
tboxerror.scaleTo(100, 2, "EaseOutElastic");
tboxerror.rotateTo(0, 2, "EaseOutElastic");
_root.popSound(tboxerror);
}
if (email.field.tfield.text == "") {
p1 = _root.getStagePos(email.field.rp);
p2 = _root.getStagePos(me);
emailerror._x = ((p1[0] - p2[0]) * _root.zoomLevel) * (100 / me._xscale);
emailerror._y = ((p1[1] - p2[1]) * _root.zoomLevel) * (100 / me._yscale);
doSend = false;
emailerror._visible = true;
emailerror._rotation = -90;
emailerror._xscale = (emailerror._yscale = 0);
emailerror.scaleTo(100, 2, "EaseOutElastic");
emailerror.rotateTo(0, 2, "EaseOutElastic");
_root.popSound(emailerror);
}
if (doSend == true) {
emailerror._visible = false;
tboxerror._visible = false;
gotit._visible = true;
gotit._rotation = -90;
gotit.scaleTo(100, 2, "EaseOutElastic");
gotit._xscale = (gotit._yscale = 0);
gotit.rotateTo(0, 2, "EaseOutElastic");
gotit.scaleTo(0, 0.1, "EaseOutQuad", 7);
_root.cursor.gotoAndStop(1);
this.scaleTo(100, _root.brtt, _root.brtm);
_root.createKind();
_root.sendMail(email.field.tfield.text, tfield.text);
tfield.text = "";
email.field.tfield.text = "";
email.field.letters.alphaTo(100, 0.3, "easeOutQuad");
letters2.alphaTo(100, 0.3, "easeOutQuad");
if (_root.fs == true) {
_root.ifgoFullScreen();
}
}
};
sendBut.onRollOver = (ub.onRollOver = (db.onRollOver = function () {
if (dropStatus != "dragging") {
_root.cursor.gotoAndStop(3);
this.scaleTo(140, _root.brtt, _root.brtm);
}
}));
sendBut.onRollOut = (sendBut.onDragOut = (ub.onRollOut = (ub.onDragOut = (db.onRollOut = (db.onDragOut = function () {
if (dropStatus != "dragging") {
_root.cursor.gotoAndStop(1);
this.scaleTo(100, _root.brtt, _root.brtm);
}
})))));
ashb.onRollOver = function () {
if (dropStatus != "dragging") {
_root.playSound(this, _root.back, true);
this.scaleTo(140, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(3);
}
};
ashb.onRollOut = (ashb.onDragOut = function () {
if (dropStatus != "dragging") {
_root.stopSound(this, _root.back);
this.scaleTo(100, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(1);
}
});
lb.onRollOver = function () {
if (dropStatus != "dragging") {
_root.playSound(this, _root.lazy, false);
this.scaleTo(140, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(3);
}
};
lb.onRollOut = (lb.onDragOut = function () {
if (dropStatus != "dragging") {
_root.stopSound(this, _root.lazy);
this.scaleTo(100, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(1);
}
});
Instance of Symbol 40 MovieClip "a2" in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (7);
}
Instance of Symbol 40 MovieClip "a1" in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (5);
}
Symbol 263 MovieClip Frame 1
onEnterFrame = function () {
grap.cen._rotation = grap.cen._rotation + 5;
};
showMe = function () {
_visible = true;
grap.onTweenComplete = null;
grap.a1.rotateTo(0, 0.5, "easeOutQuad");
grap.a2.rotateTo(180, 0.5, "easeOutQuad");
grap.scaleTo(100, 0.5, "easeOutQuad");
};
hideMe = function () {
grap.onTweenComplete = function () {
_visible = false;
};
grap.a1.rotateTo(90, 0.2, "easeOutQuad");
grap.a2.rotateTo(90, 0.2, "easeOutQuad");
grap.scaleTo(0, 0.2, "easeOutQuad");
};
if (showOnLoad == true) {
showMe();
}
if (hideOnLoad == true) {
hideMe();
}
Symbol 312 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
_parent._x = _parent._x + _parent.wSpeed;
Symbol 322 MovieClip Frame 37
_parent.trexStatus = "idle";
Symbol 328 MovieClip Frame 4
_parent.dropBeer = true;
Symbol 328 MovieClip Frame 14
_root.playSound(this, _root.bierpsst, false);
Symbol 328 MovieClip Frame 67
_root.playSound(this, _root.drink1, false);
Symbol 328 MovieClip Frame 204
_root.playSound(this, _root.drink1, false);
Symbol 328 MovieClip Frame 316
_root.playSound(this, _root.drink1, false);
Symbol 328 MovieClip Frame 349
_parent.dropBeer = false;
Symbol 328 MovieClip Frame 412
_parent._parent.createbierVat((biervat._x + _x) + _parent._x, (_parent._y + _y) + biervat._y, biervat._rotation, [-80, -40]);
_parent.dropBeer = false;
Symbol 328 MovieClip Frame 415
_parent.trexStatus = "idle";
Symbol 329 MovieClip Frame 1
rc = 0;
Symbol 329 MovieClip Frame 17
if (rc < 10) {
rc++;
gotoAndPlay (9);
}
Symbol 329 MovieClip Frame 18
_parent.trexStatus = "idle";
Symbol 331 MovieClip Frame 1
rc = 0;
Symbol 331 MovieClip Frame 22
if (rc < 6) {
gotoAndPlay (8);
rc++;
}
Symbol 331 MovieClip Frame 30
_parent.trexStatus = "idle";
Symbol 332 MovieClip Frame 1
ac = 0;
Symbol 332 MovieClip Frame 11
if (ac < 3) {
ac++;
gotoAndPlay (5);
}
Symbol 332 MovieClip Frame 16
_parent.trexStatus = "idle";
Symbol 333 MovieClip Frame 1
startX = _x;
startY = _y;
wSpeed = 0;
faceTo = "right";
trexStatus = "idle";
but.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
but.onRollOut = (but.onReleaseOutside = function () {
_root.cursor.gotoAndStop(1);
});
dropBeer = false;
sendDragmes = true;
but.onPress = function () {
_parent.hideBal();
dragMe.hideMe();
if (sendDragmes == true) {
sendDragmes = false;
getURL ("javascript:pageTracker._trackPageview('/dinoCoen/drag');");
}
if (dropBeer == true) {
_parent.createbierVat((bani.biervat._x + bani._x) + _x, (bani.biervat._y + bani._y) + _y, bani.biervat._rotation);
}
faceTo = "right";
dropBeer = false;
_root.cursor.gotoAndStop(4);
trexStatus = "hanging";
};
walkTo = false;
but.onRelease = (but.onReleaseOutside = function () {
dragMe.showMe();
walkTo = [startX, startY];
trexStatus = "walk";
_root.cursor.gotoAndStop(1);
loopAni.face.gotoAndStop(10);
});
spring = 0.2;
decay = 0.9;
vr = (dr = 0);
preX = _parent._xmouse;
limbArray = new Array([bo, 0, 10], [bo.bo, -10, 10], [bo.bo.h1, 90, 3], [bo.bo.h2, 45, 3], [bo.bo.bo, 0, 10], [bo.bo.bo.b1, 30, 3], [bo.bo.bo.b2, 0, 5], [bo.bo.bo.bo, -30, 10]);
q = 0;
while (q < limbArray.length) {
limbArray[q].push([0, 0, 0]);
q++;
}
aniHang = function () {
_x = _parent._xmouse;
_y = _parent._ymouse;
q = 0;
while (q < limbArray.length) {
limbArray[q][3][0] = (-limbArray[q][3][2]) + limbArray[q][1];
limbArray[q][3][0] = limbArray[q][3][0] + ((_x - preX) / limbArray[q][2]);
limbArray[q][3][0] = limbArray[q][3][0] + (limbArray[q][0]._parent._rotation / 10);
limbArray[q][3][1] = (limbArray[q][3][0] * spring) + (limbArray[q][3][1] * decay);
limbArray[q][3][2] = limbArray[q][3][2] + limbArray[q][3][1];
limbArray[q][0]._rotation = limbArray[q][3][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][3][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][3][2] = -90;
}
q++;
}
};
walkToPos = function () {
if (_x < walkTo[0]) {
faceTo = "right";
wSpeed = 134;
} else {
faceTo = "left";
wSpeed = -134;
}
if ((_y > (startY + 5)) or (_y < (startY - 5))) {
if (_y < walkTo[1]) {
_y = (_y + 5);
} else {
_y = (_y - 5);
}
}
if ((_x < (startX + 150)) and (_x > (startX - 150))) {
if ((_y < (startY + 6)) and (_y > (startY - 6))) {
_x = (_x + ((startX - _x) / 5));
_y = (_y + ((startY - _y) / 5));
gotoAndStop (2);
bo.face.gotoAndStop(1);
if ((((_x < (startX + 2)) and (_x > (startX - 2))) and (_y < (startY + 2))) and (_y > (startY - 2))) {
_x = startX;
_y = startY;
faceTo = "right";
trexStatus = "idle";
walkTo = false;
_parent.showBal();
}
}
}
};
noRandomFaceArray = [9];
specialAniAr = [["zwaai", 5], ["biertje", 6], ["dans", 7], ["dans2", 8], ["yoyo", 9]];
setRandomFace = function (faceClip) {
ranNum = random(faceClip._totalframes) + 1;
q = 0;
while (q < noRandomFaceArray.length) {
if (noRandomFaceArray[q] == ranNum) {
ranNum = 1;
}
q++;
}
faceClip.gotoAndStop(ranNum);
};
onEnterFrame = function () {
if (trexStatus == "hanging") {
gotoAndStop (2);
bo.face.gotoAndStop(9);
aniHang();
} else if (trexStatus == "walk") {
gotoAndStop (4);
loopAni.face.gotoAndStop(9);
walkToPos();
} else if (trexStatus == "idle") {
gotoAndStop (3);
rfc = random(70);
if (rfc == 0) {
setRandomFace(idle.face);
}
specialAni = random(200);
if (specialAni == 0) {
specialAniType = random(specialAniAr.length);
gotoAndStop(specialAniAr[specialAniType][1]);
trexStatus = specialAniAr[specialAniType][0];
}
}
if (faceTo == "right") {
_xscale = (_xscale + ((100 - _xscale) / 3));
} else {
_xscale = (_xscale + ((-100 - _xscale) / 3));
}
preX = _parent._xmouse;
};
Symbol 333 MovieClip Frame 2
q = 0;
while (q < limbArray.length) {
limbArray[q][3][2] = 0;
limbArray[q][0]._rotation = 0;
q++;
}
Symbol 363 MovieClip [biographyPage] Frame 1
tb.gotoAndStop(1);
oriHeight = tb._height;
sendLastPageMes = true;
doLastPage = function () {
if (sendLastPageMes == true) {
sendLastPageMes = false;
getURL ("javascript:pageTracker._trackPageview('/biography/allBalloons');");
}
tb.b1.onRollOver = (tb.b2.onRollOver = function () {
this.scaleTo(140, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(3);
});
tb.b2.onRollOver = function () {
this.scaleTo(140, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(3);
};
tb.b1.onRollOut = (tb.b1.onDragOut = (tb.b2.onRollOut = (tb.b2.onDragOut = function () {
this.scaleTo(100, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(1);
})));
tb.b2.onPress = function () {
_root.doDonation();
};
tb.b1.onPress = function () {
if ((_root.vectorClip.contactPage.dropStatus != "noDrop") and (_root.vectorClip.contactPage.dropStatus != "letFall")) {
_root.showObjective("pick up the textfield and place it back", "fixContact");
}
if (_root.allowDragFromPage == false) {
_root.allowStageMove = false;
_root.mfm.stopCurrentAni();
}
_root.obj_dragNav.hideMe();
setStageMove(false);
_root.zoomToTarget(1, _root.vectorClip.contactPage);
_root.hideControlls();
_root.lockTo = "contact";
};
};
setOP = function () {
tb.back.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
tb.back.onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
tb.back.onPress = function () {
tb.enabled = false;
tb.scaleTo(0, 0.1, "easeOutQuad");
tb.rotateTo(-20, 0.1, "easeOutQuad");
_root.cursor.gotoAndStop(1);
tb.onTweenComplete = function () {
tb.onTweenComplete = function () {
this.enabled = true;
};
if (tb._currentframe == tb._totalframes) {
tb.gotoAndStop(1);
} else {
tb.nextFrame();
}
_root.popSound(tb);
setOP();
if (tb._currentframe == tb._totalframes) {
doLastPage();
}
tb._xscale = (tb._yscale = 0);
tb.scaleTo(100, 0.6, "easeOutElastic");
tb.rotateTo(0, 0.6, "easeOutElastic");
tb.doCl.bg._rotation = -90;
tb.doCl.bg.rotateTo(0, 1, "easeOutElastic");
};
};
};
hideBal = function () {
tb.scaleTo(0, 0.1, "easeOutQuad");
tb.rotateTo(-20, 0.1, "easeOutQuad");
};
showBal = function () {
tb.scaleTo(100, 0.6, "easeOutElastic");
tb.rotateTo(0, 0.6, "easeOutElastic");
tb.doCl.bg._rotation = -90;
tb.doCl.bg.rotateTo(0, 1, "easeOutElastic");
};
setOP();
butAr = new Array(awards, contact, biography, explore);
createbierVat = function (xp, yp, rt, speed) {
trace(xp);
cb = attachMovie("biervatClip", "biervatClip", getNextHighestDepth());
cb.allowPhysics = true;
if ((speed == undefined) or (speed == false)) {
cb.xs = random(30) - 15;
cb.ys = -random(5);
} else {
cb.xs = speed[0];
cb.ys = speed[1];
}
cb._x = xp;
cb._y = yp;
cb._rotation = rt;
};
ashb.onRollOver = function () {
_root.playSound(this, _root.back, true);
this.scaleTo(140, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(3);
};
ashb.onRollOut = (ashb.onDragOut = function () {
_root.stopSound(this, _root.back);
this.scaleTo(100, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(1);
});
ashb.onPress = function () {
_root.zoomToTarget(1, _root.vectorClip.homeHolder);
_root.hideControlls();
};
Symbol 367 MovieClip [awardPage] Frame 1
function onLoadInit(mc) {
_root.vectorClip.awardHolder._height = Stage.height - (Stage.height / 10);
if (_root.vectorClip.awardHolder._yscale > 100) {
_root.vectorClip.awardHolder._yscale = 100;
}
_root.vectorClip.awardHolder._xscale = _root.vectorClip.awardHolder._yscale;
}
createEmptyMovieClip("awHolder", getNextHighestDepth());
awHolder._x = 30;
awHolder._y = 430;
var mcLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("awardsScreen.swf", awHolder);
butAr = new Array(ashb);
q = 0;
while (q <= 8) {
q++;
}
q = 0;
while (q < butAr.length) {
butAr[q].onRollOver = function () {
_root.playSound(this, _root.back, false);
this.swapDepths(this._parent.getNextHighestDepth());
this.scaleTo(140, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(3);
};
butAr[q].onRollOut = (butAr[q].onDragOut = function () {
_root.stopSound(this, _root.back);
this.scaleTo(100, _root.brtt, _root.brtm);
_root.cursor.gotoAndStop(1);
});
q++;
}
ashb.onPress = function () {
_root.zoomToTarget(1, _root.vectorClip.homeHolder);
_root.hideControlls();
};
Symbol 373 MovieClip [particleBox] Frame 1
ap = 0;
fc = 0;
bv._visible = false;
particleClip = "vlamAni";
randomStartXPos = 20;
randomStartYPos = 20;
minStartXPos = 0;
minStartYPos = 0;
randomXSpeed = -10;
minXspeed = -10;
randomYSpeed = 4;
minYSpeed = -2;
randomScale = 50;
minScale = 100;
scaleMin = 1;
frameInt = 2;
pGrav = 0;
pDrag = 0.98;
createParticles = false;
numP = 0;
onEnterFrame = function () {
if (createParticles == true) {
fc++;
}
if (fc == frameInt) {
fc = 0;
cp = attachMovie(particleClip, particleClip + ap, this.getNextHighestDepth());
numP++;
cp._x = (Math.random() * randomStartXPos) + minStartXPos;
cp._y = (Math.random() * randomStartYPos) + minStartYPos;
cp.xs = (Math.random() * randomXSpeed) + minXspeed;
cp.ys = (Math.random() * randomYSpeed) + minYSpeed;
cp.ssd = false;
cp._xscale = (cp._yscale = 1);
cp.startScale = (Math.random() * randomScale) + minScale;
cp.onEnterFrame = function () {
this.ys = this.ys + pGrav;
this._y = this._y + this.ys;
this.xs = this.xs * pDrag;
this._x = this._x + this.xs;
if (this.ssd == false) {
this._xscale = (this._yscale = this._yscale + 10);
if (this._xscale >= this.startScale) {
this.ssd = true;
}
} else {
this._xscale = (this._yscale = this._yscale - scaleMin);
if (this._xscale < 0) {
numP--;
removeMovieClip(this);
}
}
};
ap++;
}
};
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 7
_parent.playModem();
Symbol 417 MovieClip Frame 17
gotoAndStop (1);
Symbol 500 MovieClip Frame 164
gotoAndPlay (5);
Symbol 501 MovieClip [modeman_blauwpop] Frame 1
resetMe = function () {
gotoAndStop (1);
modeman.gotoAndStop(1);
};
playModem = function () {
gotoAndStop (2);
modeman._visible = true;
modeman.gotoAndPlay(1);
_root.playSound(modeman, _root.modem, false, [modeman, 0, resetMe]);
};
playBut = function () {
bm.play();
};
stop();
if (doInt == undefined) {
doInt = true;
}
modeman._visible = false;
if (doInt == true) {
doInt = false;
setInterval(playBut, 10000);
}
Symbol 616 MovieClip [chicky] Frame 1
stop();
Instance of Symbol 625 MovieClip "vlam" in Symbol 640 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(Math.round(_totalframes / 2));
}
Symbol 641 MovieClip [ufoAni2] Frame 1
gravity = 5;
preX = (preY = _x);
acc = 5;
speed = 20;
drag = 0.99;
xmove = (ymove = 0);
drag = false;
xSpeed = (ySpeed = 0);
checkCounter = 0;
decay = 0.9;
spring = 0.2;
vx = (vr = 0);
targetPos = [random(40000), random(25000)];
MoveTo = function (toX, toY) {
var _local3 = toX - _x;
var _local2 = toY - _y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local6 = (acc * _local3) / _local5;
var _local7 = (acc * _local2) / _local5;
xmove = xmove + _local6;
ymove = ymove + _local7;
var _local4 = Math.sqrt((xmove * xmove) + (ymove * ymove));
xmove = (speed * xmove) / _local4;
ymove = (speed * ymove) / _local4;
xSpeed = xSpeed * 0.9;
ySpeed = ySpeed * 0.9;
_x = (_x + (xmove + xSpeed));
_y = (_y + (ymove + ySpeed));
if (xmove < 0.5) {
_xscale = (_xscale + ((100 - _xscale) / 1.5));
dragInd._xscale = _xscale;
} else {
_xscale = (_xscale + ((-100 - _xscale) / 1.5));
dragInd._xscale = _xscale;
}
checkCounter++;
if (checkCounter == 15) {
checkCounter = 0;
cDis = _root.getDistance(_x, targetPos[0], _y, targetPos[1]);
if (cDis < 1000) {
targetPos = [random(30000), random(30000)];
}
}
};
onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
sendDrag = true;
onPress = function () {
if (sendDrag == true) {
sendDrag = false;
getURL ("javascript:pageTracker._trackPageview('/ufo/dragged');");
}
handGotHit = false;
drag = true;
_root.cursor.gotoAndStop(4);
dragInd.hideMe();
};
handGotHit = false;
trowFunc = function () {
dragInd.showMe();
drag = false;
xSpeed = _root.vectorClip._xmouse - preX;
ySpeed = _root.vectorClip._ymouse - preY;
_root.cursor.gotoAndStop(1);
rh.ro._rotation = 0;
};
onRelease = (onReleaseOutside = function () {
if (handGotHit == false) {
trowFunc();
}
});
onEnterFrame = function () {
if (drag == false) {
MoveTo(targetPos[0], targetPos[1]);
} else {
_x = _root.vectorClip._xmouse;
_y = _root.vectorClip._ymouse;
}
dr = -rh._rotation;
if (_xscale < 0) {
dr = dr - ((_x - preX) / 4);
} else {
dr = dr + ((_x - preX) / 4);
}
vr = (dr * spring) + (vr * decay);
if (drag == true) {
rh._rotation = rh._rotation + vr;
rh.ro._rotation = rh.ro._rotation - vr;
} else {
rh._rotation = rh._rotation + vr;
}
rh.al._rotation = rh.al._rotation - vr;
if (rh.al._rotation > 20) {
rh.al._rotation = 20;
} else if (rh.al._rotation < -10) {
rh.al._rotation = -10;
}
rh.k1._rotation = rh.k1._rotation + (vr * 2);
rh.k2._rotation = rh.k2._rotation + (vr * 2);
rh.kk1._rotation = rh.kk1._rotation + (vr * 2);
rh.kk2._rotation = rh.kk2._rotation + (vr * 2);
preX = _x;
preY = _y;
};
Instance of Symbol 625 MovieClip "vlam" in Symbol 648 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(Math.round(_totalframes / 2));
}
Symbol 662 MovieClip [ufoAni] Frame 1
gravity = 5;
motion = 0;
damp = 0.8;
preX = (preY = _x);
acc = 5;
speed = 50;
xmove = (ymove = 0);
atLaserSound = 1;
lc = 0;
sc = 0;
sendHit = true;
shootLaser = function () {
cl = _parent.attachMovie("laser", "laser" + lc, _parent.getNextHighestDepth());
lPos = _root.getStagePos(this);
cl._rotation = -_root.getRotation(_root._xmouse, lPos[0], _root._ymouse, lPos[1]);
cl._x = _x;
cl._y = _y;
cl.xSpeed = -80 * Math.sin(cl._rotation * (Math.PI/180));
cl.ySpeed = 80 * Math.cos(cl._rotation * (Math.PI/180));
cl.fc = 0;
cl.onEnterFrame = function () {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.fc++;
if (this.hitTest(_root.cursor)) {
this.lPos = _root.getStagePos(this);
if (_root.cursor.hitZone.hitTest(this.lPos[0], this.lPos[1], true)) {
_root.playSound(_root.cursor, _root["auw" + (random(3) + 1)], false);
_root.playSound(_root.cursor, _root["laserHit" + (random(3) + 1)], false);
if (sendHit == true) {
sendHit = false;
getURL ("javascript:pageTracker._trackPageview('/ufo/laserHit');");
}
_parent.ufoAni2.trowFunc();
_parent.ufoAni2.handGotHit = true;
removeMovieClip(this);
}
}
if (this.fc > 100) {
this._xscale = (this._yscale = this._yscale - 2);
if (this._xscale < 0) {
removeMovieClip(this);
}
}
};
lc++;
};
MoveTo = function (toX, toY) {
var _local2 = toX - _x;
var _local1 = toY - _y;
var _local4 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local5 = (acc * _local2) / _local4;
var _local6 = (acc * _local1) / _local4;
xmove = xmove + _local5;
ymove = ymove + _local6;
var _local3 = Math.sqrt((xmove * xmove) + (ymove * ymove));
xmove = (speed * xmove) / _local3;
ymove = (speed * ymove) / _local3;
_x = (_x + xmove);
_y = (_y + ymove);
if (xmove < 0.5) {
_xscale = (_xscale + ((100 - _xscale) / 1.5));
} else {
_xscale = (_xscale + ((-100 - _xscale) / 1.5));
}
};
onEnterFrame = function () {
MoveTo(_root.vectorClip.ufoAni2._x - 250, _root.vectorClip.ufoAni2._y - 200);
speed = _root.getDistance(this._x, _root.vectorClip.ufoAni2._x - 250, this._y, _root.vectorClip.ufoAni2._y - 200) / 10;
if ((speed * 5) > 100) {
ufo.ufoani.engine2.engine.vlam._xscale = (ufo.ufoani.engine2.engine.vlam._yscale = 100);
ufo.ufoani.engine.engine.vlam._xscale = (ufo.ufoani.engine.engine.vlam._yscale = 100);
} else if ((speed * 5) < 20) {
ufo.ufoani.engine2.engine.vlam._xscale = (ufo.ufoani.engine2.engine.vlam._yscale = 20);
ufo.ufoani.engine.engine.vlam._xscale = (ufo.ufoani.engine.engine.vlam._yscale = 20);
} else {
ufo.ufoani.engine2.engine.vlam._xscale = (ufo.ufoani.engine2.engine.vlam._yscale = speed * 5);
ufo.ufoani.engine.engine.vlam._xscale = (ufo.ufoani.engine.engine.vlam._yscale = speed * 5);
}
if (speed > 50) {
speed = 50;
} else if (speed == 0) {
speed = 0.5;
}
motion = motion + ((_x - preX) / 10);
if ((_y - preY) < 0) {
} else if (ufo.ufoani.wiel1._rotation < 0) {
motion = motion + ((_y - preY) / 10);
} else {
motion = motion - ((_y - preY) / 10);
}
motion = motion - (ufo.ufoani.wiel1._rotation * (gravity / 50));
motion = motion * damp;
if (motion > 80) {
motion = 80;
} else if (motion < -80) {
motion = -80;
}
ufo.ufoani.wiel1._rotation = ufo.ufoani.wiel1._rotation + (motion * 4);
ufo.ufoani.wiel2._rotation = ufo.ufoani.wiel2._rotation + (motion * 4);
this._rotation = this._rotation + motion;
preX = _x;
preY = _y;
if (_parent.ufoAni2.drag == true) {
sc++;
if (sc == 10) {
_root.playSound(this, _root["laser" + atLaserSound], false);
atLaserSound++;
if (atLaserSound == 4) {
atLaserSound = 1;
}
shootLaser();
sc = 0;
}
}
};
Symbol 672 MovieClip Frame 1
stop();
Symbol 694 MovieClip Frame 3
stop();
Symbol 706 MovieClip Frame 10
stop();
Symbol 707 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 5
stop();
Symbol 708 MovieClip [draak] Frame 1
gravity = 5;
motion = 0;
damp = 0.8;
preX = (preY = _x);
acc = 5;
speed = 5;
drag = 0.99;
xmove = (ymove = 0);
xSpeed = (ySpeed = 0);
checkCounter = 0;
targetPos = [random(40000), random(25000)];
MoveTo = function (toX, toY) {
var _local3 = toX - _x;
var _local2 = toY - _y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
var _local6 = (acc * _local3) / _local5;
var _local7 = (acc * _local2) / _local5;
xmove = xmove + _local6;
ymove = ymove + _local7;
var _local4 = Math.sqrt((xmove * xmove) + (ymove * ymove));
xmove = (speed * xmove) / _local4;
ymove = (speed * ymove) / _local4;
xSpeed = xSpeed * 0.9;
ySpeed = ySpeed * 0.9;
_x = (_x + (xmove + xSpeed));
_y = (_y + (ymove + ySpeed));
if (xmove < 0.5) {
_xscale = (_xscale + ((100 - _xscale) / 1.5));
} else {
_xscale = (_xscale + ((-100 - _xscale) / 1.5));
}
dragMe._xscale = _xscale;
checkCounter++;
if (checkCounter == 15) {
checkCounter = 0;
cDis = _root.getDistance(_x, targetPos[0], _y, targetPos[1]);
if (cDis < 1000) {
targetPos = [random(30000), random(30000)];
}
}
};
onEnterFrame = function () {
MoveTo(targetPos[0], targetPos[1]);
};
draak.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
draak.onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
sendDraakPress = true;
draak.onPress = function () {
if (sendDraakPress == true) {
getURL ("javascript:pageTracker._trackPageview('/draak/pressed');");
}
dragMe.hideMe();
if (draak._currentframe == 1) {
onEnterFrame = null;
_root.allowStageMove = false;
vBox.createParticles = true;
draak.play();
draak.da.onEnterFrame = null;
draak.onEnterFrame = null;
_root.cursor.gotoAndStop(2);
_root.allowCursorMove = false;
_root.playSound(this, _root.draakOef, false);
_root.playSound(this, _root.fire, true);
}
};
draak.onRelease = (draak.onReleaseOutside = function () {
dragMe.showMe();
onEnterFrame = function () {
if (draak.da._currentframe == draak.da._totalframes) {
onEnterFrame = null;
_root.stopSound(this, _root.fire);
_root.allowStageMove = true;
vBox.createParticles = false;
_root.cursor.gotoAndStop(1);
_root.allowCursorMove = true;
draak.da.onEnterFrame = function () {
this.prevFrame();
};
draak.onEnterFrame = function () {
this.prevFrame();
if (this._currentframe == 1) {
this.idle.draak.ogen.gotoAndStop(2);
onEnterFrame = function () {
if (vBox.numP == 0) {
draak.idle.draak.ogen.gotoAndStop(1);
MoveTo(targetPos[0], targetPos[1]);
}
};
}
};
}
};
});
Symbol 771 MovieClip Frame 1
stop();
Symbol 781 MovieClip Frame 1
bat._visible = false;
Symbol 782 MovieClip Frame 1
oog.pup._x = oog.pup._x + 20;
Symbol 784 MovieClip [platenSpelerClip] Frame 1
stop();
Symbol 795 MovieClip [valPop] Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 10);
this._y = this._y + 100;
if (this._y > 30000) {
this._y = -5000;
}
};
Symbol 803 MovieClip Frame 1
stop();
Symbol 813 MovieClip [toelloe] Frame 1
toelloeTexture.setMask(bd);
startX = _x;
walkToPos = function () {
dowait = random(2);
if (dowait == 0) {
waitCounterTo = random(200) + 1;
waitCounter = 0;
} else {
waitCounterTo = false;
toX = (random(500) - random(500)) + startX;
if (_x > toX) {
walkTo = "left";
} else {
walkTo = "right";
}
walking = true;
}
};
resetAni = function () {
bd.body.gotoAndStop(1);
};
doPraat = function () {
bd.body.gotoAndStop(2);
_root.playSound(this.bd, _root["toelloe" + (random(3) + 1)], false, [false, 0, resetAni]);
};
waitCounterTo = false;
walking = true;
toX = (random(1000) - random(1000)) + startX;
if (_x > toX) {
walkTo = "left";
} else {
walkTo = "right";
}
praatCounter = 0;
praatCounterTo = random(200) + 50;
onEnterFrame = function () {
waitCounter++;
praatCounter++;
if (praatCounter == praatCounterTo) {
doPraat();
praatCounterTo = random(200) + 50;
praatCounter = 0;
}
if ((waitCounter == waitCounterTo) and (waitCounterTo != false)) {
walkToPos();
}
if (walkTo == "right") {
bd._xscale = bd._xscale + ((-100 - bd._xscale) / 3);
} else {
bd._xscale = bd._xscale + ((100 - bd._xscale) / 3);
}
if (walking == true) {
bd._rotation = Math.random() * 5;
q = 1;
while (q <= 4) {
bd["b" + q]._rotation = random(90) - 45;
q++;
}
if (walkTo == "right") {
_x = (_x + 10);
if (_x > toX) {
bd._rotation = 0;
q = 1;
while (q <= 4) {
bd["b" + q]._rotation = 0;
q++;
}
walking = false;
walkToPos();
}
} else {
_x = (_x - 10);
if (_x < toX) {
bd._rotation = 0;
q = 1;
while (q <= 4) {
bd["b" + q]._rotation = 0;
q++;
}
walking = false;
walkToPos();
}
}
}
};
Symbol 815 MovieClip [biervatClip] Frame 1
sy = _y;
grav = 10;
drag = 0.9;
rs = xs;
dc = 0;
onEnterFrame = function () {
if (allowPhysics == true) {
ys = ys + grav;
_y = (_y + ys);
xs = xs * drag;
_x = (_x + xs);
_rotation = (_rotation + xs);
if (_y > (sy + 400)) {
if (hitGround == true) {
dc++;
if (dc == 30) {
this.onEnterFrame = function () {
_xscale = (_xscale - 25);
_yscale = _xscale;
if (_xscale < 1) {
removeMovieClip(this);
}
};
}
}
rs = -rs;
hitGround = true;
_y = (sy + 400);
ys = (-ys) * 0.6;
} else {
hitGround = false;
}
}
};
Symbol 896 MovieClip Frame 1
stop();
Symbol 1012 MovieClip Frame 1
Symbol 1039 MovieClip Frame 2
stop();
Symbol 1044 MovieClip Frame 2
stop();
Symbol 1048 MovieClip Frame 2
stop();
Symbol 1052 MovieClip Frame 2
stop();
Symbol 1058 MovieClip Frame 2
stop();
Symbol 1062 MovieClip Frame 2
stop();
Symbol 1066 MovieClip Frame 2
stop();
Symbol 1070 MovieClip Frame 2
stop();
Symbol 1074 MovieClip Frame 2
stop();
Symbol 1078 MovieClip Frame 2
stop();
Symbol 1085 MovieClip Frame 7
stop();
Symbol 1097 MovieClip Frame 1
stop();
Symbol 1118 MovieClip Frame 1
stop();
this.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
this.onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
this.onPress = function () {
_root.cursor.gotoAndStop(1);
_parent._parent.dragMe.hideMe();
this.enabled = false;
_parent._parent._parent._parent.getLoep();
};
Symbol 1118 MovieClip Frame 2
_parent.tvd.play();
Symbol 1118 MovieClip Frame 55
this.alphaTo(0, 0.4, "easeInQuad");
_root.controllAni("thanksLoupe");
this.onTweenComplete = function () {
_parent._parent.play();
_root.maxZoom = 4;
_root.controlls.tb.controlls.z4.alphaTo(100, 0.5, "easeOutQuad");
_root.controlls.tb.controlls.q4.scaleTo(0, 0.5, "easeOutQuad");
_root.controlls.tb.controlls.q4.onTweenComplete = function () {
this._visible = false;
};
};
stop();
Symbol 1121 MovieClip Frame 1
stop();
Symbol 1121 MovieClip Frame 9
stop();
Symbol 1131 MovieClip Frame 7
stop();
Symbol 1133 MovieClip Frame 1
_root.playSound(this, _root.raccoon_blah, false);
Symbol 1133 MovieClip Frame 4
tong._rotation = 30;
tong.rotateTo(0, 1, "EaseOutElastic");
dragMe.grap._xscale = (dragMe.grap._yscale = 0);
dragMe.showOnLoad = true;
as = 0;
createSpetter = function () {
cs = _parent._parent.attachMovie("spetterRaccoon", "spetterRaccoon" + as, _parent._parent.getNextHighestDepth());
cs._x = 100 + random(100);
cs._y = random(100);
cs.xs = random(50) - random(50);
cs.ys = random(50) + 40;
cs._yscale = (cs._xscale = random(80) + 20);
cs.myS = cs._yscale;
cs.maxY = 400 + random(50);
cs.onEnterFrame = function () {
this._x = this._x + this.xs;
this._y = this._y + this.ys;
if ((this._y > this.maxY) and (this.preY != this.maxY)) {
this._y = this.maxY;
this.ys = (this.xs = 0);
this._xscale = this.myS * 3;
this._yscale = this.myS / 6;
this.yScaleTo(this.myS / 2, 1, "EaseOutElastic");
this.xScaleTo(this.myS * 1.5, 1, "EaseOutElastic");
} else {
this.preY = this._y;
}
};
as++;
};
q = 0;
while (q < 20) {
createSpetter();
q++;
}
Symbol 1133 MovieClip Frame 35
if (_parent._parent.gotLoep == false) {
stop();
_root.playSound(this, _root.raccoon_takeIt, true);
}
Symbol 1133 MovieClip Frame 42
stop();
_rotation = -15;
rotateTo(0, 0.3, "easeOutBack");
Symbol 1134 MovieClip Frame 43
_parent.addLimb([hoofd.tong, 0, [-0.4, -0.4], [0.2, 0.7]]);
Symbol 1140 MovieClip Frame 9
stop();
Symbol 1148 MovieClip Frame 1
Symbol 1152 MovieClip Frame 1
Instance of Symbol 1193 MovieClip "mch" in Symbol 1206 MovieClip Frame 46
onClipEvent (load) {
mc.dragMe._visible = false;
}
Symbol 1215 MovieClip Frame 1
stop();
mch.mc.dragMe.grap._xscale = (mch.mc.dragMe.grap._yscale = 0);
mch.mc.dragMe.showOnLoad = true;
mch.setMask(mcm);
slowSpeed = 3;
isOut = false;
dragging = false;
startDragMono = function () {
mch.mc.dragMe.hideMe();
mch.mc.vgdp._x = mch.mc._xmouse;
mch.mc.vgdp._y = mch.mc._ymouse;
preY = _root._ymouse;
preX = _root._xmouse;
dragging = true;
_root.allowCursorMove = false;
_root.cursor.gotoAndStop(2);
};
stopDragMono = function () {
if (toY < -480) {
toY = -480;
}
if (mch.mc._y > -18) {
mch.mc.onTweenComplete = function () {
this.alphaTo(0, 0.5, "easeOutQuad");
this.onTweenComplete = function () {
play();
isOut = false;
this._visible = false;
_root.maxZoom = 5;
getURL ("javascript:pageTracker._trackPageview('/raccoon/gotAllTools');");
_root.vectorClip.metalDetector.md.hv.but.enabled = false;
_root.controlls.tb.controlls.z5.alphaTo(100, 0.5, "easeOutQuad");
_root.controlls.tb.controlls.q5.scaleTo(0, 0.5, "easeOutQuad");
_root.controlls.tb.controlls.q5.onTweenComplete = function () {
this._visible = false;
};
};
};
if (mch.mc._y < 120) {
mch.mc.ySlideTo(120, 0.5, "easeOutQuad");
} else {
mch.mc.ySlideTo(mch.mc._y, 0, "easeOutQuad");
}
_root.lockTo = "none";
_root.allowStageMove = true;
_root.allowZoom = true;
_root.obj_findTools.objComplete();
_root.controllAni("thanks");
isOut = true;
mch.enabled = false;
} else {
mch.mc.dragMe.showMe();
}
dragging = false;
_root.cursor.gotoAndStop(1);
_root.allowCursorMove = true;
};
returnToOriRot = function () {
neus._rotation = neus._rotation / 2;
neus2._rotation = neus2._rotation / 2;
mcm._rotation = mcm._rotation / 2;
mch._rotation = mch._rotation / 2;
mch._rotation = mch._rotation / 2;
_rotation = (_rotation / 2);
_parent._rotation = _parent._rotation / 2;
_parent.poot1._rotation = _parent.poot1._rotation / 2;
_parent._parent.staart._rotation = _parent._parent.staart._rotation / 2;
};
mch.onPress = startDragMono;
mch.onRelease = (mch.onReleaseOutside = stopDragMono);
mch.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
mch.onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
toY = -480;
onEnterFrame = function () {
if (dragging == true) {
toY = toY + ((_root._xmouse - preX) + (_root._ymouse - preY));
mch.mc._y = mch.mc._y + ((toY - mch.mc._y) / 6);
if (mch.mc._y > -40) {
neus._xscale = 40 + ((-mch.mc._y) * 1.5);
snuit._xscale = 100 - (20 + (mch.mc._y / 2));
if (neus._xscale < 50) {
neus._xscale = 50;
}
if (snuit._xscale < 85) {
snuit._xscale = 85;
}
} else {
snuit._xscale = 100;
neus._xscale = 100;
}
neus2._xscale = (neus._yscale = neus._xscale);
if (mch.mc._y < -480) {
mch.mc._y = -480;
} else if (mch.mc._y > 180) {
stopDragMono();
mch.setMask(null);
mcm._visible = false;
} else {
mcm._visible = true;
mch.setMask(mcm);
}
if (mch.mc._y < (-mch.mc.vgdp._y)) {
mch.mc._y = -mch.mc.vgdp._y;
}
myPos = _root.getStagePos(mch);
rotTo = _root.getRot(_root._xmouse, myPos[0], _root._ymouse, myPos[1]) - 90;
if (rotTo < -100) {
rotTo = -100;
} else if (rotTo > 10) {
rotTo = 10;
}
neus._rotation = neus._rotation + (((rotTo / 4) - neus._rotation) / slowSpeed);
neus2._rotation = neus._rotation;
mcm._rotation = neus._rotation;
mch._rotation = neus._rotation;
_rotation = neus._rotation;
_parent._rotation = neus._rotation;
_parent.poot1._rotation = -neus._rotation;
_parent._parent.staart._rotation = neus._rotation;
preY = _root._ymouse;
preX = _root._xmouse;
cp = _root.getStagePos(mch.mc.vgdp);
_root.cursor._x = cp[0];
_root.cursor._y = cp[1];
} else if (isOut == false) {
returnToOriRot();
}
};
Symbol 1215 MovieClip Frame 6
stop();
Symbol 1218 MovieClip [raccoon] Frame 1
startX = _x;
startY = _y;
ani.vg.help.gotoAndStop(1);
preX = _parent._xmouse;
preY = _parent._xmouse;
shyf = 0.7;
shd = 0.7;
stop();
me = this;
ani.vg.vgg_graphic.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
ani.vg.vgg_graphic.onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
ani.vg.vgg_graphic.onPress = function () {
hoofdRot = ani.hoofd._rotation;
staartRot = ani.staart._rotation;
poot3Rot = ani.poot1._rotation;
_root.allowCursorMove = false;
_root.stopSound(me, _root.racoonauw);
_root.cursor.gotoAndStop(2);
gotoAndStop (2);
};
limbArray = new Array([ani.hoofd.w1, 0, [2, 0.8], [0.2, 0.7]], [ani.hoofd.w2, 0, [2, -0.8], [0.2, 0.7]], [ani.hoofd.kuif, 0, [-0.6, 2], [0.2, 0.7]], [ani.hoofd.o1, 0, [-0.8, 2], [0.2, 0.7]], [ani.hoofd.snorharen.s1.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani.hoofd.snorharen.s2.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani.hoofd.snorharen.s3.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani.hoofd.snorharen.s4.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani.hoofd.snorharen.s5.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani.hoofd.snorharen.s6.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani.hoofd.o2, 0, [-0.8, 2], [0.2, 0.7]]);
q = 0;
while (q < limbArray.length) {
limbArray[q].push([0, 0, 0, [0, 0]]);
q++;
}
aniHang = function () {
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q][4][0] = (-limbArray[q][4][2]) + limbArray[q][1];
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[1] - limbArray[q][4][3][1]) / limbArray[q][2][1]);
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[0] - limbArray[q][4][3][0]) / limbArray[q][2][0]);
limbArray[q][4][0] = limbArray[q][4][0] + (limbArray[q][0]._parent._rotation / 10);
limbArray[q][4][1] = (limbArray[q][4][0] * limbArray[q][3][0]) + (limbArray[q][4][1] * limbArray[q][3][1]);
limbArray[q][4][2] = limbArray[q][4][2] + limbArray[q][4][1];
limbArray[q][0]._rotation = limbArray[q][4][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][4][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][4][2] = -90;
}
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
};
onEnterFrame = function () {
csp = _root.getStagePos(this);
if (((((csp[0] > -100) and (csp[0] < (Stage.width + 100))) and (csp[1] > -100)) and (csp[1] < (Stage.height + 100))) and (trexStatus != "walk")) {
aniHang();
}
};
Symbol 1218 MovieClip [raccoon] Frame 2
stop();
vggsx = ani.rcb.vggr.vgg._x;
vggsy = ani.rcb.vggr.vgg._y;
dragging = true;
sdx = _xmouse;
setHelpBalloon = function (to) {
ani.rcb.vggr.vgg.help._rotation = -90;
ani.rcb.vggr.vgg.help._xscale = (ani.rcb.vggr.vgg.help._yscale = 0);
ani.rcb.vggr.vgg.help.scaleTo(100, 1, "easeOutElastic");
ani.rcb.vggr.vgg.help.gotoAndStop(to);
_root.popSound(ani.rcb.vggr.vgg.help);
};
setHelpBalloon(2);
shyf = 0.2;
shd = 0.2;
ani.rcb.vggr.vgg.dragMe.hideOnLoad = true;
limbArray = new Array([ani.hoofd.hani.w1, 0, [2, 0.8], [0.2, 0.7]], [ani.hoofd.hani.w2, 0, [2, -0.8], [0.2, 0.7]], [ani.hoofd.hani.kuif, 0, [-0.6, 2], [0.2, 0.7]], [ani.hoofd.hani.o1, 0, [-0.8, 2], [0.2, 0.7]], [ani.rcb.vggr.vgg.help, 0, [-2, -2], [0.2, 0.7]], [ani.hoofd.hani.snorharen.s1.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani.hoofd.hani.snorharen.s2.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani.hoofd.hani.snorharen.s3.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani.hoofd.hani.snorharen.s4.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani.hoofd.hani.snorharen.s5.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani.hoofd.hani.snorharen.s6.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani.hoofd.hani.o2, 0, [-0.8, 2], [0.2, 0.7]]);
q = 0;
while (q < limbArray.length) {
limbArray[q].push([0, 0, 0, [0, 0]]);
q++;
}
ani.rcb.vggr.vgg.vgdp._x = ani.rcb.vggr.vgg._xmouse;
ani.rcb.vggr.vgg.vgdp._y = ani.rcb.vggr.vgg._ymouse;
ani.rcb.vggr.vgg.vgg_graphic.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
ani.rcb.vggr.vgg.vgg_graphic.onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
ani.rcb.vggr.vgg.vgg_graphic.onPress = function () {
setHelpBalloon(2);
ani.rcb.vggr.vgg.dragMe.grap.a2._x = 38;
_root.stopSound(ani.rcb.vggr.vgg.dragMe, _root.dragMe_help);
clearInterval(thi);
playngHelp = false;
ani.rcb.vggr.vgg.dragMe.hideMe();
dragging = true;
sdx = _xmouse;
toX = ani.rcb.vggr.vgg._x;
_root.allowCursorMove = false;
_root.cursor.gotoAndStop(2);
ani.rcb.vggr.vgg.vgdp._x = ani.rcb.vggr.vgg._xmouse;
ani.rcb.vggr.vgg.vgdp._y = ani.rcb.vggr.vgg._ymouse;
_root.vectorClip.metalDetector.onTweenComplete = function () {
this.toX = this.initPos[0];
this.toY = this.initPos[1];
this.active = false;
this.allowMoveToUser = true;
this.doSleep();
};
_root.vectorClip.metalDetector.allowMoveToUser = false;
_root.vectorClip.metalDetector.slideTo(_root.vectorClip.metalDetector.initPos[0], _root.vectorClip.metalDetector.initPos[0], 2, "easeInQuad");
_root.vectorClip.metalDetector.moveToUser = false;
_root.vectorClip.metalDetector.beepDis = false;
ani._rotation = ani._rotation + ((((-tsp) / 5) - ani._rotation) / 3);
ani.rcb._rotation = ani.rcb._rotation + (((((-tsp) / 5) * 4) - ani.rcb._rotation) / 3);
};
turnHand = function () {
ani.rcb.vggr.vgg.dragMe.grap.a2.xSlideTo(ani.rcb.vggr.vgg.dragMe.grap.a1._x + 20, 1, "easeOutQuad");
ani.rcb.vggr.vgg.dragMe.grap.a2._xscale = ani.rcb.vggr.vgg.dragMe.grap.a1._xscale;
ani.rcb.vggr.vgg.dragMe.grap.a2._rotation = ani.rcb.vggr.vgg.dragMe.grap.a1._rotation;
clearInterval(thi);
};
playngHelp = false;
onMouseUp = function () {
if ((ani.rcb.vggr.vgg._x > -515) and (playngHelp == false)) {
playngHelp = true;
thi = setInterval(turnHand, 9000);
_root.playSound(ani.rcb.vggr.vgg.dragMe, _root.dragMe_help, true);
getURL ("javascript:pageTracker._trackPageview('/raccoon/helpDragMessage');");
}
if (dragging == true) {
ani.rcb.vggr.vgg.dragMe.showMe();
setHelpBalloon(1);
}
dragging = false;
_root.allowCursorMove = true;
_root.cursor.gotoAndStop(1);
if ((ani.rcb.vggr.vgg._x + 2768) < 0) {
ani.hoofd.gotoAndStop(11);
ani.rcb.vggr.vgg.enabled = false;
ani.rcb.vggr.vgg.onTweenComplete = function () {
this._visible = false;
_root.maxZoom = 3;
_root.controlls.tb.controlls.z3.alphaTo(100, 0.5, "easeOutQuad");
_root.controlls.tb.controlls.q3.scaleTo(0, 0.5, "easeOutQuad");
_root.controlls.tb.controlls.q3.onTweenComplete = function () {
this._visible = false;
};
};
ani.rcb.vggr.vgg.alphaTo(0, 0.3, "easeInQuad");
_root.mfm.shutUp();
_root.vectorClip.metalDetector.toX = _root.vectorClip.metalDetector.initPos[0];
_root.vectorClip.metalDetector.toY = _root.vectorClip.metalDetector.initPos[1];
_root.clearTellInt();
_root.controllAni("thanksMagni");
_root.zoomToTarget(1, _root.vectorClip.raccoon, [Stage.width / 2, Stage.height / 2]);
_root.lockTo = "raccoon";
_root.allowStageMove = false;
_root.allowZoom = false;
onMouseUp = null;
}
};
toX = ani.rcb.vggr.vgg._x;
ani.hoofd._rotation = hoofdRot;
ani.rcb.staart._rotation = staartRot;
ani.poot3._rotation = poot3Rot;
curSound = 0;
setSoundVol = function () {
pSound = Math.round(((-ani.rcb.vggr.vgg._x) - 504) / 237) + 1;
if (pSound == 1) {
ani.hoofd._rotation = random(5) - 2;
}
if ((prePSound != pSound) and (pSound <= 11)) {
if (pSound != 11) {
if (prePSound > pSound) {
ani.hoofd._rotation = -30;
} else {
ani.hoofd._rotation = 30;
}
}
ani.hoofd.gotoAndStop(pSound);
if (prePSound > pSound) {
ani.hoofd.hani.gotoAndStop(ani.hoofd.hani._totalframes);
}
_root.playSound(ani.rcb.vggr, _root["s" + pSound], false);
}
prePSound = pSound;
};
setSoundVol();
movedTo = "right";
backForthCounter = 0;
checkExpression = function () {
if (backForthCounter == 10) {
ani.hoofd.gotoAndStop(2);
} else if (backForthCounter == 15) {
}
};
onEnterFrame = function () {
aniHang();
setSoundVol();
if (dragging == true) {
if ((_xmouse < sdx) and (movedTo == "right")) {
backForthCounter++;
movedTo = "left";
} else if ((_xmouse > sdx) and (movedTo == "left")) {
backForthCounter++;
movedTo = "right";
}
toX = toX + (_xmouse - sdx);
}
dif = (toX - ani.rcb.vggr.vgg._x) / 2;
ani.rcb.vggr.vgg._x = ani.rcb.vggr.vgg._x + dif;
sTo = (ani.rcb.vggr.vgg._x + 2768) * 10;
sTo = sTo - 100;
if (sTo > 100) {
sTo = 100;
} else if (sTo < 30) {
sTo = 30;
}
ani.rcb.rcb._xscale = (ani.rcb.rcb._yscale = sTo);
if (ani.rcb.vggr.vgg._x > -503) {
ani.rcb.vggr.vgg._x = -503;
toX = -503;
} else if (ani.rcb.vggr.vgg._x > ((-ani.rcb.vggr.vgg.vgdp._x) - (60 * _root.zoomLevel))) {
ani.rcb.vggr.vgg._x = (-ani.rcb.vggr.vgg.vgdp._x) - (60 * _root.zoomLevel);
toX = (-ani.rcb.vggr.vgg.vgdp._x) - (60 * _root.zoomLevel);
}
allowRot = (-(ani.rcb.vggr.vgg._x + 503)) / 300;
if (allowRot > 1) {
allowRot = 1;
}
if ((dragging == true) and ((ani.rcb.vggr.vgg._x + 2768) > 0)) {
if (ani._xmouse < (ani.rcb._x - 100)) {
tsp = -_root.getRot(ani.rcb._x, ani._xmouse, ani.rcb._y, ani._ymouse);
} else {
tsp = -_root.getRot(ani.rcb._x, ani.rcb._x - 100, ani.rcb._y, ani._ymouse);
}
if (tsp > 30) {
tsp = 30;
} else if (tsp < -100) {
tsp = -100;
}
ani._rotation = ani._rotation + ((((-tsp) / 5) - ani._rotation) / 3);
ani.rcb._rotation = ani.rcb._rotation + (((((-tsp) / 5) * 4) - ani.rcb._rotation) / 3);
}
ani._rotation = ani._rotation * 0.6;
ani.rcb._rotation = ani.rcb._rotation * 0.6;
ani.hoofd._rotation = ani.hoofd._rotation * 0.6;
ani.rcb.vggr.vgg._y = vggsy + ((vggsx - ani.rcb.vggr.vgg._x) / 6.5);
sdx = _xmouse;
_root.cursor._rotation = ((-tsp) / 2) - 25;
ani.rcb.staart._rotation = ani.rcb.staart._rotation + (((-ani.rcb._rotation) - ani.rcb.staart._rotation) / 3);
ani.rcb.b1._rotation = (-ani._rotation) + (-ani.rcb._rotation);
ani.rcb.b1._y = ((-ani.rcb.b1._rotation) * 2.3) - 23;
ani.poot1._y = (ani._rotation * 4) + 23;
ani.poot2._y = (ani._rotation * 8) - 21;
if (dragging == true) {
cp = _root.getStagePos(ani.rcb.vggr.vgg.vgdp);
_root.cursor._x = cp[0];
_root.cursor._y = cp[1];
}
};
Symbol 1218 MovieClip [raccoon] Frame 3
startX = _x;
startY = _y;
preX = _parent._xmouse;
preY = _parent._xmouse;
shyf = 0.7;
shd = 0.7;
me = this;
limbArray = new Array([ani2.hoofd.w1, 0, [2, 0.8], [0.2, 0.7]], [ani2.hoofd.w2, 0, [2, -0.8], [0.2, 0.7]], [ani2.hoofd.kuif, 0, [-0.6, 2], [0.2, 0.7]], [ani2.hoofd.o1, 0, [-0.8, 2], [0.2, 0.7]], [ani2.hoofd.snorharen.s1.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s2.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s3.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s4.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s5.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s6.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.o2, 0, [-0.8, 2], [0.2, 0.7]]);
addLimb = function (toAdd) {
alreadyAdd = false;
q = 0;
while (q < limbArray.length) {
if (toAdd[0] == limbArray[q][0]) {
alreadyAdd = true;
}
q++;
}
if (alreadyAdd == false) {
limbArray.push(toAdd);
curP = _root.getStagePos(toAdd[0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[limbArray.length - 1].push([0, 0, 0, [0, 0]]);
limbArray[limbArray.length - 1][4][3] = [curP[0], curP[1]];
}
};
gotLoep = false;
getLoep = function () {
gotLoep = true;
_root.stopSound(ani2.hoofd, _root.raccoon_takeIt);
if (ani2.hoofd._rotation != 0) {
ani2.hoofd.rotateTo(0, 0.5, "easeInOutQuad");
ani2.hoofd.onTweenComplete = function () {
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
};
} else {
ani2.stop();
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
}
};
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q].push([0, 0, 0, [0, 0]]);
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
ani2Hang = function () {
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q][4][0] = (-limbArray[q][4][2]) + limbArray[q][1];
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[1] - limbArray[q][4][3][1]) / limbArray[q][2][1]);
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[0] - limbArray[q][4][3][0]) / limbArray[q][2][0]);
limbArray[q][4][0] = limbArray[q][4][0] + (limbArray[q][0]._parent._rotation / 10);
limbArray[q][4][1] = (limbArray[q][4][0] * limbArray[q][3][0]) + (limbArray[q][4][1] * limbArray[q][3][1]);
limbArray[q][4][2] = limbArray[q][4][2] + limbArray[q][4][1];
limbArray[q][0]._rotation = limbArray[q][4][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][4][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][4][2] = -90;
}
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
};
onEnterFrame = function () {
csp = _root.getStagePos(this);
if (((((csp[0] > -100) and (csp[0] < (Stage.width + 100))) and (csp[1] > -100)) and (csp[1] < (Stage.height + 100))) and (trexStatus != "walk")) {
ani2Hang();
}
};
Symbol 1218 MovieClip [raccoon] Frame 4
startX = _x;
startY = _y;
preX = _parent._xmouse;
preY = _parent._xmouse;
shyf = 0.7;
shd = 0.7;
me = this;
isDone = function () {
_root.controllAni("bullshit");
gotoAndStop (6);
trace("doNAi");
};
_root.playSound(this.ani.hoofd, _root.raccoon_noIdea, false, [[ani.hoofd, ani], 0, isDone]);
limbArray = new Array([ani2.hoofd.w1, 0, [2, 0.8], [0.2, 0.7]], [ani2.hoofd.w2, 0, [2, -0.8], [0.2, 0.7]], [ani2.hoofd.kuif, 0, [-0.6, 2], [0.2, 0.7]], [ani2.hoofd.o1, 0, [-0.8, 2], [0.2, 0.7]], [ani2.hoofd.snorharen.s1.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s2.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s3.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s4.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s5.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s6.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.o2, 0, [-0.8, 2], [0.2, 0.7]]);
addLimb = function (toAdd) {
alreadyAdd = false;
q = 0;
while (q < limbArray.length) {
if (toAdd[0] == limbArray[q][0]) {
alreadyAdd = true;
}
q++;
}
if (alreadyAdd == false) {
limbArray.push(toAdd);
curP = _root.getStagePos(toAdd[0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[limbArray.length - 1].push([0, 0, 0, [0, 0]]);
limbArray[limbArray.length - 1][4][3] = [curP[0], curP[1]];
}
};
getLoep = function () {
_root.stopSound(ani2.hoofd, _root.raccoon_takeIt);
if (ani2.hoofd._rotation != 0) {
ani2.hoofd.rotateTo(0, 0.5, "easeInOutQuad");
ani2.hoofd.onTweenComplete = function () {
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
};
} else {
ani2.stop();
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
}
};
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q].push([0, 0, 0, [0, 0]]);
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
ani2Hang = function () {
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q][4][0] = (-limbArray[q][4][2]) + limbArray[q][1];
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[1] - limbArray[q][4][3][1]) / limbArray[q][2][1]);
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[0] - limbArray[q][4][3][0]) / limbArray[q][2][0]);
limbArray[q][4][0] = limbArray[q][4][0] + (limbArray[q][0]._parent._rotation / 10);
limbArray[q][4][1] = (limbArray[q][4][0] * limbArray[q][3][0]) + (limbArray[q][4][1] * limbArray[q][3][1]);
limbArray[q][4][2] = limbArray[q][4][2] + limbArray[q][4][1];
limbArray[q][0]._rotation = limbArray[q][4][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][4][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][4][2] = -90;
}
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
};
onEnterFrame = function () {
csp = _root.getStagePos(this);
if (((((csp[0] > -100) and (csp[0] < (Stage.width + 100))) and (csp[1] > -100)) and (csp[1] < (Stage.height + 100))) and (trexStatus != "walk")) {
ani2Hang();
}
};
Symbol 1218 MovieClip [raccoon] Frame 5
startX = _x;
startY = _y;
preX = _parent._xmouse;
preY = _parent._xmouse;
shyf = 0.7;
shd = 0.7;
me = this;
isDone = function () {
gotoAndStop (6);
trace("ANI DONE");
};
_root.playSound(this.ani.hoofd, _root.raccoon_idontknow2, false, [[ani.hoofd, ani], 0, isDone]);
limbArray = new Array([ani2.hoofd.w1, 0, [2, 0.8], [0.2, 0.7]], [ani2.hoofd.w2, 0, [2, -0.8], [0.2, 0.7]], [ani2.hoofd.kuif, 0, [-0.6, 2], [0.2, 0.7]], [ani2.hoofd.o1, 0, [-0.8, 2], [0.2, 0.7]], [ani2.hoofd.snorharen.s1.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s2.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s3.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s4.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s5.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s6.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.o2, 0, [-0.8, 2], [0.2, 0.7]]);
addLimb = function (toAdd) {
alreadyAdd = false;
q = 0;
while (q < limbArray.length) {
if (toAdd[0] == limbArray[q][0]) {
alreadyAdd = true;
}
q++;
}
if (alreadyAdd == false) {
limbArray.push(toAdd);
curP = _root.getStagePos(toAdd[0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[limbArray.length - 1].push([0, 0, 0, [0, 0]]);
limbArray[limbArray.length - 1][4][3] = [curP[0], curP[1]];
}
};
getLoep = function () {
_root.stopSound(ani2.hoofd, _root.raccoon_takeIt);
if (ani2.hoofd._rotation != 0) {
ani2.hoofd.rotateTo(0, 0.5, "easeInOutQuad");
ani2.hoofd.onTweenComplete = function () {
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
};
} else {
ani2.stop();
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
}
};
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q].push([0, 0, 0, [0, 0]]);
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
ani2Hang = function () {
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q][4][0] = (-limbArray[q][4][2]) + limbArray[q][1];
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[1] - limbArray[q][4][3][1]) / limbArray[q][2][1]);
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[0] - limbArray[q][4][3][0]) / limbArray[q][2][0]);
limbArray[q][4][0] = limbArray[q][4][0] + (limbArray[q][0]._parent._rotation / 10);
limbArray[q][4][1] = (limbArray[q][4][0] * limbArray[q][3][0]) + (limbArray[q][4][1] * limbArray[q][3][1]);
limbArray[q][4][2] = limbArray[q][4][2] + limbArray[q][4][1];
limbArray[q][0]._rotation = limbArray[q][4][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][4][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][4][2] = -90;
}
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
};
onEnterFrame = function () {
csp = _root.getStagePos(this);
if (((((csp[0] > -100) and (csp[0] < (Stage.width + 100))) and (csp[1] > -100)) and (csp[1] < (Stage.height + 100))) and (trexStatus != "walk")) {
ani2Hang();
}
};
Symbol 1218 MovieClip [raccoon] Frame 6
startX = _x;
startY = _y;
preX = _parent._xmouse;
preY = _parent._xmouse;
shyf = 0.7;
shd = 0.7;
me = this;
isDone = function () {
gotoAndStop (7);
};
_root.playSound(this.ani.hoofd, _root.hatjoeoh, false, [[ani2.hoofd, ani2], 0, isDone]);
limbArray = new Array([ani2.hoofd.w1, 0, [2, 0.8], [0.2, 0.7]], [ani2.hoofd.w2, 0, [2, -0.8], [0.2, 0.7]], [ani2.hoofd.kuif, 0, [-0.6, 2], [0.2, 0.7]], [ani2.hoofd.o1, 0, [-0.8, 2], [0.2, 0.7]], [ani2.hoofd.snorharen.s1.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s2.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s3.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s4.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s5.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.snorharen.s6.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.hoofd.o2, 0, [-0.8, 2], [0.2, 0.7]]);
addLimb = function (toAdd) {
alreadyAdd = false;
q = 0;
while (q < limbArray.length) {
if (toAdd[0] == limbArray[q][0]) {
alreadyAdd = true;
}
q++;
}
if (alreadyAdd == false) {
limbArray.push(toAdd);
curP = _root.getStagePos(toAdd[0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[limbArray.length - 1].push([0, 0, 0, [0, 0]]);
limbArray[limbArray.length - 1][4][3] = [curP[0], curP[1]];
}
};
getLoep = function () {
_root.stopSound(ani2.hoofd, _root.raccoon_takeIt);
if (ani2.hoofd._rotation != 0) {
ani2.hoofd.rotateTo(0, 0.5, "easeInOutQuad");
ani2.hoofd.onTweenComplete = function () {
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
};
} else {
ani2.stop();
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
}
};
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q].push([0, 0, 0, [0, 0]]);
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
ani2Hang = function () {
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q][4][0] = (-limbArray[q][4][2]) + limbArray[q][1];
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[1] - limbArray[q][4][3][1]) / limbArray[q][2][1]);
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[0] - limbArray[q][4][3][0]) / limbArray[q][2][0]);
limbArray[q][4][0] = limbArray[q][4][0] + (limbArray[q][0]._parent._rotation / 10);
limbArray[q][4][1] = (limbArray[q][4][0] * limbArray[q][3][0]) + (limbArray[q][4][1] * limbArray[q][3][1]);
limbArray[q][4][2] = limbArray[q][4][2] + limbArray[q][4][1];
limbArray[q][0]._rotation = limbArray[q][4][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][4][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][4][2] = -90;
}
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
};
onEnterFrame = function () {
csp = _root.getStagePos(this);
if (((((csp[0] > -100) and (csp[0] < (Stage.width + 100))) and (csp[1] > -100)) and (csp[1] < (Stage.height + 100))) and (trexStatus != "walk")) {
ani2Hang();
}
};
Symbol 1218 MovieClip [raccoon] Frame 7
startX = _x;
startY = _y;
preX = _parent._xmouse;
preY = _parent._xmouse;
shyf = 0.7;
shd = 0.7;
me = this;
isDone = function () {
_root.controllAni("bullshit2");
};
limbArray = new Array([ani2.boven.hoofd.w1, 0, [2, 0.8], [0.2, 0.7]], [ani2.boven.hoofd.w2, 0, [2, -0.8], [0.2, 0.7]], [ani2.boven.hoofd.kuif, 0, [-0.6, 2], [0.2, 0.7]], [ani2.boven.hoofd.o1, 0, [-0.8, 2], [0.2, 0.7]], [ani2.boven.hoofd.snorharen.s1.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.boven.hoofd.snorharen.s2.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.boven.hoofd.snorharen.s3.gr, 0, [shyf, shyf], [0.2, 0.7]], [ani2.boven.hoofd.neus2.s4.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.boven.hoofd.neus2.s5.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.boven.hoofd.neus2.s6.gr, 0, [-shyf, -shyf], [0.2, 0.7]], [ani2.boven.hoofd.o2, 0, [-0.8, 2], [0.2, 0.7]]);
addLimb = function (toAdd) {
alreadyAdd = false;
q = 0;
while (q < limbArray.length) {
if (toAdd[0] == limbArray[q][0]) {
alreadyAdd = true;
}
q++;
}
if (alreadyAdd == false) {
limbArray.push(toAdd);
curP = _root.getStagePos(toAdd[0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[limbArray.length - 1].push([0, 0, 0, [0, 0]]);
limbArray[limbArray.length - 1][4][3] = [curP[0], curP[1]];
}
};
getLoep = function () {
_root.stopSound(ani2.hoofd, _root.raccoon_takeIt);
if (ani2.hoofd._rotation != 0) {
ani2.hoofd.rotateTo(0, 0.5, "easeInOutQuad");
ani2.hoofd.onTweenComplete = function () {
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
};
} else {
ani2.stop();
ani2.hoofd.stop();
ani2.hoofd.tong.loep.play();
}
};
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q].push([0, 0, 0, [0, 0]]);
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
ani2Hang = function () {
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q][4][0] = (-limbArray[q][4][2]) + limbArray[q][1];
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[1] - limbArray[q][4][3][1]) / limbArray[q][2][1]);
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[0] - limbArray[q][4][3][0]) / limbArray[q][2][0]);
limbArray[q][4][0] = limbArray[q][4][0] + (limbArray[q][0]._parent._rotation / 10);
limbArray[q][4][1] = (limbArray[q][4][0] * limbArray[q][3][0]) + (limbArray[q][4][1] * limbArray[q][3][1]);
limbArray[q][4][2] = limbArray[q][4][2] + limbArray[q][4][1];
limbArray[q][0]._rotation = limbArray[q][4][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][4][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][4][2] = -90;
}
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
};
onEnterFrame = function () {
csp = _root.getStagePos(this);
if (((((csp[0] > -100) and (csp[0] < (Stage.width + 100))) and (csp[1] > -100)) and (csp[1] < (Stage.height + 100))) and (trexStatus != "walk")) {
ani2Hang();
}
};
Symbol 1222 MovieClip Frame 1
_alpha = 0;
Symbol 1246 MovieClip Frame 882
stop();
Symbol 1256 MovieClip Frame 1
stop();
Symbol 1256 MovieClip Frame 2
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.toolBoxHello, false, [ds, 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.toolBoxHello];
rotToArray = new Array([6, -20], [20, 0], [28, -20], [35, -30], [42, -10], [46, -30], [55, 0], [90, -20], [96, 10], [105, 20], [125, 0], [155, -10], [160, 0], [170, 10], [177, 0], [182, -10], [195, 10], [205, 0], [215, 20], [225, -10], [235, 10], [245, 0], [270, 10], [280, -10], [290, 10], [295, 0], [330, 10], [319], [357, 15], [365, 0], [378, 30], [390, 10], [410, "startRandom"], [435, 0], [460, 0], [470, -10], [482, -10], [480], [495, 0], [505, 10], [515, 0], [525, 20], [530, 0], [550, 10], [565, -10], [580, 10], [590, -30], [615, 0], [645, -10], [660, 10], [670, 0], [678, -30], [690, 10], [697, 0], [703, 10], [708, -10], [715, 10], [730, -20], [745, 0], [750, "startRandom"], [850, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1256 MovieClip Frame 3
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.noIdea, false, [ds, 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.noIdea];
rotToArray = new Array([6, -20], [10, 0], [28, -20], [38, 10], [43, 0], [50, -20], [60, 10], [68, 0], [80, -15], [90, 10], [95, -10], [100, 0], [105, -10], [112, 0], [122, -20], [130, 0], [135, 10], [140, 0], [145, -10], [155, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1256 MovieClip Frame 4
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.noIdea2, false, [ds, 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.noIdea2];
rotToArray = new Array([6, -20], [10, 0], [28, -20], [38, 10], [43, 0], [50, -20], [60, 10], [68, 0], [80, -15], [90, 10], [95, -10], [100, 0], [105, -10], [112, 0], [122, -20], [130, 0], [135, 10], [140, 0], [145, -10], [150, 0], [165, 10], [170, -10], [175, 10], [210, 0], [220, -15], [230, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1256 MovieClip Frame 5
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.toolBoxThanks, false, [ds, 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.toolBoxThanks];
rotToArray = new Array([6, -20], [30, 0], [35, 10], [47, -20], [72, "startRandom"], [90, "stopRandom"], [105, 20], [115, -10], [125, 10], [135, 0], [150, 10], [160, -10], [170, 0], [190, -10], [195, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1256 MovieClip Frame 6
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.toolBoxMagni, false, [ds, 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.toolBoxMagni];
rotToArray = new Array([10, -20], [20, 10], [30, 0], [40, -20], [50, 10], [60, 20], [65, "startRandom"], [90, "stopRandom"], [110, 0], [120, -30], [145, 0], [165, 10], [170, -10], [180, 20], [190, -20], [200, -20], [210, 10], [220, 0], [230, -30], [240, 10], [255, 0], [275, -30], [280, -10], [290, 10], [310, -20], [320, 10], [330, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1256 MovieClip Frame 7
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.toolBoxWhereMonicle, false, [ds, 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.toolBoxWhereMonicle];
rotToArray = new Array([6, -20], [10, 0], [28, -20], [38, 10], [43, 0], [50, -20], [60, 10], [68, 0], [80, -15], [90, 10], [95, -10], [100, 0], [105, -10], [112, 0], [122, -20], [130, 0], [135, 10], [140, 0], [145, -10], [150, 0], [165, 10], [170, -10], [175, 10], [210, 0], [220, -15], [230, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1256 MovieClip Frame 8
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.dontMakeMeHatjoe, false, [[ds, _root.vectorClip.raccoon.ani], 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.dontMakeMeHatjoe];
rotToArray = new Array([7, -10], [15, 10], [25, -20], [40, 20], [84, 0], [95, 5], [165, "startRandom"], [195, 0], [225, -10], [235, 20], [250, 0], [272, -20], [280, 10], [290, -15], [305, 0], [362, 10], [367, -5], [375, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1256 MovieClip Frame 9
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.shutUpYou, false, [ds, 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.shutUpYou];
rotToArray = new Array([7, -10], [12, 0], [26, 20], [36, -20], [46, 10], [52, -15], [62, "startRandom"], [68, 0], [80, -20], [95, 20], [105, 0], [125, -20], [135, 0], [180, -20], [189, 0], [210, 10], [230, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1256 MovieClip Frame 10
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.tb_yes, false, [ds, 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.tb_yes];
rotToArray = new Array([3, "startRandom"], [20, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1256 MovieClip Frame 11
stop();
rotToNum = 0;
fc = 0;
inAr = 0;
ybasp = [_parent.tba._x, _parent.tba._y];
ybds = [ds.tbt._x, ds.tbt._y];
pcsp = [_parent.controlls._x, _parent.controlls._y];
returnToIlde = function () {
gotoAndStop (1);
_parent.doneTalking();
_parent.tba._x = ybasp[0];
_parent.tba._y = ybasp[1];
};
_root.playSound(this.ds, _root.usemetalDetector, false, [ds, 0, returnToIlde], 0, false);
_parent.nowPlaying = [this.ds, _root.usemetalDetector];
rotToArray = new Array([7, -20], [13, 0], [25, -20], [35, 20], [45, -10], [60, 10], [70, -20], [80, 15], [90, -10], [105, 0], [125, 30], [133, 0], [180, 10], [185, -15], [190, 0], [210, 10], [215, 0]);
rotTo = function (rt) {
rotToNum = rt;
};
doRanRot = false;
onEnterFrame = function () {
if (doRanRot == true) {
rotTo(random(20) - 10);
}
if (ds._currentframe > rotToArray[inAr][0]) {
if (rotToArray[inAr][1] == "startRandom") {
doRanRot = true;
inAr++;
} else {
doRanRot = false;
rotTo(rotToArray[inAr][1]);
inAr++;
}
}
toAdd = (rotToNum - ds._rotation) / 4;
ds._rotation = ds._rotation + toAdd;
if ((ds._rotation > 25) or (ds._rotation < -25)) {
_parent.createSpetter();
}
ds.tbt._x = ybds[0] + ds._rotation;
ds.tbt._y = ybds[1] + (ds._rotation / 2);
ds.tbt._rotation = -ds._rotation;
_parent.controlls._x = pcsp[0] + (ds.tbt._x - ybds[0]);
if (ds.tbt._y > ybds[1]) {
ds.tbt._y = ybds[1];
}
if (ds.tbt._x > ybds[0]) {
ds.tbt._x = ybds[0];
}
_parent.tba._x = ybasp[0] + ((-ds._rotation) / 1.5);
_parent.tba._y = ybasp[1] + ((-ds._rotation) / 1.5);
};
Symbol 1318 MovieClip Frame 36
stop();
Symbol 1331 MovieClip Frame 1
pointAt = new Array([34, -25], [8, -3], [-17, 25], [-41, 52], [-70, 92]);
spring = 0.1;
decay = 0.8;
vr = (dr = (vr2 = (dr2 = 0)));
onEnterFrame = function () {
dr = pointAt[_root.zoomLevel - 1][0] - _rotation;
vr = (dr * spring) + (vr * decay);
_rotation = (_rotation + vr);
dr2 = pointAt[_root.zoomLevel - 1][1] - hand._rotation;
vr2 = (dr2 * spring) + (vr2 * decay);
hand._rotation = hand._rotation + vr2;
};
Symbol 1332 MovieClip Frame 1
stop();
ns = 0;
out = false;
if (atSound == undefined) {
atSound = 1;
}
createSpetter = function () {
cs = attachMovie("spetter", "spetter" + ns, this.getNextHighestDepth());
cs.xs = 30 + (Math.random() * 70);
cs.ys = (Math.random() * 30) - (Math.random() * 30);
cs.gotoAndStop(random(cs._totalframes) + 1);
cs._rotation = random(360);
cs._yscale = (cs._xscale = random(30) + 70);
cs.onEnterFrame = function () {
this.xs = this.xs * 0.9;
this.ys = this.ys + 2;
this._rotation = this._rotation + this.xs;
this._x = this._x + this.xs;
this._y = this._y + this.ys;
if (this._y > Stage.height) {
removeMovieClip(this);
}
};
ns++;
};
rOver = function () {
onEnterFrame = null;
play();
_parent.allowClose = false;
if (out == false) {
numCreate = 5;
}
_root.cursor.gotoAndStop(3);
if (_root.obj_openToolbox != undefined) {
_root.obj_openToolbox.objComplete();
}
};
rOut = function () {
_root.cursor.gotoAndStop(1);
_root.cursorRotAdd = 0;
onEnterFrame = function () {
if (_parent.allowClose == true) {
_root.cursorRotAdd = 0;
prevFrame();
}
};
};
openTB = function () {
_root["blearg" + atSound].start();
atSound++;
if (atSound == 5) {
atSound = 1;
}
rOver();
out = true;
onEnterFrame = function () {
q = 0;
while (q < Math.ceil(numCreate)) {
createSpetter();
q++;
}
if (numCreate > 0) {
numCreate = numCreate - 0.5;
}
if ((_xmouse > 800) or (_ymouse > 100)) {
rOut();
_root.cursor.gotoAndStop(1);
_root.cursorRotAdd = 0;
}
};
};
hz.onRollOver = openTB;
hz.onRollOut = (hz.onDragOut = function () {
_root.cursor.gotoAndStop(1);
});
Symbol 1332 MovieClip Frame 5
zib = controlls.zib;
zob = controlls.zob;
hb = controlls.hb;
mdb = controlls.mdb;
allowKlapDicht = true;
highLightMe = function (who, toRot) {
if (toRot > 180) {
toRot = toRot - 360;
} else if (toRot < -180) {
toRot = toRot + 360;
}
who.onEnterFrame = function () {
this._xscale = (this._yscale = this._yscale + ((120 - this._xscale) / 4));
this._rotation = this._rotation + ((toRot - this._rotation) / 4);
};
};
q = 3;
while (q <= 5) {
controlls["z" + q]._alpha = 100;
controlls["q" + q]._visible = false;
q++;
}
q = _root.maxZoom + 1;
while (q <= 5) {
controlls["z" + q]._alpha = 50;
controlls["q" + q]._visible = true;
q++;
}
pd.tbt.slijm._rotation = 70;
pd.tbt.slijm._yscale = 0;
pd.tbt.slijm.rotateTo(0, 1.5, "EaseOutElastic");
pd.tbt.slijm.yScaleTo(100, 1.5, "EaseOutElastic");
pd.tbt._xscale = 110;
controlls._xscale = 110;
pd.tbt.xScaleTo(100, 0.7, "EaseOutElastic");
vcontrolls.xScaleTo(100, 0.7, "EaseOutElastic");
lowLightMe = function (who, toRot) {
who.onEnterFrame = function () {
this._xscale = (this._yscale = this._yscale + ((100 - this._xscale) / 4));
this._rotation = this._rotation + ((toRot - this._rotation) / 4);
};
};
zib.onRollOut = (zib.onDragOut = (zob.onRollOut = (zob.onDragOut = (homeB.onRollOut = (homeB.onDragOut = function () {
_root.cursor.gotoAndStop(1);
lowLightMe(this, 0);
})))));
zib.onRollOver = (zob.onRollOver = function () {
highLightMe(this, 180);
_root.cursor.gotoAndStop(3);
});
mdb.onRollOut = (mdb.onDragOut = function () {
_root.cursor.gotoAndStop(1);
lowLightMe(this, 0);
_root.cursorRotAdd = 0;
controlls.mdLabel.scaleTo(0, 0.2, "easeOutQuad");
controlls.mdLabel.rotateTo(0, 0.2, "easeOutQuad");
});
showMdLabel = function () {
controlls.mdLabel._visible = true;
controlls.mdLabel._xscale = (controlls.mdLabel._yscale = 0);
controlls.mdLabel.lab._rotation = -90;
controlls.mdLabel.scaleTo(100, 0.5, "easeOutQuad");
controlls.mdLabel.rotateTo(90, 2, "easeOutElastic");
controlls.mdLabel.lab.rotateTo(0, 2, "easeOutElastic");
controlls.mdLabel.lab._x = 30;
controlls.mdLabel.lab.xSlideTo(42, 2, "easeOutElastic");
};
mdb.onRollOver = function () {
highLightMe(this, 180);
_root.cursor.gotoAndStop(3);
showMdLabel();
_root.cursorRotAdd = -90;
};
hb.onRollOut = (hb.onDragOut = function () {
this.hin.alphaTo(100, 0.3, "easeOutQuad");
_root.cursor.gotoAndStop(1);
lowLightMe(this, 0);
_root.cursorRotAdd = 0;
controlls.homeLabel.scaleTo(0, 0.2, "easeOutQuad");
controlls.homeLabel.rotateTo(0, 0.2, "easeOutQuad");
});
controlls.homeLabel._visible = false;
controlls.mdLabel._visible = false;
if (_root.showMdKnop == false) {
mdb._visible = false;
}
hb.onRollOver = function () {
controlls.homeLabel._visible = true;
controlls.homeLabel._xscale = (controlls.homeLabel._yscale = 0);
controlls.homeLabel.lab._rotation = -90;
controlls.homeLabel.scaleTo(100, 0.5, "easeOutQuad");
controlls.homeLabel.rotateTo(90, 2, "easeOutElastic");
controlls.homeLabel.lab.rotateTo(0, 2, "easeOutElastic");
controlls.homeLabel.lab._x = 30;
controlls.homeLabel.lab.xSlideTo(42, 2, "easeOutElastic");
_root.cursorRotAdd = -90;
this.hin.alphaTo(0, 0.3, "easeOutQuad");
this.onEnterFrame = function () {
this._xscale = (this._yscale = this._yscale + ((120 - this._xscale) / 4));
this.hPos = _root.getStagePos(_root.vectorClip.homeHolder);
this.toRot = _root.getRot(this._x, this.hPos[0], this._y, this.hPos[1]) - 90;
if (this.toRot > 180) {
this.toRot = this.toRot - 360;
} else if (this.toRot < -180) {
this.toRot = this.toRot + 360;
}
this._rotation = this._rotation + ((this.toRot - this._rotation) / 4);
};
_root.cursor.gotoAndStop(3);
};
mdb.onPress = function () {
if (_root.allowStageMove == true) {
_root.zoomToTarget(1, _root.vectorClip.metalDetector, [Stage.width / 2, (Stage.height / 2) - 100]);
}
};
hb.onPress = function () {
if (_root.allowStageMove == true) {
_root.zoomToTarget(1, _root.vectorClip.homeHolder);
_root.allowStageMove = false;
_root.allowZoom = false;
_root.hideControlls();
lowLightMe(this, 0);
_root.lockTo = "home";
_root.xSpeed = (_root.ySpeed = 0);
_root.cursor.gotoAndStop(1);
}
};
doneTalking = function (interupted) {
_parent.allowClose = true;
_parent.aniStatus = "idle";
_parent.playingAni = false;
if (interupted != true) {
if (nowPlaying[1] == _root.toolBoxHello) {
if (_root.mfm.allowTalk == true) {
_root.mfm.doAni(_root.mfm_boohoo, 10);
}
} else if (nowPlaying[1] == _root.toolBoxMagni) {
_root.vectorClip.raccoon.gotoAndStop(3);
} else if (nowPlaying[1] == _root.toolBoxWhereMonicle) {
_root.vectorClip.raccoon.gotoAndStop(4);
_parent.allowClose = false;
} else if (nowPlaying[1] == _root.thatsbullshit) {
_root.vectorClip.raccoon.gotoAndStop(5);
_parent.allowClose = false;
} else if (nowPlaying[1] == _root.dontMakeMeHatjoe) {
_root.vectorClip.raccoon.gotoAndStop(7);
_parent.allowClose = false;
} else if (nowPlaying[1] == _root.shutUpYou) {
_root.vectorClip.metalDetector.playAni(_root.toolsAreGone, 4);
_parent.allowClose = false;
} else if (nowPlaying[1] == _root.tb_yes) {
_root.vectorClip.metalDetector.playAni(_root.jobforme, 5);
_parent.allowClose = false;
}
}
};
showAni = function (fNum, interuptTalking) {
if (interuptTalking == true) {
_root.stopSound(nowPlaying[0], nowPlaying[1]);
doneTalking(true);
trace("ok, interupt");
}
if (_parent.playingAni == false) {
trace("ok, playAni");
_parent.playingAni = true;
pd.gotoAndStop(fNum);
_parent.allowClose = false;
}
};
controlls.noti._visible = false;
checkAni = function () {
if (_parent.aniStatus == "sayHello") {
showAni(2, false);
_root.mfm.doAni(_root.mfm_hiTooly, 8);
} else if (_parent.aniStatus == "thanks") {
showAni(5, true);
} else if (_parent.aniStatus == "thanksMagni") {
showAni(6, true);
} else if (_parent.aniStatus == "thanksLoupe") {
showAni(7, true);
} else if (_parent.aniStatus == "bullshit") {
showAni(8, true);
} else if (_parent.aniStatus == "bullshit2") {
showAni(9, true);
} else if (_parent.aniStatus == "shutUpYou") {
showAni(9, true);
} else if (_parent.aniStatus == "tb_yes") {
showAni(10, true);
} else if (_parent.aniStatus == "useMD") {
showAni(11, true);
controlls.noti.gotoAndPlay(1);
mdb._visible = true;
controlls.noti._visible = true;
mdb.scaleTo(140, 1, "easeOutElastic");
showMdLabel();
} else {
_parent.allowClose = true;
}
};
checkAni();
zib.onPress = function () {
_root.butZoom(-1);
_root.cursor.gotoAndStop(3);
};
zob.onPress = function () {
if (((_root.maxZoom == 2) and (_root.zoomLevel == 2)) and (_parent.allowClose == true)) {
trace(_parent.atAni);
if (_parent.atAni == 3) {
showAni(_parent.atAni);
_parent.atAni = 4;
trace(_parent.atAni);
getURL ("javascript:pageTracker._trackPageview('/toolBox/noIdea1');");
} else if (_parent.atAni == 4) {
showAni(_parent.atAni);
_parent.atAni = 5;
getURL ("javascript:pageTracker._trackPageview('/toolBox/noIdea2');");
}
}
_root.butZoom(1);
_root.cursor.gotoAndStop(3);
};
stop();
Symbol 1332 MovieClip Frame 6
prevFrame();
Symbol 1333 MovieClip [controlls] Frame 1
onEnterFrame = function () {
if ((aniStatus == undefined) or (aniStatus == "sayHello")) {
aniStatus = "sayHello";
allowClose = false;
} else if (aniStatus == "thanksMagni") {
allowClose = false;
tb.openTB();
} else if (aniStatus == "useMD") {
allowClose = false;
tb.openTB();
} else {
allowClose = true;
}
trace("aniStatus = " + aniStatus);
playingAni = false;
atAni = 3;
onEnterFrame = null;
};
Symbol 1361 MovieClip [objectiveWolk] Frame 1
me = this;
comSym._xscale = 0;
comSym._yscale = 0;
comSym._rotation = 180;
removedOnce = false;
roba = function () {
trace("remove");
if (removedOnce == false) {
removedOnce = true;
_root.removeOBA();
}
clearInterval(me.robai);
};
setI = function () {
me.robai = setInterval(roba, 2000);
};
objComplete = function () {
comSym.scaleTo(100, 0.6, "easeOutElastic");
comSym.rotateTo(0, 0.6, "easeOutElastic");
me.setI();
comSym.onTweenComplete = function () {
ySlideTo(Stage.height + 100, 0.5, "easeInBack", 2);
onTweenComplete = function () {
removeMovieClip(me);
};
};
};
hideMe = function () {
ySlideTo(Stage.height + 100, 0.5, "easeInBack");
onTweenComplete = function () {
removeMovieClip(this);
};
};
Symbol 1409 MovieClip [ObjectiveBanenAchter] Frame 26
stop();
cacheAsBitmap = true;
Symbol 1409 MovieClip [ObjectiveBanenAchter] Frame 27
prevFrame();
Symbol 1499 MovieClip Frame 19
stop();
Symbol 1515 MovieClip Frame 1
stop();
Symbol 1519 MovieClip Frame 1
Symbol 1539 MovieClip Frame 1
stop();
Symbol 1543 MovieClip [metalDetector] Frame 1
active = false;
moveToUser = false;
playingAni = true;
beepDis = false;
md.hv.metertje.afstandMeter._visible = false;
allowMoveToUser = true;
indi._visible = false;
md.hv.indi1._xscale = (md.hv.indi1._yscale = (md.hv.indi2._xscale = (md.hv.indi2._yscale = 0)));
md.hv.indi1._visible = (md.hv.indi2._visible = false);
tim = 0;
ms = 300;
atSound = 1;
wijzerRot = 0;
initPos = [_x, _y];
toX = _x;
toY = _y;
doSleep = function () {
beepDis = false;
md.hv.swt.ySlideTo(-117, 0.2, "easeOutQuad");
stopAni();
playingAni = true;
md.face.gotoAndStop(1);
_root.playSound(md.face, _root.md_snore, true, [md.face.ani, 0, "none"]);
lastSoundPlayed = [_root.md_snore, md.face];
};
doSleep();
sayHello = true;
md.hv.but.onRollOver = (md.hv.help.onRollOver = function () {
_root.cursor.gotoAndStop(3);
});
md.hv.but.onRollOut = (md.hv.but.onDragOut = (md.hv.help.onRollOut = (md.hv.help.onDragOut = function () {
_root.cursor.gotoAndStop(1);
})));
md.hv.help.onPress = (md.hv.but.onPress = function () {
active = !active;
if (active == true) {
md.hv.help.stopTween();
md.hv.help._visible = true;
md.hv.help.onTweenComplete = function () {
this._visible = false;
};
md.hv.help.scaleTo(0, 0.1, "easeOutQuad");
md.hv.metertje.afstandMeter._visible = true;
_root.mfm.shutUp();
md.hv.swt.ySlideTo(-135, 0.2, "easeOutQuad");
md.face.gotoAndStop(2);
if (sayHello == true) {
_root.lockTo = "md";
sayHello = false;
_root.showMdKnop = true;
playAni(_root.md_whodares, 2);
getURL ("javascript:pageTracker._trackPageview('/metalDetector/activated');");
_root.clearTellInt();
_root.cursor.gotoAndStop(1);
md.hv.help.enabled = false;
md.hv.but.enabled = false;
_root.zoomToTarget(1, _root.vectorClip.metalDetector, [Stage.width / 2, (Stage.height / 2) - 100]);
_root.allowStageMove = false;
_root.allowZoom = false;
} else {
beepDis = true;
moveToUser = true;
md.face.gotoAndStop(3);
md.face.ani.gotoAndStop(1);
}
} else {
md.hv.metertje.afstandMeter._visible = false;
md.hv.help._rotation = -90;
md.hv.help.stopTween();
md.hv.help._visible = true;
md.hv.help.onTweenComplete = null;
md.hv.help.scaleTo(100, 1, "easeOutElastic");
md.hv.help.rotateTo(0, 1, "easeOutElastic");
_root.popSound(md.hv.help);
moveToUser = false;
stopAni();
doSleep();
}
});
hideIndi = function () {
md.hv.indi2.onTweenComplete = function () {
md.hv.indi2._visible = false;
};
md.hv.indi2.scaleTo(0, 0.3, "easeOutQuad");
clearInterval(hideInt);
};
setMesSize = function () {
md.hv.indi2.mes._height = Stage.height - 150;
if (md.hv.indi2.mes._yscale > 100) {
md.hv.indi2.mes._yscale = 100;
} else if (md.hv.indi2.mes._height < 300) {
md.hv.indi2.mes._height = 300;
}
md.hv.indi2.mes._xscale = md.hv.indi2.mes._yscale;
};
setMesSize();
showHelpMes = function () {
_root.zoomToTarget(1, _root.vectorClip.metalDetector, [(Stage.width / 2) - 80, (Stage.height / 2) - 100]);
md.hv.indi2._visible = true;
md.hv.indi2._rotation = 90;
md.hv.indi2.mes.ci._rotation = -90;
md.hv.indi2.mes.ci.rotateTo(0, 1.5, "easeOutElastic");
_root.popSound(md.hv.indi2.mes.ci);
md.hv.indi2.rotateTo(0, 1, "easeOutElastic");
md.hv.indi2.scaleTo(100, 1, "easeOutElastic");
md.hv.indi2.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
md.hv.indi2.onRollOut = function () {
_root.cursor.gotoAndStop(1);
};
md.hv.indi2.onPress = function () {
_root.cursor.gotoAndStop(1);
md.hv.indi2.onTweenComplete = function () {
if (this._currentFrame == this._totalframes) {
this._visible = false;
} else {
this.onTweenComplete = null;
this.nextFrame();
this._rotation = -90;
this.mes.ci._rotation = -90;
this.mes.ci.rotateTo(0, 1.5, "easeOutElastic");
_root.popSound(md.ci);
this.rotateTo(0, 1, "easeOutElastic");
this.scaleTo(100, 1, "easeOutElastic");
}
};
md.hv.indi2.scaleTo(0, 0.1, "easeOutQuad");
};
};
aniDone = function () {
if (lastSoundPlayed[0] == _root.md_whodares) {
_root.controllAni("shutUpYou");
} else if (lastSoundPlayed[0] == _root.toolsAreGone) {
_root.controllAni("tb_yes");
} else if (lastSoundPlayed[0] == _root.jobforme) {
_root.toolBox.allowClose = true;
beepDis = true;
moveToUser = true;
md.hv.help.enabled = true;
md.hv.but.enabled = true;
_root.allowStageMove = true;
_root.allowZoom = true;
_root.controlls.allowClose = true;
_root.lockTo = "none";
showHelpMes();
}
playingAni = false;
};
stopAni = function () {
playingAni = false;
_root.stopSound(lastSoundPlayed[1], lastSoundPlayed[0]);
md.face.gotoAndStop(1);
};
playAni = function (s, fn) {
trace("playingAni = " + playingAni);
stopAni();
md.face.gotoAndStop(fn);
playingAni = true;
_root.playSound(md.face, s, false, [md.face.ani, 0, aniDone]);
lastSoundPlayed = [s, md.face];
};
myOnEnterFrame = function () {
if (allowMoveToUser == true) {
if (moveToUser == true) {
zmp = _root.zoomLevel;
if ((((_x > (((-_root.refToX) * zmp) + ms)) and (_x < ((((-_root.refToX) * zmp) - ms) + (Stage.width * zmp)))) and (_y > (((-_root.refToY) * zmp) + ms))) and (_y < ((((-_root.refToY) * zmp) - ms) + (Stage.height * zmp)))) {
} else {
if (_x < (((-_root.refToX) * zmp) + ms)) {
toX = ((-_root.refToX) * zmp) + ms;
} else if (_x > ((((-_root.refToX) * zmp) + (Stage.width * zmp)) - ms)) {
toX = (((-_root.refToX) * zmp) + (Stage.width * zmp)) - ms;
}
if (_y < (((-_root.refToY) * zmp) + ms)) {
toY = ((-_root.refToY) * zmp) + ms;
} else if (_y > ((((-_root.refToY) * zmp) + (Stage.height * zmp)) - ms)) {
toY = (((-_root.refToY) * zmp) + (Stage.height * zmp)) - ms;
}
}
_x = (_x + ((toX - _x) / 2));
_y = (_y + ((toY - _y) / 2));
myPos = _root.getStagePos(this);
raccoonDis = _root.getDistance(this._x, _root.vectorClip.raccoon._x, this._y, _root.vectorClip.raccoon._y);
md.hv.metertje.afstandMeter.text = Math.round(raccoonDis / 20);
while (md.hv.metertje.afstandMeter.text.length < 4) {
md.hv.metertje.afstandMeter.text = "0" + md.hv.metertje.afstandMeter.text;
}
wijzerRotTo = 216 - ((raccoonDis / 41014) * 216);
} else {
_x = (_x + ((toX - _x) / 3));
_y = (_y + ((toY - _y) / 3));
myPos = _root.getStagePos(this);
wijzerRotTo = 0;
}
}
wijzerRot = wijzerRot + ((wijzerRotTo - wijzerRot) / 3);
md.hv.metertje.wijzer._rotation = wijzerRot;
dis = _root.getDistance(Stage.width / 2, myPos[0], Stage.height / 2, myPos[1]);
sNum = (dis / ((Stage.width / 2) + (Stage.height / 2))) * 300;
if (sNum > 200) {
sNum = 200;
}
md.steel._yscale = sNum;
rTo = _root.getRot(Stage.width / 2, myPos[0], Stage.height / 2, myPos[1]) - 90;
md.steel._rotation = rTo;
rpPos = _root.getStagePos(md.steel.rp);
if (_root.zoomLevel == 1) {
base = 1;
} else if (_root.zoomLevel == 2) {
base = 1.5;
} else {
base = _root.zoomLevel - 1;
}
md.hv._x = (rpPos[0] - myPos[0]) * Math.pow(base, 2);
md.hv._y = ((rpPos[1] - myPos[1]) * Math.pow(base, 2)) - 70;
if (beepDis == true) {
beepTime = (Math.floor(raccoonDis / 1000) * 200) + 600;
if ((getTimer() - tim) > beepTime) {
indiRot = _root.getRot(_x, _root.vectorClip.raccoon._x, _y, _root.vectorClip.raccoon._y);
indi._rotation = indiRot - 90;
indi._alpha = 100;
indi._visible = true;
indi.onTweenComplete = function () {
this._visible = false;
};
indi.alphaTo(0, 0.4, "easeInQuad");
tim = getTimer();
playAni(_root["md_beep" + atSound], 3);
atSound++;
if (atSound == 5) {
atSound = 1;
}
}
}
};
Symbol 1556 MovieClip Frame 1
kt.onPress = function () {
this.rotTo = 30;
_root.mfm.shutUp();
getURL ("javascript:pageTracker._trackPageview('/mfm/shutUp');");
};
kt.onRollOver = function () {
_root.cursor.gotoAndStop(3);
};
kt.onDragOut = (kt.onRollOut = function () {
_root.cursor.gotoAndStop(1);
});
kt.rotTo = 0;
kt.onEnterFrame = function () {
this._rotation = this._rotation + ((this.rotTo - this._rotation) / 3);
};
Symbol 1615 MovieClip [mfm] Frame 1
locktoSide = "left";
limbArray = new Array([ah.ani.mfm.kop.h1, 0, [-0.6, -6], [0.2, 0.7]], [ah.ani.mfm.kop.h2, 0, [-0.6, -6], [0.2, 0.7]], [ah.ani.mfm.kop.h3, 0, [-0.6, -6], [0.2, 0.7]], [ah.ani.mfm.kop.h4, 0, [-0.6, -6], [0.2, 0.7]], [ah.ani.mfm.kop.h5, 0, [-0.6, -6], [0.2, 0.7]], [ah.ani.mfm.kop.vg, 0, [-0.6, -6], [0.2, 0.7]], [ah.ani.mfm.kop.vg.kop, 0, [-0.6, -6], [0.2, 0.7]], [ah.ani.mfm.kop.vg.kop.bek, 0, [-0.6, -6], [0.2, 0.7]], [ah.ani.mfm.kop.vg.vr, 0, [-10, -10], [0.2, 0.9]], [ah.ani.mfm.kop.ttr, 0, [5, -5], [0.2, 0.6]], [ah.ani.mfm.kop.ttr.tong.t1, 0, [-10, 7], [0.15, 0.9]], [ah.ani.mfm.kop.ttr.tong.t1.t2, 0, [-10, -7], [0.15, 0.9]], [ah.ani.mfm.kop.ttr.tong, 0, [10, -50], [0.3, 0.9]]);
q = 0;
while (q < limbArray.length) {
limbArray[q].push([0, 0, 0, [0, 0]]);
q++;
}
allowTalk = true;
shuttedUp = false;
shutUp = function () {
shuttedUp = true;
stopCurrentAni();
hideMe();
if (_root.maxZoom == 2) {
_root.showObjective("find tooly the toolbox his tools back", "findTools");
}
if (_root.controlls == undefined) {
_root.introduceToolbox();
}
allowTalk = true;
clearInterval(ohmyInt);
_root.controlls.aniStatus = "idle";
_root.allowDragFromPage = true;
_root.atmegaFoonAni = 10;
_root.obj_dragNav.hideMe();
_root.obj_openToolbox.hideMe();
_root.TellToUseMD();
};
aniHang = function () {
if (_root.drag == true) {
_rotation = (_rotation + (_root.vx / 50));
} else {
_rotation = (_rotation + (_root.xSpeed / 50));
}
_rotation = (_rotation * 0.6);
racPos = _root.getStagePos(this);
q = 0;
while (q < limbArray.length) {
curP = _root.getStagePos(limbArray[q][0]);
curP[0] = curP[0] - racPos[0];
curP[1] = curP[1] - racPos[1];
limbArray[q][4][0] = (-limbArray[q][4][2]) + limbArray[q][1];
if (_xscale > 0) {
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[1] - limbArray[q][4][3][1]) / limbArray[q][2][1]);
limbArray[q][4][0] = limbArray[q][4][0] + ((curP[0] - limbArray[q][4][3][0]) / limbArray[q][2][0]);
limbArray[q][4][0] = limbArray[q][4][0] + (limbArray[q][0]._parent._rotation / 10);
} else {
limbArray[q][4][0] = limbArray[q][4][0] - ((curP[1] - limbArray[q][4][3][1]) / limbArray[q][2][1]);
limbArray[q][4][0] = limbArray[q][4][0] - ((curP[0] - limbArray[q][4][3][0]) / limbArray[q][2][0]);
limbArray[q][4][0] = limbArray[q][4][0] - (limbArray[q][0]._parent._rotation / 10);
}
limbArray[q][4][1] = (limbArray[q][4][0] * limbArray[q][3][0]) + (limbArray[q][4][1] * limbArray[q][3][1]);
limbArray[q][4][2] = limbArray[q][4][2] + limbArray[q][4][1];
limbArray[q][0]._rotation = limbArray[q][4][2];
if (limbArray[q][0]._rotation > 90) {
limbArray[q][0]._rotation = 90;
limbArray[q][4][2] = 90;
} else if (limbArray[q][0]._rotation < -90) {
limbArray[q][0]._rotation = -90;
limbArray[q][4][2] = -90;
}
limbArray[q][4][3] = [curP[0], curP[1]];
q++;
}
};
hideMe = function () {
playingAni = false;
ah.ySlideTo(Stage.height + 1500, 0.5, "easeInQuad");
ah.onTweenComplete = function () {
this._visible = false;
};
};
showMe = function () {
ah._visible = true;
ah.ySlideTo(-230, 0.5, "easeInQuad");
ah.onTweenComplete = null;
};
aniDone = function () {
playingAni = false;
ah.gotoAndStop(1);
_root.draggedNum = 0;
if (lastAniPlayed == _root.mfm_liketheway) {
_root.introduceToolbox();
doAni(_root.mfm_opentoolbox, 7);
} else if (lastAniPlayed == _root.mfm_hello) {
saidHello = true;
_root.showObjective("navigate the site by dragging it around", "dragNav");
} else if (lastAniPlayed == _root.mfm_opentoolbox) {
_root.showObjective("open the toolbox", "openToolbox");
} else if (lastAniPlayed == _root.mfm_boohoo) {
_root.showObjective("find tooly the toolbox his tools back", "findTools");
_root.TellToUseMD();
hideMe();
} else if (lastAniPlayed == _root.mfm_youbrokeit) {
if (_root.vectorClip.contactPage.dropStatus != "noDrop") {
_root.showObjective("pick up the textfield and place it back", "fixContact");
}
hideMe();
}
};
doOhMy = function () {
doAni(_root.mfm_ohmy, 8);
clearInterval(ohmyInt);
};
playingAni = false;
lastFrame = 1;
stopCurrentAni = function () {
_root.stopSound(this, lastAniPlayed);
hideMe();
};
resumeAni = function () {
doAni(lastAniPlayed, lastFrame);
};
saidHello = false;
doAni = function (sound, fn) {
showMe();
_visible = true;
if (sound == _root.mfm_hiTooly) {
ohmyInt = setInterval(doOhMy, 7000);
}
if (playingAni == true) {
_root.stopSound(this, lastAniPlayed);
}
ah.gotoAndStop(fn);
if (sound == _root.mfm_youbrokeit) {
ah.ani.mfm.kop.ttr.knopje._visible = false;
ah.ani.mfm.kop.ttr.onOff._visible = false;
if (_xscale > 0) {
_xscale = (-_xscale);
}
locktoSide = "right";
_x = (Stage.width - 200);
} else {
if (_xscale < 0) {
_xscale = (-_xscale);
}
locktoSide = "left";
_x = 200;
}
playingAni = true;
lastAniPlayed = sound;
lastFrame = fn;
_root.playSound(this, sound, false, [[ah.ani, ah.ani.mfm], 0, aniDone], false, false);
};
if (playAni != undefined) {
doAni(playAni[0], playAni[1]);
}
onEnterFrame = function () {
aniHang();
};