Frame 1
fscommand ("trapallkeys", true);
fscommand ("showmenu", false);
fscommand ("allowscale", false);
_focusrect = false;
Frame 2
factor = _root.getBytesLoaded() / _root.getBytesTotal();
factor2 = Math.floor(factor * 100);
percent.text = factor2 + "%";
pol.gotoAndStop(factor2);
if (factor >= 1) {
_root.gotoAndStop("Title");
}
Frame 3
_root.gotoAndPlay("Loader");
Frame 13
function playSound(name_sound) {
if (soundOn) {
name_sound.setVolume(100);
name_sound.start();
}
}
function stopSound(name_sound) {
name_sound.stop();
}
function cycleSound(name_sound) {
if (soundOn) {
sound_mc.menu_snd_mc.onEnterFrame = function () {
if (name_sound.duration == name_sound.position) {
name_sound.start();
}
};
}
}
function fadeIn(name_sound) {
if (soundOn) {
vlm = name_sound.getVolume();
playSound(name_sound);
sound_mc.pool_snd_mc.onEnterFrame = function () {
if (name_sound.getVolume() <= 100) {
name_sound.setVolume(vlm++);
fedeIn(name_sound);
} else {
delete sound_mc.pool_snd_mc.onEnterFrame;
}
};
}
}
function fadeOut(name_sound) {
if (soundOn) {
vlm = name_sound.getVolume();
sound_mc.beach_snd_mc.onEnterFrame = function () {
if (name_sound.getVolume() > 0) {
name_sound.setVolume(vlm--);
fedeOut(name_sound);
} else {
stopSound(name_sound);
delete sound_mc.beach_snd_mc.onEnterFrame;
}
};
}
}
stop();
var soundOn = true;
var menu_snd = new Sound();
var beach_snd = new Sound();
var club_snd = new Sound();
var pool_snd = new Sound();
var busted = new Sound();
var congratulations = new Sound();
var security = new Sound();
var camera = new Sound();
var menu_click = new Sound();
menu_snd.attachSound("menu");
menu_snd.setVolume(0);
beach_snd.attachSound("beach");
beach_snd.setVolume(0);
club_snd.attachSound("club");
club_snd.setVolume(0);
pool_snd.attachSound("pool");
pool_snd.setVolume(0);
busted.attachSound("busted");
busted.setVolume(0);
camera.attachSound("camera");
camera.setVolume(0);
menu_click.attachSound("menu_click");
menu_click.setVolume(0);
congratulations.attachSound("congratulations");
congratulations.setVolume(0);
security.attachSound("security");
security.setVolume(0);
stopAllSounds();
playSound(menu_snd);
cycleSound(menu_snd);
play_start_btn.onRelease = function () {
gotoAndStop ("Menu");
};
Frame 21
if (!load_one) {
load_one = true;
var text_menu = 1;
}
txt_menu = menu_mc.txt_menu_mc;
txt_menu.gotoAndStop(text_menu);
play_btn.onRollOver = function () {
playSound(menu_click);
};
play_btn.onRelease = function () {
playSound(menu_click);
gotoAndStop ("Game");
};
prog_btn.onRelease = function () {
playSound(menu_click);
getURL ("mailto:elis.apeyron@gmail.com");
};
prog_btn.onRollOver = function () {
playSound(menu_click);
};
stopAllSounds();
playSound(menu_snd);
cycleSound(menu_snd);
Frame 26
var arOb = [];
ob = {};
ob.mission_costmin = 200;
ob.mission_costmax = 500;
ob.mission_costbonus = 0;
ob.mission_clipbonus = "";
ob.mission_time = 60;
ob.mission_number = 1;
ob.mission_name = "MISSION 1 Red Carpet";
ob.mission_redactor = "Miley is going to the big Hollywood premiere! Everyone wants to know what she\u2019s wearing!";
arOb.push(ob);
ob = {};
ob.mission_costmin = 300;
ob.mission_costmax = 500;
ob.mission_costbonus = 0;
ob.mission_clipbonus = "";
ob.mission_time = 50;
ob.mission_number = 2;
ob.mission_name = "MISSION 2 Green Room";
ob.mission_redactor = "Miley likes to kick back like any normal teenager. Capture her casual side!";
arOb.push(ob);
ob = {};
ob.mission_costmin = 400;
ob.mission_costmax = 500;
ob.mission_costbonus = 100;
ob.mission_clipbonus = "hero_4";
ob.mission_time = 40;
ob.mission_number = 3;
ob.mission_name = "MISSION 3 Candy Land";
ob.mission_redactor = "Miley has a sweet tooth! Shoot her partying with her candy-loving posse! BFF4L!";
arOb.push(ob);
ob = {};
ob.mission_costmin = 100;
ob.mission_costmax = 100;
ob.mission_costbonus = 0;
ob.mission_clipbonus = "";
ob.mission_time = 200;
ob.mission_number = 4;
ob.mission_name = "MISSION 4 The Shoot";
ob.mission_redactor = "This is it! The cover of Manatee Hair magazine! You can launch your own career, if you can get the ultimate shot of Miley. Say Cheese!";
arOb.push(ob);
function loadXML() {
txt_mc._visible = false;
baddy_mc._visible = false;
info_xml = new XML();
info_xml.ignoreWhite = true;
info_xml.onLoad = function (success) {
if (success) {
if (info_xml.firstChild.hasChildNodes()) {
var _local1 = info_xml.firstChild.firstChild;
while (_local1 != null) {
ob = {};
ob.mission_costmin = Number(_local1.attributes.costmin);
ob.mission_costmax = Number(_local1.attributes.costmax);
ob.mission_costbonus = Number(_local1.attributes.costbonus);
ob.mission_clipbonus = _local1.attributes.clipbonus.split(",");
ob.mission_time = Number(_local1.attributes.time);
ob.mission_number = Number(_local1.attributes.number);
ob.mission_name = String(_local1.attributes.name);
ob.mission_redactor = _local1.firstChild.firstChild;
arOb.push(ob);
_local1 = _local1.nextSibling;
}
}
if (!load_xml) {
load_xml = true;
loadListenerMouse("create");
}
loadGame(num_mission);
} else {
txt_mc._visible = false;
fon_menu_mc._visible = true;
baddy_mc._visible = false;
fon_menu_mc._visible = false;
counter_mc._visible = false;
game_mc.gotoAndStop("Error");
return(undefined);
}
};
info_xml.load(path_xml);
}
function init() {
txt_mc._visible = false;
baddy_mc._visible = false;
load_xml = true;
loadListenerMouse("create");
loadGame(num_mission);
}
function loadGame(num_mission) {
if (num_mission != 0) {
mouse_click = 0;
}
txt_mc._visible = true;
start_btn._visible = true;
camera_mc._visible = false;
fon_foto_mc._visible = false;
baddy_mc._visible = false;
arMaxCost = [];
time_limit = arOb[num_mission].mission_time;
txt_mc.txt_redactor.text = arOb[num_mission].mission_redactor;
mc_mission_name.gotoAndStop(num_mission + 1);
if (num_mission == end_mission) {
txt_mc.max_many_txt.text = arOb[num_mission].mission_costmin + "k";
txt_mc.time_txt.text = "no";
} else {
txt_mc.max_many_txt.text = arOb[num_mission].mission_costmin;
txt_mc.time_txt.text = time_limit;
}
game_mc.gotoAndStop(num_mission + 1);
counter_mc.time_mc.gotoAndStop(1);
var _local1 = 1;
while (_local1 <= num_photo) {
main_mc[("photo_" + _local1) + "_mc"].xyScale(-70, 70, 70);
main_mc[("photo_" + _local1) + "_mc"]._x = startPhotoPositionX[_local1];
main_mc[("photo_" + _local1) + "_mc"]._y = startPhotoPositionY[_local1];
main_mc[("photo_" + _local1) + "_mc"]._visible = false;
_local1++;
}
hideHero(fon_mc);
hideHero(fon_foto_mc);
}
function hideHero(clip) {
var _local3 = 0;
for (j in clip) {
var _local2 = typeof(clip[j]);
if ((_local2 == "movieclip") && (clip[j]._name.charAt(0) == "h")) {
_local3++;
clip[j]._visible = false;
}
}
num_hero = _local3;
return(num_hero);
}
function loadListenerMouse(param) {
switch (param) {
case "create" :
var _local1 = new Object();
_local1.onMouseMove = function () {
if (!game_over) {
camera_mc.trackMouse();
mask_camera_mc.trackMouse();
fon_foto_mc._x = camera_mc._x - (fon_mc._xmouse * (fon_foto_mc._width / 555.5));
fon_foto_mc._y = camera_mc._y - (fon_mc._ymouse * (fon_foto_mc._height / 404));
}
};
_local1.onMouseWheel = function (delta) {
fon_foto_mc._xscale = (fon_foto_mc._yscale = fon_foto_mc._yscale + delta);
};
_local1.onMouseDown = function () {
if ((!game_over) && (camera_mc._visible)) {
mouse_click = mouse_click + 1;
takeShot(mouse_click);
}
};
Mouse.addListener(_local1);
break;
case "delete" :
Mouse.removeListener(_local1);
}
}
function limitTrackMouse() {
if ((camera_mc._x - (mask_camera_mc._width / 2)) <= 10) {
camera_mc._x = mask_camera_mc._width / 2;
mask_camera_mc._x = mask_camera_mc._width / 2;
}
if ((camera_mc._x + (mask_camera_mc._width / 2)) > fon_mc._width) {
camera_mc._x = fon_mc._width - (mask_camera_mc._width / 2);
mask_camera_mc._x = fon_foto_mc._width - (mask_camera_mc._width / 2);
}
if ((camera_mc._y - (mask_camera_mc._height / 2)) <= 10) {
camera_mc._y = mask_camera_mc._height / 2;
mask_camera_mc._y = mask_camera_mc._height / 2;
}
if ((camera_mc._y + (mask_camera_mc._height / 2)) > fon_mc._height) {
camera_mc._y = fon_mc._height - (mask_camera_mc._height / 2);
mask_camera_mc._y = fon_foto_mc._height - (mask_camera_mc._height / 2);
}
if (fon_foto_mc._xscale <= 102) {
fon_foto_mc._xscale = (fon_foto_mc._yscale = 102);
}
if (fon_foto_mc._xscale > 120) {
fon_foto_mc._xscale = (fon_foto_mc._yscale = 120);
}
}
function takeShot(photo_num) {
playSound(camera);
var _local2 = [];
var _local3 = {};
var _local1 = 0;
name_photo = "photo_mc";
name_photo_path = main_mc[("photo_" + photo_num) + "_mc"][name_photo].attachMovie([("fon_" + (num_mission + 1)) + "_mc"], name_photo, main_mc[("photo_" + photo_num) + "_mc"][name_photo].getNextHighestDepth());
arPhoto.push(main_mc[("photo_" + photo_num) + "_mc"]);
for (var _local13 in fon_mc) {
if (typeof(fon_mc[_local13]) == "movieclip") {
_local3 = {pctx:(fon_mc._x - camera_mc._x) * (fon_foto_mc._width / 555.5), pcty:(fon_mc._y - camera_mc._y) * (fon_foto_mc._height / 404), pctscale:fon_foto_mc._xscale, name_src_mc:fon_mc[_local13]._name, visible_src_mc:fon_mc[_local13]._visible, currentframe_src_mc:fon_mc[_local13]._currentframe};
if (fon_mc[_local13]._visible == true) {
_local3 = {visible_src_mc:fon_mc[_local13]._visible, currentframe_src_mc:fon_mc[_local13]._currentframe};
}
_local2.push(_local3);
}
}
for (var _local12 in name_photo_path) {
if (typeof(name_photo_path[_local12]) == "movieclip") {
_local1++;
name_photo_path._x = _local2[_local1 - 1].pctx;
name_photo_path._y = _local2[_local1 - 1].pcty;
name_photo_path._xscale = (name_photo_path._yscale = _local2[_local1 - 1].pctscale);
name_photo_path[_local12].stop();
if (name_photo_path[_local12]._name == _local2[_local1 - 1].name_src_mc) {
name_photo_path[_local12]._visible = _local2[_local1 - 1].visible_src_mc;
} else {
name_photo_path[_local12].gotoAndStop(_local2[_local1 - 1].currentframe_src_mc);
for (var _local10 in name_photo_path[_local12]) {
name_photo_path[_local12][_local10].stop();
}
}
}
}
checkingHero();
arPhotoCost[photo_num] = photoValue;
photoValue = 0;
animationPhotoScale(main_mc[("photo_" + photo_num) + "_mc"], photo_num);
}
function animationPhotoScale(name_photo, photo_num) {
name_photo._visible = true;
name_photo.onEnterFrame = function () {
this.xyScale(8, 10, 130);
if (this._xscale >= 130) {
this.xyScale(-10, 100, 100);
}
if (this._xscale == 100) {
delete this.onEnterFrame;
if (photo_num == num_photo) {
var time_endmission = 0;
game_mc.createEmptyMovieClip("time_endmission_mc", this.getNextHighestDepth());
game_mc.time_endmission_mc.onEnterFrame = function () {
time_endmission++;
if (time_endmission >= 30) {
time_endmission = 0;
gameOver("endmission");
removeMovieClip(this);
delete this.onEnterFrame;
return(undefined);
}
};
}
}
};
}
function animationPhotoFalling(name_photo, speed) {
main_mc[("photo_" + name_photo) + "_mc"].onEnterFrame = function () {
this._y = this._y + speed;
name_photo = name_photo - 1;
animationPhotoFalling(name_photo, speed);
if (this._y >= stage_heigth) {
delete this.onEnterFrame;
if (this._name == name_first_photo) {
fon_menu_mc._visible = true;
animationPhotoPosition(1);
}
}
};
}
function animationPhotoPosition(i) {
if (i > num_photo) {
photoCost(1);
return(undefined);
}
main_mc[("photo_" + i) + "_mc"].onEnterFrame = function () {
this.xyScale(100, 100, 150);
this._y = this._y - 25;
this._x = this._x - 25;
if ((this._x <= endPhotoPositionX[i]) || (this._y <= endPhotoPositionY[i])) {
this._x = endPhotoPositionX[i];
if (this._y <= endPhotoPositionY[i]) {
this._y = endPhotoPositionY[i];
delete this.onEnterFrame;
i = i + 1;
animationPhotoPosition(i);
}
}
};
}
function checkingHero() {
i = 1;
while (i <= num_hero) {
if (mask_camera_mc.hitTest(fon_mc["hero_" + i]) && (fon_mc["hero_" + i]._visible == true)) {
if (fon_mc["hero_" + i]._currentframe == 1) {
detectCost(i);
}
if (fon_mc["hero_" + i]._currentframe == 3) {
playSound(security);
var time_lose_security = 0;
game_mc.createEmptyMovieClip("time_lose_security_mc", this.getNextHighestDepth());
game_mc.time_lose_security_mc.onEnterFrame = function () {
time_lose_security++;
if (time_lose_security >= 30) {
time_lose_security = 0;
gameOver("lose");
removeMovieClip(this);
delete this.onEnterFrame;
return(undefined);
}
};
}
}
i++;
}
}
function detectCost(target) {
photo_name = fon_mc["hero_" + target];
obj1_mc = photo_name;
obj2_mc = mask_camera_mc;
minx1 = obj1_mc._x;
maxx1 = obj1_mc._x + obj1_mc._width;
miny1 = obj1_mc._y;
maxy1 = obj1_mc._y + obj1_mc._height;
minx2 = fon_mc._xmouse - (obj2_mc._width / 2);
maxx2 = fon_mc._xmouse + (obj2_mc._width / 2);
miny2 = fon_mc._ymouse - (obj2_mc._height / 2);
maxy2 = fon_mc._ymouse + (obj2_mc._height / 2);
if (obj2_mc.hitTest(obj1_mc) && (obj1_mc._visible == true)) {
photoValueX = Math.abs(100 - Math.abs(Math.abs(minx1) - Math.abs(minx2)));
photoValueY = Math.abs(100 - Math.abs(Math.abs(miny1) - Math.abs(miny2)));
photoValue = Math.ceil((photoValueX + photoValueY) / 2);
var _local1 = 0;
while (_local1 <= arOb[num_mission].mission_clipbonus.length) {
if ((obj1_mc._name == arOb[num_mission].mission_clipbonus[_local1]) && (photoValue > 75)) {
photoValue = photoValue + arOb[num_mission].mission_costbonus;
}
_local1++;
}
}
arPhotoCost.push(photoValue);
}
function photoCost(i) {
if (i > num_photo) {
var _local3 = 0;
while (_local3 <= arMaxCost.length) {
var _local2 = _local3;
while (_local2 <= arMaxCost.length) {
if (arMaxCost[_local2].cost > arMaxCost[_local3].cost) {
var _local4 = arMaxCost[_local2];
arMaxCost[_local3] = arMaxCost[_local2];
arMaxCost[_local3] = _local4;
}
_local2++;
}
_local3++;
}
arMaxCost[0].name.price_txt.backgroundColor = 16724736 /* 0xFF3300 */;
var time_photo_price = 0;
game_mc.createEmptyMovieClip("price_magazine_mc", this.getNextHighestDepth());
game_mc.price_magazine_mc.onEnterFrame = function () {
time_photo_price++;
if (time_photo_price == 45) {
priceTime(arMaxCost[0].name, arMaxCost[0].cost);
}
if (time_photo_price == 90) {
magazineVisible();
getMission("next");
removeMovieClip(this);
delete this.onEnterFrame;
}
};
return(undefined);
}
time = 0;
main_mc[("photo_" + i) + "_mc"].onEnterFrame = function () {
time++;
if (time == 10) {
this.xyScale(-10, 100, 100);
var _local2 = new TextFormat();
_local2.color = 16758784 /* 0xFFB800 */;
_local2.font = "Arial Black";
this.createTextField("price_txt", this.getNextHighestDepth(), 0, -60, 90, 20);
this.price_txt.background = true;
this.price_txt.backgroundColor = 16777164 /* 0xFFFFCC */;
photo_price = (arPhotoCost[i] * Math.ceil(arOb[num_mission].mission_costmin / 90)) + (Math.ceil(this._width / mask_camera_mc._width) * 2);
if (arPhotoCost[i] <= 0) {
photo_price = 0;
}
if (photo_price > arOb[num_mission].mission_costmax) {
photo_price = arOb[num_mission].mission_costmax;
}
this.price_txt.text = (("$" + photo_price) + "/$") + arOb[num_mission].mission_costmax;
this.price_txt.setTextFormat(_local2);
total_cost = total_cost + (arPhotoCost[i] * (arOb[num_mission].mission_costmax / 100));
if (photo_price >= arOb[num_mission].mission_costmin) {
var _local3 = {cost:photo_price, name:main_mc[("photo_" + i) + "_mc"]};
arMaxCost.push(_local3);
}
delete this.onEnterFrame;
i++;
photoCost(i);
}
};
}
function priceTime(param, cost) {
showMagazine(param, cost, 5, 5);
}
function magazineVisible() {
fon_menu_mc.magazine_mc._visible = true;
}
function showMagazine(name_photo, cost_photo, speed, num) {
var arCoverPhoto = [];
var _local4 = {};
for (var _local12 in name_photo.photo_mc.photo_mc) {
if (typeof(name_photo.photo_mc.photo_mc[_local12]) == "movieclip") {
_local4 = {srcx:name_photo.photo_mc.photo_mc._x, srcy:name_photo.photo_mc.photo_mc._y, src_scale:name_photo.photo_mc.photo_mc._xscale, src_clip_name:name_photo.photo_mc.photo_mc[_local12]._name, src_clip_visible:name_photo.photo_mc.photo_mc[_local12]._visible, src_clip_currentframe:name_photo.photo_mc.photo_mc[_local12]._currentframe};
arCoverPhoto.push(_local4);
}
}
main_mc[("photo_" + num) + "_mc"].onEnterFrame = function () {
this._y = this._y + speed;
if (this._y >= (stage_heigth / 2)) {
num = num - 1;
speed = speed + 5;
showMagazine(name_photo, cost_photo, speed, num);
}
if (this._y >= stage_heigth) {
this.price_txt.removeTextField();
this.photo_mc.photo_mc.removeMovieClip();
playSound(congratulations);
fon_menu_mc.gotoAndStop("Magazine");
fon_menu_mc.magazine_mc.gotoAndStop(num_mission + 1);
if ((cost_photo * (arOb[num_mission].mission_costmax / 100)) > arOb[num_mission].mission_costmin) {
var _local6 = "photo_mc";
var _local2 = fon_menu_mc.magazine_mc.foto_magazine_mc.attachMovie([("fon_" + (num_mission + 1)) + "_mc"], _local6, fon_menu_mc.magazine_mc.foto_magazine_mc[name_photo].getNextHighestDepth());
_local2._visible = false;
_local2._xscale = (_local2._yscale = arCoverPhoto[0].src_scale);
for (var _local5 in _local2) {
if (typeof(_local2[_local5]) == "movieclip") {
_local2[_local5].stop();
for (var _local4 in _local2[_local5]) {
_local2[_local5][_local4].stop();
}
var _local3 = 0;
while (_local3 <= arCoverPhoto.length) {
if (_local2[_local5]._name == arCoverPhoto[_local3].src_clip_name) {
_local2[_local5]._visible = arCoverPhoto[_local3].src_clip_visible;
_local2[_local5]._currentframe = arCoverPhoto[_local3].src_clip_currentframe;
_local2._x = arCoverPhoto[0].srcx;
_local2._y = arCoverPhoto[0].srcy;
}
_local3++;
}
}
}
} else {
delete this.onEnterFrame;
this.photo_mc.photo_mc.removeMovieClip();
_local2._visible = true;
getMission("prev");
}
delete this.onEnterFrame;
this.photo_mc.photo_mc.removeMovieClip();
_local2._visible = true;
}
};
}
function getMission(param) {
switch (param) {
case "prev" :
loadListenerMouse("delete");
text_menu = 2;
gotoAndStop ("Menu");
break;
case "next" :
game_mc.createEmptyMovieClip("time_show_magazine_getmission_mc", this.getNextHighestDepth());
game_mc.time_show_magazine_getmission_mc.onEnterFrame = function () {
if (next_level) {
fon_menu_mc.gotoAndStop(1);
num_mission++;
loadGame(num_mission);
next_level = false;
removeMovieClip(this);
delete this.onEnterFrame;
return(undefined);
}
};
}
}
function heroVisibility() {
r = random(num_hero) + 1;
i = 1;
while (i <= num_hero) {
fon_mc["hero_" + i]._visible = false;
fon_foto_mc["hero_" + i]._visible = false;
i++;
}
fon_mc["hero_" + r]._visible = true;
fon_foto_mc["hero_" + r]._visible = true;
}
function gameOver(param) {
if (num_mission == end_mission) {
loadListenerMouse("delete");
counter_mc._visible = false;
game_mc.gotoAndStop("Mission_End");
return(undefined);
}
stopAllSounds();
camera_mc._visible = false;
fon_foto_mc._visible = false;
game_over = true;
switch (param) {
case "lose" :
loadListenerMouse("delete");
playSound(busted);
total_cost = 0;
baddy_mc._visible = true;
var _local2 = 1;
while (_local2 <= num_photo) {
main_mc[("photo_" + _local2) + "_mc"].photo_mc.photo_mc.removeMovieClip();
_local2++;
}
var time_show_baddy = 0;
game_mc.createEmptyMovieClip("time_show_baddy_mc", this.getNextHighestDepth());
game_mc.time_show_baddy_mc.onEnterFrame = function () {
time_show_baddy++;
if (time_show_baddy >= 90) {
time_show_baddy = 0;
getMission("prev");
removeMovieClip(this);
delete this.onEnterFrame;
return(undefined);
}
};
break;
case "endmission" :
fadeIn(menu_snd);
cycleSound(menu_snd);
animationPhotoFalling(num_photo, 50);
}
}
function timeLimit() {
counter_mc.arrow_mc._rotation = Math.ceil((time_game * 360) / (time_limit * 30));
if (Math.ceil((time_game * 360) / (time_limit * 30)) >= 290) {
counter_mc.time_mc.play();
}
if (time_game >= (time_limit * 30)) {
playSound(security);
delete game_mc.onEnterFrame;
var time_lose = 0;
game_mc.createEmptyMovieClip("time_lose_mc", this.getNextHighestDepth());
game_mc.time_lose_mc.onEnterFrame = function () {
time_lose++;
if (time_lose >= 30) {
time_lose = 0;
gameOver("lose");
removeMovieClip(this);
delete this.onEnterFrame;
return(undefined);
}
};
}
}
function startGame() {
time_game = 0;
time_hero = 0;
game_over = false;
game_mc.onEnterFrame = function () {
if (!game_over) {
if (num_mission != end_misssion) {
time_hero++;
if (time_hero >= 60) {
time_hero = 0;
heroVisibility();
}
time_game++;
timeLimit();
limitTrackMouse();
}
} else {
delete game_mc.onEnterFrame;
return(undefined);
}
};
}
stop();
var num_mission = 0;
var end_mission = 3;
var num_photo = 5;
var num_hero = 0;
var time_game = 0;
var time_limit = 0;
var mouse_click = 0;
var scale_value = 100;
var stage_heigth = 500;
var startPhotoPositionX = [0, 60, 160, 260, 360, 460];
var startPhotoPositionY = [0, 50, 50, 50, 50, 50];
var endPhotoPositionX = [0, 140, 270, 400, 190, 360];
var endPhotoPositionY = [0, 120, 120, 120, 300, 300];
var name_first_photo = "photo_1_mc";
var arPhoto = [];
var arTest = [];
var arPhotoCost = [];
var total_cost = 0;
var next_level = false;
var game_over = false;
var photoValue = 0;
var rotationPhoto = 45;
path_xml = "info.xml";
game_mc = this.main_mc.game_mc;
start_mc = this.main_mc.start_mc;
txt_mc = this.main_mc.txt_mc;
sound_mc = this.sound_mc;
fon_menu_mc = this.main_mc.fon_menu_mc;
baddy_mc = this.main_mc.baddy_mc;
counter_mc = this.main_mc.counter_mc;
fon_foto_mc = game_mc.fon_foto_mc;
fon_mc = game_mc.fon_mc;
camera_mc = game_mc.camera_mc;
mask_camera_mc = game_mc.mask_camera_mc;
start_btn = txt_mc.start_btn;
mc_mission_name = txt_mc.mc_mission_name;
bad_photoes_mc = main_mc.bad_photoes_mc;
container_frame_mc = main_mc.photo_5_mc;
container_photo_mc = main_mc.photo_5_mc.photo_mc;
MovieClip.prototype.xyScale = function (delta, min_scale, max_scale) {
this._xscale = (this._yscale = this._yscale + delta);
if (this._xscale <= min_scale) {
this._xscale = min_scale;
this._yscale = min_scale;
}
if (this._xscale >= max_scale) {
this._xscale = max_scale;
this._yscale = max_scale;
}
return(this._xscale);
};
MovieClip.prototype.trackMouse = function () {
this._x = _xmouse;
this._y = _ymouse;
return(undefined);
};
init();
start_btn.onRollOver = function () {
playSound(menu_click);
};
start_btn.onPress = function () {
stopSound(menu_snd);
playSound(menu_click);
switch (num_mission) {
case 0 :
fadeIn(pool_snd);
cycleSound(pool_snd);
break;
case 1 :
fadeIn(beach_snd);
cycleSound(beach_snd);
break;
case 2 :
fadeIn(club_snd);
cycleSound(club_snd);
break;
case 3 :
fadeIn(beach_snd);
cycleSound(beach_snd);
break;
case 4 :
fadeIn(pool_snd);
cycleSound(pool_snd);
}
fon_menu_mc._visible = false;
start_btn._visible = false;
txt_mc._visible = false;
if (num_mission == end_mission) {
game_mc.mission_end_mc.onEnterFrame = function () {
if (this.num == 4) {
stopAllSounds();
fadeIn(club_snd);
cycleSound(club_snd);
delete this.onEnterFrame;
}
};
game_mc._visible = true;
game_mc.mission_end_mc.animationAppearance();
counter_mc._visible = false;
} else {
camera_mc._visible = true;
fon_foto_mc._visible = true;
startGame();
}
};
Frame 33
txt_score = menu_over_mc.txt_score;
txt_score.text = total_cost + 100000;
start_end_btn.onRollOver = function () {
playSound(menu_click);
};
start_end_btn.onRelease = function () {
text_menu = 1;
gotoAndStop ("Menu");
};
Symbol 302 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 303 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 304 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 305 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 306 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 21 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER(param) {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
removeMovieClip(this);
switch (param) {
case "game" :
_parent.gotoAndStop("Start");
break;
default :
show_Logo();
CRAZY_GIRL.start();
this.unloadMovie();
}
} else {
AG_COUNT++;
}
}
function show_Logo() {
_parent.crazyGirl_mc.onRelease = function () {
getURL ("http://www.crazygirl.info", "_blank");
};
int_close_logo = setInterval(AG_HOLD_COUNTER, 3000, "game");
}
_parent.stop();
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var CRAZY_GIRL = new Sound();
CRAZY_GIRL.attachSound("crazygirl");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 71 MovieClip Frame 1
stop();
Symbol 80 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
gotoAndStop (3);
Symbol 122 MovieClip Frame 3
stop();
Symbol 125 MovieClip Frame 1
gotoAndStop (3);
Symbol 125 MovieClip Frame 3
stop();
Symbol 159 MovieClip Frame 1
gotoAndStop (3);
Symbol 159 MovieClip Frame 3
stop();
Symbol 162 MovieClip Frame 1
gotoAndStop (2);
Symbol 162 MovieClip Frame 2
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 192 MovieClip [confitti_mc_old] Frame 1
stop();
Symbol 198 MovieClip Frame 129
stop();
var i = 0;
this.onEnterFrame = function () {
i++;
if (i == 1) {
}
if (i > 200) {
i = 0;
delete this.onEnterFrame;
}
};
Symbol 199 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
var arMissionTxt = [];
hello_player = "Hey Miley! Looking good today!";
hello_vanessa = "Aw, thanks! That\u2019s so sweet!";
arMissionTxt.push({dialog_text_1:hello_player, dialog_truth_1:"yes", dialog_text_4:hello_vanessa});
var ob = {dialog_truth_1:"no", dialog_truth_2:"yes", dialog_truth_3:"no", dialog_text_1:"Nice smile! Are those teeth new?", dialog_text_2:"You have a timeless look, Miley, like a Greek goddess.", dialog_text_3:"Do you mind wearing this bunny suit?", dialog_text_4:"This is going to be so cool!", dialog_text_5:"You are sooooo gross! Dad!!"};
arMissionTxt.push(ob);
var ob = {dialog_truth_1:"yes", dialog_truth_2:"no", dialog_truth_3:"no", dialog_text_1:"You have such beautiful skin, like alabaster.", dialog_text_2:"Do you like fart jokes? C\u2019mon, Pull my finger.", dialog_text_3:"Come on, baby, pose! The people love skank!", dialog_text_4:"I feel so artistic!", dialog_text_5:"You are sooooo gross! Dad!!"};
arMissionTxt.push(ob);
var ob = {dialog_truth_1:"no", dialog_truth_2:"no", dialog_truth_3:"yes", dialog_text_1:"This is great! I can\u2019t wait to post these pictures on my blog!", dialog_text_2:"Look, the more clothes you wear, the less money I make. OK?", dialog_text_3:"Fabulous! You\u2019re going to be a superstar!", dialog_text_4:"I\u2019m SO ready for my closeup!", dialog_text_5:"You are sooooo gross! Dad!!"};
arMissionTxt.push(ob);
var i = 1;
while (i < arMissionTxt.length) {
arMissionTxt[i].push({dialog_type_1:"remark", dialog_type_2:"remark", dialog_type_3:"remark", dialog_type_4:"correct_answer", dialog_type_5:"wrong_answer", dialog_name_1:"r1", dialog_name_2:"r2", dialog_name_3:"r3"});
i++;
}
function loadMissionGuest() {
mission_xml = new XML();
mission_xml.ignoreWhite = true;
mission_xml.onLoad = function (success) {
if (success) {
if (mission_xml.firstChild.hasChildNodes()) {
hello_player = mission_xml.firstChild.firstChild.firstChild;
hello_vanessa = mission_xml.firstChild.firstChild.nextSibling.firstChild;
arMissionTxt.push({dialog_text_1:hello_player, dialog_truth_1:"yes", dialog_text_4:hello_vanessa});
var _local2 = mission_xml.firstChild.firstChild.nextSibling.nextSibling;
while (_local2 != null) {
var _local3 = {dialog_type_1:_local2.firstChild.nodeName, dialog_type_2:_local2.firstChild.nextSibling.nodeName, dialog_type_3:_local2.firstChild.nextSibling.nextSibling.nodeName, dialog_type_4:_local2.firstChild.nextSibling.nextSibling.nextSibling.nodeName, dialog_type_5:_local2.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nodeName, dialog_name_1:_local2.firstChild.attributes.name, dialog_name_2:_local2.firstChild.nextSibling.attributes.name, dialog_name_3:_local2.firstChild.nextSibling.nextSibling.attributes.name, dialog_name_4:_local2.firstChild.nextSibling.nextSibling.nextSibling.attributes.name, dialog_name_5:_local2.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.attributes.name, dialog_truth_1:_local2.firstChild.attributes.truth, dialog_truth_2:_local2.firstChild.nextSibling.attributes.truth, dialog_truth_3:_local2.firstChild.nextSibling.nextSibling.attributes.truth, dialog_truth_4:_local2.firstChild.nextSibling.nextSibling.nextSibling.attributes.truth, dialog_truth_5:_local2.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.attributes.truth, dialog_text_1:_local2.firstChild.firstChild, dialog_text_2:_local2.firstChild.nextSibling.firstChild, dialog_text_3:_local2.firstChild.nextSibling.nextSibling.firstChild, dialog_text_4:_local2.firstChild.nextSibling.nextSibling.nextSibling.firstChild, dialog_text_5:_local2.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.firstChild};
arMissionTxt.push(_local3);
_local2 = _local2.nextSibling;
}
}
loadDialog(0);
} else {
_parent.gotoAndStop("Error");
}
};
mission_xml.load(path_xml);
}
function loadDialog(num) {
if (num != 0) {
animationAppearance();
}
txt_1_mc.gotoAndStop(1);
txt_2_mc.gotoAndStop(1);
txt_3_mc.gotoAndStop(1);
question_txt.text = arMissionTxt[num - 1].dialog_text_4;
txt_1_mc.answer_txt.text = arMissionTxt[num].dialog_text_1;
txt_2_mc.answer_txt.text = arMissionTxt[num].dialog_text_2;
txt_3_mc.answer_txt.text = arMissionTxt[num].dialog_text_3;
if (question_txt.text == "undefined") {
quest_mc._visible = false;
} else {
quest_mc._visible = true;
}
var _local1 = 1;
while (_local1 <= txt_mc) {
if (text_mc[("txt_" + _local1) + "_mc"].answer_txt.text == "undefined") {
text_mc[("txt_" + _local1) + "_mc"]._visible = false;
} else {
text_mc[("txt_" + _local1) + "_mc"]._visible = true;
}
_local1++;
}
}
function txtCorrect(param) {
param.gotoAndStop("Correct");
var time = 0;
param.onEnterFrame = function () {
if (time < 15) {
time++;
} else {
time = 0;
delete this.onEnterFrame;
question_txt.text = arMissionTxt[num].dialog_text_4;
if (num == 3) {
animation_mc.gotoAndStop(2);
}
if (num == 3) {
loadEndTxt("win");
return(undefined);
}
num++;
loadDialog(num);
return(undefined);
}
};
}
function loadEndTxt(param) {
var time = 0;
this.onEnterFrame = function () {
if (time < 15) {
time++;
} else {
time = 0;
delete this.onEnterFrame;
txt_1_mc._visible = false;
txt_2_mc._visible = false;
txt_3_mc._visible = false;
player_mc._visible = false;
char_mc.gotoAndStop(3);
switch (param) {
case "win" :
delete eyes_mc.onEnterFrame;
text_mc._visible = false;
showMainMenu("win");
break;
case "lose" :
char_mc.gotoAndStop(2);
showMainMenu("lose");
}
}
};
}
function animationAppearance() {
text_mc._alpha = 0;
txt_1_mc.answer_txt._visible = false;
txt_2_mc.answer_txt._visible = false;
txt_3_mc.answer_txt._visible = false;
question_txt._visible = false;
text_mc.onEnterFrame = function () {
this._alpha = this._alpha + 10;
if (this._alpha >= 100) {
this._alpha = 100;
txt_1_mc.answer_txt._visible = true;
txt_2_mc.answer_txt._visible = true;
txt_3_mc.answer_txt._visible = true;
question_txt._visible = true;
delete this.onEnterFrame;
return(undefined);
}
};
}
function showMainMenu(param) {
var time = 0;
this.onEnterFrame = function () {
time++;
switch (param) {
case "lose" :
if (time >= 75) {
time = 0;
_parent._parent._parent.text_menu = 2;
_parent._parent._parent.gotoAndStop("Menu");
break;
}
case "win" :
if (time < 230) {
break;
}
time = 0;
_parent._parent._parent.gotoAndStop("EndGame");
}
};
}
function blinkingEyes() {
var time = 0;
eyes_mc.onEnterFrame = function () {
time++;
if (time >= 60) {
param = random(1);
if (param == 0) {
this._visible = true;
}
if (time >= 65) {
this._visible = false;
time = 0;
}
}
};
}
var path_xml = "quest.xml";
var num = 0;
var txt_mc = 3;
animation_mc = this.animation_mc;
char_mc = animation_mc.char_mc;
eyes_mc = char_mc.eyes_mc;
eyes_mc._visible = false;
_parent._visible = false;
quest_mc = text_mc.quest_mc;
question_txt = quest_mc.question_txt;
txt_1_mc = this.text_mc.txt_1_mc;
txt_2_mc = this.text_mc.txt_2_mc;
txt_3_mc = this.text_mc.txt_3_mc;
player_mc = this.text_mc.player_mc;
char_mc = this.animation_mc.char_mc;
loadDialog(0);
txt_1_mc.onRelease = function () {
_parent._parent._parent.menu_click.start();
if (arMissionTxt[num].dialog_truth_1 == "yes") {
txtCorrect(this);
} else {
loadEndTxt("lose");
this.gotoAndStop("Wrong");
question_txt.text = arMissionTxt[num].dialog_text_5;
return(undefined);
}
};
txt_1_mc.onRollOver = function () {
_parent._parent._parent.menu_click.start();
this.gotoAndStop("Focus");
};
txt_1_mc.onRollOut = function () {
this.gotoAndStop(1);
};
txt_2_mc.onRelease = function () {
_parent._parent._parent.menu_click.start();
if (arMissionTxt[num].dialog_truth_2 == "yes") {
txtCorrect(this);
} else {
loadEndTxt("lose");
this.gotoAndStop("Wrong");
question_txt.text = arMissionTxt[num].dialog_text_5;
return(undefined);
}
};
txt_2_mc.onRollOver = function () {
_parent._parent._parent.menu_click.start();
this.gotoAndStop("Focus");
};
txt_2_mc.onRollOut = function () {
this.gotoAndStop(1);
};
txt_3_mc.onRelease = function () {
_parent._parent._parent.menu_click.start();
if (arMissionTxt[num].dialog_truth_3 == "yes") {
txtCorrect(this);
} else {
question_txt.text = arMissionTxt[num].dialog_text_5;
loadEndTxt("lose");
this.gotoAndStop("Wrong");
return(undefined);
}
};
txt_3_mc.onRollOver = function () {
_parent._parent._parent.menu_click.start();
this.gotoAndStop("Focus");
};
txt_3_mc.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 14
back_bth.onRelease = function () {
if (_parent._parent.soundOn) {
_parent._parent.menu_click.start();
}
_parent._parent.gotoAndStop("Start");
};
back_bth.onRollOver = function () {
if (_parent._parent.soundOn) {
_parent._parent.menu_click.start();
}
};
Symbol 243 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
next_level_btn.onRelease = function () {
_parent._parent.next_level = true;
};
Symbol 273 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 1
stop();