Frame 1
function website() {
getURL ("http://funfun555.newgrounds.com/", "_blank");
}
function deadClick() {
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyright = new ContextMenuItem("funfun555 VISIT ME!", website);
myMenu.customItems.push(copyright);
_root.menu = myMenu;
Frame 9
trace("shouldn't be here");
Frame 16
stop();
var so = SharedObject.getLocal("sexyVacation");
var volumeOn = true;
var global_sound = new Sound();
var music1_snd = new Sound(music1Holder_id);
var music2_snd = new Sound(music2Holder_id);
music1_snd.attachSound("track1");
music2_snd.attachSound("track2");
music2_snd.start(0, 999);
Frame 23
function picsClose() {
moveAllowed = true;
gameHolder_id.dude_id.inner_id.play();
pics_mc.removeMovieClip();
}
function mapClose() {
moveAllowed = true;
gameHolder_id.dude_id.inner_id.play();
map_mc.removeMovieClip();
}
function updateMoney() {
money_txt.text = "$" + money;
}
stop();
var KEYCODE_A = 65;
var KEYCODE_S = 83;
var KEYCODE_D = 68;
var KEYCODE_W = 87;
var STARTING_GRID_X = 5;
var STARTING_GRID_Y = 6;
var STARTING_X_OFFSET = -220;
var STARTING_Y_OFFSET = 20;
var GRID_WIDTH = 6;
var GRID_HEIGHT = 8;
var PIECE_DEPTH = 0;
var PIECE_WIDTH = 640;
var PIECE_HEIGHT = 480;
var lastFace = "Down";
var current_grid_x = STARTING_GRID_X;
var current_grid_y = STARTING_GRID_Y;
var current_x_offset = STARTING_X_OFFSET;
var current_y_offset = STARTING_Y_OFFSET;
var xVel;
var yVel;
var speed = 6;
var spaceDown = false;
var downDown = false;
var upDown = false;
var moveAllowed = true;
var currentOptions = 0;
var selectedOption = 1;
var money = 0;
var starfish_item = false;
var peircing_item = false;
var sandals_item = false;
var wrench_item = false;
var key_item = false;
var soap_item = false;
var lotion_item = false;
var flowerGirl_state = 1;
var shyGirl_state = 1;
var brunette_state = 1;
var lingerieGirl_state = 1;
var kaoxita_state = 1;
var lotionGirl_state = 1;
var sandalsGirl_state = 1;
var peircingGirl_state = 1;
var coverGirls_state = 1;
var erika_state = 1;
var showerGirl_state = 1;
var maestra_state = 1;
var secretary_state = 1;
var email_state = 1;
var lotionShop_state = 1;
var trivia_state = 1;
var avoider_state = 1;
var flowerGirl_pic = false;
var shyGirl_pic = false;
var brunette_pic = false;
var lingerieGirl_pic = false;
var kaoxita_pic = false;
var lotionGirl_pic = false;
var sandalsGirl_pic = false;
var peircingGirl_pic = false;
var coverGirls_pic = false;
var erika_pic = false;
var soapGirl_pic = false;
var maestra_pic = false;
var secretary_pic = false;
var secret1_pic = false;
var secret2_pic = false;
var animationsUnlocked = false;
var firstPlay = true;
var currentTriviaScore = 0;
var bestTriviaScore = 0;
var currentAvoiderTime = 0;
var wonAvoiderOnce = false;
var LOWEST_TIME_AVOIDER = 105000;
pics_id.onRelease = function () {
moveAllowed = false;
gameHolder_id.dude_id.inner_id.stop();
this._parent.attachMovie("pics", "pics_mc", this._parent.getNextHighestDepth());
};
map_id.onRelease = function () {
moveAllowed = false;
gameHolder_id.dude_id.inner_id.stop();
this._parent.attachMovie("mapWindow", "map_mc", this._parent.getNextHighestDepth());
};
mute_id.onRelease = function () {
if (volumeOn) {
global_sound.setVolume(0);
volumeOn = false;
} else {
global_sound.setVolume(100);
volumeOn = true;
}
};
track1_id.onRelease = function () {
music1_snd.stop();
music2_snd.stop();
music2_snd.start(0, 999);
};
track2_id.onRelease = function () {
music1_snd.stop();
music2_snd.stop();
music1_snd.start(0, 999);
};
updateMoney();
var dialog_1_text = "Welcome to Beach Town! You are a professional photographer on an assignment to take photos for a new Beach Town Babe Calendar! The sun is out, the tide is in, and there are beach-girls galore! Talk to them and try to get them to pose for a photo. Use arrow keys (or ASDW) to move and SPACE to select. Good luck!";
var dialog_1_1_text = "*Start Playing*";
var dialog_2_text = "Hi! Do you want to buy some tanning lotion? We have one bottle left and it's $10.";
var dialog_2_1_text = "Yes";
var dialog_2_2_text = "No";
var dialog_3_text = "Thanks! Have a great day!";
var dialog_3_1_text = "Goodbye";
var dialog_4_text = "Oh, that's ok. Seeya later!";
var dialog_4_1_text = "Goodbye";
var dialog_5_text = "Hi! We sell tanning lotion for $10. It seems you don't have enough. Please come again later!";
var dialog_5_1_text = "Goodbye";
var dialog_6_text = "We're all out of lotion!";
var dialog_6_1_text = "Goodbye";
var dialog_7_text = "Step right up and test your skills by playing Beach Avoider! Win cash! You look like you have a steady hand. Want to give it a try? Today is free game day in Beach Town!";
var dialog_7_1_text = "Yes";
var dialog_7_2_text = "No";
var dialog_8_text = "Leaving so soon? Try again later!";
var dialog_8_1_text = "Goodbye";
var dialog_9_text = "No? Allright then. Maybe next time!";
var dialog_9_1_text = "Goodbye";
var dialog_10_text = "Want to try again?";
var dialog_10_1_text = "Yes";
var dialog_10_2_text = "No";
var dialog_11_text = "Good job! You've beaten the game and won $10!";
var dialog_11_1_text = "Goodbye";
var dialog_12_text = "Wow! You beat the lowest time! I have a special prize for those who beat my best score ;)";
var dialog_12_1_text = "A prize?";
var dialog_13_text = "Wow! You beat the lowest time! Here's $10 for winning the game. And I have a special prize for those who beat my best score ;)";
var dialog_13_1_text = "A prize?";
var dialog_14_text = "You keep that picture to yourself, ok ;)";
var dialog_14_1_text = "Got it. Thanks!";
var dialog_15_text = "You there! You think you're smart? Test your knowledge with a trivia game! Free today only! Win the cash prize! Wanna give it a shot?";
var dialog_15_1_text = "Yes";
var dialog_15_2_text = "No";
var dialog_16_text = "Great! You have to get at least 5 out of 10 questions right to win.";
var dialog_16_1_text = "Start Game";
var dialog_17_text = "Wow! You got every question right! You must be a genius! I like smart guys :) Hey, want to see something? :D";
var dialog_17_1_text = "See what?";
var dialog_18_text = "Wow! You got every question right! Here's $10 for winning the game. You must be a genius! I like smart guys :) Hey, want to see something? :D";
var dialog_18_1_text = "See what?";
var dialog_19_text = "How many planets are there in our solar system?";
var dialog_19_1_text = "7";
var dialog_19_2_text = "8";
var dialog_19_3_text = "9";
var dialog_19_4_text = "10";
var dialog_19_5_text = "456";
var dialog_20_text = "True or false: Males drown more often than females.";
var dialog_20_1_text = "True";
var dialog_20_2_text = "False";
var dialog_21_text = "What is the tallest skyscraper in North America (in 2008)?";
var dialog_21_1_text = "Empire State";
var dialog_21_2_text = "John Hancock Center";
var dialog_21_3_text = "Sears Tower";
var dialog_21_4_text = "Trump Tower";
var dialog_21_5_text = "My neighbor's house";
var dialog_22_text = "Who wrote the song, 'Maybe I'm Amazed?'";
var dialog_22_1_text = "Ozzy Osbourne";
var dialog_22_2_text = "Paul McCartney";
var dialog_22_3_text = "Bryan Adams";
var dialog_22_4_text = "Shawn Colvin";
var dialog_22_5_text = "Me";
var dialog_23_text = "What continent is the country of Yemen located on?'";
var dialog_23_1_text = "South America";
var dialog_23_2_text = "Africa";
var dialog_23_3_text = "Asia";
var dialog_23_4_text = "Europe";
var dialog_23_5_text = "Antarctica";
var dialog_24_text = "True or false: Mars has an atmosphere.";
var dialog_24_1_text = "True";
var dialog_24_2_text = "False";
var dialog_25_text = "In what year did the US declare independence?";
var dialog_25_1_text = "1648";
var dialog_25_2_text = "1720";
var dialog_25_3_text = "1776";
var dialog_25_4_text = "1835";
var dialog_25_5_text = "Just last week";
var dialog_26_text = "How many girls live in this town (including store and game kiosk girls)?";
var dialog_26_1_text = "18";
var dialog_26_2_text = "16";
var dialog_26_3_text = "14";
var dialog_26_4_text = "12";
var dialog_26_5_text = "Girls? Where?";
var dialog_27_text = "What color are your (character's) eyes?";
var dialog_27_1_text = "Brown";
var dialog_27_2_text = "Blue";
var dialog_27_3_text = "Green";
var dialog_27_4_text = "Pink";
var dialog_27_5_text = "Rainbow";
var dialog_28_text = "Who is the author of this flash game?";
var dialog_28_1_text = "funfun555";
var dialog_28_2_text = "egoraptor";
var dialog_28_3_text = "tomfulp";
var dialog_28_4_text = "yourmom";
var dialog_28_5_text = "mymom";
var dialog_29_text = "Girl 1: Hey sexy :)";
var dialog_29_1_text = "Next";
var dialog_30_text = "Girl 2: What's with the camera? A calendar? Yea right. You're just some random creep! >:(";
var dialog_30_1_text = "Next";
var dialog_31_text = "Girl 1: But he looks so sincere :( ...";
var dialog_31_1_text = "Next";
var dialog_32_text = "Girl 2: <sigh...> I'll tell you what. We'll only pose if we get to be on the cover. Oh, and you have to prove to us that you're serious. Show me 12 pics of girls from this town and we'll believe you.";
var dialog_32_1_text = "Next";
var dialog_33_text = "Girl 1: Oooh, I can't wait! :D";
var dialog_33_1_text = "Goodbye";
var dialog_34_text = "Girl 1: Hey handsome :)";
var dialog_34_1_text = "Next";
var dialog_35_text = "Girl 2: You have those pics yet? No? Then get away creep!";
var dialog_35_1_text = "Goodbye";
var dialog_36_text = "Girl 1: Hey, he's back!";
var dialog_36_1_text = "Next";
var dialog_37_text = "Girl 2: (looks at pics) I can't believe all the girls agreed to pose for you... Wow, those are really good. I... I guess you're the real deal!";
var dialog_37_1_text = "Next";
var dialog_38_text = "Girl 1: Yay! We get to be models :)";
var dialog_38_1_text = "Take photo";
var dialog_39_text = "Girl 1: Hehe, hi cutie!";
var dialog_39_1_text = "Next";
var dialog_40_text = "Girl 2: You already took our picture, right?";
var dialog_40_1_text = "Oh, right.";
var dialog_41_text = "Ah!!! W- who are you?... A Calendar? You think I'm sexy? (blushes) Well... I- just can't. What would my friends think? Wait, have my friends posed for you yet? I can't do it if they aren't...";
var dialog_41_1_text = "Goodbye";
var dialog_42_text = "Sorry, I'm just too emberresed! What would my friends think?";
var dialog_42_1_text = "Goodbye";
var dialog_43_text = "What?? Erika's in your calendar? Wow, that's a hot photo... Ok, I'll let you take a pic. Here, how's this?";
var dialog_43_1_text = "Take photo";
var dialog_44_text = "You don't have to use the picture if you don't want...";
var dialog_44_1_text = "Goodbye";
var dialog_45_text = "Hi! You want my picture? Sure! But could you check to see if I have any email? My house is right there and I'm too lazy to get up and check myself.";
var dialog_45_1_text = "Goodbye";
var dialog_46_text = "Do I have any email? Please check for me!";
var dialog_46_1_text = "Goodbye";
var dialog_47_text = "None? Ok good. I hope you didn't look at anything else! Ah, I guess it doesn't matter. Ok, so how's this?";
var dialog_47_1_text = "Take photo";
var dialog_107_text = "Oh, and here's a starfish I found on the beach. Maybe you can keep it as a pet!";
var dialog_107_1_text = "Goodbye";
var dialog_109_text = "(she is sleeping...)";
var dialog_109_1_text = "Leave";
var dialog_108_text = "Someone's computer is still on...";
var dialog_108_1_text = "Leave";
var dialog_48_text = "You check for email and she has 0 messages. You also see a browser window minimized. You maximize the window and find 11 tabs full of lesbian hentai!";
var dialog_48_1_text = "Leave";
var dialog_49_text = "Yep, that hentai is still there.";
var dialog_49_1_text = "Leave";
var dialog_50_text = "!!!";
var dialog_50_1_text = "Next";
var dialog_51_text = "Who are you?";
var dialog_51_1_text = "Next";
var dialog_52_text = "My picture? (blushes)";
var dialog_52_1_text = "Next";
var dialog_53_text = "A calendar with all the girls in town? Well... ok. I'll help!";
var dialog_53_1_text = "Take photo";
var dialog_54_text = "You're pretty persistant, aren't you?";
var dialog_54_1_text = "Goodbye";
var dialog_55_text = "Oh, hi guy! A calendar? .... uh... well... you see... I lost my belly-button ring, and I really don't want a picture of me without it. Sorry I couldn't help you out!";
var dialog_55_1_text = "Goodbye";
var dialog_56_text = "Sorry, I just feel naked without all my piercings. Good luck with the other girls!";
var dialog_56_1_text = "Goodbye";
var dialog_57_text = "Oh! You found it! Where was it? Oh, in her... hehe, well, Erika and I are really good friends ;) Hey, why don't I pose for your calendar? C'mon! Take some pictures. It's ok!";
var dialog_57_1_text = "Take photo";
var dialog_58_text = "Thanks for finding my piercing!";
var dialog_58_1_text = "Goodbye";
var dialog_59_text = "What are you doing in my bathroom? You want to take my picture? GO AWAY PERVERT!";
var dialog_59_1_text = "Goodbye";
var dialog_60_text = "I SAID GO AWAY!";
var dialog_60_1_text = "Goodbye";
var dialog_61_text = "I SAI.. wait. Half the girls in town are already in your calendar? I'm sorry, I thought you were just some creep! I'll gladly pose for you! Here, join me in the shower :)";
var dialog_61_1_text = "Take photo";
var dialog_62_text = "(you find a ring-peircing at the bottom of her shower)";
var dialog_62_1_text = "Goodbye";
var dialog_63_text = "Come back anytime ;)";
var dialog_63_1_text = "Goodbye";
var dialog_64_text = "(girl is busy looking at fish and coral and doesn't notice you)";
var dialog_64_1_text = "Leave";
var dialog_65_text = "(girl is still looking at marine life and is oblivious to the outside world)";
var dialog_65_1_text = "Leave";
var dialog_66_text = "Oh! Cool starfish! Hey, wanna come join me for a swim? The water's so nice and the coral is beautiful... A picture of me? Hehe, sure! (takes off suit)";
var dialog_66_1_text = "Take photo";
var dialog_95_text = "Oh hey, I found this wrench when I was swimming. Maybe you can fix something with it!";
var dialog_95_1_text = "Goodbye";
var dialog_67_text = "(girl is back in her own little world)";
var dialog_67_1_text = "Leave";
var dialog_68_text = "Hey, you're new here. How do you like Beach Town so far? Oh, a calendar? (blushes) I don't know... I'll have to think about it. Oh, could you do me a favor and find some sandals I could wear? The sand is really hot today.";
var dialog_68_1_text = "Goodbye";
var dialog_69_text = "I don't know... I have to think about it. My feet are also really hot!";
var dialog_69_1_text = "Goodbye";
var dialog_70_text = "Oh, thank you for the sandals! Ahhhh... that's much more comfortable. You know, you're a really nice guy. I guess I'll be in your calendar for you :)";
var dialog_70_1_text = "Take photo";
var dialog_71_text = "You're a very generous person :)";
var dialog_71_1_text = "Goodbye";
var dialog_72_text = "Ahh! Don't look at me! Haha, I'm so dirty! Mud wrestling is so messy. You want my picture for a new calendar? Oh, I'm flattered, but I can't with me being so messy! If only this shower would work!";
var dialog_72_1_text = "Goodbye";
var dialog_73_text = "I'm sorry, I don't want a picture of me covered in dirt! I need to be clean, silly!!!";
var dialog_73_1_text = "Goodbye";
var dialog_74_text = "You have a wrench? oh, good you can fix this then! (you twist the pipe and the shower starts working) Yay! (she takes off her suit and kicks off her sandals) Ahhh.. dirty no more!";
var dialog_74_1_text = "Take photo";
var dialog_75_text = "Oh, I'm getting new sandals today. You want my old ones? You can keep 'em then cutie ;)";
var dialog_75_1_text = "Goodbye";
var dialog_76_text = "Thanks for fixing the shower! ... are you going to keep staring like that?";
var dialog_76_1_text = "Goodbye";
var dialog_77_text = "Dude! You're using up my valuable internet time! What? A calendar? Eh sure, whatever. But I'm out of money and I really need another hour online. Can you spare $10?";
var dialog_77_1_text = "Goodbye";
var dialog_78_text = "Not enough money? Sorry man, I gotta be harsh. I've got a serious internet craving. The offer still stands if you get the money!";
var dialog_78_1_text = "Goodbye";
var dialog_79_text = "Thanks! Now I can submit my Hentai flash-game to Newgrounds. What? Show you some ass? Oh, right...";
var dialog_79_1_text = "Take photo";
var dialog_80_text = "Wow, it got a high-score! More people need to make quality hentai games.";
var dialog_80_1_text = "Goodbye";
var dialog_81_text = "Calendar? Oooo, that sounds sexy! I'd love to help you out, but I want to give you a special pose... Find the key to the side-room and I'll take you in and show you what I mean ;)";
var dialog_81_1_text = "Goodbye";
var dialog_82_text = "No key? Sorry, I just can't pose for you in public while I'm on the job. Keep looking!";
var dialog_82_1_text = "Goodbye";
var dialog_83_text = "Ah! There it is! Now come follow me... (she throws you in the room and starts stripping).";
var dialog_83_1_text = "Take photo";
var dialog_84_text = "Enjoy the pic :) I'd love to show you more, but I'm working right now...";
var dialog_84_1_text = "Goodbye";
var dialog_85_text = "Ack! Who are you? A calendar? Well, I'll forgive you for barging into my bathroom, but I'm in a little predicament here.";
var dialog_85_1_text = "Next";
var dialog_86_text = "Could you find a bar of soap for me? I had one, but I think it fell out of my purse while I was walking around town. Please bring it back to me!";
var dialog_86_1_text = "Goodbye";
var dialog_87_text = "You couldn't find the soap? Please find it! I'm pruning up in here! >:0";
var dialog_87_1_text = "Goodbye";
var dialog_88_text = "Thanks! I think I'll use it right now. Oh, right. The calendar. Well, why don't you take a picture?";
var dialog_88_1_text = "Take photo";
var dialog_89_text = "Mmm... I love to soap up my body...";
var dialog_89_1_text = "Goodbye";
var dialog_90_text = "Ouch! The sun's really out today. Oh hey! You're new here, aren't you? A Calendar? That sounds fun :) But I'm in dire need of some sun-tan lotion.";
var dialog_90_1_text = "Next";
var dialog_91_text = "I hear you can buy it at the stand over there. It shouldn't be too expensive. Consider it the cost for my picture ;)";
var dialog_91_1_text = "Goodbye";
var dialog_92_text = "No lotion yet? Please hurry! I'm burning up <:(";
var dialog_92_1_text = "Goodbye";
var dialog_93_text = "You got the lotion? Oh thank you, thank you! (takes off swimsuit) Now, could you please put it on my back?";
var dialog_93_1_text = "Take photo";
var dialog_94_text = "Thanks! Now I won't get skin cancer!";
var dialog_94_1_text = "Goodbye";
var dialog_97_text = "Secret backdoor!";
var dialog_97_1_text = "Ok";
var dialog_98_text = "Soap girl's house";
var dialog_98_1_text = "Ok";
var dialog_99_text = "Internet Cafe";
var dialog_99_1_text = "Ok";
var dialog_100_text = "Store closed";
var dialog_100_1_text = "Ok";
var dialog_101_text = "Erika's house";
var dialog_101_1_text = "Ok";
var dialog_102_text = "Beach house";
var dialog_102_1_text = "Ok";
var dialog_103_text = "Shy girl's house";
var dialog_103_1_text = "Ok";
var dialog_104_text = "Beachside Shop";
var dialog_104_1_text = "Ok";
var dialog_105_text = "Play Beach Avoider!";
var dialog_105_1_text = "Ok";
var dialog_106_text = "Test your knowledge!";
var dialog_106_1_text = "Ok";
var dialog_96_text = "You have found a bar of soap!";
var dialog_96_1_text = "Ok";
var dialog_110_text = "You have found a key!";
var dialog_110_1_text = "Ok";
var dialog_111_text = "Sweet! You just completed your calendar! Check out the 'Pics' menu to see the newly unlocked animations gallery.";
var dialog_111_1_text = "Next";
var dialog_112_text = "You can play the game over again, but the pics and animations will always be unlocked from the starting menu of the game. Just remember to always play this flash game at the same site you earned it! Good job and thanks for playing!";
var dialog_112_1_text = "Ok";
gotoAndStop ("mainMap");
Frame 27
function firstTime() {
if (firstPlay) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(1);
windowExit(1);
firstPlay = false;
}
}
function dudeControl() {
xVel = 0;
yVel = 0;
var _local1 = "";
if (Key.isDown(37) || (Key.isDown(KEYCODE_A))) {
_local1 = "Left";
xVel = xVel + speed;
}
if (Key.isDown(39) || (Key.isDown(KEYCODE_D))) {
_local1 = "Right";
xVel = xVel - speed;
}
if (Key.isDown(40) || (Key.isDown(KEYCODE_S))) {
yVel = yVel - speed;
if (_local1 == "") {
_local1 = "Down";
} else {
xVel = xVel * 0.75;
yVel = yVel * 0.75;
}
}
if (Key.isDown(38) || (Key.isDown(KEYCODE_W))) {
yVel = yVel + speed;
if (_local1 == "") {
_local1 = "Up";
} else {
xVel = xVel * 0.75;
yVel = yVel * 0.75;
}
}
if (_local1 == "") {
gameHolder_id.dude_id.gotoAndStop("stand" + lastFace);
_local1 = lastFace;
} else {
gameHolder_id.dude_id.gotoAndStop("walk" + _local1);
}
lastFace = _local1;
if (Key.isDown(32)) {
if (!spaceDown) {
spaceDown = true;
spaceBar();
}
} else {
spaceDown = false;
}
}
function optionControl() {
if (Key.isDown(40) || (Key.isDown(KEYCODE_S))) {
if (!downDown) {
downDown = true;
downKeyOption();
}
} else {
downDown = false;
}
if (Key.isDown(38) || (Key.isDown(KEYCODE_W))) {
if (!upDown) {
upDown = true;
upKeyOption();
}
} else {
upDown = false;
}
if (Key.isDown(32)) {
if (!spaceDown) {
spaceDown = true;
spaceBarOption();
}
} else {
spaceDown = false;
}
}
function downKeyOption() {
window_mc[("light" + selectedOption) + "_id"]._alpha = 0;
selectedOption++;
if (selectedOption > currentOptions) {
selectedOption = 1;
}
window_mc[("light" + selectedOption) + "_id"]._alpha = 100;
}
function upKeyOption() {
window_mc[("light" + selectedOption) + "_id"]._alpha = 0;
selectedOption--;
if (selectedOption < 1) {
selectedOption = currentOptions;
}
window_mc[("light" + selectedOption) + "_id"]._alpha = 100;
}
function spaceBarOption() {
if (photo_mc != undefined) {
photo_mc.button_id.onRelease();
} else if (window_mc != undefined) {
window_mc[("button" + selectedOption) + "_id"].onRelease();
}
}
function populateWindow(num) {
currentOptions = 0;
moveAllowed = false;
gameHolder_id.dude_id.inner_id.stop();
window_mc.message_txt.text = this[("dialog_" + num) + "_text"];
var _local2 = 1;
while (_local2 <= 5) {
window_mc[("light" + _local2) + "_id"]._alpha = 0;
if (this[((("dialog_" + num) + "_") + _local2) + "_text"] == undefined) {
window_mc[("button" + _local2) + "_id"]._alpha = 0;
window_mc[("button" + _local2) + "_id"].enabled = false;
} else {
currentOptions = _local2;
window_mc[("button" + _local2) + "_id"].button_txt.text = this[((("dialog_" + num) + "_") + _local2) + "_text"];
}
_local2++;
}
selectedOption = 1;
window_mc.light1_id._alpha = 100;
}
function windowExit(num) {
window_mc[("button" + num) + "_id"].onRelease = function () {
gameHolder_id.dude_id.inner_id.play();
moveAllowed = true;
this._parent.removeMovieClip();
};
}
function elfExit(num) {
window_mc[("button" + num) + "_id"].onRelease = function () {
this._parent._parent.attachMovie("shyRun", "run_mc", this._parent._parent.getNextHighestDepth());
var _local3 = (("part" + current_grid_x) + "_") + current_grid_y;
var _local2 = this._parent._parent.gameHolder_id.underHolder_id[_local3 + "_mc"];
run_mc._x = _local2[("elf" + shyGirl_state) + "_id"]._x - current_x_offset;
run_mc._y = _local2[("elf" + shyGirl_state) + "_id"]._y - current_y_offset;
shyGirl_state++;
this._parent._parent.initPosition(current_grid_x, current_grid_y, current_x_offset, current_y_offset);
this._parent.removeMovieClip();
};
}
function windowNext(num, target) {
window_mc[("button" + num) + "_id"].str = target;
window_mc[("button" + num) + "_id"].onRelease = function () {
this._parent._parent[this.str + "Handler"]();
};
}
function takePhoto(num, target, nextDialog) {
window_mc[("button" + num) + "_id"].pic = target;
window_mc[("button" + num) + "_id"].nextDialog = nextDialog;
window_mc[("button" + num) + "_id"].onRelease = function () {
displayPic(this.pic, this.nextDialog);
this._parent.removeMovieClip();
};
}
function displayPic(target, targetDialog) {
this.attachMovie(target, "photo_mc", this.getNextHighestDepth());
photo_mc.button_id.targetDialog = targetDialog;
photo_mc.button_id.targetName = target;
photo_mc.button_id.onRelease = function () {
if (this.targetDialog) {
this._parent._parent[this.targetName + "Handler"]();
} else {
gameHolder_id.dude_id.inner_id.play();
moveAllowed = true;
}
this._parent.removeMovieClip();
};
}
function updateItems() {
var _local3 = new Array("starfish", "peircing", "sandals", "wrench", "key", "soap", "lotion");
var _local2 = 0;
while (_local2 < _local3.length) {
if (this[_local3[_local2] + "_item"]) {
this[_local3[_local2] + "_id"]._alpha = 100;
} else {
this[_local3[_local2] + "_id"]._alpha = 0;
}
_local2++;
}
}
function girlNumCheck() {
var _local1 = 0;
if (flowerGirl_pic) {
_local1++;
}
if (shyGirl_pic) {
_local1++;
}
if (brunette_pic) {
_local1++;
}
if (lingerieGirl_pic) {
_local1++;
}
if (kaoxita_pic) {
_local1++;
}
if (lotionGirl_pic) {
_local1++;
}
if (sandalsGirl_pic) {
_local1++;
}
if (peircingGirl_pic) {
_local1++;
}
if (coverGirls_pic) {
_local1++;
}
if (erika_pic) {
_local1++;
}
if (soapGirl_pic) {
_local1++;
}
if (maestra_pic) {
_local1++;
}
if (secretary_pic) {
_local1++;
}
return(_local1);
}
function flowerGirlHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (!starfish_item) {
if (flowerGirl_state == 1) {
populateWindow(64);
windowExit(1);
flowerGirl_state = 2;
} else if (flowerGirl_state == 2) {
populateWindow(65);
windowExit(1);
}
} else if (flowerGirl_state <= 2) {
populateWindow(66);
takePhoto(1, "flowerGirl", true);
flowerGirl_state = 3;
} else if (flowerGirl_state == 3) {
wrench_item = true;
flowerGirl_pic = true;
so.data.flowerGirl_pic = true;
so.flush();
updateItems();
populateWindow(95);
windowExit(1);
flowerGirl_state = 4;
} else if (flowerGirl_state == 4) {
populateWindow(67);
windowExit(1);
}
}
function brunetteHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (email_state < 3) {
email_state = 2;
if (brunette_state == 1) {
populateWindow(45);
windowExit(1);
brunette_state = 2;
} else if (brunette_state == 2) {
populateWindow(46);
windowExit(1);
}
} else if (brunette_state <= 2) {
populateWindow(47);
takePhoto(1, "brunette", true);
brunette_state = 3;
} else if (brunette_state == 3) {
starfish_item = true;
brunette_pic = true;
so.data.brunette_pic = true;
so.flush();
updateItems();
populateWindow(107);
windowExit(1);
brunette_state = 4;
} else if (brunette_state == 4) {
populateWindow(109);
windowExit(1);
}
}
function kaoxitaHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (!wrench_item) {
if (kaoxita_state == 1) {
populateWindow(72);
windowExit(1);
kaoxita_state = 2;
} else if (kaoxita_state == 2) {
populateWindow(73);
windowExit(1);
}
} else if (kaoxita_state <= 2) {
populateWindow(74);
takePhoto(1, "kaoxita", true);
kaoxita_state = 3;
} else if (kaoxita_state == 3) {
sandals_item = true;
kaoxita_pic = true;
so.data.kaoxita_pic = true;
so.flush();
updateItems();
populateWindow(75);
windowExit(1);
kaoxita_state = 4;
} else if (kaoxita_state == 4) {
populateWindow(76);
windowExit(1);
}
}
function sandalsHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (!sandals_item) {
if (sandalsGirl_state == 1) {
populateWindow(68);
windowExit(1);
sandalsGirl_state = 2;
} else if (sandalsGirl_state == 2) {
populateWindow(69);
windowExit(1);
}
} else if (sandalsGirl_state <= 2) {
populateWindow(70);
takePhoto(1, "sandals");
sandalsGirl_state = 3;
sandalsGirl_pic = true;
so.data.sandalsGirl_pic = true;
so.flush();
} else if (sandalsGirl_state == 3) {
populateWindow(71);
windowExit(1);
}
}
function elfHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (!peircing_item) {
if (peircingGirl_state == 1) {
populateWindow(55);
windowExit(1);
peircingGirl_state = 2;
} else if (peircingGirl_state == 2) {
populateWindow(56);
windowExit(1);
}
} else if (peircingGirl_state <= 2) {
populateWindow(57);
takePhoto(1, "elf");
peircingGirl_state = 3;
peircingGirl_pic = true;
so.data.peircingGirl_pic = true;
so.flush();
} else if (peircingGirl_state == 3) {
populateWindow(58);
windowExit(1);
}
}
function lotionGirlHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (!lotion_item) {
if (lotionGirl_state == 1) {
populateWindow(90);
windowNext(1, "lotionGirl");
lotionGirl_state = 2;
} else if (lotionGirl_state == 2) {
populateWindow(91);
windowExit(1);
lotionGirl_state = 3;
} else if (lotionGirl_state == 3) {
populateWindow(92);
windowExit(1);
}
} else if (lotionGirl_state <= 3) {
populateWindow(93);
lotionGirl_pic = true;
so.data.lotionGirl_pic = true;
so.flush();
takePhoto(1, "lotionGirl");
lotionGirl_state = 4;
} else if (lotionGirl_state == 4) {
populateWindow(94);
windowExit(1);
}
}
function bootyDayHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (!erika_pic) {
if (lingerieGirl_state == 1) {
populateWindow(41);
windowExit(1);
lingerieGirl_state = 2;
} else if (lingerieGirl_state == 2) {
populateWindow(42);
windowExit(1);
}
} else if (lingerieGirl_state <= 2) {
populateWindow(43);
takePhoto(1, "bootyDay");
lingerieGirl_state = 3;
lingerieGirl_pic = true;
so.data.lingerieGirl_pic = true;
so.flush();
} else if (lingerieGirl_state == 3) {
populateWindow(44);
windowExit(1);
}
}
function beachBumsHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (girlNumCheck() < 12) {
if (coverGirls_state == 1) {
populateWindow(29);
windowNext(1, "beachBums");
coverGirls_state = 2;
} else if (coverGirls_state == 2) {
populateWindow(30);
windowNext(1, "beachBums");
coverGirls_state = 3;
} else if (coverGirls_state == 3) {
populateWindow(31);
windowNext(1, "beachBums");
coverGirls_state = 4;
} else if (coverGirls_state == 4) {
populateWindow(32);
windowNext(1, "beachBums");
coverGirls_state = 5;
} else if (coverGirls_state == 5) {
populateWindow(33);
windowExit(1);
coverGirls_state = 6;
} else if (coverGirls_state == 6) {
populateWindow(34);
windowNext(1, "beachBums");
coverGirls_state = 7;
} else if (coverGirls_state == 7) {
populateWindow(35);
windowExit(1);
coverGirls_state = 6;
}
} else if (coverGirls_state <= 7) {
populateWindow(36);
windowNext(1, "beachBums");
coverGirls_state = 8;
} else if (coverGirls_state == 8) {
populateWindow(37);
windowNext(1, "beachBums");
coverGirls_state = 9;
} else if (coverGirls_state == 9) {
populateWindow(38);
takePhoto(1, "beachBums", true);
coverGirls_state = 10;
} else if (coverGirls_state == 10) {
coverGirls_pic = true;
so.data.coverGirls_pic = true;
so.flush();
animationsUnlocked = true;
so.data.animationsUnlocked = true;
so.flush();
populateWindow(111);
windowNext(1, "beachBums");
coverGirls_state = 11;
} else if (coverGirls_state == 11) {
populateWindow(112);
windowExit(1);
coverGirls_state = 12;
} else if (coverGirls_state == 12) {
populateWindow(39);
windowNext(1, "beachBums");
coverGirls_state = 13;
} else if (coverGirls_state == 13) {
populateWindow(40);
windowExit(1);
coverGirls_state = 12;
}
}
function windowChoice(str, num1, num2) {
window_mc[("button" + num1) + "_id"].str = str;
window_mc[("button" + num1) + "_id"].num = num2;
window_mc[("button" + num1) + "_id"].onRelease = function () {
this._parent._parent[this.str + "_state"] = this.num;
this._parent._parent[this.str + "Handler"]();
};
}
function lotionShopHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (((lotionShop_state == 1) && (money < 10)) || (lotionShop_state == 5)) {
if (lotionShop_state == 1) {
populateWindow(5);
windowExit(1);
} else if (lotionShop_state == 5) {
populateWindow(6);
windowExit(1);
}
} else if (lotionShop_state == 1) {
populateWindow(2);
windowChoice("lotionShop", 1, 2);
windowChoice("lotionShop", 2, 3);
} else if (lotionShop_state == 2) {
money = money - 10;
updateMoney();
lotion_item = true;
updateItems();
populateWindow(3);
windowExit(1);
lotionShop_state = 5;
} else if (lotionShop_state == 3) {
populateWindow(4);
windowExit(1);
lotionShop_state = 1;
}
}
function windowTrivia(str, num, ans) {
var _local2 = 1;
while (_local2 <= num) {
if (_local2 == ans) {
window_mc[("button" + _local2) + "_id"].correct = true;
}
window_mc[("button" + _local2) + "_id"].str = str;
window_mc[("button" + _local2) + "_id"].onRelease = function () {
if (this.correct) {
currentTriviaScore++;
}
this._parent._parent[this.str + "Handler"]();
};
_local2++;
}
}
function updateTriviaScore() {
window_mc.trivia_txt.text = currentTriviaScore + "/10";
}
function triviaHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (trivia_state == 1) {
currentTriviaScore = 0;
populateWindow(15);
windowChoice("trivia", 1, 2);
windowChoice("trivia", 2, 3);
updateTriviaScore();
} else if (trivia_state == 2) {
currentTriviaScore = 0;
populateWindow(16);
windowNext(1, "trivia");
trivia_state = 19;
updateTriviaScore();
} else if (trivia_state == 3) {
populateWindow(9);
windowExit(1);
trivia_state = 1;
} else if (trivia_state == 19) {
populateWindow(19);
windowTrivia("trivia", 5, 2);
trivia_state = 20;
updateTriviaScore();
} else if (trivia_state == 20) {
populateWindow(20);
windowTrivia("trivia", 2, 1);
trivia_state = 21;
updateTriviaScore();
} else if (trivia_state == 21) {
populateWindow(21);
windowTrivia("trivia", 5, 3);
trivia_state = 22;
updateTriviaScore();
} else if (trivia_state == 22) {
populateWindow(22);
windowTrivia("trivia", 5, 2);
trivia_state = 23;
updateTriviaScore();
} else if (trivia_state == 23) {
populateWindow(23);
windowTrivia("trivia", 5, 3);
trivia_state = 24;
updateTriviaScore();
} else if (trivia_state == 24) {
populateWindow(24);
windowTrivia("trivia", 2, 1);
trivia_state = 25;
updateTriviaScore();
} else if (trivia_state == 25) {
populateWindow(25);
windowTrivia("trivia", 5, 3);
trivia_state = 26;
updateTriviaScore();
} else if (trivia_state == 26) {
populateWindow(26);
windowTrivia("trivia", 5, 2);
trivia_state = 27;
updateTriviaScore();
} else if (trivia_state == 27) {
populateWindow(27);
windowTrivia("trivia", 5, 2);
trivia_state = 28;
updateTriviaScore();
} else if (trivia_state == 28) {
populateWindow(28);
windowTrivia("trivia", 5, 1);
trivia_state = 29;
updateTriviaScore();
} else if (trivia_state == 29) {
updateTriviaScore();
if (currentTriviaScore == 10) {
if (bestTriviaScore >= 5) {
populateWindow(17);
takePhoto(1, "rabbitGirl");
secret2_pic = true;
so.data.secret2_pic = true;
so.flush();
trivia_state = 30;
} else {
money = money + 10;
updateMoney();
populateWindow(18);
takePhoto(1, "rabbitGirl");
secret2_pic = true;
so.data.secret2_pic = true;
so.flush();
trivia_state = 30;
}
} else if (currentTriviaScore >= 5) {
if (bestTriviaScore >= 5) {
populateWindow(10);
trivia_state = 1;
windowChoice("trivia", 1, 2);
windowExit(2);
} else {
populateWindow(11);
money = money + 10;
updateMoney();
windowExit(1);
trivia_state = 1;
}
} else {
populateWindow(10);
trivia_state = 1;
windowChoice("trivia", 1, 2);
windowExit(2);
}
bestTriviaScore = currentTriviaScore;
} else if (trivia_state == 30) {
populateWindow(14);
windowExit(1);
}
}
function openAvoiderGame(num) {
window_mc[("button" + num) + "_id"].onRelease = function () {
this._parent._parent.attachMovie("avoiderGame", "game_id", this._parent._parent.getNextHighestDepth());
this._parent.removeMovieClip();
};
}
function endAvoider(str, num) {
if (str == "win") {
if (num <= LOWEST_TIME_AVOIDER) {
if (!wonAvoiderOnce) {
wonAvoiderOnce = true;
avoider_state = 7;
avoiderHandler();
} else {
avoider_state = 6;
avoiderHandler();
}
} else if (!wonAvoiderOnce) {
wonAvoiderOnce = true;
avoider_state = 4;
avoiderHandler();
} else {
avoider_state = 5;
avoiderHandler();
}
} else {
avoider_state = 3;
avoiderHandler();
}
}
function avoiderHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (avoider_state == 1) {
currentAvoiderTime = 0;
populateWindow(7);
openAvoiderGame(1);
windowChoice("avoider", 2, 2);
} else if (avoider_state == 2) {
populateWindow(9);
windowExit(1);
avoider_state = 1;
} else if (avoider_state == 3) {
populateWindow(8);
windowExit(1);
avoider_state = 1;
} else if (avoider_state == 4) {
money = money + 10;
updateMoney();
populateWindow(11);
windowExit(1);
avoider_state = 1;
} else if (avoider_state == 5) {
populateWindow(10);
openAvoiderGame(1);
windowExit(2);
avoider_state = 1;
} else if (avoider_state == 6) {
populateWindow(12);
takePhoto(1, "beachSeason");
secret1_pic = true;
so.data.secret1_pic = true;
so.flush();
avoider_state = 30;
} else if (avoider_state == 7) {
money = money + 10;
updateMoney();
populateWindow(13);
takePhoto(1, "beachSeason");
secret1_pic = true;
so.data.secret1_pic = true;
so.flush();
avoider_state = 30;
} else if (avoider_state == 30) {
populateWindow(14);
windowExit(1);
}
}
function spaceBar() {
var _local2 = gameHolder_id.underHolder_id[((("part" + current_grid_x) + "_") + current_grid_y) + "_mc"];
if ((current_grid_x == 1) && (current_grid_y == 3)) {
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(97);
windowExit(1);
}
} else if ((current_grid_x == 1) && (current_grid_y == 7)) {
if (_local2.girl1_id.hitTest(320, 250, true)) {
flowerGirlHandler();
}
} else if ((current_grid_x == 2) && (current_grid_y == 2)) {
if (_local2.girl1_id.hitTest(320, 250, true)) {
if (shyGirl_state == 2) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(51);
elfExit(1);
}
}
} else if ((current_grid_x == 2) && (current_grid_y == 3)) {
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(98);
windowExit(1);
}
} else if ((current_grid_x == 2) && (current_grid_y == 5)) {
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(99);
windowExit(1);
}
} else if ((current_grid_x == 2) && (current_grid_y == 6)) {
if (_local2.girl1_id.hitTest(320, 250, true)) {
if (shyGirl_state == 1) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(50);
elfExit(1);
}
}
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(100);
windowExit(1);
}
} else if ((current_grid_x == 2) && (current_grid_y == 7)) {
if (_local2.girl1_id.hitTest(320, 250, true)) {
brunetteHandler();
}
} else if ((current_grid_x == 3) && (current_grid_y == 3)) {
if (_local2.girl1_id.hitTest(320, 250, true)) {
bootyDayHandler();
}
} else if ((current_grid_x == 3) && (current_grid_y == 4)) {
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(101);
windowExit(1);
}
} else if ((current_grid_x == 3) && (current_grid_y == 5)) {
if (_local2.keyDetect_id.hitTest(320, 250, true)) {
if (!key_item) {
key_item = true;
updateItems();
initPosition(current_grid_x, current_grid_y, current_x_offset, current_y_offset);
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(110);
windowExit(1);
}
}
} else if ((current_grid_x == 3) && (current_grid_y == 6)) {
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(102);
windowExit(1);
}
if (_local2.girl1_id.hitTest(320, 250, true)) {
kaoxitaHandler();
}
} else if ((current_grid_x == 4) && (current_grid_y == 2)) {
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(103);
windowExit(1);
}
} else if ((current_grid_x == 4) && (current_grid_y == 6)) {
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(104);
windowExit(1);
}
if (_local2.shop_id.hitTest(320, 250, true)) {
lotionShopHandler();
}
if (_local2.girl1_id.hitTest(320, 250, true)) {
lotionGirlHandler();
}
} else if ((current_grid_x == 5) && (current_grid_y == 2)) {
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(105);
windowExit(1);
}
if (_local2.shop_id.hitTest(320, 250, true)) {
avoiderHandler();
}
} else if ((current_grid_x == 5) && (current_grid_y == 3)) {
if (_local2.sign1_id.hitTest(320, 250, true)) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(106);
windowExit(1);
}
if (_local2.shop_id.hitTest(320, 250, true)) {
triviaHandler();
}
if (_local2.girl1_id.hitTest(320, 250, true)) {
sandalsHandler();
}
} else if ((current_grid_x == 5) && (current_grid_y == 4)) {
if (_local2.girl1_id.hitTest(320, 250, true)) {
elfHandler();
}
} else if ((current_grid_x == 5) && (current_grid_y == 6)) {
if (_local2.girl1_id.hitTest(320, 250, true)) {
beachBumsHandler();
}
} else if ((current_grid_x == 5) && (current_grid_y == 7)) {
if (shyGirl_state == 3) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(52);
elfExit(1);
}
} else if ((current_grid_x == 6) && (current_grid_y == 4)) {
if (_local2.soapDetect_id.hitTest(320, 250, true)) {
if (!soap_item) {
soap_item = true;
updateItems();
initPosition(current_grid_x, current_grid_y, current_x_offset, current_y_offset);
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(96);
windowExit(1);
}
}
}
}
function moveDude() {
var _local4 = false;
var _local5 = current_x_offset;
var _local6 = current_y_offset;
var _local3 = 1;
while (_local3 <= GRID_WIDTH) {
var _local1 = 1;
while (_local1 <= GRID_HEIGHT) {
var _local2 = gameHolder_id.underHolder_id[((("part" + _local3) + "_") + _local1) + "_mc"];
if ((_local3 == 1) && (_local1 == 3)) {
if (_local2.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
clearPieces();
clearOverPieces();
gotoAndStop ("upperLeftHouse");
house_id._x = 230;
return(undefined);
}
} else if ((_local3 == 2) && (_local1 == 3)) {
if (_local2.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
clearPieces();
clearOverPieces();
gotoAndStop ("upperLeftHouse");
return(undefined);
}
} else if ((_local3 == 2) && (_local1 == 5)) {
if (_local2.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
clearPieces();
clearOverPieces();
gotoAndStop ("internetCafe");
return(undefined);
}
} else if ((_local3 == 3) && (_local1 == 4)) {
if (_local2.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
clearPieces();
clearOverPieces();
gotoAndStop ("middleHouse");
return(undefined);
}
} else if ((_local3 == 3) && (_local1 == 6)) {
if (_local2.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
clearPieces();
clearOverPieces();
gotoAndStop ("beachHouse");
return(undefined);
}
} else if ((_local3 == 4) && (_local1 == 2)) {
if (_local2.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
clearPieces();
clearOverPieces();
gotoAndStop ("upperRightHouse");
return(undefined);
}
}
_local1++;
}
_local3++;
}
_local3 = 1;
while (_local3 <= GRID_WIDTH) {
var _local1 = 1;
while (_local1 <= GRID_HEIGHT) {
var _local2 = gameHolder_id.underHolder_id[((("part" + _local3) + "_") + _local1) + "_mc"];
if (_local2.hit_id.hitTest(320 - xVel, 250 - yVel, true)) {
return(undefined);
}
_local1++;
}
_local3++;
}
current_x_offset = current_x_offset - xVel;
current_y_offset = current_y_offset - yVel;
if (current_x_offset > (PIECE_WIDTH / 2)) {
current_x_offset = current_x_offset - PIECE_WIDTH;
current_grid_x = current_grid_x + 1;
} else if (current_x_offset < (-(PIECE_WIDTH / 2))) {
current_x_offset = current_x_offset + PIECE_WIDTH;
current_grid_x = current_grid_x - 1;
} else if ((current_x_offset >= 0) && (_local5 < 0)) {
_local4 = true;
} else if ((current_x_offset < 0) && (_local5 >= 0)) {
_local4 = true;
}
if (current_y_offset > (PIECE_HEIGHT / 2)) {
current_y_offset = current_y_offset - PIECE_HEIGHT;
current_grid_y = current_grid_y + 1;
} else if (current_y_offset < (-(PIECE_HEIGHT / 2))) {
current_y_offset = current_y_offset + PIECE_HEIGHT;
current_grid_y = current_grid_y - 1;
} else if ((current_y_offset >= 0) && (_local6 < 0)) {
_local4 = true;
} else if ((current_y_offset < 0) && (_local6 >= 0)) {
_local4 = true;
}
if (_local4) {
initPosition(current_grid_x, current_grid_y, current_x_offset, current_y_offset);
initOverPosition(current_grid_x, current_grid_y, current_x_offset, current_y_offset);
return(undefined);
}
_local3 = 1;
while (_local3 <= GRID_WIDTH) {
var _local1 = 1;
while (_local1 <= GRID_HEIGHT) {
var _local2 = gameHolder_id.underHolder_id[((("part" + _local3) + "_") + _local1) + "_mc"];
_local2._x = _local2._x + xVel;
_local2._y = _local2._y + yVel;
_local2 = gameHolder_id.overHolder_id[((("part" + _local3) + "_") + _local1) + "_over_mc"];
_local2._x = _local2._x + xVel;
_local2._y = _local2._y + yVel;
_local1++;
}
_local3++;
}
}
function initPosition(gridX, gridY, xOffset, yOffset) {
clearPieces();
var _local6 = (("part" + gridX) + "_") + gridY;
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
var _local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = -xOffset;
_local5._y = -yOffset;
stuffCheck(_local5);
if (xOffset >= 0) {
_local6 = (("part" + (gridX + 1)) + "_") + gridY;
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = PIECE_WIDTH - xOffset;
_local5._y = -yOffset;
stuffCheck(_local5);
if (yOffset >= 0) {
_local6 = (("part" + (gridX + 1)) + "_") + (gridY + 1);
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = PIECE_WIDTH - xOffset;
_local5._y = PIECE_HEIGHT - yOffset;
stuffCheck(_local5);
_local6 = (("part" + gridX) + "_") + (gridY + 1);
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = -xOffset;
_local5._y = PIECE_HEIGHT - yOffset;
stuffCheck(_local5);
} else {
_local6 = (("part" + (gridX + 1)) + "_") + (gridY - 1);
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = PIECE_WIDTH - xOffset;
_local5._y = (-yOffset) - PIECE_HEIGHT;
stuffCheck(_local5);
_local6 = (("part" + gridX) + "_") + (gridY - 1);
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = -xOffset;
_local5._y = (-yOffset) - PIECE_HEIGHT;
stuffCheck(_local5);
}
} else {
_local6 = (("part" + (gridX - 1)) + "_") + gridY;
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = (-xOffset) - PIECE_WIDTH;
_local5._y = -yOffset;
stuffCheck(_local5);
if (yOffset >= 0) {
_local6 = (("part" + (gridX - 1)) + "_") + (gridY + 1);
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = (-xOffset) - PIECE_WIDTH;
_local5._y = PIECE_HEIGHT - yOffset;
stuffCheck(_local5);
_local6 = (("part" + gridX) + "_") + (gridY + 1);
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = -xOffset;
_local5._y = PIECE_HEIGHT - yOffset;
stuffCheck(_local5);
} else {
_local6 = (("part" + (gridX - 1)) + "_") + (gridY - 1);
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = (-xOffset) - PIECE_WIDTH;
_local5._y = (-yOffset) - PIECE_HEIGHT;
stuffCheck(_local5);
_local6 = (("part" + gridX) + "_") + (gridY - 1);
gameHolder_id.underHolder_id.attachMovie(_local6, _local6 + "_mc", gameHolder_id.underHolder_id.getNextHighestDepth());
_local5 = gameHolder_id.underHolder_id[_local6 + "_mc"];
_local5._x = -xOffset;
_local5._y = (-yOffset) - PIECE_HEIGHT;
stuffCheck(_local5);
}
}
}
function initOverPosition(gridX, gridY, xOffset, yOffset) {
clearOverPieces();
var _local5 = ((("part" + gridX) + "_") + gridY) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
var _local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = -xOffset;
_local6._y = -yOffset;
if (xOffset >= 0) {
_local5 = ((("part" + (gridX + 1)) + "_") + gridY) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = PIECE_WIDTH - xOffset;
_local6._y = -yOffset;
if (yOffset >= 0) {
_local5 = ((("part" + (gridX + 1)) + "_") + (gridY + 1)) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = PIECE_WIDTH - xOffset;
_local6._y = PIECE_HEIGHT - yOffset;
_local5 = ((("part" + gridX) + "_") + (gridY + 1)) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = -xOffset;
_local6._y = PIECE_HEIGHT - yOffset;
} else {
_local5 = ((("part" + (gridX + 1)) + "_") + (gridY - 1)) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = PIECE_WIDTH - xOffset;
_local6._y = (-yOffset) - PIECE_HEIGHT;
_local5 = (("part" + gridX) + "_") + ((gridY - 1) + "_over");
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = -xOffset;
_local6._y = (-yOffset) - PIECE_HEIGHT;
}
} else {
_local5 = ((("part" + (gridX - 1)) + "_") + gridY) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = (-xOffset) - PIECE_WIDTH;
_local6._y = -yOffset;
if (yOffset >= 0) {
_local5 = ((("part" + (gridX - 1)) + "_") + (gridY + 1)) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = (-xOffset) - PIECE_WIDTH;
_local6._y = PIECE_HEIGHT - yOffset;
_local5 = ((("part" + gridX) + "_") + (gridY + 1)) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = -xOffset;
_local6._y = PIECE_HEIGHT - yOffset;
} else {
_local5 = ((("part" + (gridX - 1)) + "_") + (gridY - 1)) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = (-xOffset) - PIECE_WIDTH;
_local6._y = (-yOffset) - PIECE_HEIGHT;
_local5 = ((("part" + gridX) + "_") + (gridY - 1)) + "_over";
gameHolder_id.overHolder_id.attachMovie(_local5, _local5 + "_mc", gameHolder_id.overHolder_id.getNextHighestDepth());
_local6 = gameHolder_id.overHolder_id[_local5 + "_mc"];
_local6._x = -xOffset;
_local6._y = (-yOffset) - PIECE_HEIGHT;
}
}
}
function clearPieces() {
var _local3 = 1;
while (_local3 <= GRID_WIDTH) {
var _local1 = 1;
while (_local1 <= GRID_HEIGHT) {
var _local2 = gameHolder_id.underHolder_id[((("part" + _local3) + "_") + _local1) + "_mc"];
_local2.removeMovieClip();
_local1++;
}
_local3++;
}
}
function clearOverPieces() {
var _local3 = 1;
while (_local3 <= GRID_WIDTH) {
var _local1 = 1;
while (_local1 <= GRID_HEIGHT) {
var _local2 = gameHolder_id.overHolder_id[((("part" + _local3) + "_") + _local1) + "_over_mc"];
_local2.removeMovieClip();
_local1++;
}
_local3++;
}
}
function stuffCheck(target) {
elfGirlCheck(target);
soapCheck(target);
keyCheck(target);
}
function elfGirlCheck(target) {
target.elf1_id._alpha = 0;
target.elf2_id._alpha = 0;
target.elf3_id._alpha = 0;
target.elf4_id._alpha = 0;
target[("elf" + shyGirl_state) + "_id"]._alpha = 100;
if (shyGirl_state > 4) {
target.elf4_id._alpha = 100;
}
}
function soapCheck(target) {
if (!soap_item) {
target.soap_id._alpha = 100;
} else {
target.soap_id._alpha = 0;
}
}
function keyCheck(target) {
if (!key_item) {
target.key_id._alpha = 100;
} else {
target.key_id._alpha = 0;
}
}
function endRun() {
gameHolder_id.dude_id.inner_id.play();
moveAllowed = true;
run_mc.removeMovieClip();
}
function updateItems() {
if (starfish_item) {
starfish_id._alpha = 100;
} else {
starfish_id._alpha = 0;
}
if (peircing_item) {
peircing_id._alpha = 100;
} else {
peircing_id._alpha = 0;
}
if (sandals_item) {
sandals_id._alpha = 100;
} else {
sandals_id._alpha = 0;
}
if (wrench_item) {
wrench_id._alpha = 100;
} else {
wrench_id._alpha = 0;
}
if (key_item) {
key_id._alpha = 100;
} else {
key_id._alpha = 0;
}
if (soap_item) {
soap_id._alpha = 100;
} else {
soap_id._alpha = 0;
}
if (lotion_item) {
lotion_id._alpha = 100;
} else {
lotion_id._alpha = 0;
}
}
stop();
initPosition(current_grid_x, current_grid_y, current_x_offset, current_y_offset);
initOverPosition(current_grid_x, current_grid_y, current_x_offset, current_y_offset);
onEnterFrame = function () {
if (moveAllowed) {
dudeControl();
moveDude();
} else {
optionControl();
}
};
firstTime();
Frame 34
function moveDude() {
if (house_id.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
current_y_offset = current_y_offset + 6;
gotoAndStop ("mainMap");
return(undefined);
}
if (house_id.hit_id.hitTest(320 - xVel, 250 - yVel, true)) {
return(undefined);
}
house_id._x = house_id._x + xVel;
house_id._y = house_id._y + yVel;
}
function computerHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (email_state == 1) {
populateWindow(108);
windowExit(1);
} else if (email_state == 2) {
populateWindow(48);
windowExit(1);
email_state = 3;
} else if (email_state == 3) {
populateWindow(49);
windowExit(1);
}
}
function spaceBar() {
if (house_id.computer_id.hitTest(320, 250, true)) {
computerHandler();
}
}
stop();
Frame 44
function moveDude() {
if (house_id.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
current_y_offset = current_y_offset + 6;
gotoAndStop ("mainMap");
return(undefined);
}
if (house_id.hit_id.hitTest(320 - xVel, 250 - yVel, true)) {
return(undefined);
}
house_id._x = house_id._x + xVel;
house_id._y = house_id._y + yVel;
}
function sexySecretaryHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (!key_item) {
if (secretary_state == 1) {
populateWindow(81);
windowExit(1);
secretary_state = 2;
} else if (secretary_state == 2) {
populateWindow(82);
windowExit(1);
}
} else if (secretary_state <= 2) {
populateWindow(83);
takePhoto(1, "sexySecretary");
secretary_pic = true;
so.data.secretary_pic = true;
so.flush();
secretary_state = 3;
} else if (secretary_state == 3) {
populateWindow(84);
windowExit(1);
}
}
function maestraHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if ((money < 10) && (maestra_state < 3)) {
if (maestra_state == 1) {
populateWindow(77);
windowExit(1);
maestra_state = 2;
} else if (maestra_state == 2) {
populateWindow(78);
windowExit(1);
}
} else if (maestra_state <= 2) {
money = money - 10;
updateMoney();
populateWindow(79);
takePhoto(1, "maestra");
maestra_pic = true;
so.data.maestra_pic = true;
so.flush();
maestra_state = 3;
} else if (maestra_state == 3) {
populateWindow(80);
windowExit(1);
}
}
function spaceBar() {
if (house_id.sexySecretary_id.hitTest(320, 250, true)) {
sexySecretaryHandler();
} else if (house_id.maestra_id.hitTest(320, 250, true)) {
maestraHandler();
}
}
stop();
Frame 54
function moveDude() {
if (house_id.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
current_y_offset = current_y_offset + 6;
gotoAndStop ("mainMap");
return(undefined);
}
if (house_id.hit_id.hitTest(320 - xVel, 250 - yVel, true)) {
return(undefined);
}
house_id._x = house_id._x + xVel;
house_id._y = house_id._y + yVel;
}
function erikaHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (girlNumCheck() < 6) {
if (erika_state == 1) {
populateWindow(59);
windowExit(1);
erika_state = 2;
} else if (erika_state == 2) {
populateWindow(60);
windowExit(1);
}
} else if (erika_state <= 2) {
populateWindow(61);
takePhoto(1, "erika", true);
erika_state = 3;
} else if (erika_state == 3) {
peircing_item = true;
erika_pic = true;
so.data.erika_pic = true;
so.flush();
updateItems();
populateWindow(62);
windowExit(1);
erika_state = 4;
} else if (erika_state == 4) {
populateWindow(63);
windowExit(1);
}
}
function spaceBar() {
if (house_id.erika_id.hitTest(320, 250, true)) {
erikaHandler();
}
}
stop();
Frame 64
function moveDude() {
if (house_id.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
if (house_id._x > 0) {
current_x_offset = 83;
current_y_offset = 75;
current_grid_x = 1;
current_grid_y = 3;
} else {
current_x_offset = -178.5;
current_y_offset = 139.5;
current_grid_x = 2;
current_grid_y = 3;
}
gotoAndStop ("mainMap");
return(undefined);
}
if (house_id.hit_id.hitTest(320 - xVel, 250 - yVel, true)) {
return(undefined);
}
house_id._x = house_id._x + xVel;
house_id._y = house_id._y + yVel;
}
function showerGirlHandler() {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
if (!soap_item) {
if (showerGirl_state == 1) {
populateWindow(85);
windowNext(1, "showerGirl");
showerGirl_state = 2;
} else if (showerGirl_state == 2) {
populateWindow(86);
windowExit(1);
showerGirl_state = 3;
} else if (showerGirl_state == 3) {
populateWindow(87);
windowExit(1);
}
} else if (showerGirl_state <= 3) {
populateWindow(88);
takePhoto(1, "showerGirl");
soapGirl_pic = true;
so.data.soapGirl_pic = true;
so.flush();
showerGirl_state = 4;
} else if (showerGirl_state == 4) {
populateWindow(89);
windowExit(1);
}
}
function spaceBar() {
if (house_id.showerGirl_id.hitTest(320, 250, true)) {
showerGirlHandler();
}
}
stop();
Frame 76
function moveDude() {
if (house_id.teleport_id.hitTest(320 - xVel, 250 - yVel, true)) {
current_y_offset = current_y_offset + 6;
gotoAndStop ("mainMap");
return(undefined);
}
if (house_id.hit_id.hitTest(320 - xVel, 250 - yVel, true)) {
return(undefined);
}
house_id._x = house_id._x + xVel;
house_id._y = house_id._y + yVel;
}
function elfBootyHandler() {
if (shyGirl_state == 4) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(53);
takePhoto(1, "elfBooty");
shyGirl_pic = true;
so.data.shyGirl_pic = true;
so.flush();
shyGirl_state = 5;
} else if (shyGirl_state == 5) {
window_mc.removeMovieClip();
this.attachMovie("window", "window_mc", this.getNextHighestDepth());
populateWindow(54);
windowExit(1);
}
}
function spaceBar() {
if (house_id.shy_id.hitTest(320, 250, true)) {
elfBootyHandler();
}
}
stop();
elfGirlCheck(house_id);
Symbol 12 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Symbol 12 MovieClip Frame 2
gotoAndPlay (1);
Symbol 12 MovieClip Frame 40
_parent.gotoAndStop("menu");
Symbol 306 MovieClip [blocker] Frame 1
blocker_id.onRelease = function () {
};
blocker_id.useHandCursor = false;
Symbol 313 MovieClip [beachBums] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 317 MovieClip [beachSeason] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 321 MovieClip [bootyDay] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 325 MovieClip [brunette] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 329 MovieClip [elf] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 332 MovieClip [elfBooty] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 336 MovieClip [erika] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 339 MovieClip [flowerGirl] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 343 MovieClip [sandals] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 346 MovieClip [kaoxita] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 350 MovieClip [maestra] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 354 MovieClip [rabbitGirl] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 357 MovieClip [sexySecretary] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 360 MovieClip [showerGirl] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 363 MovieClip [lotionGirl] Frame 1
stop();
button_id.button_txt.text = "NEXT";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 465 MovieClip [window] Frame 1
stop();
var i = 1;
while (i <= 5) {
temp = this[("button" + i) + "_id"];
temp.onRollOver = (temp.onDragOver = function () {
this._alpha = 75;
});
temp.onRollOut = (temp.onDragOut = function () {
this._alpha = 100;
});
i++;
}
Symbol 473 MovieClip [shyRun] Frame 55
_parent.endRun();
Symbol 494 MovieClip Frame 1
stop();
this.onRollOver = (this.onDragOver = function () {
this._alpha = 75;
});
this.onRollOut = (this.onDragOut = function () {
this._alpha = 100;
});
Symbol 528 MovieClip Frame 1
stop();
this.onRollOver = (this.onDragOver = function () {
this._alpha = 75;
});
this.onRollOut = (this.onDragOut = function () {
this._alpha = 100;
});
Symbol 556 MovieClip [pics] Frame 1
function animationChecker() {
if (this._parent.animationsUnlocked) {
animations_id.onRelease = function () {
gotoAndStop ("animations");
};
animations_id.animations_txt.text = "animations!";
} else {
animations_id.animations_txt.text = "animations locked";
}
}
function openPic(target) {
this.attachMovie(target, "photo_mc", this.getNextHighestDepth());
photo_mc.button_id.targetDialog = targetDialog;
photo_mc.button_id.targetName = target;
photo_mc.button_id.onRelease = function () {
this._parent.removeMovieClip();
};
}
function updatePics() {
var _local3 = new Array("flowerGirl", "shyGirl", "brunette", "lingerieGirl", "kaoxita", "lotionGirl", "sandalsGirl", "peircingGirl", "coverGirls", "erika", "soapGirl", "maestra", "secretary", "secret1", "secret2");
var _local4 = new Array("flowerGirl", "elfBooty", "brunette", "bootyDay", "kaoxita", "lotionGirl", "sandals", "elf", "beachBums", "erika", "showerGirl", "maestra", "sexySecretary", "beachSeason", "rabbitGirl");
var _local2 = 0;
while (_local2 < _local3.length) {
if (this._parent[_local3[_local2] + "_pic"]) {
this[_local3[_local2] + "_id"]._alpha = 100;
this[_local3[_local2] + "_id"].targetName = _local4[_local2];
this[_local3[_local2] + "_id"].onRelease = function () {
openPic(this.targetName);
};
} else {
this[_local3[_local2] + "_id"]._alpha = 0;
}
_local2++;
}
}
stop();
back_id.onRollOver = (back_id.onDragOver = function () {
this._alpha = 75;
});
back_id.onRollOut = (back_id.onDragOut = function () {
this._alpha = 100;
});
back_id.onRelease = function () {
this._parent._parent.picsClose();
};
updatePics();
animationChecker();
Symbol 556 MovieClip [pics] Frame 7
function openAni(target) {
this.attachMovie("blocker", "blocker_mc", this.getNextHighestDepth());
this.attachMovie(target, "photo_mc", this.getNextHighestDepth());
photo_mc._x = 320 - (photo_mc._width / 2);
photo_mc._y = 240 - (photo_mc._height / 2);
photo_mc.button_id.targetDialog = targetDialog;
photo_mc.button_id.targetName = target;
photo_mc.button_id.onRelease = function () {
this._parent._parent.blocker_mc.removeMovieClip();
this._parent.removeMovieClip();
};
}
function updateAnis() {
var _local2 = 1;
while (_local2 <= 9) {
this[("reward" + _local2) + "_id"].num = _local2;
this[("reward" + _local2) + "_id"].onRelease = function () {
openAni("rewardGif" + this.num);
};
_local2++;
}
}
stop();
picsButton_id.onRollOver = (picsButton_id.onDragOver = function () {
this._alpha = 75;
});
picsButton_id.onRollOut = (picsButton_id.onDragOut = function () {
this._alpha = 100;
});
picsButton_id.onRelease = function () {
gotoAndStop ("pics");
};
picsButton_id.pics_txt.text = "Back to Photos";
updateAnis();
Symbol 622 MovieClip [rewardGif1] Frame 1
button_id.button_txt.text = "CLOSE";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 663 MovieClip [rewardGif2] Frame 1
button_id.button_txt.text = "CLOSE";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 696 MovieClip [rewardGif3] Frame 1
button_id.button_txt.text = "CLOSE";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 722 MovieClip [rewardGif4] Frame 1
button_id.button_txt.text = "CLOSE";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 740 MovieClip [rewardGif5] Frame 1
button_id.button_txt.text = "CLOSE";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 779 MovieClip [rewardGif6] Frame 1
button_id.button_txt.text = "CLOSE";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 814 MovieClip [rewardGif7] Frame 1
button_id.button_txt.text = "CLOSE";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 842 MovieClip [rewardGif8] Frame 1
button_id.button_txt.text = "CLOSE";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 908 MovieClip [rewardGif9] Frame 1
button_id.button_txt.text = "CLOSE";
button_id.onRollOver = (button_id.onDragOver = function () {
this._alpha = 75;
});
button_id.onRollOut = (button_id.onDragOut = function () {
this._alpha = 100;
});
Symbol 946 MovieClip [avoiderGame] Frame 1
function updateTimer() {
timeElapsed = timeElapsed + 1;
var _local2 = Math.floor(timeElapsed / 60);
var _local1 = timeElapsed % 60;
time_txt.text = ((("Time: " + _local2) + "m ") + _local1) + "s";
}
blocker_id.onRelease = function () {
};
blocker_id.useHandCursor = false;
back_id.onRollOver = (back_id.onDragOver = function () {
this._alpha = 75;
});
back_id.onRollOut = (back_id.onDragOut = function () {
this._alpha = 100;
});
back_id.onRelease = function () {
this._parent._parent.endAvoider();
clearInterval(intervalID);
this._parent.removeMovieClip();
};
var timeElapsed = 0;
this.createTextField("timer_txt", this.getNextHighestDepth(), 0, 0, 100, 22);
var intervalID = setInterval(updateTimer, 1000);
best_txt.text = ((("Best Time: " + Math.floor(this._parent.LOWEST_TIME_AVOIDER / 60000)) + "m ") + Math.floor((this._parent.LOWEST_TIME_AVOIDER / 1000) % 60)) + "s";
gotoAndStop ("level1");
Symbol 946 MovieClip [avoiderGame] Frame 7
stop();
var targetLevel = 1;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
gotoAndStop("level" + (targetLevel + 1));
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
test_mc.onRollOver = function () {
this._parent._parent.endAvoider("win", 109000);
clearInterval(intervalID);
this._parent.removeMovieClip();
};
Symbol 946 MovieClip [avoiderGame] Frame 13
stop();
var targetLevel = 2;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
gotoAndStop("level" + (targetLevel + 1));
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
Symbol 946 MovieClip [avoiderGame] Frame 19
stop();
var targetLevel = 3;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
gotoAndStop("level" + (targetLevel + 1));
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
Symbol 946 MovieClip [avoiderGame] Frame 25
stop();
var targetLevel = 4;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
gotoAndStop("level" + (targetLevel + 1));
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
Symbol 946 MovieClip [avoiderGame] Frame 31
stop();
var targetLevel = 5;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
gotoAndStop("level" + (targetLevel + 1));
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
Symbol 946 MovieClip [avoiderGame] Frame 37
stop();
var targetLevel = 6;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
gotoAndStop("level" + (targetLevel + 1));
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
Symbol 946 MovieClip [avoiderGame] Frame 43
stop();
var targetLevel = 7;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
gotoAndStop("level" + (targetLevel + 1));
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
Symbol 946 MovieClip [avoiderGame] Frame 49
stop();
var targetLevel = 8;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
gotoAndStop("level" + (targetLevel + 1));
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
Symbol 946 MovieClip [avoiderGame] Frame 55
stop();
var targetLevel = 9;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
gotoAndStop("level" + (targetLevel + 1));
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
Symbol 946 MovieClip [avoiderGame] Frame 61
stop();
var targetLevel = 10;
level_txt.text = "Level: " + targetLevel;
level_id.onRollOver = function () {
gotoAndStop ("reset");
};
level_id.enabled = false;
level_id._alpha = 0;
end_mc.onRollOver = function () {
this._parent._parent.endAvoider("win", timeElapsed);
clearInterval(intervalID);
this._parent.removeMovieClip();
};
end_mc.enabled = false;
end_mc._alpha = 0;
start_mc.onRollOver = function () {
level_id.enabled = true;
level_id._alpha = 100;
end_mc.enabled = true;
end_mc._alpha = 100;
this._alpha = 0;
this.enabled = false;
};
start_mc.enabled = true;
start_mc._alpha = 100;
Symbol 946 MovieClip [avoiderGame] Frame 68
gotoAndStop("level" + targetLevel);
Symbol 961 MovieClip [mapWindow] Frame 1
stop();
back_id.onRollOver = (back_id.onDragOver = function () {
this._alpha = 75;
});
back_id.onRollOut = (back_id.onDragOut = function () {
this._alpha = 100;
});
back_id.onRelease = function () {
this._parent._parent.mapClose();
};
Symbol 964 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 1
stop();
this.onRollOver = (this.onDragOver = function () {
this._alpha = 75;
});
this.onRollOut = (this.onDragOut = function () {
this._alpha = 100;
});
Symbol 982 MovieClip Frame 1
stop();
this.onRollOver = (this.onDragOver = function () {
this._alpha = 75;
});
this.onRollOut = (this.onDragOut = function () {
this._alpha = 100;
});
Symbol 986 MovieClip Frame 1
stop();
this.onRollOver = (this.onDragOver = function () {
this._alpha = 75;
});
this.onRollOut = (this.onDragOut = function () {
this._alpha = 100;
});
Symbol 987 MovieClip Frame 82
function picsClose() {
reset_vars();
pics_mc.removeMovieClip();
}
stop();
start_id.onRelease = function () {
_parent.gotoAndStop("init");
};
gallery_id.onRelease = function () {
so_to_vars();
this._parent.attachMovie("pics", "pics_mc", this._parent.getNextHighestDepth());
};
var flowerGirl_pic = _parent.so.data.flowerGirl_pic;
var shyGirl_pic = _parent.so.data.shyGirl_pic;
var brunette_pic = _parent.so.data.brunette_pic;
var lingerieGirl_pic = _parent.so.data.lingerieGirl_pic;
var kaoxita_pic = _parent.so.data.kaoxita_pic;
var lotionGirl_pic = _parent.so.data.lotionGirl_pic;
var sandalsGirl_pic = _parent.so.data.sandalsGirl_pic;
var peircingGirl_pic = _parent.so.data.peircingGirl_pic;
var coverGirls_pic = _parent.so.data.coverGirls_pic;
var erika_pic = _parent.so.data.erika_pic;
var soapGirl_pic = _parent.so.data.soapGirl_pic;
var maestra_pic = _parent.so.data.maestra_pic;
var secretary_pic = _parent.so.data.secretary_pic;
var secret1_pic = _parent.so.data.secret1_pic;
var secret2_pic = _parent.so.data.secret2_pic;
var animationsUnlocked = _parent.so.data.animationsUnlocked;
muteMenu_id.onRelease = function () {
if (_parent.volumeOn) {
_parent.global_sound.setVolume(0);
_parent.volumeOn = false;
} else {
_parent.global_sound.setVolume(100);
_parent.volumeOn = true;
}
};
Symbol 1007 MovieClip Frame 1
stop();
this.onRollOver = (this.onDragOver = function () {
this._alpha = 75;
});
this.onRollOut = (this.onDragOut = function () {
this._alpha = 100;
});
Symbol 1009 MovieClip Frame 1
stop();
this.onRollOver = (this.onDragOver = function () {
this._alpha = 75;
});
this.onRollOut = (this.onDragOut = function () {
this._alpha = 100;
});
Symbol 1011 MovieClip Frame 1
stop();
this.onRollOver = (this.onDragOver = function () {
this._alpha = 75;
});
this.onRollOut = (this.onDragOut = function () {
this._alpha = 100;
});
Symbol 1013 MovieClip Frame 1
stop();
this.onRollOver = (this.onDragOver = function () {
this._alpha = 75;
});
this.onRollOut = (this.onDragOut = function () {
this._alpha = 100;
});
Symbol 1054 MovieClip Frame 1
stop();
Symbol 1054 MovieClip Frame 10
stop();
Symbol 1054 MovieClip Frame 18
stop();
Symbol 1054 MovieClip Frame 26
stop();
Symbol 1054 MovieClip Frame 33
stop();
Symbol 1054 MovieClip Frame 42
stop();
Symbol 1054 MovieClip Frame 50
stop();
Symbol 1054 MovieClip Frame 57
stop();