Frame 1
this.mcHolder.attachMovie("mcBackground", "mcBackground", 1, {_y:-70});
this.playGame = function () {
this.mcHolder.mcBackGround.removeMovieClip();
this.mcHolder.attachMovie("mcGame", "mcGame", 1);
};
this.showMenu = function () {
this.mcHolder.mcGame.removeMovieClip();
this.mcHolder.attachMovie("mcBackground", "mcBackground", 1, {_y:-70});
};
Symbol 3 MovieClip Frame 1
stop();
Symbol 8 MovieClip [mcBigButton] Frame 1
#initclip 51
Object.registerClass("mcBigButton", com.mediamonks.games.gamesystem.standard.ui.MenuButton);
#endinitclip
stop();
Symbol 29 MovieClip Frame 70
gotoAndPlay (30);
Symbol 42 MovieClip Frame 43
function click() {
this._parent._parent._parent.playGame();
}
stop();
this.btnPlay.addEventListener("click", this);
Symbol 54 MovieClip [mcTimeBar] Frame 1
#initclip 45
Object.registerClass("mcTimeBar", com.mediamonks.games.ado.TimeBar);
#endinitclip
stop();
Symbol 58 MovieClip [mcScoreHud] Frame 1
#initclip 46
Object.registerClass("mcScoreHud", com.mediamonks.games.ado.ScoreHud);
#endinitclip
Symbol 65 MovieClip [mcPowerMeter] Frame 1
#initclip 47
Object.registerClass("mcPowerMeter", com.mediamonks.games.ado.PowerMeter);
#endinitclip
Symbol 67 MovieClip [mcDildo] Frame 1
#initclip 48
Object.registerClass("mcDildo", com.mediamonks.games.ado.Dildo);
#endinitclip
Symbol 93 MovieClip [mcGame] Frame 1
#initclip 49
Object.registerClass("mcGame", com.mediamonks.games.ado.Game);
#endinitclip
Symbol 99 MovieClip Frame 15
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 108 MovieClip [mcKeeper] Frame 1
#initclip 50
Object.registerClass("mcKeeper", com.mediamonks.games.ado.KinkyKeeper);
#endinitclip
Symbol 111 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 112 MovieClip [__Packages.com.mediamonks.games.ado.TimeBar] Frame 0
class com.mediamonks.games.ado.TimeBar extends MovieClip
{
var intTotalTime, intTimeLeft, intInitialTime, gotoAndStop, txtTime, dispatchEvent;
function TimeBar () {
super();
mx.events.EventDispatcher.initialize(this);
intTotalTime = 30000;
intTimeLeft = 30000;
}
function start() {
intInitialTime = getTimer();
}
function update() {
intTimeLeft = intTimeLeft - (getTimer() - intInitialTime);
intInitialTime = getTimer();
if (intTimeLeft <= 0) {
timeUp();
} else {
gotoAndStop(Math.round((intTimeLeft / intTotalTime) * 100));
}
if (Math.round((intTimeLeft / intTotalTime) * 60) >= 10) {
txtTime.text = "00:" + Math.round((intTimeLeft / intTotalTime) * 30);
} else {
txtTime.text = "00:0" + Math.round((intTimeLeft / intTotalTime) * 30);
}
}
function timeUp() {
dispatchEvent({type:"timeUp", target:this});
}
var arrDelegates = new Array();
}
Symbol 113 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 114 MovieClip [__Packages.com.mediamonks.games.ado.ScoreHud] Frame 0
class com.mediamonks.games.ado.ScoreHud extends MovieClip
{
var intScore, txtScoreShade, txtScore;
function ScoreHud () {
super();
intScore = 0;
}
function start() {
}
function addScore(argScore) {
intScore = intScore + argScore;
txtScore.text = (txtScoreShade.text = "" + Math.round(intScore));
}
function get score() {
return(Math.round(intScore));
}
var arrDelegates = new Array();
}
Symbol 115 MovieClip [__Packages.com.mediamonks.games.ado.PowerMeter] Frame 0
class com.mediamonks.games.ado.PowerMeter extends MovieClip
{
var arrDelegates, twnFrame, gotoAndStop, intFrameNumber;
function PowerMeter () {
super();
arrDelegates = new Array();
arrDelegates.switchTween = mx.utils.Delegate.create(this, switchTween);
}
function start() {
twnFrame = new mx.transitions.Tween(this, "intFrameNumber", mx.transitions.easing.Regular.easeIn, 1, 100, 0.7, true);
twnFrame.onMotionFinished = arrDelegates.switchTween;
}
function update() {
gotoAndStop(Math.round(intFrameNumber));
}
function switchTween() {
if (twnFrame.__get__finish() == 100) {
twnFrame = new mx.transitions.Tween(this, "intFrameNumber", mx.transitions.easing.Regular.easeOut, 100, 1, 0.7, true);
} else {
twnFrame = new mx.transitions.Tween(this, "intFrameNumber", mx.transitions.easing.Regular.easeIn, 1, 100, 0.7, true);
}
twnFrame.onMotionFinished = arrDelegates.switchTween;
}
function shoot() {
twnFrame.stop();
return(Math.abs(intFrameNumber));
}
function unPauze() {
twnFrame.resume();
}
}
Symbol 116 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 117 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 118 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 119 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 120 MovieClip [__Packages.com.mediamonks.games.ado.Dildo] Frame 0
class com.mediamonks.games.ado.Dildo extends MovieClip
{
var x, y, z, sndPlop, sndFly, blnIsShoot, blnShot, blnZbumped, blnXbumped, blnGoUp, _rotation, _y, _x, twnY, intLastY, intSpeed, twnRotation, _visible, dispatchEvent;
function Dildo () {
super();
mx.events.EventDispatcher.initialize(this);
init();
}
function init() {
x = 0;
y = -340;
z = 500;
sndPlop = new Sound();
sndFly = new Sound();
blnIsShoot = (blnShot = (blnZbumped = (blnXbumped = false)));
blnGoUp = true;
arrDelegates.stopped = mx.utils.Delegate.create(this, stopped);
arrDelegates.fallDown = mx.utils.Delegate.create(this, fallDown);
}
function start() {
}
function update(argXmouse, argYmouse) {
if ((!blnIsShoot) && (!blnShot)) {
_rotation = (Math.atan((argXmouse - _x) / (_y - argYmouse)) * 180) / Math.PI;
var _local3 = Math.abs(_rotation);
if (_local3 < 25) {
_local3 = 25;
}
} else if (blnIsShoot) {
if (intLastY < twnY.__get__position()) {
rotate();
}
if ((z > 5000) && (((x > -3200) && (((intSpeed * Math.cos((((-_rotation) + 90) * Math.PI) / 180)) + x) < -3200)) || ((x < 3200) && (((intSpeed * Math.cos((((-_rotation) + 90) * Math.PI) / 180)) + x) > 3200)))) {
blnXbumped = !blnXbumped;
intSpeed = intSpeed * 0.3;
rotate();
}
if (!blnXbumped) {
x = x + (intSpeed * Math.cos((((-_rotation) + 90) * Math.PI) / 180));
} else {
x = x - (intSpeed * Math.cos((((-_rotation) + 90) * Math.PI) / 180));
}
if (!blnZbumped) {
z = z + (intSpeed * Math.sin((((-_rotation) + 90) * Math.PI) / 180));
} else {
z = z - (intSpeed * Math.sin((((-_rotation) + 90) * Math.PI) / 180));
}
if ((((z > 5500) && (x > -1500)) && (x < 1500)) && (!blnZbumped)) {
blnZbumped = !blnZbumped;
intSpeed = intSpeed * 0.4;
rotate();
}
intLastY = twnY.position;
}
var _local4 = 1;
if (blnZbumped) {
_local4 = -1;
}
var _local2 = new Object();
_local2.x = x;
_local2.y = y;
_local2.z = z;
_local2.direction = _local4;
return(_local2);
}
function rotate() {
var _local3 = (60 * intSpeed) / 500;
var _local4 = (Math.random() * _local3) - (_local3 / 2);
var _local2 = 90;
if (random(2) == 0) {
_local2 = _local2 * -1;
}
twnRotation.stop();
twnRotation = new mx.transitions.Tween(this, "_rotation", mx.transitions.easing.Regular.easeOut, _rotation, _local2 + _local4, 0.25, true);
}
function shoot(argSpeed) {
if (!blnIsShoot) {
sndFly.attachSound("fly");
sndFly.start();
blnIsShoot = (blnShot = true);
intSpeed = argSpeed * 6;
twnY = new mx.transitions.Tween(this, "y", mx.transitions.easing.Regular.easeOut, y, y - intSpeed, 9);
twnY.onMotionFinished = arrDelegates.fallDown;
}
}
function hit() {
_visible = false;
twnY.stop();
stopped();
sndPlop.attachSound("plop");
sndPlop.start();
}
function stop() {
twnY.stop();
twnRotation.stop();
}
function fallDown() {
twnY = new mx.transitions.Tween(this, "y", mx.transitions.easing.Bounce.easeOut, y, 0, 15);
twnY.onMotionFinished = arrDelegates.stopped;
}
function stopped() {
dispatchEvent({type:"dildoStopped", target:this});
blnIsShoot = false;
}
function get speed() {
return((intSpeed / 600) * 500);
}
var arrDelegates = new Array();
}
Symbol 121 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 122 MovieClip [__Packages.com.mediamonks.games.ado.Game] Frame 0
class com.mediamonks.games.ado.Game extends MovieClip
{
var world, intCurrentDildo, arrDelegates, attachMovie, getNextHighestDepth, mcTimeBar, mcKinkyKeeper, blnPlaying, mcPowerMeter, mcScoreHud, intInterval, _parent, _xmouse, mcHairCross, _ymouse;
function Game () {
super();
trace(("Game::Game(" + arguments.toString()) + ")");
init();
}
function init() {
world = new com.mediamonks.games.ado.World();
world.placeObject();
intCurrentDildo = 0;
arrDelegates = new Array();
arrDelegates.gameLoop = mx.utils.Delegate.create(this, gameLoop);
arrDelegates.newDildo = mx.utils.Delegate.create(this, newDildo);
arrDelegates.timeUp = mx.utils.Delegate.create(this, timeUp);
attachMovie("mcPowerMeter", "mcPowerMeter", getNextHighestDepth(), {_x:40, _y:250});
attachMovie("mcTimeBar", "mcTimeBar", getNextHighestDepth(), {_x:550, _y:65});
attachMovie("mcScoreHud", "mcScoreHud", getNextHighestDepth(), {_x:60, _y:20});
attachMovie("mcHairCross", "mcHairCross", getNextHighestDepth());
arrDildoMc[intCurrentDildo] = attachMovie("mcDildo", "mcDildo" + intCurrentDildo, getNextHighestDepth());
attachMovie("mcKeeper", "mcKinkyKeeper", getNextHighestDepth());
arrDildoMc[intCurrentDildo].addEventListener("dildoStopped", arrDelegates.newDildo);
mcTimeBar.addEventListener("timeUp", arrDelegates.timeUp);
start();
world.placeObject(mcKinkyKeeper);
world.placeObject(arrDildoMc[intCurrentDildo]);
world.renderObject(mcKinkyKeeper);
world.renderObject(arrDildoMc[intCurrentDildo]);
}
function onMouseDown() {
if (blnPlaying) {
arrDildoMc[intCurrentDildo].shoot(mcPowerMeter.shoot());
}
}
function newDildo() {
intCurrentDildo++;
arrDildoMc[intCurrentDildo] = attachMovie("mcDildo", "mcDildo" + intCurrentDildo, getNextHighestDepth());
arrDildoMc[intCurrentDildo].addEventListener("dildoStopped", arrDelegates.newDildo);
world.renderObject(arrDildoMc[intCurrentDildo]);
mcPowerMeter.unPauze();
}
function start() {
trace(("Game::start(" + arguments.toString()) + ")");
Mouse.addListener(this);
blnPlaying = true;
mcPowerMeter.start();
mcKinkyKeeper.start();
mcTimeBar.start();
mcKinkyKeeper.onEnterFrame = arrDelegates.gameLoop;
}
function timeUp() {
Mouse.show();
Mouse.removeListener(this);
blnPlaying = false;
arrDildoMc[intCurrentDildo].stop();
mcKinkyKeeper.stop();
delete mcKinkyKeeper.onEnterFrame;
com.mediamonks.core.Session.Session.score = mcScoreHud.score;
mcKinkyKeeper.mcLinks.stop();
mcKinkyKeeper.mcRechts.stop();
intInterval = setInterval(this, "showMenu", 1500);
}
function showMenu() {
clearInterval(intInterval);
_parent._parent.showMenu();
}
function gameLoop() {
world.renderObject(mcKinkyKeeper);
world.renderObject(arrDildoMc[intCurrentDildo]);
mcHairCross._x = _xmouse;
mcHairCross._y = _ymouse;
mcPowerMeter.update();
mcTimeBar.update();
var _local2 = arrDildoMc[intCurrentDildo].update(_xmouse, _ymouse);
if (mcKinkyKeeper.update(_local2)) {
mcKinkyKeeper.addScore(arrDildoMc[intCurrentDildo].speed);
mcScoreHud.addScore(arrDildoMc[intCurrentDildo].speed);
arrDildoMc[intCurrentDildo].hit();
}
}
var arrDildoMc = new Array();
}
Symbol 123 MovieClip [__Packages.com.mediamonks.games.ado.World] Frame 0
class com.mediamonks.games.ado.World
{
var origin, focalLength;
function World () {
init();
}
function init() {
origin = new Object();
origin.x = 325;
origin.y = 100;
camera.x = 0;
camera.y = -1000;
camera.z = 0;
focalLength = 320;
}
function placeObject(argObj) {
arrObjects.push(argObj);
}
function renderObject(argObj) {
var _local3 = focalLength / (focalLength + argObj.z);
argObj._x = origin.x + ((argObj.x - camera.x) * _local3);
argObj._y = origin.y + ((argObj.y - camera.y) * _local3);
argObj._xscale = (argObj._yscale = 100 * _local3);
while ((argObj._parent.getInstanceAtDepth(-argObj.z) != argObj) && (argObj._parent.getInstanceAtDepth(-argObj.z) != undefined)) {
argObj.z++;
}
argObj.swapDepths(-argObj.z);
}
function empty() {
arrObjects = new Array();
}
var arrObjects = new Array();
var camera = new Object();
}
Symbol 124 MovieClip [__Packages.com.mediamonks.games.ado.KinkyKeeper] Frame 0
class com.mediamonks.games.ado.KinkyKeeper extends MovieClip
{
var x, y, z, mcRechts, mcLinks, sndMoan, arrDelegates, twnFrame, intInterval, txtScore, txtScoreShade;
function KinkyKeeper () {
super();
x = 0;
y = 0;
z = 4500;
mcRechts._visible = false;
mcLinks._visible = true;
sndMoan = new Sound();
arrDelegates = new Array();
arrDelegates.switchTween = mx.utils.Delegate.create(this, switchTween);
}
function start() {
twnFrame = new mx.transitions.Tween(this, "x", mx.transitions.easing.None.easeNone, 0, -3000, 46);
twnFrame.onMotionFinished = arrDelegates.switchTween;
}
function update(argDildoPos) {
if ((((Math.abs(argDildoPos.z - z) < 300) && (Math.abs(argDildoPos.x - x) < 400)) && (argDildoPos.y < -200)) && (argDildoPos.direction == 1)) {
hit();
return(true);
}
return(false);
}
function hit() {
mcLinks.mcAars.gotoAndStop(2);
mcRechts.mcAars.gotoAndStop(2);
mcLinks.mcHoofd.gotoAndStop(2);
mcRechts.mcHoofd.gotoAndStop(2);
twnFrame.stop();
mcLinks.stop();
mcRechts.stop();
sndMoan.attachSound("moan" + random(7));
sndMoan.start();
intInterval = setInterval(this, "unHit", 400);
}
function unHit() {
clearInterval(intInterval);
twnFrame.resume();
mcLinks.play();
mcRechts.play();
mcLinks.mcAars.gotoAndStop(1);
mcRechts.mcAars.gotoAndStop(1);
mcLinks.mcHoofd.gotoAndStop(1);
mcRechts.mcHoofd.gotoAndStop(1);
}
function addScore(argScore) {
txtScore.text = "+ " + Math.round(argScore);
txtScoreShade.text = "+ " + Math.round(argScore);
var _local2 = new mx.transitions.Tween(txtScore, "_y", mx.transitions.easing.Strong.easeIn, -1480, -2500, 0.4, true);
var _local6 = new mx.transitions.Tween(txtScore, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 0.4, true);
var _local3 = new mx.transitions.Tween(txtScoreShade, "_y", mx.transitions.easing.Strong.easeIn, -1468, -2488, 0.4, true);
var _local4 = new mx.transitions.Tween(txtScoreShade, "_alpha", mx.transitions.easing.Strong.easeIn, 100, 0, 0.4, true);
}
function stop() {
twnFrame.stop();
mcLinks.stop();
mcRechts.stop();
}
function switchTween() {
if (twnFrame.__get__finish() == -3000) {
mcRechts._visible = true;
mcLinks._visible = false;
twnFrame = new mx.transitions.Tween(this, "x", mx.transitions.easing.None.easeNone, -3000, 3000, 93);
} else {
mcRechts._visible = false;
mcLinks._visible = true;
twnFrame = new mx.transitions.Tween(this, "x", mx.transitions.easing.None.easeNone, 3000, -3000, 93);
}
twnFrame.onMotionFinished = arrDelegates.switchTween;
}
}
Symbol 125 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 126 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 127 MovieClip [__Packages.com.mediamonks.core.Section.Section] Frame 0
class com.mediamonks.core.Section.Section
{
var strName, objManager, strLibraryType, objHistoryData, mcInstance, strLibraryFile, strLinkage, objConfig;
function Section (argName, argManager) {
strName = argName;
objManager = argManager;
strLibraryType = LIBRARY_INTERN;
objHistoryData = new Object();
}
static function get LIBRARY_INTERN() {
return("LIBRARY_INTERN");
}
static function get LIBRARY_EXTERN() {
return("LIBRARY_EXTERN");
}
function end() {
if (undefined === mcInstance.end) {
ended();
} else {
mcInstance.end();
}
}
function ended() {
if (true === blnKeepAlive) {
mcInstance._visible = false;
} else {
mcInstance.removeMovieClip();
}
manager.onSectionEnd(this, mcInstance.objHistoryData);
}
function set libraryFile(argUrl) {
strLibraryType = LIBRARY_EXTERN;
strLibraryFile = argUrl;
//return(libraryFile);
}
function set linkage(argLinkage) {
strLinkage = argLinkage;
//return(linkage);
}
function set keepAlive(argKeepAlive) {
blnKeepAlive = argKeepAlive;
//return(keepAlive);
}
function set instance(argInstance) {
mcInstance = argInstance;
//return(instance);
}
function set config(argConfig) {
objConfig = argConfig;
if (!(undefined === objConfig.url)) {
libraryFile = (argConfig.url);
}
if ("false" === objConfig.preload) {
preload = (false);
}
if (!(undefined === objConfig.linkage)) {
linkage = (argConfig.linkage);
}
if ("true" === objConfig.keepAlive) {
keepAlive = (true);
}
//return(config);
}
function set historyData(argHistoryData) {
objHistoryData = argHistoryData;
//return(historyData);
}
function set preload(argVal) {
blnPreload = argVal;
//return(preload);
}
function get preload() {
return(blnPreload);
}
function get linkage() {
return(strLinkage);
}
function get keepAlive() {
return(blnKeepAlive);
}
function get name() {
return(strName);
}
function get instance() {
return(mcInstance);
}
function get manager() {
return(objManager);
}
function get libraryType() {
return(strLibraryType);
}
function get libraryFile() {
return(strLibraryFile);
}
function get historyData() {
return(objHistoryData);
}
function get config() {
return(objConfig);
}
var blnKeepAlive = false;
var blnPreload = true;
}
Symbol 128 MovieClip [__Packages.com.mediamonks.core.mvc.Dispatcher] Frame 0
class com.mediamonks.core.mvc.Dispatcher
{
function Dispatcher () {
mx.events.EventDispatcher.initialize(this);
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
}
Symbol 129 MovieClip [__Packages.com.mediamonks.core.Section.SectionManager] Frame 0
class com.mediamonks.core.Section.SectionManager extends com.mediamonks.core.mvc.Dispatcher
{
var objSectionLoader, objInitialize, objHistoryData, dispatchEvent, objHistory, objNextSection, objSectionList;
function SectionManager (argHolder, argDefaultPath) {
super();
objSectionLoader = new com.mediamonks.core.Section.SectionLoader(this, argHolder, argDefaultPath);
objSectionLoader.addEventListener("loadStart", mx.utils.Delegate.create(this, onLoadStart));
objSectionLoader.addEventListener(com.mediamonks.events.LoadEvent.PROGRESS, mx.utils.Delegate.create(this, onLoadProgress));
objSectionLoader.addEventListener("loadInit", mx.utils.Delegate.create(this, onLoadInit));
}
function startSection(argSection) {
if (undefined == objInitialize) {
objInitialize = null;
}
history.push(argSection.__get__name(), objInitialize, objHistoryData);
objSectionLoader.load(argSection, objInitialize, objHistoryData);
dispatchEvent({type:"onStartSection", section:argSection, init:objInitialize});
}
function onLoadStart(argEvt) {
dispatchEvent(argEvt);
}
function onLoadProgress(argEvt) {
dispatchEvent(argEvt);
}
function onLoadInit(argEvt) {
dispatchEvent(argEvt);
}
function onSectionEnd(argSection, argHistoryData) {
objHistory.setHistoryData(argSection, argHistoryData);
if (argSection != history.__get__current()) {
return(undefined);
}
startSection(objNextSection);
}
function gotoSection(argSection, argInitialize, argHistoryData) {
if (undefined === argSection) {
return(undefined);
}
objHistoryData = argHistoryData;
objInitialize = argInitialize;
objNextSection = argSection;
if (history.__get__current() == undefined) {
startSection(argSection);
} else {
history.__get__current().end();
}
}
function goto(argName, argInitialize, argHistoryData) {
gotoSection(objSectionList.getSectionBy("name", argName), argInitialize, argHistoryData);
}
function next(argInitialize) {
jump(1, argInitialize);
}
function previous(argInitialize) {
jump(-1, argInitialize);
}
function jump(argDelta, argInitialize) {
gotoSection(objSectionList.getSectionByMarkerDelta(argDelta), argInitialize);
}
function toString() {
return("SectionManager");
}
function get history() {
if (undefined === objHistory) {
objHistory = new com.mediamonks.core.Section.SectionHistory(this);
}
return(objHistory);
}
function get list() {
if (undefined === objSectionList) {
objSectionList = new com.mediamonks.core.Section.SectionList(this);
}
return(objSectionList);
}
function get loader() {
return(objSectionLoader);
}
}
Symbol 130 MovieClip [__Packages.com.mediamonks.core.Section.SectionHistory] Frame 0
class com.mediamonks.core.Section.SectionHistory
{
var intMarker, arrHistory, objManager;
function SectionHistory (argManager) {
intMarker = 0;
arrHistory = new Array();
objManager = argManager;
}
function push(argSectionName, argInit, argHistoryData) {
if (arrHistory[intMarker].name == argSectionName) {
return(undefined);
}
arrHistory = arrHistory.slice(0, intMarker + 1);
arrHistory.push({name:argSectionName, init:argInit, historyData:argHistoryData});
intMarker = arrHistory.length - 1;
}
function setHistoryData(argData) {
arrHistory[intMarker].historyData = argData;
}
function getSectionByMarkerDelta(argMarkerDelta) {
return(objManager.__get__list().getSectionBy("name", arrHistory[intMarker + argMarkerDelta].name));
}
function go(argMarkerDelta) {
if (((intMarker + argMarkerDelta) >= 0) && ((intMarker + argMarkerDelta) < arrHistory.length)) {
objManager.goto(arrHistory[intMarker + argMarkerDelta].name, arrHistory[intMarker + argMarkerDelta].init, arrHistory[intMarker + argMarkerDelta].historyData);
}
}
function toString() {
var _local3 = "";
_local3 = _local3 + "HISTORY\n";
_local3 = _local3 + "===========================\n";
var _local2 = 0;
while (_local2 < arrHistory.length) {
if (_local2 == intMarker) {
_local3 = _local3 + ">>";
}
_local3 = _local3 + (((_local2 + " - ") + arrHistory[_local2].name) + newline);
_local2++;
}
_local3 = _local3 + "===========================\n";
return(_local3);
}
function next() {
go(1);
}
function back() {
go(-1);
}
function get list() {
return(arrHistory);
}
function get current() {
return(getSectionByMarkerDelta(0));
}
}
Symbol 131 MovieClip [__Packages.com.mediamonks.core.Section.SectionList] Frame 0
class com.mediamonks.core.Section.SectionList
{
var objManager, arrSections;
function SectionList (argManager) {
objManager = argManager;
arrSections = new Array();
}
function addSection(argSection) {
arrSections.push(argSection);
}
function addSectionsFromConfig(argConfig) {
argConfig.reset("section");
while (argConfig.next("section")) {
var _local2 = new com.mediamonks.core.Section.Section(argConfig.section.name, objManager);
_local2.__set__config(argConfig.section);
addSection(_local2);
}
}
function getCurrentMarker() {
var _local3 = objManager.__get__history().__get__current();
var _local2 = 0;
while (_local2 < arrSections.length) {
if (_local3 === arrSections[_local2]) {
return(_local2);
}
_local2++;
}
return(0);
}
function getSectionBy(argProperty, argValue) {
var _local2 = 0;
while (_local2 < arrSections.length) {
if (argValue === arrSections[_local2][argProperty]) {
return(arrSections[_local2]);
}
_local2++;
}
}
function getSectionByMarkerDelta(argMarkerDelta) {
var _local2 = getCurrentMarker() + argMarkerDelta;
if ((_local2 > 0) && (_local2 < arrSections.length)) {
return(arrSections[_local2]);
}
return(undefined);
}
function toString() {
var _local3 = "";
_local3 = _local3 + "SECTIONS\n";
_local3 = _local3 + "===========================\n";
var _local2 = 0;
while (_local2 < arrSections.length) {
if (_local2 == getCurrentMarker()) {
_local3 = _local3 + ">>";
}
_local3 = _local3 + (((_local2 + " - ") + arrSections[_local2].name) + newline);
_local2++;
}
_local3 = _local3 + "===========================\n";
return(_local3);
}
function get sections() {
return(arrSections);
}
}
Symbol 132 MovieClip [__Packages.com.mediamonks.core.DataStructures.Tree] Frame 0
class com.mediamonks.core.DataStructures.Tree
{
var _name, arrChildren, arrPointers, _parent;
function Tree (argName) {
if (null === argName) {
argName = "";
}
_name = argName;
arrChildren = new Array();
arrPointers = new Array();
_parent = null;
}
function addChild(argName, argChild) {
if (argChild instanceof com.mediamonks.core.DataStructures.Tree) {
argChild._parent = this;
}
if (undefined === arrChildren["__" + argName]) {
arrChildren["__" + argName] = new Array();
arrPointers["__" + argName] = 0;
this[argName] = argChild;
}
arrChildren["__" + argName].push(argChild);
}
function fixPointer(argName) {
if (this[argName] === arrChildren["__" + argName][arrPointers["__" + argName]]) {
return(undefined);
}
if (this[argName] === arrChildren["__" + argName][arrPointers["__" + argName] - 1]) {
arrPointers["__" + argName]--;
} else if (this[argName] === arrChildren["__" + argName][arrPointers["__" + argName] + 1]) {
arrPointers["__" + argName]++;
}
}
function jump(argName, argDelta) {
if (undefined === arrChildren["__" + argName]) {
return(false);
}
fixPointer();
if ((argDelta > 0) && ((arrPointers["__" + argName] + argDelta) > arrChildren["__" + argName].length)) {
return(false);
}
if ((argDelta < 0) && ((arrPointers["__" + argName] - 1) > -1)) {
return(false);
}
arrPointers["__" + argName] = arrPointers["__" + argName] + argDelta;
this[argName] = arrChildren["__" + argName][arrPointers["__" + argName]];
return(true);
}
function next(argName) {
if (undefined === arrChildren["__" + argName]) {
return(false);
}
if ((arrPointers["__" + argName] + 1) > arrChildren["__" + argName].length) {
return(false);
}
this[argName] = arrChildren["__" + argName][arrPointers["__" + argName]];
arrPointers["__" + argName]++;
return(true);
}
function previous(argName) {
if (undefined === arrChildren["__" + argName]) {
return(false);
}
if ((arrPointers["__" + argName] - 1) > -1) {
return(false);
}
this[argName] = arrChildren["__" + argName][arrPointers["__" + argName]];
arrPointers["__" + argName]--;
return(true);
}
function count(argName) {
if (argName == undefined) {
var _local2 = 0;
for (var _local3 in arrChildren) {
_local2++;
}
return(_local2);
}
if (undefined === arrChildren["__" + argName]) {
return(0);
}
return(arrChildren["__" + argName].length);
}
function find(argName, argPropertyName, argPropertyValue, argDirection) {
if (undefined === arrChildren["__" + argName]) {
return(false);
}
var _local7 = arrPointers["__" + argName];
var _local4 = argPropertyName.split(".");
while (next(argName)) {
var _local3 = this[argName];
var _local2 = 0;
while (_local2 < _local4.length) {
_local3 = _local3[_local4[_local2]];
if (null == _local3) {
}
_local2++;
}
if (_local3 === argPropertyValue) {
return(true);
}
}
arrPointers["__" + argName] = _local7;
this[argName] = arrChildren["__" + argName][arrPointers["__" + argName]];
return(false);
}
function reset(argName) {
return(first(argName));
}
function last(argName) {
if (undefined === arrChildren["__" + argName]) {
return(false);
}
arrPointers["__" + argName] = arrChildren["__" + argName].length - 1;
this[argName] = arrChildren["__" + argName][arrPointers["__" + argName]];
return(true);
}
function first(argName) {
if (undefined === arrChildren["__" + argName]) {
return(false);
}
arrPointers["__" + argName] = 0;
this[argName] = arrChildren["__" + argName][arrPointers["__" + argName]];
return(true);
}
function toString() {
var _local2 = this;
var _local3 = new Array();
while (_local2._parent != null) {
_local3.unshift(_local2._name);
_local2 = _local2._parent;
}
return(_local3.join("."));
}
function dump(argIndentCount, argIndent) {
if (null == argIndentCount) {
argIndentCount = 0;
}
if (null == argIndent) {
argIndent = " ";
}
var _local5 = "";
var _local7 = "";
var _local3 = 1;
while (_local3 <= argIndentCount) {
_local7 = _local7 + argIndent;
_local3++;
}
if (_name != null) {
_local5 = _local5 + ((((_local7 + argIndentCount) + " ") + _name) + newline);
}
var _local8 = properties;
_local3 = 0;
while (_local3 < _local8.length) {
var _local2 = _local8[_local3];
if (this[_local2] instanceof com.mediamonks.core.DataStructures.Tree) {
_local5 = _local5 + this[_local2].dump(argIndentCount + 1, argIndent);
} else {
_local5 = _local5 + (((((((((_local7 + "") + argIndent) + "- ") + _local2) + ": (") + typeof(this[_local2])) + ") ") + this[_local2].toString()) + newline);
}
_local3++;
}
return(_local5);
}
function walk(argFunction) {
for (var _local4 in arrChildren) {
var _local2 = 0;
while (_local2 < arrChildren[_local4].length) {
if (arrChildren[_local4][_local2] instanceof com.mediamonks.core.DataStructures.Tree) {
arrChildren[_local4][_local2].walk(argFunction);
} else {
arrChildren[_local4][_local2] = argFunction(arrChildren[_local4][_local2]);
}
_local2++;
}
}
reassignProperties();
}
function reassignProperties() {
var _local3 = properties;
var _local2 = 0;
while (_local2 < _local3.length) {
this[_local3[_local2]] = arrChildren["__" + _local3[_local2]][arrPointers["__" + _local3[_local2]]];
_local2++;
}
}
function get properties() {
var _local2 = new Array();
for (var _local3 in this) {
switch (_local3) {
case "_parent" :
case "_name" :
case "arrPointers" :
case "arrChildren" :
continue;//outer level
}
_local2.push(_local3);
}
return(_local2);
}
}
Symbol 133 MovieClip [__Packages.com.mediamonks.core.mvc.Model] Frame 0
class com.mediamonks.core.mvc.Model extends com.mediamonks.core.mvc.Dispatcher
{
var dispatchEvent;
function Model () {
super();
}
function getInfo() {
var _local1 = new Object();
return(_local1);
}
function onUpdate(argType) {
if (argType == null) {
argType = "onUpdate";
}
var _local2 = info;
_local2.type = argType;
dispatchEvent(_local2);
}
function get info() {
return(getInfo());
}
}
Symbol 134 MovieClip [__Packages.com.mediamonks.core.Section.SectionLoader] Frame 0
class com.mediamonks.core.Section.SectionLoader extends com.mediamonks.core.mvc.Model
{
var mcHolder, objManager, strDefaultPath, arrDelegates, arrSectionsToLoad, objSectionToLoad, objInitialize, dispatchEvent, strStatus;
function SectionLoader (argManager, argHolder, argDefaultPath) {
super();
mcHolder = argHolder;
objManager = argManager;
strDefaultPath = argDefaultPath;
status = (READY);
arrDelegates = new Array();
arrDelegates.onLoadStart = mx.utils.Delegate.create(this, onLoadStart);
arrDelegates.onLoadProgress = mx.utils.Delegate.create(this, onLoadProgress);
arrDelegates.onLoadComplete = mx.utils.Delegate.create(this, onLoadComplete);
}
static function get LOADING() {
return("LOADING");
}
static function get LOADED() {
return("LOADED");
}
static function get READY() {
return("READY");
}
function preloadExternalLibraries(argLoadManager) {
var _local7;
if (undefined == argLoadManager) {
_local7 = new com.mediamonks.core.LoadManager.LoadManager();
} else {
_local7 = argLoadManager;
}
var _local6 = objManager.__get__list().__get__sections();
arrSectionsToLoad = new Array();
var _local5 = 0;
while (_local5 < _local6.length) {
var _local2 = _local6[_local5];
if ((com.mediamonks.core.Section.Section.__get__LIBRARY_EXTERN() === _local2.__get__libraryType()) && (!(false === _local2.__get__preload()))) {
var _local3 = com.mediamonks.core.LoadManager.ExternalFile.getInstance(strDefaultPath + _local2.__get__libraryFile());
if (com.mediamonks.core.LoadManager.LoadInfo.NOT_LOADED === _local3.__get__loader().__get__info().__get__status()) {
var _local4 = com.meychi.ascrypt.MD5.calculate(strDefaultPath + _local2.__get__libraryFile());
if (undefined === mcHolder[_local4]) {
mcHolder.createEmptyMovieClip(_local4, mcHolder.getNextHighestDepth());
}
_local3.__get__loader().__set__target(mcHolder[_local4]);
arrSectionsToLoad.push(_local2.__get__name());
_local7.addExternalFile(_local3);
}
}
_local5++;
}
if (undefined == argLoadManager) {
_local7.start();
}
}
function load(argSection, argInitialize) {
if (!(READY === status)) {
return(undefined);
}
status = (LOADING);
objSectionToLoad = argSection;
objInitialize = argInitialize;
if ((true === objSectionToLoad.__get__keepAlive()) && (!(undefined === objSectionToLoad.__get__instance()))) {
objSectionToLoad.__get__instance()._visible = true;
objSectionToLoad.__get__instance().objInit = objInitialize;
status = (LOADED);
ready();
} else if (objSectionToLoad.__get__libraryType() === com.mediamonks.core.Section.Section.__get__LIBRARY_INTERN()) {
objSectionToLoad.__set__instance(mcHolder.attachMovie(objSectionToLoad.__get__linkage(), objSectionToLoad.__get__name(), mcHolder.getNextHighestDepth(), {objSection:objSectionToLoad, objInit:objInitialize}));
ready();
} else {
var _local3 = com.meychi.ascrypt.MD5.calculate(strDefaultPath + objSectionToLoad.__get__libraryFile());
mcHolder[_local3].removeMovieClip();
if (undefined === mcHolder[_local3]) {
mcHolder.createEmptyMovieClip(_local3, mcHolder.getNextHighestDepth());
for (var _local4 in mcHolder) {
trace(mcHolder[_local4]);
}
}
var _local2 = com.mediamonks.core.LoadManager.ExternalFile.getInstance(strDefaultPath + objSectionToLoad.__get__libraryFile());
_local2.__get__loader().__set__target(mcHolder[_local3]);
_local2.__get__loader().__get__info().addEventListener("onLoadStart", arrDelegates.onLoadStart);
_local2.__get__loader().__get__info().addEventListener("onLoadProgress", arrDelegates.onLoadProgress);
_local2.__get__loader().__get__info().addEventListener("onLoadComplete", arrDelegates.onLoadComplete);
_local2.__get__loader().load();
}
}
function onLoadStart(argEvt) {
dispatchEvent(argEvt);
}
function onLoadProgress(argEvt) {
dispatchEvent(argEvt);
}
function onLoadComplete(argEvent) {
trace(("SectionFromLibraryItem::onLoadComplete(" + arguments.toString()) + ")");
var _local4 = com.meychi.ascrypt.MD5.calculate(strDefaultPath + objSectionToLoad.__get__libraryFile());
argEvent.target.removeEventListener("onLoadComplete", arrDelegates.onLoadComplete);
argEvent.target.removeEventListener("onLoadStart", arrDelegates.onLoadStart);
argEvent.target.removeEventListener("onLoadProgress", arrDelegates.onLoadProgress);
objSectionToLoad.__get__instance().removeMovieClip();
objSectionToLoad.__set__instance(mcHolder[_local4].attachMovie(objSectionToLoad.__get__linkage(), objSectionToLoad.__get__name(), 1, {objSection:objSectionToLoad, objInit:objInitialize}));
ready();
dispatchEvent(argEvent);
}
function ready() {
status = (LOADED);
status = (READY);
}
function set status(argStatus) {
if (strStatus === argStatus) {
return;
}
strStatus = argStatus;
switch (strStatus) {
case LOADING :
break;
case LOADED :
break;
case READY :
}
//return(status);
}
function get status() {
return(strStatus);
}
function get sectionsToLoad() {
return(arrSectionsToLoad);
}
}
Symbol 135 MovieClip [__Packages.com.mediamonks.core.LoadManager.LoadManager] Frame 0
class com.mediamonks.core.LoadManager.LoadManager extends com.mediamonks.core.mvc.Model
{
var arrLoadQueue, arrDelegates, strStatus, onUpdate, objCurrentFile;
function LoadManager () {
super();
arrLoadQueue = new Array();
arrDelegates = new Array();
arrDelegates.onLoadComplete = mx.utils.Delegate.create(this, onLoadComplete);
arrDelegates.onLoadError = mx.utils.Delegate.create(this, onLoadError);
arrDelegates.onLoadProgress = mx.utils.Delegate.create(this, onLoadProgress);
arrDelegates.onLoadStart = mx.utils.Delegate.create(this, onLoadStart);
strStatus = READY;
}
function addExternalFile(argExternalFile) {
arrLoadQueue.push(argExternalFile);
onUpdate();
}
function addUrl(strUrl) {
var _local2 = com.mediamonks.core.LoadManager.ExternalFile.getInstance(strUrl);
addExternalFile(_local2);
}
function start() {
if (arrLoadQueue.length == 0) {
strStatus = READY;
onUpdate();
onUpdate("onLoadComplete");
return(undefined);
}
if (true === blnStop) {
blnStop = false;
strStatus = STOPPED;
onUpdate();
return(undefined);
}
if (!(LOADING === strStatus)) {
strStatus = STARTED;
}
objCurrentFile = com.mediamonks.core.LoadManager.ExternalFile(arrLoadQueue.shift());
if (com.mediamonks.core.LoadManager.LoadInfo.LOADED === objCurrentFile.__get__loader().__get__info().__get__status()) {
start();
} else {
onUpdate();
addListenersTo(objCurrentFile.__get__loader().__get__info());
objCurrentFile.__get__loader().load();
}
}
function stop() {
blnStop = true;
}
function clear() {
arrLoadQueue = new Array();
}
function onLoadStart(argEvent) {
onUpdate("onItemStart");
if (!(LOADING === strStatus)) {
strStatus = LOADING;
onUpdate();
}
}
function onLoadComplete(argEvent) {
onUpdate("onItemComplete");
removeListenersFrom(argEvent.target);
start();
}
function onLoadProgress(argEvent) {
onUpdate("onItemProgress");
onUpdate();
}
function onLoadError(argEvent) {
removeListenersFrom(argEvent.target);
onUpdate("onItemError");
start();
}
function addListenersTo(argLoader) {
argLoader.addEventListener("onLoadStart", arrDelegates.onLoadStart);
argLoader.addEventListener("onLoadProgress", arrDelegates.onLoadProgress);
argLoader.addEventListener("onLoadComplete", arrDelegates.onLoadComplete);
argLoader.addEventListener("onLoadError", arrDelegates.onLoadError);
}
function removeListenersFrom(argLoader) {
argLoader.removeEventListener("onLoadStart", arrDelegates.onLoadStart);
argLoader.removeEventListener("onLoadProgress", arrDelegates.onLoadProgress);
argLoader.removeEventListener("onLoadComplete", arrDelegates.onLoadComplete);
argLoader.removeEventListener("onLoadError", arrDelegates.onLoadError);
}
function get queue() {
return(arrLoadQueue);
}
function get status() {
return(strStatus);
}
function get currentFile() {
return(objCurrentFile);
}
function toString() {
return("LoadManager");
}
function get info() {
var _local3 = new Object();
_local3.queue = queue;
_local3.status = status;
if (!(undefined === objCurrentFile)) {
_local3.file = currentFile;
_local3.loadInfo = currentFile.__get__loader().__get__info().info;
}
_local3.toString = function () {
var _local4 = "LoadInfo:\n";
var _local2 = new Array();
for (var _local3 in this) {
if (_local3 != "toString") {
_local2.push((("\t" + _local3) + " : ") + this[_local3]);
}
}
_local4 = _local4 + _local2.join(newline);
return(_local4);
};
return(_local3);
}
static function get READY() {
return("READY");
}
static function get STOPPED() {
return("STOPPED");
}
static function get STARTED() {
return("STARTED");
}
static function get LOADING() {
return("LOADING");
}
var blnStop = false;
}
Symbol 136 MovieClip [__Packages.com.mediamonks.core.LoadManager.ExternalFile] Frame 0
class com.mediamonks.core.LoadManager.ExternalFile
{
static var arrInstances;
var strUrl, strFileType, objLoader;
function ExternalFile (argUrl, argType) {
strUrl = argUrl;
strFileType = ((undefined === argType) ? (strUrl.substr(strUrl.lastIndexOf(".") + 1).toLowerCase()) : (argType));
}
static function getInstance(argUrl, argType) {
if (undefined === arrInstances) {
arrInstances = new Array();
}
if (undefined === arrInstances[argUrl]) {
arrInstances[argUrl] = new com.mediamonks.core.LoadManager.ExternalFile(argUrl, argType);
}
return(arrInstances[argUrl]);
}
function get loader() {
if (undefined === objLoader) {
switch (strFileType) {
case com.mediamonks.core.LoadManager.FileType.__get__XML() :
objLoader = new com.mediamonks.core.LoadManager.loaders.LoaderXml(this);
break;
case com.mediamonks.core.LoadManager.FileType.__get__JPG() :
case com.mediamonks.core.LoadManager.FileType.__get__PNG() :
case com.mediamonks.core.LoadManager.FileType.__get__GIF() :
case com.mediamonks.core.LoadManager.FileType.__get__SWF() :
objLoader = new com.mediamonks.core.LoadManager.loaders.LoaderMovieClip(this);
break;
case com.mediamonks.core.LoadManager.FileType.__get__MP3() :
objLoader = new com.mediamonks.core.LoadManager.loaders.LoaderSound(this);
break;
}
}
return(objLoader);
}
function toString() {
return(("ExternalFile[" + strUrl) + "]");
}
function get type() {
return(strFileType);
}
function get url() {
return(strUrl);
}
}
Symbol 137 MovieClip [__Packages.com.mediamonks.core.LoadManager.loaders.AbstractLoader] Frame 0
class com.mediamonks.core.LoadManager.loaders.AbstractLoader extends com.mediamonks.core.mvc.Dispatcher
{
var objFile, objLoadInfo;
function AbstractLoader (argExternalFile) {
super();
objFile = argExternalFile;
objLoadInfo = new com.mediamonks.core.LoadManager.LoadInfo(argExternalFile);
}
function load() {
return(false);
}
function get file() {
return(objFile);
}
function get info() {
return(objLoadInfo);
}
function set target(argObject) {
//return(target);
}
function get target() {
return(new Object());
}
}
Symbol 138 MovieClip [__Packages.com.mediamonks.core.LoadManager.LoadInfo] Frame 0
class com.mediamonks.core.LoadManager.LoadInfo extends com.mediamonks.core.mvc.Model
{
var strStatus, objFile, onUpdate;
function LoadInfo (argExternalFile) {
super();
strStatus = NOT_LOADED;
objFile = argExternalFile;
}
function reset() {
intLoaded = 0;
intTotal = 0;
}
function set status(argStatus) {
if (strStatus === argStatus) {
return;
}
strStatus = argStatus;
switch (strStatus) {
case LOADING :
intTimeStart = getTimer();
onUpdate("onLoadStart");
break;
case LOADED :
intTimeEnd = getTimer();
onUpdate("onLoadComplete");
break;
case LOAD_ERROR :
intTimeEnd = getTimer();
onUpdate("onLoadError");
}
onUpdate();
//return(status);
}
function set loaded(argLoaded) {
if ((undefined === argLoaded) || (intLoaded === argLoaded)) {
return;
}
intLoaded = argLoaded;
if (!(0 === intLoaded)) {
var _local2 = getTimer() - intTimeStart;
if (!(0 === _local2)) {
intSpeed = intLoaded / _local2;
}
}
onUpdate("onLoadProgress");
onUpdate();
//return(loaded);
}
function set total(argTotal) {
if ((undefined === argTotal) || (intTotal === argTotal)) {
return;
}
intTotal = argTotal;
onUpdate("onLoadProgress");
onUpdate();
//return(total);
}
function get status() {
return(strStatus);
}
function get percentage() {
if (intTotal === 0) {
return(0);
}
return(Math.round((intLoaded / intTotal) * 100));
}
function get loaded() {
return(intLoaded);
}
function get time() {
if (LOADING == strStatus) {
return(getTimer() - intTimeStart);
}
return(intTimeEnd - intTimeStart);
}
function get speed() {
return(Math.round(intSpeed * 10) / 10);
}
function get total() {
return(intTotal);
}
function get file() {
return(objFile);
}
function get info() {
var _local2 = new Object();
_local2.status = status;
_local2.percentage = percentage;
_local2.loaded = loaded;
_local2.total = total;
_local2.file = file;
_local2.time = time;
_local2.speed = speed;
return(_local2);
}
static var LOADING = "LOADING";
static var LOADED = "LOADED";
static var NOT_LOADED = "NOT_LOADED";
static var LOAD_ERROR = "LOAD_ERROR";
var intLoaded = 0;
var intTotal = 0;
var intTimeStart = 0;
var intTimeEnd = 0;
var intSpeed = 0;
}
Symbol 139 MovieClip [__Packages.com.mediamonks.core.LoadManager.FileType] Frame 0
class com.mediamonks.core.LoadManager.FileType
{
function FileType () {
}
static function get SWF() {
return("swf");
}
static function get JPG() {
return("jpg");
}
static function get GIF() {
return("gif");
}
static function get PNG() {
return("png");
}
static function get XML() {
return("xml");
}
static function get MP3() {
return("mp3");
}
static function get FLV() {
return("flv");
}
}
Symbol 140 MovieClip [__Packages.com.mediamonks.core.LoadManager.loaders.LoaderXml] Frame 0
class com.mediamonks.core.LoadManager.loaders.LoaderXml extends com.mediamonks.core.LoadManager.loaders.AbstractLoader
{
var objXml, objLoadInfo, blnUserTemporaryTarget, objFile;
function LoaderXml (argExternalFile) {
super(argExternalFile);
objXml.onLoad = mx.utils.Delegate.create(this, onLoad);
}
function load(argTarget) {
if (com.mediamonks.core.LoadManager.LoadInfo.LOADING === objLoadInfo.__get__status()) {
return(false);
}
if ((undefined === argTarget) && (undefined === objXml)) {
blnUserTemporaryTarget = true;
objXml = new XML();
} else if (!(undefined === argTarget)) {
blnUserTemporaryTarget = false;
objXml = argTarget;
}
objXml.ignoreWhite = true;
objXml.onLoad = mx.utils.Delegate.create(this, onLoad);
clearInterval(intIntervalID);
intIntervalID = setInterval(this, "onLoadProgress", 30);
objLoadInfo.__set__status(com.mediamonks.core.LoadManager.LoadInfo.LOADING);
objXml.load(objFile.__get__url());
return(true);
}
function onLoad(argSucces) {
clearInterval(intIntervalID);
if (argSucces) {
onLoadProgress();
objLoadInfo.__set__status(com.mediamonks.core.LoadManager.LoadInfo.LOADED);
} else {
objLoadInfo.__set__status(com.mediamonks.core.LoadManager.LoadInfo.LOAD_ERROR);
}
if (blnUserTemporaryTarget) {
delete objXml;
}
}
function onLoadProgress() {
objLoadInfo.__set__loaded(objXml.getBytesLoaded());
objLoadInfo.__set__total(objXml.getBytesTotal());
}
function set target(argXML) {
if (com.mediamonks.core.LoadManager.LoadInfo.LOADING === objLoadInfo.__get__status()) {
return;
}
objXml = argXML;
//return(target);
}
function get target() {
return(objXml);
}
var intIntervalID = -1;
}
Symbol 141 MovieClip [__Packages.com.mediamonks.core.LoadManager.loaders.LoaderMovieClip] Frame 0
class com.mediamonks.core.LoadManager.loaders.LoaderMovieClip extends com.mediamonks.core.LoadManager.loaders.AbstractLoader
{
var objMovieClipLoader, objLoadInfo, mcTarget, blnUserTemporaryTarget, objFile, dispatchEvent;
function LoaderMovieClip (argExternalFile) {
super(argExternalFile);
objMovieClipLoader = new MovieClipLoader();
objMovieClipLoader.addListener(this);
}
function load(argTarget) {
if (com.mediamonks.core.LoadManager.LoadInfo.LOADING === objLoadInfo.__get__status()) {
return(false);
}
if ((undefined === argTarget) && (undefined === mcTarget)) {
blnUserTemporaryTarget = true;
mcTarget = _root.createEmptyMovieClip("_movieClip", -99999);
} else if (!(undefined === argTarget)) {
blnUserTemporaryTarget = false;
mcTarget = argTarget;
}
objMovieClipLoader.loadClip(objFile.__get__url(), mcTarget);
return(true);
}
function onLoadComplete() {
}
function onLoadInit() {
if (blnUserTemporaryTarget) {
mcTarget.removeMovieClip();
mcTarget.unloadMovie();
delete mcTarget;
}
objLoadInfo.__set__status(com.mediamonks.core.LoadManager.LoadInfo.LOADED);
dispatchEvent({type:"loadInit"});
}
function onLoadError() {
objLoadInfo.__set__status(com.mediamonks.core.LoadManager.LoadInfo.LOAD_ERROR);
}
function onLoadProgress(argTarget, argLoadedBytes, argTotalBytes) {
objLoadInfo.__set__loaded(argLoadedBytes);
objLoadInfo.__set__total(argTotalBytes);
}
function onLoadStart() {
objLoadInfo.__set__status(com.mediamonks.core.LoadManager.LoadInfo.LOADING);
}
function set target(argTarget) {
if (com.mediamonks.core.LoadManager.LoadInfo.LOADING === objLoadInfo.__get__status()) {
return;
}
mcTarget = argTarget;
//return(target);
}
function get target() {
return(mcTarget);
}
}
Symbol 142 MovieClip [__Packages.com.mediamonks.core.LoadManager.loaders.LoaderSound] Frame 0
class com.mediamonks.core.LoadManager.loaders.LoaderSound extends com.mediamonks.core.LoadManager.loaders.AbstractLoader
{
var objLoadInfo, objSound, blnUserTemporaryTarget, objFile, dispatchEvent;
function LoaderSound (argExternalFile) {
super(argExternalFile);
}
function load(argTarget) {
if (com.mediamonks.core.LoadManager.LoadInfo.LOADING === objLoadInfo.__get__status()) {
return(false);
}
if ((undefined === argTarget) && (undefined === objSound)) {
blnUserTemporaryTarget = true;
objSound = new Sound();
} else if (!(undefined === argTarget)) {
blnUserTemporaryTarget = false;
objSound = argTarget;
}
objSound.onLoad = mx.utils.Delegate.create(this, onLoad);
clearInterval(intIntervalID);
intIntervalID = setInterval(this, "onLoadProgress", 30);
objLoadInfo.__set__status(com.mediamonks.core.LoadManager.LoadInfo.LOADING);
objSound.loadSound(objFile.__get__url());
dispatchEvent({type:"onLoadStart"});
return(true);
}
function onLoad(argSucces) {
clearInterval(intIntervalID);
if (argSucces) {
onLoadProgress();
objLoadInfo.__set__status(com.mediamonks.core.LoadManager.LoadInfo.LOADED);
} else {
objLoadInfo.__set__status(com.mediamonks.core.LoadManager.LoadInfo.LOAD_ERROR);
}
if (blnUserTemporaryTarget) {
delete objSound;
}
}
function onLoadProgress() {
objLoadInfo.__set__loaded(objSound.getBytesLoaded());
objLoadInfo.__set__total(objSound.getBytesTotal());
}
function set target(argTarget) {
if (com.mediamonks.core.LoadManager.LoadInfo.LOADING === objLoadInfo.__get__status()) {
return;
}
objSound = argTarget;
//return(target);
}
function get target() {
return(objSound);
}
var intIntervalID = -1;
}
Symbol 143 MovieClip [__Packages.com.meychi.ascrypt.MD5] Frame 0
class com.meychi.ascrypt.MD5
{
function MD5 () {
}
static function calculate(src) {
return(hex_md5(src));
}
static function hex_md5(src) {
return(binl2hex(core_md5(str2binl(src), src.length * 8)));
}
static function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(new Array(_local4, _local3, _local2, _local1));
}
static function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
static function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
static function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
static function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function str2binl(str) {
var _local3 = new Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function binl2hex(binarray) {
var _local4 = new String("");
var _local3 = new String("0123456789abcdef");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
}
Symbol 144 MovieClip [__Packages.com.mediamonks.events.Event] Frame 0
class com.mediamonks.events.Event
{
var type, target;
function Event (argType, argTarget) {
type = argType;
target = argTarget;
}
function toString() {
var _local4 = "Event:\n";
var _local2 = new Array();
for (var _local3 in this) {
if (_local3 != "toString") {
_local2.push((("\t" + _local3) + " : ") + this[_local3]);
}
}
_local4 = _local4 + _local2.join(newline);
return(_local4);
}
}
Symbol 145 MovieClip [__Packages.com.mediamonks.events.LoadEvent] Frame 0
class com.mediamonks.events.LoadEvent extends com.mediamonks.events.Event
{
var loaded, total, ratio;
function LoadEvent (argType, argLoaded, argTotal, argRatio, argTarget) {
super(argType, argTarget);
loaded = argLoaded;
total = argTotal;
ratio = argRatio;
}
static var PROGRESS = "onProgress";
}
Symbol 146 MovieClip [__Packages.com.mediamonks.core.Session.Session] Frame 0
class com.mediamonks.core.Session.Session
{
function Session () {
trace(("Session::Session(" + arguments.toString()) + ")");
}
}
Symbol 147 MovieClip [__Packages.com.mediamonks.games.gamesystem.standard.ui.MenuButton] Frame 0
class com.mediamonks.games.gamesystem.standard.ui.MenuButton extends MovieClip
{
var arrDelegates, mcBackground, txtLabel, __get__text;
function MenuButton () {
super();
trace(("MenuButton::MenuButton(" + arguments.toString()) + ")");
mx.events.EventDispatcher.initialize(this);
arrDelegates = new Array();
arrDelegates.onTextChange = mx.utils.Delegate.create(this, onTextChange);
}
function buttonAnimation(argDirection) {
mcBackground.onEnterFrame = function () {
this.gotoAndStop(this._currentframe + argDirection);
if ((this._currentframe == 1) || (this._currentframe == this._totalframes)) {
delete this.onEnterFrame;
}
};
}
function onRelease() {
dispatchEvent({type:"click"});
}
function onRollOver() {
buttonAnimation(1);
}
function onRollOut() {
buttonAnimation(-1);
}
function setupDispatcher(argDispatcher, argProperty) {
argDispatcher.add(txtLabel, argProperty, mx.utils.Delegate.create(this, onTextChange));
}
function onTextChange() {
txtLabel.htmlText = txtLabel.htmlText.toUpperCase();
var _local2 = txtLabel.textWidth;
mcBackground._width = _local2 + 51;
dispatchEvent({type:"onTextChange"});
}
function set text(argText) {
if (argText != txtLabel.htmlText) {
txtLabel.htmlText = argText;
onTextChange();
}
//return(__get__text());
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
}
Symbol 148 MovieClip [__Packages.com.mediamonks.core.LanguageManager.dispatchers.AbstractLanguageDispatcher] Frame 0
class com.mediamonks.core.LanguageManager.dispatchers.AbstractLanguageDispatcher extends com.mediamonks.core.mvc.Dispatcher
{
var objManager, strLanguage;
function AbstractLanguageDispatcher () {
super();
objManager = com.mediamonks.core.LanguageManager.LanguageManager.getInstance();
objManager.addEventListener("onUpdate", mx.utils.Delegate.create(this, onLanguageChange));
}
function onLanguageChange(argEvent) {
strLanguage = argEvent.language;
update();
}
function update() {
}
function toString() {
return("LanguageDispatcher");
}
}
Symbol 149 MovieClip [__Packages.com.mediamonks.core.LanguageManager.LanguageManager] Frame 0
class com.mediamonks.core.LanguageManager.LanguageManager extends com.mediamonks.core.mvc.Model
{
static var objInstance;
var arrLanguageFiles, arrDispatchers, strLanguage, strDefaultLanguage, arrAvailableLanguages, onUpdate;
function LanguageManager () {
super();
arrLanguageFiles = new Array();
arrDispatchers = new Array();
}
function getInfo() {
var _local2 = new Object();
_local2.language = strLanguage;
return(_local2);
}
function configurate(argConfig) {
strDefaultLanguage = argConfig.default;
arrAvailableLanguages = new Array();
while (argConfig.available.next("language")) {
arrAvailableLanguages.push(argConfig.available.language);
}
while (argConfig.files.next("file")) {
arrLanguageFiles[argConfig.files.file.id] = argConfig.files.file.url;
}
if (undefined == strLanguage) {
language = (strDefaultLanguage);
}
}
function preloadLanguageFiles(argLoadManager, argLoadAll) {
if (0 === arrLanguageFiles.length) {
onUpdate();
return(undefined);
}
var _local4 = new Array();
if (true == argLoadAll) {
_local4 = arrAvailableLanguages;
} else {
_local4.push(strLanguage);
}
var _local5 = ((undefined == argLoadManager) ? (new com.mediamonks.core.LoadManager.LoadManager()) : (argLoadManager));
var _local3 = 0;
while (_local3 < _local4.length) {
for (var _local6 in arrLanguageFiles) {
var _local2 = arrLanguageFiles[_local6].split("{lang}").join(_local4[_local3]);
_local5.addUrl(_local2);
}
_local3++;
}
_local5.addEventListener("onLoadComplete", mx.utils.Delegate.create(this, onPreloadComplete));
if (undefined == argLoadManager) {
_local5.start();
}
}
function onPreloadComplete() {
onUpdate();
}
static function getInstance() {
if (undefined == objInstance) {
objInstance = new com.mediamonks.core.LanguageManager.LanguageManager();
}
return(objInstance);
}
function addDispatcher(argName, argDispatcher) {
trace(("LanguageManager::addDispatcher(" + arguments.toString()) + ")");
arrDispatchers[argName] = argDispatcher;
}
function addFile(argId, argFile) {
arrLanguageFiles[argId] = argFile;
}
function get dispatchers() {
return(arrDispatchers);
}
function get files() {
return(arrLanguageFiles);
}
function get language() {
return(strLanguage);
}
function switchTo(argLanguage) {
trace(("LanguageManager::switchTo(" + arguments.toString()) + ")");
if ((undefined != argLanguage) && ("" != argLanguage)) {
language = (argLanguage);
}
}
function set language(argLanguage) {
if ((!(undefined === argLanguage)) && (!("" === argLanguage))) {
strLanguage = argLanguage;
preloadLanguageFiles();
}
//return(language);
}
}
Symbol 150 MovieClip [__Packages.com.mediamonks.core.LanguageManager.dispatchers.LanguageDispatcherProperty] Frame 0
class com.mediamonks.core.LanguageManager.dispatchers.LanguageDispatcherProperty extends com.mediamonks.core.LanguageManager.dispatchers.AbstractLanguageDispatcher
{
var arrLanguageObjects, strLanguageFilePath, objManager, strLanguage, dispatchEvent;
function LanguageDispatcherProperty (argFileId) {
super();
arrLanguageObjects = new Array();
strLanguageFilePath = objManager.__get__files()[argFileId];
onLanguageChange({language:objManager.__get__language()});
}
function onLanguageChange(argEvent) {
strLanguage = argEvent.language;
if (arrLanguageObjects[strLanguage] == undefined) {
var _local4 = strLanguageFilePath.split("{lang}").join(strLanguage);
var _local3 = new com.mediamonks.core.DataAbstraction.XmlToTree();
var _local2 = new com.mediamonks.core.DataAbstraction.XmlReader(_local4, mx.utils.Delegate.create(_local3, _local3.convert));
_local2.addEventListener("onLoad", mx.utils.Delegate.create(this, onXmlLoaded));
_local2.addEventListener("onError", mx.utils.Delegate.create(this, onXmlError));
_local2.startLoad();
} else {
update();
}
}
function get data() {
return(arrLanguageObjects[strLanguage]);
}
function update() {
dispatchEvent({type:"onUpdate", data:arrLanguageObjects[strLanguage]});
}
function onXmlLoaded(argEvent) {
var _local2 = strLanguageFilePath.split("{lang}").join(strLanguage);
if (_local2 == argEvent.xmlFile) {
arrLanguageObjects[strLanguage] = argEvent.xmlData;
update();
}
}
function onXmlError(argEvent) {
}
function getProperty(argPropertyPath) {
var _local8 = arrLanguageObjects[strLanguage];
var _local7 = argPropertyPath.split(".");
var _local4 = _local8;
var _local3 = 0;
while (_local3 < _local7.length) {
var _local2 = _local7[_local3];
if (_local2.indexOf("(") != -1) {
var _local5 = _local2.substring(_local2.indexOf("(") + 1, _local2.indexOf(")")).split(" ").join("");
_local2 = _local2.substr(0, _local2.indexOf("("));
com.mediamonks.core.DataStructures.Tree(_local4).reset(_local2);
if (_local5.indexOf("==") != -1) {
var _local6 = _local5.split("==");
com.mediamonks.core.DataStructures.Tree(_local4).findNext(_local2, _local6[0], _local6[1]);
}
}
_local4 = _local4[_local2];
_local3++;
}
return(_local4.toString());
}
function get(argPropertyPath) {
return(getProperty(argPropertyPath));
}
}
Symbol 151 MovieClip [__Packages.com.mediamonks.core.DataAbstraction.XmlToTree] Frame 0
class com.mediamonks.core.DataAbstraction.XmlToTree
{
function XmlToTree () {
}
function convert(argXmlNode) {
var _local8 = argXmlNode.childNodes.length;
var _local3 = new com.mediamonks.core.DataStructures.Tree(argXmlNode.nodeName);
for (var _local7 in argXmlNode.attributes) {
_local3.addChild(_local7, argXmlNode.attributes[_local7]);
}
var _local5 = 0;
while (_local5 < _local8) {
var _local2 = argXmlNode.childNodes[_local5];
if (_local2.firstChild.nodeType == 3) {
var _local4 = new com.mediamonks.core.DataStructures.Tree(_local2.nodeName);
for (var _local7 in _local2.attributes) {
_local4.addChild(_local7, _local2.attributes[_local7]);
}
if (_local4.count() > 0) {
_local4.addChild("_value", _local2.firstChild.nodeValue);
_local3.addChild(_local2.nodeName, _local4);
} else {
_local3.addChild(_local2.nodeName, _local2.firstChild.nodeValue);
}
} else if (_local2.hasChildNodes()) {
_local3.addChild(_local2.nodeName, convert(_local2));
} else {
var _local4 = new com.mediamonks.core.DataStructures.Tree(_local2.nodeName);
for (var _local7 in _local2.attributes) {
_local4.addChild(_local7, _local2.attributes[_local7]);
}
if (_local4.count() > 0) {
_local3.addChild(_local2.nodeName, _local4);
} else {
_local3.addChild(_local2.nodeName, null);
}
}
_local5++;
}
return(_local3);
}
var arrChildren = new Array();
var arrPointers = new Array();
}
Symbol 152 MovieClip [__Packages.com.mediamonks.core.DataAbstraction.XmlReader] Frame 0
class com.mediamonks.core.DataAbstraction.XmlReader extends XML
{
var ignoreWhite, fncConvert, strXmlFile, load;
function XmlReader (argFilename, argConvert) {
super();
mx.events.EventDispatcher.initialize(this);
ignoreWhite = true;
fncConvert = argConvert;
strXmlFile = argFilename;
}
function startLoad() {
if (!(undefined === strXmlFile)) {
load(strXmlFile);
}
}
function onLoad(argBlnSuccess) {
if (argBlnSuccess) {
if (!(null === fncConvert)) {
dispatchEvent({type:"onLoad", xmlFile:strXmlFile, xmlData:fncConvert(this)});
} else {
dispatchEvent({type:"onLoad", xmlFile:strXmlFile, xmlData:this});
}
} else {
dispatchEvent({type:"onError", error:"Error loading xml"});
}
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
}
Symbol 153 MovieClip [__Packages.com.mediamonks.core.LanguageManager.dispatchers.LanguageDispatcherTextField] Frame 0
class com.mediamonks.core.LanguageManager.dispatchers.LanguageDispatcherTextField extends com.mediamonks.core.LanguageManager.dispatchers.LanguageDispatcherProperty
{
var arrListeners, strLanguage, arrLanguageObjects, getProperty;
function LanguageDispatcherTextField (argFileId) {
super(argFileId);
arrListeners = new Array();
}
function add(argTextField, argPropertyPath, argUpdateListener) {
var _local2 = new Object();
_local2.item = argTextField;
_local2.path = argPropertyPath;
_local2.updateListener = argUpdateListener;
arrListeners.push(_local2);
if (!(arrLanguageObjects[strLanguage] === undefined)) {
fillField(_local2);
}
}
function fillField(argListener) {
var _local2 = getProperty(argListener.path);
if (_local2 == undefined) {
return(undefined);
}
argListener.item.htmlText = com.mediamonks.utils.StringUtils.removeBreaks(_local2);
argListener.updateListener(argListener.item);
}
function remove(argTextField, argPropertyPath) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < arrListeners.length) {
if ((arrListeners[_local2].item != argTextField) && (arrListeners[_local2].path != argPropertyPath)) {
_local3.push(arrListeners[_local2]);
}
_local2++;
}
arrListeners = _local3;
}
function update() {
var _local2 = 0;
while (_local2 < arrListeners.length) {
fillField(arrListeners[_local2]);
_local2++;
}
}
}
Symbol 154 MovieClip [__Packages.com.mediamonks.utils.StringUtils] Frame 0
class com.mediamonks.utils.StringUtils
{
function StringUtils () {
}
static function removeWhite(a_str) {
var _local4 = a_str.split("\r").join("").split(newline).join("").split("\t").join("");
var _local3 = "";
var _local2 = 0;
while (_local2 < _local4.length) {
var _local1 = _local4.charAt(_local2);
if (_local1 == " ") {
if (str_prevChar != " ") {
_local3 = _local3 + _local1;
}
} else {
_local3 = _local3 + _local1;
}
var str_prevChar = _local1;
_local2++;
}
return(_local3);
}
static function removeBreaks(a_str) {
var _local1 = a_str.split("\r").join("").split(newline).join("").split("\t").join("");
return(_local1);
}
static function replace(a_str, a_str_var, a_str_value) {
return(a_str.split(a_str_var).join(a_str_value));
}
static function assign(argStr, argStrVarName, argMixValue) {
if ("string" === typeof(argMixValue)) {
return(argStr.split(("{" + argStrVarName) + "}").join(argMixValue));
}
return(valuesFromObject(argStr, argMixValue, argStrVarName));
}
static function valuesFromObject(argStrValue, argObjValue, argStrPropertyPath) {
var _local1 = argStrValue;
for (var _local4 in argObjValue) {
var _local3 = (argStrPropertyPath + ".") + _local4;
if ("string" === typeof(argObjValue[_local4])) {
_local1 = _local1.split(("{" + _local3) + "}").join(argObjValue[_local4]);
} else {
_local1 = valuesFromObject(_local1, argObjValue[_local4], _local3);
}
}
return(_local1);
}
static function htmlDecode(argValue) {
var _local1 = [["Æ", "\u00C6"], ["æ", "\u00E6"], ["Á", "\u00C1"], ["á", "\u00E1"], ["Â", "\u00C2"], ["â", "\u00E2"], ["À", "\u00C0"], ["à", "\u00E0"], ["Å", "\u00C5"], ["å", "\u00E5"], ["Ã", "\u00C3"], ["ã", "\u00E3"], ["Ä", "\u00C4"], ["ä", "\u00E4"], ["Ç", "\u00C7"], ["ç", "\u00E7"], ["É", "\u00C9"], ["é", "\u00E9"], ["Ê", "\u00CA"], ["ê", "\u00EA"], ["È", "\u00C8"], ["è", "\u00E8"], ["Ð", "\u00D0"], ["ð", "\u00F0"], ["Ë", "\u00CB"], ["ë", "\u00EB"], ["Í", "\u00CD"], ["í", "\u00ED"], ["Î", "\u00CE"], ["î", "\u00EE"], ["Ì", "\u00CC"], ["ì", "\u00EC"], ["Ï", "\u00CF"], ["ï", "\u00EF"], ["Ñ", "\u00D1"], ["ñ", "\u00F1"], ["Ó", "\u00D3"], ["ó", "\u00F3"], ["Ô", "\u00D4"], ["ô", "\u00F4"], ["Ò", "\u00D2"], ["ò", "\u00F2"], ["Ø", "\u00D8"], ["ø", "\u00F8"], ["Õ", "\u00D5"], ["õ", "\u00F5"], ["Ö", "\u00D6"], ["ö", "\u00F6"], ["ß", "\u00DF"], ["Þ", "\u00DE"], ["þ", "\u00FE"], ["Ú", "\u00DA"], ["ú", "\u00FA"], ["Û", "\u00DB"], ["û", "\u00FB"], ["Ù", "\u00D9"], ["ù", "\u00F9"], ["Ü", "\u00DC"], ["ü", "\u00FC"], ["Ý", "\u00DD"], ["ý", "\u00FD"], ["ÿ", "\u00FF"], ["<", "<"], [">", ">"], ["&", "&"], [""", "\""], ["‘", "\u2018"], ["’", "\u2019"], [" ", " "], ["©", "\u00A9"], ["®", "\u00AE"], ["™", "\u2122"], ["€", "\u20AC"]];
for (var _local3 in _local1) {
argValue = argValue.split(_local1[_local3][0]).join(_local1[_local3][1]);
}
return(argValue);
}
}