Frame 1
if (!kv_v) {
kv_v = {c:733, a:0, da:["distralytics.com", "distralytics.co.uk"]};
kv_v.i = 0;
while (kv_v.i < kv_v.da.length) {
if (dom.charAt(0) === ".") {
var dom = kv_v.da[kv_v.i];
dom.substr(1, dom.length - 1);
System.security.allowDomain(dom, "*." + dom);
} else {
System.security.allowDomain(kv_v.da[kv_v.i], (kv_v.c + ".c.") + kv_v.da[kv_v.i], "*." + kv_v.da[kv_v.i]);
}
kv_v.i++;
}
kv_v.lc = function () {
var _local2;
var _local1 = kv_v.da[kv_v.a % kv_v.da.length];
if (_local1.charAt(0) === ".") {
_local2 = ("http://" + _local1.substr(1, _local1.length - 1)) + kv_v.lurl;
} else {
_local2 = ((("http://" + kv_v.c) + ".c.") + _local1) + kv_v.lurl;
}
System.security.allowDomain(_local2);
kv_v.l_mcl.loadClip(_local2, kv_v.t_mc);
};
kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_v.lurl = "/control/tracking/tracker.swf?r=" + Math.floor(Math.random() * 10000);
kv_v.t_mc = createEmptyMovieClip("kv_tracker", -16734);
kv_v.l_mcl = new MovieClipLoader();
kv_v.mcl_l = {onLoadError:function () {
kv_v.a++;
kv_v.lc();
}, onLoadStart:function (m) {
System.security.allowDomain(m._url);
}};
kv_v.l_mcl.addListener(kv_v.mcl_l);
kv_v.lc();
}
function shuffleQuestions() {
i = 0;
while (i < nTotalQuestions) {
totalQuestionsArray[i] = i + 1;
i++;
}
totalQuestionsArray.shuffle();
}
stop();
Stage.showMenu = false;
var aChatUpLines = new Array();
var aChatUpLines = ["Here's 10p. Ring your mum and tell her you're not coming home...", "Would you like a raisin? How about a date?", "The word of the day is legs... Would you like to come back to my house and help spread the word?", "Out of 2... Would you give me one??", "Do you have any Italian in you? No...? Would you like some?", "I'm a frog but if you kiss me I'll turn into a prince!", "Wow! Are those real?!", "How about you sit on my lap and we'll see what pops up?", "Is it hot in here or is it just you?", "Is that a mirror in your pocket? Because I can see myself in your pants.", "You'll do.", "If I could rearrange the alphabet I'd put U and I together", "Your name must be Daisy, because I have the incredible urge to plant you right here!", "Can I buy you a drink, or do you just want the money?", "I may not be the best looking guy here, but I'm the only one talking to you.", "If you were a new hamburger at McDonald's, you would be McGorgeous.", "If you're going to regret this in the morning, we can sleep until the afternoon.", "Oh, I'm sorry, I thought that was a Braille nametag.", "If you were a car, I would wax you and ride you all over town.", "You might not be the best looking girl here, but beauty is only a light switch away.", "I can't find my puppy, can you help me find him? I think he went into a cheap B&B.", "Hi, my name is Pogo. Want to jump on my stick?", "If I had a star for every time you made me smile I'd have the whole night's sky in the palm of my hand.", "I've forgotten my phone number, can I have yours?", "Excuse me, are you lost? Cause Heaven is a long way from here.", "You must be the greatest thief ever. You just stole my heart away.", "Do your legs hurt? 'Cause you've been running around my mind all night.", "Come here often?", "Your pants would look great crumpled up next to my bed.", "What's got 232 teeth and holds back the Incredible Hulk? My zipper.", "I'm sorry, but I couldn't help but notice you over here not noticing me.", "We should do it after my crabs clear up.... Or now if you have time.", "Did it hurt when you fell from heaven?", "How you doin'?", "If I told you that you had a nice body would you hold it against me?", "Call me Fred Flintstone 'cos I'll make your bed rock!", "Are you free tonight or will it cost me?", "Can I see your tan lines?", "Help the homeless - take me home with you.", "Hi. Are you legal?", "I'd look good on you.", "What do you like for breakfast?", "Do you charge by the inch or by the hour?"];
Array.prototype.shuffle = function () {
var _local5 = this.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = Math.floor(Math.random() * _local5);
var _local4 = this[_local2];
this[_local2] = this[_local3];
this[_local3] = _local4;
_local2++;
}
};
var girlXpositions = [60, 51, 145, 338];
var girlYpositions = [122, 222, 258, 220];
var noteXpositions = [88, 88, 188, 278];
var noteYpositions = [190, 297, 250, 267];
var intScore = 0;
var intScoreSub = 0;
var strLastScreen = "titlescreen";
var strRootURL = "http://www.tamba-games.co.uk/gdff";
var strServiceURL = (strRootURL + "/amfphp/gateway.php");
var objRemote = (new remoting.RemotingFunctions(strServiceURL, "GameFunctions"));
preLoad = function () {
preload_mc.load_pct.text = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + "%";
if (getBytesLoaded() == getBytesTotal()) {
clearInterval(intPreloader);
gotoAndStop ("title");
}
};
var intPreloader = setInterval(preLoad, 40);
var globalSound = new Sound(_root);
btn_sound.onRelease = function () {
if (!soundOff) {
btn_sound.gotoAndStop(2);
globalSound.setVolume(0);
soundOff = true;
skipnext = true;
}
if (soundOff && (!skipnext)) {
btn_sound.gotoAndStop(1);
globalSound.setVolume(100);
soundOff = false;
}
skipnext = false;
};
btn_tamba.onRelease = function () {
getURL ("http://www.tamba.co.uk", "_blank");
};
btn_client.onRelease = function () {
getURL ("http://www.girlsdateforfree.com?ITO=1720", "_blank");
};
Frame 3
strLastScreen = "title";
Frame 5
function updateScore() {
if (intScoreT < intScore) {
intScoreT++;
}
game.score_mc.text_score.text = intScoreT;
}
function hero_movement() {
if ((isBuyingDrink || (isGameOver)) || (isAnimating)) {
return(undefined);
}
if (!bEngagedInConversation) {
if (Key.isDown(37) && (bKeyDown == false)) {
game.hero.gotoAndStop("left");
game.hero._x = game.hero._x - intHeroXSpeed;
bKeyDown = true;
intHeroXSpeed = intHeroSpeed;
}
if (Key.isDown(39) && (bKeyDown == false)) {
game.hero.gotoAndStop("right");
game.hero._x = game.hero._x + intHeroXSpeed;
bKeyDown = true;
intHeroXSpeed = intHeroSpeed;
}
if (Key.isDown(38) && (bKeyDown == false)) {
game.hero.gotoAndStop("back");
game.hero._y = game.hero._y - intHeroYSpeed;
bKeyDown = true;
intHeroYSpeed = intHeroSpeed;
}
if (Key.isDown(40) && (bKeyDown == false)) {
game.hero.gotoAndStop("front");
game.hero._y = game.hero._y + intHeroYSpeed;
bKeyDown = true;
intHeroYSpeed = intHeroSpeed;
}
if (Key.isDown(32)) {
if (!isSpacePressed) {
if (!bHeroAtTheBar) {
checkForGirlProximity();
}
if (bHeroAtTheBar) {
isBuyingDrink = true;
displayAndAnimateDrink();
}
isSpacePressed = true;
}
} else {
isSpacePressed = false;
}
if ((((bKeyDown == false) && (targetMovieIsActive == false)) && (isBuyingDrink == false)) && (!isBeingAttackedByBoyfriend)) {
game.hero.gotoAndStop("idle");
}
}
bKeyDown = false;
}
function checkForGirlProximity() {
i = 0;
while (i < intTotalGirls) {
var _local1 = game["girl_" + i];
if (game.hero.hitTest(_local1) && (_local1._x == girlXpositions[i])) {
moveHeroToPresetPosition(_local1);
game.hero.gotoAndStop("idle");
game.HUD.press_space_icon._visible = false;
displayChatUplines();
}
i++;
}
}
function detectCollision() {
i = 0;
while (i <= intTotalObjects) {
var _local1 = "object_" + i;
if (game.hero.hero_top.hitTest(game[_local1])) {
intHeroYSpeed = 0;
}
if (game.hero.hero_bottom.hitTest(game[_local1])) {
intHeroYSpeed = 0;
}
if (game.hero.hero_left.hitTest(game[_local1])) {
intHeroXSpeed = 0;
}
if (game.hero.hero_right.hitTest(game[_local1])) {
intHeroXSpeed = 0;
}
i++;
}
i = 0;
while (i < 3) {
var _local3 = game["man_" + i];
if (game.hero.hero_top.hitTest(_local3.heroHitzone)) {
intHeroYSpeed = 0;
}
if (game.hero.hero_bottom.hitTest(_local3.heroHitzone)) {
intHeroYSpeed = 0;
}
if (game.hero.hero_left.hitTest(_local3.heroHitzone)) {
intHeroXSpeed = 0;
}
if (game.hero.hero_right.hitTest(_local3.heroHitzone)) {
intHeroXSpeed = 0;
}
i++;
}
i = 0;
while (i <= intTotalGirls) {
var _local2 = "girl_" + i;
if (game.hero.hero_top.hitTest(game[_local2].heroHitzone)) {
intHeroYSpeed = 0;
}
if (game.hero.hero_bottom.hitTest(game[_local2].heroHitzone)) {
intHeroYSpeed = 0;
}
if (game.hero.hero_left.hitTest(game[_local2].heroHitzone)) {
intHeroXSpeed = 0;
}
if (game.hero.hero_right.hitTest(game[_local2].heroHitzone)) {
intHeroXSpeed = 0;
}
i++;
}
if (game.hero.hero_top.hitTest(game.jealous_boyfriend.heroHitzone)) {
intHeroYSpeed = 0;
}
if (game.hero.hero_bottom.hitTest(game.jealous_boyfriend.heroHitzone)) {
intHeroYSpeed = 0;
}
if (game.hero.hero_left.hitTest(game.jealous_boyfriend.heroHitzone)) {
intHeroXSpeed = 0;
}
if (game.hero.hero_right.hitTest(game.jealous_boyfriend.heroHitzone)) {
intHeroXSpeed = 0;
}
}
function createGirlProximityDetection() {
i = 0;
while (i <= intTotalGirls) {
var _local2 = "girl_" + i;
game[_local2].onEnterFrame = function () {
if (game.hero.com_hitArea.hitTest(this)) {
targetMovie = this;
bSpaceBarIconVisible = true;
}
};
i++;
}
}
function hideEnvironmentHitZones() {
i = 0;
while (i <= intTotalObjects) {
var _local1 = "object_" + i;
game[_local1]._visible = false;
i++;
}
}
function displayChatUplines() {
hasSpokenLine = false;
startChatDisplayDelay();
if (!bHeroAtTheBar) {
bEngagedInConversation = true;
game.HUD.press_space_icon._visible = false;
i = 0;
while (i <= 3) {
var _local1 = "option_" + i;
game.HUD[_local1]._visible = true;
game.HUD[_local1].btn_element.gotoAndStop(1);
game.HUD[_local1].sText = aChatUpLines[i];
i++;
}
}
}
function hideChatUpLines() {
bEngagedInConversation = false;
game.HUD.press_space_icon._visible = true;
game.HUD.option_0.bullet.gotoAndStop("idle");
game.HUD.option_0.bullet.bullet_depressed = false;
game.HUD.option_1.bullet.gotoAndStop("idle");
game.HUD.option_1.bullet.bullet_depressed = false;
game.HUD.option_2.bullet.gotoAndStop("idle");
game.HUD.option_2.bullet.bullet_depressed = false;
aChatUpLines.shuffle();
i = 0;
while (i <= 3) {
var _local1 = "option_" + i;
game.HUD[_local1]._visible = false;
i++;
}
}
function moveHeroToPresetPosition(targetMovie) {
if (!bHeroAtTheBar) {
game.hero._x = targetMovie._x - 35;
game.hero._y = targetMovie._y - 5;
}
}
function onChatUpSelect(selectedline) {
if (hasSpokenLine) {
return(undefined);
}
hasSpokenLine = true;
displaySpeechBubble();
}
function displaySpeechBubble() {
hasSpokenLine = true;
var speechBubble = game.attachMovie("speech_bubble", "speech_bubble", 5000);
speechBubble._x = game.hero._x + 25;
speechBubble._y = game.hero._y - 20;
snd_speech.start();
medalxScaleT = new mx.transitions.Tween(speechBubble, "_xscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 2, true);
medalyScaleT = new mx.transitions.Tween(speechBubble, "_yscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 2, true);
medalxScaleT.onMotionFinished = function () {
intKeyCycleCounter = 1;
bChatUpLineSelected = false;
spaceKeyDelay = false;
speechBubble.removeMovieClip();
hideChatUpLines();
randomResponse();
};
}
function randomResponse() {
var _local1 = "girl_" + intBoyFriendTarget;
if ((targetMovie == _level0.game[_local1]) && (!jealousBoyfriendRoutine)) {
jealousBoyfriendRoutine = true;
funcJealousBoyfriendRoutine();
randomNumber = 4;
} else {
var randomNumber = Math.round(Math.random(1) * 3);
}
switch (randomNumber) {
case 0 :
hideChatUpLines();
if ((targetMovie == _level0.game[_local1]) && (!jealousBoyfriendRoutine)) {
jealousBoyfriendRoutine = true;
funcJealousBoyfriendRoutine();
} else {
subtractPride(25);
targetMovieIsActive = true;
targetMovie.gotoAndPlay("kick");
snd_kick.start();
var star = game.attachMovie("star", "star", 10001);
star._x = game.hero._x + (game.hero._width / 2);
star._y = game.hero._y + 50;
medalxScaleT = new mx.transitions.Tween(star, "_xscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 15, false);
medalxScaleT = new mx.transitions.Tween(star, "_yscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 15, false);
awardPoints(15);
game.hero.gotoAndPlay("wince");
snd_oof.start();
}
medalxScaleT.onMotionFinished = function () {
targetMovieIsActive = false;
star.removeMovieClip();
showRejection();
};
break;
case 1 :
hideChatUpLines();
targetMovie.isAnimating = true;
subtractPride(10);
targetMovieIsActive = true;
var splash = game.attachMovie("star", "splash", 10001);
splash.gotoAndStop(2);
splash._x = game.hero._x + (game.hero._width / 2);
splash._y = game.hero._y + 25;
medalxScaleT = new mx.transitions.Tween(splash, "_xscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 15, false);
medalxScaleT = new mx.transitions.Tween(splash, "_yscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 15, false);
targetMovie.gotoAndPlay("splash");
game.hero.gotoAndPlay("splash");
snd_drink_splat.start();
medalxScaleT.onMotionFinished = function () {
targetMovie.isAnimating = false;
targetMovieIsActive = false;
game.HUD.press_space_icon._visible = true;
splash.removeMovieClip();
showRejection();
awardPoints(25);
};
break;
case 2 :
if (!bAnimatingRemoveAddNewGirl) {
bAnimatingRemoveAddNewGirl = true;
snd_annoyed.start();
hideChatUpLines();
subtractPride(15);
targetMovie.gotoAndPlay("angry");
targetMovieIsActive = false;
game.HUD.press_space_icon._visible = true;
awardPoints(5);
} else {
randomResponse();
}
break;
case 3 :
girlAcceptsDrink();
break;
case 4 :
}
}
function showRejection() {
snd_laughter.start();
isAnimating = true;
game.hero.gotoAndStop("reject");
var _local3 = new mx.transitions.Tween(game.hero, null, null, 0, 100, 35, false);
var _local1 = 0;
while (_local1 < intTotalGirls) {
var _local2 = game["girl_" + _local1];
if (_local2 != targetMovie) {
_local2.gotoAndStop("laugh");
_local2.isAnimating = true;
}
_local1++;
}
_local3.onMotionFinished = function () {
if (!isGameOver) {
game.hero.gotoAndStop("idle");
isAnimating = false;
var _local1 = 0;
while (_local1 < intTotalGirls) {
var _local2 = game["girl_" + _local1];
if (_local2.isAnimating) {
_local2.gotoAndStop("dance");
_local2.isAnimating = false;
}
_local1++;
}
}
};
}
function heroDetectCollisions() {
i = 0;
while (i <= intTotalGirls) {
var _local1 = "girl_" + i;
if (game.hero.hitTest(game[_local1]) && (game[_local1]._y == girlYpositions[i])) {
targetMovie = game[_local1];
game[_local1].filters = [filter_glow];
} else {
game[_local1].filters = [];
}
i++;
}
if (game.hero.hitTest(game.barman.hitZone)) {
bHeroAtTheBar = true;
game.barman.filters = [filter_glow];
game.HUD.buyDrinkPrompt._visible = true;
} else {
bHeroAtTheBar = false;
game.barman.filters = [];
game.HUD.buyDrinkPrompt._visible = false;
}
}
function subtractCash(amount) {
game.HUD.cash_level.cash_level_bar._x = game.HUD.cash_level.cash_level_bar._x - amount;
if (game.HUD.cash_level.cash_level_bar._x < -121) {
gameOverMessage();
}
}
function addCash(amount) {
awardPoints(50);
if (game.HUD.cash_level.cash_level_bar._x < -55.5) {
game.HUD.cash_level.cash_level_bar._x = game.HUD.cash_level.cash_level_bar._x + amount;
}
}
function subtractPride(amount) {
game.HUD.pride_level.pride_level_bar._x = game.HUD.pride_level.pride_level_bar._x - amount;
if (game.HUD.pride_level.pride_level_bar._x < -100) {
gameOverMessage();
}
}
function addPride(amount) {
if (game.HUD.pride_level.pride_level_bar._x < -34.75) {
game.HUD.pride_level.pride_level_bar._x = game.HUD.pride_level.pride_level_bar._x + amount;
}
}
function displayAndAnimateDrink() {
snd_buyDrink.start();
var drinkIcon = game.attachMovie("drink_icon", "drink_icon", 0);
drinkIcon.swapDepths(game.hero);
drinkIcon._x = 250;
drinkIcon._y = 145;
drinkIconxScaleT = new mx.transitions.Tween(drinkIcon, "_xscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 1, true);
drinkIconxScaleT = new mx.transitions.Tween(drinkIcon, "_yscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 2, true);
showThought("drink");
game.hero.gotoAndPlay("drink");
addPride(5);
subtractCash(5);
drinkIconxScaleT.onMotionFinished = function () {
isBuyingDrink = false;
drinkIcon.removeMovieClip();
};
}
function showThought(strFrame) {
objThought._visible = true;
objThought._alpha = 0;
objThought._xscale = (objThought._yscale = 5);
objThought._y = 2;
var _local3 = new mx.transitions.Tween(objThought, "_xscale", mx.transitions.easing.Back.easeOut, 5, 100, 0.5, true);
var _local5 = new mx.transitions.Tween(objThought, "_yscale", mx.transitions.easing.Back.easeOut, 5, 100, 0.5, true);
var _local4 = new mx.transitions.Tween(objThought, "_y", mx.transitions.easing.Strong.easeOut, 2, -10, 1, true);
var _local7 = new mx.transitions.Tween(objThought, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 0.5, true);
var _local1 = new mx.transitions.Tween(objThought, null, mx.transitions.easing.Regular.easeOut, 0, 80, 2, true);
var _local6 = new mx.transitions.Tween(objThought, "_x", mx.transitions.easing.Strong.easeOut, 10, -44, 0.25, true);
_local1.onMotionFinished = function () {
var _local1 = new mx.transitions.Tween(objThought, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 0.5, true);
_local1.onMotionFinished = function () {
objThought._xscale = (objThought._yscale = 10);
objThought._x = 10;
objThought._y = 20;
};
};
}
function awardPoints(points) {
var _local1 = points;
intScore = intScore + _local1;
objAward.text_score.text = _local1;
objAward._alpha = 0;
objAward._visible = true;
objAward._y = 2;
var _local2 = new mx.transitions.Tween(objAward, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 200, 3, true);
var _local3 = new mx.transitions.Tween(objAward, "_y", mx.transitions.easing.Bounce.easeOut, objAward._y, -25, 0.5, true);
_local2.onMotionFinished = function () {
var _local1 = new mx.transitions.Tween(objAward, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 0.5, true);
};
}
function girlAcceptsDrink() {
awardPoints(100);
snd_laugh.start();
var speechBubble = game.attachMovie("speech_bubble", "speech_bubble", 3000);
speechBubble.gotoAndStop(2);
speechBubble._x = targetMovie._x + 20;
speechBubble._y = targetMovie._y - 35;
snd_speech.start();
medalxScaleT = new mx.transitions.Tween(speechBubble, "_xscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 2, true);
medalyScaleT = new mx.transitions.Tween(speechBubble, "_yscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 2, true);
addPride(5);
subtractCash(20);
medalxScaleT.onMotionFinished = function () {
isAnimating = false;
speechBubble.removeMovieClip();
};
}
function regenerateNewGirl(girlNumber, girlObject) {
var _local3 = new String(girlObject);
var _local4 = new String();
tempGirlNumber = _local3.substr(18, 1);
snd_ascend.start();
targetMovie = null;
showRejection();
var _local1 = new mx.transitions.Tween(girlObject, "_y", mx.transitions.easing.Regular.easeOut, girlObject._y, 200, 0.25, true);
_local1.onMotionFinished = function () {
var _local1 = new mx.transitions.Tween(girlObject, "_x", mx.transitions.easing.Regular.easeOut, girlObject._x, -50, 0.5, true);
_local1.onMotionFinished = function () {
girlObject.removeMovieClip();
replaceGirlAndAnimate(tempGirlNumber);
};
};
}
function replaceGirlAndAnimate(arrayLocation) {
snd_descend.start();
var _local3 = Math.round(Math.random(1) * intGirlVarietyTotal);
var _local2 = game.attachMovie("girl_" + _local3, "girl_" + arrayLocation, intGirlLayerCounter++);
_local2._y = girlYpositions[arrayLocation];
_local2.swapDepths(1500 + _local2._y);
_local2._x = -100;
girlHozT = new mx.transitions.Tween(_local2, "_x", mx.transitions.easing.Regular.easeOut, _local2._x, girlXpositions[arrayLocation], 2, true);
girlHozT.onMotionFinished = function () {
bAnimatingRemoveAddNewGirl = false;
this.obj.swapDepths(1500 + this.obj._y);
};
}
function startGamePlaceGirls() {
var _local4 = [0, 1, 2, 3, 4];
_local4.shuffle();
i = 0;
while (i < intTotalGirls) {
var _local2 = game.attachMovie("girl_" + _local4[i], "girl_" + i, 1800 + i);
_local2._y = girlYpositions[i];
trace(_local2);
_local2._x = -100;
trace(girlXpositions[i]);
var _local3 = new mx.transitions.Tween(_local2, "_x", mx.transitions.easing.Regular.easeOut, _local2._x, girlXpositions[i], 2, true);
_local2.swapDepths(1500 + girlYpositions[i]);
_local3.onMotionFinished = function () {
this.obj.swapDepths(1500 + this.obj._y);
};
i++;
}
}
function bonusNote() {
var _local1 = Math.round(Math.random(1) * 3);
if (_local1 == 1) {
_local1 = Math.round(Math.random(1) * 3);
snd_noteAppear.start();
var _local2 = game.attachMovie("note", "note", 3500);
_local2._x = noteXpositions[_local1];
_local2._y = noteYpositions[_local1];
}
}
function placeHero() {
var _local1 = game.attachMovie("hero", "hero", 1600);
objAward = _local1.award_mc;
objAward._visible = false;
objThought = _local1.thought_mc;
objThought._visible = false;
objThought._xscale = (objThought._yscale = 10);
objThought._x = 10;
objThought._y = 20;
_local1._x = 200;
_local1._y = 200;
}
function placeMen() {
var _local6 = [1, 2, 3];
var _local5 = [[102, 155], [390, 332], [153, 230]];
_local6.shuffle();
var _local1 = 0;
while (_local1 < 3) {
var _local4 = _local5[_local1][0] - 12;
var _local3 = _local5[_local1][1] - 70;
var _local2 = game.attachMovie("man_mc", "man_" + _local1, 0);
_local2._x = _local4;
_local2._y = _local3;
_local2.gotoAndStop(_local6[_local1]);
_local2.swapDepths(1500 + _local2._y);
_local1++;
}
}
function zfactoring() {
game.hero.swapDepths(1500 + Math.round(game.hero._y));
}
function placeSpeaker() {
game.right_speaker.swapDepths(5001);
}
function moveHudSystemUp() {
game.HUD.swapDepths(5003);
}
function cycleDown() {
}
function cycleUp() {
}
function chatUpKeySelection() {
if (!bChatUpLineSelected) {
switch (intKeyCycleCounter) {
case 1 :
revealAllChatUpLines();
selectedChatUpLineMc = "_level0.game.HUD.option_0";
game.HUD.option_0.bullet.gotoAndStop("active");
return;
case 2 :
revealAllChatUpLines();
selectedChatUpLineMc = "_level0.game.HUD.option_1";
game.HUD.option_1.bullet.gotoAndStop("active");
return;
case 3 :
revealAllChatUpLines();
selectedChatUpLineMc = "_level0.game.HUD.option_2";
game.HUD.option_2.bullet.gotoAndStop("active");
}
}
}
function revealAllChatUpLines() {
if (bEngagedInConversation) {
i = 0;
while (i <= 3) {
var _local1 = "option_" + i;
game.HUD[_local1]._visible = true;
game.HUD[_local1].bullet.gotoAndStop("idle");
game.HUD[_local1].bullet.bullet_depressed = false;
i++;
}
}
}
function refreshChatUpOptionsBullets() {
if (bullet.bullet_depressed != true) {
bullet.bullet_depressed = true;
bullet.gotoAndStop("active");
}
}
function onChatUpSelectKeyControl(selectedline) {
if (hasSpokenLine) {
return(undefined);
}
hasSpokenLine = true;
trace("from keyboard control");
i = 0;
while (i <= 3) {
var _local1 = "option_" + i;
if (game.HUD[_local1] != selectedline) {
game.HUD[_local1]._visible = false;
}
i++;
}
displaySpeechBubble();
}
function chatDisplayDelay() {
clearInterval(intSpaceDelay_INTERVAL);
spaceKeyDelay = true;
}
function startChatDisplayDelay() {
intSpaceDelay_INTERVAL = setInterval(chatDisplayDelay, 200);
}
function gameOverMessage() {
isGameOver = true;
clearInterval(intBonusNote_INTERVAL);
var gameoversMessage = attachMovie("message_gameover", "message_gameover", 5000);
gameoversMessage._x = 60;
gameoversMessage._y = 250;
var _local1 = new mx.transitions.Tween(gameoversMessage, "_yscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 3, true);
var _local3 = new mx.transitions.Tween(gameoversMessage, "_xscale", mx.transitions.easing.Elastic.easeOut, 0, 100, 1, true);
_local1.onMotionFinished = function () {
gameoversMessage.heart_mc.gotoAndPlay(2);
var _local1 = new mx.transitions.Tween(gameoversMessage, null, null, 0, 100, 3, true);
_local1.onMotionFinished = function () {
gameoversMessage.removeMovieClip();
gotoAndStop ("gameover");
};
};
}
function funcJealousBoyfriendRoutine() {
isAnimating = true;
isBeingAttackedByBoyfriend = true;
game.jealous_boyfriend.gotoAndStop("walk");
var _local1 = new mx.transitions.Tween(game.jealous_boyfriend, "_x", mx.transitions.easing.Regular.easeIn, game.jealous_boyfriend._x, game.hero._x + 10, 3, true);
_local1.onMotionFinished = function () {
game.jealous_boyfriend.gotoAndPlay("punch");
game.hero.gotoAndStop("attacked");
};
}
function removeJealousBoyFriend() {
isAnimating = false;
var _local3 = "girl_" + intBoyFriendTarget;
_root.regenerateNewGirl(girlId, _level0.game[_local3]);
isBeingAttackedByBoyfriend = false;
game.jealous_boyfriend.gotoAndStop("walk");
var _local2 = new mx.transitions.Tween(game.jealous_boyfriend, "_x", mx.transitions.easing.Regular.easeIn, game.jealous_boyfriend._x, -50, 3, true);
_local2.onMotionFinished = function () {
game.jealous_boyfriend.removeMovieClip();
};
}
function placeJealousBoyfriend() {
clearInterval(intPlaceBoyFriend);
var _local2 = "girl_" + intBoyFriendTarget;
var _local1 = game.attachMovie("jealous_boyfriend", "jealous_boyfriend", 0);
_local1._x = _level0.game[_local2]._x + 60;
_local1._y = _level0.game[_local2]._y;
_local1.swapDepths(1501 + _local1._y);
game.left_speaker.swapDepths(1500 + game.left_speaker._y);
}
stop();
game.btn_logo.tabEnabled = false;
btn_sound.tabEnabled = false;
btn_tamba.tabEnabled = false;
game.HUD.option_0.invisible_btn.tabEnabled = false;
game.HUD.option_1.invisible_btn.tabEnabled = false;
game.HUD.option_2.invisible_btn.tabEnabled = false;
var glow_color = 16777215;
var glow_alpha = 0.8;
var glow_blurX = 15;
var glow_blurY = 15;
var glow_strength = 2;
var glow_quality = 3;
var glow_inner = false;
var glow_knockout = false;
var filter_glow = (new flash.filters.GlowFilter(glow_color, glow_alpha, glow_blurX, glow_blurY, glow_strength, glow_quality, glow_inner, glow_knockout));
var intHeroSpeed = 6;
var intHeroXSpeed = intHeroSpeed;
var intHeroYSpeed = intHeroSpeed;
var bKeyDown = false;
var bSpaceBarIconVisible = false;
var intTotalObjects = 42;
var intTotalGirls = 4;
var bEngagedInConversation = false;
var targetMovie;
var targetMovieIsActive = false;
var bHeroAtTheBar = false;
var tempGirlNumber;
var intGirlLayerCounter = 1800;
var intBonusNote_INTERVAL = 0;
var intSpaceDelay_INTERVAL = 0;
var intKeyCycleCounter = 1;
var bKeyListenerActivated = false;
var bChatUpLineSelected = false;
var intGirlVarietyTotal = 4;
var selectedChatUpLineMc;
var spaceKeyDelay = false;
var temporyChatUplineMovie;
var bAnimatingRemoveAddNewGirl = false;
var isBuyingDrink = false;
var hasSpokenLine = false;
var isGameOver = false;
var isAnimating = false;
var isSpacePressed = false;
var jealousBoyfriendRoutine = false;
var isBeingAttackedByBoyfriend = false;
var intBoyFriendTarget = Math.round(Math.random(1) * 3);
var intPlaceBoyFriend = 0;
intPlaceBoyFriend = setInterval(placeJealousBoyfriend, 2000);
trace("boyFriendTarget =" + boyFriendTarget);
intScore = 0;
var intScoreT = 0;
var objAward;
var objThought;
intBonusNote_INTERVAL = setInterval(bonusNote, 10000);
game.HUD.press_space_icon._visible = false;
snd_kick = new Sound();
snd_kick.attachSound("kick");
snd_oof = new Sound();
snd_oof.attachSound("oof");
snd_speech = new Sound();
snd_speech.attachSound("speech");
snd_drink_splat = new Sound();
snd_drink_splat.attachSound("drink");
snd_laugh = new Sound();
snd_laugh.attachSound("laugh");
snd_cashCollect = new Sound();
snd_cashCollect.attachSound("cash_collect");
snd_buyDrink = new Sound();
snd_buyDrink.attachSound("buy_drink");
snd_noteAppear = new Sound();
snd_noteAppear.attachSound("note_appear");
snd_ascend = new Sound();
snd_ascend.attachSound("ascend");
snd_descend = new Sound();
snd_descend.attachSound("descend");
snd_click = new Sound();
snd_click.attachSound("click");
snd_annoyed = new Sound();
snd_annoyed.attachSound("annoyed");
snd_laughter = new Sound();
snd_laughter.attachSound("laughter");
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (!bKeyListenerActivated) {
bKeyListenerActivated = true;
switch (Key.getCode()) {
case 38 :
if (bEngagedInConversation) {
snd_click.start();
if (intKeyCycleCounter > 1) {
intKeyCycleCounter--;
}
}
return;
case 40 :
if (bEngagedInConversation) {
snd_click.start();
if (intKeyCycleCounter < 3) {
intKeyCycleCounter++;
}
}
return;
case 13 :
if (spaceKeyDelay) {
onChatUpSelectKeyControl(selectedChatUpLineMc);
}
return;
case 32 :
if (!spaceKeyDelay) {
break;
}
onChatUpSelectKeyControl(selectedChatUpLineMc);
isAnimating = true;
}
}
};
keyListener.onKeyUp = function () {
bKeyListenerActivated = false;
};
Key.addListener(keyListener);
onEnterFrame = function () {
updateScore();
hero_movement();
detectCollision();
heroDetectCollisions();
zfactoring();
chatUpKeySelection();
};
moveHudSystemUp();
startGamePlaceGirls();
placeHero();
placeMen();
placeSpeaker();
hideEnvironmentHitZones();
createGirlProximityDetection();
hideChatUpLines();
Array.prototype.shuffle = function () {
var _local5 = this.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = Math.floor(Math.random() * _local5);
var _local4 = this[_local2];
this[_local2] = this[_local3];
this[_local3] = _local4;
_local2++;
}
};
Instance of Symbol 1038 MovieClip "game" in Frame 5
/* no clip actions */
Frame 6
strLastScreen = "gameover";
Symbol 48 MovieClip [jealous_boyfriend] Frame 1
stop();
Symbol 48 MovieClip [jealous_boyfriend] Frame 80
_root.removeJealousBoyFriend();
Symbol 155 MovieClip [girl_4] Frame 1
stop();
Symbol 155 MovieClip [girl_4] Frame 12
gotoAndStop (1);
Symbol 155 MovieClip [girl_4] Frame 22
gotoAndStop (1);
Symbol 155 MovieClip [girl_4] Frame 56
_root.regenerateNewGirl(girlId, this);
Symbol 221 MovieClip [girl_3] Frame 1
stop();
Symbol 221 MovieClip [girl_3] Frame 12
gotoAndStop (1);
Symbol 221 MovieClip [girl_3] Frame 22
gotoAndStop (1);
Symbol 221 MovieClip [girl_3] Frame 56
_root.regenerateNewGirl(girlId, this);
Symbol 224 MovieClip [note] Frame 1
onEnterFrame = function () {
if (this.hitTest(_root.game.hero)) {
_root.addCash(20);
_root.snd_cashCollect.start();
_root.game.note.removeMovieClip();
}
};
Symbol 224 MovieClip [note] Frame 60
onEnterFrame = function () {
if (this.hitTest(_root.game.hero)) {
_root.addCash(20);
_root.game.note.removeMovieClip();
}
};
Symbol 224 MovieClip [note] Frame 69
_root.game.note.removeMovieClip();
Symbol 229 MovieClip [star] Frame 1
stop();
Symbol 451 MovieClip [hero] Frame 1
stop();
com_hitArea._visible = false;
hero_bottom._visible = false;
Symbol 451 MovieClip [hero] Frame 5
hero_left._visible = false;
Symbol 451 MovieClip [hero] Frame 10
hero_right._visible = false;
Symbol 451 MovieClip [hero] Frame 15
hero_top._visible = false;
Symbol 451 MovieClip [hero] Frame 35
gotoAndStop ("idle");
Symbol 451 MovieClip [hero] Frame 53
gotoAndStop ("idle");
Symbol 451 MovieClip [hero] Frame 70
gotoAndStop ("idle");
Symbol 463 MovieClip [speech_bubble] Frame 1
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 30
stop();
Symbol 540 MovieClip [girl_2] Frame 1
stop();
Symbol 540 MovieClip [girl_2] Frame 12
gotoAndStop (1);
Symbol 540 MovieClip [girl_2] Frame 22
gotoAndStop (1);
Symbol 540 MovieClip [girl_2] Frame 56
_root.regenerateNewGirl(girlId, this);
Symbol 599 MovieClip [girl_1] Frame 1
var girlId = 1;
stop();
Symbol 599 MovieClip [girl_1] Frame 12
gotoAndStop (1);
Symbol 599 MovieClip [girl_1] Frame 22
gotoAndStop (1);
Symbol 599 MovieClip [girl_1] Frame 56
_root.regenerateNewGirl(girlId, this);
Symbol 661 MovieClip [girl_0] Frame 1
stop();
Symbol 661 MovieClip [girl_0] Frame 12
gotoAndStop (1);
Symbol 661 MovieClip [girl_0] Frame 22
gotoAndStop (1);
Symbol 661 MovieClip [girl_0] Frame 56
_root.regenerateNewGirl(girlId, this);
Symbol 671 MovieClip [RemotingDebugClasses] Frame 1
#initclip 73
Object.registerClass("RemotingDebugClasses", mx.remoting.DebugClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 716 MovieClip [RemotingClasses] Frame 1
#initclip 74
Object.registerClass("RemotingClasses", mx.remoting.ApiClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 737 MovieClip Frame 1
stop();
Symbol 1133 MovieClip [__Packages.remoting.RemotingFunctions] Frame 0
class remoting.RemotingFunctions
{
var gatewayUrl, serviceName, service, serial;
function RemotingFunctions (gatewayUrl, serviceName) {
this.gatewayUrl = gatewayUrl;
this.serviceName = serviceName;
service = new remoting.RemotingService(gatewayUrl, serviceName, remoting.RemotingService.NO_RETRY);
serial = new it.sephiroth.Serializer();
}
function getHighScores(intMax, intPlayer) {
service.getHighScores([intMax, intPlayer], this, gotHighScores);
}
function gotHighScores(objResult) {
_root.leaderboard.showHighScores(_root.objRemote.serial.unserialize(objResult.__get__result()));
}
function setHighScores(strUsername, strEmail, intScore) {
var _local2 = new as.md5();
var _local3 = _local2.hash((((("client=gdffhappy&username=" + strUsername) + "&email=") + strEmail) + "&score=") + intScore);
service.setHighScores([strUsername, strEmail, intScore, _local3], this, setHighScoresResult);
}
function setHighScoresResult(objResult) {
var _local2 = objResult.__get__result();
_root.gotoAndStop("leaderboard");
}
function sendToFriend(strUserName, strUserEmail, strFriendName, strFriendEmail, intUserScore, strMessage) {
service.sendToFriend([strUserName, strUserEmail, strFriendName, strFriendEmail, intUserScore, strMessage], this, sentToFriend);
}
function sentToFriend() {
trace("sent");
_root.sendfriend.friend_name.text = "";
_root.sendfriend.friend_email.text = "";
_root.sendfriend.error_text.text = "Email sent! Would you like to send another?";
}
}
Symbol 1134 MovieClip [__Packages.remoting.RemotingService] Frame 0
class remoting.RemotingService
{
var gatewayUrl, serviceName, defaultSettings, service, dispatchEvent;
function RemotingService (gatewayUrl, serviceName, defaultSettings) {
mx.events.EventDispatcher.initialize(this);
this.gatewayUrl = gatewayUrl;
this.serviceName = serviceName;
this.defaultSettings = defaultSettings;
init();
}
function init() {
mx.remoting.debug.NetDebug.initialize();
service = new mx.remoting.Service(gatewayUrl, null, serviceName);
}
function setCredentials(user, pass) {
service.__get__connection().setCredentials(user, pass);
}
function __resolve(p_methodName) {
if ((p_methodName.indexOf("Handler") != -1) || (p_methodName.indexOf("__q_") != -1)) {
return(null);
}
var _local2 = new remoting.RemotingMethod(service, p_methodName, defaultSettings);
_local2.addEventListener("busy", mx.utils.Delegate.create(this, handleBusy));
_local2.addEventListener("result", mx.utils.Delegate.create(this, handleResult));
_local2.addEventListener("fault", mx.utils.Delegate.create(this, handleFault));
_local2.addEventListener("timeout", mx.utils.Delegate.create(this, handleTimeout));
_local2.addEventListener("call", mx.utils.Delegate.create(this, handleCall));
this[p_methodName] = mx.utils.Delegate.create(_local2, _local2.exec);
return(this[p_methodName]);
}
function handleBusy(eventObj) {
hasBeenBusy = true;
dispatchEvent({type:"busy", target:this});
}
function handleResult(eventObj) {
removePendingCall();
dispatchEvent({type:"result", target:this, result:eventObj.result, args:eventObj.args, methodName:eventObj.methodName});
}
function handleTimeout(eventObj) {
removePendingCall();
dispatchEvent({type:"timeout", target:this, args:eventObj.args, methodName:eventObj.methodName});
}
function handleFault(eventObj) {
removePendingCall();
if (eventObj.fault.faultcode == "AMFPHP_AUTH_MISMATCH") {
dispatchEvent({type:"authFault", target:this, fault:eventObj.fault, methodName:eventObj.methodName, args:eventObj.args});
} else {
dispatchEvent({type:"fault", target:this, fault:eventObj.fault, methodName:eventObj.methodName, args:eventObj.args});
}
}
function handleCall(eventObj) {
pendingCalls = pendingCalls + 1;
}
function removePendingCall() {
pendingCalls = pendingCalls - 1;
if ((pendingCalls == 0) && (hasBeenBusy)) {
hasBeenBusy = false;
dispatchEvent({type:"clear", target:this});
}
}
static var NO_RETRY = {maxAttempts:1, timeout:20000};
static var BUSY_TIME = 750;
var pendingCalls = 0;
var hasBeenBusy = false;
}
Symbol 723 MovieClip [__Packages.mx.remoting.Service] Frame 0
class mx.remoting.Service extends Object
{
var __conn, __serviceName, __responder;
function Service (gatewayURI, logger, serviceName, conn, resp) {
var _local1 = this;
var _local2 = conn;
var _local3 = gatewayURI;
super();
_local1.log = logger;
_local1.log.logInfo("Creating Service for " + serviceName, mx.services.Log.VERBOSE);
if ((_local3 == "") && (_local2 == null)) {
_local3 = mx.remoting.NetServices.gatewayUrl;
}
_local3 = mx.remoting.NetServices.getHttpUrl(_local3);
if (_local2 == null) {
_local2 = mx.remoting.NetServices.getConnection(_local3);
if (_local2 == null) {
_local1.log.logInfo("Creating gateway connection for " + _local3, mx.services.Log.VERBOSE);
_local2 = mx.remoting.NetServices.createGatewayConnection(_local3, logger);
}
}
_local1.__conn = _local2;
_local2.updateConfig();
_local1._allowRes = true;
_local1.__serviceName = serviceName;
_local1.__responder = resp;
_local1.log.logInfo("Successfully created Service", mx.services.Log.VERBOSE);
}
function get connection() {
return(__conn);
}
function __resolve(methodName) {
var _local2 = this;
if (_local2._allowRes) {
var _local1 = _local2.__makeOpFunc(methodName);
_local2[methodName] = _local1;
return(_local1);
}
return(null);
}
function __makeOpFunc(name) {
var op = (new mx.remoting.Operation(name, this));
var _local1 = function () {
op.invoke(arguments);
return(op.send());
};
_local1.send = function () {
return(op.createThenSend());
};
_local1.setResponder = function (resp) {
op.responder = resp;
};
_local1.getRequest = function () {
return(op.request);
};
_local1.setRequest = function (val) {
op.request = val;
};
_local1.addProperty("request", _local1.getRequest, _local1.setRequest);
_local1.operation = op;
return(_local1);
}
function get name() {
return(__serviceName);
}
function get responder() {
return(__responder);
}
static var version = "1.2.0.124";
var _allowRes = false;
}
Symbol 672 MovieClip [__Packages.mx.services.Log] Frame 0
class mx.services.Log
{
var level, name;
function Log (logLevel, name) {
level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
this.name = ((name == undefined) ? "" : (name));
}
function logInfo(msg, level) {
if (level == undefined) {
level = BRIEF;
}
if (level <= this.level) {
if (level == DEBUG) {
onLog((((getDateString() + " [DEBUG] ") + name) + ": ") + msg);
} else {
onLog((((getDateString() + " [INFO] ") + name) + ": ") + msg);
}
}
}
function logDebug(msg) {
logInfo(msg, DEBUG);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
function onLog(message) {
trace(message);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
}
Symbol 673 MovieClip [__Packages.mx.remoting.Connection] Frame 0
class mx.remoting.Connection extends NetConnection
{
var uri;
function Connection () {
super();
}
function getService(serviceName, client) {
var _local1 = new mx.remoting.NetServiceProxy(this, serviceName, client);
return(_local1);
}
function setCredentials(userId, password) {
addHeader("Credentials", false, {userid:userId, password:password});
}
function clone() {
var _local1 = new mx.remoting.Connection();
_local1.connect(uri);
return(_local1);
}
function getDebugId() {
return(null);
}
function getDebugConfig() {
return(null);
}
function setDebugId(id) {
}
function call() {
super.call.apply(super, arguments);
}
function close() {
super.close();
}
function connect(url) {
return(super.connect(url));
}
function addHeader(name, mustUnderstand, obj) {
super.addHeader(name, mustUnderstand, obj);
}
function trace(traceObj) {
}
function AppendToGatewayUrl(urlSuffix) {
var _local1 = this;
_local1.__urlSuffix = urlSuffix;
if (_local1.__originalUrl == null) {
_local1.__originalUrl = _local1.uri;
}
var _local2 = _local1.__originalUrl + urlSuffix;
_local1.connect(_local2);
}
function ReplaceGatewayUrl(newUrl) {
connect(newUrl);
}
function RequestPersistentHeader(info) {
var _local1 = info;
addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
}
static var version = "1.2.0.124";
}
Symbol 679 MovieClip [__Packages.mx.remoting.NetServiceProxy] Frame 0
class mx.remoting.NetServiceProxy extends Object
{
var nc, client;
function NetServiceProxy (netC, servName, cli) {
var _local1 = this;
super();
if (netC != null) {
_local1.nc = netC;
_local1.serviceName = servName;
_local1.client = cli;
}
_local1._allowRes = true;
}
function _setParentService(service) {
nc = service.nc;
client = service.client;
}
function __resolve(methodName) {
var _local1 = this;
var _local2 = arguments;
if (_local1._allowRes) {
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
mx.remoting.NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, and no responder was given in call to " + methodName);
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
}
if (typeof(_local1.serviceName) == "function") {
_local1.serviceName = _local1.servicename;
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
}
return(null);
}
static function registerNetServiceProxy() {
Object.registerClass("NetServiceProxy", mx.remoting.NetServiceProxy);
return(true);
}
static var init = registerNetServiceProxy();
var _allowRes = false;
}
Symbol 722 MovieClip [__Packages.mx.rpc.Responder] Frame 0
interface mx.rpc.Responder{}
Symbol 721 MovieClip [__Packages.mx.rpc.FaultEvent] Frame 0
class mx.rpc.FaultEvent extends Object
{
var __fault;
function FaultEvent (f) {
super();
__fault = f;
}
function get fault() {
return(__fault);
}
}
Symbol 720 MovieClip [__Packages.mx.rpc.Fault] Frame 0
class mx.rpc.Fault extends Object
{
var __faultcode, __faultstring, __detail, __type;
function Fault (code, msg, detail, type) {
var _local1 = this;
super();
_local1.__faultcode = code;
_local1.__faultstring = msg;
_local1.__detail = detail;
_local1.__type = type;
}
function get faultcode() {
return(__faultcode);
}
function get faultstring() {
return(__faultstring);
}
function get detail() {
return(__detail);
}
function get description() {
var _local2 = this;
if (_local2.__description == null) {
if (_local2.__faultstring.indexOf(":") > -1) {
_local2.__description = _local2.__faultstring.substring(_local2.__faultstring.indexOf(":") + 1);
var _local1 = 0;
while (_local2.__description.indexOf(" ", _local1) == _local1) {
_local1++;
}
if (_local1 > 0) {
_local2.__description = _local2.__description.substring(_local1);
}
} else {
_local2.__description = _local2.__faultstring;
}
}
return(_local2.__description);
}
function get type() {
return(__type);
}
}
Symbol 719 MovieClip [__Packages.mx.rpc.ResultEvent] Frame 0
class mx.rpc.ResultEvent extends Object
{
var __result;
function ResultEvent (res) {
super();
__result = res;
}
function get result() {
return(__result);
}
}
Symbol 678 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 702 MovieClip [__Packages.mx.remoting.debug.NetDebug] Frame 0
class mx.remoting.debug.NetDebug extends Object
{
static var ndSingleton;
var _ncs, _nextNewId, _glc, _config;
function NetDebug () {
var _local1 = this;
super();
_local1._ncs = new Array();
_local1._config = mx.remoting.debug.NetDebugConfig.getDefaultNetDebugConfig(false);
_local1._glc = new mx.remoting.debug.GlobalLocalConnection(false, _local1);
_local1._glc.sendCommand(new mx.remoting.debug.commands.GetConfig());
_local1._nextNewId = 0;
if (_global.System.onStatus == undefined) {
_global.System.onStatus = globalOnStatus;
}
mx.remoting.NetServices.traceNetServices = traceNetServices;
}
function addNetConnection(nc) {
_ncs.push(nc);
return(_nextNewId++);
}
function requestNewConfig() {
return(sendCommand(new mx.remoting.debug.commands.GetConfig()));
}
function removeNetConnection(nc) {
var _local2 = this;
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (nc == _local2._ncs[_local1]) {
_local2._ncs.splice(_local1, 1);
return;
}
_local1++;
}
}
function sendDebugEvent(eventobj) {
if (!_glc.send(eventobj)) {
_glc.send(new mx.remoting.debug.events.NetDebugFailedSendError(stripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
}
function sendCommand(commandobj) {
return(_glc.sendCommand(commandobj));
}
function updateConfig(config) {
var _local2 = this;
mx.utils.ObjectCopy.copyProperties(_local2._config, config);
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2._ncs[_local1] != null) {
_local2._ncs[_local1].updateConfig(config);
}
_local1++;
}
}
function sendStatus(statusobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
return(_local1._glc.send(new mx.remoting.debug.events.NetDebugStatus(statusobj)));
}
return(undefined);
}
function onEvent(eventObj) {
return(sendDebugEvent(eventObj));
}
function onEventError(errorObj) {
return(sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorObj)));
}
function onReceiveCommand(commandobj) {
this[commandobj.command](commandobj.data);
}
function onReceiveError(errorobj) {
sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorobj));
}
function getConfig() {
return(_config);
}
static function getNetDebug() {
return(ndSingleton);
}
static function trace(obj) {
getNetDebug()._trace(obj);
}
static function traceNetServices(who, severity, number, message) {
getNetDebug()._traceNetServices(who, severity, number, message);
}
static function globalOnStatus(statusobj) {
getNetDebug().sendStatus(statusobj);
}
static function initialize() {
if (ndSingleton == null) {
ndSingleton = new mx.remoting.debug.NetDebug();
mx.remoting.debug.ConnectionMixin.initialize();
}
return(true);
}
static function stripNCDEventToMinmal(ev) {
var _local1 = ev;
var _local2 = new Object();
if (_local1.eventType != null) {
_local2.eventType = _local1.eventType;
}
if (_local1.source != null) {
_local2.source = _local1.source;
}
if (_local1.movieUrl != null) {
_local2.movieUrl = _local1.movieUrl;
}
if (_local1.date != null) {
_local2.date = _local1.date;
}
if (_local1.time != null) {
_local2.time = _local1.time;
}
if (_local1.protocol != null) {
_local2.protocol = _local1.protocol;
}
if (_local1.debugId != null) {
_local2.debugId = _local1.debugId;
}
return(_local2);
}
function _traceNetServices(who, severity, number, message) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTraceNetServices(who, severity, number, message))) {
}
}
}
function _trace(traceobj) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj))) {
}
}
}
static var version = "1.2.0.124";
}
Symbol 686 MovieClip [__Packages.mx.remoting.debug.NetDebugConfig] Frame 0
class mx.remoting.debug.NetDebugConfig extends Object
{
function NetDebugConfig () {
super();
Object.registerClass("NetDebugConfig", mx.remoting.debug.NetDebugConfig);
}
static function getNetDebugVersion() {
return(1);
}
static function attachNetDebugConfigFunctions(ndc) {
var _local1 = ndc;
_local1.setDebug = function (setval) {
this.m_debug = setval;
};
_local1.getDebug = function () {
return(this.m_debug);
};
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "object") {
attachNetDebugConfigFunctions(_local1[_local2]);
}
}
return(null);
}
static function getDefaultNetDebugConfig(isController) {
var _local1 = _global;
if (_local1.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (isController) {
_local2 = "Controller_Config_Info";
}
_local1.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_local1.netDebugConfigSO.data.config == undefined) {
_local1.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_local1.netDebugConfigSO.flush();
return(_local1.netDebugConfigSO.data.config);
}
static function getRealDefaultNetDebugConfig() {
var _local1 = new mx.remoting.debug.NetDebugConfig();
_local1.m_debug = true;
_local1.client = new mx.remoting.debug.NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new mx.remoting.debug.NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new mx.remoting.debug.NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
}
Symbol 695 MovieClip [__Packages.mx.remoting.debug.GlobalLocalConnection] Frame 0
class mx.remoting.debug.GlobalLocalConnection extends Object
{
var sendPrefix;
function GlobalLocalConnection (isController, receiver, domainName) {
var _local2 = this;
var _local3 = _global;
super();
_local2.maxConnections = 10;
var sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (isController) {
connectname = sToController;
_local2.sendNames = new Array();
_local2.sendNames.push(sToMovie);
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
_local2.sendNames.push(sToMovie + _local1);
_local1++;
}
_local2.maxConnections = 0;
} else {
connectname = sToMovie;
_local2.sendNames = new Array();
_local2.sendNames.push(sToController);
}
_local2.setDomainName(domainName);
if (_local3.g_NetDebugLocalConnection == undefined) {
_local3.g_NetDebugLocalConnection = new LocalConnection();
_local3.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_local3.g_NetDebugLocalConnection.m_Receiver = receiver;
_local3.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_local3.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_local3.g_NetDebugLocalConnection.connect(connectname)) {
var connected = false;
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
if (_local3.g_NetDebugLocalConnection.connect(connectname + _local1)) {
connected = true;
break;
}
_local1++;
}
if (!connected) {
if (isController) {
receiver.onReceiveError(new mx.remoting.debug.events.NetDebugDuplicateNCDError());
}
}
}
}
}
function setDomainName(domainName) {
var _local1 = domainName;
if ((_local1 != null) && (_local1 != "")) {
sendPrefix = _local1 + ":";
} else {
sendPrefix = "";
}
}
function send(dataobj) {
return(sendRaw("onData", dataobj));
}
function sendCommand(commandObj) {
return(sendRaw("onCommand", commandObj));
}
function sendRaw(functionName, obj) {
var _local3 = this;
var _local2 = true;
var snlen = _local3.sendNames.length;
var _local1 = 0;
while (_local1 < snlen) {
_local2 = Boolean(_local2 & _global.g_NetDebugLocalConnection.send(_local3.sendPrefix + _local3.sendNames[_local1], functionName, obj));
_local1++;
}
return(_local2);
}
}
Symbol 1135 MovieClip [__Packages.remoting.RemotingMethod] Frame 0
class remoting.RemotingMethod
{
var service, methodName, defaultSettings, dispatchEvent;
function RemotingMethod (service, methodName, defaultSettings) {
mx.events.EventDispatcher.initialize(this);
this.service = service;
this.methodName = methodName;
this.defaultSettings = defaultSettings;
}
function exec() {
var _local4 = null;
if (arguments.length == 5) {
_local4 = arguments.pop();
}
if (_local4 == null) {
_local4 = defaultSettings;
}
var _local6 = arguments.slice(0, 4);
var _local3 = new remoting.RemotingCall(service, methodName, _local6[0], _local6[1], _local6[2], _local6[3], _local4);
_local3.exec();
dispatchEvent({target:this, type:"call", args:_local3.args, methodName:methodName});
_local3.faultHandler = mx.utils.Delegate.create(this, onFault);
_local3.resultHandler = mx.utils.Delegate.create(this, onResult);
_local3.busyHandler = mx.utils.Delegate.create(this, onBusy);
_local3.timeoutHandler = mx.utils.Delegate.create(this, onTimeout);
}
function onFault(rc, fault) {
dispatchEvent({target:this, type:"fault", args:rc.args, methodName:methodName, fault:fault.__get__fault()});
}
function onResult(rc, result) {
dispatchEvent({target:this, type:"result", args:rc.args, methodName:methodName, result:result.__get__result()});
}
function onBusy() {
dispatchEvent({target:this, type:"busy"});
}
function onTimeout(rc) {
dispatchEvent({target:this, type:"timeout", methodName:methodName, args:rc.args});
}
}
Symbol 1136 MovieClip [__Packages.remoting.RemotingCall] Frame 0
class remoting.RemotingCall
{
var service, methodName, args, resultCb, faultCb, meta, pc, busyInt, timeoutInt, busyHandler, resultHandler, faultHandler, timeoutHandler;
function RemotingCall (service, methodName, args, scope, resultCb, faultCb, meta) {
this.service = service;
this.methodName = methodName;
this.args = args;
this.resultCb = mx.utils.Delegate.create(scope, resultCb);
this.faultCb = mx.utils.Delegate.create(scope, faultCb);
this.meta = meta;
if (meta.timeout != null) {
timeout = meta.timeout;
}
if (meta.maxAttempts != null) {
maxAttempts = meta.maxAttempts;
}
}
function exec() {
pc = service[methodName].apply(this, args);
pc.__set__responder(new mx.rpc.RelayResponder(this, "onResult", "onFault"));
if (attempt == 0) {
busyInt = setInterval(mx.utils.Delegate.create(this, onBusy), remoting.RemotingService.BUSY_TIME);
timeoutInt = setInterval(mx.utils.Delegate.create(this, onTimeout), timeout);
}
attempt++;
}
function onBusy(re) {
clearInterval(busyInt);
busyHandler();
}
function onResult(re) {
if (!completed) {
clearInterval(timeoutInt);
clearInterval(busyInt);
resultHandler(this, re);
resultCb.apply(this, [re, args]);
completed = true;
}
}
function onFault(fe) {
if (!completed) {
clearInterval(timeoutInt);
clearInterval(busyInt);
faultCb.apply(this, [fe, args]);
faultHandler(this, fe);
completed = true;
}
}
function onTimeout() {
clearInterval(busyInt);
if (attempt >= maxAttempts) {
clearInterval(timeoutInt);
var _local2 = new mx.rpc.FaultEvent(new mx.rpc.Fault("TIMEOUT", methodName + " timed out", "", ""));
faultCb.apply(this, [_local2, args]);
timeoutHandler(this);
} else {
exec();
}
}
var attempt = 0;
var timeout = 5000;
var maxAttempts = 3;
var completed = false;
}
Symbol 718 MovieClip [__Packages.mx.remoting.PendingCall] Frame 0
class mx.remoting.PendingCall extends Object
{
var __service, __methodName, __responder;
function PendingCall (srv, methodName) {
super();
__service = srv;
__methodName = methodName;
}
function get responder() {
return(__responder);
}
function set responder(res) {
__responder = res;
//return(responder);
}
function onResult(result) {
var _local1 = result;
var _local2 = this;
_local1.serviceName = ((typeof(_local1.serviceName) == "function") ? (_local1.servicename) : (_local1.serviceName));
if (_local1 != null) {
if (_local1 instanceof mx.remoting.NetServiceProxy) {
var serv = (new mx.remoting.Service(null, null, _local1.serviceName, _local2.__service.__get__connection(), _local2.__service.__get__responder()));
_local1 = serv;
} else if (_local1 instanceof mx.remoting.RecordSet) {
var _local3 = new mx.remoting.NetServiceProxy(_local2.__service.__get__connection());
_local1._setParentService(_local3);
_local1.logger = _local2.__service.log;
}
}
if (_local2.__responder != null) {
_local2.__responder.onResult(new mx.rpc.ResultEvent(_local1));
}
if (_local2.__service.log != null) {
_local2.__service.log.logInfo((((_local2.__service.__get__name() + ".") + _local2.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local1));
}
}
function onStatus(status) {
var _local1 = this;
var _local2 = status;
if (_local1.__responder != null) {
_local1.__responder.onFault(new mx.rpc.FaultEvent(new mx.rpc.Fault(_local2.code, _local2.description, _local2.details, _local2.type)));
}
if (_local1.__service.log != null) {
_local1.__service.log.logDebug("Service invocation failed.");
_local1.__service.log.logDebug((((_local1.__service.__get__name() + ".") + _local1.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local2));
}
}
function get methodName() {
return(__methodName);
}
static var inited = mx.remoting.NetServiceProxy.registerNetServiceProxy();
}
Symbol 1137 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 726 MovieClip [__Packages.mx.rpc.RelayResponder] Frame 0
class mx.rpc.RelayResponder extends Object
{
var __onFault, __obj, __onResult;
function RelayResponder (resp, resultFunc, faultFunc) {
var _local1 = this;
super();
_local1.__obj = resp;
_local1.__onFault = faultFunc;
_local1.__onResult = resultFunc;
}
function onFault(fault) {
__obj[__onFault](fault);
}
function onResult(result) {
__obj[__onResult](result);
}
}
Symbol 1138 MovieClip [__Packages.it.sephiroth.Serializer] Frame 0
class it.sephiroth.Serializer
{
var buffer;
function Serializer () {
}
function serialize(what) {
var _local2 = new String("");
_local2 = serialize_internal("", what);
return(_local2);
}
function serialize_internal(buf, struct_c) {
if (((!isNaN(struct_c)) && (struct_c.__proto__ != Boolean.prototype)) && (struct_c.__proto__ != Date.prototype)) {
var _local2 = new Number(struct_c);
} else {
var _local2 = struct_c;
}
switch (_local2.__proto__) {
case Boolean.prototype :
buf = ((buf + "b:") + int(_local2)) + ";";
break;
case null :
case undefined :
buf = buf + "N;";
break;
case Number.prototype :
if (_local2 >= 1E15) {
buf = ((buf + "d:") + _local2) + ";";
} else if ((_local2 % 1) == 0) {
buf = ((buf + "i:") + _local2) + ";";
} else {
buf = ((buf + "d:") + _local2) + ";";
}
break;
case String.prototype :
buf = ((((buf + "s:") + calcLength(_local2)) + ":\"") + _local2) + "\";";
break;
case Date.prototype :
buf = ((((buf + "s:") + length(_local2)) + ":\"") + _local2) + "\";";
break;
case Object.prototype :
var _local4 = 0;
var _local5 = new String("");
buf = buf + "O:8:\"stdClass\":";
for (var _local6 in _local2) {
_local5 = _local5 + (serialize_internal("", _local6) + serialize_internal("", _local2[_local6]));
_local4 = _local4 + 1;
}
buf = (((buf + _local4) + ":{") + _local5) + "}";
break;
case Array.prototype :
_local4 = 0;
_local5 = new String("");
buf = buf + "a:";
for (var _local6 in _local2) {
_local5 = _local5 + (serialize_internal("", _local6) + serialize_internal("", _local2[_local6]));
_local4 = _local4 + 1;
}
buf = (((buf + _local4) + ":{") + _local5) + "}";
break;
default :
buf = buf + "i:0;";
}
return(buf);
}
function calcLength(struct) {
var _local1;
var _local3 = 0;
var _local4 = struct.length;
var _local2 = 0;
while (_local2 < _local4) {
_local1 = ord(struct.charAt(_local2));
if (_local1 < 128) {
_local3 = _local3 + 1;
} else if (_local1 < 1024) {
_local3 = _local3 + 2;
} else if (_local1 < 32768) {
_local3 = _local3 + 3;
} else if (_local1 < 2097152) {
_local3 = _local3 + 4;
}
_local2++;
}
return(_local3);
}
function unserialize(what) {
buffer = what;
return(unserialize_internal(what));
}
function unserialize_internal(obj) {
var _local3 = obj.charAt(0);
var _local2;
switch (_local3) {
case "d" :
_local2 = parse_double();
break;
case "i" :
_local2 = parse_int();
break;
case "b" :
_local2 = parse_boolean();
break;
case "s" :
_local2 = parse_string();
break;
case "a" :
_local2 = parse_array();
break;
case "O" :
_local2 = parse_object();
break;
case "N" :
}
if (_local2[0] != -1) {
buffer = buffer.substr(buffer.indexOf(";", (_local2[0] + length(_local3)) + length(_local2[0].toString())) + 1);
}
return(_local2[1]);
}
function parse_array() {
var _local3 = 0;
var _local5 = getArrayLength();
var _local4 = new Array();
while (_local3 < _local5) {
var _local2 = getNext();
_local4[_local2[0]] = _local2[1];
_local3++;
}
buffer = buffer.substr(1);
return(new Array(-1, _local4));
}
function parse_object() {
var _local6 = parse_string();
buffer = buffer.substr(buffer.indexOf(":", _local6[0]));
var _local7 = _local6[1];
var _local3 = 0;
var _local5 = getObjectLength();
var _local4 = new Object();
while (_local3 < _local5) {
var _local2 = getNext();
_local4[_local2[0]] = _local2[1];
_local3++;
}
buffer = buffer.substr(1);
return(new Array(-1, _local4));
}
function parse_string() {
var _local2 = getStringLenght();
var _local3 = getCStringLenght();
if (_local2 eq _local3) {
var _local4 = buffer.substr(length(_local2) + 4, _local2).toString();
} else {
var _local4 = buffer.substr(length(_local2) + 4, _local3).toString();
}
return(new Array(_local3, _local4));
}
function parse_boolean() {
var _local2 = getLength();
var _local3 = ((_local2 < 1) ? false : true);
return(new Array(length(_local2.toString()), _local3));
}
function parse_double() {
var _local2 = getFloatLength();
var _local3 = _local2;
return(new Array(length(_local2.toString()), _local3));
}
function parse_int() {
var _local2 = getLength();
var _local3 = _local2;
return(new Array(length(_local2.toString()), _local3));
}
function getStringLenght(str) {
var _local2 = parseInt(buffer.substr(2, buffer.indexOf(":", 3) - 2));
return(_local2);
}
function getCStringLenght(str) {
var _local6 = parseInt(buffer.substr(2, buffer.indexOf(":", 3) - 2));
var _local2;
var _local3 = _local6;
var _local4;
var _local5 = buffer;
_local4 = 4 + _local6.toString().length;
_local2 = 0;
while (_local2 < _local3) {
if (_local5.charCodeAt(_local2 + _local4) > 128) {
_local3 = _local3 - 1;
}
_local2++;
}
return(_local3);
}
function getLength() {
var _local2 = parseInt(buffer.substr(2, buffer.indexOf(";", 3) - 2));
return(_local2);
}
function getFloatLength() {
var _local2 = parseFloat(buffer.substr(2, buffer.indexOf(";", 3) - 2));
return(_local2);
}
function getArrayLength() {
var _local2 = parseInt(buffer.substr(2, (buffer.indexOf(":", 2) - buffer.indexOf(":", 1)) + 1));
buffer = buffer.substr(buffer.indexOf(":", 2) + 2);
return(_local2);
}
function getObjectLength() {
var _local2 = parseInt(buffer.substr(1, buffer.indexOf(":", 1)));
buffer = buffer.substr(buffer.indexOf(":", 1) + 2);
return(_local2);
}
function getNext(str) {
var _local2 = unserialize_internal(buffer);
var _local3 = unserialize_internal(buffer);
return(new Array(_local2, _local3));
}
static var className = "it.sephiroth.Serializer";
static var classVersion = "2.1.6";
var instanceName = "Serializer";
}
Symbol 1139 MovieClip [__Packages.as.md5] Frame 0
class as.md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
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));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
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);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 1140 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 1141 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 1142 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 1143 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 1144 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 1145 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1146 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 1147 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 1148 MovieClip [__Packages.RegExp] Frame 0
class RegExp
{
function RegExp () {
if (arguments[0] == null) {
} else {
const = "RegExp";
compile.apply(this, arguments);
}
}
function invStr(sVal) {
var _local5 = sVal;
var _local4 = length(_local5);
var _local1;
var _local3;
var _local6 = "";
var _local2 = 1;
while (_local2 < 255) {
_local3 = chr(_local2);
_local1 = 0;
while ((_local1 <= _local4) && ((substring(_local5, 1 + (_local1++), 1)) != _local3)) {
}
if (_local1 > _local4) {
_local6 = _local6 + _local3;
}
_local2++;
}
return(_local5);
}
function compile() {
source = arguments[0];
if (arguments.length > 1) {
var _local17 = (arguments[1] + "").toLowerCase();
var _local11 = 0;
while (_local11 < length(_local17)) {
if ((substring(_local17, _local11 + 1, 1)) == "g") {
global = true;
}
if ((substring(_local17, _local11 + 1, 1)) == "i") {
ignoreCase = true;
}
if ((substring(_local17, _local11 + 1, 1)) == "m") {
multiline = true;
}
_local11++;
}
}
if (arguments.length < 3) {
var _local20 = true;
_xrStatic = 1;
var _local11 = 0;
} else {
var _local20 = false;
_xr = _xrStatic++;
var _local11 = arguments[2];
}
lastIndex = 0;
var _local9 = source;
var _local21;
var _local14 = length(_local9);
var _local6 = [];
var _local4 = 0;
var _local5;
var _local8 = false;
var _local16;
var _local15;
var _local18 = false;
var _local19;
for ( ; _local11 < _local14 ; _local11++) {
var _local3 = substring(_local9, _local11 + 1, 1);
if (_local3 == "\\") {
_local11++;
_local19 = false;
_local3 = substring(_local9, _local11 + 1, 1);
} else {
_local19 = true;
}
var _local13 = substring(_local9, _local11 + 2, 1);
_local6[_local4] = new Object();
_local6[_local4].t = 0;
_local6[_local4].a = 0;
_local6[_local4].b = 999;
_local6[_local4].c = -10;
if (_local19) {
if (_local3 == "(") {
_local21 = new RegExp(_local9, (ignoreCase ? "gi" : "g"), _local11 + 1);
_local11 = _xiStatic;
_local6[_local4].t = 3;
_local3 = _local21;
_local13 = substring(_local9, _local11 + 2, 1);
} else {
if ((!_local20) && (_local3 == ")")) {
break;
}
if (_local3 == "^") {
if ((_local4 == 0) || (_local6[_local4 - 1].t == 7)) {
_local6[_local4].t = 9;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
}
} else if (_local3 == "$") {
if (_local20) {
_local18 = true;
}
} else {
if (_local3 == "[") {
_local11++;
if (_local13 == "^") {
_local6[_local4].t = 2;
_local11++;
} else {
_local6[_local4].t = 1;
}
_local3 = "";
_local8 = false;
while ((_local11 < _local14) && ((_local5 = substring(_local9, 1 + (_local11++), 1)) != "]")) {
if (_local8) {
if (_local5 == "\\") {
}
_local15 = ((_local5 == "\\") ? ((_local5 == "b") ? "\b" : (substring(_local9, 1 + (_local11++), 1))) : _local5);
_local16 = ord(substring(_local3, length(_local3), 1)) + 1;
_local5 = chr(_local16++);
while (_local15 >= _local5) {
_local3 = _local3 + _local5;
}
_local8 = false;
} else if ((_local5 == "-") && (length(_local3) > 0)) {
_local8 = true;
} else if (_local5 == "\\") {
_local5 = substring(_local9, 1 + (_local11++), 1);
if (_local5 == "d") {
_local3 = _local3 + "0123456789";
} else if (_local5 == "D") {
_local3 = _local3 + invStr("0123456789");
} else if (_local5 == "s") {
_local3 = _local3 + " \f\n\r\t\\";
} else if (_local5 == "S") {
_local3 = _local3 + invStr(" \f\n\r\t\\");
} else if (_local5 == "w") {
_local3 = _local3 + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
} else if (_local5 == "W") {
_local3 = _local3 + invStr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_");
} else if (_local5 == "b") {
_local3 = _local3 + "\b";
} else if (_local5 == "\\") {
_local3 = _local3 + _local5;
}
} else {
_local3 = _local3 + _local5;
}
}
if (_local8) {
_local3 = _local3 + "-";
}
_local11--;
_local13 = substring(_local9, _local11 + 2, 1);
} else {
if (_local3 == "|") {
if (_local18) {
_local6[_local4].t = 10;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
_local6[_local4] = new Object();
_local18 = false;
}
_local6[_local4].t = 7;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
continue;
}
if (_local3 == ".") {
_local6[_local4].t = 2;
_local3 = newline;
} else if (((_local3 == "*") || (_local3 == "?")) || (_local3 == "+")) {
continue;
}
}
// unexpected jump
if ((_local3 >= "1") && (_local3 <= "9")) {
_local6[_local4].t = 4;
} else if (_local3 == "b") {
_local6[_local4].t = 1;
_local3 = "--wb--";
} else if (_local3 == "B") {
_local6[_local4].t = 2;
_local3 = "--wb--";
} else if (_local3 == "d") {
_local6[_local4].t = 1;
_local3 = "0123456789";
} else if (_local3 == "D") {
_local6[_local4].t = 2;
_local3 = "0123456789";
} else if (_local3 == "s") {
_local6[_local4].t = 1;
_local3 = " \f\n\r\t\\";
} else if (_local3 == "S") {
_local6[_local4].t = 2;
_local3 = " \f\n\r\t\\";
} else if (_local3 == "w") {
_local6[_local4].t = 1;
_local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
} else if (_local3 == "W") {
_local6[_local4].t = 2;
_local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
}
if (_local13 == "*") {
_local6[_local4].s = _local3;
_local4++;
_local11++;
} else if (_local13 == "?") {
_local6[_local4].s = _local3;
_local6[_local4].b = 1;
_local4++;
_local11++;
} else if (_local13 == "+") {
_local6[_local4].s = _local3;
_local6[_local4].a = 1;
_local4++;
_local11++;
} else if (_local13 == "{") {
var _local12 = false;
var _local7 = 0;
_local8 = "";
_local11++;
while (((_local11 + 1) < _local14) && ((_local5 = substring(_local9, 2 + (_local11++), 1)) != "}")) {
if ((!_local12) && (_local5 == ",")) {
_local12 = true;
_local7 = Number(_local8);
_local7 = Math.floor((isNaN(_local7) ? 0 : _local7));
if (_local7 < 0) {
_local7 = 0;
}
_local8 = "";
} else {
_local8 = _local8 + _local5;
}
}
var _local10 = Number(_local8);
_local10 = Math.floor((isNaN(_local10) ? 0 : _local10));
if (_local10 < 1) {
_local10 = 999;
}
if (_local10 < _local7) {
_local10 = _local7;
}
_local6[_local4].s = _local3;
_local6[_local4].b = _local10;
_local6[_local4].a = (_local12 ? _local7 : _local10);
_local4++;
} else {
_local6[_local4].s = _local3;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
}
}
}
} else if ((_local3 >= "1") && (_local3 <= "9")) {
_local6[_local4].t = 4;
} else if (_local3 == "b") {
_local6[_local4].t = 1;
_local3 = "--wb--";
} else if (_local3 == "B") {
_local6[_local4].t = 2;
_local3 = "--wb--";
} else if (_local3 == "d") {
_local6[_local4].t = 1;
_local3 = "0123456789";
} else if (_local3 == "D") {
_local6[_local4].t = 2;
_local3 = "0123456789";
} else if (_local3 == "s") {
_local6[_local4].t = 1;
_local3 = " \f\n\r\t\\";
} else if (_local3 == "S") {
_local6[_local4].t = 2;
_local3 = " \f\n\r\t\\";
} else if (_local3 == "w") {
_local6[_local4].t = 1;
_local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
} else if (_local3 == "W") {
_local6[_local4].t = 2;
_local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_";
}
if (_local13 == "*") {
_local6[_local4].s = _local3;
_local4++;
_local11++;
} else if (_local13 == "?") {
_local6[_local4].s = _local3;
_local6[_local4].b = 1;
_local4++;
_local11++;
} else if (_local13 == "+") {
_local6[_local4].s = _local3;
_local6[_local4].a = 1;
_local4++;
_local11++;
} else if (_local13 == "{") {
var _local12 = false;
var _local7 = 0;
_local8 = "";
_local11++;
while (((_local11 + 1) < _local14) && ((_local5 = substring(_local9, 2 + (_local11++), 1)) != "}")) {
if ((!_local12) && (_local5 == ",")) {
_local12 = true;
_local7 = Number(_local8);
_local7 = Math.floor((isNaN(_local7) ? 0 : _local7));
if (_local7 < 0) {
_local7 = 0;
}
_local8 = "";
} else {
_local8 = _local8 + _local5;
}
}
var _local10 = Number(_local8);
_local10 = Math.floor((isNaN(_local10) ? 0 : (_local10)));
if (_local10 < 1) {
_local10 = 999;
}
if (_local10 < _local7) {
_local10 = _local7;
}
_local6[_local4].s = _local3;
_local6[_local4].b = _local10;
_local6[_local4].a = (_local12 ? (_local7) : (_local10));
_local4++;
} else {
_local6[_local4].s = _local3;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
}
}
if (_local20 && (_local18)) {
_local6[_local4] = new Object();
_local6[_local4].t = 10;
_local6[_local4].a = 1;
_local6[_local4].b = 1;
_local4++;
}
if (!_local20) {
_xiStatic = _local11;
source = substring(_local9, arguments[2] + 1, _local11 - arguments[2]);
}
if (d) {
_local11 = 0;
while (_local11 < _local4) {
trace((((((((("xr" + _xr) + " ") + _local6[_local11].t) + " : ") + _local6[_local11].a) + " : ") + _local6[_local11].b) + " : ") + _local6[_local11].s);
_local11++;
}
}
_xq = _local6;
_xqc = _local4;
_xp = 0;
}
function test() {
if ((_xp++) == 0) {
_xxa = [];
_xxlp = 0;
}
var _local11 = arguments[0] + "";
var _local15;
var _local4 = _xq;
var _local18 = _xqc;
var _local14;
var _local7;
var _local8;
var _local9;
var _local13;
var _local12 = length(_local11);
var _local5 = (global ? (lastIndex) : 0);
var _local21 = _local5;
var _local19 = _local11;
if (ignoreCase) {
_local11 = _local11.toLowerCase();
}
var _local16 = new Object();
_local16.i = -1;
var _local3 = -1;
while (_local3 < (_local18 - 1)) {
_local3++;
if (d) {
trace("New section started at i=" + _local3);
}
_local5 = _local21;
_local14 = _local3;
_local4[_local14].c = -10;
var _local20 = false;
while ((_local3 > _local14) || (_local5 < (_local12 + 1))) {
if (_local4[_local3].t == 7) {
break;
}
if (_local4[_local3].t == 9) {
_local3++;
if (_local3 == (_local14 + 1)) {
var _local17 = true;
_local14 = _local3;
}
_local4[_local14].c = -10;
continue;
}
if ((_local16.i >= 0) && (_local5 >= _local16.i)) {
break;
}
if (_local4[_local3].c == -10) {
if (d) {
trace((((((("Lookup #" + _local3) + " at index ") + _local5) + " for \\\\\\\\\\\\\\\\'") + _local4[_local3].s) + "\\\\\\\\\\\\\\\\' type ") + _local4[_local3].t);
}
var _local6 = 0;
_local4[_local3].i = _local5;
if (_local4[_local3].t == 0) {
_local7 = (ignoreCase ? (_local4[_local3].s.toLowerCase()) : (_local4[_local3].s));
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
if ((substring(_local11, 1 + _local5, 1)) == _local7) {
_local6++;
_local5++;
} else {
break;
}
}
} else if (_local4[_local3].t == 1) {
if (_local4[_local3].s == "--wb--") {
_local4[_local3].a = 1;
if ((_local5 > 0) && (_local5 < _local12)) {
_local9 = substring(_local11, _local5, 1);
if ((_local9 == " ") || (_local9 == "\\\\\\\\\\\\\\\\n")) {
_local6 = 1;
}
if (_local6 == 0) {
_local9 = substring(_local11, 1 + _local5, 1);
if ((_local9 == " ") || (_local9 == "\\\\\\\\\\\\\\\\n")) {
_local6 = 1;
}
}
} else {
_local6 = 1;
}
} else {
_local7 = (ignoreCase ? (_local4[_local3].s.toLowerCase()) : (_local4[_local3].s));
_local8 = length(_local7);
var _local10;
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
_local9 = substring(_local11, 1 + _local5, 1);
_local10 = 0;
while ((_local10 <= _local8) && ((substring(_local7, 1 + (_local10++), 1)) != _local9)) {
}
if (_local10 <= _local8) {
_local6++;
_local5++;
} else {
break;
}
}
}
} else if (_local4[_local3].t == 2) {
_local7 = (ignoreCase ? (_local4[_local3].s.toLowerCase()) : (_local4[_local3].s));
_local8 = length(_local7);
if (_local4[_local3].s == "--wb--") {
_local4[_local3].a = 1;
if ((_local5 > 0) && (_local5 < _local12)) {
_local9 = substring(_local11, _local5, 1);
_local13 = substring(_local11, 1 + _local5, 1);
if ((((_local9 != " ") && (_local9 != "\\\\\\\\\\\\\\\\n")) && (_local13 != " ")) && (_local13 != "\\\\\\\\\\\\\\\\n")) {
_local6 = 1;
}
} else {
_local6 = 0;
}
} else {
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
_local9 = substring(_local11, 1 + _local5, 1);
var _local10 = 0;
while ((_local10 <= _local8) && ((substring(_local7, 1 + (_local10++), 1)) != _local9)) {
}
if (_local10 <= _local8) {
break;
}
_local6++;
_local5++;
}
}
} else if (_local4[_local3].t == 10) {
_local13 = substring(_local11, 1 + _local5, 1);
_local6 = (((multiline && ((_local13 == "\\\\\\\\\\\\\\\\n") || (_local13 == "\\\\\\\\\\\\\\\\r"))) || (_local5 == _local12)) ? 1 : 0);
} else if (_local4[_local3].t == 3) {
_local15 = _local4[_local3].s;
_local4[_local3].ix = [];
_local4[_local3].ix[_local6] = _local5;
_local15.lastIndex = _local5;
while ((_local6 < _local4[_local3].b) && _local15.test(_local19)) {
_local8 = length(_xxlm);
if (_local8 > 0) {
_local5 = _local5 + _local8;
_local6++;
_local4[_local3].ix[_local6] = _local5;
} else {
_local6 = _local4[_local3].a;
_local4[_local3].ix[_local6 - 1] = _local5;
break;
}
}
if (_local6 == 0) {
_xxlm = "";
}
if (_local15._xr > _xxlp) {
_xxlp = _local15._xr;
}
_xxa[Number(_local15._xr)] = _xxlm;
} else if (_local4[_local3].t == 4) {
_local7 = Number(_local4[_local3].s);
if (_xp >= _local7) {
_local7 = _xxa[_local7];
_local7 = (ignoreCase ? _local7.toLowerCase() : _local7);
_local8 = length(_local7);
_local4[_local3].ix = [];
_local4[_local3].ix[_local6] = _local5;
if (_local8 > 0) {
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
if ((substring(_local11, 1 + _local5, _local8)) == _local7) {
_local6++;
_local5 = _local5 + _local8;
_local4[_local3].ix[_local6] = _local5;
} else {
break;
}
}
} else {
_local6 = 0;
_local4[_local3].a = 0;
}
} else {
_local7 = chr(_local7);
_local4[_local3].ix = [];
_local4[_local3].ix[_local6] = _local5;
while ((_local6 < _local4[_local3].b) && (_local5 < _local12)) {
if ((substring(_local11, 1 + _local5, 1)) == _local7) {
_local6++;
_local5++;
_local4[_local3].ix[_local6] = _local5;
} else {
break;
}
}
}
}
_local4[_local3].c = _local6;
if (d) {
trace((" " + _local6) + " matches found");
}
}
if (_local4[_local3].c < _local4[_local3].a) {
if (d) {
trace(" not enough matches");
}
if (_local3 > _local14) {
_local3--;
_local4[_local3].c--;
if (_local4[_local3].c >= 0) {
_local5 = (((_local4[_local3].t == 3) || (_local4[_local3].t == 4)) ? (_local4[_local3].ix[_local4[_local3].c]) : (_local4[_local3].i + _local4[_local3].c));
}
if (d) {
trace((((("Retreat to #" + _local3) + " c=") + _local4[_local3].c) + " index=") + _local5);
}
} else {
if (_xp > 1) {
break;
}
if (_local17) {
if (multiline) {
do {
if (_local5 > _local12) {
break;
}
_local13 = substring(_local11, 1 + (_local5++), 1);
} while (!((_local13 == "\\\\\\\\\\\\\\\\n") || (_local13 == "\\\\\\\\\\\\\\\\r")));
_local4[_local3].c = -10;
} else {
break;
}
} else {
_local5++;
_local4[_local3].c = -10;
}
}
} else {
if (d) {
trace(" enough matches!");
}
_local3++;
if ((_local3 == _local18) || (_local4[_local3].t == 7)) {
if (d) {
trace((("Saving better result: r.i = q[" + _local14) + "].i = ") + _local4[_local14].i);
}
_local16.i = _local4[_local14].i;
_local16.li = _local5;
break;
}
_local4[_local3].c = -10;
}
}
while ((_local3 < _local18) && (_local4[_local3].t != 7)) {
_local3++;
}
}
if (_local16.i < 0) {
lastIndex = 0;
if ((_xp--) == 1) {
_xxa = [];
_xxlp = 0;
}
return(false);
}
_local5 = _local16.li;
_xi = _local16.i;
_xxlm = substring(_local19, _local16.i + 1, _local5 - _local16.i);
_xxlc = substring(_local19, 1, _local16.i);
_xxrc = substring(_local19, _local5 + 1, _local12 - _local5);
if (_local5 == _local16.i) {
_local5++;
}
lastIndex = _local5;
if ((_xp--) == 1) {
lastMatch = _xxlm;
leftContext = _xxlc;
rightContext = _xxrc;
_xaStatic = _xxa;
lastParen = _xxa[Number(_xxlp)];
_local3 = 1;
while (_local3 < 10) {
RegExp["$" + _local3] = _xaStatic[Number(_local3)];
_local3++;
}
}
return(true);
}
function exec() {
var _local5 = arguments[0] + "";
if (_local5 == "") {
return(false);
}
var _local6 = test(_local5);
if (_local6) {
var _local7 = new Array();
_local7.index = _xi;
_local7.input = _local5;
_local7[0] = lastMatch;
var _local4 = _xaStatic.length;
var _local3 = 1;
while (_local3 < _local4) {
_local7[_local3] = _xaStatic[Number(_local3)];
_local3++;
}
} else {
var _local7 = null;
}
return(_local7);
}
static function setStringMethods() {
if (String.prototype.match != undefined) {
return(undefined);
}
String.prototype.match = function () {
if (typeof(arguments[0]) != "object") {
return(null);
}
if (arguments[0].const != "RegExp") {
return(null);
}
var _local3 = arguments[0];
var _local5 = this.valueOf();
var _local6 = 0;
var _local4 = 0;
if (_local3.global) {
_local3.lastIndex = 0;
while (_local3.test(_local5)) {
if (_local4 == 0) {
var _local7 = new Array();
}
_local7[_local4++] = RegExp.lastMatch;
_local6 = _local3.lastIndex;
}
_local3.lastIndex = _local6;
} else {
var _local7 = _local3.exec(_local5);
_local4++;
}
return(((_local4 == 0) ? null : (_local7)));
};
String.prototype.replace = function () {
if (typeof(arguments[0]) != "object") {
return(null);
}
if (arguments[0].const != "RegExp") {
return(null);
}
var _local8 = arguments[0];
var _local7 = arguments[1] + "";
var _local11 = this;
var _local12 = "";
_local8.lastIndex = 0;
if (_local8.global) {
var _local13 = 0;
var _local10 = 0;
while (_local8.test(_local11)) {
var _local5 = 0;
var _local9 = length(_local7);
var _local3 = "";
var _local6 = "";
var _local4 = "";
while (_local5 < _local9) {
_local3 = substring(_local7, 1 + (_local5++), 1);
if ((_local3 == "$") && (_local6 != "\\")) {
_local3 = substring(_local7, 1 + (_local5++), 1);
if (isNaN(Number(_local3)) || (Number(_local3) > 9)) {
_local4 = _local4 + ("$" + _local3);
} else {
_local4 = _local4 + RegExp._xaStatic[Number(_local3)];
}
} else {
_local4 = _local4 + _local3;
}
_local6 = _local3;
}
_local12 = _local12 + ((substring(_local11, _local10 + 1, _local8._xi - _local10)) + _local4);
_local10 = _local8._xi + length(RegExp.lastMatch);
_local13 = _local8.lastIndex;
}
_local8.lastIndex = _local13;
} else if (_local8.test(_local11)) {
_local12 = _local12 + (RegExp.leftContext + _local7);
}
_local12 = _local12 + ((_local8.lastIndex == 0) ? (_local11) : (RegExp.rightContext));
return(_local12);
};
String.prototype.search = function () {
if (typeof(arguments[0]) != "object") {
return(null);
}
if (arguments[0].const != "RegExp") {
return(null);
}
var _local3 = arguments[0];
var _local5 = this;
_local3.lastIndex = 0;
var _local4 = _local3.test(_local5);
return((_local4 ? (_local3._xi) : -1));
};
String.prototype.old_split = String.prototype.split;
String.prototype.split = function () {
if ((typeof(arguments[0]) == "object") && (arguments[0].const == "RegExp")) {
var _local3 = arguments[0];
var _local8 = ((arguments[1] == null) ? 9999 : (Number(arguments[1])));
if (isNaN(_local8)) {
_local8 = 9999;
}
var _local6 = this;
var _local9 = new Array();
var _local5 = 0;
var _local11 = _local3.global;
_local3.global = true;
_local3.lastIndex = 0;
var _local7 = 0;
var _local10 = 0;
var _local4 = 0;
while ((_local5 < _local8) && (_local3.test(_local6))) {
if (_local3._xi != _local4) {
_local9[_local5++] = substring(_local6, _local4 + 1, _local3._xi - _local4);
}
_local4 = _local3._xi + length(RegExp.lastMatch);
_local10 = _local7;
_local7 = _local3.lastIndex;
}
if (_local5 == _local8) {
_local3.lastIndex = _local10;
} else {
_local3.lastIndex = _local7;
}
if (_local5 == 0) {
_local9[_local5] = _local6;
} else if ((_local5 < _local8) && (length(RegExp.rightContext) > 0)) {
_local9[_local5++] = RegExp.rightContext;
}
_local3.global = _local11;
return(_local9);
}
return(this.old_split(arguments[0], arguments[1]));
};
return(true);
}
var const = null;
var source = null;
var global = false;
var ignoreCase = false;
var multiline = false;
var lastIndex = null;
static var _xrStatic = null;
var _xr = null;
static var _xp = null;
static var _xxa = null;
static var _xxlp = null;
var _xq = null;
var _xqc = null;
static var d = null;
static var _xiStatic = null;
var _xi = 0;
static var _xxlm = null;
static var _xxlc = null;
static var _xxrc = null;
static var lastMatch = null;
static var leftContext = null;
static var rightContext = null;
static var _xa = new Array();
static var lastParen = null;
static var _xaStatic = new Array();
static var $1 = null;
static var $2 = null;
static var $3 = null;
static var $4 = null;
static var $5 = null;
static var $6 = null;
static var $7 = null;
static var $8 = null;
static var $9 = null;
static var _setString = setStringMethods();
}
Symbol 667 MovieClip [__Packages.mx.remoting.DebugClasses] Frame 0
class mx.remoting.DebugClasses extends MovieClip
{
function DebugClasses () {
super();
}
}
Symbol 674 MovieClip [__Packages.mx.remoting.NetServices] Frame 0
class mx.remoting.NetServices extends Object
{
static var defaultGatewayUrl, logger, traceNetServices;
function NetServices () {
super();
}
static function setDefaultGatewayUrl(url) {
defaultGatewayUrl = url;
}
static function setGatewayUrl(url) {
gatewayUrl = url;
}
static function createGatewayConnection(url, infoLogger) {
var _local1 = url;
logger = infoLogger;
if (_local1 == undefined) {
_local1 = gatewayUrl;
if (_local1 == undefined) {
_local1 = defaultGatewayUrl;
}
}
if (_local1 == undefined) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is undefined");
logger.logInfo(("NetServices: createGatewayConnection - gateway url <" + _local1) + "> is undefined", mx.services.Log.DEBUG);
return(null);
}
var _local2 = new mx.remoting.Connection();
_local2.connect(_local1);
__sharedConnections[_local1] = _local2;
return(_local2);
}
static function getConnection(uri) {
return(__sharedConnections[uri]);
}
static function getHostUrl() {
var _local2 = _root;
if (!isHttpUrl(_local2._url)) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
return(_local2._url.substring(0, _local1));
}
static function isHttpUrl(url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
}
static function getHttpUrl(url) {
var _local1 = url;
if (!isHttpUrl(_local1)) {
_local1 = getHostUrl() + _local1;
}
return(_local1);
}
static function trace(who, severity, number, message) {
traceNetServices(who, severity, number, message);
}
static var version = "1.2.0.124";
static var gatewayUrl = _root.gatewayUrl;
static var __sharedConnections = new Array();
}
Symbol 675 MovieClip [__Packages.mx.data.DataRange] Frame 0
interface mx.data.DataRange{}
Symbol 676 MovieClip [__Packages.mx.data.PageableData] Frame 0
interface mx.data.PageableData{}
Symbol 677 MovieClip [__Packages.mx.data.PageableList] Frame 0
interface mx.data.PageableList{}
Symbol 680 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator{}
Symbol 681 MovieClip [__Packages.mx.remoting.RecordSet] Frame 0
class mx.remoting.RecordSet extends Object
{
var mTitles, _items, mRecordSetID, dispatchEvent, gateway_conn, mDataFetcher;
function RecordSet (columnNames) {
var _local1 = this;
super();
mx.events.EventDispatcher.initialize(_local1);
_local1._items = new Array();
_local1.uniqueID = 0;
if (_local1.mTitles != null) {
} else {
if (_local1.serverInfo == null) {
if (_local1.serverinfo != null) {
_local1.serverInfo = _local1.serverinfo;
}
}
if (_local1.serverInfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverInfo.version != 1) {
mx.remoting.NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
} else {
_local1.mTitles = _local1.serverInfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverInfo.cursor == null) ? 0 : (_local1.serverInfo.cursor - 1)), _local1.serverInfo.initialData);
if (_local1.serverInfo.initialData.length != _local1.serverInfo.totalCount) {
_local1.mRecordSetID = _local1.serverInfo.id;
if (_local1.mRecordSetID != null) {
_local1.serviceName = ((_local1.serverInfo.serviceName == null) ? "RecordSet" : (_local1.serverInfo.serviceName));
_local1.mTotalCount = _local1.serverInfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
mx.remoting.NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
_local1.serverInfo = null;
}
}
}
function addItem(item) {
addItemAt(length, item);
}
function addItemAt(index, item) {
var _local1 = index;
var _local2 = this;
var _local3 = true;
if ((_local1 < _local2.__get__length()) && (_local1 >= 0)) {
_local2.items.splice(_local1, 0, item);
} else if (_local1 == _local2.__get__length()) {
_local2.items[_local1] = item;
} else {
_local3 = false;
mx.remoting.NetServices.trace("Cannot add an item outside the bounds of the RecordSet");
return;
}
if (_local3) {
item.__ID__ = _local2.uniqueID++;
}
_local2.updateViews("addItems", _local1, _local1);
}
function addEventListener(event, listener) {
}
function clear() {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
var _local2 = _local1.items.length;
_local1.items.splice(0);
_local1.uniqueID = 0;
_local1.updateViews("removeItems", 0, _local2);
}
}
function contains(itmToCheck) {
var _local2 = itmToCheck;
if (isObjectEmpty(_local2)) {
return(false);
}
var itemAtIndex;
var _local3;
var _local1 = 0;
while (_local1 < items.length) {
itemAtIndex = items[_local1];
_local3 = true;
for (var t in _local2) {
if (_local2[t] != itemAtIndex[t]) {
_local3 = false;
break;
}
}
if (_local3) {
return(true);
}
_local1++;
}
return(false);
}
function getColumnNames() {
return(mTitles);
}
function get columnNames() {
return(getColumnNames());
}
function getLocalLength() {
return(items.length);
}
function getLength() {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
}
function getIterator() {
var _local1 = new mx.remoting.RecordSetIterator(this);
return(_local1);
}
function get length() {
return(getLength());
}
function getItemAt(index) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.__get__length())) {
return(null);
}
if (_local2.mRecordSetID == null) {
return(_local2.items[_local1]);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
}
function getItemID(index) {
return(items[index].__ID__);
}
function get items() {
return(_items);
}
function initialize(info) {
}
function filter(filterFunction, context) {
if (checkLocal()) {
} else {
var _local3 = new mx.remoting.RecordSet(mTitles);
var rcount = length;
var _local2 = 0;
while (_local2 < rcount) {
var _local1 = getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
_local3.addItem(_local1);
}
_local2++;
}
return(_local3);
}
return(undefined);
}
function sortItems(compareFunc, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc, optionFlags);
_local1.updateViews("sort");
}
}
function sortItemsBy(fieldNames, order, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
if (typeof(order) == "string") {
_local1.items.sortOn(fieldNames);
if (order.toUpperCase() == "DESC") {
_local1.items.reverse();
}
} else {
_local1.items.sortOn(fieldNames, optionFlags);
}
_local1.updateViews("sort");
}
}
function sort(compareFunc) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews("sort");
}
}
function isEmpty() {
return(items.length == 0);
}
function isLocal() {
return(mRecordSetID == null);
}
function isFullyPopulated() {
return(isLocal());
}
function getRemoteLength() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.mRecordsAvailable);
}
return(_local1.mTotalCount);
}
function getNumberAvailable() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.getLength());
}
return(_local1.mRecordsAvailable);
}
function replaceItemAt(index, item) {
var _local1 = index;
var _local2 = this;
if ((_local1 >= 0) && (_local1 <= _local2.__get__length())) {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = item;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function removeAll() {
clear();
}
function removeItemAt(index) {
var _local1 = index;
var _local2 = this;
var _local3 = _local2._items[_local1];
_local2._items.splice(_local1, 1);
var rItems = [_local2._items[_local1]];
var rIDs = [_local2.getItemID(_local1)];
_local2.dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local1, lastItem:_local1, removedItems:rItems, removedIDs:rIDs});
return(_local3);
}
function removeEventListener(event, listener) {
}
function requestRange(range) {
var _local1 = range.getStart();
var _local2 = range.getEnd();
return(internalRequestRange(_local1, _local2));
}
function setDeliveryMode(mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = numPrefetchPages;
_local1.mDeliveryMode = mode.toLowerCase();
_local1.stopFetchAll();
if ((_local2 == null) || (_local2 <= 0)) {
_local2 = 25;
}
switch (_local1.mDeliveryMode) {
case "ondemand" :
return;
case "page" :
if (_local3 == null) {
_local3 = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = _local3;
return;
case "fetchall" :
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
return;
default :
mx.remoting.NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
function editField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function getEditingData(index, fieldName) {
return(items[index][fieldName]);
}
function setField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function changeFieldValue(index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function isObjectEmpty(objToCheck) {
var _local2 = objToCheck;
var _local1 = true;
for (var _local3 in _local2) {
_local1 = false;
return(_local1);
}
return(_local1);
}
function arrayToObject(anArray) {
if (mTitles == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local3 = new Object();
var alen = anArray.length;
var _local2;
var _local1 = 0;
while (_local1 < alen) {
_local2 = mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
_local3[_local2] = anArray[_local1];
_local1++;
}
return(_local3);
}
function checkLocal() {
if (isLocal()) {
return(false);
}
mx.remoting.NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(true);
}
function getRecordSetService() {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = mx.remoting.NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordSet();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetID);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
_local1.mRecordSetService = null;
}
}
return(_local1.mRecordSetService);
}
function internalRequestRange(index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.getRemoteLength()) {
lastIndex = _local2.getRemoteLength() - 1;
}
var _local3;
var last;
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
_local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
last = _local1 - 1;
if (_local3 <= last) {
_local2.logger.logInfo((((" Fetching records from index [" + _local3) + "] to index [") + last) + "]");
_local2.getRecordSetService().getRecords(_local2.mRecordSetID, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews("fetchRows", _local3, last);
}
}
return(highestRequested);
}
function removeItems(index, len) {
var _local3 = index;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < len) {
_local2.push(getItemID(_local3 + _local1));
_local1++;
}
var oldItems = items.splice(_local3, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local3, lastItem:(_local3 + len) - 1, removedItems:oldItems, removedIDs:_local2});
}
function getRecords_Result(info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews("updateItems", _local2.Cursor - 1, ((_local2.Cursor - 1) + _local2.Page.length) - 1);
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews("allRows");
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
}
function release_Result() {
}
function requestOneRecord(index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
if (_local1.mDeliveryMode == "ondemand") {
_local1.logger.logInfo((" INFO: Fetching Record [" + _local2) + "]");
}
_local1.getRecordSetService().getRecords(_local1.mRecordSetID, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews("fetchRows", _local2, _local2);
}
}
function requestRecord(index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.internalRequestRange(_local2, _local3);
}
}
function _setParentService(service) {
gateway_conn = service.nc;
}
function setData(start, dataArray) {
var _local1 = this;
var datalen = dataArray.length;
var _local3;
var rec;
var _local2 = 0;
while (_local2 < datalen) {
_local3 = _local2 + start;
rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
mx.remoting.NetServices.trace("RecordSet", "warning", 106, "Already got record # " + _local3);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
}
function startFetchAll(pagesize) {
var _local1 = this;
if (_local1.mDataFetcher != null) {
_local1.mDataFetcher.disable();
}
_local1.mDataFetcher = new mx.remoting.RsDataFetcher(_local1, pagesize);
}
function stopFetchAll() {
mDataFetcher.disable();
mDataFetcher = null;
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static function registerRecordSet() {
Object.registerClass("RecordSet", mx.remoting.RecordSet);
return(true);
}
static var version = "1.2.0.124";
static var init = registerRecordSet();
}
Symbol 682 MovieClip [__Packages.mx.remoting.RecordSetIterator] Frame 0
class mx.remoting.RecordSetIterator
{
var _recordSet, _cursor;
function RecordSetIterator (rec) {
_recordSet = rec;
_cursor = 0;
}
function hasNext() {
return(_cursor < _recordSet.getLength());
}
function next() {
return(_recordSet.getItemAt(_cursor++));
}
static var version = "1.2.0.124";
}
Symbol 683 MovieClip [__Packages.mx.remoting.RsDataRange] Frame 0
class mx.remoting.RsDataRange extends Object
{
var _start, _end;
function RsDataRange (s, e) {
super();
_start = s;
_end = e;
}
function getStart() {
return(_start);
}
function getEnd() {
return(_end);
}
function setEnd(e) {
_end = e;
}
function setStart(s) {
_start = s;
}
}
Symbol 684 MovieClip [__Packages.mx.remoting.RsDataFetcher] Frame 0
class mx.remoting.RsDataFetcher extends Object
{
var mEnabled;
function RsDataFetcher (pgRS, increment) {
var _local1 = this;
super();
_local1.mRecordSet = pgRS;
_local1.mRecordSet.addEventListener("modelChanged", _local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
}
function disable() {
mEnabled = false;
}
function doNext() {
var _local1 = this;
if (_local1.mEnabled) {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.getRemoteLength()) {
return;
}
var _local2 = new mx.remoting.RsDataRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mHighestRequested = _local1.mRecordSet.requestRange(_local2);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
}
function modelChanged(eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.eventName == "updateItems") && (_local2.firstItem <= _local1.mHighestRequested)) && (_local2.lastItem >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.eventName == "allRows") {
_local1.disable();
}
}
}
Symbol 685 MovieClip [__Packages.mx.remoting.NetServiceProxyResponder] Frame 0
class mx.remoting.NetServiceProxyResponder extends Object
{
var service, methodName;
function NetServiceProxyResponder (serv, method) {
super();
service = serv;
methodName = method;
}
function onResult(result) {
var _local2 = result;
var _local1 = service.client;
if ((_local2 instanceof mx.remoting.NetServiceProxy) || (_local2 instanceof mx.remoting.RecordSet)) {
_local2._setParentService(service);
}
var _local3 = methodName + "_Result";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + _local2);
}
}
function onStatus(result) {
var _local2 = result;
var _local1 = service.client;
var _local3 = methodName + "_Status";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onStatus) == "function") {
_local1.onStatus(_local2);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local2);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: <") + _local2.level) + "> ") + _local2.description);
}
}
}
Symbol 687 MovieClip [__Packages.mx.utils.ObjectCopy] Frame 0
class mx.utils.ObjectCopy
{
function ObjectCopy () {
}
static function copy(refObj) {
var _local1 = new Function(refObj.__proto__.constructor)();
copyProperties(_local1, refObj);
return(_local1);
}
static function copyProperties(dstObj, srcObj) {
var _local2 = srcObj;
var to;
for (var i in _local2) {
to = typeof(_local2[i]);
if (to != "function") {
if (to == "object") {
if (_local2[i] instanceof Array) {
var p = new Array();
var _local3 = _local2[i];
var _local1 = 0;
while (_local1 < _local3.length) {
p[_local1] = _local3[_local1];
_local1++;
}
dstObj[i] = p;
} else if (_local2[i] instanceof String) {
dstObj[i] = new String(_local2[i]);
} else if (_local2[i] instanceof Number) {
dstObj[i] = new Number(_local2[i]);
} else if (_local2[i] instanceof Boolean) {
dstObj[i] = new Boolean(_local2[i]);
} else {
dstObj[i] = copy(_local2[i]);
}
} else {
dstObj[i] = _local2[i];
}
}
}
}
}
Symbol 688 MovieClip [__Packages.mx.remoting.debug.events.NetDebug] Frame 0
class mx.remoting.debug.events.NetDebug extends Object
{
var date, time;
function NetDebug () {
super();
init();
}
function init() {
var _local1 = this;
_local1.eventType = "DebugEvent";
_local1.source = "Client";
_local1.movieUrl = unescape(_root._url);
_local1.initDate();
}
function initDate() {
var _local1 = new Date();
date = _local1;
time = _local1.getTime();
}
}
Symbol 689 MovieClip [__Packages.mx.remoting.debug.events.NetDebugNetConnection] Frame 0
class mx.remoting.debug.events.NetDebugNetConnection extends mx.remoting.debug.events.NetDebug
{
function NetDebugNetConnection () {
super();
}
}
Symbol 690 MovieClip [__Packages.mx.remoting.debug.events.NetDebugConnect] Frame 0
class mx.remoting.debug.events.NetDebugConnect extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugConnect (args) {
var _local1 = args;
var _local2 = this;
super();
_local2.eventType = "Connect";
_local2.connectString = _local1[0];
if (_local1[1] != null) {
_local2.userName = _local1[1];
}
if (_local1[2] != null) {
_local2.password = _local1[2];
}
}
}
Symbol 691 MovieClip [__Packages.mx.remoting.debug.commands.Local] Frame 0
class mx.remoting.debug.commands.Local extends Object
{
var command, data;
function Local () {
super();
}
function init(commandname, dataobj) {
command = commandname;
data = dataobj;
}
}
Symbol 692 MovieClip [__Packages.mx.remoting.debug.commands.StartRTMPTrace] Frame 0
class mx.remoting.debug.commands.StartRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StartRTMPTrace (cs) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
init("startRealTimeTrace", _local1);
}
}
Symbol 693 MovieClip [__Packages.mx.remoting.debug.ConnectionMixin] Frame 0
class mx.remoting.debug.ConnectionMixin extends Object
{
var _protocol, _id, _config;
function ConnectionMixin () {
super();
}
static function initialize() {
var _local1 = mx.remoting.Connection.prototype;
var _local2 = mx.remoting.debug.ConnectionMixin.prototype;
if (!_local1.netDebugProxyFunctions) {
_local1.netDebugProxyFunctions = true;
_local1.realConnect = _local1.connect;
_local1.realCall = _local1.call;
_local1.realClose = _local1.close;
_local1.realAddHeader = _local1.addHeader;
_local1.connect = _local2.netDebugProxyConnect;
_local1.call = _local2.netDebugProxyCall;
_local1.close = _local2.netDebugProxyClose;
_local1.addHeader = _local2.netDebugProxyAddHeader;
_local1.attachDebug = _local2.attachDebug;
_local1.sendDebugEvent = _local2.sendDebugEvent;
_local1.sendServerEvent = _local2.sendServerEvent;
_local1.sendClientEvent = _local2.sendClientEvent;
_local1.addNetDebugHeader = _local2.addNetDebugHeader;
_local1.updateConfig = _local2.updateConfig;
_local1.getNetDebug = _local2.getNetDebug;
_local1.isRealTime = _local2.isRealTime;
_local1.setupRecordSet = _local2.setupRecordSet;
_local1.setDebugId = _local2.setDebugId;
_local1.getDebugId = _local2.getDebugId;
_local1.getDebugConfig = _local2.getDebugConfig;
_local1.trace = _local2.trace;
return(true);
}
return(false);
}
function attachDebug() {
var _local1 = this;
if (!_attached) {
_attached = true;
_local1._headerAdded = false;
_local1._configured = false;
_local1._config = new mx.remoting.debug.NetDebugConfig();
mx.utils.ObjectCopy.copyProperties(_local1._config, _local1.getNetDebug().getConfig());
_local1._protocol = "none";
_local1._id = String(_local1.getNetDebug().addNetConnection(_local1));
}
}
function sendDebugEvent(eventobj) {
var _local1 = this;
var _local2 = eventobj;
_local2.protocol = _local1._protocol;
_local2.debugId = _local1._id;
return(_local1.getNetDebug().onEvent(_local2));
}
function sendServerEvent(eventobj) {
eventobj.movieUrl = unescape(_root._url);
if (!sendDebugEvent(eventobj)) {
}
}
function sendClientEvent(eventobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
if ((_local1._config.client.http && (_local1._protocol == "http")) || (_local1._config.client.rtmp && (_local1._protocol.substr(0, 4) == "rtmp"))) {
if (!_local1.sendDebugEvent(eventobj)) {
}
}
}
}
function addNetDebugHeader() {
var _local1 = this;
if (!_local1._headerAdded) {
_local1._headerAdded = true;
if ((_local1._config.m_debug && (_local1._config.app_server.m_debug)) && (_local1._protocol == "http")) {
_local1.realAddHeader("amf_server_debug", true, _local1._config.app_server);
} else {
_local1.realAddHeader("amf_server_debug", true, undefined);
}
}
}
function updateConfig(config) {
var _local1 = this;
var _local2 = config;
_local1.attachDebug();
if ((_local2 == null) && (!_local1._configured)) {
_local1._configured = true;
_local2 = mx.remoting.debug.NetDebugConfig.getRealDefaultNetDebugConfig();
}
mx.utils.ObjectCopy.copyProperties(_local1._config, _local2);
_local1._headerAdded = false;
}
function isRealTime() {
return(_protocol.substr(0, 4) == "rtmp");
}
function setupRecordSet() {
var _local1 = this;
_local1.attachDebug();
_local1._config.client.http = _local1._config.client.recordset;
}
function netDebugProxyConnect() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
var _local3 = _local2[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (_local2[0].charAt(4) == ":") {
_local1._protocol = _local3;
} else {
_local1._protocol = _local2[0].substr(0, 5);
}
} else {
_local1._protocol = "http";
}
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugConnect(_local2));
if (_local1.isRealTime()) {
_local1._connectString = _local2[0];
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StartRTMPTrace(_local2[0]));
var ret = _local1.realConnect.apply(_local1, _local2);
_local1.realCall("@getClientID", new mx.remoting.RTMPClientIDResponse(_local2[0], _local1));
return(ret);
}
return(Boolean(_local1.realConnect.apply(_local1, _local2)));
}
function netDebugProxyCall() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugCall(_local2));
_local1.addNetDebugHeader();
if (_local1._config.app_server) {
_local2[1] = new mx.remoting.debug.NetDebugResponseProxy(_local1, _local2[1]);
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
function netDebugProxyClose() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugClose());
if (_local1.isRealTime()) {
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StopRTMPTrace(_local1._connectString, _local1._clientId));
}
var _local2 = _local1.realClose();
_local1.getNetDebug().removeNetConnection(_local1);
return(_local2);
}
function netDebugProxyAddHeader() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugAddHeader(arguments));
return(Boolean(_local1.realAddHeader.apply(_local1, arguments)));
}
function setDebugId(id) {
attachDebug();
_id = id;
}
function getDebugId() {
attachDebug();
return(_id);
}
function trace(traceobj) {
var _local1 = this;
_local1.attachDebug();
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj));
}
}
function getDebugConfig() {
attachDebug();
return(_config);
}
function getNetDebug() {
return(mx.remoting.debug.NetDebug.getNetDebug());
}
static var _attached = false;
}
Symbol 694 MovieClip [__Packages.mx.remoting.debug.events.NetDebugDuplicateNCDError] Frame 0
class mx.remoting.debug.events.NetDebugDuplicateNCDError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugDuplicateNCDError () {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.message = "NCD_ALREADY_RUNNING";
}
}
Symbol 696 MovieClip [__Packages.mx.remoting.debug.commands.GetConfig] Frame 0
class mx.remoting.debug.commands.GetConfig extends mx.remoting.debug.commands.Local
{
var init;
function GetConfig () {
super();
}
function GetConfigCommand() {
super();
init("getConfig", null);
}
}
Symbol 697 MovieClip [__Packages.mx.remoting.debug.events.NetDebugFailedSendError] Frame 0
class mx.remoting.debug.events.NetDebugFailedSendError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugFailedSendError (ev) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.originalEvent = ev;
_local1.message = "NCD_FAILED_TO_SEND_EVENT";
}
}
Symbol 698 MovieClip [__Packages.mx.remoting.debug.events.NetDebugStatus] Frame 0
class mx.remoting.debug.events.NetDebugStatus extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, status;
function NetDebugStatus (statusobj) {
super();
eventType = "Status";
status = statusobj;
}
}
Symbol 699 MovieClip [__Packages.mx.remoting.debug.events.NetDebugError] Frame 0
class mx.remoting.debug.events.NetDebugError extends mx.remoting.debug.events.NetDebug
{
var eventType, error;
function NetDebugError (dataobj) {
super();
eventType = "NetDebugError";
error = dataobj;
}
}
Symbol 700 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTraceNetServices] Frame 0
class mx.remoting.debug.events.NetDebugTraceNetServices extends mx.remoting.debug.events.NetDebug
{
function NetDebugTraceNetServices (w, s, n, m) {
var _local1 = this;
super();
_local1.eventType = "NetServicesTrace";
_local1.trace = m;
_local1.who = w;
_local1.severity = s;
_local1.number = n;
}
}
Symbol 701 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTrace] Frame 0
class mx.remoting.debug.events.NetDebugTrace extends mx.remoting.debug.events.NetDebug
{
var eventType, trace;
function NetDebugTrace (traceobj) {
super();
eventType = "Trace";
trace = traceobj;
}
}
Symbol 703 MovieClip [__Packages.mx.remoting.debug.commands.AddRTMPClient] Frame 0
class mx.remoting.debug.commands.AddRTMPClient extends mx.remoting.debug.commands.Local
{
var init;
function AddRTMPClient (cs, cid) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("addRealTimeClient", _local1);
}
}
Symbol 704 MovieClip [__Packages.mx.remoting.RTMPClientIDResponse] Frame 0
class mx.remoting.RTMPClientIDResponse extends Object
{
var _connectString, _nc;
function RTMPClientIDResponse (cs, nc) {
super();
_connectString = cs;
_nc = nc;
}
function onResult(cid) {
_nc._clientId = cid;
mx.remoting.debug.NetDebug.getNetDebug().sendCommand(new mx.remoting.debug.commands.AddRTMPClient(_connectString, cid));
}
}
Symbol 705 MovieClip [__Packages.mx.remoting.debug.events.NetDebugCall] Frame 0
class mx.remoting.debug.events.NetDebugCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugCall (args) {
var _local2 = this;
var _local3 = args;
super();
_local2.eventType = "Call";
_local2.methodName = _local3[0];
_local2.parameters = new Array();
var alen = _local3.length;
var _local1 = 2;
while (_local1 < alen) {
_local2.parameters[_local1 - 2] = _local3[_local1];
_local1++;
}
}
}
Symbol 706 MovieClip [__Packages.mx.remoting.debug.events.NetDebugResult] Frame 0
class mx.remoting.debug.events.NetDebugResult extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, result;
function NetDebugResult (resultobj) {
super();
eventType = "Result";
result = resultobj;
}
}
Symbol 707 MovieClip [__Packages.mx.remoting.debug.events.NetDebugReceiveCall] Frame 0
class mx.remoting.debug.events.NetDebugReceiveCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugReceiveCall (mName, args) {
var _local1 = this;
super();
_local1.eventType = "ReceivedCall";
_local1.methodName = mName;
_local1.parameters = args;
}
}
Symbol 708 MovieClip [__Packages.mx.remoting.debug.NetDebugResponseProxy] Frame 0
class mx.remoting.debug.NetDebugResponseProxy extends Object
{
var _sourceNC, _originalNR;
function NetDebugResponseProxy (source, original) {
super();
_sourceNC = source;
_originalNR = original;
}
function onDebugEvents(debugevents) {
var _local3 = debugevents;
var _local2 = _local3.length;
var _local1 = 0;
while (_local1 < _local2) {
_sourceNC.sendServerEvent(_local3[_local1]);
_local1++;
}
}
function onResult(resultobj) {
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugResult(resultobj));
_originalNR.onResult(resultobj);
}
function onStatus(statusobj) {
var _local1 = this;
var _local2 = statusobj;
_local1._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugStatus(_local2));
if (_local1._originalNR.onStatus != undefined) {
_local1._originalNR.onStatus(_local2);
} else {
_global.System.onStatus(_local2);
}
}
function __resolve(name) {
var _local1 = name;
trace("NetDebugResponseProxy.__resolve name: " + _local1);
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugReceiveCall(_local1, arguments));
_originalNR[_local1].apply(arguments);
return(null);
}
}
Symbol 709 MovieClip [__Packages.mx.remoting.debug.events.NetDebugClose] Frame 0
class mx.remoting.debug.events.NetDebugClose extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType;
function NetDebugClose () {
super();
eventType = "Close";
}
}
Symbol 710 MovieClip [__Packages.mx.remoting.debug.commands.StopRTMPTrace] Frame 0
class mx.remoting.debug.commands.StopRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StopRTMPTrace () {
super();
}
function StopRTMPTraceCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("stopRealTimeTrace", _local1);
}
}
Symbol 711 MovieClip [__Packages.mx.remoting.debug.events.NetDebugAddHeader] Frame 0
class mx.remoting.debug.events.NetDebugAddHeader extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugAddHeader (args) {
var _local1 = this;
var _local2 = args;
super();
_local1.eventType = "AddHeader";
_local1.headerName = _local2[0];
_local1.mustUnderstand = _local2[1];
if (_local2[2] != null) {
_local1.headerObject = _local2[2];
}
}
}
Symbol 712 MovieClip [__Packages.mx.remoting.debug.events.NetDebugInfoError] Frame 0
class mx.remoting.debug.events.NetDebugInfoError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugInfoError (infoobj, mes) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.info = infoobj;
if (mes != null) {
_local1.message = mes;
}
}
}
Symbol 713 MovieClip [__Packages.mx.remoting.debug.events.NetDebugRtmpLog] Frame 0
class mx.remoting.debug.events.NetDebugRtmpLog extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugRtmpLog (infoobj) {
var _local1 = this;
super();
_local1.eventType = "Trace";
_local1.source = "Flash Communication Server";
_local1.info = infoobj;
_local1.trace = infoobj.description;
}
}
Symbol 714 MovieClip [__Packages.mx.remoting.debug.commands.UpdateNetDebugConfig] Frame 0
class mx.remoting.debug.commands.UpdateNetDebugConfig extends mx.remoting.debug.commands.Local
{
var init;
function UpdateNetDebugConfig () {
super();
}
function UpdateNetDebugCommand(dataobj) {
super();
init("updateConfig", dataobj);
}
}
Symbol 715 MovieClip [__Packages.mx.remoting.ApiClasses] Frame 0
class mx.remoting.ApiClasses extends MovieClip
{
function ApiClasses () {
super();
}
}
Symbol 717 MovieClip [__Packages.mx.remoting.DataGlue] Frame 0
class mx.remoting.DataGlue extends Object
{
var __dataProv, __labelStr, __dataStr, formatFunction;
function DataGlue (dp) {
super();
__dataProv = dp;
}
function get dataProvider() {
return(__dataProv);
}
function get labelString() {
return(__labelStr);
}
function set labelString(val) {
__labelStr = val;
//return(labelString);
}
function get dataString() {
return(__dataStr);
}
function set dataString(val) {
__dataStr = val;
//return(dataString);
}
static function bindFormatStrings(dataConsumer, dp, labelStr, dataStr) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.__set__labelString(labelStr);
_local1.__set__dataString(dataStr);
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatString;
dataConsumer.dataProvider = _local1;
}
static function bindFormatFunction(dataConsumer, dp, formatFunc) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.formatFunction = formatFunc;
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
}
function addEventListener(eventName, listener) {
dataProvider.addEventListener(eventName, listener);
}
function get length() {
return(getLength());
}
function getLength() {
return(dataProvider.length);
}
function format(formatString, item) {
var _local3 = formatString.split("#");
var result = "";
var tlen = _local3.length;
var _local2;
var _local1 = 0;
while (_local1 < tlen) {
result = result + _local3[_local1];
_local2 = _local3[_local1 + 1];
if (_local2 != undefined) {
result = result + item[_local2];
}
_local1 = _local1 + 2;
}
return(result);
}
function getItemAt_FormatString(index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.__get__labelString(), _local1), data:((_local2.__get__dataString() == null) ? (_local1) : (_local2.format(_local2.__get__dataString(), _local1)))});
}
function getItemAt_FormatFunction(index) {
var _local1 = dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(formatFunction(_local1));
}
function getItemID(index) {
return(dataProvider.getItemID(index));
}
function addItemAt(index, value) {
dataProvider.addItemAt(index, value);
}
function addItem(value) {
dataProvider.addItem(value);
}
function removeItemAt(index) {
dataProvider.removeItemAt(index);
}
function removeAll() {
dataProvider.removeAll();
}
function replaceItemAt(index, itemObj) {
dataProvider.replaceItemAt(index, itemObj);
}
function sortItemsBy(fieldNames, optionFlags) {
dataProvider.sortItemsBy(fieldNames, optionFlags);
}
function sortItems(compareFunc, optionFlags) {
dataProvider.sortItems(compareFunc, optionFlags);
}
static var version = "1.2.0.124";
}
Symbol 724 MovieClip [__Packages.mx.remoting.Operation] Frame 0
class mx.remoting.Operation
{
var __arguments, __responder, __request, __methodName;
function Operation (methodName, parent) {
var _local1 = this;
_local1.__service = parent;
_local1.__responder = parent.responder;
_local1.__methodName = methodName;
_local1.__invokationName = (_local1.__service.__get__name() + ".") + methodName;
_local1.__request = new Object();
_local1.__arguments = new Array();
}
function createThenSend(Void) {
createArguments();
return(send());
}
function send(Void) {
var _local1 = this;
_local1.__service.log.logInfo((("Invoking " + _local1.__methodName) + " on ") + _local1.__service.__get__name());
var _local3 = new mx.remoting.PendingCall(_local1.__service, _local1.__methodName);
_local3.__set__responder(_local1.__responder);
var _local2 = null;
if (_local1.__arguments == null) {
_local2 = new Array();
} else {
_local2 = _local1.__arguments.concat();
}
_local1.__invokationName = (_local1.__service.__get__name() + ".") + _local1.__methodName;
_local2.unshift(_local1.__invokationName, _local3);
_local1.__service.connection.call.apply(_local1.__service.__get__connection(), _local2);
return(_local3);
}
function invoke(a) {
__arguments = a;
}
function get responder() {
return(__responder);
}
function set responder(r) {
__responder = r;
//return(responder);
}
function get request() {
return(__request);
}
function set request(r) {
__request = r;
//return(request);
}
function get name() {
return(__methodName);
}
function createArguments() {
var _local1 = this;
if (_local1.__request != null) {
_local1.__arguments = new Array();
for (var _local2 in _local1.__request) {
if (_local2 != "arguments") {
_local1.__arguments.unshift(_local1.__request[_local2]);
}
}
}
}
}
Symbol 725 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = indent;
var _local2 = maxLineLength;
var _local3 = new mx.data.binding.ObjectDumper();
if (_local2 == undefined) {
_local2 = 100;
}
if (_local1 == undefined) {
_local1 = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, _local2, _local1));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = obj;
var x = 0;
while (x < inProgress.length) {
if (inProgress[x] == _local1) {
return("***");
}
x++;
}
inProgress.push(_local1);
indent++;
var t = typeof(_local1);
var result;
if ((_local1 instanceof XMLNode) && (showXMLstructures != true)) {
result = _local1.toString();
} else if (_local1 instanceof Date) {
result = _local1.toString();
} else if (t == "object") {
var _local3 = new Array();
if (_local1 instanceof Array) {
result = "[";
var i = 0;
while (i < _local1.length) {
_local3.push(i);
i++;
}
} else {
result = "{";
for (var i in _local1) {
_local3.push(i);
}
_local3.sort();
}
var sep = "";
var _local2 = 0;
while (_local2 < _local3.length) {
var val = _local1[_local3[_local2]];
var show = true;
if (typeof(val) == "function") {
show = showFunctions == true;
}
if (typeof(val) == "undefined") {
show = showUndefined == true;
}
if (show) {
result = result + sep;
if (!(_local1 instanceof Array)) {
result = result + (_local3[_local2] + ": ");
}
result = result + realToString(val, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
sep = ", `";
}
_local2++;
}
if (_local1 instanceof Array) {
result = result + "]";
} else {
result = result + "}";
}
} else if (t == "function") {
result = "function";
} else if (t == "string") {
result = ("\"" + _local1) + "\"";
} else {
result = String(_local1);
}
if (result == "undefined") {
result = "-";
}
inProgress.pop();
return(replaceAll(result, "`", ((result.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var result = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
result = result + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(result);
}
function doIndent(indent) {
var _local3 = indent;
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 727 MovieClip [__Packages.mx.rpc.DefaultResponder] Frame 0
class mx.rpc.DefaultResponder
{
var __target;
function DefaultResponder (t) {
target = (t);
}
function get target() {
return(__target);
}
function set target(t) {
__target = t;
//return(target);
}
function onResult(event) {
trace("RPC Result: " + event.__get__result());
}
function onFault(event) {
trace("RPC Fault: " + event.fault.faultstring);
}
}
Symbol 764 Button
on (release) {
_parent.gotoAndStop("game");
}
Symbol 769 Button
on (release) {
_parent.gotoAndStop("instructions");
}
Symbol 772 Button
on (release) {
_parent.gotoAndStop("leaderboard");
}
Symbol 776 Button
on (release) {
_parent.gotoAndStop("sendfriend");
}
Symbol 922 Button
on (release) {
_parent.gotoAndStop("title");
}
Symbol 928 Button
on (release) {
_parent.gotoAndStop("game");
}
Symbol 966 MovieClip Frame 1
hitZone._visible = false;
Symbol 1019 MovieClip Frame 1
stop();
Symbol 1020 Button
on (press) {
_parent._parent._parent.onChatUpSelect(this);
_parent._parent._parent.bChatUpLineSelected = true;
_parent.option_0.bullet.gotoAndStop("idle");
_parent.option_0.bullet.bullet_depressed = false;
_parent.option_1.bullet.gotoAndStop("idle");
_parent.option_1.bullet.bullet_depressed = false;
_parent.option_2.bullet.gotoAndStop("idle");
_parent.option_2.bullet.bullet_depressed = false;
_root.snd_click.start();
if (bullet.bullet_depressed != true) {
_global.selectedAnswer = sText;
bullet.bullet_depressed = true;
bullet.gotoAndStop("active");
_root.bDisableAllButtons = true;
} else {
bullet.bullet_depressed = false;
bullet.gotoAndStop("idle");
}
}
Instance of Symbol 22 MovieClip "object_0" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_1" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_3" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_4" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_5" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_6" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_2" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_7" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_8" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_9" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_10" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_11" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_12" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_13" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_14" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_15" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_16" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_17" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_18" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_19" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_20" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_21" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_22" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_23" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_24" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_25" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_26" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_28" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_29" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_30" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_31" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_32" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_33" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_34" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_35" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_36" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_37" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_38" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_39" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_40" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_41" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 22 MovieClip "object_42" in Symbol 1038 MovieClip Frame 1
/* no clip actions */
Symbol 1055 Button
on (release) {
_parent.intScoreSub = 0;
_parent.gotoAndStop("game");
}
Symbol 1058 Button
on (release) {
if (_parent.intScoreSub == 1) {
_parent.gotoAndStop("leaderboard");
} else {
_parent.gotoAndStop("submitscore");
}
}
Symbol 1075 Button
on (release) {
this.boolSubmit = true;
strUserName = user_name.text;
strUserEmail = user_email.text;
intUserIndexOfAt = strUserEmail.indexOf("@");
intUserLastIndexOfDot = strUserEmail.lastIndexOf(".");
if (!strUserName) {
this.boolSubmit = false;
error_text.text = "Please enter your name";
} else if (((!strUserEmail) || (intUserIndexOfAt == -1)) || (intUserLastIndexOfDot == -1)) {
this.boolSubmit = false;
error_text.text = "Your email address is not valid";
}
if (this.boolSubmit != false) {
_parent.intScoreSub = 1;
btn_submit._visible = false;
error_text.text = "Submitting score, please wait...";
_parent.objRemote.setHighScores(strUserName, strUserEmail, _parent.intScore);
}
}
Symbol 1077 Button
on (release) {
_parent.gotoAndStop("gameover");
}
Symbol 1092 Button
on (release) {
_parent.gotoAndStop(_parent.strLastScreen);
}
Symbol 1102 MovieClip Frame 1
function showHighScores(arrScores) {
i = 0;
while (i <= (arrScores.length - 1)) {
var _local5 = i + 10000;
var _local4 = ("scoreLine" + (i + 1)) + "_mc";
duplicateMovieClip (scoreList_mc.scoreLine_mc, _local4, _local5);
var _local2 = scoreList_mc[("scoreLine" + (i + 1)) + "_mc"];
_local2._y = 22 * i;
_local2.pos.text = i + 1;
_local2.playerName.text = arrScores[i].name.toUpperCase();
_local2.score.text = arrScores[i].score;
nextScorePos = this.scoreList_mc.scoreLine_mc._height;
i++;
}
scrolling();
}
this.scoreList_mc.scoreLine_mc._visible = false;
_root.objRemote.getHighScores(20);
scrolling = function () {
objContent = scoreList_mc;
var _local5 = scrollTrack._height;
var _local2 = objContent._height;
var _local4 = scrollFace._height;
var _local3 = maskedView._height;
var initPosition = ((scrollFace._y = scrollTrack._y));
var initContentPos = objContent._y;
var finalContentPos = ((_local3 - _local2) + initContentPos);
var left = scrollTrack._x;
var top = scrollTrack._y;
var right = scrollTrack._x;
var bottom = ((scrollTrack._height - _local4) + scrollTrack._y);
var dy = 0;
var speed = 10;
var moveVal = ((_local2 - _local3) / (_local5 - _local4));
scrollFace.onPress = function () {
var _local2 = this._y;
startDrag (this, false, left + 1, top, right, bottom);
this.onMouseMove = function () {
scrollFace._x = scrollTrack._x + 1;
dy = Math.abs(initPosition - this._y);
objContent._y = Math.round(((dy * -1) * moveVal) + initContentPos);
};
};
scrollFace.onMouseUp = function () {
stopDrag();
scrollFace._x = left;
delete this.onMouseMove;
};
btnUp.onPress = function () {
this.onEnterFrame = function () {
if ((objContent._y + speed) < maskedView._y) {
if (scrollFace._y <= top) {
scrollFace._y = top;
} else {
scrollFace._y = scrollFace._y - (speed / moveVal);
}
objContent._y = objContent._y + speed;
} else {
scrollFace._y = top;
objContent._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function () {
delete this.onEnterFrame;
};
btnUp.onRelease = function () {
delete this.onEnterFrame;
};
btnDown.onPress = function () {
this.onEnterFrame = function () {
if ((objContent._y - speed) > finalContentPos) {
if (scrollFace._y >= bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y = scrollFace._y + (speed / moveVal);
}
objContent._y = objContent._y - speed;
} else {
scrollFace._y = bottom;
objContent._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function () {
delete this.onEnterFrame;
};
btnDown.onDragOut = function () {
delete this.onEnterFrame;
};
if (_local2 < _local3) {
scrollFace._visible = false;
scrollTrack._visible = false;
btnUp._visible = false;
btnDown._visible = false;
} else {
scrollFace._visible = true;
scrollTrack._visible = true;
btnUp._visible = true;
btnDown._visible = true;
}
scrollTrack.onPress = function () {
scrollFace._y = _ymouse;
if (scrollFace._y < (btnUp._y + btnUp._height)) {
scrollFace._y = btnUp._y + btnUp._height;
} else if ((scrollFace._y + scrollFace._height) > btnDown._y) {
scrollFace._y = btnDown._y - scrollFace._height;
}
dy = Math.abs(initPosition - scrollFace._y);
objContent._y = Math.round(((dy * -1) * moveVal) + initContentPos);
};
};
scrolling();
Symbol 1121 Button
on (release) {
function sendMail() {
if (j >= (arrSend.length - 1)) {
_root.sendfriend.friend_name_1.text = "";
_root.sendfriend.friend_email_1.text = "";
_root.sendfriend.friend_name_2.text = "";
_root.sendfriend.friend_email_2.text = "";
_root.sendfriend.friend_name_3.text = "";
_root.sendfriend.friend_email_3.text = "";
_root.sendfriend.text_error.text = "Email sent! Would you like to send another?";
btn_send._visible = true;
clearInterval(k);
boolSending = false;
}
_root.objRemote.sendToFriend(strUserName, strUserEmail, arrSend[j][0], arrSend[j][1], _parent.intScore, strMessage);
arrDupe.push(strFriendEmail);
j++;
}
var objRegex = new RegExp("^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,4})+$");
if (boolSending == true) {
return(false);
}
var intSend = 0;
var intOptin = (tick_terms._currentframe - 1);
var strMessage = text_message.text;
var j = 0;
var k = 0;
this.boolSubmit = true;
var arrSend = [];
var arrDupe = [];
strUserName = user_name.text;
strUserEmail = user_email.text;
intUserIndexOfAt = strUserEmail.indexOf("@");
intUserLastIndexOfDot = strUserEmail.lastIndexOf(".");
var isEmailValid = objRegex.test(strUserEmail);
if (!strUserName) {
this.boolSubmit = false;
text_error.text = "Please enter your name";
trace(text_error);
} else if (!isEmailValid) {
this.boolSubmit = false;
text_error.text = "Your email address is not valid";
} else {
i = 1;
while (i <= 3) {
strFriendName = this["friend_name_" + i].text;
strFriendEmail = this["friend_email_" + i].text;
intFriendIndexOfAt = strFriendEmail.indexOf("@");
intFriendLastIndexOfDot = strFriendEmail.lastIndexOf(".");
if ((strFriendName != "") || (strFriendEmail != "")) {
intSend++;
if (!strFriendName) {
this.boolSubmit = false;
text_error.text = "Please complete your friend's name";
return(undefined);
}
if (((!strFriendEmail) || (intFriendIndexOfAt == -1)) || (intFriendLastIndexOfDot == -1)) {
this.boolSubmit = false;
text_error.text = "Please complete your friend's email address";
return(undefined);
}
arrSend.push([strFriendName, strFriendEmail]);
}
i++;
}
if (intSend == 0) {
this.boolSubmit = false;
text_error.text = "Please enter your friends' details";
}
if (this.boolSubmit != false) {
btn_send._visible = false;
text_error.text = "Sending, please wait...";
k = setInterval(sendMail, 400);
boolSending = true;
}
}
}
Symbol 1132 MovieClip Frame 1